except.c (emit_note_eh_region_end): New helper function.
[gcc.git] / gcc / ChangeLog
1 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
2
3 * except.c (emit_note_eh_region_end): New helper function.
4 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
5 emit EH_REGION_END note.
6 * jump.c (cleanup_barriers): Do not split a call and its
7 corresponding CALL_ARG_LOCATION note.
8
9 2014-06-30 Jeff Law <law@redhat.com>
10
11 PR tree-optimization/61607
12 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
13 deeper into the SSA_NAME_VALUE chain.
14
15 2014-06-30 Marek Polacek <polacek@redhat.com>
16
17 * convert.c (convert_to_integer): Don't instrument conversions if the
18 function has no_sanitize_undefined attribute.
19 * ubsan.c: Don't run the ubsan pass if the function has
20 no_sanitize_undefined attribute.
21
22 2014-06-30 Jakub Jelinek <jakub@redhat.com>
23
24 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
25 -fsanitize=undefined suboptions.
26
27 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
28
29 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
30 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
31 against bigendian and adjust indices.
32
33 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
34
35 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
36
37 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
38
39 PR target/61633
40 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
41 Add alternative; make early clobber. Adjust both split patterns
42 to use operand 0 as the working register.
43
44 2014-06-30 Jakub Jelinek <jakub@redhat.com>
45
46 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
47 as ira_object_id_map might be NULL, or 1.
48
49 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
50
51 * loop-invariant.c (get_inv_cost): Handle register class.
52 (gain_for_invariant): Check the register pressure of the inv
53 and its overlapped register class, other than all.
54
55 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
56
57 * doc/invoke.texi (Optimize Options): Fix descriptions of
58 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
59
60 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
61
62 * doc/extend.texi (Function Attributes): Update 'naked' attribute
63 documentation.
64
65 2014-06-29 Tobias Grosser <tobias@grosser.es>
66
67 PR bootstrap/61650
68 * graphite-isl-ast-to-gimple.c: Add missing guards.
69
70 2014-06-29 Roman Gareev <gareevroman@gmail.com>
71
72 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
73 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
74 * flag-types.h: Add new enum fgraphite_generator.
75 * graphite-isl-ast-to-gimple.c: New.
76 * graphite-isl-ast-to-gimple.h: New.
77 * graphite.c (graphite_transform_loops): Add choice of Graphite
78 code generator, which depends on flag_graphite_code_gen.
79
80 2014-06-29 Roman Gareev <gareevroman@gmail.com>
81
82 * graphite-dependences.c (subtract_commutative_associative_deps):
83 Add NULL checking of the following variables: must_raw_no_source,
84 may_raw_no_source, must_war_no_source, may_war_no_source,
85 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
86 must_war, may_war, must_waw, may_waw.
87
88 2014-06-29 Roman Gareev <gareevroman@gmail.com>
89
90 * graphite-clast-to-gimple.c: gloog is renamed to
91 graphite_regenerate_ast_cloog. gloog_error is renamed to
92 graphite_regenerate_error.
93 * graphite-clast-to-gimple.h: The definition of the struct
94 bb_pbb_def is moved to graphite-htab.h.
95 Add inclusion of the hash-table.h.
96 * graphite-htab.h: The declaration of the function gloog is moved
97 to graphite-clast-to-gimple.h and renamed to
98 graphite_regenerate_ast_cloog.
99 * graphite.c (graphite_transform_loops): gloog is renamed
100 to graphite_regenerate_ast_cloog.
101
102 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
103
104 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
105 type is complete.
106 (write_ts_type_common_tree_pointers): Do not stream fields not set
107 for incomplete types; do not stream duplicated fields for variants;
108 sanity check that variant and type match.
109 (write_ts_type_non_common_tree_pointers): Likewise.
110 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
111 TYPE_SIZE whether type is complete.
112 (lto_input_ts_type_common_tree_pointers): Do same changes as in
113 write_ts_type_common_tree_pointers
114 (lto_input_ts_type_non_common_tree_pointers): Likewise.
115
116 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
117
118 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
119
120 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
121
122 * tree-inline.c (remap_type_1): Do not duplicate fields
123 that are shared in between type and its main variant.
124
125 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
126
127 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
128 of the type.
129 (ipa_set_ancestor_jf) Likewise.
130 (check_stmt_for_type_change): Check that we work on main variant.
131 (detect_type_change): Look into main variant.
132 (compute_known_type_jump_func): Check that main variant has BINFO.
133
134 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
135
136 * ipa-devirt.c (set_type_binfo): New function.
137 (add_type_duplicate): Use it.
138 (get_odr_type): Sanity check that binfos points to main variants.
139 (get_class_context): Be sure the context's outer_type is main variant.
140 (contains_type_p): Walk main variant.
141 (get_polymorphic_call_info_for_decl): Set outer_type to be
142 main variant.
143 (get_polymorphic_call_info): Likewise.
144 (possible_polymorphic_call_targets): Sanity check that we operate
145 on main variant.
146
147 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
148
149 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
150
151 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
152
153 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
154 accidental change due to wide-int branch merge.
155
156 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
157
158 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
159 compressed debug support.
160 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
161 * configure: Regenerate.
162 * config.in: Regenerate.
163 * common.opt (compressed_debug_sections): New enum.
164 (gz, gz=): New options.
165 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
166 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
167 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
168 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
169 LINK_COMPRESS_DEBUG_SPEC.
170 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
171 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
172 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
173 (Debugging Options): Document -gz[=type].
174
175 2014-06-27 Martin Jambor <mjambor@suse.cz>
176
177 PR ipa/61160
178 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
179 args_to_skip, use those from node instead. Copy args_to_skip and
180 combined_args_to_skip from node to the new thunk.
181 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
182 (cgraph_create_virtual_clone): Moved computation of
183 combined_args_to_skip...
184 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
185
186 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
187
188 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
189 redundant diagnostic machinary.
190
191 2014-06-27 Richard Biener <rguenther@suse.de>
192
193 * tree-ssa-math-opts.c (bswap_replace): Fix
194 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
195
196 2014-06-27 Martin Liska <mliska@suse.cz>
197
198 * gimple.h (gimple_location_safe): New function introduced.
199 * cgraphunit.c (walk_polymorphic_call_targets): Usage
200 of gimple_location_safe replaces gimple_location.
201 (gimple_fold_call): Likewise.
202 * ipa-devirt.c (ipa_devirt): Likewise.
203 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
204 * ipa.c (walk_polymorphic_call_targets): Likewise.
205 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
206
207 2014-06-27 Jakub Jelinek <jakub@redhat.com>
208
209 PR tree-optimization/57233
210 PR tree-optimization/61299
211 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
212 functions.
213 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
214 would be lowered to scalar shifts, check if corresponding
215 shifts and vector BIT_IOR_EXPR are supported and don't lower
216 or lower just to narrower vector type in that case.
217 * expmed.c (expand_shift_1): Fix up handling of vector
218 shifts and rotates.
219
220 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
221
222 PR target/61586
223 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
224
225 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
226
227 * doc/invoke.texi (-fsemantic-interposition): Document.
228 * common.opt (fsemantic-interposition): New flag.
229 * varasm.c (decl_replaceable_p): Use it.
230
231 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
232
233 PR target/61542
234 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
235 extraction other than index 3.
236
237 2014-06-26 Teresa Johnson <tejohnson@google.com>
238
239 * c-family/c-common.h (get_dump_info): Declare.
240 * c-family/c-gimplify.c (c_genericize): Use saved dump files.
241 * c-family/c-opts.c (c_common_parse_file): Begin and end dumps
242 once around parsing invocation.
243 (get_dump_info): New function.
244 * cp/class.c (dump_class_hierarchy): Use saved dump files.
245 (dump_vtable): Ditto.
246 (dump_vtt): Ditto.
247
248 2014-06-26 Teresa Johnson <tejohnson@google.com>
249
250 * doc/invoke.texi: Fix typo.
251 * dumpfile.c: Add support for documented -fdump-* options
252 optimized/missed/note/optall.
253
254 2014-06-26 Martin Jambor <mjambor@suse.cz>
255
256 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
257 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
258 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
259 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
260 * opts.c (default_options_optimization): Set
261 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
262 * doc/invoke.texi (allow-load-data-races)
263 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
264 (allow-store-data-races): Document the new default.
265
266 2014-06-26 Martin Jambor <mjambor@suse.cz>
267
268 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
269 renamed to ipa_impossible_devirt_target. Fix typo.
270 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
271 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
272 ipa_impossible_devirt_target.
273
274 2014-06-26 Richard Biener <rguenther@suse.de>
275
276 PR tree-optimization/61607
277 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
278 explaining why we restrict copies on loop depth.
279 * tree-ssa-dom.c (cprop_operand): Remove restriction on
280 on loop depth.
281 (record_equivalences_from_phis): Instead add it here.
282
283 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
284
285 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
286 (LTO_WRAPPER_OBJS): New variable.
287 (lto-wrapper$(exeext)): Use it.
288 * collect2.c: Include "collect-utils.h".
289 (verbose, debug): Remove variables.
290 (at_file_supplied): No longer static.
291 (tool_name): New variable.
292 (do_wait, fork_execute, maybe_unlink): Don't declare.
293 (tool_cleanup): No longer static.
294 (notice): Remove function.
295 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
296 fork_execute calls.
297 (collect_wait, do_wait, collect_execute): Remove functions.
298 (maybe_unlink): No longer static.
299 * collect2.h (verbose, debug): Don't declare.
300 (at_file_supplied): Declare.
301 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
302 changed.
303 (collect_execute): Replace with implementation from collect2, plus a
304 new arg use_atfile. All callers changed.
305 (collect_wait): Replace with implementation from collect2.
306 (maybe_unlink_file): Remove function.
307 (fork_execute): Replace with implementation from collect2, plus a
308 new arg use_atfile. All callers changed.
309 (do_wait): Add call to utils_cleanup to the error path.
310 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
311 (tool_cleanup): Adjust declarations.
312 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
313 * tlink.c: Include "collect-utils.h".
314 (tlink_execute): New arg use_atfile. All callers changed.
315 (tlink_init, tlink_execute): Remove declarations.
316
317 * collect-utils.c (save_temps): New variable.
318 (do_wait): Use it instead of debug. Use fatal_error.
319 * collect-utils.h (save_temps): Declare.
320 * collect2.c (verbose): Rename from vflag. All uses changed.
321 (tool_cleanup): New function, copied from collect_atexit.
322 (collect_atexit, handler): Just call it.
323 * collect2.h (verbose): Declaration renamed from vflag.
324 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
325 debug.
326
327 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
328 (lto-wrapper$(exeext)): Link with collect-utils.o.
329 * collect-utils.c: New file.
330 * collect-utils.h: New file.
331 * lto-wrapper.c: Include "collect-utils.h".
332 (args_name): Delete variable.
333 (tool_name): New variable.
334 (tool_cleanup): New function.
335 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
336 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
337 (fork_execute): Remove functions.
338
339 2014-06-26 Nick Clifton <nickc@redhat.com>
340
341 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
342
343 * doc/extend.texi (Function Attributes): Fix typo in description
344 of RX vector attribute.
345
346 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
347
348 * config.gcc (supported_defaults): Error when passing either
349 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
350
351 2014-06-26 Richard Biener <rguenther@suse.de>
352
353 * tree-ssa-dom.c (cprop_operand): Remove restriction on
354 propagating volatile pointers.
355
356 2014-06-26 Richard Biener <rguenther@suse.de>
357
358 PR tree-optimization/61607
359 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
360 loop if we redirected its latch edge.
361 (thread_block_1): Do not cancel loops prematurely.
362
363 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
364
365 * toplev.c (backend_init_target): Move init_emit_regs and
366 init_regs to...
367 (backend_init) ... here; skip ira_init_once and backend_init_target.
368 (target_reinit) ... and here; clear
369 this_target_rtl->lang_dependent_initialized.
370 (lang_dependent_init_target): Clear
371 this_target_rtl->lang_dependent_initialized;
372 break out rtl initialization to ...
373 (initialize_rtl): ... here; call also backend_init_target
374 and ira_init_once.
375 * toplev.h (initialize_rtl): New function.
376 * function.c: Include toplev.h
377 (init_function_start): Call initialize_rtl.
378 * rtl.h (target_rtl): Add target_specific_initialized,
379 lang_dependent_initialized.
380
381 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
382 Jakub Jelinek <jakub@redhat.com>
383
384 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
385
386 2014-06-25 Tom de Vries <tom@codesourcery.com>
387
388 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
389
390 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
391
392 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
393 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
394 Issue a strict overflow warning if appropriate.
395
396 2014-06-25 Martin Liska <mliska@suse.cz>
397
398 IPA REF refactoring
399 * Makefile.in: Removed header file (ipa-ref-inline.h).
400 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
401 called.
402 (cgraph_speculative_call_info): Likewise.
403 (cgraph_for_node_thunks_and_aliases): Likewise.
404 (cgraph_for_node_and_aliases): Likewise.
405 (verify_cgraph_node): Likewise.
406 * cgraph.h: Batch of IPA REF functions become member functions of
407 symtab_node: add_reference, maybe_add_reference, clone_references,
408 clone_referring, clone_reference, find_reference,
409 remove_stmt_references, remove_all_references,
410 remove_all_referring, dump_references, dump_referring,
411 has_alias_p, iterate_reference, iterate_referring.
412 * cgraphbuild.c (record_reference): New IPA REF function used.
413 (record_type_list): Likewise.
414 (record_eh_tables): Likewise.
415 (mark_address): Likewise.
416 (mark_load): Likewise.
417 (mark_store): Likewise.
418 (pass_build_cgraph_edges): Likewise.
419 (rebuild_cgraph_edge): Likewise.
420 (cgraph_rebuild_references): Likewise.
421 (pass_remove_cgraph_callee_edges): Likewise.
422 * cgraphclones.c (cgraph_clone_node): Likewise.
423 (cgraph_create_virtual_clone): Likewise.
424 (cgraph_materialize_clone): Likewise.
425 (cgraph_materialize_all_clones): Likewise.
426 * cgraphunit.c (cgraph_reset_node): Likewise.
427 (cgraph_reset_node): Likewise.
428 (analyze_function): Likewise.
429 (assemble_thunks_and_aliases): Likewise.
430 (expand_function): Likewise.
431 * ipa-comdats.c (propagate_comdat_group): Likewise.
432 (enqueue_references): Likewise.
433 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
434 (create_specialized_node): Likewise.
435 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
436 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
437 * ipa-inline.c (reset_edge_caches): Likewise.
438 (update_caller_keys): Likewise.
439 (execute): Likewise.
440 * ipa-prop.c (remove_described_reference): Likewise.
441 (propagate_controlled_uses): Likewise.
442 (ipa_edge_duplication_hook): Likewise.
443 (ipa_modify_call_arguments): Likewise.
444 * ipa-pure-const.c (propagate_pure_const): Likewise.
445 * ipa-ref-inline.h: Header file removed, functions moved
446 to symtab_node class.
447 * ipa-ref.c (remove_reference): New class member function.
448 (cannot_lead_to_return): New class member function.
449 (referring_ref_list): Likewise.
450 (referred_ref_list): Likewise.
451 Rest of functions moved to symtab_node class.
452 * ipa-ref.h: New member functions remove_reference,
453 cannot_lead_to_return, referring_ref_list, referred_ref_list added
454 to ipa_ref class.
455 ipa_ref_list class has new member functions: first_reference,
456 first_referring, clear, nreferences.
457 * ipa-reference.c (analyze_function): New IPA REF function used.
458 (write_node_summary_p): Likewise.
459 (ipa_reference_write_optimization_summary): Likewise.
460 * ipa-split.c (split_function): Likewise.
461 * ipa-utils.c (ipa_reverse_postorder): Likewise.
462 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
463 (function_and_variable_visibility): Likewise.
464 * ipa.c (has_addr_references_p): Likewise.
465 (process_references): Argument type changed.
466 (symtab_remove_unreachable_nodes): New IPA REF function used.
467 (process_references): Likewise.
468 (set_writeonly_bit): Likewise.
469 * lto-cgraph.c: Implementation of new symtab_node member functions
470 that uses new IPA REF functions.
471 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
472 function used.
473 * lto-streamer-out.c (output_symbol_p): Likewise.
474 * lto-streamer.h (referenced_from_this_partition_p): Argument type
475 changed.
476 * symtab.c: Implementation of new IPA REF API.
477 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
478 (ipa_tm_create_version): Likewise.
479 (ipa_tm_execute): Likewise.
480 * tree-emutls.c (gen_emutls_addr): Likewise.
481 * tree-inline.c (copy_bb): Likewise.
482 (delete_unreachable_blocks_update_callgraph): Likewise.
483 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
484 (varpool_for_node_and_aliases): Likewise.
485
486 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
487
488 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
489
490 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
491
492 PR bootstrap/61598
493 * fold-const.c (fold_checksum_tree): Use a hash_table of const
494 tree_node * instead of tree_node *.
495 (fold): Adjust.
496 (print_fold_checksum): Likewise.
497 (fold_check_failed): Likewise.
498 (debug_fold_checksum): Likewise.
499 (fold_build1_stat_loc): Likewise.
500 (fold_build2_stat_loc): Likewise.
501 (fold_build3_stat_loc): Likewise.
502 (fold_build_call_array_loc): Likewise.
503
504 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
505
506 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
507 implementation with call to...
508 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
509 function.
510 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
511 Declare.
512
513 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
514
515 PR tree-optimization/57742
516 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
517 after replacing the statement.
518
519 2014-06-25 Nick Clifton <nickc@redhat.com>
520
521 * config/v850/v850.c (GHS_default_section_names): Change to const
522 char * type.
523 (GHS_current_section_names): Likewise.
524 (v850_insert_attributes): Do not build strings, just assign the
525 names directly. Change the type of 'chosen_section' to const
526 char*.
527 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
528 directly to the array entry.
529 * config/v850/v850.h (GHS_default_section_names): Change to const
530 char * type.
531 (GHS_current_section_names): Likewise.
532
533 2014-06-25 Jakub Jelinek <jakub@redhat.com>
534
535 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
536 (LANG_HOOKS_DECLS): Add it.
537 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
538 has correct type.
539 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
540 * langhooks.h (struct lang_hooks_for_decls): Add
541 omp_clause_linear_ctor hook.
542 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
543 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
544 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
545 combined simd loop use omp_clause_linear_ctor hook.
546
547 2014-06-24 Cong Hou <congh@google.com>
548
549 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
550 pattern recognition.
551 (type_conversion_p): PROMOTION is true if it's a type promotion
552 conversion, and false otherwise. Return true if the given expression
553 is a type conversion one.
554 * tree-vectorizer.h: Adjust the number of patterns.
555 * tree.def: Add SAD_EXPR.
556 * optabs.def: Add sad_optab.
557 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
558 * expr.c (expand_expr_real_2): Likewise.
559 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
560 * gimple.c (get_gimple_rhs_num_ops): Likewise.
561 * optabs.c (optab_for_tree_code): Likewise.
562 * tree-cfg.c (estimate_operator_cost): Likewise.
563 * tree-ssa-operands.c (get_expr_operands): Likewise.
564 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
565 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
566 * doc/generic.texi: Add document for SAD_EXPR.
567 * doc/md.texi: Add document for ssad and usad.
568
569 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
570
571 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
572 qualification in cast.
573
574 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
575
576 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
577 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
578 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
579 (tree_function_decl): ... here.
580 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
581 streaming of vindex to ...
582 (write_ts_function_decl_tree_pointers): ... here.
583 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
584 Do not stream DECL_VINDEX.
585 (lto_input_ts_function_decl_tree_pointers): Stream it here.
586
587 2014-06-24 Catherine Moore <clm@codesourcery.com>
588 Sandra Loosemore <sandra@codesourcery.com>
589
590 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
591 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
592 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
593
594 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
595
596 * doc/invoke.texi (Warning Options): Remove duplicated
597 -Wmaybe-uninitialized.
598
599 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
600
601 PR tree-optimization/57742
602 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
603 (handle_builtin_malloc, handle_builtin_memset): New functions.
604 (strlen_optimize_stmt): Call them.
605 * passes.def: Move strlen after loop+dom but before vrp.
606
607 2014-06-24 Jakub Jelinek <jakub@redhat.com>
608
609 PR target/61570
610 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
611 model family 6 CPU with has_longmode never use a CPU without
612 64-bit support.
613
614 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
615
616 PR target/61570
617 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
618 the last change.
619
620 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
621
622 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
623 * dominance.c (iterate_fix_dominators): Use hash_map instead of
624 pointer_map.
625 * hash-map.h: New file.
626 * ipa-comdats.c: Use hash_map instead of pointer_map.
627 * ipa.c: Likewise.
628 * lto-section-out.c: Adjust.
629 * lto-streamer.h: Replace pointer_map with hash_map.
630 * symtab.c (verify_symtab): Likewise.
631 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
632 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
633 * tree-streamer.h: Likewise.
634 * tree-streamer.c: Adjust.
635 * pointer-set.h: Remove pointer_map.
636
637 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
638
639 * hash-table.h: Add a template arg to choose between storing values
640 and storing pointers to values, and then provide partial
641 specializations for both.
642 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
643 should store, not the type values should point to.
644 * tree-into-ssa.c (var_info_hasher): Likewise.
645 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
646 * tree-complex.c: Adjust.
647 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
648 table instead of int_tree_map *.
649 * tree-parloops.c: Adjust.
650 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
651 type is being stored.
652 * tree-vectorizer.c: Adjust.
653
654 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
655
656 * hash-table.h: Remove a layer of indirection from hash_table so that
657 it contains the hash table's data instead of a pointer to the data.
658 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
659 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
660 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
661 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
662 fold-const.c, gcse.c, ggc-common.c,
663 gimple-ssa-strength-reduction.c, gimplify.c,
664 graphite-clast-to-gimple.c, graphite-dependences.c,
665 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
666 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
667 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
668 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
669 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
670 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
671 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
672 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
673 tree-ssa-live.c, tree-ssa-loop-im.c,
674 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
675 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
676 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
677 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
678 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
679 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
680 vtable-verify.c, vtable-verify.h: Adjust.
681
682 2014-06-24 Richard Biener <rguenther@suse.de>
683
684 PR tree-optimization/61572
685 * tree-ssa-sink.c (statement_sink_location): Do not sink
686 loads from hard registers.
687
688 2014-06-24 Jakub Jelinek <jakub@redhat.com>
689
690 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
691 not mentioned in clauses use private clause if the iterator is
692 declared in #pragma omp for simd, and when adding lastprivate
693 instead, add it to the outer #pragma omp for too. Diagnose
694 if the variable is private in outer context. For simd collapse > 1
695 loops, replace all iterators with temporaries.
696 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
697 same even in collapse > 1 loops.
698
699 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
700 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
701 non-NULL.
702 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
703 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
704 non-NULL.
705 (gimplify_adjust_omp_clauses): Likewise.
706 * omp-low.c (lower_rec_simd_input_clauses,
707 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
708 safelen the same as safelen(1).
709 * tree-nested.c (convert_nonlocal_omp_clauses,
710 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
711 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
712 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
713 Fixup handling of GIMPLE_OMP_TARGET.
714 (convert_tramp_reference_stmt, convert_gimple_call): Handle
715 GIMPLE_OMP_TARGET.
716
717 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
718
719 PR tree-optimization/61554
720 * tree-ssa-propagate.c: Include "bitmap.h".
721 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
722 properly update constructor/destructor.
723 (substitute_and_fold_dom_walker::before_dom_children):
724 Remove call to gimple_purge_dead_eh_edges, add bb->index to
725 need_eh_cleaup instead.
726 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
727 need_eh_cleanup.
728
729 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
730
731 * varpool.c (dump_varpool_node): Dump used_by_single_function.
732 * tree-pass.h (make_pass_ipa_single_use): New pass.
733 * cgraph.h (used_by_single_function): New flag.
734 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
735 Stream it.
736 * passes.def (pass_ipa_single_use): Scedule.
737 * ipa.c (BOTTOM): New macro.
738 (meet): New function
739 (propagate_single_user): New function.
740 (ipa_single_use): New function.
741 (pass_data_ipa_single_use): New pass.
742 (pass_ipa_single_use): New pass.
743 (pass_ipa_single_use::gate): New gate.
744 (make_pass_ipa_single_use): New function.
745
746 2014-06-23 Kai Tietz <ktietz@redhat.com>
747
748 PR target/39284
749 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
750 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
751
752 2014-06-23 Richard Biener <rguenther@suse.de>
753
754 * tree-ssa-loop.c (gate_loop): New function.
755 (pass_tree_loop::gate): Call it.
756 (pass_data_tree_no_loop, pass_tree_no_loop,
757 make_pass_tree_no_loop): New.
758 * tree-vectorizer.c: Include tree-scalar-evolution.c
759 (pass_slp_vectorize::execute): Initialize loops and SCEV if
760 required.
761 (pass_slp_vectorize::clone): New method.
762 * timevar.def (TV_TREE_NOLOOP): New.
763 * tree-pass.h (make_pass_tree_no_loop): Declare.
764 * passes.def (pass_tree_no_loop): New pass group with
765 SLP vectorizer.
766
767 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
768
769 PR target/61570
770 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
771 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
772
773 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
774
775 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
776 "yes" where needed.
777
778 2014-06-23 Alan Modra <amodra@gmail.com>
779
780 PR bootstrap/61583
781 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
782 to zero on debug statements.
783
784 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
785
786 PR target/60825
787 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
788 Ignore third operand if present by marking qualifier_internal.
789
790 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
791
792 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
793 vector extension.
794 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
795 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
796 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
797 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
798 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
799 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
800 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
801 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
802 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
803 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
804 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
805 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
806 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
807 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
808 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
809 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
810 logic in GCC vector extensions
811
812 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
813 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
814 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
815 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
816 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
817 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
818 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
819 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
820 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
821 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
822
823 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
824
825 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
826 extensions.
827
828 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
829 (vget_low_s64): Use __GET_LOW macro.
830 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
831 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
832 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
833 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
834 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
835
836 (vcombine_s64): Use GCC vector extensions; remove cast.
837 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
838 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
839 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
840 Fix type signature; remove cast.
841
842 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
843
844 PR target/60825
845 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
846 V1DFmode.
847 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
848 add V1DFmode
849 (BUILTIN_VD1): New.
850 (BUILTIN_VD_RE): Remove.
851 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
852 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
853 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
854 variant but not df.
855 (vreinterpretv1df*, vreinterpret*v1df): New.
856 (vreinterpretdf*, vreinterpret*df): Remove.
857 * config/aarch64/aarch64-simd.md (aarch64_create,
858 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
859 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
860 (VD1): New.
861 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
862 (vcreate_f64): Remove cast, use v1df builtin.
863 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
864 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
865 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
866 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
867 vmov_n_f64, vst1_f64): Use gcc vector extensions.
868 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
869 add range check using __builtin_aarch64_im_lane_boundsi.
870 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
871 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
872 type signature, use gcc vector extensions.
873 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
874 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
875 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
876 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
877 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
878 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
879 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
880 vreinterpret_u64_f64): Use v1df builtin not df.
881
882 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
883
884 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
885 vector registers.
886
887 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
888
889 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
890 priority directly.
891
892 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
893
894 * loop-invariant.c (pre_check_invariant_p): New function.
895 (find_invariant_insn): Call pre_check_invariant_p.
896
897 2014-06-22 Richard Henderson <rth@redhat.com>
898
899 PR target/61565
900 * compare-elim.c (struct comparison): Add eh_note.
901 (find_comparison_dom_walker::before_dom_children): Don't eliminate
902 a redundant comparison in a different EH region. Purge EH edges if
903 necessary.
904
905 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
906
907 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
908 (var_shift): Use it.
909 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
910 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
911 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
912 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
913 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
914 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
915 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
916 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
917 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
918 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
919 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
920 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
921 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
922 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
923 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
924 *rotldi3_internal15be): Use the new attribute. Merge register and
925 integer alternatives.
926
927 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
928
929 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
930 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
931 split, *ashrdi3_internal3 and split): Delete, merge into...
932 (ashr<mode>3): New expander.
933 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
934 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
935
936 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
937
938 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
939 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
940 *rotldi3_internal3 and split): Delete, merge into...
941 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
942 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
943 Use "rotlw" extended mnemonic.
944
945 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
946
947 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
948 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
949 and split, *ashldi3_internal3 and split): Delete, merge into...
950 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
951 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
952
953 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
954
955 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
956 (lshrsi3, two anonymous define_insns and define_splits,
957 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
958 *lshrdi3_internal3 and split): Delete, merge into...
959 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
960 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
961
962 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
963
964 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
965 Remove "O" alternative.
966
967 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
968
969 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
970 (mips_move_from_gpr_cost): Likewise.
971 (mips_register_move_cost): Update accordingly.
972 (mips_secondary_reload_class): Remove name of in_p.
973
974 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
975
976 PR target/61503
977 * config/i386/i386.md (x86_64_shrd, x86_shrd,
978 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
979
980 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
981
982 * config/nios2/nios2.c: Include "builtins.h".
983
984 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
985
986 * cgraph.h (tls_model_names): New variable.
987 * print-tree.c (print_node): Simplify.
988 * varpool.c (tls_model_names): New variable.
989 (dump_varpool_node): Output tls model.
990
991 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
992
993 * ipa-visibility.c (function_and_variable_visibility): Disable
994 temporarily local aliases for some targets.
995
996 2014-06-20 Marek Polacek <polacek@redhat.com>
997
998 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
999 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
1000 into SANITIZE_UNDEFINED.
1001 * doc/invoke.texi: Describe -fsanitize=bounds.
1002 * gimplify.c (gimplify_call_expr): Add gimplification of internal
1003 functions created in the FEs.
1004 * internal-fn.c: Move "internal-fn.h" after "tree.h".
1005 (expand_UBSAN_BOUNDS): New function.
1006 * internal-fn.def (UBSAN_BOUNDS): New internal function.
1007 * internal-fn.h: Don't define internal functions here.
1008 * opts.c (common_handle_option): Add -fsanitize=bounds.
1009 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
1010 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
1011 * tree-core.h: Define internal functions here.
1012 (struct tree_base): Add ifn field.
1013 * tree-pretty-print.c: Include "internal-fn.h".
1014 (dump_generic_node): Handle functions without CALL_EXPR_FN.
1015 * tree.c (get_callee_fndecl): Likewise.
1016 (build_call_expr_internal_loc): New function.
1017 * tree.def (CALL_EXPR): Update description.
1018 * tree.h (CALL_EXPR_IFN): Define.
1019 (build_call_expr_internal_loc): Declare.
1020 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
1021 types.
1022 (ubsan_type_descriptor): Change bool parameter to enum
1023 ubsan_print_style. Adjust the code. Add handling of
1024 UBSAN_PRINT_ARRAY.
1025 (ubsan_expand_bounds_ifn): New function.
1026 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
1027 (ubsan_build_overflow_builtin): Likewise.
1028 (instrument_bool_enum_load): Likewise.
1029 (ubsan_instrument_float_cast): Likewise.
1030 * ubsan.h (enum ubsan_print_style): New enum.
1031 (ubsan_expand_bounds_ifn): Declare.
1032 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
1033
1034 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
1035
1036 * config/rs6000/rs6000.md: Append `DONE' to preparation
1037 statements of `bswap' pattern splitters.
1038
1039 2014-06-20 Tom de Vries <tom@codesourcery.com>
1040
1041 * target.def (call_fusage_contains_non_callee_clobbers): Update
1042 definition.
1043 * doc/tm.texi: Regenerate.
1044
1045 2014-06-20 Yury Gribov <y.gribov@samsung.com>
1046 Max Ostapenko <m.ostapenko@partner.samsung.com>
1047
1048 PR sanitizer/61547
1049 * asan.c (instrument_strlen_call): Fixed instrumentation of
1050 trailing byte.
1051
1052 2014-06-20 Martin Jambor <mjambor@suse.cz>
1053
1054 PR ipa/61540
1055 * ipa-prop.c (impossible_devirt_target): New function.
1056 (try_make_edge_direct_virtual_call): Use it, also instead of
1057 asserting.
1058
1059 2014-06-20 Yury Gribov <y.gribov@samsung.com>
1060 Max Ostapenko <m.ostapenko@partner.samsung.com>
1061
1062 PR sanitizer/61530
1063 * asan.c (build_check_stmt): Add condition.
1064
1065 2014-06-20 Martin Jambor <mjambor@suse.cz>
1066
1067 PR ipa/61211
1068 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
1069 expanded clones.
1070
1071 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1072
1073 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
1074 Update comments.
1075 (VCONQ): Make comment more helpful.
1076 (VCON): Delete.
1077 * config/aarch64/aarch64-simd.md
1078 (aarch64_sqdmulh_lane<mode>):
1079 Use VCOND for operands 2. Update lane checking and flipping logic.
1080 (aarch64_sqrdmulh_lane<mode>): Likewise.
1081 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
1082 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
1083 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
1084 attribute of operand 3 to VCOND.
1085 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
1086 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
1087 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
1088 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
1089 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
1090 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
1091 define_insn.
1092 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
1093 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
1094 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
1095 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
1096 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
1097 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
1098 operand to VCOND. Update lane flipping and bounds checking logic.
1099 (aarch64_sqdmlal2_lane<mode>): Likewise.
1100 (aarch64_sqdmlsl_lane<mode>): Likewise.
1101 (aarch64_sqdmull_lane<mode>): Likewise.
1102 (aarch64_sqdmull2_lane<mode>): Likewise.
1103 (aarch64_sqdmlal_laneq<mode>):
1104 Replace VCON usage with VCONQ.
1105 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
1106 (aarch64_sqdmlal2_laneq<mode>): Emit
1107 aarch64_sqdmlal2_laneq<mode>_internal insn.
1108 Replace VCON with VCONQ.
1109 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
1110 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
1111 (aarch64_sqdmull_laneq<mode>): Emit
1112 aarch64_sqdmull_laneq<mode>_internal insn.
1113 Replace VCON with VCONQ.
1114 (aarch64_sqdmull2_laneq<mode>): Emit
1115 aarch64_sqdmull2_laneq<mode>_internal insn.
1116 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
1117 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
1118 of 3rd argument to int16x4_t.
1119 (vqdmlalh_lane_s16): Likewise.
1120 (vqdmlslh_lane_s16): Likewise.
1121 (vqdmull_high_lane_s16): Likewise.
1122 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
1123 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
1124 (vqdmlsl_lane_s16): Likewise.
1125 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
1126 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
1127 (vqdmlals_lane_s32): Likewise.
1128 (vqdmlsls_lane_s32): Likewise.
1129 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
1130 (vqdmulls_lane_s32): Likewise.
1131 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
1132 (vqdmlsl_lane_s32): Likewise.
1133 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
1134 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
1135 (vqrdmulhh_lane_s16): Likewise.
1136 (vqdmlsl_high_lane_s16): Likewise.
1137 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
1138 (vqdmlsl_high_lane_s32): Likewise.
1139 (vqrdmulhs_lane_s32): Likewise.
1140
1141 2014-06-20 Tom de Vries <tom@codesourcery.com>
1142
1143 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
1144 get_call_reg_set_usage.
1145
1146 2014-06-20 Tom de Vries <tom@codesourcery.com>
1147
1148 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
1149 it contains all call_used_regs.
1150
1151 2014-06-20 Tom de Vries <tom@codesourcery.com>
1152
1153 * final.c (collect_fn_hard_reg_usage): Add and use variable
1154 function_used_regs.
1155
1156 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
1157
1158 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
1159 (set_init_priority, get_init_priority, set_fini_priority,
1160 get_fini_priority): New methods.
1161 * tree.c (init_priority_for_decl): Remove.
1162 (init_ttree): Do not initialize init priority.
1163 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
1164 (decl_priority_info): Remove.
1165 (decl_init_priority_insert): Rewrite.
1166 (decl_fini_priority_insert): Rewrite.
1167 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
1168 tree_priority_map_marked_p): Remove.
1169 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
1170 * lto-streamer-out.c (hash_tree): Do not hash priorities.
1171 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
1172 not output priorities.
1173 (pack_ts_function_decl_value_fields): Likewise.
1174 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
1175 not input priorities.
1176 (unpack_ts_function_decl_value_fields): Likewise.
1177 * symtab.c (symbol_priority_map): Declare.
1178 (init_priority_hash): Declare.
1179 (symtab_unregister_node): Unregister from priority hash, too.
1180 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
1181 New methods.
1182 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
1183 (symbol_priority_info): New function.
1184 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
1185 New methods.
1186 * tree-core.h (tree_priority_map): Remove.
1187
1188 2014-06-20 Jakub Jelinek <jakub@redhat.com>
1189
1190 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
1191 0xff to uint64_t before shifting it up.
1192
1193 2014-06-20 Julian Brown <julian@codesourcery.com>
1194 Chung-Lin Tang <cltang@codesourcery.com>
1195
1196 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
1197 TARGET_THUMB1_ONLY. Add comments.
1198
1199 2014-06-19 Tom de Vries <tom@codesourcery.com>
1200
1201 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
1202 return type to void.
1203 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
1204
1205 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1206
1207 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
1208 as "move", from depends_on.
1209
1210 2014-06-19 Terry Guo <terry.guo@arm.com>
1211
1212 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
1213 stage.
1214
1215 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
1216
1217 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
1218 Remove cr5.
1219 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
1220
1221 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
1222
1223 PR target/61550
1224 * config/sh/sh.c (prepare_move_operands): Don't process TLS
1225 addresses here if reload in progress or completed.
1226
1227 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
1228
1229 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
1230 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
1231 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
1232 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
1233 (mips_register_priority): New function that implements the target
1234 hook TARGET_REGISTER_PRIORITY.
1235 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
1236 (mips_lra_p): Likewise for TARGET_LRA_P.
1237 (TARGET_REGISTER_PRIORITY): Define macro.
1238 (TARGET_SPILL_CLASS): Likewise.
1239 (TARGET_LRA_P): Likewise.
1240 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
1241 classes.
1242 (REG_CLASS_NAMES): Likewise.
1243 (REG_CLASS_CONTENTS): Likewise.
1244 (BASE_REG_CLASS): Use M16_SP_REGS.
1245 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
1246 New set attribute to enable alternatives depending on the register
1247 allocator used.
1248 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
1249 (*lea64): Disable pattern for MIPS16.
1250 * config/mips/mips.opt (mlra): New option.
1251
1252 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
1253
1254 * lra-constraints.c (base_to_reg): New function.
1255 (process_address): Use new function.
1256
1257 2014-06-18 Tom de Vries <tom@codesourcery.com>
1258
1259 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
1260 * config/aarch64/aarch64.c
1261 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
1262 (aarch64_emit_call_insn): New function.
1263 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
1264 of emit_call_insn.
1265 * config/aarch64/aarch64.md (define_expand "call_internal")
1266 (define_expand "call_value_internal", define_expand "sibcall_internal")
1267 (define_expand "sibcall_value_internal"): New.
1268 (define_expand "call", define_expand "call_value")
1269 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
1270 expand variant and aarch64_emit_call_insn.
1271
1272 2014-06-18 Radovan Obradovic <robradovic@mips.com>
1273 Tom de Vries <tom@codesourcery.com>
1274
1275 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
1276 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
1277 Redefine to true.
1278 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
1279 clobbers to CALL_INSN_FUNCTION_USAGE.
1280 (define_expand "sibcall_internal")
1281 (define_expand "sibcall_value_internal"): New.
1282 (define_expand "call", define_expand "call_value"): Add argument to
1283 arm_emit_call_insn.
1284 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
1285 (define_expand "sibcall_value"): Use sibcall_value_internal and
1286 arm_emit_call_insn.
1287
1288 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1289
1290 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
1291
1292 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1293
1294 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
1295 __udivmoddi4.
1296
1297 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1298
1299 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
1300 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
1301 annotations. Fix DWARF information.
1302
1303 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1304
1305 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
1306 __udivmoddi4, and fixups for negative operands.
1307
1308 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1309
1310 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
1311
1312 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1313
1314 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
1315 to __udivmoddi4.
1316
1317 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1318
1319 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
1320 manipulation.
1321
1322 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1323
1324 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
1325 describing register usage on function entry and exit.
1326
1327 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1328
1329 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
1330 (__aeabi_ldivmod): Fix whitespace.
1331
1332 2014-06-18 Andreas Schwab <schwab@suse.de>
1333
1334 * doc/md.texi (Standard Names): Use @itemx for grouped items.
1335 Remove blank line after @item.
1336
1337 2014-06-18 Richard Henderson <rth@redhat.com>
1338
1339 PR target/61545
1340 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
1341
1342 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
1343
1344 * config/arm/arm.c (neon_vector_mem_operand): Allow register
1345 POST_MODIFY for neon loads and stores.
1346 (arm_print_operand): Output post-index register for neon loads and
1347 stores.
1348
1349 2014-06-18 Richard Biener <rguenther@suse.de>
1350
1351 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
1352
1353 2014-06-18 Richard Biener <rguenther@suse.de>
1354
1355 * tree-pass.h (make_pass_dce_loop): Remove.
1356 * passes.def: Replace pass_dce_loop with pass_dce.
1357 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
1358 changed free niter estimates and reset the scev cache.
1359 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
1360 make_pass_dce_loop): Remove.
1361 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
1362 (fini_copy_prop): Return whether something changed. Always
1363 let substitute_and_fold perform DCE and free niter estimates
1364 and reset the scev cache if so.
1365 (execute_copy_prop): If sth changed schedule cleanup-cfg.
1366 (pass_data_copy_prop): Do not unconditionally schedule
1367 cleanup-cfg or update-ssa.
1368
1369 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
1370
1371 PR tree-optimization/61518
1372 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
1373 reduction var is used in reduction stmt or phi-function only.
1374
1375 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1376
1377 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
1378
1379 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
1380
1381 PR tree-optimization/61517
1382 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
1383 whose rhs's first tree is the source expression instead of the
1384 expression itself.
1385 (find_bswap_or_nop): Likewise.
1386 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
1387 gimple stmt whose rhs's first tree is the source. In the memory source
1388 case, move the stmt to be replaced close to one of the original load to
1389 avoid the problem of a store between the load and the stmt's original
1390 location.
1391 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
1392 signature.
1393
1394 2014-06-18 Andreas Schwab <schwab@suse.de>
1395
1396 PR rtl-optimization/54555
1397 * postreload.c (move2add_use_add2_insn): Substitute
1398 STRICT_LOW_PART only if it is cheaper.
1399
1400 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
1401
1402 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
1403 Do not use unspec as call operand. Use memory_operand instead of
1404 memory_nox32_operand and add "m" operand constraint. Disable
1405 pattern for TARGET_X32.
1406 (*sibcall_pop_memory): Ditto.
1407 (*sibcall_value_memory): Ditto.
1408 (*sibcall_value_pop_memory): Ditto.
1409 (sibcall peepholes): Merge SImode and DImode patterns using
1410 W mode iterator. Use memory_operand instead of memory_nox32_operand.
1411 Disable pattern for TARGET_X32. Check if eliminated register is
1412 really dead after call insn. Generate call RTX without unspec operand.
1413 (sibcall_value peepholes): Ditto.
1414 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
1415 instead of memory_nox32_operand. Check if eliminated register is
1416 really dead after call insn. Generate call RTX without unspec operand.
1417 (sibcall_value_pop peepholes): Ditto.
1418 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
1419
1420 2014-06-18 Terry Guo <terry.guo@arm.com>
1421
1422 PR target/61544
1423 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
1424 reach the head.
1425
1426 2014-06-18 Olivier Hainque <hainque@adacore.com>
1427
1428 * tree-core.h (tree_block): Add an "end_locus" field, allowing
1429 memorization of the end of block source location.
1430 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
1431 * gimplify.c (gimplify_bind_expr): Propagate the block start and
1432 end source location info we have on the block entry/exit code we
1433 generate.
1434
1435 2014-06-18 Richard Biener <rguenther@suse.de>
1436
1437 * common.opt (fssa-phiopt): New option.
1438 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
1439 but not with -Og.
1440 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
1441 * doc/invoke.texi (-fssa-phiopt): Document.
1442
1443 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1444
1445 * genattrtab.c (n_bypassed): New variable.
1446 (process_bypasses): Initialise n_bypassed.
1447 Count number of bypassed reservations.
1448 (make_automaton_attrs): Allocate space for bypassed reservations
1449 rather than number of bypasses.
1450
1451 2014-06-18 Richard Biener <rguenther@suse.de>
1452
1453 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
1454 we propagated anything.
1455 (substitute_and_fold_dom_walker::before_dom_children): Something
1456 changed if we propagated into PHI arguments.
1457 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
1458 we removed a stmt.
1459
1460 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
1461
1462 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
1463 vector case.
1464 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
1465 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
1466 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
1467 Introduces alternative way of loads group permutaions.
1468 (vect_transform_grouped_load): Try alternative way of permutations.
1469
1470 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1471
1472 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
1473 changed in ORT_TARGET region, don't jump to do_outer.
1474 (struct gimplify_adjust_omp_clauses_data): New type.
1475 (gimplify_adjust_omp_clauses_1): Adjust for data being
1476 a struct gimplify_adjust_omp_clauses_data pointer instead
1477 of tree *. Pass pre_p as a new argument to
1478 lang_hooks.decls.omp_finish_clause hook.
1479 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
1480 splay_tree_foreach to pass both list_p and pre_p.
1481 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
1482 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
1483 gimplify_adjust_omp_clauses callers.
1484 * langhooks.c (lhd_omp_finish_clause): New function.
1485 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
1486 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
1487 * langhooks.h (struct lang_hooks_for_decls): Add a new
1488 gimple_seq * argument to omp_finish_clause hook.
1489 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
1490 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
1491 (scan_omp_parallel, lower_omp_for): When adding
1492 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
1493 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
1494 * tree-nested.c (convert_nonlocal_omp_clauses,
1495 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
1496 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
1497
1498 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
1499
1500 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
1501 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
1502
1503 2014-06-17 Xinliang David Li <davidxl@google.com>
1504
1505 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
1506 * passes.c (pass_init_dump_file): Do not set initialize
1507 flag to false unconditionally.
1508
1509 2014-06-17 Richard Biener <rguenther@suse.de>
1510
1511 * genopinit.c (main): Use vec<>::qsort method.
1512 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
1513 Likewise.
1514 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
1515
1516 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
1517
1518 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
1519 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
1520 (mips_move_to_gpr_cost): Remove ST_REGS case.
1521 (mips_move_from_gpr_cost): Likewise.
1522 (mips_register_move_cost): Likewise.
1523 (mips_secondary_reload_class): Likewise.
1524
1525 2014-06-17 Richard Biener <rguenther@suse.de>
1526
1527 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
1528 (pass_all_optimizations): Move 3rd copy-prop pass from after
1529 fre to before ifcombine/phiopt.
1530
1531 2014-06-17 Richard Biener <rguenther@suse.de>
1532
1533 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
1534 and allow all blocks to be forwarders.
1535
1536 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
1537
1538 PR target/61483
1539 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
1540 variable 'size'; calculate 'size' right in the front; use
1541 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
1542 pcum->aapcs_stack_words.
1543
1544 2014-06-17 Nick Clifton <nickc@redhat.com>
1545
1546 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
1547 (umulhi3, mulsidi3, umulsidi3): Likewise.
1548
1549 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
1550
1551 PR middle-end/61508
1552 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
1553 check for section name.
1554
1555 2014-06-17 Richard Biener <rguenther@suse.de>
1556
1557 * tree-ssa-propagate.c: Include domwalk.h.
1558 (substitute_and_fold): Outline main worker into a domwalker ...
1559 (substitute_and_fold_dom_walker::before_dom_children): ... here.
1560 Schedule stmts we can fully propagate for removal. Remove
1561 poor-mans DCE.
1562 (substitute_and_fold): Apply a dominator walk to perform
1563 substitution. Process stmts scheduled for removal here.
1564
1565 2014-06-17 Richard Biener <rguenther@suse.de>
1566
1567 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
1568 of PHI node moving.
1569
1570 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
1571
1572 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
1573 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
1574 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
1575 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
1576 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
1577 TARGET_HARD_FLOAT.
1578 (get_fpscr) : Likewise.
1579
1580 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
1581
1582 PR rtl-optimization/61325
1583 * lra-constraints.c (valid_address_p): Add forward declaration.
1584 (simplify_operand_subreg): Check address validity before and after
1585 alter_reg of memory subreg.
1586
1587 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
1588
1589 * config/i386/i386.c (decide_alg): Correctly handle
1590 maximum size of stringop algorithm.
1591
1592 2014-06-16 Yury Gribov <y.gribov@samsung.com>
1593
1594 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
1595
1596 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
1597
1598 PR rtl-optimization/61522
1599 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
1600
1601 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
1602
1603 Revert:
1604 * symtab.c (symtab_node::reset_section): New method.
1605 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
1606 for localization.
1607 * cgraph.h (reset_section): Declare.
1608 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
1609 do not consider comdat locals.
1610 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
1611 for new symbol.
1612 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
1613 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
1614 reset sections of symbols dragged out of the comdats.
1615 (function_and_variable_visibility): Reset sections of
1616 localized symbols.
1617
1618 2014-06-16 Richard Biener <rguenther@suse.de>
1619
1620 PR tree-optimization/61482
1621 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
1622 [-INF(OVF), +INF(OVF)] range.
1623
1624 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1625
1626 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
1627 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
1628 handling 32-bit multiplication.
1629
1630 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
1631
1632 PR middle-end/61430
1633 * lra-lives.c (process_bb_lives): Skip creating copy during
1634 insn scan when src/dest has constrained to same regno.
1635
1636 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
1637
1638 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
1639 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
1640
1641 2014-06-16 Yury Gribov <y.gribov@samsung.com>
1642
1643 * asan.c (check_func): New function.
1644 (maybe_create_ssa_name): Likewise.
1645 (build_check_stmt_with_calls): Likewise.
1646 (use_calls_p): Likewise.
1647 (report_error_func): Change interface.
1648 (build_check_stmt): Allow non-integer lengths; add support
1649 for new parameter.
1650 (asan_instrument): Likewise.
1651 (instrument_mem_region_access): Moved code to build_check_stmt.
1652 (instrument_derefs): Likewise.
1653 (instrument_strlen_call): Likewise.
1654 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
1655 * doc/invoke.texi: Describe new parameter.
1656 * params.def: Define new parameter.
1657 * params.h: Likewise.
1658 * sanitizer.def: Describe new builtins.
1659
1660 2014-06-16 Richard Biener <rguenther@suse.de>
1661
1662 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1663 Make all defs available at the end.
1664 (eliminate): If we remove a PHI node schedule cfg-cleanup.
1665
1666 2014-06-18 Jakub Jelinek <jakub@redhat.com>
1667
1668 PR plugins/45078
1669 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
1670
1671 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1672
1673 PR bootstrap/61516
1674 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
1675 initialization. Replace remaining use of uid.
1676
1677 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
1678
1679 * c-family/c-common.c (handle_tls_model_attribute): Use
1680 set_decl_tls_model.
1681 * c-family/c-common.c (handle_tls_model_attribute): Use
1682 set_decl_tls_model.
1683 * cgraph.h (struct varpool_node): Add tls_model.
1684 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
1685 * tree.h (DECL_TLS_MODEL): Update.
1686 (DECL_THREAD_LOCAL_P): Check that variable is static.
1687 (decl_tls_model): Declare.
1688 (set_decl_tls_model): Declare.
1689 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
1690 set symbol prorperties.
1691 (get_emutls_init_templ_addr): Cleanup.
1692 (new_emutls_decl): Update.
1693 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
1694 (lto_input_varpool_node): Likewise.
1695 * lto-streamer-out.c (hash_tree): Likewise.
1696 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
1697 not stream DECL_TLS_MODEL.
1698 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
1699 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
1700
1701 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1702
1703 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
1704
1705 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1706
1707 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
1708 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
1709 lists.
1710 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
1711 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
1712 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
1713 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
1714 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
1715 (df_get_artificial_defs, df_get_artificial_uses)
1716 (df_single_def, df_single_use): Update accordingly.
1717 (df_refs_chain_dump): Take the first element in a linked list as
1718 parameter, rather than a pointer to an array of pointers.
1719 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
1720 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
1721 (df_chain_create_bb_process_use): Likewise.
1722 (df_md_bb_local_compute_process_def): Likewise.
1723 * fwprop.c (process_defs, process_uses): Likewise.
1724 (register_active_defs, update_uses): Likewise.
1725 (forward_propagate_asm): Update for new df_ref linking.
1726 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
1727 (df_null_ref_rec, df_null_mw_rec): Likewise.
1728 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
1729 explicitly.
1730 (df_scan_free_bb_info): Remove check for null artificial_defs.
1731 (df_install_ref_incremental): Adjust for new df_ref linking.
1732 Use a single-element insertion rather than a full sort.
1733 (df_ref_chain_delete_du_chain): Take the first element
1734 in a linked list as parameter, rather than a pointer to an array of
1735 pointers.
1736 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
1737 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
1738 (df_insn_info_delete): Remove check for null defs and call to
1739 df_scan_free_mws_vec.
1740 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
1741 null rather than df_null_*_rec.
1742 (df_insn_rescan_debug_internal): Likewise, and update null
1743 checks in the same way. Remove check for null defs.
1744 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
1745 Move a single element rather doing a full sort.
1746 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
1747 linking.
1748 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
1749 Initialize df_ref and df_mw_hardreg lists to null rather than
1750 df_null_*_rec.
1751 (df_ref_compare): Take df_refs as parameter, transferring the
1752 old interface to...
1753 (df_ref_ptr_compare): ...this new function.
1754 (df_sort_and_compress_refs): Update accordingly.
1755 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
1756 old interface to...
1757 (df_mw_ptr_compare): ...this new function.
1758 (df_sort_and_compress_mws): Update accordingly.
1759 (df_install_refs, df_install_mws): Return a linked list rather than
1760 an array of pointers.
1761 (df_refs_add_to_chains): Assert that old lists are empty rather
1762 than freeing them.
1763 (df_insn_refs_verify): Don't handle null defs speciailly.
1764 * web.c (union_match_dups): Update for new df_ref linking.
1765
1766 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1767
1768 * df.h (df_ref_create, df_ref_remove): Delete.
1769 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
1770 (df_ref_remove): Likewise.
1771
1772 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1773
1774 * df.h (df_single_def, df_single_use): New functions.
1775 * ira.c (find_moveable_pseudos): Use them.
1776
1777 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1778
1779 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
1780 * df-problems.c (df_note_bb_compute): Use it.
1781 * regstat.c (regstat_bb_compute_ri): Likewise.
1782
1783 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1784
1785 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
1786 * cse.c (cse_extended_basic_block): Use them.
1787 * dce.c (mark_artificial_use): Likewise.
1788 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
1789 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
1790 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
1791 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
1792 (df_simulate_initialize_backwards): Likewise.
1793 (df_simulate_finalize_backwards): Likewise.
1794 (df_simulate_initialize_forwards): Likewise.
1795 (df_md_simulate_artificial_defs_at_top): Likewise.
1796 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
1797 * regrename.c (init_rename_info): Likewise.
1798 * regstat.c (regstat_bb_compute_ri): Likewise.
1799 (regstat_bb_compute_calls_crossed): Likewise.
1800
1801 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
1802
1803 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
1804 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
1805 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
1806 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
1807 * combine.c (create_log_links): Likewise.
1808 * compare-elim.c (find_flags_uses_in_insn): Likewise.
1809 (try_eliminate_compare): Likewise.
1810 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
1811 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
1812 (remove_reg_equal_equiv_notes_for_defs): Likewise.
1813 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
1814 (word_dce_process_block, dce_process_block): Likewise.
1815 * ddg.c (def_has_ccmode_p): Likewise.
1816 * df-core.c (df_bb_regno_first_def_find): Likewise.
1817 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
1818 * df-problems.c (df_rd_simulate_one_insn): Likewise.
1819 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
1820 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
1821 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
1822 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
1823 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
1824 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
1825 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
1826 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
1827 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
1828 * fwprop.c (local_ref_killed_between_p): Likewise.
1829 (all_uses_available_at, free_load_extend): Likewise.
1830 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
1831 * hw-doloop.c (scan_loop): Likewise.
1832 * ifcvt.c (dead_or_predicable): Likewise.
1833 * init-regs.c (initialize_uninitialized_regs): Likewise.
1834 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
1835 (process_bb_node_lives): Likewise.
1836 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
1837 (find_moveable_pseudos): Likewise.
1838 * loop-invariant.c (check_dependencies, record_uses): Likewise.
1839 * recog.c (peep2_find_free_register): Likewise.
1840 * ree.c (get_defs): Likewise.
1841 * regstat.c (regstat_bb_compute_ri): Likewise.
1842 (regstat_bb_compute_calls_crossed): Likewise.
1843 * sched-deps.c (find_inc, find_mem): Likewise.
1844 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
1845 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
1846 * shrink-wrap.c (requires_stack_frame_p): Likewise.
1847 (prepare_shrink_wrap): Likewise.
1848 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
1849 * web.c (union_defs, pass_web::execute): Likewise.
1850 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
1851 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
1852
1853 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
1854
1855 * lra-assign.c (assign_by_spills): Add code to assign vector regs
1856 to inheritance pseudos.
1857 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
1858
1859 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
1860
1861 PR target/61415
1862 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
1863 (BU_MISC_2): Rename to ...
1864 (BU_LDBL128_2): ... this.
1865 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
1866 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
1867 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
1868 RS6000_BTM_LDBL128.
1869 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
1870 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
1871 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
1872 (unpacktf_1): Likewise.
1873 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
1874 (__builtin_longdouble_dw1): Likewise.
1875 * doc/sourcebuild.texi (longdouble128): Document.
1876
1877 2014-06-13 Jeff Law <law@redhat.com>
1878
1879 PR rtl-optimization/61094
1880 PR rtl-optimization/61446
1881 * ree.c (combine_reaching_defs): Get the mode for the copy from
1882 the extension insn rather than the defining insn.
1883
1884 2014-06-13 Dehao Chen <dehao@google.com>
1885
1886 * dwarf2out.c (add_linkage_name): Emit more linkage name.
1887
1888 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
1889
1890 * doc/install.texi (--enable-linker-plugin-configure-flags)
1891 (--enable-linker-plugin-flags): Document new flags.
1892
1893 2014-06-13 Martin Jambor <mjambor@suse.cz>
1894
1895 PR ipa/61186
1896 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
1897 cache_token if returning early.
1898
1899 2014-06-13 Nick Clifton <nickc@redhat.com>
1900
1901 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
1902 requested alignment is active.
1903 (LABEL_ALIGN): Likewise.
1904 (LOOP_ALIGN): Likewise.
1905
1906 2014-06-13 Richard Biener <rguenther@suse.de>
1907
1908 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1909 Rewrite to propagate the VN result into all uses where
1910 possible and to remove stmts becoming dead because of that.
1911 (eliminate): Generalize stmt removal handling, remove in
1912 reverse dominator order to support proper debug stmt
1913 generation. Update stmts before removing stmts.
1914 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
1915
1916 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
1917
1918 PR tree-optimization/61375
1919 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
1920 symbolic number cannot be represented in an uint64_t.
1921 (find_bswap_or_nop_1): Likewise.
1922
1923 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
1924
1925 * symtab.c (symtab_node::reset_section): New method.
1926 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
1927 for localization.
1928 * cgraph.h (reset_section): Declare.
1929 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
1930 do not consider comdat locals.
1931 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
1932 for new symbol.
1933 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
1934 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
1935 reset sections of symbols dragged out of the comdats.
1936 (function_and_variable_visibility): Reset sections of
1937 localized symbols.
1938
1939 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
1940
1941 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
1942 to use symtab and decl_binds_to_current_def_p
1943 * tree-vectorizer.c (increase_alignment): Increase alignment
1944 of alias target, too.
1945
1946 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1947
1948 PR middle-end/61486
1949 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
1950 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
1951 if outer combined construct is distribute.
1952 (gimplify_omp_for): For OMP_DISTRIBUTE set
1953 gimplify_omp_ctxp->distribute.
1954 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
1955 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
1956 mapping into decl map.
1957
1958 2014-06-12 Jason Merrill <jason@redhat.com>
1959
1960 * common.opt (fabi-version): Change default to 0.
1961
1962 2014-06-12 Jason Merrill <jason@redhat.com>
1963
1964 * toplev.c (process_options): Reject -fabi-version=1.
1965
1966 2014-06-12 Jeff Law <law@redhat.com>
1967
1968 PR tree-optimization/61009
1969 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
1970 value when we stop processing a block due to problematic PHIs.
1971
1972 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
1973
1974 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
1975 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
1976 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
1977 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
1978 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
1979 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
1980 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
1981 are not in the spec.
1982
1983 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
1984
1985 PR target/59843
1986 * config/aarch64/aarch64-modes.def: Add V1DFmode.
1987 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
1988 Support V1DFmode.
1989
1990 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
1991
1992 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
1993
1994 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
1995
1996 PR target/61443
1997 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
1998 loading from address spaces.
1999
2000 2014-06-12 Martin Liska <mliska@suse.cz>
2001
2002 PR ipa/61462
2003 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
2004 statement is reachable.
2005
2006 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
2007
2008 * symtab.c (section_hash): New hash.
2009 (symtab_unregister_node): Clear section before freeing.
2010 (hash_section_hash_entry): New haser.
2011 (eq_sections): New function.
2012 (symtab_node::set_section_for_node): New method.
2013 (set_section_1): Update.
2014 (symtab_node::set_section): Take string instead of tree as parameter.
2015 (symtab_resolve_alias): Update.
2016 * cgraph.h (section_hash_entry_d): New structure.
2017 (section_hash_entry): New typedef.
2018 (cgraph_node): Change comdat_group_ to x_comdat_group,
2019 change section_ to x_section and turn into section_hash_entry;
2020 update accestors; put set_section_for_node offline.
2021 * tree.c (decl_section_name): Turn into string.
2022 (set_decl_section_name): Change parameter to be string.
2023 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
2024 * sdbout.c (sdbout_one_type): Update.
2025 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
2026 * varasm.c (IN_NAMED_SECTION, get_named_section,
2027 resolve_unique_section, hot_function_section, get_named_text_section,
2028 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
2029 make_decl_rtl, default_unique_section): Update.
2030 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
2031 (c6x_elf_unique_section): Update.
2032 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
2033 * config/pa/pa.c (pa_function_section): Update.
2034 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
2035 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
2036 * config/arc/arc.c (arc_in_small_data_p): Update.
2037 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
2038 * config/mcore/mcore.c (mcore_unique_section): Update.
2039 * config/mips/mips.c (mips16_build_function_stub): Update.
2040 (mips16_build_call_stub): Update.
2041 (mips_function_rodata_section): Update.
2042 (mips_in_small_data_p): Update.
2043 * config/score/score.c (score_in_small_data_p): Update.
2044 * config/rx/rx.c (rx_in_small_data): Update.
2045 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
2046 (rs6000_xcoff_asm_named_section): Update.
2047 (rs6000_xcoff_unique_section): Update.
2048 * config/frv/frv.c (frv_string_begins_with): Update.
2049 (frv_in_small_data_p): Update.
2050 * config/v850/v850.c (v850_encode_data_area): Update.
2051 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
2052 (bfin_handle_l1_data_attribute): Update.
2053 (bfin_handle_l2_attribute): Update.
2054 * config/mep/mep.c (mep_unique_section): Update.
2055 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
2056 Update.
2057 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
2058 (h8300_handle_tiny_data_attribute): Update.
2059 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
2060 (m32r_in_small_data_p): Update.
2061 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
2062 * config/i386/i386.c (ix86_in_large_data_p): Update.
2063 * config/i386/winnt.c (i386_pe_unique_section): Update.
2064 * config/darwin.c (darwin_function_section): Update.
2065 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
2066 * tree-emutls.c (get_emutls_init_templ_addr): Update.
2067 (new_emutls_decl): Update.
2068 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
2069 input_varpool_node): Update.
2070 (ead_string_cst): Turn to ...
2071 (read_string): ... this one.
2072 * dwarf2out.c (secname_for_decl): Update.
2073 * asan.c (asan_protect_global): Update.
2074
2075 2014-06-11 DJ Delorie <dj@redhat.com>
2076
2077 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
2078 cache lines.
2079 * config/rx/rx.c (rx_option_override): Likewise.
2080 (rx_align_for_label): Likewise.
2081
2082 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
2083
2084 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2085
2086 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
2087 prototype.
2088
2089 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2090
2091 * common.md: New file.
2092 * doc/md.texi: Update description of generic, machine-independent
2093 constraints.
2094 * config/s390/constraints.md (e): Delete.
2095 * Makefile.in (md_file): Include common.md.
2096 * config/m32c/t-m32c (md_file): Likewise.
2097 * genpreds.c (general_mem): New array.
2098 (generic_constraint_letters): Remove constraints now defined by
2099 common.md.
2100 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
2101 Allow the first character to be '<' or '>' as well.
2102 * genoutput.c (general_mem): New array.
2103 (indep_constraints): Remove constraints now defined by common.md.
2104 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
2105 Remove special handling of 'm'.
2106 * ira-costs.c (record_reg_classes): Remove special handling of
2107 constraints now defined by common.md.
2108 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
2109 * ira-lives.c (single_reg_class): Likewise.
2110 (ira_implicitly_set_insn_hard_regs): Likewise.
2111 * lra-constraints.c (reg_class_from_constraints): Likewise.
2112 (process_alt_operands, process_address, curr_insn_transform): Likewise.
2113 * postreload.c (reload_cse_simplify_operands): Likewise.
2114 * reload.c (push_secondary_reload, scratch_reload_class)
2115 (find_reloads, alternative_allows_const_pool_ref): Likewise.
2116 * reload1.c (maybe_fix_stack_asms): Likewise.
2117 * targhooks.c (default_secondary_reload): Likewise.
2118 * stmt.c (parse_output_constraint): Likewise.
2119 * recog.c (preprocess_constraints): Likewise.
2120 (constrain_operands, peep2_find_free_register): Likewise.
2121 (asm_operand_ok): Likewise, but add a comment saying why 'o'
2122 must be handled specially.
2123
2124 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2125
2126 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
2127 * genpreds.c (have_const_dbl_constraints): Delete.
2128 (add_constraint): Don't set it.
2129 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
2130 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
2131 constraints using the lookup_constraint logic.
2132 * ira-lives.c (single_reg_class): Likewise.
2133 * ira.c (ira_setup_alts): Likewise.
2134 * lra-constraints.c (process_alt_operands): Likewise.
2135 * recog.c (asm_operand_ok, constrain_operands): Likewise.
2136 * reload.c (find_reloads): Likewise.
2137
2138 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2139
2140 * genpreds.c (const_int_start, const_int_end): New variables.
2141 (choose_enum_order): Output CONST_INT constraints before memory
2142 constraints.
2143 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
2144 Add CT_CONST_INT.
2145 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
2146 * ira.c (ira_setup_alts): Likewise.
2147 * lra-constraints.c (process_alt_operands): Likewise.
2148 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
2149 * reload.c (find_reloads): Likewise.
2150
2151 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2152
2153 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
2154 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
2155 * recog.c (preprocess_constraints): Update accordingly.
2156
2157 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2158
2159 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
2160 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
2161 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
2162 * genpreds.c (print_type_tree): New function.
2163 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
2164 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
2165 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
2166 Write out enum constraint_type and get_constraint_type.
2167 * lra-constraints.c (satisfies_memory_constraint_p): Take a
2168 constraint_num rather than a constraint string.
2169 (satisfies_address_constraint_p): Likewise.
2170 (reg_class_from_constraints): Avoid old constraint macros.
2171 (process_alt_operands, process_address_1): Likewise.
2172 (curr_insn_transform): Likewise.
2173 * ira-costs.c (record_reg_classes): Likewise.
2174 (record_operand_costs): Likewise.
2175 * ira-lives.c (single_reg_class): Likewise.
2176 (ira_implicitly_set_insn_hard_regs): Likewise.
2177 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
2178 * postreload.c (reload_cse_simplify_operands): Likewise.
2179 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
2180 (constrain_operands, peep2_find_free_register): Likewise.
2181 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
2182 (find_reloads, alternative_allows_const_pool_ref): Likewise.
2183 * reload1.c (maybe_fix_stack_asms): Likewise.
2184 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
2185 * targhooks.c (default_secondary_reload): Likewise.
2186 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
2187 to EXTRA_CONSTRAINT_STR.
2188 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
2189
2190 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2191
2192 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
2193 (write_constraint_satisfied_p_array): ...this new function.
2194 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
2195 an array.
2196 (write_insn_preds_c): Update accordingly.
2197
2198 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2199
2200 * genpreds.c (write_lookup_constraint): Rename to...
2201 (write_lookup_constraint_1): ...this.
2202 (write_lookup_constraint_array): New function.
2203 (write_tm_preds_h): Define lookup_constraint as an inline function
2204 that uses write_lookup_constraint_array where possible.
2205 (write_insn_preds_c): Update for the changes above.
2206
2207 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
2208
2209 * doc/md.texi (regclass_for_constraint): Rename to...
2210 (reg_class_for_constraint): ...this.
2211 * genpreds.c (num_constraints, enum_order, register_start)
2212 (register_end, satisfied_start, memory_start, memory_end)
2213 (address_start, address_end): New variables.
2214 (add_constraint): Count the number of constraints.
2215 (choose_enum_order): New function.
2216 (write_enum_constraint_num): Iterate over enum_order.
2217 (write_regclass_for_constraint): Rename to...
2218 (write_reg_class_for_constraint_1): ...this and update output
2219 accordingly.
2220 (write_constraint_satisfied_p): Rename to...
2221 (write_constraint_satisfied_p_1): ...this and update output
2222 accordingly. Do nothing if all extra constraints are register
2223 constraints.
2224 (write_insn_extra_memory_constraint): Delete.
2225 (write_insn_extra_address_constraint): Delete.
2226 (write_range_function): New function.
2227 (write_tm_preds_h): Define constraint_satisfied_p and
2228 reg_class_for_constraint as inline functions that do a range check
2229 before calling the out-of-line function. Use write_range_function
2230 to implement insn_extra_{register,memory,address}_constraint,
2231 the first of which is new.
2232 (write_insn_preds_c): Update after above changes to write_* functions.
2233 (main): Call choose_enum_order.
2234
2235 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
2236
2237 PR tree-optimization/61306
2238 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
2239 expression instead of its size.
2240 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
2241 false to prevent optimization when the result is unpredictable due to
2242 arithmetic right shift of signed type with highest byte is set.
2243 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
2244 (init_symbolic_number): Likewise.
2245 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
2246 when the result is unpredictable due to sign extension.
2247
2248 2014-06-11 Terry Guo <terry.guo@arm.com>
2249
2250 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
2251 (*thumb1_addsi3): Ditto.
2252 (*thumb_subdi3): Ditto.
2253 (thumb1_subsi3_insn): Ditto.
2254 (*thumb_mulsi3): Ditto.
2255 (*thumb_mulsi3_v6): Ditto.
2256 (*thumb1_andsi3_insn): Ditto.
2257 (thumb1_bicsi3): Ditto.
2258 (*thumb1_iorsi3_insn): Ditto.
2259 (*thumb1_xorsi3_insn): Ditto.
2260 (*thumb1_ashlsi3): Ditto.
2261 (*thumb1_ashrsi3): Ditto.
2262 (*thumb1_lshrsi3): Ditto.
2263 (*thumb1_rotrsi3): Ditto.
2264 (*thumb1_negdi2): Ditto.
2265 (*thumb1_negsi2): Ditto.
2266 (*thumb1_abssi2): Ditto.
2267 (*thumb1_neg_abssi2): Ditto.
2268 (*thumb1_one_cmplsi2): Ditto.
2269 (*thumb1_zero_extendhisi2): Ditto.
2270 (*thumb1_zero_extendqisi2): Ditto.
2271 (*thumb1_zero_extendqisi2_v6): Ditto.
2272 (thumb1_extendhisi2): Ditto.
2273 (thumb1_extendqisi2): Ditto.
2274 (*thumb1_movdi_insn): Ditto.
2275 (*thumb1_movsi_insn): Ditto.
2276 (*thumb1_movhi_insn): Ditto.
2277 (thumb_movhi_clobber): Ditto.
2278 (*thumb1_movqi_insn): Ditto.
2279 (*thumb1_movhf): Ditto.
2280 (*thumb1_movsf_insn): Ditto.
2281 (*thumb_movdf_insn): Ditto.
2282 (movmem12b): Ditto.
2283 (movmem8b): Ditto.
2284 (cbranchqi4): Ditto.
2285 (cbranchsi4_insn): Ditto.
2286 (cbranchsi4_scratch): Ditto.
2287 (*negated_cbranchsi4): Ditto.
2288 (*tbit_cbranch): Ditto.
2289 (*tlobits_cbranch): Ditto.
2290 (*tstsi3_cbranch): Ditto.
2291 (*cbranchne_decr1): Ditto.
2292 (*addsi3_cbranch): Ditto.
2293 (*addsi3_cbranch_scratch): Ditto.
2294 (*thumb_cmpdi_zero): Ditto.
2295 (cstoresi_eq0_thumb1): Ditto.
2296 (cstoresi_ne0_thumb1): Ditto.
2297 (*cstoresi_eq0_thumb1_insn): Ditto.
2298 (*cstoresi_ne0_thumb1_insn): Ditto.
2299 (cstoresi_nltu_thumb1): Ditto.
2300 (cstoresi_ltu_thumb1): Ditto.
2301 (thumb1_addsi3_addgeu): Ditto.
2302 (*thumb_jump): Ditto.
2303 (*call_reg_thumb1_v5): Ditto.
2304 (*call_reg_thumb1): Ditto.
2305 (*call_value_reg_thumb1_v5): Ditto.
2306 (*call_value_reg_thumb1): Ditto.
2307 (*call_insn): Ditto.
2308 (*call_value_insn): Ditto.
2309 (thumb1_casesi_internal_pic): Ditto.
2310 (thumb1_casesi_dispatch): Ditto.
2311 (*thumb1_indirect_jump): Ditto.
2312 (prologue_thumb1_interwork): Ditto.
2313 (*epilogue_insns): Ditto.
2314 (consttable_1): Ditto.
2315 (consttable_2): Ditto.
2316 (tablejump): Ditto.
2317 (*thumb1_tablejump): Ditto.
2318 (thumb_eh_return): Ditto.
2319 (define_peephole2): Two of them are thumb1 only and got moved into
2320 new file thumb1.md.
2321 (define_split): Six of them are thumb1 only and got moved into new
2322 file thumb1.md.
2323 * config/arm/thumb1.md: New file comprised of above thumb1 only
2324 patterns.
2325
2326 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2327
2328 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
2329 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
2330 dependencies.
2331 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
2332 (aarch64_crc_builtin_datum): New struct.
2333 (aarch64_crc_builtin_data): New.
2334 (aarch64_init_crc32_builtins): New function.
2335 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
2336 (aarch64_crc32_expand_builtin): New.
2337 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
2338 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2339 __ARM_FEATURE_CRC32 when appropriate.
2340 (TARGET_CRC32): Define.
2341 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
2342 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
2343 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
2344 (aarch64_<crc_variant>): New pattern.
2345 * config/aarch64/arm_acle.h: New file.
2346 * config/aarch64/iterators.md (CRC): New int iterator.
2347 (crc_variant, crc_mode): New int attributes.
2348 * doc/aarch64-acle-intrinsics.texi: New file.
2349 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
2350 Include aarch64-acle-intrinsics.texi.
2351
2352 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
2353
2354 * tree-vect-data-refs.c (vect_grouped_store_supported): New
2355 check for stores group of length 3.
2356 (vect_permute_store_chain): New permutations for stores group of
2357 length 3.
2358 * tree-vect-stmts.c (vect_model_store_cost): Change cost
2359 of vec_perm_shuffle for the new permutations.
2360
2361 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
2362
2363 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
2364 table rewriting temporarily on targets not supporting ONE_ONLY.
2365
2366 2014-06-11 Richard Biener <rguenther@suse.de>
2367
2368 PR middle-end/61437
2369 Revert
2370 2014-06-04 Richard Biener <rguenther@suse.de>
2371
2372 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
2373 TREE_PUBLIC and DECL_EXTERNAL decls.
2374
2375 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
2376
2377 * varasm.c (set_implicit_section): New function.
2378 (resolve_unique_section): Use it to set implicit section
2379 for aliases, too.
2380 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
2381 (default_function_section): Likewise.
2382 (decl_binds_to_current_def_p): Constify argument.
2383 * varasm.h (decl_binds_to_current_def_p): Update prototype.
2384 * asan.c (asan_protect_global): Use
2385 symtab_get_node (decl)->implicit_section.
2386 * symtab.c (dump_symtab_base): Dump implicit sections.
2387 (verify_symtab_base): Verify sanity of sectoins and comdats.
2388 (symtab_resolve_alias): Alias share the section of its target.
2389 (set_section_1): New function.
2390 (symtab_node::set_section): Move here, recurse to aliases.
2391 (verify_symtab): Check for duplicated symtab lists.
2392 * tree-core.h (implicit_section_name_p): Remove.
2393 * tree-vect-data-refs.c: Include varasm.h.
2394 (vect_can_force_dr_alignment_p): Fix conditional on when
2395 decl bints to current definition; use
2396 symtab_get_node (decl)->implicit_section.
2397 * cgraph.c (cgraph_make_node_local_1): Fix section set.
2398 * cgraph.h (struct symtab_node): Add implicit_section.
2399 (set_section): Rename to ...
2400 (set_section_for_node): ... this one.
2401 (set_section): Declare.
2402 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
2403 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2404 input_overwrite_node, input_varpool_node): Stream implicit_section.
2405 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
2406 removal; it will fail in LTO.
2407
2408 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2409
2410 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
2411 Change second alternative type to f_mcr.
2412 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
2413 and 12th alternatives' types to f_mcr and f_mrc.
2414 (*movdi_aarch64): Same for 12th and 13th alternatives.
2415 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
2416 (aarch64_movtilow_tilow): Change type to fmov.
2417
2418 2014-06-10 Jiong Wang <jiong.wang@arm.com>
2419
2420 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
2421 (aarch64_save_or_restore_callee_save_registers): Fix layout.
2422
2423 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2424
2425 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
2426 New expander.
2427 (aarch64_sqrdmulh_lane<mode>): Likewise.
2428 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
2429 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
2430 (aarch64_sqdmulh_laneq<mode>): New expander.
2431 (aarch64_sqrdmulh_laneq<mode>): Likewise.
2432 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
2433 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
2434 (aarch64_sqdmulh_lane<mode>): New expander.
2435 (aarch64_sqrdmulh_lane<mode>): Likewise.
2436 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
2437 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
2438 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
2439 (aarch64_sqdmlal_laneq<mode>): Likewise.
2440 (aarch64_sqdmlsl_lane<mode>): Likewise.
2441 (aarch64_sqdmlsl_laneq<mode>): Likewise.
2442 (aarch64_sqdmlal2_lane<mode>): Likewise.
2443 (aarch64_sqdmlal2_laneq<mode>): Likewise.
2444 (aarch64_sqdmlsl2_lane<mode>): Likewise.
2445 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
2446 (aarch64_sqdmull_lane<mode>): Likewise.
2447 (aarch64_sqdmull_laneq<mode>): Likewise.
2448 (aarch64_sqdmull2_lane<mode>): Likewise.
2449 (aarch64_sqdmull2_laneq<mode>): Likewise.
2450
2451 2014-06-10 Richard Biener <rguenther@suse.de>
2452
2453 PR tree-optimization/61438
2454 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
2455 (eliminate_dom_walker::before_dom_children): Only try to inhibit
2456 insertion of IVs if running PRE.
2457 (eliminate): Adjust.
2458 (pass_pre::execute): Likewise.
2459 (pass_fre::execute): Likewise.
2460
2461 2014-06-10 Richard Biener <rguenther@suse.de>
2462
2463 PR middle-end/61456
2464 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
2465 Do not use the main variant for the type comparison.
2466 (ncr_compar): Likewise.
2467 (nonoverlapping_component_refs_p): Likewise.
2468
2469 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
2470
2471 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
2472 REG_CFA_RESTORE mode.
2473
2474 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
2475
2476 * config/i386/i386.c (expand_vec_perm_pblendv): New.
2477 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
2478 expand_vec_perm_pblendv.
2479
2480 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2481
2482 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
2483 available.
2484 Simplify description of __crc32d and __crc32cd intrinsics.
2485 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
2486 availability.
2487
2488 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
2489
2490 PR lto/61334
2491 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
2492 * config.in: Regenerate.
2493 * configure: Likewise.
2494
2495 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
2496
2497 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
2498 and public vars.
2499 (intersect_static_var_sets): Remove.
2500 (propagate): Do not prune local statics.
2501
2502 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2503
2504 PR fortran/60928
2505 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
2506 Set lastprivate_firstprivate even if omp_private_outer_ref
2507 langhook returns true.
2508 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
2509 langhook, call unshare_expr on new_var and call
2510 build_outer_var_ref to get the last argument.
2511
2512 2014-06-10 Marek Polacek <polacek@redhat.com>
2513
2514 PR c/60988
2515 * doc/extend.texi: Add cindex for transparent_union.
2516
2517 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
2518
2519 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
2520 init_symbolic_number ().
2521
2522 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
2523
2524 PR middle-end/61141
2525 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
2526 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
2527 (verify_rtl_sharing): Likewise.
2528
2529 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
2530
2531 PR c++/54442
2532 * tree.c (build_qualified_type): Use a canonical type for
2533 TYPE_CANONICAL.
2534
2535 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2536
2537 * config/arm/arm-modes.def: Remove XFmode.
2538
2539 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
2540
2541 PR target/61062
2542 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
2543 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
2544 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
2545 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
2546 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
2547 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
2548 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
2549 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
2550 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
2551
2552 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
2553
2554 * tree-core.h (tree_decl_with_vis): Remove section_name.
2555
2556 2014-06-09 Kito Cheng <kito@0xlab.org>
2557
2558 * ira.c (ira): Don't call init_caller_save if LRA enabled
2559 since LRA use its own infrastructure to handle that.
2560
2561 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2562
2563 * symtab.c (dump_symtab_base): Update dumping.
2564 (symtab_make_decl_local): Clear only DECL_COMDAT.
2565 * tree-vect-data-refs.c (Check that variable is static before
2566 tampering with sections.
2567 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
2568 (cgraph_create_virtual_clone): Likewise.
2569 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
2570 (decl_section_name, set_decl_section_name): New accessors.
2571 (find_decls_types_r): Do not walk section name
2572 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
2573 (decl_comdat_group, decl_comdat_group_id): Constify.
2574 (decl_section_name, set_decl_section_name): Update.
2575 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
2576 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
2577 (cgraph_make_node_local_1): Clear section and comdat group.
2578 * cgraph.h (set_comdat_group): Sanity check.
2579 (get_section, set_section): New.
2580 * ipa-comdats.c (ipa_comdats): Use get_section.
2581 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
2582 * lto-streamer-out.c: Do not follow section names.
2583 * c-family/c-common.c (handle_section_attribute): Update.
2584 * lto-cgraph.c (lto_output_node): Output section.
2585 (lto_output_varpool_node): Likewise.
2586 (read_comdat_group): Rename to ...
2587 (read_identifier): ... this one.
2588 (read_string_cst): New function.
2589 (input_node, input_varpool_node): Input section names.
2590 * tree-emutls.c (get_emutls_init_templ_addr): Update.
2591 (new_emutls_decl): Update.
2592 (secname_for_decl): Check section names only of static vars.
2593 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
2594 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
2595 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
2596 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
2597 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
2598 * config/mcore/mcore.c (mcore_unique_section): Likewise.
2599 * config/mips/mips.c (mips16_build_function_stub): Likewise.
2600 * config/v850/v850.c (v850_insert_attributes): Likewise.
2601 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
2602 Likewise.
2603 (h8300_handle_tiny_data_attribute): Likewise.
2604 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
2605 (bfin_handle_l2_attribute): Likewise.
2606
2607 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2608
2609 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
2610 remove static initializer.
2611
2612 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2613
2614 * varasm.c (use_blocks_for_decl_p): Check symbol table
2615 instead of alias attribute.
2616 (place_block_symbol): Recurse on aliases.
2617
2618 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2619
2620 * ipa-visibility.c: Include varasm.h
2621 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
2622
2623 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
2624
2625 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
2626 outputting aliases.
2627
2628 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
2629
2630 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
2631 from test_insn into GGC space escape via SET_SRC.
2632
2633 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
2634
2635 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
2636 call statement, if any.
2637 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
2638 statements, if any. Tidy up.
2639
2640 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2641
2642 PR target/61431
2643 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
2644 iterators, VSX_D that handles 64-bit types, and VSX_LE that
2645 handles swapping the two 64-bit double words on little endian
2646 systems. Include V1TImode and optionally TImode in VSX_LE so that
2647 these types are properly swapped. Change all of the insns and
2648 splits that do the 64-bit swaps to use VSX_LE.
2649 (vsx_le_perm_load_<mode>): Likewise.
2650 (vsx_le_perm_store_<mode>): Likewise.
2651 (splitters for little endian memory operations): Likewise.
2652 (vsx_xxpermdi2_le_<mode>): Likewise.
2653 (vsx_lxvd2x2_le_<mode>): Likewise.
2654 (vsx_stxvd2x2_le_<mode>): Likewise.
2655
2656 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
2657
2658 PR target/61423
2659 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
2660 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
2661 and corresponding splitters. Zero extend general register
2662 or memory input operand to XMM temporary. Enable for
2663 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
2664 (floatunssi<mode>2): Update expander predicate.
2665
2666 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
2667
2668 PR rtl-optimization/61325
2669 * lra-constraints.c (process_address_1): Check scale equal to one
2670 to prevent transformation: base + scale * index => base + new_reg.
2671
2672 2014-06-06 Richard Biener <rguenther@suse.de>
2673
2674 PR tree-optimization/59299
2675 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
2676 a def operand.
2677 (nearest_common_dominator_of_uses): Likewise.
2678 (statement_sink_location): Adjust. Support sinking loads.
2679
2680 2014-06-06 Martin Jambor <mjambor@suse.cz>
2681
2682 * ipa-prop.c (get_place_in_agg_contents_list): New function.
2683 (build_agg_jump_func_from_list): Likewise.
2684 (determine_known_aggregate_parts): Renamed to
2685 determine_locally_known_aggregate_parts. Moved some functionality
2686 to the two functions above, removed bound checks.
2687
2688 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
2689
2690 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
2691 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
2692 (aarch64_progress_pointer): Likewise.
2693 (aarch64_copy_one_part_and_move_pointers): Likewise.
2694 (aarch64_expand_movmen): Likewise.
2695 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
2696 * config/aarch64/aarch64.md (movmem<mode>): New.
2697
2698 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
2699
2700 * targhooks.c (default_add_stmt_cost): Call target specific
2701 hook instead of default one.
2702
2703 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
2704
2705 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
2706 endianness instead of host endianness.
2707 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
2708 comments.
2709
2710 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
2711
2712 PR debug/53927
2713 * function.c (instantiate_decls): Process the saved static chain.
2714 (expand_function_start): If not optimizing, save the static chain
2715 onto the stack.
2716 * tree-nested.c (convert_all_function_calls): Always create the static
2717 chain for nested functions if not optimizing.
2718
2719 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
2720
2721 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
2722
2723 2014-06-06 Richard Biener <rguenther@suse.de>
2724
2725 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
2726 (construct_init_block): Likewise.
2727 (construct_exit_block): Likewise.
2728 (pass_expand::execute): Likewise.
2729 * graphite.c (graphite_transforms): Replace check for current_loops
2730 with a check for > 1 loops.
2731 (pass_graphite_transforms::execute): Adjust.
2732 * ipa-split.c (split_function): Remove check for current_loops.
2733 * omp-low.c (expand_parallel_call): Likewise.
2734 (expand_omp_for_init_counts): Likewise.
2735 (extract_omp_for_update_vars): Likewise.
2736 (expand_omp_for_generic): Likewise.
2737 (expand_omp_sections): Likewise.
2738 (expand_omp_target): Likewise.
2739 * tracer.c (tail_duplicate): Likewise.
2740 (pass_tracer::execute): Likewise.
2741 * trans-mem.c (expand_transaction): Likewise.
2742 * tree-complex.c (expand_complex_div_wide): Likewise.
2743 * tree-eh.c (lower_resx): Likewise.
2744 (cleanup_empty_eh_merge_phis): Likewise.
2745 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
2746 current_loops with a check for > 1 loops.
2747 (pass_predcom::execute): Adjust.
2748 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
2749 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
2750 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
2751 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
2752 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2753 * tree-switch-conversion.c (process_switch): Likewise.
2754 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
2755 * tree-vrp.c (vrp_visit_phi_node): Likewise.
2756 (execute_vrp): Likewise.
2757 * ubsan.c (ubsan_expand_null_ifn): Likewise.
2758
2759 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
2760
2761 * rtl.h (insn_location): Declare.
2762 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
2763 with UNKNOWN_LOCATION.
2764 * emit-rtl.c (insn_location): New function.
2765 * final.c (notice_source_line): Check that the instruction has a
2766 location before retrieving it and use insn_location.
2767 * modulo-sched.c (loop_single_full_bb_p): Likewise.
2768 * print-rtl.c (print_rtx): Likewise.
2769
2770 2014-06-06 Richard Biener <rguenther@suse.de>
2771
2772 * passes.def: Move 2nd VRP pass before phi-only-cprop.
2773
2774 2014-06-06 Christian Bruel <christian.bruel@st.com>
2775
2776 PR tree-optimization/43934
2777 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
2778 cost.
2779
2780 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
2781
2782 * ira-lives.c (single_reg_class): Add missing break. Explicitly
2783 return NO_REGS for extra address and memory constraints. Handle
2784 operands that match (or are equivalent to something that matches)
2785 extra constant constraints. Ignore other non-register operands.
2786
2787 2014-06-06 Alan Modra <amodra@gmail.com>
2788
2789 PR target/61300
2790 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
2791 * doc/tm.texi: Regenerate.
2792 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
2793 Use throughout in place of REG_PARM_STACK_SPACE.
2794 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
2795 "incoming" param. Pass to rs6000_function_parms_need_stack.
2796 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
2797 prototype_p when incoming. Use function decl when incoming
2798 to handle K&R style functions.
2799 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
2800 (INCOMING_REG_PARM_STACK_SPACE): Define.
2801
2802 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2803
2804 PR target/52472
2805 * cfgexpand.c (expand_debug_expr): Use address space of nested
2806 TREE_TYPE for ADDR_EXPR and MEM_REF.
2807
2808 2014-06-05 Jeff Law <law@redhat.com>
2809
2810 PR tree-optimization/61289
2811 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
2812 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
2813 looking for those which match LHS. All callers changed.
2814 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
2815 parameters and code which manipulated them. All callers changed.
2816 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
2817 and DST_MAP parameters. Simplify invalidation code by just calling
2818 invalidate_equivalences. All callers changed.
2819 (thread_across_edge): Simplify now that we don't need to maintain
2820 the map of equivalences to invalidate.
2821
2822 2014-06-05 Kai Tietz <ktietz@redhat.com>
2823 Richard Henderson <rth@redhat.com>
2824
2825 PR target/46219
2826 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
2827 checking for !TARGET_X32.
2828 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
2829 (sibcall_intern): New define_insn, plus required peepholes.
2830 (sibcall_pop_intern): Likewise.
2831 (sibcall_value_intern): Likewise.
2832 (sibcall_value_pop_intern): Likewise.
2833
2834 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
2835
2836 * tree-inline.c (tree_function_versioning): Check DF info existence
2837 before accessing it.
2838
2839 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2840
2841 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
2842 frame_size.
2843 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
2844 aarch64_frame hard_fp_offset and frame_size.
2845 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
2846 frame_size; remove original_frame_size.
2847 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
2848 (aarch64_initial_elimination_offset): Remove frame_size and
2849 offset. Use aarch64_frame frame_size.
2850
2851 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2852 Jiong Wang <jiong.wang@arm.com>
2853 Renlin <renlin.li@arm.com>
2854
2855 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
2856 initialization of R30 offset. Update offset. Iterate core
2857 regisers upto X30. Remove X29, X30 specific code.
2858
2859 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2860 Jiong Wang <jiong.wang@arm.com>
2861
2862 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
2863 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
2864 (aarch64_register_saved_on_entry): Adjust test.
2865
2866 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2867
2868 * config/aarch64/aarch64.h (machine_function): Move
2869 saved_varargs_size from here...
2870 (aarch64_frame): ... to here.
2871
2872 * config/aarch64/aarch64.c (aarch64_expand_prologue)
2873 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
2874 (aarch64_initial_elimination_offset)
2875 (aarch64_setup_incoming_varargs): Adjust location of
2876 saved_varargs_size.
2877
2878 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
2879
2880 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
2881 layout comment.
2882
2883 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
2884 Prachi Godbole <Prachi.Godbole@imgtec.com>
2885
2886 * config/mips/mips-cpus.def: Add definition for p5600. Updated
2887 mips32r5 entry to use PROCESSOR_P5600.
2888 * config/mips/mips-tables.opt: Regenerate.
2889 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
2890 * config/mips/mips.c (mips_fmadd_bypass): New function.
2891 (mips_rtx_cost_data): Add costs for p5600.
2892 (mips_issue_rate): Add support for p5600.
2893 (mips_multipass_dfa_lookahead): Likewise.
2894 * config/mips/mips.h (TUNE_P5600): New define.
2895 (TUNE_MACC_CHAINS): Add TUNE_P5600.
2896 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
2897 * config/mips/mips.md: Include p5600.md.
2898 (processor): Add p5600.
2899 * config/mips/p5600.md: New file.
2900
2901 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
2902
2903 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
2904 * config/i386/predicates.md (palignr_operand): New.
2905 Indicates if permutation is suitable for palignr instruction.
2906
2907 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
2908
2909 PR tree-optimization/61319
2910 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
2911 stmt belongs to loop.
2912
2913 2014-06-05 Richard Biener <rguenther@suse.de>
2914
2915 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
2916 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
2917 (lookup_tmp_var): Adjust.
2918 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
2919
2920 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2921
2922 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
2923
2924 2014-06-05 Marek Polacek <polacek@redhat.com>
2925
2926 PR c/49706
2927 * doc/invoke.texi: Document -Wlogical-not-parentheses.
2928
2929 2014-06-04 Tom de Vries <tom@codesourcery.com>
2930
2931 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
2932 CONST_INT.
2933
2934 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
2935
2936 PR tree-optimization/61385
2937 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
2938
2939 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
2940
2941 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
2942 changed to use fatal_error.
2943 (main): Ensure lto_wrapper_cleanup is run atexit.
2944
2945 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2946
2947 * lra-constraints.c (valid_address_p): Move earlier in file.
2948 (address_eliminator): New structure.
2949 (satisfies_memory_constraint_p): New function.
2950 (satisfies_address_constraint_p): Likewise.
2951 (process_alt_operands, process_address, curr_insn_transform): Use them.
2952
2953 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2954
2955 * lra-int.h (lra_static_insn_data): Make operand_alternative a
2956 const pointer.
2957 (target_lra_int, default_target_lra_int, this_target_lra_int)
2958 (op_alt_data): Delete.
2959 * lra.h (lra_init): Delete.
2960 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
2961 (init_insn_code_data_once): Remove op_alt_data handling.
2962 (finish_insn_code_data_once): Likewise.
2963 (init_op_alt_data): Delete.
2964 (get_static_insn_data): Initialize operand_alternative to null.
2965 (free_insn_recog_data): Cast operand_alternative before freeing it.
2966 (setup_operand_alternative): Take the operand_alternative as
2967 parameter and assume it isn't already cached in the static
2968 insn data.
2969 (lra_set_insn_recog_data): Update accordingly.
2970 (lra_init): Delete.
2971 * ira.c (ira_init): Don't call lra_init.
2972 * target-globals.h (this_target_lra_int): Declare.
2973 (target_globals): Remove lra_int.
2974 (restore_target_globals): Update accordingly.
2975 * target-globals.c: Don't include lra-int.h.
2976 (default_target_globals, save_target_globals): Remove lra_int.
2977
2978 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
2979
2980 * recog.h (operand_alternative): Convert reg_class, reject,
2981 matched and matches into bitfields.
2982 (preprocess_constraints): New overload.
2983 (preprocess_insn_constraints): New function.
2984 (preprocess_constraints): Take the insn as parameter.
2985 (recog_op_alt): Change into a pointer.
2986 (target_recog): Add x_op_alt.
2987 * recog.c (asm_op_alt): New variable.
2988 (recog_op_alt): Change into a pointer.
2989 (preprocess_constraints): New overload, replacing the old function
2990 definition with one that doesn't use global state.
2991 (preprocess_insn_constraints): New function.
2992 (preprocess_constraints): Use them. Take the insn as parameter.
2993 Use asm_op_alt for asms.
2994 (recog_init): Free existing x_op_alt entries.
2995 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
2996 pointer const.
2997 (make_early_clobber_and_input_conflicts): Likewise.
2998 (process_bb_node_lives): Pass the insn to process_constraints.
2999 * reg-stack.c (check_asm_stack_operands): Likewise.
3000 (subst_asm_stack_regs): Likewise.
3001 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
3002 * regrename.c (build_def_use): Likewise.
3003 * sched-deps.c (sched_analyze_insn): Likewise.
3004 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
3005 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
3006 (note_invalid_constants): Likewise.
3007 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3008 (ix86_legitimate_combined_insn): Make operand_alternative pointer
3009 const.
3010
3011 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
3012
3013 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
3014 * ira-lives.c (check_and_make_def_conflict): Check for disabled
3015 alternatives.
3016 (make_early_clobber_and_input_conflicts): Likewise.
3017 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3018
3019 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
3020
3021 * recog.h (alternative_class): New function.
3022 (which_op_alt): Return a const recog_op_alt.
3023 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
3024 (subst_asm_stack_regs): Likewise.
3025 * config/arm/arm.c (note_invalid_constants): Likewise.
3026 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
3027 the operand_alternative; use alternative class instead.
3028 * sel-sched.c (get_reg_class): Likewise.
3029 * regrename.c (build_def_use): Likewise.
3030 (hide_operands, restore_operands, record_out_operands): Update type
3031 accordingly.
3032
3033 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
3034
3035 * recog.h (recog_op_alt): Convert to a flat array.
3036 (which_op_alt): New function.
3037 * recog.c (recog_op_alt): Convert to a flat array.
3038 (preprocess_constraints): Update accordingly, grouping all
3039 operands of the same alternative together, rather than the
3040 other way around.
3041 * ira-lives.c (check_and_make_def_conflict): Likewise.
3042 (make_early_clobber_and_input_conflicts): Likewise.
3043 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
3044 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
3045 (subst_asm_stack_regs): Likewise.
3046 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
3047 * regrename.c (hide_operands, record_out_operands): Likewise.
3048 (build_def_use): Likewise.
3049 * sel-sched.c (get_reg_class): Likewise.
3050 * config/arm/arm.c (note_invalid_constants): Likewise.
3051
3052 2014-06-04 Jason Merrill <jason@redhat.com>
3053
3054 PR c++/51253
3055 PR c++/61382
3056 * gimplify.c (gimplify_arg): Non-static.
3057 * gimplify.h: Declare it.
3058
3059 2014-06-04 Richard Biener <rguenther@suse.de>
3060
3061 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
3062 TREE_PUBLIC and DECL_EXTERNAL decls.
3063
3064 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
3065
3066 * regcprop.c (copyprop_hardreg_forward_1): Account for
3067 HARD_REGNO_CALL_PART_CLOBBERED.
3068
3069 2014-06-04 Richard Biener <rguenther@suse.de>
3070
3071 * configure.ac: Check whether the underlying type of int64_t
3072 is long or long long.
3073 * configure: Regenerate.
3074 * config.in: Likewise.
3075 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
3076 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
3077
3078 2014-06-04 Richard Biener <rguenther@suse.de>
3079
3080 PR tree-optimization/60098
3081 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
3082 we hit a kill.
3083 (dse_optimize_stmt): Simplify, now that we found a kill
3084 earlier.
3085
3086 2014-06-04 Richard Biener <rguenther@suse.de>
3087
3088 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
3089 of accesses with non-invariant address.
3090
3091 2014-06-04 Martin Liska <mliska@suse.cz>
3092
3093 * cgraph.h (cgraph_make_wrapper): New function introduced.
3094 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
3095 * ipa-inline.h (inline_analyze_function): The function is global.
3096 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
3097
3098 2014-06-04 Martin Liska <mliska@suse.cz>
3099
3100 * tree.h (private_lookup_attribute_starting): New function.
3101 (lookup_attribute_starting): Likewise.
3102 * tree.c (private_lookup_attribute_starting): Likewise.
3103
3104 2014-06-04 Martin Liska <mliska@suse.cz>
3105
3106 * cgraph.h (expand_thunk): New argument added.
3107 (address_taken_from_non_vtable_p): New global function.
3108 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
3109 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
3110 * cgraphunit.c (analyze_function): Likewise.
3111 (assemble_thunks_and_aliases): Argument added to call.
3112 (expand_thunk): New argument forces to produce GIMPLE thunk.
3113
3114 2014-06-04 Martin Liska <mliska@suse.cz>
3115
3116 * coverage.h (coverage_compute_cfg_checksum): Argument added.
3117 * coverage.c (coverage_compute_cfg_checksum): Likewise.
3118 * profile.c (branch_prob): Likewise.
3119
3120 2014-06-04 Martin Jambor <mjambor@suse.cz>
3121
3122 PR ipa/61340
3123 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
3124 handler for switch on an ipa_ref_use enum.
3125 * ipa-reference.c (analyze_function): Likewise.
3126
3127 2014-06-04 Kai Tietz <ktietz@redhat.com>
3128
3129 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
3130 from old call-instruction.
3131
3132 2014-06-04 Bin Cheng <bin.cheng@arm.com>
3133
3134 * config/aarch64/aarch64.c (aarch64_classify_address)
3135 (aarch64_legitimize_reload_address): Support full addressing modes
3136 for vector modes.
3137 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
3138 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
3139
3140 2014-06-03 Andrew Pinski <apinski@cavium.com>
3141
3142 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
3143 for OP0.
3144
3145 2014-06-03 Andrew Pinski <apinski@cavium.com>
3146
3147 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
3148 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
3149
3150 2014-06-03 Kai Tietz <ktietz@redhat.com>
3151
3152 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
3153 for 64-bit ms-abi.
3154
3155 2014-06-03 Dehao Chen <dehao@google.com>
3156
3157 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
3158 the same loop.
3159
3160 2014-06-03 Marek Polacek <polacek@redhat.com>
3161
3162 PR c/60439
3163 * doc/invoke.texi: Document -Wswitch-bool.
3164 * function.c (stack_protect_epilogue): Cast controlling expression of
3165 the switch to int.
3166 * gengtype.c (walk_type): Generate switch expression with its
3167 controlling expression cast to int.
3168
3169 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
3170
3171 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
3172 and attiny841.
3173 * config/avr/avr-tables.opt: Regenerate.
3174 * config/avr/t-multilib: Regenerate.
3175 * doc/avr-mmcu.texi: Regenerate.
3176
3177 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
3178 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3179
3180 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
3181 (ata6617c, ata664251): Add new avr35 devices.
3182 (ata6612c): Add new avr4 device.
3183 (ata6613c, ata6614q): Add new avr5 devices.
3184 * config/avr/avr-tables.opt: Regenerate.
3185 * config/avr/t-multilib: Regenerate.
3186 * doc/avr-mmcu.texi: Regenerate.
3187
3188 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
3189
3190 * gcc/config/aarch64/aarch64-builtins.c
3191 (aarch64_types_binop_ssu_qualifiers): New static data.
3192 (TYPES_BINOP_SSU): Define.
3193 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
3194 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
3195 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
3196 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
3197 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
3198 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
3199 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
3200 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
3201 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
3202 suffix to builtin function name, remove cast.
3203 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
3204 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
3205 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
3206
3207 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
3208
3209 * gcc/config/aarch64/aarch64-builtins.c
3210 (aarch64_types_binop_uus_qualifiers,
3211 aarch64_types_shift_to_unsigned_qualifiers,
3212 aarch64_types_unsigned_shiftacc_qualifiers): Define.
3213 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
3214 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
3215 sqshlu_n, uqshl_n): Update qualifiers.
3216 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
3217 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
3218 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
3219 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
3220 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
3221 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
3222 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
3223 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
3224 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
3225 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
3226 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
3227 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
3228 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
3229 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
3230 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
3231 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
3232 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
3233 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
3234 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
3235 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
3236 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
3237 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
3238 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
3239 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
3240 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
3241 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
3242 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
3243
3244 2014-06-03 Teresa Johnson <tejohnson@google.com>
3245
3246 * tree-sra.c (modify_function): Record caller nodes after rebuild.
3247
3248 2014-06-02 Jason Merrill <jason@redhat.com>
3249
3250 PR c++/61020
3251 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
3252
3253 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
3254
3255 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
3256 location == 0.
3257
3258 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
3259
3260 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
3261 New pattern.
3262 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
3263 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
3264 * config/aarch64/iterators.md (REVERSE): New iterator.
3265 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
3266 (rev_op): New int_attribute.
3267 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
3268 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
3269 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
3270 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
3271 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
3272 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
3273 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
3274 Replace temporary __asm__ with __builtin_shuffle.
3275
3276 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
3277
3278 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
3279 mips64r5.
3280 * config/mips/mips-tables.opt: Regenerate.
3281 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
3282 to use mips_isa_rev rather than ISA_MIPS32R2.
3283 * config/mips/mips.h (ISA_MIPS32R3): New define.
3284 (ISA_MIPS32R5): New define.
3285 (ISA_MIPS64R3): New define.
3286 (ISA_MIPS64R5): New define.
3287 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
3288 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
3289 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
3290 and mips64r5.
3291 (MIPS_ISA_SYNCI_SPEC): Likewise.
3292 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
3293 (LINK_SPEC): Added mips32r3 and mips32r5.
3294 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
3295 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
3296 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
3297 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
3298 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
3299 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
3300 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
3301
3302 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
3303
3304 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
3305 options.
3306 * config/mips/mips.opt (mxpa): New option.
3307 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
3308 assembler.
3309
3310 2014-06-03 Martin Jambor <mjambor@suse.cz>
3311
3312 PR ipa/61160
3313 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
3314 thunks.
3315
3316 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
3317
3318 PR tree-optimization/61328
3319 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
3320 initialization from find_bswap_or_nop_1.
3321 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
3322 in source_expr2 before using the size value the function sets. Also
3323 make use of init_symbolic_number () in both the old place and
3324 find_bswap_or_nop_load () to avoid reading uninitialized memory when
3325 doing recursion in the GIMPLE_BINARY_RHS case.
3326
3327 2014-06-03 Richard Biener <rguenther@suse.de>
3328
3329 PR tree-optimization/61383
3330 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
3331 stmts can't trap.
3332
3333 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
3334
3335 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
3336 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
3337 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
3338 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
3339 in this file.
3340 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
3341 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
3342 * system.h: ...here and make it unconditional.
3343 * target.def (conditional_register_usage): Mention
3344 define_register_constraint instead of old-style constraint macros.
3345 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
3346 * doc/tm.texi: Regenerate.
3347 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
3348 protected by !USE_MD_CONSTRAINTS.
3349 * config/frv/frv.md: Remove quote from old version of documentation.
3350 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
3351 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
3352 CONST_DOUBLE_OK_FOR_LETTER.
3353 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
3354
3355 2014-06-02 Andrew Pinski <apinski@cavium.com>
3356
3357 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
3358 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
3359 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
3360 file whose name depends on -mabi= and -mbig-endian.
3361 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
3362 Handle LP64 better and handle ilp32 too.
3363 (MULTILIB_OPTIONS): Delete.
3364 (MULTILIB_DIRNAMES): Delete.
3365
3366 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
3367
3368 * expr.h: Remove prototypes of functions defined in builtins.c.
3369 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
3370 Remove prototypes of functions defined in builtins.c.
3371 * builtins.h: Update prototype list to include all exported functions.
3372 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
3373 no_c99_libc_has_function): Move to targhooks.c
3374 (build_string_literal, build_call_expr_loc_array,
3375 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
3376 to tree.c.
3377 (expand_builtin_object_size, fold_builtin_object_size): Make static.
3378 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
3379 no_c99_libc_has_function): Relocate from builtins.c.
3380 * tree.c: Include builtins.h.
3381 (build_call_expr_loc_array, build_call_expr_loc_vec,
3382 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
3383 from builtins.c.
3384 * fold-const.h (fold_fma): Move prototype to builtins.h.
3385 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
3386 * asan.c: Include builtins.h.
3387 * cfgexpand.c: Likewise.
3388 * convert.c: Likewise.
3389 * emit-rtl.c: Likewise.
3390 * except.c: Likewise.
3391 * expr.c: Likewise.
3392 * fold-const.c: Likewise.
3393 * gimple-fold.c: Likewise.
3394 * gimple-ssa-strength-reduction.c: Likewise.
3395 * gimplify.c: Likewise.
3396 * ipa-inline.c: Likewise.
3397 * ipa-prop.c: Likewise.
3398 * lto-streamer-out.c: Likewise.
3399 * stmt.c: Likewise.
3400 * tree-inline.c: Likewise.
3401 * tree-object-size.c: Likewise.
3402 * tree-sra.c: Likewise.
3403 * tree-ssa-ccp.c: Likewise.
3404 * tree-ssa-forwprop.c: Likewise.
3405 * tree-ssa-loop-ivcanon.c: Likewise.
3406 * tree-ssa-loop-ivopts.c: Likewise.
3407 * tree-ssa-math-opts.c: Likewise.
3408 * tree-ssa-reassoc.c: Likewise.
3409 * tree-ssa-threadedge.c: Likewise.
3410 * tree-streamer-in.c: Likewise.
3411 * tree-vect-data-refs.c: Likewise.
3412 * tree-vect-patterns.c: Likewise.
3413 * tree-vect-stmts.c: Likewise.
3414 * config/aarch64/aarch64.c: Likewise.
3415 * config/alpha/alpha.c: Likewise.
3416 * config/arc/arc.c: Likewise.
3417 * config/arm/arm.c: Likewise.
3418 * config/avr/avr.c: Likewise.
3419 * config/bfin/bfin.c: Likewise.
3420 * config/c6x/c6x.c: Likewise.
3421 * config/cr16/cr16.c: Likewise.
3422 * config/cris/cris.c: Likewise.
3423 * config/epiphany/epiphany.c: Likewise.
3424 * config/fr30/fr30.c: Likewise.
3425 * config/frv/frv.c: Likewise.
3426 * config/h8300/h8300.c: Likewise.
3427 * config/i386/i386.c: Likewise.
3428 * config/i386/winnt.c: Likewise.
3429 * config/ia64/ia64.c: Likewise.
3430 * config/iq2000/iq2000.c: Likewise.
3431 * config/lm32/lm32.c: Likewise.
3432 * config/m32c/m32c.c: Likewise.
3433 * config/m32r/m32r.c: Likewise.
3434 * config/m68k/m68k.c: Likewise.
3435 * config/mcore/mcore.c: Likewise.
3436 * config/mep/mep.c: Likewise.
3437 * config/microblaze/microblaze.c: Likewise.
3438 * config/mips/mips.c: Likewise.
3439 * config/mmix/mmix.c: Likewise.
3440 * config/mn10300/mn10300.c: Likewise.
3441 * config/moxie/moxie.c: Likewise.
3442 * config/msp430/msp430.c: Likewise.
3443 * config/nds32/nds32.c: Likewise.
3444 * config/pa/pa.c: Likewise.
3445 * config/pdp11/pdp11.c: Likewise.
3446 * config/picochip/picochip.c: Likewise.
3447 * config/rl78/rl78.c: Likewise.
3448 * config/rs6000/rs6000.c: Likewise.
3449 * config/rx/rx.c: Likewise.
3450 * config/s390/s390.c: Likewise.
3451 * config/score/score.c: Likewise.
3452 * config/sh/sh.c: Likewise.
3453 * config/sparc/sparc.c: Likewise.
3454 * config/spu/spu.c: Likewise.
3455 * config/stormy16/stormy16.c: Likewise.
3456 * config/tilegx/tilegx.c: Likewise.
3457 * config/tilepro/tilepro.c: Likewise.
3458 * config/v850/v850.c: Likewise.
3459 * config/vax/vax.c: Likewise.
3460 * config/xtensa/xtensa.c: Likewise.
3461
3462 2014-06-02 Jeff Law <law@redhat.com>
3463
3464 PR rtl-optimization/61094
3465 * ree.c (combine_reaching_defs): Do not reextend an insn if it
3466 was marked as do_no_reextend. If a copy is needed to eliminate
3467 an extension, then mark it as do_not_reextend.
3468
3469 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
3470
3471 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
3472
3473 2014-06-02 Richard Henderson <rth@redhat.com>
3474
3475 PR target/61336
3476 * config/alpha/alpha.c (print_operand_address): Allow symbolic
3477 addresses inside asms. Use output_operand_lossage instead of
3478 gcc_unreachable.
3479
3480 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
3481
3482 PR target/61239
3483 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
3484 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
3485
3486 2014-06-02 Tom de Vries <tom@codesourcery.com>
3487
3488 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
3489 case that x has VOIDmode.
3490
3491 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
3492
3493 * varasm.c (copy_constant): Delete function.
3494 (build_constant_desc): Don't call it.
3495
3496 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3497
3498 PR target/61154
3499 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
3500 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
3501 with immediate_operand.
3502
3503 2014-06-02 Andreas Schwab <schwab@suse.de>
3504
3505 * config/ia64/ia64.c
3506 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
3507 pending_data_specs first.
3508
3509 2014-06-02 Richard Biener <rguenther@suse.de>
3510
3511 PR tree-optimization/61378
3512 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
3513 valueized_anything.
3514
3515 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
3516
3517 * config/i386/constraints.md (Bw): Rename from 'w'.
3518 (Bz): Rename from 'z'.
3519 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
3520
3521 2014-06-01 Kai Tietz <ktietz@redhat.com>
3522
3523 PR target/61377
3524 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
3525 * config/i386/i386.md (sibcall_insn_operand): Use Bs
3526 instead of m constraint.
3527
3528 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
3529
3530 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
3531 a separate alternative where the scratch operand 2 is marked as
3532 early clobber.
3533
3534 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
3535
3536 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
3537 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
3538 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
3539 and __builtins_arm_get_fpscr.
3540 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
3541 __builtins_arm_get_fpscr.
3542 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
3543 __builtins_arm_ldfpscr.
3544 (arm_atomic_assign_expand_fenv): New function.
3545 * config/arm/vfp.md (set_fpscr): New pattern.
3546 (get_fpscr) : Likewise.
3547 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
3548 VUNSPEC_SET_FPSCR.
3549 * doc/extend.texi (AARCH64 Built-in Functions) : Document
3550 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
3551
3552 2014-05-30 Jakub Jelinek <jakub@redhat.com>
3553
3554 * asan.c (report_error_func): Add SLOW_P argument, use
3555 BUILT_IN_ASAN_*_N if set.
3556 (build_check_stmt): Likewise.
3557 (instrument_derefs): If T has insufficient alignment,
3558 force same handling as for odd sizes.
3559
3560 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
3561 BUILT_IN_ASAN_REPORT_STORE_N): New.
3562 * asan.c (struct asan_mem_ref): Change access_size type to
3563 HOST_WIDE_INT.
3564 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
3565 update_mem_ref_hash_table): Likewise.
3566 (asan_mem_ref_hasher::hash): Hash in a HWI.
3567 (report_error_func): Change size_in_bytes argument to HWI.
3568 Use *_N builtins if size_in_bytes is larger than 16 or not power of
3569 two.
3570 (build_shadow_mem_access): New function.
3571 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
3572 Handle size_in_bytes not power of two or larger than 16.
3573 (instrument_derefs): Don't give up if size_in_bytes is not
3574 power of two or is larger than 16.
3575
3576 2014-05-30 Kai Tietz <ktietz@redhat.com>
3577
3578 PR target/60104
3579 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
3580 for sibling-tail-calls.
3581 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
3582 to its use.
3583 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
3584 (sibcall_insn_operand): Add check for sibcall_memory_operand.
3585
3586 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3587
3588 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
3589 * config/avr/avr-tables.opt: Regenerate.
3590 * config/avr/t-multilib: Regenerate.
3591 * doc/avr-mmcu.texi: Regenerate.
3592
3593 2014-05-30 Ian Lance Taylor <iant@google.com>
3594
3595 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
3596 target("sse").
3597
3598 2014-05-30 Tom de Vries <tom@codesourcery.com>
3599
3600 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
3601 Redefine as true.
3602
3603 2014-05-30 Tom de Vries <tom@codesourcery.com>
3604
3605 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
3606 * lra.c (initialize_lra_reg_info_element): Add init of
3607 actual_call_used_reg_set field.
3608 (lra): Call lra_create_live_ranges before lra_inheritance for
3609 -fuse-caller-save.
3610 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
3611 -fuse-caller-save.
3612 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
3613 instead of call_used_reg_set for -fuse-caller-save.
3614 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
3615
3616 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3617
3618 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
3619 to mov_imm.
3620 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
3621
3622 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
3623
3624 * ira.c (ira_get_dup_out_num): Check for output operands at
3625 the start of the loop. Handle cases where an included alternative
3626 follows an excluded one.
3627
3628 2014-05-29 Mike Stump <mikestump@comcast.net>
3629
3630 PR debug/61352
3631 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
3632 post ld passes when lto is used.
3633
3634 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
3635
3636 PR rtl-optimization/61325
3637 * lra-constraints.c (process_address): Rename to process_address_1.
3638 (process_address): New function.
3639
3640 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
3641
3642 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
3643 TYPES_BINOPV): New static data.
3644 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
3645 New builtin.
3646 * config/aarch64/aarch64-simd.md (aarch64_ext,
3647 aarch64_im_lane_boundsi): New patterns.
3648 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
3649 patterns for EXT.
3650 (aarch64_evpc_ext): New function.
3651
3652 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
3653
3654 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
3655 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
3656 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
3657 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
3658 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
3659
3660 2014-05-29 Tom de Vries <tom@codesourcery.com>
3661
3662 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
3663
3664 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
3665 Richard Sandiford <rdsandiford@googlemail.com>
3666
3667 * arm/iterators.md (shiftable_ops): New code iterator.
3668 (t2_binop0, arith_shift_insn): New code attributes.
3669 * arm/predicates.md (shift_nomul_operator): New predicate.
3670 * arm/arm.md (insn_enabled): Delete.
3671 (enabled): Remove insn_enabled test.
3672 (*arith_shiftsi): Delete. Replace with ...
3673 (*<arith_shift_insn>_multsi): ... new pattern.
3674 (*<arith_shift_insn>_shiftsi): ... new pattern.
3675 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
3676
3677 2014-05-29 Radovan Obradovic <robradovic@mips.com>
3678 Tom de Vries <tom@codesourcery.com>
3679
3680 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
3681 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
3682 clobber.
3683 (mips_split_call): Use POST_CALL_TMP_REG.
3684 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
3685
3686 2014-05-29 Tom de Vries <tom@codesourcery.com>
3687
3688 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
3689 with #ifdef STACK_REGS.
3690
3691 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
3692
3693 * varasm.c (get_variable_section): Walk aliases.
3694 (place_block_symbol): Walk aliases.
3695
3696 2014-05-28 Tom de Vries <tom@codesourcery.com>
3697
3698 Revert:
3699 2014-05-28 Tom de Vries <tom@codesourcery.com>
3700
3701 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
3702 * lra.c (initialize_lra_reg_info_element): Add init of
3703 actual_call_used_reg_set field.
3704 (lra): Call lra_create_live_ranges before lra_inheritance for
3705 -fuse-caller-save.
3706 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
3707 -fuse-caller-save.
3708 * lra-constraints.c (need_for_call_save_p): Use
3709 actual_call_used_reg_set instead of call_used_reg_set for
3710 -fuse-caller-save.
3711 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
3712
3713 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3714
3715 * doc/md.texi: Document that the % constraint character must
3716 be at the beginning of the string.
3717 * genoutput.c (validate_insn_alternatives): Check that '=',
3718 '+' and '%' only appear at the beginning of a constraint.
3719 * ira.c (commutative_constraint_p): Delete.
3720 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
3721 at the start of the string.
3722 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
3723 duplicate '='s.
3724 * config/arm/neon.md (bicdi3_neon): Likewise.
3725 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
3726 (slt_si, sltu_si): Likewise.
3727 * config/vax/vax.md (sbcdi3): Likewise.
3728 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
3729 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
3730 (mul64): Move '%' to beginning of constraint.
3731 * config/arm/arm.md (*xordi3_insn): Likewise.
3732 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
3733 (xorsi3): Likewise.
3734
3735 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3736
3737 * doc/md.texi: Document the restrictions on the "enabled" attribute.
3738
3739 2014-05-28 Jason Merrill <jason@redhat.com>
3740
3741 PR c++/47202
3742 * cgraph.h (symtab_node::get_comdat_group_id): New.
3743 * cgraphunit.c (analyze_functions): Call it.
3744 * symtab.c (dump_symtab_node): Likewise.
3745 * tree.c (decl_comdat_group_id): New.
3746 * tree.h: Declare it.
3747 * lto-streamer-out.c (write_symbol): Use it.
3748 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
3749
3750 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3751
3752 PR bootstrap/PR61146
3753 * wide-int.cc: Do not include longlong.h when compiling with clang.
3754
3755 2014-05-28 Richard Biener <rguenther@suse.de>
3756
3757 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
3758 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
3759 (vrp_visit_assignment_or_call): Print less vertical space.
3760 (vrp_visit_stmt): Likewise.
3761 (vrp_visit_phi_node): Likewise. For a PHI argument with
3762 VR_VARYING range consider recording it as copy.
3763
3764 2014-05-28 Richard Biener <rguenther@suse.de>
3765
3766 Revert
3767 2014-05-28 Richard Biener <rguenther@suse.de>
3768
3769 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
3770
3771 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3772
3773 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
3774 sufficiently aligned and an offset is used at the same time.
3775 (expand_expr_real_1): Likewise.
3776
3777 2014-05-28 Richard Biener <rguenther@suse.de>
3778
3779 PR middle-end/61045
3780 * fold-const.c (fold_comparison): When folding
3781 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
3782 the sign of the remaining constant operand stays the same.
3783
3784 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
3785
3786 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
3787 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
3788 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
3789 to the assembler.
3790 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
3791 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
3792 (m32bit-doubles) Likewise.
3793 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
3794 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
3795 option for RL78.
3796
3797 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3798
3799 * configure.ac ($gcc_cv_ld_clearcap): New test.
3800 * configure: Regenerate.
3801 * config.in: Regenerate.
3802 * config/sol2.opt (mclear-hwcap): New option.
3803 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
3804 * config/sol2-clearcap.map: Moved here from
3805 testsuite/gcc.target/i386/clearcap.map.
3806 * config/sol2-clearcapv2.map: Move here from
3807 gcc.target/i386/clearcapv2.map.
3808 * config/t-sol2 (install): Depend on install-clearcap-map.
3809 (install-clearcap-map): New target.
3810 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
3811 -mclear-hwcap.
3812
3813 2014-05-28 Richard Biener <rguenther@suse.de>
3814
3815 * hwint.h (*_HALF_WIDE_INT*): Move to ...
3816 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
3817 ... here and remove the rest.
3818 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
3819
3820 2014-05-28 Richard Biener <rguenther@suse.de>
3821
3822 PR tree-optimization/61335
3823 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
3824 new range fails, drop to varying.
3825
3826 2014-05-28 Olivier Hainque <hainque@adacore.com>
3827
3828 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
3829 (CPP_SPEC): Add entry for -mcpu=8548.
3830 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
3831 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
3832
3833 2014-05-28 Tom de Vries <tom@codesourcery.com>
3834
3835 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
3836 * lra.c (initialize_lra_reg_info_element): Add init of
3837 actual_call_used_reg_set field.
3838 (lra): Call lra_create_live_ranges before lra_inheritance for
3839 -fuse-caller-save.
3840 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
3841 -fuse-caller-save.
3842 * lra-constraints.c (need_for_call_save_p): Use
3843 actual_call_used_reg_set instead of call_used_reg_set for
3844 -fuse-caller-save.
3845 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
3846
3847 2014-05-28 Radovan Obradovic <robradovic@mips.com>
3848 Tom de Vries <tom@codesourcery.com>
3849
3850 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
3851 to gccoptlist.
3852 (@item -fuse-caller-save): New item.
3853
3854 2014-05-28 Radovan Obradovic <robradovic@mips.com>
3855 Tom de Vries <tom@codesourcery.com>
3856
3857 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
3858 OPT_fuse_caller_save.
3859
3860 2014-05-28 Radovan Obradovic <robradovic@mips.com>
3861 Tom de Vries <tom@codesourcery.com>
3862
3863 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
3864 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
3865 get_call_reg_set_usage.
3866 * resource.c (mark_set_resources, mark_target_live_regs): Use
3867 get_call_reg_set_usage.
3868 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
3869 field.
3870 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
3871 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
3872 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3873 * ira-build.c (ira_create_allocno): Init
3874 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3875 (create_cap_allocno, propagate_allocno_info)
3876 (propagate_some_info_from_allocno)
3877 (copy_info_to_removed_store_destinations): Handle
3878 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
3879 * ira-costs.c (ira_tune_allocno_costs): Use
3880 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
3881
3882 2014-05-28 Radovan Obradovic <robradovic@mips.com>
3883 Tom de Vries <tom@codesourcery.com>
3884
3885 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
3886 and function_used_regs_valid fields.
3887 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
3888 find_all_hard_reg_sets.
3889 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
3890 (get_call_reg_set_usage): New function.
3891 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
3892 * regs.h (get_call_reg_set_usage): Declare.
3893
3894 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
3895
3896 PR libgcc/61152
3897 * config/dbx.h (License): Add Runtime Library Exception.
3898 * config/newlib-stdint.h (License): Same.
3899 * config/rtems.h (License): Same
3900 * config/initfini-array.h (License): Same
3901 * config/v850/v850.h (License): Same.
3902 * config/v850/v850-opts.h (License): Same
3903 * config/v850/rtems.h (License): Same.
3904
3905 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
3906
3907 PR target/61044
3908 * doc/extend.texi (Local Labels): Note that label differences are
3909 not supported for AVR.
3910
3911 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
3912 Olivier Hainque <hainque@adacore.com>
3913
3914 * rtl.h (set_for_reg_notes): Declare.
3915 * emit-rtl.c (set_for_reg_notes): New function.
3916 (set_unique_reg_note): Use it.
3917 * optabs.c (add_equal_note): Likewise
3918
3919 2014-05-27 Andrew Pinski <apinski@cavium.com>
3920
3921 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
3922 Use <w> for the register in assembly template.
3923 (stack_protect_test): Use the mode of operands[0] for the result.
3924 (stack_protect_test_<mode>): Use <w> for the register
3925 in assembly template.
3926
3927 2014-05-27 DJ Delorie <dj@redhat.com>
3928
3929 * config/rx/rx.c (add_vector_labels): New.
3930 (rx_output_function_prologue): Call it.
3931 (rx_handle_func_attribute): Don't require empty arguments.
3932 (rx_handle_vector_attribute): New.
3933 (rx_attribute_table): Add "vector" attribute.
3934 * doc/extend.texi (interrupt, vector): Document new/changed
3935 RX-specific attributes.
3936
3937 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
3938
3939 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
3940
3941 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
3942 predicate to detect a negative quotient.
3943
3944 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
3945
3946 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
3947 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
3948 Add X - Y CMP 0 to X CMP Y transformation.
3949 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
3950
3951 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
3952
3953 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
3954 before printing.
3955
3956 2014-05-27 Steve Ellcey <sellcey@mips.com>
3957
3958 * config/mips/mips.c: Add include of cgraph.h.
3959
3960 2014-05-27 Richard Biener <rguenther@suse.de>
3961
3962 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
3963
3964 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
3965
3966 PR libgcc/61152
3967 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
3968 * config/arm/arm-cores.def (License): Same.
3969 * config/arm/arm-opts.h (License): Same.
3970 * config/arm/aout.h (License): Same.
3971 * config/arm/bpabi.h (License): Same.
3972 * config/arm/elf.h (License): Same.
3973 * config/arm/linux-elf.h (License): Same.
3974 * config/arm/linux-gas.h (License): Same.
3975 * config/arm/netbsd-elf.h (License): Same.
3976 * config/arm/uclinux-eabi.h (License): Same.
3977 * config/arm/uclinux-elf.h (License): Same.
3978 * config/arm/vxworks.h (License): Same.
3979
3980 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3981
3982 * config/arm/neon.md (neon_bswap<mode>): New pattern.
3983 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
3984 (arm_init_neon_builtins): Handle NEON_BSWAP.
3985 Define required type nodes.
3986 (arm_expand_neon_builtin): Handle NEON_BSWAP.
3987 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
3988 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
3989 * config/arm/iterators.md (VDQHSD): New mode iterator.
3990
3991 2014-05-27 Richard Biener <rguenther@suse.de>
3992
3993 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3994 Try using literal operands when comparing value-ranges failed.
3995
3996 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
3997
3998 * ira.c (commutative_operand): Adjust for change to recog_data.
3999 [Missing from previous commit.]
4000
4001 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
4002
4003 * system.h (TEST_BIT): New macro.
4004 * recog.h (alternative_mask): New type.
4005 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
4006 (recog_data_d): Replace alternative_enabled_p array with
4007 enabled_alternatives.
4008 (target_recog): New structure.
4009 (default_target_recog, this_target_recog): Declare.
4010 (get_enabled_alternatives, recog_init): Likewise.
4011 * recog.c (default_target_recog, this_target_recog): New variables.
4012 (get_enabled_alternatives): New function.
4013 (extract_insn): Use it.
4014 (recog_init): New function.
4015 (preprocess_constraints, constrain_operands): Adjust for change to
4016 recog_data.
4017 * postreload.c (reload_cse_simplify_operands): Likewise.
4018 * reload.c (find_reloads): Likewise.
4019 * ira-costs.c (record_reg_classes): Likewise.
4020 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
4021 all alternatives after a disabled one would be skipped.
4022 (ira_implicitly_set_insn_hard_regs): Likewise.
4023 * ira.c (ira_setup_alts): Adjust for change to recog_data.
4024 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
4025 with enabled_alternatives.
4026 * lra.c (free_insn_recog_data): Update accordingly.
4027 (lra_update_insn_recog_data): Likewise.
4028 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
4029 * lra-constraints.c (process_alt_operands): Likewise. Handle
4030 only_alternative as part of the enabled mask.
4031 * target-globals.h (this_target_recog): Declare.
4032 (target_globals): Add a recog field.
4033 (restore_target_globals): Restore this_target_recog.
4034 * target-globals.c: Include recog.h.
4035 (default_target_globals): Initialize recog field.
4036 (save_target_globals): Likewise.
4037 * reginfo.c (reinit_regs): Call recog_init.
4038 * toplev.c (backend_init_target): Likewise.
4039
4040 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
4041
4042 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
4043 rather than any named insn's code.
4044
4045 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
4046
4047 PR libgcc/61152
4048 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
4049 * config/arm/arm-cores.def (License): Same.
4050
4051 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
4052
4053 * tree.h (decl_comdat_group): Declare.
4054 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
4055 * tree.c (decl_comdat_group): Here.
4056
4057 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
4058
4059 PR rtl-optimization/61222
4060 * combine.c (simplify_shift_const_1): When moving a PLUS outside
4061 the shift, truncate the PLUS operand to the result mode.
4062
4063 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
4064
4065 PR target/61271
4066 * config/i386/i386.c (ix86_rtx_costs)
4067 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
4068 Fix condition.
4069
4070 2014-05-26 Martin Jambor <mjambor@suse.cz>
4071
4072 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
4073 subreg uses.
4074
4075 2014-05-26 Richard Biener <rguenther@suse.de>
4076
4077 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
4078 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
4079 Provide specializations.
4080 (wi::int_traits <HOST_WIDE_INT>,
4081 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
4082
4083 2014-05-26 Alan Modra <amodra@gmail.com>
4084
4085 PR target/61098
4086 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
4087 params and return a bool. Remove dead code. Update comment.
4088 Assert we have a const_int source. Remove bogus code from
4089 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
4090 handling of constants > 2G and reg_equal note, from..
4091 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
4092 return value. Update comment. If we can, use a new pseudo
4093 for intermediate calculations.
4094 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
4095 prototype.
4096 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
4097 call to rs6000_emit_set_const in splitter.
4098 (movdi_internal64+2, +3): Likewise.
4099
4100 2014-05-26 Richard Biener <rguenther@suse.de>
4101
4102 * system.h: Define __STDC_FORMAT_MACROS before
4103 including inttypes.h.
4104 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
4105 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
4106 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
4107 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
4108 HOST_WIDEST_INT_C): Remove.
4109 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
4110 if C99 inttypes.h is not available.
4111 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
4112 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
4113 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
4114 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
4115 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
4116 (struct output_info): Likewise.
4117 (print_statistics): Adjust.
4118 (dump_bitmap_statistics): Likewise.
4119 * bt-load.c (migrate_btr_defs): Print with PRId64.
4120 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
4121 (MAX_SAFE_MULTIPLIER): Adjust.
4122 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
4123 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
4124 dump_cgraph_node): Likewise.
4125 * final.c (dump_basic_block_info): Likewise.
4126 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
4127 * gcov.c (format_gcov): Likewise.
4128 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
4129 for calculation.
4130 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
4131 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
4132 (inline_small_functions, dump_overall_stats, dump_inline_stats):
4133 Use PRId64 for dumping.
4134 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
4135 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
4136 (add_allocno_hard_regs): Adjust.
4137 * loop-doloop.c (doloop_modify): Print using PRId64.
4138 * loop-iv.c (inverse): Compute in uint64_t.
4139 (determine_max_iter, iv_number_of_iterations): Likewise.
4140 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
4141 Print using PRId64.
4142 * lto-streamer-out.c (write_symbol): Use uint64_t.
4143 * mcf.c (CAP_INFINITY): Use int64_t maximum.
4144 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
4145 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
4146 * modulo-sched.c (const_iteration_count): Use int64_t.
4147 (sms_schedule): Dump using PRId64.
4148 * predict.c (dump_prediction): Likewise.
4149 * pretty-print.h (pp_widest_integer): Remove.
4150 * profile.c (get_working_sets, is_edge_inconsistent,
4151 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
4152 * tree-pretty-print.c (pp_double_int): Remove case handling
4153 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
4154 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
4155 and adjust users.
4156 (pass_optimize_bswap::execute): Remove restriction on hosts.
4157 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
4158 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
4159 * tree.c (widest_int_cst_value): Remove.
4160 * tree.h (widest_int_cst_value): Likewise.
4161 * value-prof.c (dump_histogram_value): Print using PRId64.
4162 * gengtype.c (main): Also inject int64_t.
4163 * ggc-page.c (struct max_alignment): Use int64_t.
4164 * alloc-pool.c (struct allocation_object_def): Likewise.
4165 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
4166 for computation.
4167 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
4168 * doc/tm.texi: Regenerated.
4169 * gengtype-lex.l (IWORD): Handle [u]int64_t.
4170 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
4171 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
4172 mmix_output_register_setting): Use [u]int64_t in prototypes.
4173 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
4174 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
4175 mmix_output_octa, mmix_output_shifted_value): Adjust.
4176 (mmix_intval): Adjust. Remove unreachable case.
4177 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
4178
4179 2014-05-26 Richard Biener <rguenther@suse.de>
4180
4181 * configure.ac: Drop __int64 type check. Insist that we
4182 found uint64_t and int64_t.
4183 * hwint.h (HOST_BITS_PER___INT64): Remove.
4184 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
4185 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
4186 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
4187 (HOST_WIDEST_FAST_INT): Remove __int64 case.
4188 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
4189 for dst_q_src_df_rms_cdt.
4190 * configure: Regenerate.
4191 * config.in: Likewise.
4192
4193 2014-05-26 Michael Tautschnig <mt@debian.org>
4194
4195 PR target/61249
4196 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
4197 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
4198
4199 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4200
4201 PR rtl-optimization/61278
4202 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
4203
4204 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4205
4206 PR rtl-optimization/61220
4207 Part of PR rtl-optimization/61225
4208 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
4209 insn; skip split_edge for a block with only one successor.
4210
4211 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
4212
4213 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
4214 for variables.
4215
4216 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
4217
4218 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
4219 (update_vtable_references): New function.
4220 (function_and_variable_visibility): Rewrite also vtable initializers.
4221 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
4222
4223 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
4224
4225 * ggc.h (ggc_grow): New function.
4226 * ggc-none.c (ggc_grow): New function.
4227 * ggc-page.c (ggc_grow): Likewise.
4228
4229 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
4230
4231 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
4232 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
4233 comdat_can_be_unshared_p, cgraph_externally_visible_p,
4234 varpool_externally_visible_p, can_replace_by_local_alias,
4235 update_visibility_by_resolution_info, function_and_variable_visibility,
4236 pass_data_ipa_function_and_variable_visibility,
4237 make_pass_ipa_function_and_variable_visibility,
4238 whole_program_function_and_variable_visibility,
4239 pass_data_ipa_whole_program_visibility,
4240 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
4241 * cgraph.h (cgraph_local_node_p): Declare.
4242 * ipa-visibility.c: New file.
4243 * Makefile.in (OBJS): Add ipa-visiblity.o
4244
4245 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
4246
4247 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
4248 that var decl is available.
4249
4250 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
4251
4252 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
4253 symtab_node pointer.
4254 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
4255 (find_decls_types_r): Do not walk COMDAT_GROUP.
4256 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
4257 * varasm.c (make_decl_one_only): Use set_comdat_group;
4258 create node if needed.
4259 * ipa-inline-transform.c (save_inline_function_body): Update
4260 way we decl->symtab mapping.
4261 * symtab.c (symtab_hash, hash_node, eq_node
4262 symtab_insert_node_to_hashtable): Remove.
4263 (symtab_register_node): Update.
4264 (symtab_unregister_node): Update.
4265 (symtab_get_node): Reimplement as inline function.
4266 (symtab_add_to_same_comdat_group): Update.
4267 (symtab_dissolve_same_comdat_group_list): Update.
4268 (dump_symtab_base): Update.
4269 (verify_symtab_base): Update.
4270 (symtab_make_decl_local): Update.
4271 (fixup_same_cpp_alias_visibility): Update.
4272 (symtab_nonoverwritable_alias): Update.
4273 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
4274 * ipa.c (update_visibility_by_resolution_info): UPdate.
4275 * bb-reorder.c: Include cgraph.h
4276 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
4277 with comdat groups.
4278 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
4279 * cgraph.c (cgraph_get_create_node): Update.
4280 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
4281 and comdat_group_.
4282 (symtab_get_node): Make inline.
4283 (symtab_insert_node_to_hashtable): Remove.
4284 (symtab_can_be_discarded): Update.
4285 (decl_comdat_group): New function.
4286 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
4287 Update.
4288 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
4289 comdat group name.
4290 (read_comdat_group): New function.
4291 (input_node, input_varpool_node): Use it.
4292 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
4293 comdat groups.
4294 * mips.c (mips_start_unique_function): Likewise.
4295 (ix86_code_end): Likewise.
4296 (rs6000_code_end): Likweise.
4297 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
4298
4299 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
4300
4301 * gengtype-state.c (fatal_reading_state): Bring offline.
4302 * optabs.c (widening_optab_handler): Bring offline.
4303 * optabs.h (widening_optab_handler): Likewise.
4304 * final.c (get_attr_length_1): Likewise.
4305
4306 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
4307
4308 * sched-int.h (sd_iterator_cond): Manually tail recurse.
4309
4310 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4311
4312 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
4313 (ppc440-compare): Include shift with dot.
4314 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
4315 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
4316 without dot.
4317 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
4318 without dot.
4319 (e6500_sfx2): Include it.
4320 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
4321 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
4322 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
4323 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
4324 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
4325 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
4326 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
4327 *lshiftrt_internal1le, *lshiftrt_internal1be,
4328 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
4329 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
4330 *rotldi3_internal10le, *rotldi3_internal10be,
4331 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
4332 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
4333 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
4334 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
4335 define_insns): Use type "shift" in the appropriate alternatives.
4336
4337 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4338
4339 * config/rs6000/rs6000.md (type): Add "logical". Delete
4340 "fast_compare".
4341 (dot): Adjust comment.
4342 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
4343 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
4344 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
4345 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
4346 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
4347 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
4348 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
4349 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
4350
4351 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
4352 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
4353 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
4354 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
4355 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
4356 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
4357 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
4358 * config/rs6000/8540.md (ppc8540_su): Adjust.
4359 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4360 cell-cmp-microcoded): Adjust.
4361 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
4362 * config/rs6000/e500mc.md (e500mc_su): Adjust.
4363 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
4364 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
4365 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
4366 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
4367 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
4368 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
4369 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
4370 Adjust.
4371 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
4372 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
4373 Adjust. Adjust comment.
4374 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
4375 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
4376
4377 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4378
4379 * config/rs6000/rs6000.md (type): Add "add".
4380 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
4381 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
4382 define_insns): Use it.
4383 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
4384
4385 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
4386 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
4387 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
4388 * config/rs6000/601.md (ppc601-integer): Adjust.
4389 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
4390 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
4391 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
4392 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
4393 * config/rs6000/8540.md (ppc8540_su): Adjust.
4394 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4395 cell-cmp-microcoded): Adjust.
4396 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
4397 * config/rs6000/e500mc.md (e500mc_su): Adjust.
4398 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
4399 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
4400 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
4401 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
4402 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
4403 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
4404 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
4405 Adjust.
4406 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
4407 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
4408 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
4409 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
4410
4411 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4412
4413 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
4414 "delayed_compare", "var_delayed_compare".
4415 (var_shift): New attribute.
4416 (cell_micro): Adjust.
4417 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
4418 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
4419 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
4420 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
4421 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
4422 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
4423 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
4424 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
4425 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
4426 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
4427 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
4428 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
4429 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
4430 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
4431 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
4432 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
4433 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
4434 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
4435 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
4436 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
4437 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
4438 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
4439 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
4440 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4441 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
4442
4443 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
4444 * config/rs6000/440.md (ppc440-integer): Adjust.
4445 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
4446 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
4447 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
4448 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
4449 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
4450 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
4451 * config/rs6000/8540.md (ppc8540_su): Adjust.
4452 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
4453 cell-cmp-microcoded): Adjust.
4454 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
4455 * config/rs6000/e500mc.md (e500mc_su): Adjust.
4456 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
4457 e500mc64_delayed): Adjust.
4458 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
4459 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
4460 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
4461 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
4462 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
4463 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
4464 power6-delayed-compare, power6-var-delayed-compare): Adjust.
4465 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
4466 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
4467 Adjust comment.
4468 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
4469 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
4470
4471 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4472
4473 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
4474 (bits): New mode_attr.
4475 (idiv_ldiv): Delete mode_attr.
4476 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
4477 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4478 rs6000_adjust_priority, is_nonpipeline_insn,
4479 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
4480
4481 * config/rs6000/40x.md (ppc403-idiv): Adjust.
4482 * config/rs6000/440.md (ppc440-idiv): Adjust.
4483 * config/rs6000/476.md (ppc476-idiv): Adjust.
4484 * config/rs6000/601.md (ppc601-idiv): Adjust.
4485 * config/rs6000/603.md (ppc603-idiv): Adjust.
4486 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
4487 ppc620-ldiv): Adjust.
4488 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
4489 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
4490 * config/rs6000/8540.md (ppc8540_divide): Adjust.
4491 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
4492 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
4493 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
4494 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
4495 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
4496 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
4497 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
4498 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
4499 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
4500 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
4501 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
4502 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
4503 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
4504 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
4505 * config/rs6000/titan.md (titan_fxu_div): Adjust.
4506
4507 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4508
4509 * config/rs6000/rs6000.md (type): Delete "insert_word",
4510 "insert_dword". Add "insert".
4511 (size): Update comment.
4512 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4513 insn_must_be_first_in_group): Adjust.
4514 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
4515 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
4516 *insvsi_internal6, insvdi_internal): Adjust.
4517
4518 * config/rs6000/40x.md (ppc403-integer): Adjust.
4519 * config/rs6000/440.md (ppc440-integer): Adjust.
4520 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
4521 * config/rs6000/601.md (ppc601-integer): Adjust.
4522 * config/rs6000/603.md (ppc603-integer): Adjust.
4523 * config/rs6000/6xx.md (ppc604-integer): Adjust.
4524 * config/rs6000/7450.md (ppc7450-integer): Adjust.
4525 * config/rs6000/7xx.md (ppc750-integer): Adjust.
4526 * config/rs6000/8540.md (ppc8540_su): Adjust.
4527 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
4528 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
4529 * config/rs6000/e500mc.md (e500mc_su): Adjust.
4530 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
4531 * config/rs6000/e5500.md (e5500_sfx): Adjust.
4532 * config/rs6000/e6500.md (e6500_sfx): Adjust.
4533 * config/rs6000/mpc.md (mpccore-integer): Adjust.
4534 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
4535 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
4536 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
4537 * config/rs6000/power7.md (power7-integer): Adjust.
4538 * config/rs6000/power8.md (power8-1cyc): Adjust.
4539 * config/rs6000/rs64.md (rs64a-integer): Adjust.
4540 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
4541
4542 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4543
4544 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
4545 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
4546 (size): New attribute.
4547 (dot): New attribute.
4548 (cell_micro): Adjust.
4549 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
4550 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
4551 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
4552 umuldi3_highpart): Adjust.
4553 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
4554 rs6000_adjust_priority, is_nonpipeline_insn,
4555 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
4556
4557 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
4558 ppc405-imul3): Adjust.
4559 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
4560 * config/rs6000/476.md (ppc476-imul): Adjust.
4561 * config/rs6000/601.md (ppc601-imul): Adjust.
4562 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
4563 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
4564 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
4565 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
4566 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
4567 Adjust.
4568 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
4569 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
4570 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
4571 cell-imul): Adjust.
4572 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
4573 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
4574 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
4575 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
4576 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
4577 * config/rs6000/mpc.md (mpccore-imul): Adjust.
4578 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
4579 power4-lmul, power4-imul, power4-imul3): Adjust.
4580 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
4581 power5-lmul, power5-imul, power5-imul3): Adjust.
4582 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
4583 power6-lmul, power6-imul, power6-imul3): Adjust.
4584 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
4585 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
4586
4587 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
4588 rs64a-lmul): Adjust.
4589 * config/rs6000/titan.md (titan_imul): Adjust.
4590
4591 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4592
4593 * config/rs6000/rs6000.md (type): Add new value "halfmul".
4594 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
4595 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
4596 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
4597 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
4598 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
4599 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
4600 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
4601 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
4602 * config/rs6000/titan.md: Delete nonsensical comment.
4603 (titan_imul): Add type imul3.
4604 (titan_mulhw): Remove type imul3; add type halfmul.
4605
4606 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
4607
4608 * config/rs6000/rs6000.md (type): Reorder, reformat.
4609
4610 2014-05-23 Martin Jambor <mjambor@suse.cz>
4611
4612 PR tree-optimization/53787
4613 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
4614 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
4615 analysis_done, update all uses.
4616 * ipa-prop.c: Include domwalk.h
4617 (param_analysis_info): Removed.
4618 (param_aa_status): New type.
4619 (ipa_bb_info): Likewise.
4620 (func_body_info): Likewise.
4621 (ipa_get_bb_info): New function.
4622 (aa_overwalked): Likewise.
4623 (find_dominating_aa_status): Likewise.
4624 (parm_bb_aa_status_for_bb): Likewise.
4625 (parm_preserved_before_stmt_p): Changed to use new param AA info.
4626 (load_from_unmodified_param): Accept func_body_info as a parameter
4627 instead of parms_ainfo.
4628 (parm_ref_data_preserved_p): Changed to use new param AA info.
4629 (parm_ref_data_pass_through_p): Likewise.
4630 (ipa_load_from_parm_agg_1): Likewise. Update callers.
4631 (compute_complex_assign_jump_func): Changed to use new param AA info.
4632 (compute_complex_ancestor_jump_func): Likewise.
4633 (ipa_compute_jump_functions_for_edge): Likewise.
4634 (ipa_compute_jump_functions): Removed.
4635 (ipa_compute_jump_functions_for_bb): New function.
4636 (ipa_analyze_indirect_call_uses): Likewise, moved variable
4637 declarations down.
4638 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
4639 and info, moved variable declarations down.
4640 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
4641 node and info.
4642 (ipa_analyze_stmt_uses): Likewise.
4643 (ipa_analyze_params_uses): Removed.
4644 (ipa_analyze_params_uses_in_bb): New function.
4645 (ipa_analyze_controlled_uses): Likewise.
4646 (free_ipa_bb_info): Likewise.
4647 (analysis_dom_walker): New class.
4648 (ipa_analyze_node): Handle node-specific forbidden analysis,
4649 initialize and free func_body_info, use dominator walker.
4650 (ipcp_modif_dom_walker): New class.
4651 (ipcp_transform_function): Create and free func_body_info, use
4652 ipcp_modif_dom_walker, moved a lot of functionality there.
4653
4654 2014-05-23 Marek Polacek <polacek@redhat.com>
4655 Jakub Jelinek <jakub@redhat.com>
4656
4657 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
4658 * gcc.c (sanitize_spec_function): Likewise.
4659 * convert.c (convert_to_integer): Include "ubsan.h". Add
4660 floating-point to integer instrumentation.
4661 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
4662 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
4663 SANITIZE_NONDEFAULT.
4664 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
4665 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
4666 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
4667 * ubsan.c: Include "realmpfr.h" and "dfp.h".
4668 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
4669 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
4670 float/double/long double.
4671 (ubsan_instrument_float_cast): New function.
4672 * ubsan.h (ubsan_instrument_float_cast): Declare.
4673
4674 2014-05-23 Jiong Wang <jiong.wang@arm.com>
4675
4676 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
4677 predicate.
4678 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
4679 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
4680 Adjust for tailcalling through registers.
4681 * config/aarch64/aarch64.h (enum reg_class): New caller save
4682 register class.
4683 (REG_CLASS_NAMES): Likewise.
4684 (REG_CLASS_CONTENTS): Likewise.
4685 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
4686 Allow tailcalling without decls.
4687
4688 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
4689
4690 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
4691 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
4692
4693 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
4694 gsi, and variables v_* to v*.
4695
4696 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
4697
4698 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
4699
4700 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
4701
4702 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
4703 * omp-low.c: Update accordingly.
4704
4705 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
4706 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
4707 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
4708 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
4709 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
4710 GF_OMP_TARGET_KIND_UPDATE.
4711
4712 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
4713 Explicitly enumerate the expected region types.
4714
4715 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
4716
4717 PR other/56955
4718 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
4719 documentation; the old documentation didn't clearly state the
4720 constraints on the contents of the pointed-to storage.
4721
4722 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4723
4724 Fix bootstrap error on ia64
4725 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
4726 Return default value.
4727
4728 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
4729
4730 PR tree-optimization/54733
4731 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
4732 (CMPNOP): Define.
4733 (find_bswap_or_nop_load): New.
4734 (find_bswap_1): Renamed to ...
4735 (find_bswap_or_nop_1): This. Also add support for memory source.
4736 (find_bswap): Renamed to ...
4737 (find_bswap_or_nop): This. Also add support for memory source and
4738 detection of bitwise operations equivalent to load in target
4739 endianness.
4740 (execute_optimize_bswap): Likewise. Also move its leading comment back
4741 in place and split statement transformation into ...
4742 (bswap_replace): This.
4743
4744 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
4745
4746 PR rtl-optimization/61215
4747 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
4748 simplify_gen_subreg until final substitution.
4749
4750 2014-05-23 Alan Modra <amodra@gmail.com>
4751
4752 PR target/61231
4753 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
4754 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
4755 Use "Y" constraint rather than "m".
4756
4757 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4758
4759 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
4760 define.
4761 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
4762 New function declaration.
4763 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
4764 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
4765 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
4766 (aarch64_init_builtins) : Initialize builtins
4767 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
4768 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
4769 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
4770 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
4771 and __builtins_aarch64_set_fpsr.
4772 (aarch64_atomic_assign_expand_fenv): New function.
4773 * config/aarch64/aarch64.md (set_fpcr): New pattern.
4774 (get_fpcr) : Likewise.
4775 (set_fpsr) : Likewise.
4776 (get_fpsr) : Likewise.
4777 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
4778 and UNSPECV_SET_FPSR.
4779 * doc/extend.texi (AARCH64 Built-in Functions) : Document
4780 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
4781 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
4782
4783 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
4784
4785 PR rtl-optimization/60969
4786 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
4787 constraints. Set up mem cost for NO_REGS case.
4788
4789 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
4790
4791 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
4792
4793 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
4794
4795 * config/darwin.c: Include "lto-section-names.h".
4796 (LTO_SEGMENT_NAME): Don't define.
4797 * config/i386/winnt.c: Include "lto-section-names.h".
4798 * lto-streamer.c: Include "lto-section-names.h".
4799 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
4800 * lto-wrapper.c: Include "lto-section-names.h".
4801 (LTO_SECTION_NAME_PREFIX): Don't define.
4802 * lto-section-names.h: New file.
4803 * cgraphunit.c: Include "lto-section-names.h".
4804
4805 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
4806
4807 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
4808
4809 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
4810
4811 PR target/61208
4812 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
4813
4814 2014-05-22 Nick Clifton <nickc@redhat.com>
4815
4816 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
4817
4818 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
4819
4820 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
4821 -> (T)A transformation to integer types.
4822
4823 2014-05-22 Teresa Johnson <tejohnson@google.com>
4824
4825 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
4826 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
4827 (gcov_rewrite): Use gcov_nonruntime_assert.
4828 (gcov_open): Ditto.
4829 (gcov_write_words): Ditto.
4830 (gcov_write_length): Ditto.
4831 (gcov_read_words): Use gcov_nonruntime_assert, and remove
4832 gcc_assert from IN_LIBGCOV code.
4833 (gcov_read_summary): Use gcov_error to flag profile corruption.
4834 (gcov_sync): Use gcov_nonruntime_assert.
4835 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
4836 (gcov_histo_index): Use gcov_nonruntime_assert.
4837 (static void gcov_histogram_merge): Ditto.
4838 (compute_working_sets): Ditto.
4839 * gcov-io.h (gcov_nonruntime_assert): Define.
4840 (gcov_error): Define for !IN_LIBGCOV
4841
4842 2014-05-22 Richard Biener <rguenther@suse.de>
4843
4844 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4845 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
4846 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
4847 and deallocation site.
4848 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4849 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
4850 passing through the incoming points-to set.
4851 (handle_lhs_call): Use flags argument instead of recomputing it.
4852 (find_func_aliases_for_call): Call handle_lhs_call with proper
4853 call return flags.
4854
4855 2014-05-22 Jakub Jelinek <jakub@redhat.com>
4856
4857 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
4858 all padding bits in REAL_VALUE_TYPE are cleared.
4859
4860 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4861
4862 Cleanup and improve multipass_dfa_lookahead_guard
4863 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
4864 (core2i7_first_cycle_multipass_begin,)
4865 (core2i7_first_cycle_multipass_issue,)
4866 (core2i7_first_cycle_multipass_backtrack): Update signature.
4867 * config/ia64/ia64.c
4868 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
4869 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
4870 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
4871 hook definition.
4872 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
4873 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
4874 values.
4875 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
4876 return values.
4877 * doc/tm.texi: Regenerate.
4878 * doc/tm.texi.in
4879 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
4880 * haifa-sched.c (ready_try): Make signed to allow negative values.
4881 (rebug_ready_list_1): Update.
4882 (choose_ready): Simplify.
4883 (sched_extend_ready_list): Update.
4884
4885 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4886
4887 Remove IA64 speculation tweaking flags
4888 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
4889 speculation tuning flags.
4890 (msched-prefer-non-data-spec-insns,)
4891 (msched-prefer-non-control-spec-insns): Obsolete options.
4892 * haifa-sched.c (choose_ready): Remove handling of
4893 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
4894 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
4895 and PREFER_NON_DATA_SPEC.
4896 * sel-sched.c (process_spec_exprs): Remove handling of
4897 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
4898
4899 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4900
4901 Improve scheduling debug output
4902 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
4903 (advance_one_cycle): Update.
4904 (schedule_insn, queue_to_ready): Add debug printouts.
4905 (debug_ready_list_1): New static function.
4906 (debug_ready_list): Update.
4907 (max_issue): Add debug printouts.
4908 (dump_insn_stream): New static function.
4909 (schedule_block): Use it. Also better indent printouts.
4910
4911 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
4912
4913 Fix sched_insn debug counter
4914 * haifa-sched.c (schedule_insn): Update.
4915 (struct haifa_saved_data): Add nonscheduled_insns_begin.
4916 (save_backtrack_point, restore_backtrack_point): Update.
4917 (first_nonscheduled_insn): New static function.
4918 (queue_to_ready, choose_ready): Use it.
4919 (schedule_block): Init nonscheduled_insns_begin.
4920 (sched_emit_insn): Update.
4921
4922
4923 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
4924
4925 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
4926 to GENERAL_REGS.
4927 (aarch64_secondary_reload) : LikeWise.
4928 (aarch64_class_max_nregs) : Remove CORE_REGS.
4929 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
4930 (REG_CLASS_NAMES) : Likewise.
4931 (REG_CLASS_CONTENTS) : LikeWise.
4932 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
4933
4934 2014-05-21 Guozhi Wei <carrot@google.com>
4935
4936 PR target/61202
4937 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
4938 constraint.
4939 (vqdmulhq_n_s16): Likewise.
4940
4941 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
4942
4943 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
4944
4945 2014-05-21 Marek Polacek <polacek@redhat.com>
4946
4947 PR sanitizer/61272
4948 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
4949
4950 2014-05-21 Martin Jambor <mjambor@suse.cz>
4951
4952 * doc/invoke.texi (Optimize Options): Document parameters
4953 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
4954 ipa-cp-array-index-hint-bonus.
4955
4956 2014-05-21 Mark Wielaard <mjw@redhat.com>
4957
4958 PR debug/16063
4959 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
4960 version >= 3 or not strict DWARF.
4961 * langhooks.h (struct lang_hooks_for_types): Add
4962 enum_underlying_base_type.
4963 * langhooks.c (lhd_enum_underlying_base_type): New function.
4964 * gcc/langhooks.h (struct lang_hooks_for_types): Add
4965 enum_underlying_base_type.
4966 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
4967 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
4968 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
4969
4970 2014-05-21 Richard Biener <rguenther@suse.de>
4971
4972 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
4973
4974 2014-05-21 John Marino <gnugcc@marino.st>
4975
4976 * config.gcc (*-*-dragonfly*): New target.
4977 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
4978 * configure: Regenerate.
4979 * config/dragonfly-stdint.h: New.
4980 * config/dragonfly.h: New.
4981 * config/dragonfly.opt: New.
4982 * config/i386/dragonfly.h: New.
4983 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
4984
4985 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4986
4987 * tree.def (VOID_CST): New.
4988 * tree-core.h (TI_VOID): New.
4989 * tree.h (void_node): New.
4990 * tree.c (tree_node_structure_for_code, tree_code_size)
4991 (iterative_hash_expr): Handle VOID_CST.
4992 (build_common_tree_nodes): Initialize void_node.
4993
4994 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
4995
4996 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
4997 functions.
4998 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
4999
5000 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
5001 more places.
5002
5003 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
5004 flag_reorder_blocks_and_partition.
5005 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
5006
5007 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
5008
5009 PR target/54236
5010 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
5011 constraints.
5012 (*addc_r_t): Add new insn_and_split.
5013
5014 2014-05-21 Jakub Jelinek <jakub@redhat.com>
5015
5016 PR middle-end/61252
5017 * omp-low.c (handle_simd_reference): New function.
5018 (lower_rec_input_clauses): Use it. Defer adding reference
5019 initialization even for reduction without placeholder if in simd,
5020 handle it properly later on.
5021
5022 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
5023
5024 PR tree-optimization/60899
5025 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
5026 assume all static symbols will have definition wile parsing and
5027 check the do have definition later in compilation; check that
5028 variable referring symbol will be output before concluding that
5029 reference is safe; be conservative for referring local statics;
5030 be more precise about when comdat is output in other partition.
5031
5032 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
5033
5034 PR bootstrap/60984
5035 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
5036 parameter.
5037 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
5038 (ipa_inline): Loop inline_to_all_callers until no more aliases
5039 are removed.
5040
5041 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
5042
5043 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
5044 set writeonly flag only for vars actually written to.
5045
5046 2014-05-20 Dehao Chen <dehao@google.com>
5047
5048 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
5049 and callee count to get clone count.
5050 * tree-inline.c (expand_call_inline): Use callee count instead of bb
5051 count in copy_body.
5052
5053 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
5054
5055 PR rtl-optimization/61243
5056 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
5057
5058 2014-05-20 Xinliang David Li <davidxl@google.com>
5059
5060 * cgraphunit.c (walk_polymorphic_call_targets): Add
5061 dbgcnt and fopt-info support.
5062 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
5063 * ipa-devirt.c (ipa_devirt): Ditto.
5064 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
5065 * ipa.c (walk_polymorphic_call_targets): Ditto.
5066 * gimple-fold.c (fold_gimple_assign): Ditto.
5067 (gimple_fold_call): Ditto.
5068 * dbgcnt.def: New counter.
5069
5070 2014-05-20 DJ Delorie <dj@redhat.com>
5071
5072 * config/msp430/msp430.md (split): Don't allow subregs when
5073 splitting SImode adds.
5074 (andneghi): Fix subtraction logic.
5075 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
5076
5077 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
5078
5079 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
5080 symbols.
5081 * except.c (switch_to_exception_section, resolve_unique_section,
5082 get_named_text_section, default_function_rodata_section,
5083 align_variable, get_block_for_decl, default_section_type_flags):
5084 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
5085 * symtab.c (symtab_add_to_same_comdat_group,
5086 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
5087 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
5088 Likewise.
5089 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
5090 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
5091 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
5092 (c6x_function_in_section_p): Likewise.
5093 * config/darwin.c (machopic_select_section): Likewise.
5094 * config/arm/arm.c (arm_function_in_section_p): Likewise.
5095 * config/mips/mips.c (mips_function_rodata_section): Likewise.
5096 * config/mep/mep.c (mep_select_section): LIkewise.
5097 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
5098
5099 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
5100
5101 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
5102 EH region of calls to pure functions that can throw an exception.
5103 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
5104 (copy_reference_ops_from_call): Also copy the EH region of the call if
5105 it can throw an exception.
5106
5107 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5108
5109 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
5110 nested VEC_SELECTs that are inverses of each other.
5111
5112 2014-05-20 Richard Biener <rguenther@suse.de>
5113
5114 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
5115 (extract_and_process_scc_for_name): not here.
5116 (cond_dom_walker::before_dom_children): Only process
5117 stmts that end the BB in interesting ways.
5118 (run_scc_vn): Mark param uses as visited.
5119
5120 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5121
5122 * config/arm/arm.md (arith_shiftsi): Do not predicate for
5123 arm_restrict_it.
5124
5125 2014-05-20 Nick Clifton <nickc@redhat.com>
5126
5127 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
5128 (msp430_gimplify_va_arg_expr): New function.
5129 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
5130
5131 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
5132 operand 0 in order to prevent confusion about the number of
5133 registers involved.
5134
5135 2014-05-20 Richard Biener <rguenther@suse.de>
5136
5137 PR tree-optimization/61221
5138 * tree-ssa-pre.c (el_to_update): Remove.
5139 (eliminate_dom_walker::before_dom_children): Handle released
5140 VDEFs by value-numbering them to the associated VUSE. Update
5141 stmt immediately for substituted call address.
5142 (eliminate): Remove delayed stmt updating code.
5143 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
5144 possibly late re-numbered vuses.
5145 (vn_reference_lookup_2): Adjust.
5146 (vn_reference_lookup_pieces): Likewise.
5147 (vn_reference_lookup): Likewise.
5148
5149 2014-05-20 Richard Biener <rguenther@suse.de>
5150
5151 * config.gcc: Remove need_64bit_hwint.
5152 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
5153 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
5154 it to be true.
5155 * config.in: Regenerate.
5156 * configure: Likewise.
5157
5158 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
5159
5160 * doc/extend.texi: Create Label Attributes section,
5161 move all label attributes into it and reference it.
5162
5163 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
5164
5165 * arm.c (thumb1_reorg): When scanning backwards skip anything
5166 that's not a proper insn.
5167
5168 2014-05-19 Richard Biener <rguenther@suse.de>
5169
5170 PR tree-optimization/61221
5171 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5172 Do nothing for unreachable blocks.
5173 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
5174 Improve unreachability detection.
5175
5176 2014-05-19 Richard Biener <rguenther@suse.de>
5177
5178 PR tree-optimization/61209
5179 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
5180
5181 2014-05-19 Nick Clifton <nickc@redhat.com>
5182
5183 * except.c (init_eh): Fix computation of builtin setjmp buffer
5184 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
5185
5186 2014-05-19 Richard Biener <rguenther@suse.de>
5187
5188 PR tree-optimization/61184
5189 * tree-vrp.c (is_negative_overflow_infinity): Use
5190 TREE_OVERFLOW_P and do that check first.
5191 (is_positive_overflow_infinity): Likewise.
5192 (is_overflow_infinity): Likewise.
5193 (vrp_operand_equal_p): Properly treat operands with
5194 differing overflow as not equal.
5195
5196 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
5197
5198 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
5199 shift simplification where it was intended.
5200
5201 2014-05-19 Christian Bruel <christian.bruel@st.com>
5202
5203 PR target/61195
5204 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
5205
5206 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
5207
5208 PR target/61084
5209 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
5210 than wide_int.
5211
5212 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5213
5214 * reg-notes.def (CROSSING_JUMP): Likewise.
5215 * rtl.h (rtx_def): Update comment for jump flag.
5216 (CROSSING_JUMP_P): Define.
5217 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
5218 of a REG_CROSSING_JUMP note.
5219 * cfghooks.c (tidy_fallthru_edges): Likewise.
5220 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
5221 * emit-rtl.c (try_split): Likewise.
5222 * haifa-sched.c (sched_create_recovery_edges): Likewise.
5223 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
5224 * jump.c (redirect_jump_2): Likewise.
5225 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
5226 (relax_delay_slots): Likewise.
5227 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
5228 (bbit_di): Likewise.
5229 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
5230 * config/sh/sh.md (jump_compact): Likewise.
5231 * bb-reorder.c (rotate_loop): Likewise.
5232 (pass_duplicate_computed_gotos::execute): Likewise.
5233 (add_reg_crossing_jump_notes): Rename to...
5234 (update_crossing_jump_flags): ...this.
5235 (pass_partition_blocks::execute): Update accordingly.
5236
5237 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5238
5239 * tree.h: Remove extraneous template <>.
5240
5241 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
5242
5243 * ipa.c (symtab_remove_unreachable_nodes): Remove
5244 symbol from comdat group if its body was eliminated.
5245 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
5246 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
5247 (symtab_unregister_node): ... this one.
5248 (verify_symtab_base): More strict checking of comdats.
5249 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
5250
5251 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
5252
5253 * tree-pass.h (make_pass_ipa_comdats): New pass.
5254 * timevar.def (TV_IPA_COMDATS): New timevar.
5255 * passes.def (pass_ipa_comdats): Add.
5256 * Makefile.in (OBJS): Add ipa-comdats.o
5257 * ipa-comdats.c: New file.
5258
5259 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
5260
5261 * ipa.c (update_visibility_by_resolution_info): New function.
5262 (function_and_variable_visibility): Use it.
5263
5264 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
5265
5266 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
5267 New functions.
5268 (FOR_EACH_DEFINED_SYMBOL): New macro.
5269 (varpool_first_static_initializer, varpool_next_static_initializer,
5270 varpool_first_defined_variable, varpool_next_defined_variable):
5271 Fix comments.
5272 (symtab_in_same_comdat_p): Correctly deal with inline functions.
5273
5274 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5275
5276 * ggc-page.c (ggc_handle_finalizers): Add comment.
5277
5278 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5279
5280 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
5281 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
5282 (ggc_internal_cleared_alloc): Likewise.
5283 * ggc-page.c (finalizer): New class.
5284 (vec_finalizer): Likewise.
5285 (globals::finalizers): New member.
5286 (globals::vec_finalizers): Likewise.
5287 (ggc_internal_alloc): Record the finalizer if any for the block being
5288 allocated.
5289 (ggc_handle_finalizers): New function.
5290 (ggc_collect): Call ggc_handle_finalizers.
5291 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
5292 finalizer.
5293 (ggc_internal_cleared_alloc): Likewise.
5294 (finalize): New function.
5295 (need_finalization_p): Likewise.
5296 (ggc_alloc): Install the type's destructor as the finalizer if it
5297 might do something.
5298 (ggc_cleared_alloc): Likewise.
5299 (ggc_vec_alloc): Likewise.
5300 (ggc_cleared_vec_alloc): Likewise.
5301
5302 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5303
5304 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
5305
5306 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5307
5308 * alias.c (record_alias_subset): Adjust.
5309 * bitmap.c (bitmap_element_allocate): Likewise.
5310 (bitmap_gc_alloc_stat): Likewise.
5311 * cfg.c (init_flow): Likewise.
5312 (alloc_block): Likewise.
5313 (unchecked_make_edge): Likewise.
5314 * cfgloop.c (alloc_loop): Likewise.
5315 (flow_loops_find): Likewise.
5316 (rescan_loop_exit): Likewise.
5317 * cfgrtl.c (init_rtl_bb_info): Likewise.
5318 * cgraph.c (insert_new_cgraph_node_version): Likewise.
5319 (cgraph_allocate_node): Likewise.
5320 (cgraph_create_edge_1): Likewise.
5321 (cgraph_allocate_init_indirect_info): Likewise.
5322 * cgraphclones.c (cgraph_clone_edge): Likewise.
5323 * cgraphunit.c (add_asm_node): Likewise.
5324 (init_lowered_empty_function): Likewise.
5325 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
5326 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5327 (alpha_use_linkage): Likewise.
5328 * config/arc/arc.c (arc_init_machine_status): Likewise.
5329 * config/arm/arm.c (arm_init_machine_status): Likewise.
5330 * config/avr/avr.c (avr_init_machine_status): Likewise.
5331 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5332 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
5333 * config/cris/cris.c (cris_init_machine_status): Likewise.
5334 * config/darwin.c (machopic_indirection_name): Likewise.
5335 (darwin_build_constant_cfstring): Likewise.
5336 (darwin_enter_string_into_cfstring_table): Likewise.
5337 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
5338 * config/frv/frv.c (frv_init_machine_status): Likewise.
5339 * config/i386/i386.c (get_dllimport_decl): Likewise.
5340 (ix86_init_machine_status): Likewise.
5341 (assign_386_stack_local): Likewise.
5342 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5343 (i386_pe_maybe_record_exported_symbol): Likewise.
5344 (i386_pe_record_stub): Likewise.
5345 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5346 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5347 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5348 (m32c_note_pragma_address): Likewise.
5349 * config/mep/mep.c (mep_init_machine_status): Likewise.
5350 (mep_note_pragma_flag): Likewise.
5351 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5352 (mips16_local_alias): Likewise.
5353 (mips_init_machine_status): Likewise.
5354 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5355 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5356 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
5357 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
5358 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
5359 * config/pa/pa.c (pa_init_machine_status): Likewise.
5360 (pa_get_deferred_plabel): Likewise.
5361 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
5362 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5363 (rs6000_init_machine_status): Likewise.
5364 (output_toc): Likewise.
5365 * config/s390/s390.c (s390_init_machine_status): Likewise.
5366 * config/score/score.c (score_output_external): Likewise.
5367 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5368 * config/spu/spu.c (spu_init_machine_status): Likewise.
5369 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
5370 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
5371 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5372 * coverage.c (coverage_end_function): Likewise.
5373 * dbxout.c (dbxout_init): Likewise.
5374 * doc/gty.texi: Don't mention variable_size attribute.
5375 * dwarf2cfi.c (new_cfi): Adjust.
5376 (new_cfi_row): Likewise.
5377 (copy_cfi_row): Likewise.
5378 (create_cie_data): Likewise.
5379 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
5380 (new_loc_descr): Likewise.
5381 (find_AT_string_in_table): Likewise.
5382 (add_addr_table_entry): Likewise.
5383 (new_die): Likewise.
5384 (add_var_loc_to_decl): Likewise.
5385 (clone_die): Likewise.
5386 (clone_as_declaration): Likewise.
5387 (break_out_comdat_types): Likewise.
5388 (new_loc_list): Likewise.
5389 (add_loc_descr_to_each): Likewise.
5390 (add_location_or_const_value_attribute): Likewise.
5391 (add_linkage_name): Likewise.
5392 (lookup_filename): Likewise.
5393 (dwarf2out_var_location): Likewise.
5394 (new_line_info_table): Likewise.
5395 (dwarf2out_init): Likewise.
5396 (mem_loc_descriptor): Likewise.
5397 (loc_descriptor): Likewise.
5398 (add_const_value_attribute): Likewise.
5399 (tree_add_const_value_attribute): Likewise.
5400 (comp_dir_string): Likewise.
5401 (dwarf2out_vms_debug_main_pointer): Likewise.
5402 (string_cst_pool_decl): Likewise.
5403 * emit-rtl.c (set_mem_attrs): Likewise.
5404 (get_reg_attrs): Likewise.
5405 (start_sequence): Likewise.
5406 (init_emit): Likewise.
5407 (init_emit_regs): Likewise.
5408 * except.c (init_eh_for_function): Likewise.
5409 (gen_eh_region): Likewise.
5410 (gen_eh_region_catch): Likewise.
5411 (gen_eh_landing_pad): Likewise.
5412 (add_call_site): Likewise.
5413 * function.c (add_frame_space): Likewise.
5414 (insert_temp_slot_address): Likewise.
5415 (assign_stack_temp_for_type): Likewise.
5416 (get_hard_reg_initial_val): Likewise.
5417 (allocate_struct_function): Likewise.
5418 (prepare_function_start): Likewise.
5419 (types_used_by_var_decl_insert): Likewise.
5420 * gengtype.c (variable_size_p): Remove function.
5421 (enum alloc_quantity): Remove enum.
5422 (write_typed_alloc_def): Remove function.
5423 (write_typed_struct_alloc_def): Likewise.
5424 (write_typed_typedef_alloc_def): Likewise.
5425 (write_typed_alloc_defns): Likewise.
5426 (main): Adjust.
5427 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
5428 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
5429 * ggc.h (ggc_alloc): new function.
5430 (ggc_cleared_alloc): Likewise.
5431 (ggc_vec_alloc): Template on type of vector element, and remove
5432 element size argument.
5433 (ggc_cleared_vec_alloc): Likewise.
5434 * gimple.c (gimple_build_omp_for): Adjust.
5435 (gimple_copy): Likewise.
5436 * ipa-cp.c (get_replacement_map): Likewise.
5437 (find_aggregate_values_for_callers_subset): Likewise.
5438 (known_aggs_to_agg_replacement_list): Likewise.
5439 * ipa-devirt.c (get_odr_type): Likewise.
5440 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
5441 (read_agg_replacement_chain): Likewise.
5442 * loop-iv.c (get_simple_loop_desc): Likewise.
5443 * lto-cgraph.c (input_node_opt_summary): Likewise.
5444 * lto-section-in.c (lto_new_in_decl_state): Likewise.
5445 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5446 (input_eh_region): Likewise.
5447 (input_eh_lp): Likewise.
5448 (input_cfg): Likewise.
5449 * optabs.c (set_optab_libfunc): Likewise.
5450 (init_tree_optimization_optabs): Likewise.
5451 (set_conv_libfunc): Likewise.
5452 * passes.c (do_per_function_toporder): Likewise.
5453 * rtl.h: Don't use variable_size gty attribute.
5454 * sese.c (if_region_set_false_region): Adjust.
5455 * stringpool.c (gt_pch_save_stringpool): Likewise.
5456 * target-globals.c (save_target_globals): Likewise.
5457 * toplev.c (general_init): Likewise.
5458 * trans-mem.c (record_tm_replacement): Likewise.
5459 (split_bb_make_tm_edge): Likewise.
5460 * tree-cfg.c (move_sese_region_to_fn): Likewise.
5461 * tree-data-ref.h (lambda_vector_new): Likewise.
5462 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5463 * tree-iterator.c (tsi_link_before): Likewise.
5464 (tsi_link_after): Likewise.
5465 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5466 * tree-ssa-loop-niter.c (record_estimate): Likewise.
5467 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5468 * tree-ssa-operands.h: Don't use variable_size gty attribute.
5469 * tree-ssa.c (init_tree_ssa): Adjust.
5470 * tree-ssanames.c (set_range_info): Likewise.
5471 (get_ptr_info): Likewise.
5472 (duplicate_ssa_name_ptr_info): Likewise.
5473 (duplicate_ssa_name_range_info): Likewise.
5474 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
5475 (unpack_ts_fixed_cst_value_fields): Likewise.
5476 * tree.c (build_fixed): Likewise.
5477 (build_real): Likewise.
5478 (build_string): Likewise.
5479 (decl_priority_info): Likewise.
5480 (decl_debug_expr_insert): Likewise.
5481 (decl_value_expr_insert): Likewise.
5482 (decl_debug_args_insert): Likewise.
5483 (type_hash_add): Likewise.
5484 (build_omp_clause): Likewise.
5485 * ubsan.c (decl_for_type_insert): Likewise.
5486 * varasm.c (get_unnamed_section): Likewise.
5487 (get_noswitch_section): Likewise.
5488 (get_section): Likewise.
5489 (get_block_for_section): Likewise.
5490 (create_block_symbol): Likewise.
5491 (build_constant_desc): Likewise.
5492 (create_constant_pool): Likewise.
5493 (force_const_mem): Likewise.
5494 (record_tm_clone_pair): Likewise.
5495 * varpool.c (varpool_create_empty_node): Likewise.
5496
5497 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5498
5499 * dwarf2out.c (tree_add_const_value_attribute): Call
5500 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
5501 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
5502 instead of ggc_internal_<x>alloc_stat.
5503 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
5504 (ggc_realloc): Likewise.
5505 * ggc-none.c (ggc_internal_alloc): Likewise.
5506 (ggc_internal_cleared_alloc): Likewise.
5507 * ggc-page.c: Likewise.
5508 * ggc.h (ggc_internal_alloc_stat): Likewise.
5509 (ggc_internal_alloc): Remove macro.
5510 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
5511 (ggc_internal_cleared_alloc): Remove macro.
5512 (GGC_RESIZEVEC): Adjust.
5513 (ggc_resizevar): Remove macro.
5514 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
5515 (ggc_internal_cleared_vec_alloc_stat): Likewise.
5516 (ggc_internal_vec_cleared_alloc): Remove macro.
5517 (ggc_alloc_atomic_stat): Drop _stat suffix.
5518 (ggc_alloc_atomic): Remove macro.
5519 (ggc_alloc_cleared_atomic): Remove macro.
5520 (ggc_alloc_string_stat): Drop _stat suffix.
5521 (ggc_alloc_string): Remove macro.
5522 (ggc_alloc_rtx_def_stat): Adjust.
5523 (ggc_alloc_tree_node_stat): Likewise.
5524 (ggc_alloc_cleared_tree_node_stat): Likewise.
5525 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
5526 (ggc_alloc_cleared_simd_clone_stat): Likewise.
5527 * gimple.c (gimple_build_omp_for): Likewise.
5528 (gimple_copy): Likewise.
5529 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
5530 * toplev.c (realloc_for_line_map): Adjust.
5531 * tree-data-ref.h (lambda_vector_new): Likewise.
5532 * tree-phinodes.c (allocate_phi_node): Likewise.
5533 * tree.c (grow_tree_vec_stat): Likewise.
5534 * vec.h (va_gc::reserve): Adjust.
5535
5536 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
5537
5538 * config/microblaze/microblaze.c (break_handler): New Declaration.
5539 (microblaze_break_function_p,microblaze_is_break_handler): New.
5540 (compute_frame_size): Use microblaze_break_function_p.
5541 Add the test of break_handler.
5542 (microblaze_function_prologue) : Add the test of variable
5543 break_handler. Check the fnname by BREAK_HANDLER_NAME.
5544 (microblaze_function_epilogue) : Add the test of break_handler.
5545 (microblaze_globalize_label) : Add the test of break_handler.
5546 Check the name by BREAK_HANDLER_NAME.
5547
5548 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
5549
5550 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
5551 microblaze_is_break_handler test.
5552 (call_internal1,call_value_intern): Use microblaze_break_function_p.
5553 Use SYMBOL_REF_DECL.
5554
5555 * config/microblaze/microblaze-protos.h
5556 (microblaze_break_function_p,microblaze_is_break_handler):
5557 New Declaration.
5558
5559 * doc/extend.texi (MicroBlaze break_handler Functions): Document
5560 new MicroBlaze break_handler functions.
5561
5562 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
5563
5564 * doc/extend.texi (Size of an asm): Move node text according
5565 to its @menu entry position.
5566
5567 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
5568
5569 PR tree-optimization/61140
5570 PR tree-optimization/61150
5571 PR tree-optimization/61197
5572 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
5573
5574 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
5575
5576 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
5577
5578 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
5579
5580 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
5581 __SIZEOF_INT128__ is defined.
5582
5583 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5584
5585 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
5586 (rs6000_delegitimize_address): Use it.
5587
5588 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
5589
5590 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
5591 inplace argument. Store the new address in the original MEM when true.
5592 * emit-rtl.c (change_address_1): Likewise.
5593 (adjust_address_1, adjust_automodify_address_1, offset_address):
5594 Update accordingly.
5595 * rtl.h (plus_constant): Add an inplace argument.
5596 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
5597 when true. Avoid generating (plus X (const_int 0)).
5598 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
5599 in-place. Pass true to plus_constant.
5600 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
5601
5602 2014-05-16 Dehao Chen <dehao@google.com>
5603
5604 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
5605
5606 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
5607
5608 PR target/54089
5609 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
5610 patterns.
5611 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
5612
5613 2014-05-16 Dehao Chen <dehao@google.com>
5614
5615 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
5616 optimize_function_for_size_p.
5617 * regs.h (REG_FREQ_FROM_BB): Likewise.
5618
5619 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
5620
5621 PR target/51244
5622 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
5623 negt_reg_operand cases.
5624 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
5625 predicate.
5626 * config/sh/predicates.md (cbranch_treg_value): Simplify.
5627
5628 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
5629
5630 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
5631 target variants.
5632
5633 2014-05-16 David Malcolm <dmalcolm@redhat.com>
5634
5635 Revert:
5636 2014-04-29 David Malcolm <dmalcolm@redhat.com>
5637
5638 * tree-cfg.c (dump_function_to_file): Dump the return type of
5639 functions, in a line to itself before the function body, mimicking
5640 the layout of a C function.
5641
5642 2014-05-16 Dehao Chen <dehao@google.com>
5643
5644 * cfghooks.c (make_forwarder_block): Use direct computation to
5645 get fall-through edge's count and frequency.
5646
5647 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
5648
5649 * config/arc/arc.c (arc_init): Fix typo in error message.
5650 * config/i386/i386.c (ix86_expand_builtin): Likewise.
5651 (split_stack_prologue_scratch_regno): Likewise.
5652 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
5653 word from error message.
5654
5655 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5656
5657 * ira-costs.c: Fix typo in comment.
5658
5659 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
5660
5661 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
5662
5663 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
5664
5665 * varpool.c (dump_varpool_node): Dump write-only flag.
5666 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
5667 write-only flag.
5668 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
5669 write-only variables.
5670 * ipa.c (process_references): New function.
5671 (set_readonly_bit): New function.
5672 (set_writeonly_bit): New function.
5673 (clear_addressable_bit): New function.
5674 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
5675 fix handling of aliases.
5676 * cgraph.h (struct varpool_node): Add writeonly flag.
5677
5678 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
5679
5680 PR rtl-optimization/60969
5681 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
5682 Calculate costs for this case.
5683
5684 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
5685
5686 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
5687 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
5688
5689 2014-05-16 Richard Biener <rguenther@suse.de>
5690
5691 PR tree-optimization/61194
5692 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
5693 bool patterns ending in a COND_EXPR.
5694
5695 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5696
5697 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
5698
5699 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5700
5701 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
5702 where we were unable to cost an RTX.
5703
5704 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5705
5706 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
5707 HIGH, LO_SUM.
5708
5709 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5710 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5711
5712 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
5713
5714 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5715 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5716
5717 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
5718 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
5719
5720 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5721 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5722
5723 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
5724 operators.
5725
5726 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5727 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5728
5729 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
5730 DIV/MOD.
5731
5732 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5733 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5734
5735 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
5736 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
5737
5738 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5739 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5740
5741 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
5742 rotates and shifts.
5743
5744 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5745 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5746
5747 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
5748 ZERO_EXTEND and SIGN_EXTEND better.
5749
5750 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5751 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5752
5753 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
5754 logical operations.
5755
5756 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5757 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5758
5759 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
5760 costs when costing loads and stores to memory.
5761
5762 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5763 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
5764
5765 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
5766 for SET RTX.
5767
5768 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5769
5770 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
5771
5772 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5773 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5774
5775 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
5776 to...
5777 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
5778 well formed.
5779 (aarch64_rtx_mult_cost): New.
5780 (aarch64_rtx_costs): Use it, refactor as appropriate.
5781
5782 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5783 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5784
5785 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
5786 emit instructions, return number of instructions which would
5787 be emitted.
5788 (aarch64_add_constant): Update call to aarch64_build_constant.
5789 (aarch64_output_mi_thunk): Likewise.
5790 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
5791 a CONST_DOUBLE.
5792
5793 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5794
5795 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
5796 (TARGET_RTX_COSTS): Call it.
5797
5798 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5799
5800 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
5801 (cortexa57_vector_cost): Likewise.
5802 (cortexa57_tunings): Use them.
5803
5804 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
5805
5806 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
5807 (cpu_addrcost_table): Use it.
5808 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
5809 (aarch64_address_cost): Rewrite using aarch64_classify_address,
5810 move it.
5811
5812 2014-05-16 Richard Biener <rguenther@suse.de>
5813
5814 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
5815 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
5816 (visit_phi): Ignore edges marked as not executable.
5817 (class cond_dom_walker): New.
5818 (cond_dom_walker::before_dom_children): Value-number
5819 control statements and mark successor edges as not
5820 executable if possible.
5821 (run_scc_vn): First walk all control statements in
5822 dominator order, marking edges as not executable.
5823 * tree-inline.c (copy_edges_for_bb): Be not confused
5824 about random edge flags.
5825
5826 2014-05-16 Richard Biener <rguenther@suse.de>
5827
5828 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
5829
5830 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
5831
5832 PR target/61193
5833 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
5834 (__TM_simple_begin): Use it.
5835 (__TM_begin): Likewise.
5836
5837 2014-05-15 Martin Jambor <mjambor@suse.cz>
5838
5839 PR ipa/61085
5840 * ipa-prop.c (update_indirect_edges_after_inlining): Check
5841 type_preserved flag when the indirect edge is polymorphic.
5842
5843 2014-05-15 Martin Jambor <mjambor@suse.cz>
5844
5845 PR tree-optimization/61090
5846 * tree-sra.c (sra_modify_expr): Pass the current gsi to
5847 build_ref_for_model.
5848
5849 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5850
5851 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
5852 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
5853
5854 2014-05-15 Jakub Jelinek <jakub@redhat.com>
5855
5856 PR tree-optimization/61158
5857 * fold-const.c (fold_binary_loc): If X is zero-extended and
5858 shiftc >= prec, make sure zerobits is all ones instead of
5859 invoking undefined behavior.
5860
5861 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5862
5863 * regcprop.h: New file.
5864 * regcprop.c (skip_debug_insn_p): New decl.
5865 (replace_oldest_value_reg): Check skip_debug_insn_p.
5866 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
5867 * shrink-wrap.c: Include regcprop.h.
5868 (prepare_shrink_wrap): Call
5869 copyprop_hardreg_forward_bb_without_debug_insn.
5870
5871 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
5872
5873 * shrink-wrap.h: Update comment.
5874 * shrink-wrap.c: Update comment.
5875 (next_block_for_reg): Rename to live_edge_for_reg.
5876 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
5877 (move_insn_for_shrink_wrap): Split live_edge.
5878 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
5879
5880 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
5881
5882 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
5883 Delete.
5884 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
5885 * config/sparc/sparc.md (fptype_ut699): New attribute.
5886 (in_branch_delay): Return false if -mfix-ut699 is specified and
5887 fptype_ut699 is set to single.
5888 (truncdfsf2): Add fptype_ut699 attribute.
5889 (fix_truncdfsi2): Likewise.
5890 (floatsisf2): Change fptype attribute.
5891 (fix_truncsfsi2): Likewise.
5892 (negtf2_notv9): Delete.
5893 (negtf2_v9): Likewise.
5894 (negtf2_hq): New instruction.
5895 (negtf2): New instruction and splitter.
5896 (negdf2_notv9): Rewrite.
5897 (abstf2_notv9): Delete.
5898 (abstf2_hq_v9): Likewise.
5899 (abstf2_v9): Likewise.
5900 (abstf2_hq): New instruction.
5901 (abstf2): New instruction and splitter.
5902 (absdf2_notv9): Rewrite.
5903
5904 2014-05-14 Cary Coutant <ccoutant@google.com>
5905
5906 PR debug/61013
5907 * opts.c (common_handle_option): Don't special-case "-g".
5908 (set_debug_level): Default to at least level 2 with "-g".
5909
5910 2014-05-14 DJ Delorie <dj@redhat.com>
5911
5912 * config/msp430/msp430.c (msp430_builtin): Add
5913 MSP430_BUILTIN_DELAY_CYCLES.
5914 (msp430_init_builtins): Register void __delay_cycles(long long).
5915 (msp430_builtin_decl): Add it.
5916 (cg_magic_constant): New.
5917 (msp430_expand_delay_cycles): New.
5918 (msp430_expand_builtin): Call it.
5919 (msp430_print_operand_raw): Change integer printing from "int" to
5920 HOST_WIDE_INT.
5921 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
5922 (delay_cycles_start): New.
5923 (delay_cycles_end): New.
5924 (delay_cycles_32): New.
5925 (delay_cycles_32x): New.
5926 (delay_cycles_16): New.
5927 (delay_cycles_16x): New.
5928 (delay_cycles_2): New.
5929 (delay_cycles_1): New.
5930 * doc/extend.texi: Document __delay_cycles().
5931
5932 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
5933
5934 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
5935 length attribute computation.
5936
5937 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
5938
5939 PR debug/61188
5940 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
5941
5942 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
5943
5944 PR target/61084
5945 * config/sparc/sparc.md: Fix types of low and high in DI constant
5946 splitter. Use gen_int_mode in some other splitters.
5947
5948 2014-05-14 Martin Jambor <mjambor@suse.cz>
5949
5950 PR ipa/60897
5951 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
5952
5953 2014-05-14 James Norris <jnorris@codesourcery.com>
5954
5955 * omp-low.c (expand_parallel_call): Remove shadow variable.
5956 (expand_omp_taskreg): Likewise.
5957
5958 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
5959
5960 * common/config/i386/i386-common.c
5961 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
5962 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
5963 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
5964 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
5965 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
5966 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
5967 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
5968 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
5969 xsavecintrin.h, xsavesintrin.h.
5970 (x86_64-*-*): Ditto.
5971 * config/i386/clflushoptintrin.h: New.
5972 * config/i386/xsavecintrin.h: Ditto.
5973 * config/i386/xsavesintrin.h: Ditto.
5974 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
5975 (bit_XSAVES): Ditto.
5976 (bit_XSAVES): Ditto.
5977 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
5978 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
5979 -mno-clflushopt.
5980 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5981 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
5982 OPTION_MASK_ISA_XSAVES.
5983 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
5984 -mxsavec, -mxsaves.
5985 (PTA_CLFLUSHOPT) Define.
5986 (PTA_XSAVEC): Ditto.
5987 (PTA_XSAVES): Ditto.
5988 (ix86_option_override_internal): Handle new options.
5989 (ix86_valid_target_attribute_inner_p): Ditto.
5990 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
5991 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
5992 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
5993 (bdesc_special_args): Add __builtin_ia32_xsaves,
5994 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
5995 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
5996 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
5997 (ix86_expand_builtin): Handle new builtins.
5998 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
5999 (TARGET_CLFLUSHOPT_P): Ditto.
6000 (TARGET_XSAVEC): Ditto.
6001 (TARGET_XSAVEC_P): Ditto.
6002 (TARGET_XSAVES): Ditto.
6003 (TARGET_XSAVES_P): Ditto.
6004 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
6005 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
6006 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
6007 (ANY_XRSTOR): New.
6008 (ANY_XRSTOR64): Ditto.
6009 (xrstor): Ditto.
6010 (xrstor): Change into <xrstor>.
6011 (xrstor_rex64): Change into <xrstor>_rex64.
6012 (xrstor64): Change into <xrstor>64
6013 (clflushopt): New.
6014 * config/i386/i386.opt (mclflushopt): New.
6015 (mxsavec): Ditto.
6016 (mxsaves): Ditto.
6017 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
6018 xsavecintrin.h.
6019 * doc/invoke.texi: Document new options.
6020
6021 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
6022
6023 PR rtl-optimization/60866
6024 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
6025 Default it to -1. Pass it down to init_simplejump_data.
6026 (init_simplejump_data): New parameter old_seqno. Pass it down
6027 to get_seqno_for_a_jump.
6028 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
6029 initializing new jump seqno as a last resort. Add comment.
6030 (sel_redirect_edge_and_branch): Save old seqno of the conditional
6031 jump and pass it down to sel_init_new_insn.
6032 (sel_redirect_edge_and_branch_force): Likewise.
6033
6034 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
6035
6036 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
6037 shifted values to avoid build warning.
6038
6039 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
6040
6041 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
6042 * cfgrtl.c (rtl_merge_blocks): Fix comment.
6043 (cfg_layout_merge_blocks): Likewise.
6044 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
6045
6046 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
6047
6048 PR rtl-optimization/60901
6049 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
6050 bb predecessor belongs to the same scheduling region. Adjust comment.
6051
6052 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
6053
6054 * doc/sourcebuild.texi: (dfp_hw): Document.
6055 (p8vector_hw): Likewise.
6056 (powerpc_eabi_ok): Likewise.
6057 (powerpc_elfv2): Likewise.
6058 (powerpc_htm_ok): Likewise.
6059 (ppc_recip_hw): Likewise.
6060 (vsx_hw): Likewise.
6061
6062 2014-05-13 Cary Coutant <ccoutant@google.com>
6063
6064 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
6065
6066 2014-05-13 David Malcolm <dmalcolm@redhat.com>
6067
6068 * gengtype-parse.c (require3): Eliminate in favor of...
6069 (require4): New.
6070 (require_template_declaration): Update to support optional single *
6071 on a type.
6072
6073 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
6074 (create_user_defined_type): Handle a single level of explicit
6075 pointerness within template arguments.
6076 (struct write_types_data): Add field "kind".
6077 (filter_type_name): Handle "*" character.
6078 (write_user_func_for_structure_ptr): Require a write_types_data
6079 rather than just a prefix string, so that we can look up the kind
6080 of the wtd and use it as an index into wrote_user_func_for_ptr,
6081 ensuring that such functions are written at most once. Support
6082 subclasses by invoking the marking function of the ultimate base class.
6083 (write_user_func_for_structure_body): Require a write_types_data
6084 rather than just a prefix string, so that we can pass this to
6085 write_user_func_for_structure_ptr.
6086 (write_func_for_structure): Likewise.
6087 (ggc_wtd): Add initializer of new "kind" field.
6088 (pch_wtd): Likewise.
6089
6090 * gengtype.h (enum write_types_kinds): New.
6091 (struct type): Add field wrote_user_func_for_ptr to the "s"
6092 union member.
6093
6094 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
6095
6096 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
6097 instead of const_binop.
6098 (fold_binary_loc): Likewise.
6099
6100 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
6101
6102 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
6103 calculation to match get_ref_base_and_extent.
6104
6105 2014-05-13 Catherine Moore <clm@codesourcery.com>
6106 Sandra Loosemore <sandra@codesourcery.com>
6107
6108 * configure.ac: Fix assembly for explicit JALR relocation check.
6109 * configure: Regenerate.
6110
6111 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6112
6113 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
6114 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
6115 Remove associated type declarations and initialisations.
6116 (arm_expand_neon_builtin): Likewise.
6117 (neon_emit_pair_result_insn): Delete.
6118 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
6119 * config/arm/neon.md (neon_vtrn<mode>): Delete.
6120 (neon_vzip<mode>): Likewise.
6121 (neon_vuzp<mode>): Likewise.
6122
6123 2014-05-13 Richard Biener <rguenther@suse.de>
6124
6125 PR ipa/60973
6126 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
6127 it needs revisiting whether the call still may be tail-called.
6128
6129 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6130
6131 * rtl.def (SYMBOL_REF): Remove middle "0" field.
6132 * rtl.h (block_symbol): Reduce number of fields to 2.
6133 (rtx_def): Add u2.symbol_ref_flags.
6134 (SYMBOL_REF_FLAGS): Use it.
6135 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
6136 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
6137 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
6138 Lower index of SYMBOL_REF_DATA.
6139 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
6140 Print SYMBOL_REF_FLAGS at the same time.
6141 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
6142
6143 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6144
6145 * rtl.def (VAR_LOCATION): Remove "i" field.
6146 * rtl.h (rtx_def): Add u2.var_location_status.
6147 (PAT_VAR_LOCATION_STATUS): Use it.
6148 (gen_rtx_VAR_LOCATION): Declare.
6149 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
6150 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
6151 * var-tracking.c (emit_note_insn_var_location): Remove casts.
6152
6153 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6154
6155 * rtl.def (scratch): Fix outdated comment and remove "0" field.
6156 * gengtype.c (adjust_field_rtx_def): Update accordingly.
6157
6158 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6159
6160 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
6161 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
6162 * rtl.h (rtx_def): Add insn_uid to u2 field.
6163 (RTX_FLAG_CHECK8): Delete in favor of...
6164 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
6165 (INSN_DELETED_P): Update accordingly.
6166 (INSN_UID): Use u2.insn_uid.
6167 (INSN_CHAIN_CODE_P): Define.
6168 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
6169 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
6170 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
6171 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
6172 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
6173 indices accordingly.
6174 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
6175 Update indices for insn-chain rtxes.
6176 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
6177 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
6178 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
6179 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
6180 * combine.c (try_combine): Likewise.
6181 * ira.c (setup_prohibited_mode_move_regs): Likewise.
6182
6183 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6184
6185 * rtl.def (REG): Remove middle field.
6186 * rtl.h (rtx_def): Add orignal_regno to u2.
6187 (ORIGINAL_REGNO): Use it instead of field 1.
6188 (REG_ATTRS): Lower field index accordingly.
6189 * gengtype.c (adjust_field_rtx_def): Remove handling of
6190 ORIGINAL_REGNO. Move REG_ATTRS index down.
6191 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
6192 code that prints the REGNO.
6193
6194 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6195
6196 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
6197 GENERATOR_FILE.
6198
6199 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
6200
6201 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
6202
6203 2014-05-13 Bin Cheng <bin.cheng@arm.com>
6204
6205 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
6206 (alloc_iv): Lower base expressions containing ADDR_EXPR.
6207
6208 2014-05-13 Ian Bolton <ian.bolton@arm.com>
6209
6210 * config/aarch64/aarch64-protos.h
6211 (aarch64_hard_regno_caller_save_mode): New prototype.
6212 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
6213 New function.
6214 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
6215
6216 2014-05-13 Christian Bruel <christian.bruel@st.com>
6217
6218 * target.def (mode_switching): New hook vector.
6219 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
6220 (mode_exit, modepriority_to_mode): Likewise.
6221 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
6222 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
6223 * target.h: Include tm.h and hard-reg-set.h.
6224 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
6225 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
6226 * doc/tm.texi Regenerate.
6227 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
6228 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
6229 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
6230 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
6231 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
6232 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
6233 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
6234 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
6235 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
6236 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
6237 (ix86_emit_mode_set): Hookify.
6238 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
6239 Delete.
6240 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
6241 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
6242 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
6243 (epiphany_mode_priority_to_mode): Remove declaration.
6244 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
6245 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
6246 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
6247 Likewise.
6248 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
6249 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
6250 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
6251
6252 2014-05-13 Jakub Jelinek <jakub@redhat.com>
6253
6254 PR target/61060
6255 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
6256 is const0_rtx, return immediately. Don't test count == 0 when
6257 it is always true.
6258
6259 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6260
6261 * Makefile.in: add shrink-wrap.o.
6262 * config/i386/i386.c: include "shrink-wrap.h"
6263 * function.c: Likewise.
6264 (requires_stack_frame_p, next_block_for_reg,
6265 move_insn_for_shrink_wrap, prepare_shrink_wrap,
6266 dup_block_and_redirect): Move to shrink-wrap.c
6267 (thread_prologue_and_epilogue_insns): Extract three code segments
6268 as functions in shrink-wrap.c
6269 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
6270 shrink-wrap.h
6271 * shrink-wrap.c: New file.
6272 * shrink-wrap.h: New file.
6273
6274 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
6275
6276 * doc/extend.texi: Reflect current numbers of pragmas. Remove
6277 reference to Solaris.
6278
6279 2014-05-12 Mike Stump <mikestump@comcast.net>
6280
6281 PR other/31778
6282 * genattrtab.c (filename): Add.
6283 (convert_set_attr_alternative): Improve error message.
6284 (check_defs): Restore read_md_filename for error messages.
6285 (gen_insn): Save filename.
6286
6287 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
6288
6289 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
6290 -fno-local-ivars and -fivar-visibility.
6291 * c-family/c.opt: Make -Wshadow also implicitly enable
6292 -Wshadow-ivar.
6293
6294 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
6295
6296 * doc/tm.texi: Remove reference to deleted macro.
6297 * doc/tm.texi.in: Likewise.
6298
6299 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6300
6301 PR target/60991
6302 * config/avr/avr.c (avr_out_store_psi): Use correct constant
6303 to restore Y.
6304
6305 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
6306
6307 PR libgcc/61152
6308 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
6309 * config/arm/aout.h (License): Same.
6310 * config/arm/bpabi.h (License): Same.
6311 * config/arm/elf.h (License): Same.
6312 * config/arm/linux-elf.h (License): Same.
6313 * config/arm/linux-gas.h (License): Same.
6314 * config/arm/netbsd-elf.h (License): Same.
6315 * config/arm/uclinux-eabi.h (License): Same.
6316 * config/arm/uclinux-elf.h (License): Same.
6317 * config/arm/vxworks.h (License): Same.
6318
6319 2014-05-11 Jakub Jelinek <jakub@redhat.com>
6320
6321 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
6322 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
6323 number of operands to 3.
6324 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
6325 * tree-nested.c (convert_nonlocal_omp_clauses,
6326 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
6327 * gimplify.c (gimplify_scan_omp_clauses): Handle
6328 OMP_CLAUSE_LINEAR_STMT.
6329 * omp-low.c (lower_rec_input_clauses): Fix typo.
6330 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
6331 cast between Fortran boolean_type_node and C _Bool if
6332 needed.
6333
6334 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
6335
6336 PR tree-optimization/61136
6337 * wide-int.h (multiple_of_p): Define a version that doesn't return
6338 the quotient.
6339 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
6340 integer_zerop/const_binop pair.
6341 (multiple_of_p): Likewise, converting both operands to widest_int
6342 precision.
6343
6344 2014-05-09 Teresa Johnson <tejohnson@google.com>
6345
6346 * cgraphunit.c (analyze_functions): Use correct dump file.
6347
6348 2014-05-09 Florian Weimer <fweimer@redhat.com>
6349
6350 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
6351 expand_used_vars.
6352 (stack_protect_return_slot_p): New function.
6353 (expand_used_vars): Call stack_protect_decl_p and
6354 stack_protect_return_slot_p for -fstack-protector-strong.
6355
6356 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
6357 Andrew Haley <aph@redhat.com>
6358 Richard Sandiford <rdsandiford@googlemail.com>
6359
6360 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
6361 pages.
6362
6363 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
6364
6365 PR middle-end/61111
6366 * fold-const.c (fold_binary_loc): Changed width of mask.
6367
6368 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
6369
6370 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
6371 unsigned int initializers for regno_in, regno_out.
6372
6373 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
6374
6375 PR target/61055
6376 * config/avr/avr.md (cc): Add new attribute set_vzn.
6377 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
6378 Set cc insn attribute to set_vzn instead of set_zn for alternatives
6379 with INC, DEC or NEG.
6380 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
6381 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
6382 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
6383
6384 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6385
6386 Revert:
6387 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6388
6389 * wide-int.cc (UTItype): Define.
6390 (UDWtype): Define for appropriate W_TYPE_SIZE.
6391
6392 2014-05-09 Richard Biener <rguenther@suse.de>
6393
6394 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
6395 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
6396 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
6397 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
6398 ssa_propagate): Adjust.
6399
6400 2014-05-08 Jeff Law <law@redhat.com>
6401
6402 PR tree-optimization/61009
6403 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
6404 tri-state rather than a boolean. When a block is too big to
6405 thread through, inform caller via negative return value.
6406 (thread_across_edge): If a block was too big for normal threading,
6407 then it's too big for a joiner too, so remove temporary equivalences
6408 and return immediately.
6409
6410 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6411 Matthias Klose <doko@ubuntu.com>
6412
6413 PR driver/61106
6414 * optc-gen.awk: Fix option handling for -Wunused-parameter.
6415
6416 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
6417
6418 PR target/59952
6419 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
6420
6421 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
6422
6423 PR target/61092
6424 * config/alpha/alpha.c: Include gimple-iterator.h.
6425 (alpha_gimple_fold_builtin): New function. Move
6426 ALPHA_BUILTIN_UMULH folding from ...
6427 (alpha_fold_builtin): ... here.
6428 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
6429
6430 2014-05-08 Wei Mi <wmi@google.com>
6431
6432 PR target/58066
6433 * config/i386/i386.c (ix86_compute_frame_layout): Update
6434 preferred_stack_boundary for call, expanded from tls descriptor.
6435 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
6436 to depend on SP register.
6437 (*tls_local_dynamic_base_32_gnu): Ditto.
6438 (*tls_local_dynamic_32_once): Ditto.
6439 (tls_global_dynamic_64_<mode>): Set
6440 ix86_tls_descriptor_calls_expanded_in_cfun.
6441 (tls_local_dynamic_base_64_<mode>): Ditto.
6442 (tls_global_dynamic_32): Set
6443 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
6444 to depend on SP register.
6445 (tls_local_dynamic_base_32): Ditto.
6446
6447 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6448
6449 * config/arm/arm_neon.h: Update comment.
6450 * config/arm/neon-docgen.ml: Delete.
6451 * config/arm/neon-gen.ml: Delete.
6452 * doc/arm-neon-intrinsics.texi: Update comment.
6453
6454 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6455
6456 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
6457 and v4sf versions.
6458 (vand, vorr, veor, vorn, vbic): Remove.
6459 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
6460 iterator.
6461 (neon_vsub_unspec): Likewise.
6462 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
6463
6464 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6465
6466 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
6467 (vadd_s16): Likewise.
6468 (vadd_s32): Likewise.
6469 (vadd_f32): Likewise.
6470 (vadd_u8): Likewise.
6471 (vadd_u16): Likewise.
6472 (vadd_u32): Likewise.
6473 (vadd_s64): Likewise.
6474 (vadd_u64): Likewise.
6475 (vaddq_s8): Likewise.
6476 (vaddq_s16): Likewise.
6477 (vaddq_s32): Likewise.
6478 (vaddq_s64): Likewise.
6479 (vaddq_f32): Likewise.
6480 (vaddq_u8): Likewise.
6481 (vaddq_u16): Likewise.
6482 (vaddq_u32): Likewise.
6483 (vaddq_u64): Likewise.
6484 (vmul_s8): Likewise.
6485 (vmul_s16): Likewise.
6486 (vmul_s32): Likewise.
6487 (vmul_f32): Likewise.
6488 (vmul_u8): Likewise.
6489 (vmul_u16): Likewise.
6490 (vmul_u32): Likewise.
6491 (vmul_p8): Likewise.
6492 (vmulq_s8): Likewise.
6493 (vmulq_s16): Likewise.
6494 (vmulq_s32): Likewise.
6495 (vmulq_f32): Likewise.
6496 (vmulq_u8): Likewise.
6497 (vmulq_u16): Likewise.
6498 (vmulq_u32): Likewise.
6499 (vsub_s8): Likewise.
6500 (vsub_s16): Likewise.
6501 (vsub_s32): Likewise.
6502 (vsub_f32): Likewise.
6503 (vsub_u8): Likewise.
6504 (vsub_u16): Likewise.
6505 (vsub_u32): Likewise.
6506 (vsub_s64): Likewise.
6507 (vsub_u64): Likewise.
6508 (vsubq_s8): Likewise.
6509 (vsubq_s16): Likewise.
6510 (vsubq_s32): Likewise.
6511 (vsubq_s64): Likewise.
6512 (vsubq_f32): Likewise.
6513 (vsubq_u8): Likewise.
6514 (vsubq_u16): Likewise.
6515 (vsubq_u32): Likewise.
6516 (vsubq_u64): Likewise.
6517 (vand_s8): Likewise.
6518 (vand_s16): Likewise.
6519 (vand_s32): Likewise.
6520 (vand_u8): Likewise.
6521 (vand_u16): Likewise.
6522 (vand_u32): Likewise.
6523 (vand_s64): Likewise.
6524 (vand_u64): Likewise.
6525 (vandq_s8): Likewise.
6526 (vandq_s16): Likewise.
6527 (vandq_s32): Likewise.
6528 (vandq_s64): Likewise.
6529 (vandq_u8): Likewise.
6530 (vandq_u16): Likewise.
6531 (vandq_u32): Likewise.
6532 (vandq_u64): Likewise.
6533 (vorr_s8): Likewise.
6534 (vorr_s16): Likewise.
6535 (vorr_s32): Likewise.
6536 (vorr_u8): Likewise.
6537 (vorr_u16): Likewise.
6538 (vorr_u32): Likewise.
6539 (vorr_s64): Likewise.
6540 (vorr_u64): Likewise.
6541 (vorrq_s8): Likewise.
6542 (vorrq_s16): Likewise.
6543 (vorrq_s32): Likewise.
6544 (vorrq_s64): Likewise.
6545 (vorrq_u8): Likewise.
6546 (vorrq_u16): Likewise.
6547 (vorrq_u32): Likewise.
6548 (vorrq_u64): Likewise.
6549 (veor_s8): Likewise.
6550 (veor_s16): Likewise.
6551 (veor_s32): Likewise.
6552 (veor_u8): Likewise.
6553 (veor_u16): Likewise.
6554 (veor_u32): Likewise.
6555 (veor_s64): Likewise.
6556 (veor_u64): Likewise.
6557 (veorq_s8): Likewise.
6558 (veorq_s16): Likewise.
6559 (veorq_s32): Likewise.
6560 (veorq_s64): Likewise.
6561 (veorq_u8): Likewise.
6562 (veorq_u16): Likewise.
6563 (veorq_u32): Likewise.
6564 (veorq_u64): Likewise.
6565 (vbic_s8): Likewise.
6566 (vbic_s16): Likewise.
6567 (vbic_s32): Likewise.
6568 (vbic_u8): Likewise.
6569 (vbic_u16): Likewise.
6570 (vbic_u32): Likewise.
6571 (vbic_s64): Likewise.
6572 (vbic_u64): Likewise.
6573 (vbicq_s8): Likewise.
6574 (vbicq_s16): Likewise.
6575 (vbicq_s32): Likewise.
6576 (vbicq_s64): Likewise.
6577 (vbicq_u8): Likewise.
6578 (vbicq_u16): Likewise.
6579 (vbicq_u32): Likewise.
6580 (vbicq_u64): Likewise.
6581 (vorn_s8): Likewise.
6582 (vorn_s16): Likewise.
6583 (vorn_s32): Likewise.
6584 (vorn_u8): Likewise.
6585 (vorn_u16): Likewise.
6586 (vorn_u32): Likewise.
6587 (vorn_s64): Likewise.
6588 (vorn_u64): Likewise.
6589 (vornq_s8): Likewise.
6590 (vornq_s16): Likewise.
6591 (vornq_s32): Likewise.
6592 (vornq_s64): Likewise.
6593 (vornq_u8): Likewise.
6594 (vornq_u16): Likewise.
6595 (vornq_u32): Likewise.
6596 (vornq_u64): Likewise.
6597
6598 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6599
6600 * wide-int.cc (UTItype): Define.
6601 (UDWtype): Define for appropriate W_TYPE_SIZE.
6602
6603 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
6604
6605 PR tree-optimization/59100
6606 * tree-ssa-phiopt.c: Include tree-inline.h.
6607 (neutral_element_p, absorbing_element_p): New functions.
6608 (value_replacement): Handle conditional binary operations with a
6609 neutral or absorbing element.
6610
6611 2014-05-08 Richard Biener <rguenther@suse.de>
6612
6613 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
6614 folding the expression.
6615 (valueize_expr): Remove.
6616 (visit_reference_op_load): Do not valueize the result of
6617 vn_get_expr_for.
6618 (simplify_binary_expression): Likewise.
6619 (simplify_unary_expression): Likewise.
6620
6621 2014-05-08 Richard Biener <rguenther@suse.de>
6622
6623 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
6624 looking at TYPE_ARG_TYPES.
6625
6626 2014-05-08 Richard Biener <rguenther@suse.de>
6627
6628 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
6629 pointer propagation special-case.
6630
6631 2014-05-08 Bin Cheng <bin.cheng@arm.com>
6632
6633 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
6634 core part of address expressions.
6635
6636 2014-05-08 Alan Modra <amodra@gmail.com>
6637
6638 PR target/60737
6639 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
6640 loads and stores when -mno-strict-align at any alignment.
6641 (expand_block_clear): Similarly. Also correct calculation of
6642 instruction count.
6643
6644 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
6645
6646 PR middle-end/39246
6647 * tree-complex.c (expand_complex_move): Keep line info when expanding
6648 complex move.
6649 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
6650 of complex expression. Use new argument to display correct location
6651 for values coming from phi statement.
6652 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
6653 (warn_uninitialized_phi): Pass location of phi argument to
6654 warn_uninit.
6655 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
6656 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
6657
6658 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
6659
6660 * config/rs6000/predicates.md (indexed_address_mem): New.
6661 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
6662 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
6663 fpstore_ux, fpstore_u.
6664 (sign_extend, indexed, update): New.
6665 (cell_micro): Adjust.
6666 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
6667 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
6668 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
6669 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
6670 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
6671 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
6672 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
6673 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
6674 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
6675 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
6676 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
6677 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
6678 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
6679 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
6680 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
6681
6682 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
6683 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
6684 *vsx_extract_<mode>_store): Adjust.
6685 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
6686 is_cracked_insn, insn_must_be_first_in_group,
6687 insn_must_be_last_in_group): Adjust.
6688
6689 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
6690 Adjust.
6691 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
6692 ppc440-fpstore): Adjust.
6693 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
6694 ppc476-fpstore): Adjust.
6695 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
6696 ppc601-fpstore): Adjust.
6697 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
6698 Adjust.
6699 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
6700 Adjust.
6701 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
6702 ppc7450-fpstore): Adjust.
6703 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
6704 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
6705 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
6706 Adjust.
6707 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
6708 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
6709 cell-fpstore, cell-fpstore-update): Adjust.
6710 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
6711 ppce300c3_store, ppce300c3_fpstore): Adjust.
6712 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
6713 e500mc_fpstore): Adjust.
6714 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
6715 e500mc64_store, e500mc64_fpstore): Adjust.
6716 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
6717 e5500_fpstore): Adjust.
6718 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
6719 e6500_fpstore): Adjust.
6720 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
6721 Adjust.
6722 * config/rs6000/power4.md (power4-load, power4-load-ext,
6723 power4-load-ext-update, power4-load-ext-update-indexed,
6724 power4-load-update-indexed, power4-load-update, power4-fpload,
6725 power4-fpload-update, power4-store, power4-store-update,
6726 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
6727 Adjust.
6728 * config/rs6000/power5.md (power5-load, power5-load-ext,
6729 power5-load-ext-update, power5-load-ext-update-indexed,
6730 power5-load-update-indexed, power5-load-update, power5-fpload,
6731 power5-fpload-update, power5-store, power5-store-update,
6732 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
6733 Adjust.
6734 * config/rs6000/power6.md (power6-load, power6-load-ext,
6735 power6-load-update, power6-load-update-indexed,
6736 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
6737 power6-fpload-update, power6-store, power6-store-update,
6738 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
6739 Adjust.
6740 * config/rs6000/power7.md (power7-load, power7-load-ext,
6741 power7-load-update, power7-load-update-indexed,
6742 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
6743 power7-fpload-update, power7-store, power7-store-update,
6744 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
6745 Adjust.
6746 * config/rs6000/power8.md (power8-load, power8-load-update,
6747 power8-load-ext, power8-load-ext-update, power8-fpload,
6748 power8-fpload-update, power8-store, power8-store-update-indexed,
6749 power8-fpstore, power8-fpstore-update): Adjust.
6750 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
6751 Adjust.
6752 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
6753 titan_lsu_store, titan_lsu_fpstore): Adjust.
6754 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
6755
6756 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
6757
6758 PR target/60884
6759 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
6760 unrolled byte insns. Emit address increments after move insns.
6761
6762 2014-05-07 David Malcolm <dmalcolm@redhat.com>
6763
6764 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
6765 const_gimple, rather than a gimple.
6766 (gimple_call_builtin_p): Likewise, for the three variants.
6767
6768 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
6769 (gimple_call_builtin_p): Likewise, for the three variants.
6770
6771 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
6772
6773 PR tree-optimization/61095
6774 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
6775
6776 2014-05-07 Richard Biener <rguenther@suse.de>
6777
6778 PR tree-optimization/61034
6779 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
6780 (maybe_skip_until): Use translate to take into account
6781 lattices when trying to do disambiguations.
6782 (get_continuation_for_phi_1): Likewise.
6783 (get_continuation_for_phi): Adjust for added translate arguments.
6784 (walk_non_aliased_vuses): Likewise.
6785 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
6786 (walk_non_aliased_vuses): Likewise.
6787 (call_may_clobber_ref_p_1): Declare.
6788 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
6789 calls. Stop early if we are only supposed to disambiguate.
6790 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
6791
6792 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
6793
6794 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
6795 Emit an error when the function has arguments.
6796
6797 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
6798
6799 * cfgloop.h (unswitch_loops): Remove.
6800 * doc/passes.texi: Remove references to loop-unswitch.c
6801 * timevar.def (TV_LOOP_UNSWITCH): Remove.
6802
6803 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
6804
6805 * tree-vect-data-refs.c (vect_grouped_load_supported): New
6806 check for loads group of length 3.
6807 (vect_permute_load_chain): New permutations for loads group of
6808 length 3.
6809 * tree-vect-stmts.c (vect_model_load_cost): Change cost
6810 of vec_perm_shuffle for the new permutations.
6811
6812 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
6813
6814 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
6815 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
6816 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
6817 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
6818 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
6819 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
6820 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
6821 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
6822
6823 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
6824
6825 * loop-unswitch.c: Delete.
6826
6827 2014-05-07 Richard Biener <rguenther@suse.de>
6828
6829 * config.gcc: Always set need_64bit_hwint to yes.
6830
6831 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
6832
6833 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
6834 of using optimize_size.
6835
6836 2014-05-06 Mike Stump <mikestump@comcast.net>
6837
6838 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
6839
6840 2014-05-06 Joseph Myers <joseph@codesourcery.com>
6841
6842 * config/i386/sse.md (*mov<mode>_internal)
6843 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
6844 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
6845 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
6846 (*<code><mode>3, *andnot<mode>3<mask_name>)
6847 (<mask_codefor><code><mode>3<mask_name>): Only consider
6848 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
6849
6850 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
6851
6852 Revert:
6853 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
6854
6855 * lra-constraints.c (valid_address_p): Move earlier in file.
6856 Add a constraint argument to the address_info version.
6857 (satisfies_memory_constraint_p): New function.
6858 (satisfies_address_constraint_p): Likewise.
6859 (process_alt_operands, curr_insn_transform): Use them.
6860 (process_address): Pass the constraint to valid_address_p when
6861 checking address operands.
6862
6863 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
6864
6865 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
6866 to their respective blocks. Fix inadvertent use of "node".
6867
6868 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
6869
6870 * emit-rtl.c (init_derived_machine_modes): New functionm, split
6871 out from...
6872 (init_emit_once): ...here.
6873 * rtl.h (init_derived_machine_modes): Declare.
6874 * toplev.c (do_compile): Call it even if no_backend.
6875
6876 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
6877 Mike Stump <mikestump@comcast.net>
6878 Richard Sandiford <rdsandiford@googlemail.com>
6879 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6880
6881 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
6882 (rtx_equal_for_memref_p): Update comment.
6883 (adjust_offset_for_component_ref): Use wide-int interfaces.
6884 * builtins.c (get_object_alignment_2): Likewise.
6885 (c_readstr): Likewise.
6886 (target_char_cast): Add comment.
6887 (determine_block_size): Use wide-int interfaces.
6888 (expand_builtin_signbit): Likewise.
6889 (fold_builtin_int_roundingfn): Likewise.
6890 (fold_builtin_bitop): Likewise.
6891 (fold_builtin_bswap): Likewise.
6892 (fold_builtin_logarithm): Use signop.
6893 (fold_builtin_pow): Likewise.
6894 (fold_builtin_memory_op): Use wide-int interfaces.
6895 (fold_builtin_object_size): Likewise.
6896 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
6897 nb_iterations_estimate.
6898 (record_niter_bound): Use wide-int interfaces.
6899 (get_estimated_loop_iterations_int): Likewise.
6900 (get_estimated_loop_iterations): Likewise.
6901 (get_max_loop_iterations): Likewise.
6902 * cfgloop.h: Include wide-int.h.
6903 (struct nb_iter_bound): Change bound to widest_int.
6904 (struct loop): Change nb_iterations_upper_bound and
6905 nb_iterations_estimate to widest_int.
6906 (record_niter_bound): Switch to use widest_int.
6907 (get_estimated_loop_iterations): Likewise.
6908 (get_max_loop_iterations): Likewise.
6909 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
6910 update for wide-int.
6911 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
6912 * combine.c (try_combine): Likewise.
6913 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
6914 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
6915 interfaces.
6916 (aarch64_float_const_representable_p): Likewise.
6917 * config/arc/arc.c: Include wide-int.h.
6918 (arc_can_use_doloop_p): Use wide-int interfaces.
6919 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
6920 (vfp3_const_double_index): Likewise.
6921 * config/avr/avr.c (avr_out_round): Likewise.
6922 (avr_fold_builtin): Likewise.
6923 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
6924 (bfin_can_use_doloop_p): Likewise.
6925 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
6926 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
6927 * config/i386/i386.c: Include wide-int.h.
6928 (ix86_data_alignment): Use wide-int interfaces.
6929 (ix86_local_alignment): Likewise.
6930 (ix86_emit_swsqrtsf): Update real_from_integer.
6931 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
6932 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
6933 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
6934 (zero_constant): Likewise.
6935 (input_operand): Likewise.
6936 (splat_input_operand): Likewise.
6937 (non_logical_cint_operand): Change const_double to const_wide_int.
6938 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
6939 (easy_altivec_constant): Remove comment.
6940 (paired_expand_vector_init): Use CONSTANT_P.
6941 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
6942 (rs6000_emit_move): Update checks.
6943 (rs6000_aggregate_candidate): Use wide-int interfaces.
6944 (rs6000_expand_ternop_builtin): Likewise.
6945 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
6946 (rs6000_assemble_integer): Likewise.
6947 (rs6000_hash_constant): Likewise.
6948 (output_toc): Likewise.
6949 (rs6000_rtx_costs): Likewise.
6950 (rs6000_emit_swrsqrt); Update call to real_from_integer.
6951 * config/rs6000/rs6000-c.c: Include wide-int.h.
6952 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
6953 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
6954 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
6955 Handle CONST_WIDE_INT.
6956 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
6957 Use tree_fits_uhwi_p.
6958 * config/sparc/sparc.c: Include wide-int.h.
6959 (sparc_fold_builtin): Use wide-int interfaces.
6960 * config/vax/vax.c: Include wide-int.h.
6961 (vax_float_literal): Use real_from_integer.
6962 * coretypes.h (struct hwivec_def): New.
6963 (hwivec): New.
6964 (const_hwivec): New.
6965 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
6966 (equiv_constant): Handle CONST_WIDE_INT.
6967 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
6968 (cselib_hash_rtx): Handle CONST_WIDE_INT.
6969 * dbxout.c (stabstr_U): Use wide-int interfaces.
6970 (dbxout_type): Update to use cst_fits_shwi_p.
6971 * defaults.h (LOG2_BITS_PER_UNIT): Define.
6972 (TARGET_SUPPORTS_WIDE_INT): Add default.
6973 * dfp.c: Include wide-int.h.
6974 (decimal_real_to_integer2): Use wide-int interfaces and rename to
6975 decimal_real_to_integer.
6976 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
6977 decimal_real_to_integer.
6978 * doc/generic.texi (Constant expressions): Update for wide_int.
6979 * doc/rtl.texi (const_double): Likewise.
6980 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
6981 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
6982 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
6983 (REAL_VALUE_FROM_INT): Remove.
6984 (TARGET_SUPPORTS_WIDE_INT): New.
6985 * doc/tm.texi: Regenerate.
6986 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
6987 * double-int.h: Include wide-int.h.
6988 (struct wi::int_traits): New.
6989 * dwarf2out.c (get_full_len): New.
6990 (dw_val_equal_p): Add case dw_val_class_wide_int.
6991 (size_of_loc_descr): Likewise.
6992 (output_loc_operands): Likewise.
6993 (insert_double): Remove.
6994 (insert_wide_int): New.
6995 (add_AT_wide): New.
6996 (print_die): Add case dw_val_class_wide_int.
6997 (attr_checksum): Likewise.
6998 (attr_checksum_ordered): Likewise.
6999 (same_dw_val_p): Likewise.
7000 (size_of_die): Likewise.
7001 (value_format): Likewise.
7002 (output_die): Likewise.
7003 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
7004 Use wide-int.
7005 (clz_loc_descriptor): Use wide-int interfaces.
7006 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
7007 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
7008 (round_up_to_align): Use wide-int interfaces.
7009 (field_byte_offset): Likewise.
7010 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
7011 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
7012 CONST_DOUBLE handling. Use wide-int interfaces.
7013 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
7014 (gen_enumeration_type_die): Use add_AT_wide.
7015 (hash_loc_operands): Add case dw_val_class_wide_int.
7016 (compare_loc_operands): Likewise.
7017 * dwarf2out.h: Include wide-int.h.
7018 (wide_int_ptr): New.
7019 (enum dw_val_class): Add dw_val_class_wide_int.
7020 (struct dw_val_struct): Add val_wide.
7021 * emit-rtl.c (const_wide_int_htab): New.
7022 (const_wide_int_htab_hash): New.
7023 (const_wide_int_htab_eq): New.
7024 (lookup_const_wide_int): New.
7025 (const_double_htab_hash): Use wide-int interfaces.
7026 (const_double_htab_eq): Likewise.
7027 (rtx_to_double_int): Conditionally compile for wide-int.
7028 (immed_double_int_const): Rename to immed_wide_int_const and
7029 update for wide-int.
7030 (immed_double_const): Conditionally compile for wide-int.
7031 (init_emit_once): Use wide-int interfaces.
7032 * explow.c (plus_constant): Likewise.
7033 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
7034 (lshift_value): Use wide-int interfaces.
7035 (expand_mult): Likewise.
7036 (choose_multiplier): Likewise.
7037 (expand_smod_pow2): Likewise.
7038 (make_tree): Likewise.
7039 * expr.c (convert_modes): Consolidate handling of constants.
7040 Use wide-int interfaces.
7041 (emit_group_load_1): Add note.
7042 (store_expr): Update comment.
7043 (get_inner_reference): Use wide-int interfaces.
7044 (expand_constructor): Update comment.
7045 (expand_expr_real_2): Use wide-int interfaces.
7046 (expand_expr_real_1): Likewise.
7047 (reduce_to_bit_field_precision): Likewise.
7048 (const_vector_from_tree): Likewise.
7049 * final.c: Include wide-int-print.h.
7050 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
7051 * fixed-value.c: Include wide-int.h.
7052 (fixed_from_string): Use wide-int interfaces.
7053 (fixed_to_decimal): Likewise.
7054 (fixed_convert_from_real): Likewise.
7055 (real_convert_from_fixed): Likewise.
7056 * fold-const.h (mem_ref_offset): Return an offset_int.
7057 (div_if_zero_remainder): Remove code parameter.
7058 * fold-const.c (div_if_zero_remainder): Remove code parameter.
7059 Use wide-int interfaces.
7060 (may_negate_without_overflow_p): Use wide-int interfaces.
7061 (negate_expr_p): Likewise.
7062 (fold_negate_expr): Likewise.
7063 (int_const_binop_1): Likewise.
7064 (const_binop): Likewise.
7065 (fold_convert_const_int_from_int): Likewise.
7066 (fold_convert_const_int_from_real): Likewise.
7067 (fold_convert_const_int_from_fixed): Likewise.
7068 (fold_convert_const_fixed_from_int): Likewise.
7069 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
7070 (sign_bit_p): Use wide-int interfaces.
7071 (make_range_step): Likewise.
7072 (build_range_check): Likewise. Pass an integer of the correct type
7073 instead of using integer_one_node.
7074 (range_predecessor): Pass an integer of the correct type instead
7075 of using integer_one_node.
7076 (range_successor): Likewise.
7077 (merge_ranges): Likewise.
7078 (unextend): Use wide-int interfaces.
7079 (extract_muldiv_1): Likewise.
7080 (fold_div_compare): Likewise.
7081 (fold_single_bit_test): Likewise.
7082 (fold_sign_changed_comparison): Likewise.
7083 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
7084 (fold_plusminus_mult_expr): Use wide-int interfaces.
7085 (native_encode_int): Likewise.
7086 (native_interpret_int): Likewise.
7087 (fold_unary_loc): Likewise.
7088 (pointer_may_wrap_p): Likewise.
7089 (size_low_cst): Likewise.
7090 (mask_with_tz): Likewise.
7091 (fold_binary_loc): Likewise.
7092 (fold_ternary_loc): Likewise.
7093 (multiple_of_p): Likewise.
7094 (tree_call_nonnegative_warnv_p): Update calls to
7095 tree_int_cst_min_precision and real_from_integer.
7096 (fold_negate_const): Use wide-int interfaces.
7097 (fold_abs_const): Likewise.
7098 (fold_relational_const): Use tree_int_cst_lt.
7099 (round_up_loc): Use wide-int interfaces.
7100 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
7101 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
7102 * gengtype.c: Remove include of double-int.h.
7103 (do_typedef): Use wide-int interfaces.
7104 (open_base_files): Add wide-int.h.
7105 (main): Add offset_int and widest_int typedefs.
7106 * gengtype-lex.l: Handle "^".
7107 (CXX_KEYWORD): Add "static".
7108 * gengtype-parse.c (require3): New.
7109 (require_template_declaration): Handle constant template arguments
7110 and nested templates.
7111 * gengtype-state.c: Don't include "double-int.h".
7112 * genpreds.c (write_one_predicate_function): Update comment.
7113 (write_tm_constrs_h): Add check for hval and lval use in
7114 CONST_WIDE_INT.
7115 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
7116 (add_to_sequence): Likewise.
7117 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
7118 and const_double_operand.
7119 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
7120 interfaces.
7121 * gimple-fold.c (get_base_constructor): Likewise.
7122 (fold_array_ctor_reference): Likewise.
7123 (fold_nonarray_ctor_reference): Likewise.
7124 (fold_const_aggregate_ref_1): Likewise.
7125 (gimple_val_nonnegative_real_p): Likewise.
7126 (gimple_fold_indirect_ref): Likewise.
7127 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
7128 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
7129 (struct slsr_cand_d): Change index to be widest_int.
7130 (struct incr_info_d): Change incr to be widest_int.
7131 (alloc_cand_and_find_basis): Use wide-int interfaces.
7132 (slsr_process_phi): Likewise.
7133 (backtrace_base_for_ref): Likewise. Return a widest_int.
7134 (restructure_reference): Take a widest_int instead of a double_int.
7135 (slsr_process_ref): Use wide-int interfaces.
7136 (create_mul_ssa_cand): Likewise.
7137 (create_mul_imm_cand): Likewise.
7138 (create_add_ssa_cand): Likewise.
7139 (create_add_imm_cand): Take a widest_int instead of a double_int.
7140 (slsr_process_add): Use wide-int interfaces.
7141 (slsr_process_cast): Likewise.
7142 (slsr_process_copy): Likewise.
7143 (dump_candidate): Likewise.
7144 (dump_incr_vec): Likewise.
7145 (replace_ref): Likewise.
7146 (cand_increment): Likewise. Return a widest_int.
7147 (cand_abs_increment): Likewise.
7148 (replace_mult_candidate): Take a widest_int instead of a double_int.
7149 (replace_unconditional_candidate): Use wide-int interfaces.
7150 (incr_vec_index): Take a widest_int instead of a double_int.
7151 (create_add_on_incoming_edge): Likewise.
7152 (create_phi_basis): Use wide-int interfaces.
7153 (replace_conditional_candidate): Likewise.
7154 (record_increment): Take a widest_int instead of a double_int.
7155 (record_phi_increments): Use wide-int interfaces.
7156 (phi_incr_cost): Take a widest_int instead of a double_int.
7157 (lowest_cost_path): Likewise.
7158 (total_savings): Likewise.
7159 (analyze_increments): Use wide-int interfaces.
7160 (ncd_with_phi): Take a widest_int instead of a double_int.
7161 (ncd_of_cand_and_phis): Likewise.
7162 (nearest_common_dominator_for_cands): Likewise.
7163 (insert_initializers): Use wide-int interfaces.
7164 (all_phi_incrs_profitable): Likewise.
7165 (replace_one_candidate): Likewise.
7166 (replace_profitable_candidates): Likewise.
7167 * godump.c: Include wide-int-print.h.
7168 (go_output_typedef): Use wide-int interfaces.
7169 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
7170 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
7171 (build_loop_iteration_domains): Likewise.
7172 * hooks.h: Include wide-int.h rather than double-int.h.
7173 (hook_bool_dint_dint_uint_bool_true): Delete.
7174 (hook_bool_wint_wint_uint_bool_true): Declare.
7175 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
7176 (hook_bool_wint_wint_uint_bool_true): New.
7177 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
7178 interfaces.
7179 (ubsan_expand_si_overflow_mul_check): Likewise.
7180 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
7181 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
7182 (get_ancestor_addr_info): Likewise.
7183 (ipa_modify_call_arguments): Likewise.
7184 * loop-doloop.c (doloop_modify): Likewise.
7185 (doloop_optimize): Likewise.
7186 * loop-iv.c (iv_number_of_iterations): Likewise.
7187 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
7188 (unroll_loop_constant_iterations): Likewise.
7189 (decide_unroll_runtime_iterations): Likewise.
7190 (unroll_loop_runtime_iterations): Likewise.
7191 (decide_peel_simple): Likewise.
7192 (decide_unroll_stupid): Likewise.
7193 * lto-streamer-in.c (streamer_read_wi): Add.
7194 (input_cfg): Use wide-int interfaces.
7195 (lto_input_tree_1): Likewise.
7196 * lto-streamer-out.c (streamer_write_wi): Add.
7197 (hash_tree): Use wide-int interfaces.
7198 (output_cfg): Likewise.
7199 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
7200 (GTFILES): Add wide-int.h and signop.h.
7201 (TAGS): Look for .cc files too.
7202 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
7203 * optabs.c (expand_subword_shift): Likewise.
7204 (expand_doubleword_shift): Likewise.
7205 (expand_absneg_bit): Likewise.
7206 (expand_copysign_absneg): Likewise.
7207 (expand_copysign_bit): Likewise.
7208 * postreload.c (reload_cse_simplify_set): Likewise.
7209 * predict.c (predict_iv_comparison): Likewise.
7210 * pretty-print.h: Include wide-int-print.h.
7211 (pp_wide_int) New.
7212 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
7213 * print-tree.c: Include wide-int-print.h.
7214 (print_node_brief): Use wide-int interfaces.
7215 (print_node): Likewise.
7216 * read-rtl.c (validate_const_wide_int): New.
7217 (read_rtx_code): Add CONST_WIDE_INT case.
7218 * real.c: Include wide-int.h.
7219 (real_to_integer2): Delete.
7220 (real_to_integer): New function, returning a wide_int.
7221 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
7222 (ten_to_ptwo): Update call to real_from_integer.
7223 (real_digit): Likewise.
7224 * real.h: Include signop.h, wide-int.h and insn-modes.h.
7225 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
7226 (REAL_VALUE_TO_INT): Delete.
7227 (real_to_integer): Declare a wide-int form.
7228 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
7229 * recog.c (const_int_operand): Improve comment.
7230 (const_scalar_int_operand): New.
7231 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
7232 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
7233 (split_double): Likewise.
7234 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
7235 (rtx_size): Likewise.
7236 (rtx_alloc_stat_v): New.
7237 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
7238 (cwi_output_hex): New.
7239 (iterative_hash_rtx): Handle CONST_WIDE_INT.
7240 (cwi_check_failed_bounds): New.
7241 * rtl.def (CONST_WIDE_INT): New.
7242 * rtl.h: Include <utility> and wide-int.h.
7243 (struct hwivec_def): New.
7244 (CWI_GET_NUM_ELEM): New.
7245 (CWI_PUT_NUM_ELEM): New.
7246 (struct rtx_def): Add num_elem and hwiv.
7247 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
7248 (CASE_CONST_UNIQUE): Likewise.
7249 (CASE_CONST_ANY): Likewise.
7250 (CONST_SCALAR_INT_P): Likewise.
7251 (CONST_WIDE_INT_P): New.
7252 (CWI_ELT): New.
7253 (HWIVEC_CHECK): New.
7254 (cwi_check_failed_bounds): New.
7255 (CWI_ELT): New.
7256 (HWIVEC_CHECK): New.
7257 (CONST_WIDE_INT_VEC) New.
7258 (CONST_WIDE_INT_NUNITS) New.
7259 (CONST_WIDE_INT_ELT) New.
7260 (rtx_mode_t): New type.
7261 (wi::int_traits <rtx_mode_t>): New.
7262 (wi::shwi): New.
7263 (wi::min_value): New.
7264 (wi::max_value): New.
7265 (rtx_alloc_v) New.
7266 (const_wide_int_alloc): New.
7267 (immed_wide_int_const): New.
7268 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
7269 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
7270 * signop.h: New file.
7271 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
7272 (simplify_const_unary_operation): Use wide-int interfaces.
7273 (simplify_binary_operation_1): Likewise.
7274 (simplify_const_binary_operation): Likewise.
7275 (simplify_const_relational_operation): Likewise.
7276 (simplify_immed_subreg): Likewise.
7277 * stmt.c (expand_case): Likewise.
7278 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
7279 signop rather than a bool.
7280 * stor-layout.c (layout_type): Use wide-int interfaces.
7281 (initialize_sizetypes): Update calls to
7282 set_min_and_max_values_for_integral_type.
7283 (set_min_and_max_values_for_integral_type): Take a signop rather
7284 than a bool. Use wide-int interfaces.
7285 (fixup_signed_type): Update accordingly. Remove
7286 HOST_BITS_PER_DOUBLE_INT limit.
7287 (fixup_unsigned_type): Likewise.
7288 * system.h (STATIC_CONSTANT_P): New.
7289 (STATIC_ASSERT): New.
7290 * target.def (can_use_doloop_p): Take widest_ints rather than
7291 double_ints.
7292 * target.h: Include wide-int.h rather than double-int.h.
7293 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
7294 than double_ints.
7295 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
7296 rather than INT_CST_LT_UNSIGNED.
7297 (can_use_doloop_if_innermost): Take widest_ints rather than
7298 double_ints.
7299 * tree-affine.c: Include wide-int-print.h.
7300 (double_int_ext_for_comb): Delete.
7301 (wide_int_ext_for_comb): New.
7302 (aff_combination_zero): Use wide-int interfaces.
7303 (aff_combination_const): Take a widest_int instead of a double_int.
7304 (aff_combination_elt): Use wide-int interfaces.
7305 (aff_combination_scale): Take a widest_int instead of a double_int.
7306 (aff_combination_add_elt): Likewise.
7307 (aff_combination_add_cst): Likewise.
7308 (aff_combination_add): Use wide-int interfaces.
7309 (aff_combination_convert): Likewise.
7310 (tree_to_aff_combination): Likewise.
7311 (add_elt_to_tree): Take a widest_int instead of a double_int.
7312 (aff_combination_to_tree): Use wide-int interfaces.
7313 (aff_combination_remove_elt): Likewise.
7314 (aff_combination_add_product): Take a widest_int instead of
7315 a double_int.
7316 (aff_combination_mult): Use wide-int interfaces.
7317 (aff_combination_expand): Likewise.
7318 (double_int_constant_multiple_p): Delete.
7319 (wide_int_constant_multiple_p): New.
7320 (aff_combination_constant_multiple_p): Take a widest_int pointer
7321 instead of a double_int pointer.
7322 (print_aff): Use wide-int interfaces.
7323 (get_inner_reference_aff): Take a widest_int pointer
7324 instead of a double_int pointer.
7325 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
7326 * tree-affine.h: Include wide-int.h.
7327 (struct aff_comb_elt): Change type of coef to widest_int.
7328 (struct affine_tree_combination): Change type of offset to widest_int.
7329 (double_int_ext_for_comb): Delete.
7330 (wide_int_ext_for_comb): New.
7331 (aff_combination_const): Use widest_int instead of double_int.
7332 (aff_combination_scale): Likewise.
7333 (aff_combination_add_elt): Likewise.
7334 (aff_combination_constant_multiple_p): Likewise.
7335 (get_inner_reference_aff): Likewise.
7336 (aff_comb_cannot_overlap_p): Likewise.
7337 (aff_combination_zero_p): Use wide-int interfaces.
7338 * tree.c: Include tree.h.
7339 (init_ttree): Use make_int_cst.
7340 (tree_code_size): Removed code for INTEGER_CST case.
7341 (tree_size): Add INTEGER_CST case.
7342 (make_node_stat): Update comment.
7343 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
7344 (build_int_cst_type): Use wide-int interfaces.
7345 (double_int_to_tree): Likewise.
7346 (double_int_fits_to_tree_p): Delete.
7347 (force_fit_type_double): Delete.
7348 (force_fit_type): New.
7349 (int_cst_hash_hash): Use wide-int interfaces.
7350 (int_cst_hash_eq): Likewise.
7351 (build_int_cst_wide): Delete.
7352 (wide_int_to_tree): New.
7353 (cache_integer_cst): Use wide-int interfaces.
7354 (build_low_bits_mask): Likewise.
7355 (cst_and_fits_in_hwi): Likewise.
7356 (real_value_from_int_cst): Likewise.
7357 (make_int_cst_stat): New.
7358 (integer_zerop): Use wide_int interfaces.
7359 (integer_onep): Likewise.
7360 (integer_all_onesp): Likewise.
7361 (integer_pow2p): Likewise.
7362 (integer_nonzerop): Likewise.
7363 (tree_log2): Likewise.
7364 (tree_floor_log2): Likewise.
7365 (tree_ctz): Likewise.
7366 (int_size_in_bytes): Likewise.
7367 (mem_ref_offset): Return an offset_int rather than a double_int.
7368 (build_type_attribute_qual_variant): Use wide_int interfaces.
7369 (type_hash_eq): Likewise
7370 (tree_int_cst_equal): Likewise.
7371 (tree_int_cst_lt): Delete.
7372 (tree_int_cst_compare): Likewise.
7373 (tree_fits_shwi_p): Use wide_int interfaces.
7374 (tree_fits_uhwi_p): Likewise.
7375 (tree_int_cst_sign_bit): Likewise.
7376 (tree_int_cst_sgn): Likewise.
7377 (tree_int_cst_min_precision): Take a signop rather than a bool.
7378 (simple_cst_equal): Use wide_int interfaces.
7379 (compare_tree_int): Likewise.
7380 (iterative_hash_expr): Likewise.
7381 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
7382 INT_CST_LT.
7383 (get_type_static_bounds): Use wide_int interfaces.
7384 (tree_int_cst_elt_check_failed): New.
7385 (build_common_tree_nodes): Reordered to set prec before filling in
7386 value.
7387 (int_cst_value): Check cst_and_fits_in_hwi.
7388 (widest_int_cst_value): Use wide_int interfaces.
7389 (upper_bound_in_type): Likewise.
7390 (lower_bound_in_type): Likewise.
7391 (num_ending_zeros): Likewise.
7392 (drop_tree_overflow): Likewise.
7393 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
7394 (gen_conditions_for_pow_cst_base): Likewise.
7395 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
7396 (group_case_labels_stmt): Use wide-int interfaces.
7397 (verify_gimple_assign_binary): Likewise.
7398 (print_loop): Likewise.
7399 * tree-chrec.c (tree_fold_binomial): Likewise.
7400 * tree-core.h (struct tree_base): Add int_length.
7401 (struct tree_int_cst): Change rep of value.
7402 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
7403 (dr_may_alias_p): Likewise.
7404 (max_stmt_executions_tree): Likewise.
7405 * tree.def (INTEGER_CST): Update comment.
7406 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
7407 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
7408 * tree-dump.c: Include wide-int.h and wide-int-print.h.
7409 (dequeue_and_dump): Use wide-int interfaces.
7410 * tree.h: Include wide-int.h.
7411 (NULL_TREE): Moved to earlier loc in file.
7412 (TREE_INT_CST_ELT_CHECK): New.
7413 (tree_int_cst_elt_check_failed): New.
7414 (TYPE_SIGN): New.
7415 (TREE_INT_CST): Delete.
7416 (TREE_INT_CST_LOW): Use wide-int interfaces.
7417 (TREE_INT_CST_HIGH): Delete.
7418 (TREE_INT_CST_NUNITS): New.
7419 (TREE_INT_CST_EXT_NUNITS): Likewise.
7420 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
7421 (TREE_INT_CST_ELT): Likewise.
7422 (INT_CST_LT): Delete.
7423 (tree_int_cst_elt_check): New (two forms).
7424 (type_code_size): Update comment.
7425 (make_int_cst_stat, make_int_cst): New.
7426 (tree_to_double_int): Delete.
7427 (double_int_fits_to_tree_p): Delete.
7428 (force_fit_type_double): Delete.
7429 (build_int_cstu): Replace with out-of-line function.
7430 (build_int_cst_wide): Delete.
7431 (tree_int_cst_lt): Define inline.
7432 (tree_int_cst_le): New.
7433 (tree_int_cst_compare): Define inline.
7434 (tree_int_cst_min_precision): Take a signop rather than a bool.
7435 (wi::int_traits <const_tree>): New.
7436 (wi::int_traits <tree>): New.
7437 (wi::extended_tree): New.
7438 (wi::int_traits <wi::extended_tree>): New.
7439 (wi::to_widest): New.
7440 (wi::to_offset): New.
7441 (wi::fits_to_tree_p): New.
7442 (wi::min_value): New.
7443 (wi::max_value): New.
7444 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
7445 (copy_tree_body_r): Likewise.
7446 * tree-object-size.c (compute_object_offset): Likewise.
7447 (addr_object_size): Likewise.
7448 * tree-predcom.c: Include wide-int-print.h.
7449 (struct dref_d): Change type of offset to widest_int.
7450 (dump_dref): Call wide-int printer.
7451 (aff_combination_dr_offset): Use wide-int interfaces.
7452 (determine_offset): Take a widest_int pointer rather than a
7453 double_int pointer.
7454 (split_data_refs_to_components): Use wide-int interfaces.
7455 (suitable_component_p): Likewise.
7456 (order_drefs): Likewise.
7457 (add_ref_to_chain): Likewise.
7458 (valid_initializer_p): Likewise.
7459 (determine_roots_comp): Likewise.
7460 * tree-pretty-print.c: Include wide-int-print.h.
7461 (dump_generic_node): Use wide-int interfaces.
7462 * tree-sra.c (sra_ipa_modify_expr): Likewise.
7463 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
7464 (move_fixed_address_to_symbol): Likewise.
7465 (move_hint_to_base): Likewise.
7466 (move_pointer_to_base): Likewise.
7467 (move_variant_to_index): Likewise.
7468 (most_expensive_mult_to_index): Likewise.
7469 (addr_to_parts): Likewise.
7470 (copy_ref_info): Likewise.
7471 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
7472 (indirect_refs_may_alias_p): Likewise.
7473 (stmt_kills_ref_p_1): Likewise.
7474 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
7475 * tree-ssa-ccp.c: Update comment at top of file. Include
7476 wide-int-print.h.
7477 (struct prop_value_d): Change type of mask to widest_int.
7478 (extend_mask): New function.
7479 (dump_lattice_value): Use wide-int interfaces.
7480 (get_default_value): Likewise.
7481 (set_constant_value): Likewise.
7482 (set_value_varying): Likewise.
7483 (valid_lattice_transition): Likewise.
7484 (set_lattice_value): Likewise.
7485 (value_to_double_int): Delete.
7486 (value_to_wide_int): New.
7487 (get_value_from_alignment): Use wide-int interfaces.
7488 (get_value_for_expr): Likewise.
7489 (do_dbg_cnt): Likewise.
7490 (ccp_finalize): Likewise.
7491 (ccp_lattice_meet): Likewise.
7492 (bit_value_unop_1): Use widest_ints rather than double_ints.
7493 (bit_value_binop_1): Likewise.
7494 (bit_value_unop): Use wide-int interfaces.
7495 (bit_value_binop): Likewise.
7496 (bit_value_assume_aligned): Likewise.
7497 (evaluate_stmt): Likewise.
7498 (ccp_fold_stmt): Likewise.
7499 (visit_cond_stmt): Likewise.
7500 (ccp_visit_stmt): Likewise.
7501 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7502 (constant_pointer_difference): Likewise.
7503 (associate_pointerplus): Likewise.
7504 (combine_conversions): Likewise.
7505 * tree-ssa-loop.h: Include wide-int.h.
7506 (struct tree_niter_desc): Change type of max to widest_int.
7507 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
7508 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
7509 (remove_redundant_iv_tests): Likewise.
7510 (canonicalize_loop_induction_variables): Likewise.
7511 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
7512 (constant_multiple_of): Take a widest_int pointer instead of
7513 a double_int pointer.
7514 (get_computation_aff): Use wide-int interfaces.
7515 (ptr_difference_cost): Likewise.
7516 (difference_cost): Likewise.
7517 (get_loop_invariant_expr_id): Likewise.
7518 (get_computation_cost_at): Likewise.
7519 (iv_elimination_compare_lt): Likewise.
7520 (may_eliminate_iv): Likewise.
7521 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
7522 instead of double_int.
7523 (max_loop_iterations): Likewise.
7524 (max_stmt_executions): Likewise.
7525 (estimated_stmt_executions): Likewise.
7526 * tree-ssa-loop-niter.c: Include wide-int-print.h.
7527 (split_to_var_and_offset): Use wide-int interfaces.
7528 (determine_value_range): Likewise.
7529 (bound_difference_of_offsetted_base): Likewise.
7530 (bounds_add): Take a widest_int instead of a double_int.
7531 (number_of_iterations_ne_max): Use wide-int interfaces.
7532 (number_of_iterations_ne): Likewise.
7533 (number_of_iterations_lt_to_ne): Likewise.
7534 (assert_loop_rolls_lt): Likewise.
7535 (number_of_iterations_lt): Likewise.
7536 (number_of_iterations_le): Likewise.
7537 (number_of_iterations_cond): Likewise.
7538 (number_of_iterations_exit): Likewise.
7539 (finite_loop_p): Likewise.
7540 (derive_constant_upper_bound_assign): Likewise.
7541 (derive_constant_upper_bound): Return a widest_int.
7542 (derive_constant_upper_bound_ops): Likewise.
7543 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
7544 (record_estimate): Take a widest_int rather than a double_int.
7545 (record_nonwrapping_iv): Use wide-int interfaces.
7546 (double_int_cmp): Delete.
7547 (wide_int_cmp): New.
7548 (bound_index): Take a widest_int rather than a double_int.
7549 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
7550 (maybe_lower_iteration_bound): Likewise.
7551 (estimate_numbers_of_iterations_loop): Likewise.
7552 (estimated_loop_iterations): Take a widest_int pointer than than
7553 a double_int pointer.
7554 (estimated_loop_iterations_int): Use wide-int interfaces.
7555 (max_loop_iterations): Take a widest_int pointer than than
7556 a double_int pointer.
7557 (max_loop_iterations_int): Use wide-int interfaces.
7558 (max_stmt_executions): Take a widest_int pointer than than
7559 a double_int pointer.
7560 (estimated_stmt_executions): Likewise.
7561 (n_of_executions_at_most): Use wide-int interfaces.
7562 (scev_probably_wraps_p): Likewise.
7563 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
7564 to real_to_integer.
7565 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
7566 interfaces.
7567 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
7568 double_ints. Adjust for trailing_wide_ints <3> representation.
7569 (set_nonzero_bits): Likewise.
7570 (get_range_info): Return wide_ints rather than double_ints.
7571 Adjust for trailing_wide_ints <3> representation.
7572 (get_nonzero_bits): Likewise.
7573 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
7574 representation.
7575 * tree-ssanames.h (struct range_info_def): Replace min, max and
7576 nonzero_bits with a trailing_wide_ints <3>.
7577 (set_range_info): Use wide_int_refs rather than double_ints.
7578 (set_nonzero_bits): Likewise.
7579 (get_range_info): Return wide_ints rather than double_ints.
7580 (get_nonzero_bits): Likewise.
7581 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
7582 * tree-ssa-pre.c (phi_translate_1): Likewise.
7583 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
7584 (acceptable_pow_call): Likewise.
7585 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
7586 interfaces.
7587 (vn_reference_fold_indirect): Likewise.
7588 (vn_reference_maybe_forwprop_address): Likewise.
7589 (valueize_refs_1): Likewise.
7590 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
7591 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
7592 tree_int_cst_lt and tree_int_cst_le.
7593 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
7594 interfaces.
7595 (streamer_alloc_tree): Likewise.
7596 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
7597 (streamer_write_tree_header): Likewise.
7598 (streamer_write_integer_cst): Likewise.
7599 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
7600 (build_constructors): Likewise.
7601 (array_value_type): Likewise.
7602 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
7603 (vect_check_gather): Likewise.
7604 * tree-vect-generic.c (build_replicated_const): Likewise.
7605 (expand_vector_divmod): Likewise.
7606 * tree-vect-loop.c (vect_transform_loop): Likewise.
7607 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
7608 (vect_do_peeling_for_alignment): Likewise.
7609 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7610 * tree-vrp.c: Include wide-int.h.
7611 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
7612 (extract_range_from_assert): Use wide-int interfaces.
7613 (vrp_int_const_binop): Likewise.
7614 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
7615 double_int pointers.
7616 (ranges_from_anti_range): Use wide-int interfaces.
7617 (quad_int_cmp): Delete.
7618 (quad_int_pair_sort): Likewise.
7619 (extract_range_from_binary_expr_1): Use wide-int interfaces.
7620 (extract_range_from_unary_expr_1): Likewise.
7621 (adjust_range_with_scev): Likewise.
7622 (masked_increment): Take and return wide_ints rather than double_ints.
7623 (register_edge_assert_for_2): Use wide-int interfaces.
7624 (check_array_ref): Likewise.
7625 (search_for_addr_array): Likewise.
7626 (maybe_set_nonzero_bits): Likewise.
7627 (union_ranges): Pass an integer of the correct type instead of
7628 using integer_one_node.
7629 (intersect_ranges): Likewise.
7630 (simplify_truth_ops_using_ranges): Likewise.
7631 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
7632 (range_fits_type_p): Likewise.
7633 (simplify_cond_using_ranges): Likewise. Take a signop rather than
7634 a bool.
7635 (simplify_conversion_using_ranges): Use wide-int interfaces.
7636 (simplify_float_conversion_using_ranges): Likewise.
7637 (vrp_finalize): Likewise.
7638 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
7639 (gimple_stringops_transform): Likewise.
7640 * varasm.c (decode_addr_const): Likewise.
7641 (const_hash_1): Likewise.
7642 (const_rtx_hash_1): Likewise
7643 (output_constant): Likewise.
7644 (array_size_for_constructor): Likewise.
7645 (output_constructor_regular_field): Likewise.
7646 (output_constructor_bitfield): Likewise.
7647 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
7648 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
7649 GENERATOR_FILEs.
7650 * gencheck.c: Define BITS_PER_UNIT.
7651 * wide-int.cc: New.
7652 * wide-int.h: New.
7653 * wide-int-print.cc: New.
7654 * wide-int-print.h: New.
7655
7656 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7657
7658 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
7659
7660 2014-05-06 Richard Biener <rguenther@suse.de>
7661
7662 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
7663 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
7664 (TODO_verify_all): Adjust.
7665 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
7666 TODO_verify_stmts and TODO_verify_rtl_sharing.
7667 * bb-reorder.c: Likewise.
7668 * cfgexpand.c: Likewise.
7669 * cprop.c: Likewise.
7670 * cse.c: Likewise.
7671 * function.c: Likewise.
7672 * fwprop.c: Likewise.
7673 * gcse.c: Likewise.
7674 * gimple-ssa-isolate-paths.c: Likewise.
7675 * gimple-ssa-strength-reduction.c: Likewise.
7676 * ipa-split.c: Likewise.
7677 * loop-init.c: Likewise.
7678 * loop-unroll.c: Likewise.
7679 * lower-subreg.c: Likewise.
7680 * modulo-sched.c: Likewise.
7681 * postreload-gcse.c: Likewise.
7682 * predict.c: Likewise.
7683 * recog.c: Likewise.
7684 * sched-rgn.c: Likewise.
7685 * store-motion.c: Likewise.
7686 * tracer.c: Likewise.
7687 * trans-mem.c: Likewise.
7688 * tree-call-cdce.c: Likewise.
7689 * tree-cfg.c: Likewise.
7690 * tree-cfgcleanup.c: Likewise.
7691 * tree-complex.c: Likewise.
7692 * tree-eh.c: Likewise.
7693 * tree-emutls.c: Likewise.
7694 * tree-if-conv.c: Likewise.
7695 * tree-into-ssa.c: Likewise.
7696 * tree-loop-distribution.c: Likewise.
7697 * tree-object-size.c: Likewise.
7698 * tree-parloops.c: Likewise.
7699 * tree-pass.h: Likewise.
7700 * tree-sra.c: Likewise.
7701 * tree-ssa-ccp.c: Likewise.
7702 * tree-ssa-copy.c: Likewise.
7703 * tree-ssa-copyrename.c: Likewise.
7704 * tree-ssa-dce.c: Likewise.
7705 * tree-ssa-dom.c: Likewise.
7706 * tree-ssa-dse.c: Likewise.
7707 * tree-ssa-forwprop.c: Likewise.
7708 * tree-ssa-ifcombine.c: Likewise.
7709 * tree-ssa-loop-ch.c: Likewise.
7710 * tree-ssa-loop-ivcanon.c: Likewise.
7711 * tree-ssa-loop.c: Likewise.
7712 * tree-ssa-math-opts.c: Likewise.
7713 * tree-ssa-phiopt.c: Likewise.
7714 * tree-ssa-phiprop.c: Likewise.
7715 * tree-ssa-pre.c: Likewise.
7716 * tree-ssa-reassoc.c: Likewise.
7717 * tree-ssa-sink.c: Likewise.
7718 * tree-ssa-strlen.c: Likewise.
7719 * tree-ssa-tail-merge.c: Likewise.
7720 * tree-ssa-uncprop.c: Likewise.
7721 * tree-switch-conversion.c: Likewise.
7722 * tree-tailcall.c: Likewise.
7723 * tree-vect-generic.c: Likewise.
7724 * tree-vectorizer.c: Likewise.
7725 * tree-vrp.c: Likewise.
7726 * tsan.c: Likewise.
7727 * var-tracking.c: Likewise.
7728 * bt-load.c: Likewise.
7729 * cfgcleanup.c: Likewise.
7730 * combine-stack-adj.c: Likewise.
7731 * combine.c: Likewise.
7732 * compare-elim.c: Likewise.
7733 * config/epiphany/resolve-sw-modes.c: Likewise.
7734 * config/i386/i386.c: Likewise.
7735 * config/mips/mips.c: Likewise.
7736 * config/s390/s390.c: Likewise.
7737 * config/sh/sh_treg_combine.cc: Likewise.
7738 * config/sparc/sparc.c: Likewise.
7739 * dce.c: Likewise.
7740 * dse.c: Likewise.
7741 * final.c: Likewise.
7742 * ifcvt.c: Likewise.
7743 * mode-switching.c: Likewise.
7744 * passes.c: Likewise.
7745 * postreload.c: Likewise.
7746 * ree.c: Likewise.
7747 * reg-stack.c: Likewise.
7748 * regcprop.c: Likewise.
7749 * regrename.c: Likewise.
7750 * web.c: Likewise.
7751
7752 2014-05-06 Richard Biener <rguenther@suse.de>
7753
7754 PR middle-end/61070
7755 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
7756 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
7757
7758 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
7759
7760 PR ipa/60965
7761 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
7762
7763 2014-05-05 Radovan Obradovic <robradovic@mips.com>
7764 Tom de Vries <tom@codesourcery.com>
7765
7766 * target.def (call_fusage_contains_non_callee_clobbers): New
7767 DEFHOOKPOD.
7768 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
7769 Hooks to @menu.
7770 (@node Miscellaneous Register Hooks): New node.
7771 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
7772 * doc/tm.texi: Regenerate.
7773
7774 2014-05-05 Marek Polacek <polacek@redhat.com>
7775
7776 PR driver/61065
7777 * opts.c (common_handle_option): Call error_at instead of warning_at.
7778
7779 2014-05-05 Richard Biener <rguenther@suse.de>
7780
7781 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
7782 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
7783 under the TODO_verify_il umbrella.
7784
7785 2014-05-05 Richard Biener <rguenther@suse.de>
7786
7787 * passes.c (execute_function_todo): Move TODO_verify_flow under
7788 the TODO_verify_ul umbrella.
7789
7790 2014-05-05 Richard Biener <rguenther@suse.de>
7791
7792 PR middle-end/61010
7793 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
7794 X & CST away from a CST that is the mask of a mode.
7795
7796 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7797
7798 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
7799 int argument to enum machine_mode.
7800 (picochip_class_max_nregs): Ditto.
7801 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
7802 (picochip_class_max_nregs): Ditto.
7803
7804 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7805
7806 * target.def: Add new target hook.
7807 * doc/tm.texi: Regenerate.
7808 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
7809 * targhooks.c (default_keep_leaf_when_profiled): New function.
7810
7811 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
7812 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
7813
7814 2014-05-05 Bin Cheng <bin.cheng@arm.com>
7815
7816 PR tree-optimization/60363
7817 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
7818 (copy_phi_args): New parameters. Call get_value_locus_in_path.
7819 (update_destination_phis): New parameter.
7820 (create_edge_and_update_destination_phis): Ditto.
7821 (ssa_fix_duplicate_block_edges): Pass new arguments.
7822 (thread_single_edge): Ditto.
7823
7824 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
7825
7826 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
7827 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
7828 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
7829 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
7830 Use RS6000_BTM_HARD_FLOAT.
7831 (BU_MISC_2): Likewise.
7832 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
7833 RS6000_BTM_HARD_FLOAT.
7834 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
7835 is explicitly used.
7836 (rs6000_invalid_builtin): Add hard floating builtin support.
7837 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
7838 hard float builtins.
7839 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
7840
7841 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7842
7843 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
7844 Add missing function* argument.
7845
7846 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
7847
7848 * lra-constraints.c (valid_address_p): Move earlier in file.
7849 Add a constraint argument to the address_info version.
7850 (satisfies_memory_constraint_p): New function.
7851 (satisfies_address_constraint_p): Likewise.
7852 (process_alt_operands, curr_insn_transform): Use them.
7853 (process_address): Pass the constraint to valid_address_p when
7854 checking address operands.
7855
7856 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
7857
7858 * config/mips/mips.c (mips_isa_rev): New variable.
7859 (mips_set_architecture): Set it.
7860 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
7861 from mips_isa_rev.
7862 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
7863 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
7864 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
7865 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
7866 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
7867 conditions in terms of mips_isa_rev.
7868 (mips_isa_rev): Declare.
7869
7870 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7871
7872 * config/sh/sh-mem.cc: Use tabs instead of spaces.
7873 (prob_unlikely, prob_likely): Make variables const.
7874
7875 2014-05-03 Denis Chertykov <chertykov@gmail.com>
7876
7877 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
7878
7879 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7880
7881 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
7882
7883 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7884
7885 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
7886 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
7887 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
7888 functions.
7889 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
7890 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
7891 sh_pass_in_reg_p.
7892 Replace usage of ROUND_REG with sh_round_reg.
7893 Use CEIL instead of ROUND_ADVANCE.
7894
7895 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
7896
7897 PR target/61026
7898 * config/sh/sh.c: Include stdlib headers before everything else.
7899
7900 2014-05-02 Jakub Jelinek <jakub@redhat.com>
7901
7902 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
7903 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
7904 (gimplify_adjust_omp_clauses): Simd region is never
7905 directly nested in combined parallel. Instead, for linear
7906 with copyin/copyout, if in combined for simd loop, make decl
7907 firstprivate/lastprivate on OMP_FOR.
7908 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7909 expand_omp_for_static_chunk): When setting endvar, also set
7910 fd->loop.v to the same value.
7911
7912 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7913
7914 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
7915
7916 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
7917
7918 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
7919 expression.
7920
7921 2014-05-02 Marek Polacek <polacek@redhat.com>
7922
7923 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
7924
7925 2014-05-02 Kito Cheng <kito@0xlab.org>
7926
7927 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
7928 to a C expression marco.
7929 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
7930 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
7931 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
7932 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
7933 HONOR_REG_ALLOC_ORDER.
7934 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
7935
7936 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7937
7938 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
7939
7940 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7941
7942 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
7943
7944 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
7945
7946 * tree-if-conv.c (is_cond_scalar_reduction): New function.
7947 (convert_scalar_cond_reduction): Likewise.
7948 (predicate_scalar_phi): Add recognition and transformation
7949 of simple conditioanl reduction to be vectorizable.
7950
7951 2014-05-01 Marek Polacek <polacek@redhat.com>
7952
7953 PR c/43245
7954 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
7955
7956 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
7957
7958 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
7959 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
7960 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
7961 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
7962 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
7963 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
7964 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
7965 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
7966
7967 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
7968
7969 * config/arc/arc.opt (mlra): Move comment above option name
7970 to avoid mis-parsing as language options.
7971
7972 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7973
7974 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
7975 * config/sol2.h: ... here.
7976 * config/sol2-10.h: Remove.
7977
7978 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
7979 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
7980 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
7981 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
7982 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
7983 * config/sol2.h: ... here.
7984 (SECTION_NAME_FORMAT): Don't redefine.
7985 (STARTFILE_ARCH32_SPEC): Rename to ...
7986 (STARTFILE_ARCH_SPEC): ... this.
7987 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
7988 * config/sparc/sol2.h: ... here.
7989 (SECTION_NAME_FORMAT): Don't undef.
7990 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
7991 (SUBTARGET_EXTRA_SPECS): Remove.
7992 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
7993
7994 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
7995 (MD_STARTFILE_PREFIX): Remove.
7996 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
7997 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
7998 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
7999 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
8000 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
8001 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
8002 * config/i386/sol2.h: ... here.
8003 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
8004 * config/i386/sol2-bi.h: Remove.
8005 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
8006 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
8007
8008 * config/i386/t-sol2-64: Rename to ...
8009 * config/i386/t-sol2: ... this.
8010 * config/sparc/t-sol2-64: Rename to ...
8011 * config/sparc/t-sol2: ... this.
8012
8013 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
8014 sol2_tm_file_head, sol2_tm_file_tail.
8015 Include ${cpu_type}/sol2.h before sol2.h.
8016 Remove sol2-10.h.
8017 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
8018 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
8019 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
8020 Reflect i386/t-sol2-64 renaming.
8021 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
8022 Reflect sparc/t-sol2-64 renaming.
8023
8024 2014-04-30 Richard Biener <rguenther@suse.de>
8025
8026 * passes.c (execute_function_todo): Move TODO_verify_stmts
8027 and TODO_verify_ssa under the TODO_verify_il umbrella.
8028 * tree-ssa.h (verify_ssa): Adjust prototype.
8029 * tree-ssa.c (verify_ssa): Add parameter to tell whether
8030 we should verify SSA operands.
8031 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
8032 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
8033 whether we should verify whether not throwing stmts have EH info.
8034 * graphite-scop-detection.c (create_sese_edges): Adjust.
8035 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
8036 * tree-eh.c (lower_try_finally_switch): Do not add the
8037 default case label twice.
8038
8039 2014-04-30 Marek Polacek <polacek@redhat.com>
8040
8041 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
8042 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
8043 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
8044 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
8045
8046 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
8047
8048 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
8049 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
8050 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
8051 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
8052 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
8053 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
8054 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
8055 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
8056
8057 2014-04-29 David Malcolm <dmalcolm@redhat.com>
8058
8059 * tree-cfg.c (dump_function_to_file): Dump the return type of
8060 functions, in a line to itself before the function body, mimicking
8061 the layout of a C function.
8062
8063 2014-04-29 Jakub Jelinek <jakub@redhat.com>
8064
8065 PR tree-optimization/60971
8066 * tree-tailcall.c (process_assignment): Reject conversions which
8067 reduce precision.
8068
8069 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
8070
8071 * calls.c (initialize_argument_information): Always treat
8072 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
8073 (expand_call): Likewise.
8074 (emit_library_call_calue_1): Likewise.
8075 * expr.c (PUSH_ARGS_REVERSED): Do not define.
8076 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
8077 code accordingly.
8078
8079 2014-04-29 Nick Clifton <nickc@redhat.com>
8080
8081 * config/msp430/msp430.md (umulsidi): Fix typo.
8082 (mulhisi3): Enable even inside interrupt handlers.
8083 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
8084 bigger return address pushed in large mode.
8085
8086 2014-04-29 Nick Clifton <nickc@redhat.com>
8087
8088 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
8089 (arc_init_reg_tables): Use a machine_mode enum to iterate over
8090 available modes.
8091 * config/m32r/m32r.c (init_reg_tables): Likewise.
8092 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
8093 enum to hold the modes.
8094
8095 2014-04-29 Richard Biener <rguenther@suse.de>
8096
8097 * dominance.c (free_dominance_info): Add overload with
8098 function parameter.
8099 (dom_info_state): Likewise.
8100 (dom_info_available_p): Likewise.
8101 * basic-block.h (free_dominance_info, dom_info_state,
8102 dom_info_available_p): Declare overloads.
8103 * passes.c (execute_function_todo): Verify that verifiers
8104 don't change dominator info state. Drop dominator info
8105 for IPA pass invocations.
8106 * cgraph.c (release_function_body): Restore asserts that
8107 dominator information is released.
8108
8109 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
8110
8111 * doc/invoke.texi: Fix typo.
8112 * tree-vrp.c: Fix typos.
8113 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
8114
8115 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8116
8117 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
8118
8119 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
8120
8121 * config/aarch64/aarch64-builtins.c
8122 (aarch64_types_storestruct_lane_qualifiers): New.
8123 (TYPES_STORESTRUCT_LANE): Likewise.
8124 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
8125 (st3_lane): Likewise.
8126 (st4_lane): Likewise.
8127 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
8128 (vec_store_lanesci_lane<mode>): Likewise.
8129 (vec_store_lanesxi_lane<mode>): Likewise.
8130 (aarch64_st2_lane<VQ:mode>): Likewise.
8131 (aarch64_st3_lane<VQ:mode>): Likewise.
8132 (aarch64_st4_lane<VQ:mode>): Likewise.
8133 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
8134 * config/aarch64/arm_neon.h
8135 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
8136 use new macro arguments.
8137 (__ST3_LANE_FUNC): Likewise.
8138 (__ST4_LANE_FUNC): Likewise.
8139 * config/aarch64/iterators.md (V_TWO_ELEM): New.
8140 (V_THREE_ELEM): Likewise.
8141 (V_FOUR_ELEM): Likewise.
8142
8143 2014-04-28 David Malcolm <dmalcolm@redhat.com>
8144
8145 * doc/gimple.texi: Replace the description of the now-defunct
8146 union gimple_statement_d with a diagram showing the
8147 gimple_statement_base class hierarchy and its relationships to
8148 the GSS_ and GIMPLE_ enums.
8149
8150 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
8151
8152 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
8153 * config/aarch64/aarch64.c
8154 (aarch64_cannot_change_mode_class): Weaken conditions.
8155 (aarch64_modes_tieable_p): New.
8156 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
8157
8158 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
8159
8160 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
8161 (loadsync_<mode>): Change mode.
8162 (load_quadpti, store_quadpti): New.
8163 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
8164 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
8165
8166 2014-04-28 Martin Jambor <mjambor@suse.cz>
8167
8168 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
8169 same alias type as the original statement.
8170 (subreplacement_assignment_data): New type.
8171 (handle_unscalarized_data_in_subtree): New type of parameter,
8172 generate new memory accesses with same alias type as the original
8173 statement.
8174 (load_assign_lhs_subreplacements): Likewise.
8175 (sra_modify_constructor_assign): Generate new memory accesses with
8176 same alias type as the original statement.
8177
8178 2014-04-28 Richard Biener <rguenther@suse.de>
8179
8180 * tree-pass.h (TODO_verify_il): Define.
8181 (TODO_verify_all): Complete properly.
8182 * passes.c (execute_function_todo): Move existing loop-closed
8183 SSA verification under TODO_verify_il.
8184 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
8185 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
8186 Fix tree sharing issue.
8187
8188 2014-04-28 Richard Biener <rguenther@suse.de>
8189
8190 PR middle-end/60092
8191 * builtins.def (DEF_C11_BUILTIN): Add.
8192 (BUILT_IN_ALIGNED_ALLOC): Likewise.
8193 * coretypes.h (enum function_class): Add function_c11_misc.
8194 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
8195 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
8196 (call_may_clobber_ref_p_1): Likewise.
8197 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8198 (mark_all_reaching_defs_necessary_1): Likewise.
8199 (propagate_necessity): Likewise.
8200 (eliminate_unnecessary_stmts): Likewise.
8201 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
8202
8203 2014-04-28 Richard Biener <rguenther@suse.de>
8204
8205 * tree-vrp.c (vrp_var_may_overflow): Remove.
8206 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
8207 with overflow immediately bump to one before that value and
8208 let iteration figure out overflow status.
8209
8210 2014-04-28 Richard Biener <rguenther@suse.de>
8211
8212 * configure.ac: Do valgrind header checks unconditionally.
8213 Add --enable-valgrind-annotations.
8214 * system.h: Guard valgrind header inclusion with
8215 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
8216 * alloc-pool.c (pool_alloc, pool_free): Use
8217 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
8218 to guard possibly dead code.
8219 * config.in: Regenerated.
8220 * configure: Likewise.
8221
8222 2014-04-28 Jeff Law <law@redhat.com>
8223
8224 PR tree-optimization/60902
8225 * tree-ssa-threadedge.c
8226 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
8227 over real defs when invalidating outputs from statements that do not
8228 produce useful outputs for threading.
8229
8230 2014-04-28 Richard Biener <rguenther@suse.de>
8231
8232 PR tree-optimization/60979
8233 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
8234 SCOPs that end in a block with a successor with abnormal
8235 predecessors.
8236
8237 2014-04-28 Richard Biener <rguenther@suse.de>
8238
8239 * tree-pass.h (execute_pass_list): Adjust prototype.
8240 * passes.c (pass_manager::execute_early_local_passes): Adjust.
8241 (do_per_function): Change callback signature, push all actual
8242 work to the callbals.
8243 (do_per_function_toporder): Likewise.
8244 (execute_function_dump): Adjust.
8245 (execute_function_todo): Likewise.
8246 (clear_last_verified): Likewise.
8247 (verify_curr_properties): Likewise.
8248 (update_properties_after_pass): Likewise.
8249 (execute_pass_list_1): Split out from ...
8250 (execute_pass_list): ... here. Adjust.
8251 (execute_ipa_pass_list): Likewise.
8252 * cgraphunit.c (cgraph_add_new_function): Adjust.
8253 (analyze_function): Likewise.
8254 (expand_function): Likewise.
8255 * cgraph.c (release_function_body): Free dominance info
8256 here instead of asserting it was magically freed elsewhere.
8257
8258 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
8259
8260 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
8261 * configure: Regenerate.
8262 * config/sparc/sparc.opt (muser-mode): New option.
8263 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
8264 for LEON3.
8265 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
8266 * doc/invoke.texi (SPARC options): Document -muser-mode.
8267
8268 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8269
8270 * cselib.c (find_slot_memmode): Delete.
8271 (cselib_hasher): Change compare_type to a struct.
8272 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
8273 constants.
8274 (preserve_constants_and_equivs): Adjust for new compare_type.
8275 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
8276 (wrap_constant): Delete.
8277 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
8278
8279 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
8280
8281 * doc/install.texi (Building with profile feedback): Remove
8282 outdated sentence.
8283
8284 2014-04-26 Tom de Vries <tom@codesourcery.com>
8285
8286 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
8287 array accesses.
8288
8289 2014-04-25 Cary Coutant <ccoutant@google.com>
8290
8291 PR debug/60929
8292 * dwarf2out.c (should_move_die_to_comdat): A type definition
8293 can contain a subprogram definition, but don't move it to a
8294 comdat unit.
8295 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
8296 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
8297 from original DIE.
8298 (clone_tree_hash): Rename to...
8299 (clone_tree_partial): ...this; change callers. Copy
8300 DW_TAG_subprogram DIEs as declarations.
8301 (copy_decls_walk): Don't copy children of a declaration into a
8302 type unit.
8303
8304 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
8305
8306 PR target/60969
8307 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
8308 alternative 12.
8309
8310 2014-04-25 Jiong Wang <jiong.wang@arm.com>
8311
8312 * config/arm/predicates.md (call_insn_operand): Add long_call check.
8313 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
8314 reg for long_call.
8315 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
8316 restriction.
8317
8318 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8319
8320 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
8321
8322 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8323
8324 PR tree-optimization/60930
8325 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
8326 creating a multiply candidate by folding two constant
8327 multiplicands when the result overflows.
8328
8329 2014-04-25 Jakub Jelinek <jakub@redhat.com>
8330
8331 PR tree-optimization/60960
8332 * tree-vect-generic.c (expand_vector_operation): Only call
8333 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
8334
8335 2014-04-25 Tom de Vries <tom@codesourcery.com>
8336
8337 * expr.c (clobber_reg_mode): New function.
8338 * expr.h (clobber_reg): New function.
8339
8340 2014-04-25 Tom de Vries <tom@codesourcery.com>
8341
8342 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
8343 clobbers.
8344
8345 2014-04-25 Radovan Obradovic <robradovic@mips.com>
8346 Tom de Vries <tom@codesourcery.com>
8347
8348 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
8349 handle.
8350 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
8351 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
8352 new argument to find_all_hard_reg_sets call.
8353
8354 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8355
8356 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
8357 Use HOST_WIDE_INT_C for mask literal.
8358 (aarch_rev16_shleft_mask_imm_p): Likewise.
8359
8360 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
8361
8362 PR target/60941
8363 * config/sparc/sparc.md (ashlsi3_extend): Delete.
8364
8365 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
8366
8367 PR preprocessor/56540
8368 * config/i386/i386-c.c (ix86_target_macros): Define
8369 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
8370
8371 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8372
8373 * configure.ac (tga_func): Remove.
8374 (LIB_TLS_SPEC): Remove.
8375 * configure: Regenerate.
8376 * config.in: Regenerate.
8377 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
8378
8379 2014-04-25 Richard Biener <rguenther@suse.de>
8380
8381 PR ipa/60912
8382 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
8383 call stmt use/clobber sets during stmt walk instead of
8384 walking the possibly incomplete set of caller edges.
8385
8386 2014-04-25 Richard Biener <rguenther@suse.de>
8387
8388 PR ipa/60911
8389 * passes.c (apply_ipa_transforms): Inline into only caller ...
8390 (execute_one_pass): ... here. Properly bring in function
8391 bodies for nodes we want to apply IPA transforms to.
8392
8393 2014-04-24 Cong Hou <congh@google.com>
8394
8395 PR tree-optimization/60896
8396 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
8397 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
8398 (vect_mark_pattern_stmts): Set the def type of all statements in
8399 PATTERN_DEF_SEQ as vect_internal_def.
8400
8401 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8402
8403 * doc/extend.texi (PowerPC Built-in Functions): Document new
8404 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
8405 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
8406
8407 * config/rs6000/predicates.md (const_0_to_3_operand): New
8408 predicate to match 0..3 integer constants.
8409
8410 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
8411 to support adding miscellaneous builtin functions.
8412 (BU_DFP_MISC_2): Likewise.
8413 (BU_P7_MISC_1): Likewise.
8414 (BU_P7_MISC_2): Likewise.
8415 (BU_P8V_MISC_3): Likewise.
8416 (BU_MISC_1): Likewise.
8417 (BU_MISC_2): Likewise.
8418 (DIVWE): Add extended divide builtin functions.
8419 (DIVWEO): Likewise.
8420 (DIVWEU): Likewise.
8421 (DIVWEUO): Likewise.
8422 (DIVDE): Likewise.
8423 (DIVDEO): Likewise.
8424 (DIVDEU): Likewise.
8425 (DIVDEUO): Likewise.
8426 (DXEX): Add decimal floating-point builtin functions.
8427 (DXEXQ): Likewise.
8428 (DDEDPD): Likewise.
8429 (DDEDPDQ): Likewise.
8430 (DENBCD): Likewise.
8431 (DENBCDQ): Likewise.
8432 (DIEX): Likewise.
8433 (DIEXQ): Likewise.
8434 (DSCLI): Likewise.
8435 (DSCLIQ): Likewise.
8436 (DSCRI): Likewise.
8437 (DSCRIQ): Likewise.
8438 (CDTBCD): Add new BCD builtin functions.
8439 (CBCDTD): Likewise.
8440 (ADDG6S): Likewise.
8441 (BCDADD): Likewise.
8442 (BCDADD_LT): Likewise.
8443 (BCDADD_EQ): Likewise.
8444 (BCDADD_GT): Likewise.
8445 (BCDADD_OV): Likewise.
8446 (BCDSUB): Likewise.
8447 (BCDSUB_LT): Likewise.
8448 (BCDSUB_EQ): Likewise.
8449 (BCDSUB_GT): Likewise.
8450 (BCDSUB_OV): Likewise.
8451 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
8452 (UNPACK_TD): Likewise.
8453 (PACK_TF): Likewise.
8454 (UNPACK_TF): Likewise.
8455 (UNPACK_TF_0): Likewise.
8456 (UNPACK_TF_1): Likewise.
8457 (PACK_V1TI): Likewise.
8458 (UNPACK_V1TI): Likewise.
8459
8460 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8461 support for decimal floating point builtin functions.
8462 (rs6000_expand_ternop_builtin): Add checks for the new builtin
8463 functions that take constant arguments.
8464 (rs6000_invalid_builtin): Add decimal floating point builtin support.
8465 (rs6000_init_builtins): Setup long double, _Decimal64, and
8466 _Decimal128 types for new builtin functions.
8467 (builtin_function_type): Set the unsigned flags appropriately for
8468 the new builtin functions.
8469 (rs6000_opt_masks): Add support for decimal floating point builtin
8470 functions.
8471
8472 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
8473 floating point builtin functions.
8474 (RS6000_BTM_COMMON): Likewise.
8475 (RS6000_BTI_long_double): Likewise.
8476 (RS6000_BTI_dfloat64): Likewise.
8477 (RS6000_BTI_dfloat128): Likewise.
8478 (long_double_type_internal_node): Likewise.
8479 (dfloat64_type_internal_node): Likewise.
8480 (dfloat128_type_internal_node): Likewise.
8481
8482 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
8483 2.07 bcd arithmetic instructions.
8484 (UNSPEC_BCDSUB): Likewise.
8485 (UNSPEC_BCD_OVERFLOW): Likewise.
8486 (UNSPEC_BCD_ADD_SUB): Likewise.
8487 (bcd_add_sub): Likewise.
8488 (BCD_TEST): Likewise.
8489 (bcd<bcd_add_sub>): Likewise.
8490 (bcd<bcd_add_sub>_test): Likewise.
8491 (bcd<bcd_add_sub>_test2): Likewise.
8492 (bcd<bcd_add_sub>_<code>): Likewise.
8493 (peephole2 for combined bcd ops): Likewise.
8494
8495 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
8496 decimal floating point builtin functions.
8497 (UNSPEC_DENBCD): Likewise.
8498 (UNSPEC_DXEX): Likewise.
8499 (UNSPEC_DIEX): Likewise.
8500 (UNSPEC_DSCLI): Likewise.
8501 (UNSPEC_DSCRI): Likewise.
8502 (D64_D128): Likewise.
8503 (dfp_suffix): Likewise.
8504 (dfp_ddedpd_<mode>): Likewise.
8505 (dfp_denbcd_<mode>): Likewise.
8506 (dfp_dxex_<mode>): Likewise.
8507 (dfp_diex_<mode>): Likewise.
8508 (dfp_dscli_<mode>): Likewise.
8509 (dfp_dscri_<mode>): Likewise.
8510
8511 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
8512 builtin functions.
8513 (UNSPEC_CDTBCD): Likewise.
8514 (UNSPEC_CBCDTD): Likewise.
8515 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
8516 (UNSPEC_DIVEO): Likewise.
8517 (UNSPEC_DIVEU): Likewise.
8518 (UNSPEC_DIVEUO): Likewise.
8519 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
8520 pack/unpack 128-bit types.
8521 (UNSPEC_PACK_128BIT): Likewise.
8522 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
8523 (udiv<mode>3): Use idiv_ldiv mode attribute.
8524 (div<mode>3): Likewise.
8525 (addg6s): Add new BCD builtin functions.
8526 (cdtbcd): Likewise.
8527 (cbcdtd): Likewise.
8528 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
8529 (div_extend): Likewise.
8530 (div<div_extend>_<mode>"): Likewise.
8531 (FP128_64): Add support for new builtin functions to pack/unpack
8532 128-bit types.
8533 (unpack<mode>): Likewise.
8534 (unpacktf_0): Likewise.
8535 (unpacktf_1): Likewise.
8536 (unpack<mode>_dm): Likewise.
8537 (unpack<mode>_nodm): Likewise.
8538 (pack<mode>): Likewise.
8539 (unpackv1ti): Likewise.
8540 (packv1ti): Likewise.
8541
8542 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
8543
8544 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
8545 is disabled.
8546
8547 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8548
8549 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
8550 * gimplify.c (omp_is_private): Change last argument's type to int.
8551 Only diagnose lastprivate if the simd argument is 1, only diagnose
8552 linear if the simd argument is 2.
8553 (gimplify_omp_for): Adjust omp_is_private callers. When adding
8554 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
8555 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
8556 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
8557 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
8558 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
8559 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
8560 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
8561 * tree-nested.c (convert_nonlocal_omp_clauses,
8562 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
8563
8564 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
8565
8566 PR target/60822
8567 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
8568 operand 1.
8569
8570 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
8571
8572 * flag-types.h (enum ivar_visibility): Add.
8573
8574 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
8575
8576 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
8577 function * argument.
8578
8579 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
8580
8581 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
8582
8583 2014-04-24 Radovan Obradovic <robradovic@mips.com>
8584 Tom de Vries <tom@codesourcery.com>
8585
8586 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
8587 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
8588 reg-note.
8589 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
8590 * emit-rtl.c (try_split): Same.
8591
8592 2014-04-24 Radovan Obradovic <robradovic@mips.com>
8593 Tom de Vries <tom@codesourcery.com>
8594
8595 * common.opt (fuse-caller-save): New option.
8596
8597 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
8598
8599 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
8600 elements for big-endian.
8601
8602 2014-04-24 Richard Biener <rguenther@suse.de>
8603
8604 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
8605 during TER and instead use the sepops interface for expanding
8606 non-GIMPLE_SINGLE_RHS.
8607
8608 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8609
8610 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
8611 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
8612
8613 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8614
8615 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
8616 assembler 64-bit option.
8617 * configure: Regenerate.
8618
8619 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8620
8621 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
8622 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
8623 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
8624 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
8625 (TARGET_CRYPTO): Take TARGET_SIMD into account.
8626
8627 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8628
8629 * config/aarch64/aarch64-builtins.c
8630 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
8631 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
8632 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
8633 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
8634 builtins.
8635 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
8636 (Vrevsuff): New mode attribute.
8637
8638 2014-04-24 Terry Guo <terry.guo@arm.com>
8639
8640 * config/arm/arm.h (machine_function): Define variable
8641 after_arm_reorg here.
8642 * config/arm/arm.c (after_arm_reorg): Remove the definition.
8643 (arm_split_constant): Update the way to access variable
8644 after_arm_reorg.
8645 (arm_reorg): Ditto.
8646 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
8647
8648 2014-04-23 Tom de Vries <tom@codesourcery.com>
8649
8650 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
8651
8652 2014-04-23 David Malcolm <dmalcolm@redhat.com>
8653
8654 * is-a.h: Update comments to reflect the following changes to the
8655 "pointerness" of the API, making the template parameter match the
8656 return type, allowing use of is-a.h with typedefs of pointers.
8657 (is_a_helper::cast): Return a T rather then a pointer to a T, so
8658 that the return type matches the parameter to the is_a_helper.
8659 (as_a): Likewise.
8660 (dyn_cast): Likewise.
8661
8662 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
8663 pointer from the is-a.h API.
8664
8665 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
8666 (is_a_helper <cgraph_node *>::test): ...this, matching change to
8667 is-a.h API.
8668 (is_a_helper <varpool_node>::test): Likewise, convert to...
8669 (is_a_helper <varpool_node *>::test): ...this.
8670
8671 (varpool_first_variable): Update for removal of implicit pointer
8672 from the is-a.h API.
8673 (varpool_next_variable): Likewise.
8674 (varpool_first_static_initializer): Likewise.
8675 (varpool_next_static_initializer): Likewise.
8676 (varpool_first_defined_variable): Likewise.
8677 (varpool_next_defined_variable): Likewise.
8678 (cgraph_first_defined_function): Likewise.
8679 (cgraph_next_defined_function): Likewise.
8680 (cgraph_first_function): Likewise.
8681 (cgraph_next_function): Likewise.
8682 (cgraph_first_function_with_gimple_body): Likewise.
8683 (cgraph_next_function_with_gimple_body): Likewise.
8684 (cgraph_alias_target): Likewise.
8685 (varpool_alias_target): Likewise.
8686 (cgraph_function_or_thunk_node): Likewise.
8687 (varpool_variable_node): Likewise.
8688 (symtab_real_symbol_p): Likewise.
8689 * cgraphunit.c (referred_to_p): Likewise.
8690 (analyze_functions): Likewise.
8691 (handle_alias_pairs): Likewise.
8692 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8693 * gimple-ssa.h (gimple_vuse_op): Likewise.
8694 (gimple_vdef_op): Likewise.
8695 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
8696 * gimple.c (gimple_build_asm_1): Likewise.
8697 (gimple_build_try): Likewise.
8698 (gimple_build_resx): Likewise.
8699 (gimple_build_eh_dispatch): Likewise.
8700 (gimple_build_omp_for): Likewise.
8701 (gimple_omp_for_set_clauses): Likewise.
8702
8703 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
8704 (is_a_helper <gimple_statement_asm *>::test): ...this.
8705 (is_a_helper <gimple_statement_bind>::test): Convert to...
8706 (is_a_helper <gimple_statement_bind *>::test): ...this.
8707 (is_a_helper <gimple_statement_call>::test): Convert to...
8708 (is_a_helper <gimple_statement_call *>::test): ...this.
8709 (is_a_helper <gimple_statement_catch>::test): Convert to...
8710 (is_a_helper <gimple_statement_catch *>::test): ...this.
8711 (is_a_helper <gimple_statement_resx>::test): Convert to...
8712 (is_a_helper <gimple_statement_resx *>::test): ...this.
8713 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
8714 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
8715 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
8716 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
8717 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
8718 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
8719 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
8720 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
8721 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
8722 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
8723 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
8724 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
8725 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
8726 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
8727 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
8728 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
8729 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
8730 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
8731 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
8732 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
8733 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
8734 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
8735 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
8736 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
8737 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
8738 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
8739 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
8740 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
8741 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
8742 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
8743 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
8744 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
8745 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
8746 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
8747 (is_a_helper <gimple_statement_phi>::test): Convert to...
8748 (is_a_helper <gimple_statement_phi *>::test): ...this.
8749 (is_a_helper <gimple_statement_transaction>::test): Convert to...
8750 (is_a_helper <gimple_statement_transaction *>::test): ...this.
8751 (is_a_helper <gimple_statement_try>::test): Convert to...
8752 (is_a_helper <gimple_statement_try *>::test): ...this.
8753 (is_a_helper <gimple_statement_wce>::test): Convert to...
8754 (is_a_helper <gimple_statement_wce *>::test): ...this.
8755 (is_a_helper <const gimple_statement_asm>::test): Convert to...
8756 (is_a_helper <const gimple_statement_asm *>::test): ...this.
8757 (is_a_helper <const gimple_statement_bind>::test): Convert to...
8758 (is_a_helper <const gimple_statement_bind *>::test): ...this.
8759 (is_a_helper <const gimple_statement_call>::test): Convert to...
8760 (is_a_helper <const gimple_statement_call *>::test): ...this.
8761 (is_a_helper <const gimple_statement_catch>::test): Convert to...
8762 (is_a_helper <const gimple_statement_catch *>::test): ...this.
8763 (is_a_helper <const gimple_statement_resx>::test): Convert to...
8764 (is_a_helper <const gimple_statement_resx *>::test): ...this.
8765 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
8766 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
8767 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
8768 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
8769 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
8770 Convert to...
8771 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
8772 ...this.
8773 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
8774 Convert to...
8775 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
8776 ...this.
8777 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
8778 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
8779 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
8780 to...
8781 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
8782 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
8783 to...
8784 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
8785 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
8786 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
8787 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
8788 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
8789 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
8790 to...
8791 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
8792 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
8793 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
8794 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
8795 to...
8796 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
8797 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
8798 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
8799 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
8800 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
8801 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
8802 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
8803 (is_a_helper <const gimple_statement_phi>::test): Convert to...
8804 (is_a_helper <const gimple_statement_phi *>::test): ...this.
8805 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
8806 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
8807 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
8808 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
8809 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
8810 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
8811 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
8812 to...
8813 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
8814 ...this.
8815 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
8816 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
8817
8818 (gimple_use_ops): Update for removal of implicit pointer from the
8819 is-a.h API.
8820 (gimple_set_use_ops): Likewise.
8821 (gimple_vuse): Likewise.
8822 (gimple_vdef): Likewise.
8823 (gimple_vuse_ptr): Likewise.
8824 (gimple_vdef_ptr): Likewise.
8825 (gimple_set_vuse): Likewise.
8826 (gimple_set_vdef): Likewise.
8827 (gimple_omp_return_set_lhs): Likewise.
8828 (gimple_omp_return_lhs): Likewise.
8829 (gimple_omp_return_lhs_ptr): Likewise.
8830 (gimple_call_fntype): Likewise.
8831 (gimple_call_set_fntype): Likewise.
8832 (gimple_call_set_internal_fn): Likewise.
8833 (gimple_call_use_set): Likewise.
8834 (gimple_call_clobber_set): Likewise.
8835 (gimple_bind_vars): Likewise.
8836 (gimple_bind_set_vars): Likewise.
8837 (gimple_bind_body_ptr): Likewise.
8838 (gimple_bind_set_body): Likewise.
8839 (gimple_bind_add_stmt): Likewise.
8840 (gimple_bind_block): Likewise.
8841 (gimple_bind_set_block): Likewise.
8842 (gimple_asm_ninputs): Likewise.
8843 (gimple_asm_noutputs): Likewise.
8844 (gimple_asm_nclobbers): Likewise.
8845 (gimple_asm_nlabels): Likewise.
8846 (gimple_asm_input_op): Likewise.
8847 (gimple_asm_input_op_ptr): Likewise.
8848 (gimple_asm_output_op): Likewise.
8849 (gimple_asm_output_op_ptr): Likewise.
8850 (gimple_asm_set_output_op): Likewise.
8851 (gimple_asm_clobber_op): Likewise.
8852 (gimple_asm_set_clobber_op): Likewise.
8853 (gimple_asm_label_op): Likewise.
8854 (gimple_asm_set_label_op): Likewise.
8855 (gimple_asm_string): Likewise.
8856 (gimple_catch_types): Likewise.
8857 (gimple_catch_types_ptr): Likewise.
8858 (gimple_catch_handler_ptr): Likewise.
8859 (gimple_catch_set_types): Likewise.
8860 (gimple_catch_set_handler): Likewise.
8861 (gimple_eh_filter_types): Likewise.
8862 (gimple_eh_filter_types_ptr): Likewise.
8863 (gimple_eh_filter_failure_ptr): Likewise.
8864 (gimple_eh_filter_set_types): Likewise.
8865 (gimple_eh_filter_set_failure): Likewise.
8866 (gimple_eh_must_not_throw_fndecl): Likewise.
8867 (gimple_eh_must_not_throw_set_fndecl): Likewise.
8868 (gimple_eh_else_n_body_ptr): Likewise.
8869 (gimple_eh_else_e_body_ptr): Likewise.
8870 (gimple_eh_else_set_n_body): Likewise.
8871 (gimple_eh_else_set_e_body): Likewise.
8872 (gimple_try_eval_ptr): Likewise.
8873 (gimple_try_cleanup_ptr): Likewise.
8874 (gimple_try_set_eval): Likewise.
8875 (gimple_try_set_cleanup): Likewise.
8876 (gimple_wce_cleanup_ptr): Likewise.
8877 (gimple_wce_set_cleanup): Likewise.
8878 (gimple_phi_capacity): Likewise.
8879 (gimple_phi_num_args): Likewise.
8880 (gimple_phi_result): Likewise.
8881 (gimple_phi_result_ptr): Likewise.
8882 (gimple_phi_set_result): Likewise.
8883 (gimple_phi_arg): Likewise.
8884 (gimple_phi_set_arg): Likewise.
8885 (gimple_resx_region): Likewise.
8886 (gimple_resx_set_region): Likewise.
8887 (gimple_eh_dispatch_region): Likewise.
8888 (gimple_eh_dispatch_set_region): Likewise.
8889 (gimple_omp_critical_name): Likewise.
8890 (gimple_omp_critical_name_ptr): Likewise.
8891 (gimple_omp_critical_set_name): Likewise.
8892 (gimple_omp_for_clauses): Likewise.
8893 (gimple_omp_for_clauses_ptr): Likewise.
8894 (gimple_omp_for_set_clauses): Likewise.
8895 (gimple_omp_for_collapse): Likewise.
8896 (gimple_omp_for_index): Likewise.
8897 (gimple_omp_for_index_ptr): Likewise.
8898 (gimple_omp_for_set_index): Likewise.
8899 (gimple_omp_for_initial): Likewise.
8900 (gimple_omp_for_initial_ptr): Likewise.
8901 (gimple_omp_for_set_initial): Likewise.
8902 (gimple_omp_for_final): Likewise.
8903 (gimple_omp_for_final_ptr): Likewise.
8904 (gimple_omp_for_set_final): Likewise.
8905 (gimple_omp_for_incr): Likewise.
8906 (gimple_omp_for_incr_ptr): Likewise.
8907 (gimple_omp_for_set_incr): Likewise.
8908 (gimple_omp_for_pre_body_ptr): Likewise.
8909 (gimple_omp_for_set_pre_body): Likewise.
8910 (gimple_omp_parallel_clauses): Likewise.
8911 (gimple_omp_parallel_clauses_ptr): Likewise.
8912 (gimple_omp_parallel_set_clauses): Likewise.
8913 (gimple_omp_parallel_child_fn): Likewise.
8914 (gimple_omp_parallel_child_fn_ptr): Likewise.
8915 (gimple_omp_parallel_set_child_fn): Likewise.
8916 (gimple_omp_parallel_data_arg): Likewise.
8917 (gimple_omp_parallel_data_arg_ptr): Likewise.
8918 (gimple_omp_parallel_set_data_arg): Likewise.
8919 (gimple_omp_task_clauses): Likewise.
8920 (gimple_omp_task_clauses_ptr): Likewise.
8921 (gimple_omp_task_set_clauses): Likewise.
8922 (gimple_omp_task_child_fn): Likewise.
8923 (gimple_omp_task_child_fn_ptr): Likewise.
8924 (gimple_omp_task_set_child_fn): Likewise.
8925 (gimple_omp_task_data_arg): Likewise.
8926 (gimple_omp_task_data_arg_ptr): Likewise.
8927 (gimple_omp_task_set_data_arg): Likewise.
8928 (gimple_omp_taskreg_clauses): Likewise.
8929 (gimple_omp_taskreg_clauses_ptr): Likewise.
8930 (gimple_omp_taskreg_set_clauses): Likewise.
8931 (gimple_omp_taskreg_child_fn): Likewise.
8932 (gimple_omp_taskreg_child_fn_ptr): Likewise.
8933 (gimple_omp_taskreg_set_child_fn): Likewise.
8934 (gimple_omp_taskreg_data_arg): Likewise.
8935 (gimple_omp_taskreg_data_arg_ptr): Likewise.
8936 (gimple_omp_taskreg_set_data_arg): Likewise.
8937 (gimple_omp_task_copy_fn): Likewise.
8938 (gimple_omp_task_copy_fn_ptr): Likewise.
8939 (gimple_omp_task_set_copy_fn): Likewise.
8940 (gimple_omp_task_arg_size): Likewise.
8941 (gimple_omp_task_arg_size_ptr): Likewise.
8942 (gimple_omp_task_set_arg_size): Likewise.
8943 (gimple_omp_task_arg_align): Likewise.
8944 (gimple_omp_task_arg_align_ptr): Likewise.
8945 (gimple_omp_task_set_arg_align): Likewise.
8946 (gimple_omp_single_clauses): Likewise.
8947 (gimple_omp_single_clauses_ptr): Likewise.
8948 (gimple_omp_single_set_clauses): Likewise.
8949 (gimple_omp_target_clauses): Likewise.
8950 (gimple_omp_target_clauses_ptr): Likewise.
8951 (gimple_omp_target_set_clauses): Likewise.
8952 (gimple_omp_target_child_fn): Likewise.
8953 (gimple_omp_target_child_fn_ptr): Likewise.
8954 (gimple_omp_target_set_child_fn): Likewise.
8955 (gimple_omp_target_data_arg): Likewise.
8956 (gimple_omp_target_data_arg_ptr): Likewise.
8957 (gimple_omp_target_set_data_arg): Likewise.
8958 (gimple_omp_teams_clauses): Likewise.
8959 (gimple_omp_teams_clauses_ptr): Likewise.
8960 (gimple_omp_teams_set_clauses): Likewise.
8961 (gimple_omp_sections_clauses): Likewise.
8962 (gimple_omp_sections_clauses_ptr): Likewise.
8963 (gimple_omp_sections_set_clauses): Likewise.
8964 (gimple_omp_sections_control): Likewise.
8965 (gimple_omp_sections_control_ptr): Likewise.
8966 (gimple_omp_sections_set_control): Likewise.
8967 (gimple_omp_for_set_cond): Likewise.
8968 (gimple_omp_for_cond): Likewise.
8969 (gimple_omp_atomic_store_set_val): Likewise.
8970 (gimple_omp_atomic_store_val): Likewise.
8971 (gimple_omp_atomic_store_val_ptr): Likewise.
8972 (gimple_omp_atomic_load_set_lhs): Likewise.
8973 (gimple_omp_atomic_load_lhs): Likewise.
8974 (gimple_omp_atomic_load_lhs_ptr): Likewise.
8975 (gimple_omp_atomic_load_set_rhs): Likewise.
8976 (gimple_omp_atomic_load_rhs): Likewise.
8977 (gimple_omp_atomic_load_rhs_ptr): Likewise.
8978 (gimple_omp_continue_control_def): Likewise.
8979 (gimple_omp_continue_control_def_ptr): Likewise.
8980 (gimple_omp_continue_set_control_def): Likewise.
8981 (gimple_omp_continue_control_use): Likewise.
8982 (gimple_omp_continue_control_use_ptr): Likewise.
8983 (gimple_omp_continue_set_control_use): Likewise.
8984 (gimple_transaction_body_ptr): Likewise.
8985 (gimple_transaction_label): Likewise.
8986 (gimple_transaction_label_ptr): Likewise.
8987 (gimple_transaction_set_body): Likewise.
8988 (gimple_transaction_set_label): Likewise.
8989
8990 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
8991 * ipa-inline-analysis.c (inline_write_summary): Likewise.
8992 * ipa-ref.c (ipa_record_reference): Likewise.
8993 * ipa-reference.c (analyze_function): Likewise.
8994 (ipa_reference_write_optimization_summary): Likewise.
8995 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
8996 (address_taken_from_non_vtable_p): Likewise.
8997 (comdat_can_be_unshared_p_1): Likewise.
8998 * lto-cgraph.c (lto_output_ref): Likewise.
8999 (add_references): Likewise.
9000 (compute_ltrans_boundary): Likewise.
9001 (output_symtab): Likewise.
9002 (input_ref): Likewise.
9003 (input_cgraph_1): Likewise.
9004 (output_cgraph_opt_summary): Likewise.
9005 * lto-streamer-out.c (lto_output): Likewise.
9006 (output_symbol_p): Likewise.
9007 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
9008 (lsei_start_function_in_partition): Likewise.
9009 (lsei_next_variable_in_partition): Likewise.
9010 (lsei_start_variable_in_partition): Likewise.
9011 * symtab.c (insert_to_assembler_name_hash): Likewise.
9012 (unlink_from_assembler_name_hash): Likewise.
9013 (symtab_unregister_node): Likewise.
9014 (symtab_remove_node): Likewise.
9015 (dump_symtab_node): Likewise.
9016 (verify_symtab_base): Likewise.
9017 (verify_symtab_node): Likewise.
9018 (symtab_make_decl_local): Likewise.
9019 (symtab_alias_ultimate_target): Likewise.
9020 (symtab_resolve_alias): Likewise.
9021 (symtab_get_symbol_partitioning_class): Likewise.
9022 * tree-phinodes.c (allocate_phi_node): Likewise.
9023 (reserve_phi_args_for_new_edge): Likewise.
9024 (remove_phi_args): Likewise.
9025 * varpool.c (varpool_node_for_asm): Likewise.
9026 (varpool_remove_unreferenced_decls): Likewise.
9027
9028 2014-04-23 Jeff Law <law@redhat.com>
9029
9030 PR tree-optimization/60902
9031 * tree-ssa-threadedge.c
9032 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
9033 invalidate outputs from statements that do not produce useful
9034 outputs for threading.
9035
9036 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
9037
9038 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
9039 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
9040 machine descriptions for Stack Smashing Protector.
9041
9042 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
9043
9044 * aarch64.md (<optab>_rol<mode>3): New pattern.
9045 (<optab>_rolsi3_uxtw): Likewise.
9046 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
9047
9048 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
9049
9050 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
9051 (arm_cortex_a12_tune): Likewise.
9052
9053 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9054
9055 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
9056
9057 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9058
9059 * config/arm/arm.md (arm_rev16si2): New pattern.
9060 (arm_rev16si2_alt): Likewise.
9061 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
9062
9063 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9064
9065 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
9066 (rev16<mode>2_alt): Likewise.
9067 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
9068 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
9069 (aarch_rev16_shleft_mask_imm_p): Likewise.
9070 (aarch_rev16_p_1): Likewise.
9071 (aarch_rev16_p): Likewise.
9072 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
9073 (aarch_rev16_shright_mask_imm_p): Likewise.
9074 (aarch_rev16_shleft_mask_imm_p): Likewise.
9075
9076 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9077
9078 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
9079 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
9080 rev cost.
9081 (cortex_a53_extra_costs): Likewise.
9082 (cortex_a57_extra_costs): Likewise.
9083 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
9084 (cortexa7_extra_costs): Likewise.
9085 (cortexa8_extra_costs): Likewise.
9086 (cortexa12_extra_costs): Likewise.
9087 (cortexa15_extra_costs): Likewise.
9088 (v7m_extra_costs): Likewise.
9089 (arm_new_rtx_costs): Handle BSWAP.
9090
9091 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9092
9093 * config/arm/arm.c (cortexa8_extra_costs): New table.
9094 (arm_cortex_a8_tune): New tuning struct.
9095 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
9096
9097 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9098
9099 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
9100
9101 2014-04-23 Richard Biener <rguenther@suse.de>
9102
9103 * Makefile.in (OBJS): Remove loop-unswitch.o.
9104 * tree-pass.h (make_pass_rtl_unswitch): Remove.
9105 * passes.def (pass_rtl_unswitch): Likewise.
9106 * loop-init.c (gate_rtl_unswitch): Likewise.
9107 (rtl_unswitch): Likewise.
9108 (pass_data_rtl_unswitch): Likewise.
9109 (pass_rtl_unswitch): Likewise.
9110 (make_pass_rtl_unswitch): Likewise.
9111 * rtl.h (reversed_condition): Likewise.
9112 (compare_and_jump_seq): Likewise.
9113 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
9114 and make static.
9115 * loop-unroll.c (compare_and_jump_seq): Likewise.
9116
9117 2014-04-23 Richard Biener <rguenther@suse.de>
9118
9119 PR tree-optimization/60903
9120 * tree-ssa-loop-im.c (analyze_memory_references): Remove
9121 commented code block.
9122 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
9123 loop flags to newly created BBs and edges.
9124
9125 2014-04-23 Nick Clifton <nickc@redhat.com>
9126
9127 * config/msp430/msp430.c (msp430_handle_option): Move function
9128 to msp430-common.c
9129 (msp430_option_override): Simplify mcu and mcpu option handling.
9130 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
9131 support for -mhwmult command line option.
9132 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
9133 -mhwmult command line option.
9134 (msp430_hwmult_enabled): Delete.
9135 (msp43o_output_labelref): Add support for -mhwmult command line option.
9136 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
9137 (umulsidi3): Likewise.
9138 * config/msp430/msp430.opt (mmcu): Add Report attribute.
9139 (mcpu, mlarge, msmall): Likewise.
9140 (mhwmult): New option.
9141 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
9142 prototype.
9143 (msp430_is_f5_mcu): Remove prototype.
9144 (msp430_use_f5_series_hwmult): Add prototype.
9145 * config/msp430/msp430-opts.h: New file.
9146 * common/config/msp430: New directory.
9147 * common/config/msp430/msp430-common.c: New file.
9148 * config.gcc (msp430): Remove target_has_targetm_common.
9149 * doc/invoke.texi: Document -mhwmult command line option.
9150
9151 2014-04-23 Nick Clifton <nickc@redhat.com>
9152
9153 * config/i386/cygwin.h (ENDFILE_SPEC): Include
9154 default-manifest.o if it can be found in the search path.
9155 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
9156
9157 2014-04-23 Terry Guo <terry.guo@arm.com>
9158
9159 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
9160
9161 2014-04-23 Richard Biener <rguenther@suse.de>
9162
9163 PR middle-end/60895
9164 * tree-inline.c (declare_return_variable): Use mark_addressable.
9165
9166 2014-04-23 Richard Biener <rguenther@suse.de>
9167
9168 PR middle-end/60891
9169 * loop-init.c (loop_optimizer_init): Make sure to apply
9170 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
9171
9172 2014-04-22 Jakub Jelinek <jakub@redhat.com>
9173
9174 PR sanitizer/60275
9175 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
9176 New options.
9177 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
9178 if flag_sanitize_undefined_trap_on_error.
9179 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
9180 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
9181 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
9182 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
9183 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
9184 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
9185 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
9186 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
9187 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
9188 * ubsan.c (ubsan_instrument_unreachable): Return
9189 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
9190 (ubsan_expand_null_ifn): Emit __builtin_trap ()
9191 if flag_sanitize_undefined_trap_on_error and
9192 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
9193 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
9194 instrument_bool_enum_load): Emit __builtin_trap () if
9195 flag_sanitize_undefined_trap_on_error and
9196 __builtin_handle_*_abort () if !flag_sanitize_recover.
9197 * doc/invoke.texi (-fsanitize-recover,
9198 -fsanitize-undefined-trap-on-error): Document.
9199
9200 2014-04-22 Christian Bruel <christian.bruel@st.com>
9201
9202 * config/sh/sh.md (mov<mode>): Replace movQIHI.
9203 Force immediates to SImode.
9204
9205 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
9206
9207 * config/nios2/nios2.md (UNSPEC_ROUND): New.
9208 (lroundsfsi2): New.
9209 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
9210 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
9211 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
9212 (nios2_fpu_insn): Add entry for round.
9213 (N2FPU_NO_ERRNO_P): Define.
9214 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
9215 flag_errno_math.
9216 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
9217
9218 2014-04-22 Richard Henderson <rth@redhat.com>
9219
9220 * config/aarch64/aarch64 (addti3, subti3): New expanders.
9221 (add<GPI>3_compare0): Remove leading * from name.
9222 (add<GPI>3_carryin): Likewise.
9223 (sub<GPI>3_compare0): Likewise.
9224 (sub<GPI>3_carryin): Likewise.
9225 (<su_optab>mulditi3): New expander.
9226 (multi3): New expander.
9227 (madd<GPI>): Remove leading * from name.
9228
9229 2014-04-22 Martin Jambor <mjambor@suse.cz>
9230
9231 * cgraphclones.c (cgraph_function_versioning): Copy
9232 ipa_transforms_to_apply instead of asserting it is empty.
9233
9234 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
9235
9236 PR target/60868
9237 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
9238 on count_exp to get mode.
9239
9240 2014-04-22 Andrew Pinski <apinski@cavium.com>
9241
9242 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
9243 Handle TLS for ILP32.
9244 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
9245 (tlsie_small_<mode>): this and handle PTR.
9246 (tlsie_small_sidi): New pattern.
9247 (tlsle_small): Change to an expand to handle ILP32.
9248 (tlsle_small_<mode>): New pattern.
9249 (tlsdesc_small): Rename to ...
9250 (tlsdesc_small_<mode>): this and handle PTR.
9251
9252 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9253
9254 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
9255
9256 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9257
9258 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
9259 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
9260 (aarch64_types_signed_poly_qualifiers): Likewise.
9261 (aarch64_types_unsigned_signed_qualifiers): Likewise.
9262 (aarch64_types_poly_signed_qualifiers): Likewise.
9263 (TYPES_REINTERP_SS): Type macro added.
9264 (TYPES_REINTERP_SU): Likewise.
9265 (TYPES_REINTERP_SP): Likewise.
9266 (TYPES_REINTERP_US): Likewise.
9267 (TYPES_REINTERP_PS): Likewise.
9268 (aarch64_fold_builtin): New expression folding added.
9269 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
9270 Declarations removed.
9271 (REINTERP_SS): Declarations added.
9272 (REINTERP_US): Likewise.
9273 (REINTERP_PS): Likewise.
9274 (REINTERP_SU): Likewise.
9275 (REINTERP_SP): Likewise.
9276 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
9277 (vreinterpretq_p8_f64): Likewise.
9278 (vreinterpret_p16_f64): Likewise.
9279 (vreinterpretq_p16_f64): Likewise.
9280 (vreinterpret_f32_f64): Likewise.
9281 (vreinterpretq_f32_f64): Likewise.
9282 (vreinterpret_f64_f32): Likewise.
9283 (vreinterpret_f64_p8): Likewise.
9284 (vreinterpret_f64_p16): Likewise.
9285 (vreinterpret_f64_s8): Likewise.
9286 (vreinterpret_f64_s16): Likewise.
9287 (vreinterpret_f64_s32): Likewise.
9288 (vreinterpret_f64_s64): Likewise.
9289 (vreinterpret_f64_u8): Likewise.
9290 (vreinterpret_f64_u16): Likewise.
9291 (vreinterpret_f64_u32): Likewise.
9292 (vreinterpret_f64_u64): Likewise.
9293 (vreinterpretq_f64_f32): Likewise.
9294 (vreinterpretq_f64_p8): Likewise.
9295 (vreinterpretq_f64_p16): Likewise.
9296 (vreinterpretq_f64_s8): Likewise.
9297 (vreinterpretq_f64_s16): Likewise.
9298 (vreinterpretq_f64_s32): Likewise.
9299 (vreinterpretq_f64_s64): Likewise.
9300 (vreinterpretq_f64_u8): Likewise.
9301 (vreinterpretq_f64_u16): Likewise.
9302 (vreinterpretq_f64_u32): Likewise.
9303 (vreinterpretq_f64_u64): Likewise.
9304 (vreinterpret_s64_f64): Likewise.
9305 (vreinterpretq_s64_f64): Likewise.
9306 (vreinterpret_u64_f64): Likewise.
9307 (vreinterpretq_u64_f64): Likewise.
9308 (vreinterpret_s8_f64): Likewise.
9309 (vreinterpretq_s8_f64): Likewise.
9310 (vreinterpret_s16_f64): Likewise.
9311 (vreinterpretq_s16_f64): Likewise.
9312 (vreinterpret_s32_f64): Likewise.
9313 (vreinterpretq_s32_f64): Likewise.
9314 (vreinterpret_u8_f64): Likewise.
9315 (vreinterpretq_u8_f64): Likewise.
9316 (vreinterpret_u16_f64): Likewise.
9317 (vreinterpretq_u16_f64): Likewise.
9318 (vreinterpret_u32_f64): Likewise.
9319 (vreinterpretq_u32_f64): Likewise.
9320
9321 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9322
9323 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
9324 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
9325 (vreinterpret_p8_s8): Likewise.
9326 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
9327 (vreinterpret_p8_s16): Likewise.
9328 (vreinterpret_p8_s32): Likewise.
9329 (vreinterpret_p8_s64): Likewise.
9330 (vreinterpret_p8_f32): Likewise.
9331 (vreinterpret_p8_u8): Likewise.
9332 (vreinterpret_p8_u16): Likewise.
9333 (vreinterpret_p8_u32): Likewise.
9334 (vreinterpret_p8_u64): Likewise.
9335 (vreinterpret_p8_p16): Likewise.
9336 (vreinterpretq_p8_s8): Likewise.
9337 (vreinterpretq_p8_s16): Likewise.
9338 (vreinterpretq_p8_s32): Likewise.
9339 (vreinterpretq_p8_s64): Likewise.
9340 (vreinterpretq_p8_f32): Likewise.
9341 (vreinterpretq_p8_u8): Likewise.
9342 (vreinterpretq_p8_u16): Likewise.
9343 (vreinterpretq_p8_u32): Likewise.
9344 (vreinterpretq_p8_u64): Likewise.
9345 (vreinterpretq_p8_p16): Likewise.
9346 (vreinterpret_p16_s8): Likewise.
9347 (vreinterpret_p16_s16): Likewise.
9348 (vreinterpret_p16_s32): Likewise.
9349 (vreinterpret_p16_s64): Likewise.
9350 (vreinterpret_p16_f32): Likewise.
9351 (vreinterpret_p16_u8): Likewise.
9352 (vreinterpret_p16_u16): Likewise.
9353 (vreinterpret_p16_u32): Likewise.
9354 (vreinterpret_p16_u64): Likewise.
9355 (vreinterpret_p16_p8): Likewise.
9356 (vreinterpretq_p16_s8): Likewise.
9357 (vreinterpretq_p16_s16): Likewise.
9358 (vreinterpretq_p16_s32): Likewise.
9359 (vreinterpretq_p16_s64): Likewise.
9360 (vreinterpretq_p16_f32): Likewise.
9361 (vreinterpretq_p16_u8): Likewise.
9362 (vreinterpretq_p16_u16): Likewise.
9363 (vreinterpretq_p16_u32): Likewise.
9364 (vreinterpretq_p16_u64): Likewise.
9365 (vreinterpretq_p16_p8): Likewise.
9366 (vreinterpret_f32_s8): Likewise.
9367 (vreinterpret_f32_s16): Likewise.
9368 (vreinterpret_f32_s32): Likewise.
9369 (vreinterpret_f32_s64): Likewise.
9370 (vreinterpret_f32_u8): Likewise.
9371 (vreinterpret_f32_u16): Likewise.
9372 (vreinterpret_f32_u32): Likewise.
9373 (vreinterpret_f32_u64): Likewise.
9374 (vreinterpret_f32_p8): Likewise.
9375 (vreinterpret_f32_p16): Likewise.
9376 (vreinterpretq_f32_s8): Likewise.
9377 (vreinterpretq_f32_s16): Likewise.
9378 (vreinterpretq_f32_s32): Likewise.
9379 (vreinterpretq_f32_s64): Likewise.
9380 (vreinterpretq_f32_u8): Likewise.
9381 (vreinterpretq_f32_u16): Likewise.
9382 (vreinterpretq_f32_u32): Likewise.
9383 (vreinterpretq_f32_u64): Likewise.
9384 (vreinterpretq_f32_p8): Likewise.
9385 (vreinterpretq_f32_p16): Likewise.
9386 (vreinterpret_s64_s8): Likewise.
9387 (vreinterpret_s64_s16): Likewise.
9388 (vreinterpret_s64_s32): Likewise.
9389 (vreinterpret_s64_f32): Likewise.
9390 (vreinterpret_s64_u8): Likewise.
9391 (vreinterpret_s64_u16): Likewise.
9392 (vreinterpret_s64_u32): Likewise.
9393 (vreinterpret_s64_u64): Likewise.
9394 (vreinterpret_s64_p8): Likewise.
9395 (vreinterpret_s64_p16): Likewise.
9396 (vreinterpretq_s64_s8): Likewise.
9397 (vreinterpretq_s64_s16): Likewise.
9398 (vreinterpretq_s64_s32): Likewise.
9399 (vreinterpretq_s64_f32): Likewise.
9400 (vreinterpretq_s64_u8): Likewise.
9401 (vreinterpretq_s64_u16): Likewise.
9402 (vreinterpretq_s64_u32): Likewise.
9403 (vreinterpretq_s64_u64): Likewise.
9404 (vreinterpretq_s64_p8): Likewise.
9405 (vreinterpretq_s64_p16): Likewise.
9406 (vreinterpret_u64_s8): Likewise.
9407 (vreinterpret_u64_s16): Likewise.
9408 (vreinterpret_u64_s32): Likewise.
9409 (vreinterpret_u64_s64): Likewise.
9410 (vreinterpret_u64_f32): Likewise.
9411 (vreinterpret_u64_u8): Likewise.
9412 (vreinterpret_u64_u16): Likewise.
9413 (vreinterpret_u64_u32): Likewise.
9414 (vreinterpret_u64_p8): Likewise.
9415 (vreinterpret_u64_p16): Likewise.
9416 (vreinterpretq_u64_s8): Likewise.
9417 (vreinterpretq_u64_s16): Likewise.
9418 (vreinterpretq_u64_s32): Likewise.
9419 (vreinterpretq_u64_s64): Likewise.
9420 (vreinterpretq_u64_f32): Likewise.
9421 (vreinterpretq_u64_u8): Likewise.
9422 (vreinterpretq_u64_u16): Likewise.
9423 (vreinterpretq_u64_u32): Likewise.
9424 (vreinterpretq_u64_p8): Likewise.
9425 (vreinterpretq_u64_p16): Likewise.
9426 (vreinterpret_s8_s16): Likewise.
9427 (vreinterpret_s8_s32): Likewise.
9428 (vreinterpret_s8_s64): Likewise.
9429 (vreinterpret_s8_f32): Likewise.
9430 (vreinterpret_s8_u8): Likewise.
9431 (vreinterpret_s8_u16): Likewise.
9432 (vreinterpret_s8_u32): Likewise.
9433 (vreinterpret_s8_u64): Likewise.
9434 (vreinterpret_s8_p8): Likewise.
9435 (vreinterpret_s8_p16): Likewise.
9436 (vreinterpretq_s8_s16): Likewise.
9437 (vreinterpretq_s8_s32): Likewise.
9438 (vreinterpretq_s8_s64): Likewise.
9439 (vreinterpretq_s8_f32): Likewise.
9440 (vreinterpretq_s8_u8): Likewise.
9441 (vreinterpretq_s8_u16): Likewise.
9442 (vreinterpretq_s8_u32): Likewise.
9443 (vreinterpretq_s8_u64): Likewise.
9444 (vreinterpretq_s8_p8): Likewise.
9445 (vreinterpretq_s8_p16): Likewise.
9446 (vreinterpret_s16_s8): Likewise.
9447 (vreinterpret_s16_s32): Likewise.
9448 (vreinterpret_s16_s64): Likewise.
9449 (vreinterpret_s16_f32): Likewise.
9450 (vreinterpret_s16_u8): Likewise.
9451 (vreinterpret_s16_u16): Likewise.
9452 (vreinterpret_s16_u32): Likewise.
9453 (vreinterpret_s16_u64): Likewise.
9454 (vreinterpret_s16_p8): Likewise.
9455 (vreinterpret_s16_p16): Likewise.
9456 (vreinterpretq_s16_s8): Likewise.
9457 (vreinterpretq_s16_s32): Likewise.
9458 (vreinterpretq_s16_s64): Likewise.
9459 (vreinterpretq_s16_f32): Likewise.
9460 (vreinterpretq_s16_u8): Likewise.
9461 (vreinterpretq_s16_u16): Likewise.
9462 (vreinterpretq_s16_u32): Likewise.
9463 (vreinterpretq_s16_u64): Likewise.
9464 (vreinterpretq_s16_p8): Likewise.
9465 (vreinterpretq_s16_p16): Likewise.
9466 (vreinterpret_s32_s8): Likewise.
9467 (vreinterpret_s32_s16): Likewise.
9468 (vreinterpret_s32_s64): Likewise.
9469 (vreinterpret_s32_f32): Likewise.
9470 (vreinterpret_s32_u8): Likewise.
9471 (vreinterpret_s32_u16): Likewise.
9472 (vreinterpret_s32_u32): Likewise.
9473 (vreinterpret_s32_u64): Likewise.
9474 (vreinterpret_s32_p8): Likewise.
9475 (vreinterpret_s32_p16): Likewise.
9476 (vreinterpretq_s32_s8): Likewise.
9477 (vreinterpretq_s32_s16): Likewise.
9478 (vreinterpretq_s32_s64): Likewise.
9479 (vreinterpretq_s32_f32): Likewise.
9480 (vreinterpretq_s32_u8): Likewise.
9481 (vreinterpretq_s32_u16): Likewise.
9482 (vreinterpretq_s32_u32): Likewise.
9483 (vreinterpretq_s32_u64): Likewise.
9484 (vreinterpretq_s32_p8): Likewise.
9485 (vreinterpretq_s32_p16): Likewise.
9486 (vreinterpret_u8_s8): Likewise.
9487 (vreinterpret_u8_s16): Likewise.
9488 (vreinterpret_u8_s32): Likewise.
9489 (vreinterpret_u8_s64): Likewise.
9490 (vreinterpret_u8_f32): Likewise.
9491 (vreinterpret_u8_u16): Likewise.
9492 (vreinterpret_u8_u32): Likewise.
9493 (vreinterpret_u8_u64): Likewise.
9494 (vreinterpret_u8_p8): Likewise.
9495 (vreinterpret_u8_p16): Likewise.
9496 (vreinterpretq_u8_s8): Likewise.
9497 (vreinterpretq_u8_s16): Likewise.
9498 (vreinterpretq_u8_s32): Likewise.
9499 (vreinterpretq_u8_s64): Likewise.
9500 (vreinterpretq_u8_f32): Likewise.
9501 (vreinterpretq_u8_u16): Likewise.
9502 (vreinterpretq_u8_u32): Likewise.
9503 (vreinterpretq_u8_u64): Likewise.
9504 (vreinterpretq_u8_p8): Likewise.
9505 (vreinterpretq_u8_p16): Likewise.
9506 (vreinterpret_u16_s8): Likewise.
9507 (vreinterpret_u16_s16): Likewise.
9508 (vreinterpret_u16_s32): Likewise.
9509 (vreinterpret_u16_s64): Likewise.
9510 (vreinterpret_u16_f32): Likewise.
9511 (vreinterpret_u16_u8): Likewise.
9512 (vreinterpret_u16_u32): Likewise.
9513 (vreinterpret_u16_u64): Likewise.
9514 (vreinterpret_u16_p8): Likewise.
9515 (vreinterpret_u16_p16): Likewise.
9516 (vreinterpretq_u16_s8): Likewise.
9517 (vreinterpretq_u16_s16): Likewise.
9518 (vreinterpretq_u16_s32): Likewise.
9519 (vreinterpretq_u16_s64): Likewise.
9520 (vreinterpretq_u16_f32): Likewise.
9521 (vreinterpretq_u16_u8): Likewise.
9522 (vreinterpretq_u16_u32): Likewise.
9523 (vreinterpretq_u16_u64): Likewise.
9524 (vreinterpretq_u16_p8): Likewise.
9525 (vreinterpretq_u16_p16): Likewise.
9526 (vreinterpret_u32_s8): Likewise.
9527 (vreinterpret_u32_s16): Likewise.
9528 (vreinterpret_u32_s32): Likewise.
9529 (vreinterpret_u32_s64): Likewise.
9530 (vreinterpret_u32_f32): Likewise.
9531 (vreinterpret_u32_u8): Likewise.
9532 (vreinterpret_u32_u16): Likewise.
9533 (vreinterpret_u32_u64): Likewise.
9534 (vreinterpret_u32_p8): Likewise.
9535 (vreinterpret_u32_p16): Likewise.
9536 (vreinterpretq_u32_s8): Likewise.
9537 (vreinterpretq_u32_s16): Likewise.
9538 (vreinterpretq_u32_s32): Likewise.
9539 (vreinterpretq_u32_s64): Likewise.
9540 (vreinterpretq_u32_f32): Likewise.
9541 (vreinterpretq_u32_u8): Likewise.
9542 (vreinterpretq_u32_u16): Likewise.
9543 (vreinterpretq_u32_u64): Likewise.
9544 (vreinterpretq_u32_p8): Likewise.
9545 (vreinterpretq_u32_p16): Likewise.
9546
9547 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9548
9549 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
9550 Pattern extended.
9551 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
9552 (sqabs): Likewise.
9553 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
9554 (vqnegd_s64): Likewise.
9555 (vqabs_s64): Likewise.
9556 (vqabsd_s64): Likewise.
9557
9558 2014-04-22 Richard Henderson <rth@redhat.com>
9559
9560 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
9561 computation to the top of the loop.
9562
9563 2014-04-22 Renlin <renlin.li@arm.com>
9564 Jiong Wang <jiong.wang@arm.com>
9565
9566 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
9567 * config/aarch64/aarch64.c (aarch64_layout_frame)
9568 (aarch64_initial_elimination_offset): Likewise.
9569
9570 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
9571
9572 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
9573 Fix indentation.
9574
9575 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
9576
9577 * machmode.h (bitwise_mode_for_mode): Declare.
9578 * stor-layout.h (bitwise_type_for_mode): Likewise.
9579 * stor-layout.c (bitwise_mode_for_mode): New function.
9580 (bitwise_type_for_mode): Likewise.
9581 * builtins.c (fold_builtin_memory_op): Use it instead of
9582 int_mode_for_mode and build_nonstandard_integer_type.
9583
9584 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9585
9586 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
9587 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
9588 (*-*-solaris2*): Simplify.
9589 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
9590 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
9591 *-*-solaris2.9* handling.
9592
9593 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
9594 as bug.
9595 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
9596 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
9597 handling, simplify.
9598 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
9599 * configure: Regenerate.
9600
9601 * config/i386/sol2-9.h: Remove.
9602
9603 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
9604 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
9605 Remove Solaris 9 references.
9606
9607 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
9608
9609 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
9610 (floatuns<GPI:mode><GPF:mode>2): Remove.
9611 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
9612 and floatuns conversions.
9613 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
9614 and floatuns conversions.
9615 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
9616 (w1,w2): New mode attributes for inequal width conversions.
9617
9618 2014-04-22 Renlin Li <Renlin.Li@arm.com>
9619
9620 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
9621 the output asm format.
9622
9623 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
9624
9625 * config/aarch64/aarch64-simd.md
9626 (aarch64_cm<optab>di): Always split.
9627 (*aarch64_cm<optab>di): New.
9628 (aarch64_cmtstdi): Always split.
9629 (*aarch64_cmtstdi): New.
9630
9631 2014-04-22 Jakub Jelinek <jakub@redhat.com>
9632
9633 PR tree-optimization/60823
9634 * omp-low.c (ipa_simd_modify_function_body): Go through
9635 all SSA_NAMEs and for those refering to vector arguments
9636 which are going to be replaced adjust SSA_NAME_VAR and,
9637 if it is a default definition, change it into a non-default
9638 definition assigned at the beginning of function from new_decl.
9639 (ipa_simd_modify_stmt_ops): Rewritten.
9640 * tree-dfa.c (set_ssa_default_def): When removing default def,
9641 check for NULL loc instead of NULL *loc.
9642
9643 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9644
9645 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
9646 restrictions on core registers for DImode values in Thumb2.
9647
9648 2014-04-22 Ian Bolton <ian.bolton@arm.com>
9649
9650 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
9651 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
9652
9653 2014-04-22 Ian Bolton <ian.bolton@arm.com>
9654
9655 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
9656 (*iordi_notzesidi_di): Likewise.
9657 (*iordi_notsesidi_di): Likewise.
9658
9659 2014-04-22 Ian Bolton <ian.bolton@arm.com>
9660
9661 * config/arm/arm-protos.h (tune_params): New struct members.
9662 * config/arm/arm.c: Initialise tune_params per processor.
9663 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
9664 for speed, based on new tune_params.
9665
9666 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
9667
9668 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
9669 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
9670 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
9671 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
9672 * config/aarch64/arm_neon.h (vrnd_f64): Added.
9673 (vrnda_f64): Likewise.
9674 (vrndi_f64): Likewise.
9675 (vrndm_f64): Likewise.
9676 (vrndn_f64): Likewise.
9677 (vrndp_f64): Likewise.
9678 (vrndx_f64): Likewise.
9679
9680 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9681
9682 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
9683 GET_MODE_SIZE argument is enum machine_mode.
9684
9685 2014-04-22 Jakub Jelinek <jakub@redhat.com>
9686
9687 PR target/60910
9688 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
9689 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
9690
9691 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
9692
9693 PR middle-end/60281
9694 * asan.c (asan_emit_stack_protection): Force the base to align to
9695 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
9696 appropriate bits if STRICT_ALIGNMENT.
9697 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
9698 when asan is on.
9699 (expand_used_vars): Leave a space in the stack frame for alignment
9700 if STRICT_ALIGNMENT.
9701
9702 2014-04-21 David Malcolm <dmalcolm@redhat.com>
9703
9704 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
9705 than a gimple.
9706 (gimple_store_p): Likewise.
9707 (gimple_assign_load_p): Likewise.
9708 (gimple_assign_cast_p): Likewise.
9709 (gimple_clobber_p): Likewise.
9710
9711 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
9712 rather than a gimple.
9713 (gimple_assign_cast_p): Likewise.
9714
9715 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9716
9717 PR target/60735
9718 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
9719 If mode is DDmode and TARGET_E500_DOUBLE allow move.
9720
9721 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
9722 more debug information for E500 if -mdebug=reg.
9723
9724 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
9725
9726 PR target/60909
9727 * config/i386/i386.c (ix86_expand_builtin)
9728 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
9729 register for target RTX.
9730 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
9731
9732 2014-04-18 Cong Hou <congh@google.com>
9733
9734 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
9735 the widen-mult pattern by handling two operands with different sizes,
9736 and operands whose size is smaller than half of the result type.
9737
9738 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
9739
9740 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
9741 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
9742 (do_estimate_edge_time): Compute it.
9743 * ipa-inline.c (want_inline_small_function_p): Bypass
9744 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
9745
9746 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
9747
9748 * ipa-inline.c (spec_rem): New static variable.
9749 (dump_overall_stats): New function.
9750 (dump_inline_stats): New function.
9751
9752 2014-04-18 Richard Henderson <rth@redhat.com>
9753
9754 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
9755 to GET_MODE_SIZE, not a reg_class_t.
9756
9757 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9758
9759 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
9760 (vsx_xxmrglw_<mode>): Likewise.
9761
9762 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
9763
9764 PR target/60876
9765 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
9766 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
9767 (rs6000_init_hard_regno_mode_ok): Likewise.
9768
9769 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
9770
9771 * ipa-inline.c (inline_small_functions): Account only non-cold
9772 functions.
9773 * doc/invoke.texi (inline-unit-growth): Update documentation.
9774
9775 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
9776
9777 * config/rs6000/rs6000.md (addti3, subti3): New.
9778
9779 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
9780
9781 PR target/60863
9782 * config/i386/i386.c (ix86_expand_clear): Remove outdated
9783 comment. Check optimize_insn_for_size_p instead of
9784 optimize_insn_for_speed_p.
9785
9786 2014-04-17 Martin Jambor <mjambor@suse.cz>
9787
9788 * gimple-iterator.c (gsi_start_edge): New function.
9789 * gimple-iterator.h (gsi_start_edge): Declare.
9790 * tree-sra.c (single_non_eh_succ): New function.
9791 (disqualify_ops_if_throwing_stmt): Renamed to
9792 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
9793 having one non-EH successor BB.
9794 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
9795 generate loads into replacements.
9796 (sra_modify_assign): Likewise and and also use the simple path for
9797 such statements.
9798 (sra_modify_function_body): Commit statements on edges.
9799
9800 2014-04-17 Richard Biener <rguenther@suse.de>
9801
9802 PR middle-end/60849
9803 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
9804 comparison results and add clarifying comment.
9805
9806 2014-04-17 Jakub Jelinek <jakub@redhat.com>
9807
9808 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
9809 (blank_mode): Initialize it.
9810 (emit_mode_size_inline, emit_mode_nunits_inline,
9811 emit_mode_inner_inline): New functions.
9812 (emit_insn_modes_h): Call them and surround their output with
9813 #if GCC_VERSION >= 4001 ... #endif.
9814 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
9815 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
9816 mode_* arrays if the argument is __builtin_constant_p.
9817 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
9818 is enum machine_mode.
9819
9820 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9821
9822 * passes.c (opt_pass::execute): Adjust.
9823 (pass_manager::execute_pass_mode_switching): Likewise.
9824 (early_local_passes::execute): Likewise.
9825 (execute_one_pass): Pass cfun to the pass's execute method.
9826 * tree-pass.h (opt_pass::execute): Add function * argument.
9827 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9828 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9829 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9830 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9831 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9832 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
9833 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
9834 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
9835 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
9836 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
9837 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
9838 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
9839 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
9840 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
9841 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
9842 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
9843 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
9844 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
9845 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
9846 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9847 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9848 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9849 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9850 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9851 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9852 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9853 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9854 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9855 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
9856 Adjust.
9857
9858 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9859
9860 * passes.c (opt_pass::gate): Take function * argument.
9861 (gate_all_early_local_passes): Merge into
9862 (early_local_passes::gate): this.
9863 (gate_all_early_optimizations): Merge into
9864 (all_early_optimizations::gate): this.
9865 (gate_all_optimizations): Mege into
9866 (all_optimizations::gate): this.
9867 (gate_all_optimizations_g): Merge into
9868 (all_optimizations_g::gate): this.
9869 (gate_rest_of_compilation): Mege into
9870 (rest_of_compilation::gate): this.
9871 (gate_postreload): Merge into
9872 (postreload::gate): this.
9873 (dump_one_pass): Pass cfun to the pass's gate method.
9874 (execute_ipa_summary_passes): Likewise.
9875 (execute_one_pass): Likewise.
9876 (ipa_write_summaries_2): Likewise.
9877 (ipa_write_optimization_summaries_1): Likewise.
9878 (ipa_read_summaries_1): Likewise.
9879 (ipa_read_optimization_summaries_1): Likewise.
9880 (execute_ipa_stmt_fixups): Likewise.
9881 * tree-pass.h (opt_pass::gate): Add function * argument.
9882 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
9883 combine-stack-adj.c, combine.c, compare-elim.c,
9884 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9885 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
9886 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
9887 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
9888 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
9889 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
9890 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
9891 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
9892 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
9893 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
9894 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
9895 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
9896 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
9897 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
9898 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9899 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9900 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9901 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9902 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9903 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9904 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9905 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9906 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
9907 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
9908 var-tracking.c, vtable-verify.c, web.c: Adjust.
9909
9910 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9911
9912 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
9913 * configure: Regenerate.
9914
9915 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9916
9917 * passes.c (dump_one_pass): don't check pass->has_gate.
9918 (execute_ipa_summary_passes): Likewise.
9919 (execute_one_pass): Likewise.
9920 (ipa_write_summaries_2): Likewise.
9921 (ipa_write_optimization_summaries_1): Likewise.
9922 (ipa_read_optimization_summaries_1): Likewise.
9923 (execute_ipa_stmt_fixups): Likewise.
9924 * tree-pass.h (pass_data::has_gate): Remove.
9925 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
9926 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
9927 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
9928 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
9929 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
9930 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
9931 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
9932 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
9933 gimple-low.c, gimple-ssa-isolate-paths.c,
9934 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
9935 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
9936 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
9937 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
9938 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
9939 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
9940 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
9941 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
9942 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
9943 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
9944 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
9945 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
9946 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
9947 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
9948 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
9949 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
9950 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
9951 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
9952 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
9953 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
9954 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
9955 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
9956 Adjust.
9957
9958 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9959
9960 * pass_manager.h (pass_manager::register_dump_files_1): Remove
9961 declaration.
9962 * passes.c (pass_manager::register_dump_files_1): Merge into
9963 (pass_manager::register_dump_files): this, and remove its handling of
9964 properties since the pass always has the properties anyway.
9965 (pass_manager::pass_manager): Adjust.
9966
9967 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
9968
9969 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
9970 * passes.c (pass_manager::register_dump_files_1): Remove dead code
9971 dealing with properties.
9972 (pass_manager::register_dump_files): Adjust.
9973
9974 2014-03-20 Mark Wielaard <mjw@redhat.com>
9975
9976 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
9977 then represent the bound as normal constant value.
9978
9979 2014-04-17 Jakub Jelinek <jakub@redhat.com>
9980
9981 PR target/60847
9982 Forward port from 4.8 branch
9983 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
9984
9985 * config/i386/bmiintrin.h (_blsi_u32): New.
9986 (_blsi_u64): Ditto.
9987 (_blsr_u32): Ditto.
9988 (_blsr_u64): Ditto.
9989 (_blsmsk_u32): Ditto.
9990 (_blsmsk_u64): Ditto.
9991 (_tzcnt_u32): Ditto.
9992 (_tzcnt_u64): Ditto.
9993
9994 2014-04-17 Kito Cheng <kito@0xlab.org>
9995
9996 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
9997
9998 2014-04-17 Richard Biener <rguenther@suse.de>
9999
10000 PR middle-end/60849
10001 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
10002 boolean results for comparisons.
10003
10004 2014-04-17 Richard Biener <rguenther@suse.de>
10005
10006 PR tree-optimization/60836
10007 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
10008 initial PHI args to be gimple values.
10009
10010 2014-04-17 Richard Biener <rguenther@suse.de>
10011
10012 PR tree-optimization/60841
10013 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
10014 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
10015 of stmts to SLP build.
10016 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
10017 (vect_analyze_slp): Likewise.
10018 (vect_analyze_slp_instance): Likewise.
10019 (vect_build_slp_tree): Limit overall SLP tree growth.
10020 * tree-vectorizer.h (vect_analyze_data_refs,
10021 vect_analyze_slp): Adjust prototypes.
10022
10023 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
10024
10025 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
10026 Silvermont.
10027
10028 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
10029
10030 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
10031 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
10032 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
10033 for TARGET_SLOW_PSHUFB
10034
10035 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
10036
10037 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
10038 * config/i386/i386.c (intel_cost): Ditto.
10039
10040 2014-04-17 Joey Ye <joey.ye@arm.com>
10041
10042 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
10043
10044 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
10045
10046 * opts.c (common_handle_option): Disable -fipa-reference coorectly
10047 with -fuse-profile.
10048
10049 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
10050
10051 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
10052 (type_all_derivations_known_p): New predicate.
10053 (type_all_ctors_visible_p): New predicate.
10054 (type_possibly_instantiated_p): New predicate.
10055 (get_odr_type): Compute all_derivations_known.
10056 (dump_odr_type): Dump the flag.
10057 (maybe_record_type): Cleanup.
10058 (record_target_from_binfo): Add bases_to_consider array;
10059 record bases for types w/o instances and skip CXX destructor.
10060 (possible_polymorphic_call_targets_1): Add bases_to_consider
10061 and consider_construction parameters; check if type may have instance.
10062 (get_polymorphic_call_info): Set maybe_in_construction to true
10063 when we know nothing.
10064 (record_targets_from_bases): Skip CXX destructors; they are
10065 never called for types in construction.
10066 (possible_polymorphic_call_targets): Do not record target when
10067 type may not have instance.
10068
10069 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
10070
10071 PR ipa/60854
10072 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
10073 external aliases alive, too.
10074
10075 2014-04-16 Andrew Pinski <apinski@cavium.com>
10076
10077 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
10078 definition.
10079
10080 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
10081
10082 * final.c (compute_alignments): Do not apply loop alignment to a block
10083 falling through to the exit.
10084
10085 2014-04-16 Catherine Moore <clm@codesourcery.com>
10086
10087 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
10088 Adjust constraints for microMIPS store patterns.
10089
10090 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
10091
10092 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
10093
10094 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
10095
10096 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
10097 (append_use): Run at -O0.
10098 (append_vdef): Likewise.
10099 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
10100 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
10101
10102 2014-04-16 Jakub Jelinek <jakub@redhat.com>
10103
10104 PR tree-optimization/60844
10105 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
10106 (propagate_op_to_single_use, remove_visited_stmt_chain,
10107 linearize_expr, repropagate_negates, reassociate_bb): Use it
10108 instead of gsi_remove.
10109
10110 2014-04-16 Martin Jambor <mjambor@suse.cz>
10111
10112 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
10113 ipa_transforms_to_apply.
10114 (cgraph_function_versioning): Assert that old_node has empty
10115 ipa_transforms_to_apply.
10116 * trans-mem.c (ipa_tm_create_version): Likewise.
10117 * tree-inline.c (tree_function_versioning): Do not duplicate
10118 ipa_transforms_to_apply.
10119
10120 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10121
10122 PR target/60817
10123 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
10124 x86_64-*-* cases.
10125 Pass necessary as flags on 64-bit Solaris/x86.
10126 Use lowercase relocs for x86_64-*-*.
10127 * configure: Regenerate.
10128
10129 2014-04-15 Jan Hubicka <jh@suse.cz>
10130
10131 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
10132 (maybe_record_node, likely_target_p): Use it.
10133
10134 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10135
10136 PR target/60839
10137 Revert following patch
10138
10139 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10140
10141 PR target/60735
10142 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
10143 software floating point or no floating point registers, do not
10144 allow any type in the FPRs. Eliminate a test for SPE SIMD types
10145 in GPRs that occurs after we tested for GPRs that would never be
10146 true.
10147
10148 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
10149 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
10150 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
10151 specifically allow DDmode, since that does not use the SPE SIMD
10152 instructions.
10153
10154 2014-03-21 Mark Wielaard <mjw@redhat.com>
10155
10156 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
10157 as unsigned or int depending on type and value used.
10158
10159 2014-04-15 Richard Biener <rguenther@suse.de>
10160
10161 PR rtl-optimization/56965
10162 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
10163 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
10164 ... here.
10165 * alias.c (true_dependence_1): Do not call
10166 nonoverlapping_component_refs_p.
10167 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
10168 nonoverlapping_component_refs_p.
10169 (indirect_refs_may_alias_p): Likewise.
10170
10171 2014-04-15 Teresa Johnson <tejohnson@google.com>
10172
10173 * cfg.c (dump_bb_info): Fix flags check.
10174 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
10175
10176 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10177
10178 PR rtl-optimization/60663
10179 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
10180 avoid 0 cost.
10181
10182 2014-04-15 Richard Biener <rguenther@suse.de>
10183
10184 * lto-streamer.h (LTO_major_version): Bump to 4.
10185
10186 2014-04-15 Richard Biener <rguenther@suse.de>
10187
10188 * common.opt (lto_partition_model): New enum.
10189 (flto-partition=): Merge separate options with a single with argument,
10190 add -flto-partition=one support.
10191 * flag-types.h (enum lto_partition_model): Declare.
10192 * opts.c (finish_options): Remove duplicate -flto-partition=
10193 option check.
10194 * lto-wrapper.c (run_gcc): Adjust.
10195
10196 2014-04-15 Richard Biener <rguenther@suse.de>
10197
10198 * alias.c (ncr_compar): New function.
10199 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
10200
10201 2014-04-15 Richard Biener <rguenther@suse.de>
10202
10203 * alias.c (record_component_aliases): Do not walk BINFOs.
10204
10205 2014-04-15 Richard Biener <rguenther@suse.de>
10206
10207 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10208 Add struct function argument and adjust.
10209 (find_func_aliases_for_call): Likewise.
10210 (find_func_aliases): Likewise.
10211 (find_func_clobbers): Likewise.
10212 (intra_create_variable_infos): Likewise.
10213 (compute_points_to_sets): Likewise.
10214 (ipa_pta_execute): Adjust. Do not push/pop cfun.
10215
10216 2014-04-15 Richard Biener <rguenther@suse.de>
10217
10218 * tree.c (iterative_hash_expr): Use enum tree_code_class
10219 to store TREE_CODE_CLASS.
10220 (tree_block): Likewise.
10221 (tree_set_block): Likewise.
10222 * tree.h (fold_build_pointer_plus_loc): Use
10223 convert_to_ptrofftype_loc.
10224
10225 2014-04-15 Jakub Jelinek <jakub@redhat.com>
10226
10227 PR plugins/59335
10228 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
10229 added in 4.9.
10230
10231 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
10232
10233 * cfgloop.h (struct loop): Move force_vectorize down.
10234 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
10235 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
10236 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
10237 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
10238 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
10239 * tree-core.h (enum annot_expr_kind): Add new kind values.
10240 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
10241 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
10242 kinds.
10243 * tree.def (ANNOTATE_EXPR): Tweak comment.
10244
10245 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
10246
10247 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
10248 cxa_pure_virtual).
10249
10250 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
10251
10252 * tree.h (TYPE_IDENTIFIER): Declare.
10253 * tree.c (subrange_type_for_debug_p): Use it.
10254 * godump.c (go_format_type): Likewise.
10255 * dwarf2out.c (is_cxx_auto, modified_type_die,
10256 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
10257 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
10258
10259 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
10260
10261 PR lto/60820
10262 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
10263
10264 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
10265
10266 * config/i386/i386.c (examine_argument): Return bool. Return true if
10267 parameter should be passed in memory.
10268 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
10269 (construct_container): Update calls to examine_argument.
10270 (function_arg_advance_64): Ditto.
10271 (return_in_memory_32): Merge with ix86_return_in_memory.
10272 (return_in_memory_64): Ditto.
10273 (return_in_memory_ms_64): Ditto.
10274
10275 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
10276
10277 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
10278 * coverage.c (coverage_compute_profile_id): Handle externally visible
10279 symbols.
10280
10281 2014-04-14 Martin Jambor <mjambor@suse.cz>
10282
10283 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
10284 DECL_DISREGARD_INLINE_LIMITS functions.
10285
10286 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
10287
10288 PR target/60827
10289 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
10290
10291 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
10292
10293 PR target/60827
10294 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
10295 optimize_insn_for_speed_p instead of
10296 optimize_function_for_speed_p.
10297
10298 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
10299
10300 * doc/invoke.texi (free): Document AArch64.
10301
10302 2014-04-14 Richard Biener <rguenther@suse.de>
10303
10304 PR tree-optimization/60042
10305 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
10306 (insert_into_preds_of_block): Do not prevent PHI insertion
10307 for REFERENCE exprs here ...
10308 (eliminate_dom_walker::before_dom_children): ... but prevent
10309 their use here under similar conditions when applied to the
10310 IL after PRE optimizations.
10311
10312 2014-04-14 Richard Biener <rguenther@suse.de>
10313
10314 * passes.def: Move early points-to after early SRA.
10315
10316 2014-04-14 Richard Biener <rguenther@suse.de>
10317
10318 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
10319 check for which sign-changes we allow when forwarding
10320 a converted value into a switch.
10321
10322 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
10323
10324 * stor-layout.c (place_field): Finalize non-constant offset for the
10325 field, if any.
10326
10327 2014-04-14 Richard Biener <rguenther@suse.de>
10328
10329 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
10330 as argument.
10331 (expand_switch_using_bit_tests_p): Likewise.
10332 (process_switch): Compute and pass on speed_p based on the
10333 switch stmt.
10334 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10335 optimize_bb_for_speed_p.
10336
10337 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
10338
10339 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
10340 * function.h (struct function): Rename has_force_vect_loops into
10341 has_force_vectorize_loops.
10342 * lto-streamer-in.c (input_cfg): Adjust for renaming.
10343 (input_struct_function_base): Likewise.
10344 * lto-streamer-out.c (output_cfg): Likewise.
10345 (output_struct_function_base): Likewise.
10346 * omp-low.c (expand_omp_simd): Likewise.
10347 * tree-cfg.c (move_sese_region_to_fn): Likewise.
10348 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
10349 (version_loop_for_if_conversion): Likewise.
10350 (tree_if_conversion): Likewise.
10351 (main_tree_if_conversion): Likewise.
10352 (gate_tree_if_conversion): Likewise.
10353 * tree-inline.c (copy_loops): Likewise.
10354 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
10355 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
10356 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
10357 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
10358 * tree-vectorizer.c (vectorize_loops): Likewise.
10359 * tree-vectorizer.h (unlimited_cost_model): Likewise.
10360
10361 2014-04-14 Richard Biener <rguenther@suse.de>
10362
10363 PR lto/60720
10364 * lto-streamer-out.c (wrap_refs): New function.
10365 (lto_output): Wrap symbol references in global initializes in
10366 type-preserving MEM_REFs.
10367
10368 2014-04-14 Christian Bruel <christian.bruel@st.com>
10369
10370 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
10371
10372 2014-04-14 Christian Bruel <christian.bruel@st.com>
10373
10374 * config/sh/sh.md (setmemqi): New expand pattern.
10375 * config/sh/sh.h (CLEAR_RATIO): Define.
10376 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
10377 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
10378
10379 2014-04-14 Richard Biener <rguenther@suse.de>
10380
10381 PR middle-end/55022
10382 * fold-const.c (negate_expr_p): Don't negate directional rounding
10383 division.
10384 (fold_negate_expr): Likewise.
10385
10386 2014-04-14 Richard Biener <rguenther@suse.de>
10387
10388 PR tree-optimization/59817
10389 PR tree-optimization/60453
10390 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
10391 recursion to catch all CHRECs in the scalar evolution and restrict
10392 the predicate for the remains appropriately.
10393
10394 2014-04-12 Catherine Moore <clm@codesourcery.com>
10395
10396 * config/mips/constraints.md: Add new register constraint "kb".
10397 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
10398 (*movhi_internal): Likewise.
10399 (*movqi_internal): Likewise.
10400 * config/mips/mips.h (M16_STORE_REGS): New register class.
10401 (REG_CLASS_NAMES): Add M16_STORE_REGS.
10402 (REG_CLASS_CONTENTS): Likewise.
10403 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
10404
10405 2014-04-11 Tobias Burnus <burnus@net-b.de>
10406
10407 PR c/60194
10408 * doc/invoke.texi (-Wformat-signedness): Document it.
10409 (Wformat=2): Mention that this enables -Wformat-signedness.
10410
10411 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
10412
10413 * common/config/epiphany/epiphany-common.c
10414 (epiphany_option_optimization_table): Enable section anchors by
10415 default at -O1 or higher.
10416 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
10417 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
10418 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
10419 carries no extra cost.
10420 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
10421 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
10422 * config/epiphany/predicates.md (memclob_operand): New predicate.
10423 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
10424 Use memclob_operand predicate and X constraint for operand 3.
10425
10426 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
10427
10428 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
10429 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
10430 its operands.
10431
10432 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
10433
10434 PR rtl-optimization/60651
10435 * mode-switching.c (optimize_mode_switching): Make sure to emit
10436 sets of a lower numbered entity before sets of a higher numbered
10437 entity to a mode of the same or lower priority.
10438 When creating a seginfo for a basic block that starts with a code
10439 label, move the insertion point past the code label.
10440 (new_seginfo): Document and enforce requirement that
10441 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
10442 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
10443 * doc/tm.texi: Regenerate.
10444
10445 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
10446
10447 PR target/60811
10448 * config/arc/arc.c (arc_save_restore): Fix assert typo.
10449
10450 2013-04-11 Jakub Jelinek <jakub@redhat.com>
10451
10452 * BASE-VER: Set to 4.10.0.
10453
10454 2014-04-11 Tobias Burnus <burnus@net-b.de>
10455
10456 PR other/59055
10457 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
10458 * doc/gcc.texi (Service): Update description in the @menu
10459 * doc/invoke.texi (Option Summary): Remove misplaced and
10460 duplicated @menu.
10461
10462 2014-04-11 Steve Ellcey <sellcey@mips.com>
10463 Jakub Jelinek <jakub@redhat.com>
10464
10465 PR middle-end/60556
10466 * expr.c (convert_move): Use emit_store_flag_force instead of
10467 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
10468 argument to it.
10469
10470 2014-04-11 Richard Biener <rguenther@suse.de>
10471
10472 PR middle-end/60797
10473 * varasm.c (assemble_alias): Avoid endless error reporting
10474 recursion by setting TREE_ASM_WRITTEN.
10475
10476 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10477
10478 * config/s390/s390.md: Add a splitter for NOT rtx.
10479
10480 2014-04-11 Jakub Jelinek <jakub@redhat.com>
10481
10482 PR rtl-optimization/60663
10483 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
10484
10485 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
10486 Jakub Jelinek <jakub@redhat.com>
10487
10488 PR lto/60567
10489 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
10490 flag from decl_node to node.
10491
10492 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10493
10494 PR debug/60655
10495 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
10496 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
10497 ameliorating the cases where it can be.
10498
10499 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
10500
10501 Revert
10502 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
10503
10504 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
10505 (loadsync_<mode>): Change mode.
10506 (load_quadpti, store_quadpti): New.
10507 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
10508 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
10509 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
10510
10511 2014-04-09 Cong Hou <congh@google.com>
10512
10513 PR testsuite/60773
10514 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
10515 documentation.
10516
10517 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10518
10519 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
10520 instead of vnor to exploit possible fusion opportunity in the
10521 future.
10522 (altivec_expand_vec_perm_const_le): Likewise.
10523
10524 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
10525
10526 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
10527 (loadsync_<mode>): Change mode.
10528 (load_quadpti, store_quadpti): New.
10529 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
10530 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
10531
10532 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
10533
10534 PR target/60763
10535 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
10536 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
10537 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
10538
10539 2014-04-08 Richard Biener <rguenther@suse.de>
10540
10541 PR middle-end/60706
10542 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
10543 a 64bit widest int print double-int similar to on HWI64 hosts.
10544
10545 2014-04-08 Richard Biener <rguenther@suse.de>
10546
10547 PR tree-optimization/60785
10548 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
10549 default defs properly.
10550
10551 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
10552
10553 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
10554 (Weffc++): Likewise.
10555
10556 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
10557
10558 * ipa-devirt.c (maybe_record_node): When node is not recorded,
10559 set completep to false rather than true.
10560
10561 2014-04-07 Douglas B Rupp <rupp@adacore.com>
10562
10563 PR target/60504
10564 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
10565 ARM_TARGET2_DWARF_FORMAT.
10566
10567 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
10568
10569 PR target/60609
10570 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
10571 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
10572 ADDR_DIFF_VEC.
10573
10574 2014-04-07 Richard Biener <rguenther@suse.de>
10575
10576 PR tree-optimization/60766
10577 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
10578 (may_eliminate_iv): Convert cand_value_at result to desired type.
10579
10580 2014-04-07 Jason Merrill <jason@redhat.com>
10581
10582 PR c++/60731
10583 * common.opt (-fno-gnu-unique): Add.
10584 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
10585
10586 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10587
10588 * haifa-sched.c: Fix outdated function reference and minor
10589 grammar errors in introductory comment.
10590
10591 2014-04-07 Richard Biener <rguenther@suse.de>
10592
10593 PR middle-end/60750
10594 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
10595 for noreturn calls.
10596 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
10597
10598 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
10599
10600 PR debug/55794
10601 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
10602 size accounting for thunks.
10603 (pa_asm_output_mi_thunk): Use final_start_function() and
10604 final_end_function() to output function start and end directives.
10605
10606 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
10607
10608 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
10609 device specific ISA/ feature information. Remove short_sp and
10610 errata_skip ds. Add avr_device_specific_features enum to have device
10611 specific info.
10612 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
10613 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
10614 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
10615 updated device specific info.
10616 * config/avr/avr-mcus.def: Merge device specific details to
10617 dev_attribute field.
10618 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
10619 errata_skip.
10620 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
10621 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
10622 assembler if RMW isa supported by current device.
10623 * config/avr/genmultilib.awk: Update as device info structure changed.
10624 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
10625
10626 2014-04-04 Cong Hou <congh@google.com>
10627
10628 PR tree-optimization/60656
10629 * tree-vect-stmts.c (supportable_widening_operation):
10630 Fix a bug that elements in a vector with vect_used_by_reduction
10631 property are incorrectly reordered when the operation on it is not
10632 consistant with the one in reduction operation.
10633
10634 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
10635
10636 PR rtl-optimization/60155
10637 * gcse.c (record_set_data): New function.
10638 (single_set_gcse): New function.
10639 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
10640 (hoist_code): Likewise.
10641 (get_pressure_class_and_nregs): Likewise.
10642
10643 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
10644
10645 * explow.c (probe_stack_range): Emit a final optimization blockage.
10646
10647 2014-04-04 Anthony Green <green@moxielogic.com>
10648
10649 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
10650 typos.
10651
10652 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
10653
10654 PR ipa/59626
10655 * lto-cgraph.c (input_overwrite_node): Check that partitioning
10656 flags are set only during streaming.
10657 * ipa.c (process_references, walk_polymorphic_call_targets,
10658 symtab_remove_unreachable_nodes): Drop bodies of always inline
10659 after early inlining.
10660 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
10661
10662 2014-04-04 Jakub Jelinek <jakub@redhat.com>
10663 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10664
10665 PR debug/60655
10666 * dwarf2out.c (const_ok_for_output_1): Reject expressions
10667 containing a NOT.
10668
10669 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10670
10671 PR bootstrap/60743
10672 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
10673 duration.
10674 (cortex_a53_fdivd): Likewise.
10675
10676 2014-04-04 Martin Jambor <mjambor@suse.cz>
10677
10678 PR ipa/60640
10679 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
10680 Adjust all callers.
10681 * cgraph.c (clone_of_p): Also return true if thunks match.
10682 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
10683 cgraph_function_or_thunk_node and an obsolete comment.
10684 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
10685 file.
10686 (build_function_decl_skip_args): Likewise.
10687 (set_new_clone_decl_and_node_flags): New function.
10688 (duplicate_thunk_for_node): Likewise.
10689 (redirect_edge_duplicating_thunks): Likewise.
10690 (cgraph_clone_node): New parameter args_to_skip, pass it to
10691 redirect_edge_duplicating_thunks which is called instead of
10692 cgraph_redirect_edge_callee.
10693 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
10694 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
10695
10696 2014-04-04 Jeff Law <law@redhat.com>
10697
10698 PR target/60657
10699 * config/arm/predicates.md (const_int_I_operand): New predicate.
10700 (const_int_M_operand): Similarly.
10701 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
10702 const_int_operand.
10703 (insv_t2, extv_reg, extzv_t2): Likewise.
10704 (load_multiple_with_writeback): Similarly for const_int_I_operand.
10705 (pop_multiple_with_writeback_and_return): Likewise.
10706 (vfp_pop_multiple_with_writeback): Likewise
10707
10708 2014-04-04 Richard Biener <rguenther@suse.de>
10709
10710 PR ipa/60746
10711 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
10712 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
10713 non-GIMPLE_LABELs.
10714 * gimplify.h (gimple_add_tmp_var_fn): Declare.
10715 * gimplify.c (gimple_add_tmp_var_fn): New function.
10716 * gimple-expr.h (create_tmp_reg_fn): Declare.
10717 * gimple-expr.c (create_tmp_reg_fn): New function.
10718 * gimple-low.c (record_vars_into): Don't change cfun.
10719 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
10720 code generation without cfun.
10721
10722 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
10723
10724 PR bootstrap/60719
10725 * Makefile.in (install-driver): Fix shell scripting.
10726
10727 2014-04-03 Cong Hou <congh@google.com>
10728
10729 PR tree-optimization/60505
10730 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
10731 threshold of number of iterations below which no vectorization
10732 will be done.
10733 * tree-vect-loop.c (new_loop_vec_info):
10734 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
10735 * tree-vect-loop.c (vect_analyze_loop_operations):
10736 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
10737 * tree-vect-loop.c (vect_transform_loop):
10738 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
10739 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
10740 of iterations of the loop and see if we should build the epilogue.
10741
10742 2014-04-03 Richard Biener <rguenther@suse.de>
10743
10744 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
10745 (streamer_tree_cache_create): Adjust.
10746 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
10747 to allow optional nodes array.
10748 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
10749 (streamer_tree_cache_append): Likewise.
10750 (streamer_tree_cache_create): Create nodes array optionally
10751 as specified by parameter.
10752 * lto-streamer-out.c (create_output_block): Avoid maintaining
10753 the node array in the writer cache.
10754 (DFS_write_tree): Remove assertion.
10755 (produce_asm_for_decls): Free the out decl state hash table early.
10756 * lto-streamer-in.c (lto_data_in_create): Adjust for
10757 streamer_tree_cache_create prototype change.
10758
10759 2014-04-03 Richard Biener <rguenther@suse.de>
10760
10761 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
10762 set TREE_CHAIN to NULL_TREE.
10763
10764 2014-04-03 Richard Biener <rguenther@suse.de>
10765
10766 PR tree-optimization/60740
10767 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
10768 over all GIMPLE_COND operands.
10769
10770 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
10771
10772 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
10773 (Weffc++): Remove Scott's numbering, merge lists and reference
10774 Wnon-virtual-dtor.
10775
10776 2014-04-03 Nick Clifton <nickc@redhat.com>
10777
10778 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
10779 properly.
10780
10781 2014-04-03 Martin Jambor <mjambor@suse.cz>
10782
10783 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
10784 mention gcc_unreachable before failing.
10785 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
10786 removed symbols.
10787
10788 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
10789
10790 PR ipa/60659
10791 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
10792 inconsistent code and instead mark the context inconsistent.
10793 (possible_polymorphic_call_targets): For inconsistent contexts
10794 return empty complete list.
10795
10796 2014-04-02 Anthony Green <green@moxielogic.com>
10797
10798 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
10799 (extendqisi2, extendhisi2): Define.
10800 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
10801 (WCHAR_TYPE): Change to unsigned int.
10802
10803 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10804
10805 PR tree-optimization/60733
10806 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
10807 insertion point for PHI candidates to be the end of the feeding
10808 block for the PHI argument.
10809
10810 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
10811
10812 PR rtl-optimization/60650
10813 * lra-constraints.c (process_alt_operands): Decrease reject for
10814 earlyclobber matching.
10815
10816 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10817
10818 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
10819
10820 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10821
10822 * config/spu/spu.c (pad_bb): Do not crash when the last
10823 insn is CODE_FOR_blockage.
10824
10825 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10826
10827 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
10828 lies outside the target mode.
10829
10830 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10831
10832 PR target/60735
10833 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
10834 software floating point or no floating point registers, do not
10835 allow any type in the FPRs. Eliminate a test for SPE SIMD types
10836 in GPRs that occurs after we tested for GPRs that would never be
10837 true.
10838
10839 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
10840 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
10841 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
10842 specifically allow DDmode, since that does not use the SPE SIMD
10843 instructions.
10844
10845 2014-04-02 Richard Biener <rguenther@suse.de>
10846
10847 PR middle-end/60729
10848 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
10849 MODE_INTs. Properly use negv_optab.
10850 (expand_abs): Likewise.
10851
10852 2014-04-02 Richard Biener <rguenther@suse.de>
10853
10854 PR bootstrap/60719
10855 * Makefile.in (install-driver): Guard extra installs with special
10856 names properly.
10857
10858 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
10859
10860 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
10861 Document vec_vgbbd.
10862
10863 2014-04-01 Richard Henderson <rth@redhat.com>
10864
10865 PR target/60704
10866 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
10867 alternative enabled before register allocation.
10868
10869 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
10870
10871 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
10872 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
10873 typo.
10874 (nios2_large_got_address): Remove unneeded 'sym' parameter.
10875 (nios2_got_address): Update nios2_large_got_address call site.
10876 (nios2_delegitimize_address): New function.
10877 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
10878 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
10879 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
10880
10881 2014-04-01 Martin Husemann <martin@duskware.de>
10882
10883 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
10884 for -mabi=32.
10885
10886 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
10887
10888 PR rtl-optimization/60604
10889 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
10890 check from register_operand.
10891 (register_operand): Redefine in terms of general_operand.
10892 (nonmemory_operand): Use register_operand for the non-constant cases.
10893
10894 2014-04-01 Richard Biener <rguenther@suse.de>
10895
10896 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
10897
10898 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
10899
10900 * doc/invoke.texi (mapp-regs): Clarify.
10901
10902 2014-03-31 Ulrich Drepper <drepper@gmail.com>
10903
10904 * config/i386/avx512fintrin.h (__v32hi): Define type.
10905 (__v64qi): Likewise.
10906 (_mm512_set1_epi8): Define.
10907 (_mm512_set1_epi16): Define.
10908 (_mm512_set4_epi32): Define.
10909 (_mm512_set4_epi64): Define.
10910 (_mm512_set4_pd): Define.
10911 (_mm512_set4_ps): Define.
10912 (_mm512_setr4_epi64): Define.
10913 (_mm512_setr4_epi32): Define.
10914 (_mm512_setr4_pd): Define.
10915 (_mm512_setr4_ps): Define.
10916 (_mm512_setzero_epi32): Define.
10917
10918 2014-03-31 Martin Jambor <mjambor@suse.cz>
10919
10920 PR middle-end/60647
10921 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
10922 callsite_arguments_match_p. Updated all callers. Also check types of
10923 corresponding formal parameters and actual arguments.
10924 (not_all_callers_have_enough_arguments_p) Renamed to
10925 some_callers_have_mismatched_arguments_p.
10926
10927 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
10928
10929 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
10930
10931 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
10932
10933 PR target/60034
10934 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
10935 section anchor.
10936
10937 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
10938
10939 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
10940 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
10941 Split out
10942 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
10943 Use FMAMODE_NOVF512 mode iterator.
10944 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
10945 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
10946 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
10947 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
10948 Split out
10949 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
10950 Use VF_128_256 mode iterator.
10951 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
10952 Ditto.
10953
10954 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
10955
10956 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
10957 static chain if needed.
10958
10959 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
10960
10961 PR target/60697
10962 * lra-constraints.c (index_part_to_reg): New.
10963 (process_address): Use it.
10964
10965 2014-03-27 Jeff Law <law@redhat.com>
10966 Jakub Jelinek <jakub@redhat.com>
10967
10968 PR target/60648
10969 * expr.c (do_tablejump): Use simplify_gen_binary rather than
10970 gen_rtx_{PLUS,MULT} to build up the address expression.
10971
10972 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
10973 creating non-canonical RTL.
10974
10975 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
10976
10977 PR ipa/60243
10978 * ipa-inline.c (want_inline_small_function_p): Short circuit large
10979 functions; reorganize to make cheap checks first.
10980 (inline_small_functions): Do not estimate growth when dumping;
10981 it is expensive.
10982 * ipa-inline.h (inline_summary): Add min_size.
10983 (growth_likely_positive): New function.
10984 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
10985 (set_cond_stmt_execution_predicate): Cleanup.
10986 (estimate_edge_size_and_time): Compute min_size.
10987 (estimate_calls_size_and_time): Likewise.
10988 (estimate_node_size_and_time): Likewise.
10989 (inline_update_overall_summary): Update min_size.
10990 (do_estimate_edge_time): Likewise.
10991 (do_estimate_edge_size): Update.
10992 (do_estimate_edge_hints): Update.
10993 (growth_likely_positive): New function.
10994
10995 2014-03-28 Jakub Jelinek <jakub@redhat.com>
10996
10997 PR target/60693
10998 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
10999 also if addr has VOIDmode.
11000
11001 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11002
11003 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
11004 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
11005 Declare extern.
11006 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
11007 instructions as well as AdvancedSIMD loads.
11008
11009 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11010
11011 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
11012 Use crypto_aese type.
11013 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
11014 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
11015 crypto_aese, crypto_aesmc. Move to types.md.
11016 * config/arm/types.md (crypto_aes): Split into crypto_aese,
11017 crypto_aesmc.
11018 * config/arm/iterators.md (crypto_type): Likewise.
11019
11020 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
11021
11022 * cgraph.c: Include expr.h and tree-dfa.h.
11023 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
11024 remove LHS.
11025
11026 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
11027
11028 PR target/60675
11029 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
11030 regs from checking multi-reg pseudos.
11031
11032 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11033
11034 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
11035
11036 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11037
11038 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
11039 if it would clobber the stack pointer, even temporarily.
11040
11041 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
11042
11043 * mode-switching.c: Make small adjustments to the top comment.
11044
11045 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
11046
11047 * config/rs6000/constraints.md (wD constraint): New constraint to
11048 match the constant integer to get the top DImode/DFmode out of a
11049 vector in a VSX register.
11050
11051 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
11052 match the constant integer to get the top DImode/DFmode out of a
11053 vector in a VSX register.
11054
11055 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
11056 for ISA 2.07.
11057
11058 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11059 vbpermq builtins.
11060
11061 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
11062 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
11063
11064 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
11065 Optimize vec_extract of 64-bit values, where the value being
11066 extracted is in the top word, where we can use scalar
11067 instructions. Add direct move and store support. Combine the big
11068 endian/little endian vector select load support into a single insn.
11069 (vsx_extract_<mode>_internal1): Likewise.
11070 (vsx_extract_<mode>_internal2): Likewise.
11071 (vsx_extract_<mode>_load): Likewise.
11072 (vsx_extract_<mode>_store): Likewise.
11073 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
11074 combined into vsx_extract_<mode>_load.
11075 (vsx_extract_<mode>_one_le): Likewise.
11076
11077 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
11078 define the top 64-bit vector element.
11079
11080 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
11081 constraint.
11082
11083 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11084 Document vec_vbpermq builtin.
11085
11086 PR target/60672
11087 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
11088 enable use of xxsldwi and xxpermdi builtin functions.
11089 (vec_xxpermdi): Likewise.
11090
11091 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11092 Document use of vec_xxsldwi and vec_xxpermdi builtins.
11093
11094 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
11095
11096 PR rtl-optimization/60650
11097 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
11098 first_p. Use it.
11099 (find_spills_for): New.
11100 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
11101 Spill all pseudos on the second iteration.
11102
11103 2014-03-27 Marek Polacek <polacek@redhat.com>
11104
11105 PR c/50347
11106 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
11107 types.
11108
11109 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11110
11111 * config/s390/s390.c (s390_can_use_return_insn): Check for
11112 call-saved FPRs on 31 bit.
11113
11114 2014-03-27 Jakub Jelinek <jakub@redhat.com>
11115
11116 PR middle-end/60682
11117 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
11118 if they need regimplification, just drop them instead of
11119 calling gimple_regimplify_operands on them.
11120
11121 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
11122
11123 PR target/60580
11124 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
11125 (aarch64_frame_pointer_required): Adjust logic.
11126 (aarch64_can_eliminate): Adjust logic.
11127 (aarch64_override_options_after_change): Adjust logic.
11128
11129 2014-03-27 Dehao Chen <dehao@google.com>
11130
11131 * ipa-inline.c (early_inliner): Update node's inline info.
11132
11133 2014-03-26 Dehao Chen <dehao@google.com>
11134
11135 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
11136 compiler inserted conditional jumps for NAN float check.
11137
11138 2014-03-26 Jakub Jelinek <jakub@redhat.com>
11139
11140 * ubsan.h (ubsan_create_data): Change second argument's type
11141 to const location_t *.
11142 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
11143 _("<unknown>").
11144 (ubsan_create_data): Change second argument to const location_t *PLOC.
11145 Create Loc field whenever PLOC is non-NULL.
11146 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
11147 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
11148 callers.
11149
11150 PR other/59545
11151 * real.c (real_to_integer2): Change type of low to UHWI.
11152
11153 2014-03-26 Tobias Burnus <burnus@net-b.de>
11154
11155 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
11156 (CILK_SELF_SPECS): New define.
11157 (driver_self_specs): Use it.
11158
11159 2014-03-26 Richard Biener <rguenther@suse.de>
11160
11161 * tree-pretty-print.c (percent_K_format): Implement special
11162 case for LTO and its stripped down BLOCK tree.
11163
11164 2014-03-26 Jakub Jelinek <jakub@redhat.com>
11165
11166 PR sanitizer/60636
11167 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
11168
11169 * tree-vrp.c (simplify_internal_call_using_ranges): If only
11170 one range is range_int_cst_p, but not both, at least optimize
11171 addition/subtraction of 0 and multiplication by 0 or 1.
11172 * gimple-fold.c (gimple_fold_call): Fold
11173 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
11174 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
11175 INTEGER_CSTs, try to fold at least x * 0 and y - y.
11176
11177 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
11178
11179 PR rtl-optimization/60452
11180 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
11181 <case REG>: Return 1 for invalid offsets from the frame pointer.
11182
11183 2014-03-26 Marek Polacek <polacek@redhat.com>
11184
11185 PR c/37428
11186 * doc/extend.texi (C Extensions): Mention variable-length arrays in
11187 a structure/union.
11188
11189 2014-03-26 Marek Polacek <polacek@redhat.com>
11190
11191 PR c/39525
11192 * doc/extend.texi (Designated Inits): Describe what happens to omitted
11193 field members.
11194
11195 2014-03-26 Marek Polacek <polacek@redhat.com>
11196
11197 PR other/59545
11198 * ira-color.c (update_conflict_hard_regno_costs): Perform the
11199 multiplication in unsigned type.
11200
11201 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
11202
11203 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
11204
11205 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
11206
11207 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
11208
11209 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
11210
11211 PR ipa/60315
11212 * cif-code.def (UNREACHABLE) New code.
11213 * ipa-inline.c (inline_small_functions): Skip edges to
11214 __builtlin_unreachable.
11215 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
11216 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
11217 predicate to __bulitin_unreachable.
11218 (set_cond_stmt_execution_predicate): Fix issue when
11219 invert_tree_comparison returns ERROR_MARK.
11220 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
11221 propagate to inline clones.
11222 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
11223 to unreachable.
11224 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
11225 * cgraphclones.c (cgraph_clone_node): If call destination is already
11226 ureachable, do not redirect it back.
11227 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
11228 unreachable.
11229
11230 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
11231
11232 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
11233 Do not modify inline clones.
11234
11235 2014-03-25 Jakub Jelinek <jakub@redhat.com>
11236
11237 * config/i386/i386.md (general_sext_operand): New mode attr.
11238 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
11239 don't generate (sign_extend (const_int)).
11240 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
11241 operands[2]. Use We constraint instead of <i> and
11242 <general_sext_operand> predicate instead of <general_operand>.
11243 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
11244 * config/i386/constraints.md (We): New constraint.
11245 * config/i386/predicates.md (x86_64_sext_operand,
11246 sext_operand): New predicates.
11247
11248 2014-03-25 Martin Jambor <mjambor@suse.cz>
11249
11250 PR ipa/60600
11251 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
11252 inconsistent devirtualizations to __builtin_unreachable.
11253
11254 2014-03-25 Marek Polacek <polacek@redhat.com>
11255
11256 PR c/35449
11257 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
11258
11259 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
11260
11261 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
11262 order of elements for big-endian.
11263
11264 2014-03-25 Richard Biener <rguenther@suse.de>
11265
11266 PR middle-end/60635
11267 * gimplify-me.c (gimple_regimplify_operands): Update the
11268 re-gimplifed stmt.
11269
11270 2014-03-25 Martin Jambor <mjambor@suse.cz>
11271
11272 PR ipa/59176
11273 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
11274 (lto_output_varpool_node): Likewise.
11275 (input_overwrite_node): Likewise.
11276 (input_varpool_node): Likewise.
11277
11278 2014-03-25 Richard Biener <rguenther@suse.de>
11279
11280 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
11281 (run_gcc): Likewise.
11282
11283 2014-03-25 Jakub Jelinek <jakub@redhat.com>
11284
11285 * combine.c (simplify_compare_const): Add MODE argument.
11286 Handle mode_width 0 as very large mode_width.
11287 (try_combine, simplify_comparison): Adjust callers.
11288
11289 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
11290 type to avoid signed integer overflow.
11291 * explow.c (plus_constant): Likewise.
11292
11293 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
11294
11295 * doc/generic.texi: Correct typos.
11296
11297 2014-03-24 Tobias Burnus <burnus@net-b.de>
11298
11299 * doc/invoke.texi (-flto): Expand section about
11300 using static libraries with LTO.
11301
11302 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11303
11304 PR rtl-optimization/60501
11305 * optabs.def (addptr3_optab): New optab.
11306 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
11307 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
11308 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
11309
11310 * lra.c (emit_add3_insn): Use the addptr pattern if available.
11311
11312 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
11313
11314 2014-03-24 Ulrich Drepper <drepper@gmail.com>
11315
11316 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
11317 _mm512_set1_pd.
11318
11319 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
11320 (_mm256_undefined_ps): Define.
11321 (_mm256_undefined_pd): Define.
11322 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
11323 (_mm_undefined_pd): Define.
11324 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
11325 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
11326 (_mm512_undefined_ps): Define.
11327 (_mm512_undefined_pd): Define.
11328 Use _mm*_undefined_*.
11329 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
11330
11331 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
11332
11333 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
11334 (lshr_simd): DI mode added.
11335 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
11336 (aarch64_ushr_simddi): Likewise.
11337 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
11338 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
11339 (vshrd_n_u64): Likewise.
11340
11341 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11342
11343 * Makefile.in (s-macro_list): Depend on cc1.
11344
11345 2014-03-23 Teresa Johnson <tejohnson@google.com>
11346
11347 * ipa-utils.c (ipa_print_order): Use specified dump file.
11348
11349 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
11350
11351 PR rtl-optimization/60601
11352 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
11353
11354 * gcc.c (eval_spec_function): Initialize save_growing_value.
11355
11356 2014-03-22 Jakub Jelinek <jakub@redhat.com>
11357
11358 PR sanitizer/60613
11359 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
11360 code == MINUS_EXPR, never swap op0 with op1.
11361
11362 * toplev.c (init_local_tick): Avoid signed integer multiplication
11363 overflow.
11364 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
11365 shift by first operand's bitsize.
11366
11367 2014-03-21 Jakub Jelinek <jakub@redhat.com>
11368
11369 PR target/60610
11370 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
11371 redefine to 1 or 0.
11372 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
11373 TARGET_ISA_64BIT_P(x).
11374
11375 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11376
11377 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
11378 pattern for vector nor instead of subtract from splat(-1).
11379 (altivec_expand_vec_perm_const_le): Likewise.
11380
11381 2014-03-21 Richard Henderson <rth@twiddle.net>
11382
11383 PR target/60598
11384 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
11385 related insns after epilogue_completed.
11386
11387 2014-03-21 Martin Jambor <mjambor@suse.cz>
11388
11389 PR ipa/59176
11390 * cgraph.h (symtab_node): New flag body_removed.
11391 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
11392 when removing bodies.
11393 * symtab.c (dump_symtab_base): Dump body_removed flag.
11394 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
11395 had their bodies removed.
11396
11397 2014-03-21 Martin Jambor <mjambor@suse.cz>
11398
11399 PR ipa/60419
11400 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
11401 in the border.
11402
11403 2014-03-21 Richard Biener <rguenther@suse.de>
11404
11405 PR tree-optimization/60577
11406 * tree-core.h (struct tree_base): Document nothrow_flag use
11407 in DECL_NONALIASED.
11408 * tree.h (DECL_NONALIASED): New.
11409 (may_be_aliased): Adjust.
11410 * coverage.c (build_var): Set DECL_NONALIASED.
11411
11412 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
11413
11414 * expr.c (expand_expr_real_1): Remove outdated comment.
11415
11416 2014-03-20 Jakub Jelinek <jakub@redhat.com>
11417
11418 PR middle-end/60597
11419 * ira.c (adjust_cleared_regs): Call copy_rtx on
11420 *reg_equiv[REGNO (loc)].src_p before passing it to
11421 simplify_replace_fn_rtx.
11422
11423 PR target/60568
11424 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
11425 into CONST, put pic register as first operand of PLUS. Use
11426 gen_const_mem for both 32-bit and 64-bit PIC got loads.
11427
11428 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11429
11430 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
11431
11432 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
11433
11434 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
11435 around for store forwarding issue in the FPU on the UT699.
11436 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
11437 loads and operations if -mfix-ut699 is specified.
11438 (divtf3_hq): Tweak attribute.
11439 (sqrttf2_hq): Likewise.
11440
11441 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
11442
11443 * calls.c (store_one_arg): Remove incorrect const qualification on the
11444 type of the temporary.
11445 * cfgexpand.c (expand_return): Likewise.
11446 * expr.c (expand_constructor): Likewise.
11447 (expand_expr_real_1): Likewise.
11448
11449 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
11450
11451 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
11452 of parts.
11453
11454 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11455
11456 PR target/60039
11457 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
11458
11459 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
11460
11461 * config/arm/aarch-common-protos.h
11462 (alu_cost_table): Fix spelling of "extend".
11463 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
11464
11465 2014-03-19 Richard Biener <rguenther@suse.de>
11466
11467 PR middle-end/60553
11468 * tree-core.h (tree_type_common): Re-order pointer members
11469 to reduce recursion depth during GC walks.
11470
11471 2014-03-19 Marek Polacek <polacek@redhat.com>
11472
11473 PR sanitizer/60569
11474 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
11475 before accessing it.
11476
11477 2014-03-19 Richard Biener <rguenther@suse.de>
11478
11479 PR lto/59543
11480 * lto-streamer-in.c (input_function): In WPA stage do not drop
11481 debug stmts.
11482
11483 2014-03-19 Jakub Jelinek <jakub@redhat.com>
11484
11485 PR tree-optimization/60559
11486 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
11487 with build_zero_cst assignment.
11488
11489 2014-03-18 Kai Tietz <ktietz@redhat.com>
11490
11491 PR rtl-optimization/56356
11492 * sdbout.c (sdbout_parms): Verify that parms'
11493 incoming argument is valid.
11494 (sdbout_reg_parms): Likewise.
11495
11496 2014-03-18 Richard Henderson <rth@redhat.com>
11497
11498 PR target/60562
11499 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
11500 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
11501 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
11502
11503 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
11504
11505 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
11506 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
11507 Italicize plugin event names in description. Explain that
11508 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
11509 Remind that no GCC functions should be called after PLUGIN_FINISH.
11510 Explain what pragmas with expansion are.
11511
11512 2014-03-18 Martin Liska <mliska@suse.cz>
11513
11514 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
11515 gimple call statement is update.
11516 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
11517 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
11518
11519 2014-03-18 Jakub Jelinek <jakub@redhat.com>
11520
11521 PR sanitizer/60557
11522 * ubsan.c (ubsan_instrument_unreachable): Call
11523 initialize_sanitizer_builtins.
11524 (ubsan_pass): Likewise.
11525
11526 PR sanitizer/60535
11527 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
11528 varpool_finalize_decl instead of rest_of_decl_compilation.
11529
11530 2014-03-18 Richard Biener <rguenther@suse.de>
11531
11532 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
11533 by using bitmap_and_compl instead of bitmap_and_compl_into.
11534 (df_rd_transfer_function): Likewise.
11535
11536 2014-03-18 Richard Biener <rguenther@suse.de>
11537
11538 * doc/lto.texi (fresolution): Fix typo.
11539
11540 2014-03-18 Richard Biener <rguenther@suse.de>
11541
11542 * doc/invoke.texi (flto): Update for changes in 4.9.
11543
11544 2014-03-18 Richard Biener <rguenther@suse.de>
11545
11546 * doc/loop.texi: Remove section on the removed lambda framework.
11547 Update loop docs with recent changes in preserving loop structure.
11548
11549 2014-03-18 Richard Biener <rguenther@suse.de>
11550
11551 * doc/lto.texi (-fresolution): Document.
11552
11553 2014-03-18 Richard Biener <rguenther@suse.de>
11554
11555 * doc/contrib.texi: Adjust my name.
11556
11557 2014-03-18 Jakub Jelinek <jakub@redhat.com>
11558
11559 PR ipa/58721
11560 * internal-fn.c: Include diagnostic-core.h.
11561 (expand_BUILTIN_EXPECT): New function.
11562 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
11563 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
11564 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
11565 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
11566 IFN_BUILTIN_EXPECT.
11567 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
11568 Revert 3 argument __builtin_expect code.
11569 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
11570 * gimple-fold.c (gimple_fold_call): Likewise.
11571 * tree.h (fold_builtin_expect): New prototype.
11572 * builtins.c (build_builtin_expect_predicate): Add predictor
11573 argument, if non-NULL, create 3 argument __builtin_expect.
11574 (fold_builtin_expect): No longer static. Add ARG2 argument,
11575 pass it through to build_builtin_expect_predicate.
11576 (fold_builtin_2): Adjust caller.
11577 (fold_builtin_3): Handle BUILT_IN_EXPECT.
11578 * internal-fn.def (BUILTIN_EXPECT): New.
11579
11580 2014-03-18 Tobias Burnus <burnus@net-b.de>
11581
11582 PR ipa/58721
11583 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
11584 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
11585 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
11586
11587 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
11588
11589 PR ipa/58721
11590 * predict.c (combine_predictions_for_bb): Fix up formatting.
11591 (expr_expected_value_1, expr_expected_value): Add predictor argument,
11592 fill what it points to if non-NULL.
11593 (tree_predict_by_opcode): Adjust caller, use the predictor.
11594 * predict.def (PRED_COMPARE_AND_SWAP): Add.
11595
11596 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
11597
11598 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
11599 proper constant for the store mode.
11600
11601 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
11602
11603 * symtab.c (change_decl_assembler_name): Fix transparent alias
11604 chain construction.
11605
11606 2014-03-16 Renlin Li <Renlin.Li@arm.com>
11607
11608 * config/aarch64/aarch64.c: Correct the comments about the
11609 aarch64 stack layout.
11610
11611 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
11612
11613 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
11614 check for GF_OMP_FOR_KIND_FOR.
11615
11616 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
11617
11618 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
11619 ymm and zmm register names.
11620
11621 2014-03-17 Jakub Jelinek <jakub@redhat.com>
11622
11623 PR target/60516
11624 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
11625 note creation for the 2010-08-31 changes.
11626
11627 2014-03-17 Marek Polacek <polacek@redhat.com>
11628
11629 PR middle-end/60534
11630 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
11631 as -fno-tree-loop-vectorize.
11632 (expand_omp_simd): Likewise.
11633
11634 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
11635
11636 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
11637 (eligible_for_call_delay): New prototype.
11638 * config/sparc/sparc.c (tls_call_delay): Rename into...
11639 (eligible_for_call_delay): ...this. Return false if the instruction
11640 cannot be put in the delay slot of a branch.
11641 (eligible_for_restore_insn): Simplify.
11642 (eligible_for_return_delay): Return false if the instruction cannot be
11643 put in the delay slot of a branch and simplify.
11644 (eligible_for_sibcall_delay): Return false if the instruction cannot be
11645 put in the delay slot of a branch.
11646 * config/sparc/sparc.md (fix_ut699): New attribute.
11647 (tls_call_delay): Delete.
11648 (in_call_delay): Reimplement.
11649 (eligible_for_sibcall_delay): Rename into...
11650 (in_sibcall_delay): ...this.
11651 (eligible_for_return_delay): Rename into...
11652 (in_return_delay): ...this.
11653 (in_branch_delay): Reimplement.
11654 (in_uncond_branch_delay): Delete.
11655 (in_annul_branch_delay): Delete.
11656
11657 2014-03-14 Richard Henderson <rth@redhat.com>
11658
11659 PR target/60525
11660 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
11661 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
11662 (*floathi<X87MODEF>2_i387_with_temp): Remove.
11663 (floathi splitters): Remove.
11664 (float<SWI48x>xf2): New pattern.
11665 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
11666 code that tried to handle DImode for 32-bit, but which was excluded
11667 by the pattern's condition. Drop allocation of stack temporary.
11668 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
11669 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
11670 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
11671 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
11672 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
11673 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
11674 (*float<SWI48><MODEF>2_sse_interunit): Remove.
11675 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
11676 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
11677 (*float<SWI48x><X87MODEF>2_i387): Remove.
11678 (all float _with_temp splitters): Remove.
11679 (*float<SWI48x><MODEF>2_i387): New pattern.
11680 (*float<SWI48><MODEF>2_sse): New pattern.
11681 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
11682 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
11683
11684 2014-03-14 Jakub Jelinek <jakub@redhat.com>
11685 Marek Polacek <polacek@redhat.com>
11686
11687 PR middle-end/60484
11688 * common.opt (dump_base_name_prefixed): New Variable.
11689 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
11690 if x_dump_base_name_prefixed is already set, set it at the end.
11691
11692 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
11693
11694 PR rtl-optimization/60508
11695 * lra-constraints.c (get_reload_reg): Add new parameter
11696 in_subreg_p.
11697 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
11698 Pass the new parameter values.
11699
11700 2014-03-14 Richard Biener <rguenther@suse.de>
11701
11702 * common.opt: Revert unintented changes from r205065.
11703 * opts.c: Likewise.
11704
11705 2014-03-14 Richard Biener <rguenther@suse.de>
11706
11707 PR middle-end/60518
11708 * cfghooks.c (split_block): Properly adjust all loops the
11709 block was a latch of.
11710
11711 2014-03-14 Martin Jambor <mjambor@suse.cz>
11712
11713 PR lto/60461
11714 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
11715 and simplify it.
11716
11717 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
11718
11719 PR target/59396
11720 * config/avr/avr.c (avr_set_current_function): Pass function name
11721 through default_strip_name_encoding before sanity checking instead
11722 of skipping the first char of the assembler name.
11723
11724 2014-03-13 Richard Henderson <rth@redhat.com>
11725
11726 PR debug/60438
11727 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
11728 (ix86_force_to_memory, ix86_free_from_memory): Remove.
11729 * config/i386/i386-protos.h: Likewise.
11730 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
11731 in the expander instead of a splitter.
11732 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
11733 any possibility of requiring a memory.
11734 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
11735 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
11736 (fp branch splitters): Update for ix86_split_fp_branch.
11737 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
11738 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
11739 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
11740 (*fop_<MODEF>_2_i387): Remove f/r alternative.
11741 (*fop_<MODEF>_3_i387): Likewise.
11742 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
11743 (splitters for the fop_* register patterns): Remove.
11744 (fscalexf4_i387): Rename from *fscalexf4_i387.
11745 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
11746
11747 2014-03-13 Jakub Jelinek <jakub@redhat.com>
11748
11749 PR tree-optimization/59779
11750 * tree-dfa.c (get_ref_base_and_extent): Use double_int
11751 type for bitsize and maxsize instead of HOST_WIDE_INT.
11752
11753 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
11754
11755 PR rtl-optimization/57320
11756 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
11757 the CFG after thread_prologue_and_epilogue_insns.
11758
11759 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
11760
11761 PR rtl-optimization/57189
11762 * lra-constraints.c (process_alt_operands): Disfavor spilling
11763 vector pseudos.
11764
11765 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
11766
11767 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
11768
11769 2014-03-13 Jakub Jelinek <jakub@redhat.com>
11770
11771 PR tree-optimization/59025
11772 PR middle-end/60418
11773 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
11774 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
11775
11776 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
11777
11778 PR target/60486
11779 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
11780 calls of avr_out_plus_1.
11781
11782 2014-03-13 Bin Cheng <bin.cheng@arm.com>
11783
11784 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
11785 BB's single pred and update the father loop's latch info later.
11786
11787 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
11788
11789 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
11790 (VEC_M): Likewise.
11791 (VEC_N): Likewise.
11792 (VEC_R): Likewise.
11793 (VEC_base): Likewise.
11794 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
11795 registers, we need to swap double words in little endian mode.
11796
11797 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
11798 to be a container mode for 128-bit integer operations added in ISA
11799 2.07. Unlike TImode and PTImode, the preferred register set is
11800 the Altivec/VMX registers for the 128-bit operations.
11801
11802 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
11803 declarations.
11804 (rs6000_split_128bit_ok_p): Likewise.
11805
11806 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
11807 macros for creating ISA 2.07 normal and overloaded builtin
11808 functions with 3 arguments.
11809 (BU_P8V_OVERLOAD_3): Likewise.
11810 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
11811 for use as overloaded functions.
11812 (VPERM_1TI_UNS): Likewise.
11813 (VSEL_1TI): Likewise.
11814 (VSEL_1TI_UNS): Likewise.
11815 (ST_INTERNAL_1ti): Likewise.
11816 (LD_INTERNAL_1ti): Likewise.
11817 (XXSEL_1TI): Likewise.
11818 (XXSEL_1TI_UNS): Likewise.
11819 (VPERM_1TI): Likewise.
11820 (VPERM_1TI_UNS): Likewise.
11821 (XXPERMDI_1TI): Likewise.
11822 (SET_1TI): Likewise.
11823 (LXVD2X_V1TI): Likewise.
11824 (STXVD2X_V1TI): Likewise.
11825 (VEC_INIT_V1TI): Likewise.
11826 (VEC_SET_V1TI): Likewise.
11827 (VEC_EXT_V1TI): Likewise.
11828 (EQV_V1TI): Likewise.
11829 (NAND_V1TI): Likewise.
11830 (ORC_V1TI): Likewise.
11831 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
11832 added in ISA 2.07. Add both normal 'altivec' builtins, and the
11833 overloaded builtin.
11834 (VADDUQM): Likewise.
11835 (VSUBCUQ): Likewise.
11836 (VADDEUQM): Likewise.
11837 (VADDECUQ): Likewise.
11838 (VSUBEUQM): Likewise.
11839 (VSUBECUQ): Likewise.
11840
11841 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
11842 __int128_t and __uint128_t types.
11843 (__uint128_type): Likewise.
11844 (altivec_categorize_keyword): Add support for vector __int128_t,
11845 vector __uint128_t, vector __int128, and vector unsigned __int128
11846 as a container type for TImode operations that need to be done in
11847 VSX/Altivec registers.
11848 (rs6000_macro_to_expand): Likewise.
11849 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
11850 to support 128-bit integer instructions vaddcuq, vadduqm,
11851 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
11852 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
11853
11854 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
11855 for V1TImode, and set up preferences to use VSX/Altivec registers.
11856 Setup VSX reload handlers.
11857 (rs6000_debug_reg_global): Likewise.
11858 (rs6000_init_hard_regno_mode_ok): Likewise.
11859 (rs6000_preferred_simd_mode): Likewise.
11860 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
11861 (easy_altivec_constant): Likewise.
11862 (output_vec_const_move): Likewise.
11863 (rs6000_expand_vector_set): Convert V1TImode set and extract to
11864 simple move.
11865 (rs6000_expand_vector_extract): Likewise.
11866 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
11867 addressing.
11868 (rs6000_const_vec): Add support for V1TImode.
11869 (rs6000_emit_le_vsx_load): Swap double words when loading or
11870 storing TImode/V1TImode.
11871 (rs6000_emit_le_vsx_store): Likewise.
11872 (rs6000_emit_le_vsx_move): Likewise.
11873 (rs6000_emit_move): Add support for V1TImode.
11874 (altivec_expand_ld_builtin): Likewise.
11875 (altivec_expand_st_builtin): Likewise.
11876 (altivec_expand_vec_init_builtin): Likewise.
11877 (altivec_expand_builtin): Likewise.
11878 (rs6000_init_builtins): Add support for V1TImode type. Add
11879 support for ISA 2.07 128-bit integer builtins. Define type names
11880 for the VSX/Altivec vector types.
11881 (altivec_init_builtins): Add support for overloaded vector
11882 functions with V1TImode type.
11883 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
11884 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
11885 external function.
11886 (rs6000_split_128bit_ok_p): Likewise.
11887 (rs6000_handle_altivec_attribute): Create V1TImode from vector
11888 __int128_t and vector __uint128_t.
11889
11890 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
11891 and mode attributes.
11892 (VSX_M): Likewise.
11893 (VSX_M2): Likewise.
11894 (VSm): Likewise.
11895 (VSs): Likewise.
11896 (VSr): Likewise.
11897 (VSv): Likewise.
11898 (VS_scalar): Likewise.
11899 (VS_double): Likewise.
11900 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
11901
11902 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
11903 we support the ISA 2.07 128-bit integer arithmetic instructions.
11904 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
11905 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
11906 and TImode types for use with the builtin functions.
11907 (V1TI_type_node): Likewise.
11908 (unsigned_V1TI_type_node): Likewise.
11909 (intTI_type_internal_node): Likewise.
11910 (uintTI_type_internal_node): Likewise.
11911
11912 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
11913 128-bit builtin functions.
11914 (UNSPEC_VADDEUQM): Likewise.
11915 (UNSPEC_VADDECUQ): Likewise.
11916 (UNSPEC_VSUBCUQ): Likewise.
11917 (UNSPEC_VSUBEUQM): Likewise.
11918 (UNSPEC_VSUBECUQ): Likewise.
11919 (VM): Add V1TImode to vector mode iterators.
11920 (VM2): Likewise.
11921 (VI_unit): Likewise.
11922 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
11923 (altivec_vaddcuq): Likewise.
11924 (altivec_vsubuqm): Likewise.
11925 (altivec_vsubcuq): Likewise.
11926 (altivec_vaddeuqm): Likewise.
11927 (altivec_vaddecuq): Likewise.
11928 (altivec_vsubeuqm): Likewise.
11929 (altivec_vsubecuq): Likewise.
11930
11931 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
11932 mode iterators.
11933 (BOOL_128): Likewise.
11934 (BOOL_REGS_OUTPUT): Likewise.
11935 (BOOL_REGS_OP1): Likewise.
11936 (BOOL_REGS_OP2): Likewise.
11937 (BOOL_REGS_UNARY): Likewise.
11938 (BOOL_REGS_AND_CR0): Likewise.
11939
11940 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
11941 128-bit integer builtin support.
11942 (vec_vadduqm): Likewise.
11943 (vec_vaddecuq): Likewise.
11944 (vec_vaddeuqm): Likewise.
11945 (vec_vsubecuq): Likewise.
11946 (vec_vsubeuqm): Likewise.
11947 (vec_vsubcuq): Likewise.
11948 (vec_vsubuqm): Likewise.
11949
11950 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11951 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
11952 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
11953 128-bit integer add/subtract to ISA 2.07.
11954
11955 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
11956
11957 * config/arc/arc.c (arc_predicate_delay_insns):
11958 Fix third argument passed to conditionalize_nonjump.
11959
11960 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
11961
11962 * config/aarch64/aarch64-builtins.c
11963 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
11964 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
11965 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
11966 instead of __builtin_lfloor.
11967 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
11968
11969 2014-03-12 Jakub Jelinek <jakub@redhat.com>
11970
11971 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
11972 (tree_ssa_ifcombine_bb_1): New function.
11973 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
11974 is an empty forwarder block to then_bb or vice versa and then_bb
11975 and else_bb are effectively swapped.
11976
11977 2014-03-12 Christian Bruel <christian.bruel@st.com>
11978
11979 PR target/60264
11980 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
11981 REG_CFA_DEF_CFA note.
11982 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
11983 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
11984
11985 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11986
11987 PR tree-optimization/60454
11988 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
11989
11990 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11991
11992 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
11993 Do not define target_cpu_default2 to generic.
11994 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
11995 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
11996 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
11997
11998 2014-03-12 Jakub Jelinek <jakub@redhat.com>
11999 Marc Glisse <marc.glisse@inria.fr>
12000
12001 PR tree-optimization/60502
12002 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
12003 instead of build_low_bits_mask.
12004
12005 2014-03-12 Jakub Jelinek <jakub@redhat.com>
12006
12007 PR middle-end/60482
12008 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
12009 if there are multiple uses, but op doesn't live on E edge.
12010 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
12011 clobber stmts before __builtin_unreachable.
12012
12013 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
12014
12015 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
12016 hard_frame_pointer_rtx.
12017 * cse.c (cse_insn): Remove volatile check.
12018 * cselib.c (cselib_process_insn): Likewise.
12019 * dse.c (scan_insn): Likewise.
12020
12021 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
12022
12023 * config/arc/arc.c (conditionalize_nonjump): New function,
12024 broken out of ...
12025 (arc_ifcvt): ... this.
12026 (arc_predicate_delay_insns): Use it.
12027
12028 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
12029
12030 * config/arc/predicates.md (extend_operand): During/after reload,
12031 allow const_int_operand.
12032 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
12033 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
12034 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
12035 to "i".
12036 (umulsi3_highpart_i): Likewise.
12037
12038 2014-03-11 Richard Biener <rguenther@suse.de>
12039
12040 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
12041 Add asserts to guard possible wrong-code bugs.
12042
12043 2014-03-11 Richard Biener <rguenther@suse.de>
12044
12045 PR tree-optimization/60429
12046 PR tree-optimization/60485
12047 * tree-ssa-structalias.c (set_union_with_increment): Properly
12048 take into account all fields that overlap the shifted vars.
12049 (do_sd_constraint): Likewise.
12050 (do_ds_constraint): Likewise.
12051 (get_constraint_for_ptr_offset): Likewise.
12052
12053 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
12054
12055 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
12056 (nios2_compute_frame_layout):
12057 Add calculation of cfun->machine->fp_save_offset.
12058 (nios2_expand_prologue): Correct setting of frame pointer register
12059 in prologue.
12060 (nios2_expand_epilogue): Update recovery of stack pointer from
12061 frame pointer accordingly.
12062 (nios2_initial_elimination_offset): Update calculation of offset
12063 for eliminating to HARD_FRAME_POINTER_REGNUM.
12064
12065 2014-03-10 Jakub Jelinek <jakub@redhat.com>
12066
12067 PR ipa/60457
12068 * ipa.c (symtab_remove_unreachable_nodes): Don't call
12069 cgraph_get_create_node on VAR_DECLs.
12070
12071 2014-03-10 Richard Biener <rguenther@suse.de>
12072
12073 PR middle-end/60474
12074 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
12075
12076 2014-03-08 Douglas B Rupp <rupp@gnat.com>
12077
12078 * config/vms/vms.opt (vms_float_format): New variable.
12079
12080 2014-03-08 Tobias Burnus <burnus@net-b.de>
12081
12082 * doc/invoke.texi (-fcilkplus): Update implementation status.
12083
12084 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
12085 Richard Biener <rguenther@suse.de>
12086
12087 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
12088 consistently accross all TUs.
12089 (run_gcc): Enable -fshort-double automatically at link at link-time
12090 and disallow override.
12091
12092 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
12093
12094 PR target/58271
12095 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
12096 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
12097 if they can't be used.
12098
12099 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12100
12101 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
12102 for Solaris 11/x86 ld.
12103 * configure: Regenerate.
12104
12105 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12106
12107 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
12108 (LIB_TLS_SPEC): Save as ld_tls_libs.
12109 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
12110 (HAVE_AS_IX86_TLSLDM): New test.
12111 * configure, config.in: Regenerate.
12112 * config/i386/i386.c (legitimize_tls_address): Fall back to
12113 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
12114 cannot support TLS_MODEL_LOCAL_DYNAMIC.
12115 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
12116 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
12117
12118 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
12119
12120 * common.opt (fira-loop-pressure): Mark as optimization.
12121
12122 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
12123
12124 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
12125 an OpenMP mappable type.
12126
12127 2014-03-06 Matthias Klose <doko@ubuntu.com>
12128
12129 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
12130 MULTILIB_OSDIRNAMES is not defined.
12131
12132 2014-03-06 Jakub Jelinek <jakub@redhat.com>
12133 Meador Inge <meadori@codesourcery.com>
12134
12135 PR target/58595
12136 * config/arm/arm.c (arm_tls_symbol_p): Remove.
12137 (arm_legitimize_address): Call legitimize_tls_address for any
12138 arm_tls_referenced_p expression, handle constant addend. Call it
12139 before testing for !TARGET_ARM.
12140 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
12141
12142 2014-03-06 Richard Biener <rguenther@suse.de>
12143
12144 PR middle-end/60445
12145 PR lto/60424
12146 PR lto/60427
12147 Revert
12148 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
12149
12150 * tree-streamer.c (record_common_node): Assert we don't record
12151 nodes with type double.
12152 (preload_common_node): Skip type double, complex double and double
12153 pointer since it is now frontend dependent due to fshort-double option.
12154
12155 2014-03-06 Richard Biener <rguenther@suse.de>
12156
12157 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
12158 or -fno-lto is specified and the linker has full plugin support.
12159 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
12160 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
12161 * lto-wrapper.c (merge_and_complain): Merge compile-time
12162 optimization levels.
12163 (run_gcc): And pass it through to the link options.
12164
12165 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
12166
12167 PR debug/60381
12168 Revert:
12169 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
12170 PR debug/59992
12171 * cselib.c (remove_useless_values): Skip to avoid quadratic
12172 behavior if the condition moved from...
12173 (cselib_process_insn): ... here holds.
12174
12175 2014-03-05 Jakub Jelinek <jakub@redhat.com>
12176
12177 PR plugins/59335
12178 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
12179 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
12180
12181 PR plugins/59335
12182 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
12183 (TM_H): Add x86-tune.def.
12184
12185 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12186
12187 * config/aarch64/aarch64.c (generic_tunings):
12188 Use cortexa57_extra_costs.
12189
12190 2014-03-05 Jakub Jelinek <jakub@redhat.com>
12191
12192 PR lto/60404
12193 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
12194 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
12195 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
12196 cost for in_lto_p.
12197
12198 2014-03-04 Heiher <r@hev.cc>
12199
12200 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
12201 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
12202
12203 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
12204
12205 * config/i386/predicates.md (const2356_operand): Change to ...
12206 (const2367_operand): ... this.
12207 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
12208 const2367_operand.
12209 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
12210 (*avx512pf_scatterpf<mode>sf): Ditto.
12211 (avx512pf_scatterpf<mode>df): Ditto.
12212 (*avx512pf_scatterpf<mode>df_mask): Ditto.
12213 (*avx512pf_scatterpf<mode>df): Ditto.
12214 * config/i386/i386.c (ix86_expand_builtin): Update
12215 incorrect hint operand error message.
12216
12217 2014-03-04 Richard Biener <rguenther@suse.de>
12218
12219 * lto-section-in.c (lto_get_section_data): Fix const cast.
12220
12221 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
12222
12223 * tree-streamer.c (record_common_node): Assert we don't record
12224 nodes with type double.
12225 (preload_common_node): Skip type double, complex double and double
12226 pointer since it is now frontend dependent due to fshort-double option.
12227
12228 2014-03-04 Richard Biener <rguenther@suse.de>
12229
12230 PR lto/60405
12231 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
12232 (lto_input_toplevel_asms): Likewise.
12233 * lto-section-in.c (lto_get_section_data): Instead do it here
12234 for every section.
12235
12236 2014-03-04 Richard Biener <rguenther@suse.de>
12237
12238 PR tree-optimization/60382
12239 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
12240 dead PHIs a reduction.
12241
12242 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
12243
12244 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
12245 hint value.
12246 (_mm_prefetch): Move out of GCC target("sse") pragma.
12247 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
12248 GCC target("prfchw") pragma.
12249 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
12250 for locality <= 2.
12251 * config/i386/i386.c (ix86_option_override_internal): Enable
12252 -mprfchw with -mprefetchwt1.
12253
12254 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
12255
12256 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
12257 Mark as varying.
12258
12259 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
12260
12261 * opts.h (CL_PCH_IGNORE): Define.
12262 * targhooks.c (option_affects_pch_p):
12263 Return false for options that have CL_PCH_IGNORE set.
12264 * opt-functions.awk: Process PchIgnore.
12265 * doc/options.texi: Document PchIgnore.
12266
12267 * config/arc/arc.opt (misize): Add PchIgnore property.
12268
12269 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12270
12271 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
12272 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
12273 constraint on constants to permit them being loaded into
12274 GENERAL_REGS or BASE_REGS.
12275
12276 2014-03-03 Nick Clifton <nickc@redhat.com>
12277
12278 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
12279 anti-cacnonical alternatives.
12280 (negandhi3_real): New pattern.
12281 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
12282
12283 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12284
12285 * config/avr/avr-mcus.def: Remove atxmega16x1.
12286 * config/avr/avr-tables.opt: Regenerate.
12287 * config/avr/t-multilib: Regenerate.
12288 * doc/avr-mmcu.texi: Regenerate.
12289
12290 2014-03-03 Tobias Grosser <tobias@grosser.es>
12291 Mircea Namolaru <mircea.namolaru@inria.fr>
12292
12293 PR tree-optimization/58028
12294 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
12295 scalar dimensions.
12296
12297 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12298
12299 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
12300 not handled by recognizers.
12301
12302 2014-03-03 Jakub Jelinek <jakub@redhat.com>
12303
12304 PR middle-end/60175
12305 * function.c (expand_function_end): Don't emit
12306 clobber_return_register sequence if clobber_after is a BARRIER.
12307 * cfgexpand.c (construct_exit_block): Append instructions before
12308 return_label to prev_bb.
12309
12310 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12311
12312 * config/rs6000/constraints.md: Document reserved use of "wc".
12313
12314 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
12315
12316 PR ipa/60150
12317 * ipa.c (function_and_variable_visibility): When dissolving comdat
12318 group, also set all symbols to local.
12319
12320 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
12321
12322 PR ipa/60306
12323
12324 Revert:
12325 2013-12-14 Jan Hubicka <jh@suse.cz>
12326 PR middle-end/58477
12327 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
12328
12329 2014-03-02 Jon Beniston <jon@beniston.com>
12330
12331 PR bootstrap/48230
12332 PR bootstrap/50927
12333 PR bootstrap/52466
12334 PR target/46898
12335 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
12336 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
12337 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
12338 (simple_return, *simple_return): New patterns
12339 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
12340 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
12341
12342 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
12343
12344 * dwarf2out.c (gen_subprogram_die): Tidy.
12345
12346 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
12347
12348 PR target/60071
12349 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
12350 (*mov_t_msb_neg_negc): ... this new insn.
12351
12352 2014-02-28 Jason Merrill <jason@redhat.com>
12353
12354 PR c++/58678
12355 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
12356 function.
12357
12358 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
12359
12360 PR c++/60314
12361 * dwarf2out.c (decltype_auto_die): New static.
12362 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
12363 (gen_type_die_with_usage): Handle 'decltype(auto)'.
12364 (is_cxx_auto): Likewise.
12365
12366 2014-02-28 Ian Bolton <ian.bolton@arm.com>
12367
12368 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
12369 we are not using general regs only.
12370
12371 2014-02-28 Richard Biener <rguenther@suse.de>
12372
12373 PR target/60280
12374 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
12375 previous fix and only allow to remove trivial pre-headers
12376 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
12377 (remove_forwarder_block): Properly update the latch of a loop.
12378
12379 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
12380
12381 PR debug/59992
12382 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
12383 (cselib_preserved_hash_table): New.
12384 (preserve_constants_and_equivs): Move preserved vals to it.
12385 (cselib_find_slot): Look it up first.
12386 (cselib_init): Initialize it.
12387 (cselib_finish): Release it.
12388 (dump_cselib_table): Dump it.
12389
12390 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
12391
12392 PR debug/59992
12393 * cselib.c (remove_useless_values): Skip to avoid quadratic
12394 behavior if the condition moved from...
12395 (cselib_process_insn): ... here holds.
12396
12397 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
12398
12399 PR debug/57232
12400 * var-tracking.c (vt_initialize): Apply the same condition to
12401 preserve the CFA base value.
12402
12403 2014-02-28 Joey Ye <joey.ye@arm.com>
12404
12405 PR target/PR60169
12406 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
12407 if reload in progress or completed.
12408
12409 2014-02-28 Tobias Burnus <burnus@net-b.de>
12410
12411 PR middle-end/60147
12412 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
12413 NAMELIST_DECL.
12414
12415 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
12416
12417 * doc/tm.texi.in (Condition Code Status): Update documention for
12418 relative locations of cc0-setter and cc0-user.
12419
12420 2014-02-27 Jeff Law <law@redhat.com>
12421
12422 PR rtl-optimization/52714
12423 * combine.c (try_combine): When splitting an unrecognized PARALLEL
12424 into two independent simple sets, if I3 is a jump, ensure the
12425 pattern we place into I3 is a (set (pc) ...).
12426
12427 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
12428 Jeff Law <law@redhat.com>
12429
12430 PR rtl-optimization/49847
12431 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
12432 are in different blocks.
12433 * doc/tm.texi (Condition Code Status): Update documention for
12434 relative locations of cc0-setter and cc0-user.
12435
12436 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
12437
12438 PR target/59222
12439 * lra.c (lra_emit_add): Check SUBREG too.
12440
12441 2014-02-27 Andreas Schwab <schwab@suse.de>
12442
12443 * config/m68k/m68k.c (m68k_option_override): Disable
12444 -flive-range-shrinkage for classic m68k.
12445 (m68k_override_options_after_change): Likewise.
12446
12447 2014-02-27 Marek Polacek <polacek@redhat.com>
12448
12449 PR middle-end/59223
12450 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
12451 -Wmaybe-uninitialized.
12452
12453 2014-02-27 Alan Modra <amodra@gmail.com>
12454
12455 PR target/57936
12456 * reload1.c (emit_input_reload_insns): When reload_override_in,
12457 set old to rl->in_reg when rl->in_reg is a subreg.
12458
12459 2014-02-26 Richard Biener <rguenther@suse.de>
12460
12461 PR bootstrap/60343
12462 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
12463
12464 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
12465
12466 * common/config/i386/predicates.md (const1256_operand): Remove.
12467 (const2356_operand): New.
12468 (const_1_to_2_operand): Remove.
12469 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
12470 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
12471 (*avx512pf_gatherpf<mode>sf): Ditto.
12472 (avx512pf_gatherpf<mode>df): Ditto.
12473 (*avx512pf_gatherpf<mode>df_mask): Ditto.
12474 (*avx512pf_gatherpf<mode>df): Ditto.
12475 (avx512pf_scatterpf<mode>sf): Ditto.
12476 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
12477 (*avx512pf_scatterpf<mode>sf): Ditto.
12478 (avx512pf_scatterpf<mode>df): Ditto.
12479 (*avx512pf_scatterpf<mode>df_mask): Ditto.
12480 (*avx512pf_scatterpf<mode>df): Ditto.
12481 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
12482
12483 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
12484
12485 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
12486 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
12487 (_mm512_mask_testn_epi64_mask): Move to ...
12488 * config/i386/avx512cdintrin.h: Here.
12489 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
12490 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
12491 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
12492 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
12493 TARGET_AVX512F from TARGET_AVX512CD.
12494
12495 2014-02-26 Richard Biener <rguenther@suse.de>
12496
12497 PR ipa/60327
12498 * ipa.c (walk_polymorphic_call_targets): Properly guard
12499 call to inline_update_overall_summary.
12500
12501 2014-02-26 Bin Cheng <bin.cheng@arm.com>
12502
12503 PR target/60280
12504 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
12505 and latches only if requested. Fix latch if it is removed.
12506 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
12507 LOOPS_HAVE_PREHEADERS.
12508
12509 2014-02-25 Andrew Pinski <apinski@cavium.com>
12510
12511 * builtins.c (expand_builtin_thread_pointer): Create a new target
12512 when the target is NULL.
12513
12514 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
12515
12516 PR rtl-optimization/60317
12517 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
12518 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
12519 * lra-assigns.c: Include params.h.
12520 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
12521 other reload pseudos considerations.
12522
12523 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12524
12525 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
12526 to use canonical form for nor<mode>3.
12527
12528 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12529
12530 PR target/55426
12531 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
12532 conversions.
12533
12534 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
12535
12536 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
12537 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
12538 (ix86_handle_option): Handle OPT_mprefetchwt1.
12539 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
12540 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12541 PREFETCHWT1 CPUID.
12542 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
12543 OPTION_MASK_ISA_PREFETCHWT1.
12544 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
12545 (PTA_PREFETCHWT1): New.
12546 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
12547 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
12548 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
12549 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
12550 (*prefetch_avx512pf_<mode>_: Change into ...
12551 (*prefetch_prefetchwt1_<mode>: This.
12552 * config/i386/i386.opt (mprefetchwt1): New.
12553 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
12554 (_mm_prefetch): Handle intent to write.
12555 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
12556
12557 2014-02-25 Richard Biener <rguenther@suse.de>
12558
12559 PR middle-end/60291
12560 * emit-rtl.c (mem_attrs_htab): Remove.
12561 (mem_attrs_htab_hash): Likewise.
12562 (mem_attrs_htab_eq): Likewise.
12563 (set_mem_attrs): Always allocate new mem-attrs when something changed.
12564 (init_emit_once): Do not allocate mem_attrs_htab.
12565
12566 2014-02-25 Richard Biener <rguenther@suse.de>
12567
12568 PR lto/60319
12569 * lto-opts.c (lto_write_options): Output non-explicit conservative
12570 -fwrapv, -fno-trapv and -fno-strict-overflow.
12571 * lto-wrapper.c (merge_and_complain): Handle merging those options.
12572 (run_gcc): And pass them through.
12573
12574 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
12575
12576 * sel-sched.c (calculate_new_fences): New parameter ptime.
12577 Calculate it as a maximum over all fence cycles.
12578 (sel_sched_region_2): Adjust the call to calculate_new_fences.
12579 Print the final schedule timing when sched_verbose.
12580
12581 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
12582
12583 PR rtl-optimization/60292
12584 * sel-sched.c (fill_vec_av_set): Do not reset target availability
12585 bit fot the fence instruction.
12586
12587 2014-02-24 Alangi Derick <alangiderick@gmail.com>
12588
12589 * calls.h: Fix typo in comment.
12590
12591 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
12592
12593 * config/pa/pa.c (pa_output_move_double): Don't valididate when
12594 adjusting offsetable addresses.
12595
12596 2014-02-24 Guozhi Wei <carrot@google.com>
12597
12598 * sparseset.h (sparseset_pop): Fix the wrong index.
12599
12600 2014-02-24 Walter Lee <walt@tilera.com>
12601
12602 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
12603 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
12604 triplet.
12605 * common/config/tilegx/tilegx-common.c
12606 (TARGET_DEFAULT_TARGET_FLAGS): Define.
12607 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
12608 (LINK_SPEC): Ditto.
12609 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
12610 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
12611 (tilegx_gimplify_va_arg_expr): Handle big endian.
12612 (tilegx_expand_unaligned_load): Ditto.
12613 (tilegx_expand_unaligned_store): Ditto.
12614 (TARGET_RETURN_IN_MSB): New.
12615 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
12616 (TARGET_ENDIAN_DEFAULT): New.
12617 (TARGET_BIG_ENDIAN): Handle big endian.
12618 (BYTES_BIG_ENDIAN): Ditto.
12619 (WORDS_BIG_ENDIAN): Ditto.
12620 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
12621 (ENDIAN_SPEC): New.
12622 (EXTRA_SPECS): New.
12623 * config/tilegx/tilegx.md (extv): Handle big endian.
12624 (extzv): Ditto.
12625 (insn_st<n>): Ditto.
12626 (insn_st<n>_add<bitsuffix>): Ditto.
12627 (insn_stnt<n>): Ditto.
12628 (insn_stnt<n>_add<bitsuffix>):Ditto.
12629 (vec_interleave_highv8qi): Handle big endian.
12630 (vec_interleave_highv8qi_be): New.
12631 (vec_interleave_highv8qi_le): New.
12632 (insn_v1int_h): Handle big endian.
12633 (vec_interleave_lowv8qi): Handle big endian.
12634 (vec_interleave_lowv8qi_be): New.
12635 (vec_interleave_lowv8qi_le): New.
12636 (insn_v1int_l): Handle big endian.
12637 (vec_interleave_highv4hi): Handle big endian.
12638 (vec_interleave_highv4hi_be): New.
12639 (vec_interleave_highv4hi_le): New.
12640 (insn_v2int_h): Handle big endian.
12641 (vec_interleave_lowv4hi): Handle big endian.
12642 (vec_interleave_lowv4hi_be): New.
12643 (vec_interleave_lowv4hi_le): New.
12644 (insn_v2int_l): Handle big endian.
12645 (vec_interleave_highv2si): Handle big endian.
12646 (vec_interleave_highv2si_be): New.
12647 (vec_interleave_highv2si_le): New.
12648 (insn_v4int_h): Handle big endian.
12649 (vec_interleave_lowv2si): Handle big endian.
12650 (vec_interleave_lowv2si_be): New.
12651 (vec_interleave_lowv2si_le): New.
12652 (insn_v4int_l): Handle big endian.
12653 * config/tilegx/tilegx.opt (mbig-endian): New option.
12654 (mlittle-endian): New option.
12655 * doc/install.texi: Document tilegxbe-linux.
12656 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
12657
12658 2014-02-24 Martin Jambor <mjambor@suse.cz>
12659
12660 PR ipa/60266
12661 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
12662 there are no parameter descriptors.
12663
12664 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
12665
12666 PR rtl-optimization/60268
12667 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
12668 initialization to ...
12669 (sched_rgn_init): ... here.
12670 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
12671
12672 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
12673
12674 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
12675 names.
12676
12677 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
12678
12679 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
12680 definition.
12681
12682 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
12683
12684 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
12685 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
12686
12687 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
12688
12689 * config/microblaze/predicates.md: Add cmp_op predicate.
12690 * config/microblaze/microblaze.md: Add branch_compare instruction
12691 which uses cmp_op predicate and emits cmp insn before branch.
12692 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
12693 to microblaze_expand_conditional_branch and consolidate logic.
12694 (microblaze_expand_conditional_branch): emit branch_compare
12695 insn instead of handling cmp op separate from branch insn.
12696
12697 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12698
12699 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
12700 to permit subregs.
12701
12702 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12703
12704 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
12705 define_insn with define_expand and new define_insn
12706 *altivec_lve<VI_char>x_internal.
12707 (altivec_stve<VI_char>x): Replace define_insn with define_expand
12708 and new define_insn *altivec_stve<VI_char>x_internal.
12709 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
12710 prototype.
12711 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
12712 lve*x built-ins.
12713 (altivec_expand_stvex_be): New function.
12714
12715 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
12716
12717 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
12718 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
12719 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
12720 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
12721
12722 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
12723
12724 PR target/60298
12725 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
12726 instead of emit_move_insn.
12727
12728 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12729
12730 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
12731 vspltw with vsldoi.
12732 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
12733 gen_altivec_vsumsws.
12734
12735 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12736
12737 * config/rs6000/altivec.md (altivec_lvxl): Rename as
12738 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
12739 (altivec_lvxl_<mode>): New define_expand incorporating
12740 -maltivec=be semantics where needed.
12741 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
12742 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
12743 semantics where needed.
12744 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
12745 (altivec_stvx_<mode>): New define_expand incorporating
12746 -maltivec=be semantics where needed.
12747 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
12748 VM2 iterator instead of V4SI.
12749 (altivec_stvxl_<mode>): New define_expand incorporating
12750 -maltivec=be semantics where needed.
12751 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
12752 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
12753 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
12754 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
12755 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
12756 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
12757 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
12758 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
12759 ALTIVEC_BUILTIN_STVXL.
12760 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
12761 (altivec_expand_stvx_be): Likewise.
12762 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
12763 (altivec_expand_lvx_be): Likewise.
12764 (altivec_expand_stvx_be): Likewise.
12765 (altivec_expand_builtin): Add cases for
12766 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
12767 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
12768 (altivec_init_builtins): Add definitions for
12769 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
12770 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
12771
12772 2014-02-21 Catherine Moore <clm@codesourcery.com>
12773
12774 * doc/invoke.texi (mvirt, mno-virt): Document.
12775 * config/mips/mips.opt (mvirt): New option.
12776 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
12777
12778 2014-02-21 Richard Biener <rguenther@suse.de>
12779
12780 PR tree-optimization/60276
12781 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
12782 (STMT_VINFO_MIN_NEG_DIST): New macro.
12783 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
12784 STMT_VINFO_MIN_NEG_DIST.
12785 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
12786 made for negative dependence distances still hold.
12787
12788 2014-02-21 Richard Biener <rguenther@suse.de>
12789
12790 PR middle-end/60291
12791 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
12792 DECL_INITIAL for globals not in the current function context.
12793
12794 2014-02-21 Jakub Jelinek <jakub@redhat.com>
12795
12796 PR tree-optimization/56490
12797 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
12798 * tree-ssa-uninit.c: Include params.h.
12799 (compute_control_dep_chain): Add num_calls argument, return false
12800 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
12801 num_calls to recursive call.
12802 (find_predicates): Change dep_chain into normal array,
12803 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
12804 variable and adjust compute_control_dep_chain caller.
12805 (find_def_preds): Likewise.
12806
12807 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
12808
12809 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
12810 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
12811
12812 2014-02-21 Nick Clifton <nickc@redhat.com>
12813
12814 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
12815 (pushhi1): Likewise.
12816 (popqi1): Add mode to pre_dec.
12817 (pophi1): Likewise.
12818
12819 2014-02-21 Jakub Jelinek <jakub@redhat.com>
12820
12821 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
12822 mode for mask of V8SFmode permutation.
12823
12824 2014-02-20 Richard Henderson <rth@redhat.com>
12825
12826 PR c++/60272
12827 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
12828 a new pseudo for OLDVAL.
12829
12830 2014-02-20 Jakub Jelinek <jakub@redhat.com>
12831
12832 PR target/57896
12833 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
12834 gen_reg_rtx if d->testing_p.
12835 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
12836 if d->testing_p and we will certainly return true.
12837 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
12838 if d->testing_p.
12839
12840 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
12841
12842 * emit-rtl.c (gen_reg_rtx): Assert that
12843 crtl->emit.regno_pointer_align_length is non-zero.
12844
12845 2014-02-20 Richard Henderson <rth@redhat.com>
12846
12847 PR c++/60272
12848 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
12849 on failure the store back into EXPECT.
12850
12851 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
12852 Sandra Loosemore <sandra@codesourcery.com>
12853
12854 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
12855 * config/nios2/nios2.c (nios2_function_profiler): Add
12856 -fPIC (flag_pic == 2) support.
12857 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
12858 (nios2_large_offset_p): New function.
12859 (nios2_unspec_reloc_p): Move up position, update to use
12860 nios2_large_offset_p.
12861 (nios2_unspec_address): Remove function.
12862 (nios2_unspec_offset): New function.
12863 (nios2_large_got_address): New function.
12864 (nios2_got_address): Add large offset support.
12865 (nios2_legitimize_tls_address): Update usage of removed and new
12866 functions.
12867 (nios2_symbol_binds_local_p): New function.
12868 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
12869 (nios2_legitimize_address): Update to use nios2_large_offset_p.
12870 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
12871 (nios2_print_operand): Merge H/L processing, add hiadj/lo
12872 processing for (const (unspec ...)).
12873 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
12874
12875 2014-02-20 Richard Biener <rguenther@suse.de>
12876
12877 * tree-cfg.c (replace_uses_by): Mark altered BBs before
12878 doing the substitution.
12879 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
12880
12881 2014-02-20 Martin Jambor <mjambor@suse.cz>
12882
12883 PR ipa/55260
12884 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
12885 info when checking whether lattices are bottom.
12886
12887 2014-02-20 Richard Biener <rguenther@suse.de>
12888
12889 PR middle-end/60221
12890 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
12891 regions at -O0.
12892
12893 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
12894
12895 PR ipa/58555
12896 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
12897 parameter specifying the scaling.
12898 (inline_call): Update.
12899 (want_inline_recursively): Guard division by zero.
12900 (recursive_inlining): Update.
12901 * ipa-inline.h (clone_inlined_nodes): Update.
12902
12903 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
12904
12905 PR target/60204
12906 * config/i386/i386.c (classify_argument): Pass structures of size
12907 64 bytes or less in register.
12908
12909 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
12910 Kirill Yukhin <kirill.yukhin@intel.com>
12911
12912 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
12913 (_mm_rcp28_round_ss): Ditto.
12914 (_mm_rsqrt28_round_sd): Ditto.
12915 (_mm_rsqrt28_round_ss): Ditto.
12916 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
12917 (_mm_rcp14_round_ss): Ditto.
12918 (_mm_rsqrt14_round_sd): Ditto.
12919 (_mm_rsqrt14_round_ss): Ditto.
12920 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
12921 the first input operand, get rid of match_dup.
12922 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
12923 attribute to sse.
12924 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
12925 Ditto.
12926 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
12927 operand as the first input operand, set type attribute.
12928 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
12929 Set type attribute.
12930 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
12931 operand as the first input operand, set type attribute.
12932
12933 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12934
12935 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
12936 bit of zero.
12937
12938 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
12939
12940 PR target/60207
12941 * config/i386/i386.c (construct_container): Remove TFmode check
12942 for X86_64_INTEGER_CLASS.
12943
12944 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
12945
12946 PR target/59794
12947 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
12948 only when -Wpsabi is enabled.
12949
12950 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
12951
12952 PR target/59799
12953 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
12954 passing arrays in registers are the same as for structs, so remove the
12955 special case for them.
12956
12957 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
12958
12959 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
12960 destination type, extract only the valid bits if the source type is not
12961 integral and has a different mode.
12962
12963 2014-02-19 Richard Biener <rguenther@suse.de>
12964
12965 PR ipa/60243
12966 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
12967 for all calls.
12968
12969 2014-02-19 Richard Biener <rguenther@suse.de>
12970
12971 PR ipa/60243
12972 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
12973 (ipa_modify_call_arguments): Emit an argument load explicitely and
12974 preserve virtual SSA form there and for the replacement call.
12975 Do not update SSA form nor free dominance info.
12976
12977 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
12978
12979 * ipa.c (function_and_variable_visibility): Also clear WEAK
12980 flag when disolving COMDAT_GROUP.
12981
12982 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
12983
12984 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
12985 * ipa-prop.c (ipa_set_jf_known_type): Return early when
12986 not devirtualizing.
12987 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
12988 do more sanity checks.
12989 (detect_type_change): Return true when giving up early.
12990 (compute_complex_assign_jump_func): Fix type parameter of
12991 ipa_set_ancestor_jf.
12992 (compute_complex_ancestor_jump_func): Likewise.
12993 (update_jump_functions_after_inlining): Fix updating of
12994 ancestor function.
12995 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
12996
12997 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
12998
12999 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
13000 inline clones when edge disappears.
13001
13002 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
13003
13004 PR target/60203
13005 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
13006 Split 64-bit moves into 2 patterns. Do not allow the use of
13007 direct move for TDmode in little endian, since the decimal value
13008 has little endian bytes within a word, but the 64-bit pieces are
13009 ordered in a big endian fashion, and normal subreg's of TDmode are
13010 not allowed.
13011 (mov<mode>_64bit_dm): Likewise.
13012 (movtd_64bit_nodm): Likewise.
13013
13014 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
13015
13016 PR tree-optimization/60174
13017 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
13018 statement of an SSA_NAME that occurs in an abnormal PHI node.
13019
13020 2014-02-18 Jakub Jelinek <jakub@redhat.com>
13021
13022 PR sanitizer/60142
13023 * final.c (SEEN_BB): Remove.
13024 (SEEN_NOTE, SEEN_EMITTED): Renumber.
13025 (final_scan_insn): Don't force_source_line on second
13026 NOTE_INSN_BASIC_BLOCK.
13027
13028 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
13029
13030 PR target/60205
13031 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
13032 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
13033 (type_natural_mode): Warn ABI change when %zmm register is not
13034 available for AVX512F vector value passing.
13035
13036 2014-02-18 Kai Tietz <ktietz@redhat.com>
13037
13038 PR target/60193
13039 * config/i386/i386.c (ix86_expand_prologue): Use value in
13040 rax register as displacement when restoring %r10 or %rax.
13041 Fix wrong offset when restoring both registers.
13042
13043 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
13044
13045 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
13046 assertion with conditional return.
13047
13048 2014-02-18 Jakub Jelinek <jakub@redhat.com>
13049 Uros Bizjak <ubizjak@gmail.com>
13050
13051 PR driver/60233
13052 * config/i386/driver-i386.c (host_detect_local_cpu): If
13053 YMM state is not saved by the OS, also clear has_f16c. Move
13054 CPUID 0x80000001 handling before YMM state saving checking.
13055
13056 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
13057
13058 PR rtl-optimization/58960
13059 * haifa-sched.c (alloc_global_sched_pressure_data): New,
13060 factored out from ...
13061 (sched_init): ... here.
13062 (free_global_sched_pressure_data): New, factored out from ...
13063 (sched_finish): ... here.
13064 * sched-int.h (free_global_sched_pressure_data): Declare.
13065 * sched-rgn.c (nr_regions_initial): New static global.
13066 (haifa_find_rgns): Initialize it.
13067 (schedule_region): Disable sched-pressure for the newly
13068 generated regions.
13069
13070 2014-02-17 Richard Biener <rguenther@suse.de>
13071
13072 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
13073 release SSA defs of pattern stmts.
13074
13075 2014-02-17 Richard Biener <rguenther@suse.de>
13076
13077 * tree-inline.c (expand_call_inline): Release the virtual
13078 operand defined by the call we are about to inline.
13079
13080 2014-02-17 Richard Biener <rguenther@suse.de>
13081
13082 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
13083
13084 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
13085 Ilya Tocar <ilya.tocar@intel.com>
13086
13087 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
13088 arguments order in builtin.
13089 (_mm512_permutexvar_epi64): Ditto.
13090 (_mm512_mask_permutexvar_epi64): Ditto
13091 (_mm512_maskz_permutexvar_epi32): Ditto
13092 (_mm512_permutexvar_epi32): Ditto
13093 (_mm512_mask_permutexvar_epi32): Ditto
13094
13095 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13096
13097 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
13098 (p8_vmrgow): Likewise.
13099
13100 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13101
13102 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
13103 endian targets.
13104
13105 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13106
13107 PR target/60203
13108 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
13109 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
13110 into 64-bit and 32-bit moves. On 64-bit moves, add support for
13111 using direct move instructions on ISA 2.07. Also adjust
13112 instruction length for 64-bit.
13113 (mov<mode>_64bit, TFmode/TDmode): Likewise.
13114 (mov<mode>_32bit, TFmode/TDmode): Likewise.
13115
13116 2014-02-15 Alan Modra <amodra@gmail.com>
13117
13118 PR target/58675
13119 PR target/57935
13120 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
13121 find_replacement on parts of insn rtl that might be reloaded.
13122
13123 2014-02-15 Richard Biener <rguenther@suse.de>
13124
13125 PR tree-optimization/60183
13126 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
13127 (tree_ssa_phiprop): Calculate and free post-dominators.
13128
13129 2014-02-14 Jeff Law <law@redhat.com>
13130
13131 PR rtl-optimization/60131
13132 * ree.c (get_extended_src_reg): New function.
13133 (combine_reaching_defs): Use it rather than assuming location of REG.
13134 (find_and_remove_re): Verify first operand of extension is
13135 a REG before adding the insns to the copy list.
13136
13137 2014-02-14 Roland McGrath <mcgrathr@google.com>
13138
13139 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
13140 * configure: Regenerated.
13141 * config.in: Regenerated.
13142 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
13143 instead of ASM_SHORT.
13144
13145 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
13146 Richard Earnshaw <rearnsha@arm.com>
13147
13148 PR rtl-optimization/59535
13149 * lra-constraints.c (process_alt_operands): Encourage alternative
13150 when unassigned pseudo class is superset of the alternative class.
13151 (inherit_reload_reg): Don't inherit when optimizing for code size.
13152 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
13153 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
13154 modes not less than 4 for Thumb1.
13155
13156 2014-02-14 Kyle McMartin <kyle@redhat.com>
13157
13158 PR pch/60010
13159 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
13160
13161 2014-02-14 Richard Biener <rguenther@suse.de>
13162
13163 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
13164 (get_frame_arg): Drop the assert with langhook types_compatible_p.
13165 Do not strip INDIRECT_REFs.
13166
13167 2014-02-14 Richard Biener <rguenther@suse.de>
13168
13169 PR lto/60179
13170 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
13171 DECL_FUNCTION_SPECIFIC_TARGET.
13172 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
13173 * tree-streamer-out.c (pack_ts_target_option): Remove.
13174 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
13175 (write_ts_function_decl_tree_pointers): Do not stream
13176 DECL_FUNCTION_SPECIFIC_TARGET.
13177 * tree-streamer-in.c (unpack_ts_target_option): Remove.
13178 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
13179 (lto_input_ts_function_decl_tree_pointers): Do not stream
13180 DECL_FUNCTION_SPECIFIC_TARGET.
13181
13182 2014-02-14 Jakub Jelinek <jakub@redhat.com>
13183
13184 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
13185 (get_initial_def_for_induction, vectorizable_induction): Ignore
13186 debug stmts when looking for exit_phi.
13187 (vectorizable_live_operation): Fix up condition.
13188
13189 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
13190
13191 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
13192 nreverse() because it changes the content of original tree list.
13193
13194 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
13195
13196 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
13197 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
13198
13199 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
13200
13201 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
13202 GNU coding standards.
13203
13204 2014-02-13 Jakub Jelinek <jakub@redhat.com>
13205
13206 PR debug/60152
13207 * dwarf2out.c (gen_subprogram_die): Don't call
13208 add_calling_convention_attribute if subr_die is old_die.
13209
13210 2014-02-13 Sharad Singhai <singhai@google.com>
13211
13212 * doc/optinfo.texi: Fix order of nodes.
13213
13214 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
13215
13216 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
13217 operands[2], not operands[3].
13218
13219 2014-02-13 Richard Biener <rguenther@suse.de>
13220
13221 PR bootstrap/59878
13222 * doc/install.texi (ISL): Update recommended version to 0.12.2,
13223 mention the possibility of an in-tree build.
13224 (CLooG): Update recommended version to 0.18.1, mention the
13225 possibility of an in-tree build and clarify that the ISL
13226 bundled with CLooG does not work.
13227
13228 2014-02-13 Jakub Jelinek <jakub@redhat.com>
13229
13230 PR target/43546
13231 * expr.c (compress_float_constant): If x is a hard register,
13232 extend into a pseudo and then move to x.
13233
13234 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
13235
13236 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
13237 caused by bad second argument to warning_at() with -mhotpatch and
13238 nested functions (e.g. with gfortran).
13239
13240 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
13241
13242 * opts.c (option_name): Remove "enabled by default" rider.
13243
13244 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
13245
13246 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
13247
13248 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
13249 Uros Bizjak <ubizjak@gmail.com>
13250
13251 PR target/60151
13252 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
13253 * configure: Regenerated.
13254
13255 2014-02-12 Richard Biener <rguenther@suse.de>
13256
13257 * vec.c (vec_prefix::calculate_allocation): Move as
13258 inline variant to vec.h.
13259 (vec_prefix::calculate_allocation_1): New out-of-line version.
13260 * vec.h (vec_prefix::calculate_allocation_1): Declare.
13261 (vec_prefix::m_has_auto_buf): Rename to ...
13262 (vec_prefix::m_using_auto_storage): ... this.
13263 (vec_prefix::calculate_allocation): Inline the easy cases
13264 and dispatch to calculate_allocation_1 which doesn't need the
13265 prefix address.
13266 (va_heap::reserve): Use gcc_checking_assert.
13267 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
13268 m_using_auto_storage.
13269 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
13270 member and adjust.
13271 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
13272 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
13273 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
13274
13275 2014-02-12 Richard Biener <rguenther@suse.de>
13276
13277 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
13278 when we found a dependence.
13279
13280 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
13281
13282 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
13283 common code...
13284 (maybe_fold_stmt): ... into this new function.
13285 * omp-low.c (lower_omp): Update comment.
13286
13287 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
13288 last use.
13289
13290 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
13291 dereference.
13292
13293 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
13294
13295 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
13296 identifiers in comments.
13297 (cortexa53_extra_costs): Likewise.
13298 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
13299 (cortexa7_extra_costs): Likewise.
13300 (cortexa12_extra_costs): Likewise.
13301 (cortexa15_extra_costs): Likewise.
13302 (v7m_extra_costs): Likewise.
13303
13304 2014-02-12 Richard Biener <rguenther@suse.de>
13305
13306 PR middle-end/60092
13307 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
13308 of posix_memalign being successful.
13309 (lower_stmt): Restrict lowering of posix_memalign to when
13310 -ftree-bit-ccp is enabled.
13311
13312 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
13313
13314 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
13315 arg_loc.
13316 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
13317
13318 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
13319
13320 PR rtl-optimization/60116
13321 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
13322 other_insn once the combination has been validated.
13323
13324 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
13325
13326 PR lto/59468
13327 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
13328 and wrapper.
13329 * ipa-devirt.c: Include demangle.h
13330 (odr_violation_reported): New static variable.
13331 (add_type_duplicate): Update odr_violations.
13332 (maybe_record_node): Add completep parameter; update it.
13333 (record_target_from_binfo): Add COMPLETEP parameter;
13334 update it as needed.
13335 (possible_polymorphic_call_targets_1): Likewise.
13336 (struct polymorphic_call_target_d): Add nonconstruction_targets;
13337 rename FINAL to COMPLETE.
13338 (record_targets_from_bases): Sanity check we found the binfo;
13339 fix COMPLETEP updating.
13340 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
13341 parameter, fix computing of COMPLETEP.
13342 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
13343 at LTO time do demangling.
13344 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
13345 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
13346 parameter.
13347 (gimple_get_virt_method_for_binfo): Likewise.
13348 * gimple-fold.h (gimple_get_virt_method_for_binfo,
13349 gimple_get_virt_method_for_vtable): Update prototypes.
13350
13351 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
13352
13353 PR target/49008
13354 * genautomata.c (add_presence_absence): Fix typo with
13355 {final_}presence_list.
13356
13357 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13358
13359 PR target/60137
13360 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
13361 for VSX/Altivec vectors that land in GPR registers.
13362
13363 2014-02-11 Richard Henderson <rth@redhat.com>
13364 Jakub Jelinek <jakub@redhat.com>
13365
13366 PR debug/59776
13367 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
13368 around drhs if type conversion to lacc->type is not useless.
13369
13370 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13371
13372 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
13373 tuning struct.
13374 (cortex-a57.cortex-a53): Likewise.
13375 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
13376
13377 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13378
13379 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
13380 arm_restrict_it.
13381
13382 2014-02-11 Renlin Li <Renlin.Li@arm.com>
13383
13384 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
13385 add_options_for_arm_vfp3.
13386
13387 2014-02-11 Jeff Law <law@redhat.com>
13388
13389 PR middle-end/54041
13390 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
13391 object with an undesirable mode.
13392
13393 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13394
13395 PR libgomp/60107
13396 * config/i386/sol2-9.h: New file.
13397 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
13398 *-*-solaris2.9*): Use it.
13399
13400 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
13401
13402 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
13403 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
13404
13405 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
13406
13407 * config/microblaze/microblaze.c: Extend mcpu version format
13408
13409 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
13410
13411 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
13412
13413 2014-02-10 Richard Henderson <rth@redhat.com>
13414
13415 PR target/59927
13416 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
13417 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
13418 ms-abi vs -mno-accumulate-outgoing-args.
13419 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
13420 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
13421 respect to ms-abi.
13422
13423 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
13424
13425 PR middle-end/60080
13426 * cfgexpand.c (expand_asm_operands): Attach source location to
13427 ASM_INPUT rtx objects.
13428 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
13429
13430 2014-02-10 Nick Clifton <nickc@redhat.com>
13431
13432 * config/mn10300/mn10300.c (popcount): New function.
13433 (mn10300_expand_prologue): Include saved registers in stack usage
13434 count.
13435
13436 2014-02-10 Jeff Law <law@redhat.com>
13437
13438 PR middle-end/52306
13439 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
13440 when changing the SET_DEST of a prior insn to avoid an input reload.
13441
13442 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13443
13444 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
13445 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
13446 -mcall-openbsd, or -mcall-linux.
13447 (CC1_ENDIAN_BIG_SPEC): Remove.
13448 (CC1_ENDIAN_LITTLE_SPEC): Remove.
13449 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
13450 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
13451 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
13452 and %cc1_endian_default.
13453 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
13454
13455 2014-02-10 Richard Biener <rguenther@suse.de>
13456
13457 PR tree-optimization/60115
13458 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
13459 MEM_REF handling. Properly verify that the accesses are not
13460 out of the objects bound.
13461
13462 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13463
13464 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
13465 coretex to cortex.
13466
13467 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
13468
13469 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
13470 proper constants and fix formatting.
13471 (possible_polymorphic_call_targets): Fix formatting.
13472
13473 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
13474 Ilya Tocar <ilya.tocar@intel.com>
13475
13476 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
13477 (_mm512_loadu_epi32): Renamed into...
13478 (_mm512_loadu_si512): This.
13479 (_mm512_storeu_epi32): Renamed into...
13480 (_mm512_storeu_si512): This.
13481 (_mm512_maskz_ceil_ps): Removed.
13482 (_mm512_maskz_ceil_pd): Ditto.
13483 (_mm512_maskz_floor_ps): Ditto.
13484 (_mm512_maskz_floor_pd): Ditto.
13485 (_mm512_floor_round_ps): Ditto.
13486 (_mm512_floor_round_pd): Ditto.
13487 (_mm512_ceil_round_ps): Ditto.
13488 (_mm512_ceil_round_pd): Ditto.
13489 (_mm512_mask_floor_round_ps): Ditto.
13490 (_mm512_mask_floor_round_pd): Ditto.
13491 (_mm512_mask_ceil_round_ps): Ditto.
13492 (_mm512_mask_ceil_round_pd): Ditto.
13493 (_mm512_maskz_floor_round_ps): Ditto.
13494 (_mm512_maskz_floor_round_pd): Ditto.
13495 (_mm512_maskz_ceil_round_ps): Ditto.
13496 (_mm512_maskz_ceil_round_pd): Ditto.
13497 (_mm512_expand_pd): Ditto.
13498 (_mm512_expand_ps): Ditto.
13499 * config/i386/i386.c (ix86_builtins): Remove
13500 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
13501 (bdesc_args): Ditto.
13502 * config/i386/predicates.md (const1256_operand): New.
13503 (const_1_to_2_operand): Ditto.
13504 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
13505 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
13506 (*avx512pf_gatherpf<mode>sf): Ditto.
13507 (avx512pf_gatherpf<mode>df): Ditto.
13508 (*avx512pf_gatherpf<mode>df_mask): Ditto.
13509 (*avx512pf_gatherpf<mode>df): Ditto.
13510 (avx512pf_scatterpf<mode>sf): Ditto.
13511 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
13512 (*avx512pf_scatterpf<mode>sf): Ditto.
13513 (avx512pf_scatterpf<mode>df): Ditto.
13514 (*avx512pf_scatterpf<mode>df_mask): Ditto.
13515 (*avx512pf_scatterpf<mode>df): Ditto.
13516 (avx512f_expand<mode>): Removed.
13517 (<shift_insn><mode>3<mask_name>): Change predicate type.
13518
13519 2014-02-08 Jakub Jelinek <jakub@redhat.com>
13520
13521 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
13522 not at the end of datarefs vector use ordered_remove to avoid
13523 reordering datarefs vector.
13524
13525 PR c/59984
13526 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
13527 mark local addressable non-static vars as GOVD_PRIVATE
13528 instead of GOVD_LOCAL.
13529 * omp-low.c (lower_omp_for): Move gimple_bind_vars
13530 and BLOCK_VARS of gimple_bind_block to new_stmt rather
13531 than copying them.
13532
13533 PR middle-end/60092
13534 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
13535 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
13536 assume_aligned or alloc_align attributes.
13537 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
13538 arguments. Handle also assume_aligned and alloc_align attributes.
13539 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
13540 calls to functions with assume_aligned or alloc_align attributes.
13541 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
13542
13543 2014-02-08 Terry Guo <terry.guo@arm.com>
13544
13545 * doc/invoke.texi: Document ARM -march=armv7e-m.
13546
13547 2014-02-08 Jakub Jelinek <jakub@redhat.com>
13548
13549 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
13550 flag on __cilkrts_rethrow builtin.
13551
13552 PR ipa/60026
13553 * ipa-cp.c (determine_versionability): Fail at -O0
13554 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
13555 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
13556
13557 Revert:
13558 2014-02-04 Jakub Jelinek <jakub@redhat.com>
13559
13560 PR ipa/60026
13561 * tree-inline.c (copy_forbidden): Fail for
13562 __attribute__((optimize (0))) functions.
13563
13564 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
13565
13566 * varpool.c: Include pointer-set.h.
13567 (varpool_remove_unreferenced_decls): Variables in other partitions
13568 will not be output; be however careful to not lose information
13569 about partitioning.
13570
13571 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
13572
13573 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
13574 lookup in the vtable constructor.
13575
13576 2014-02-07 Jeff Law <law@redhat.com>
13577
13578 PR target/40977
13579 * config/m68k/m68k.md (ashldi_extsi): Turn into a
13580 define_insn_and_split.
13581
13582 * ipa-inline.c (inline_small_functions): Fix typos.
13583
13584 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13585
13586 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
13587 (s390_can_use_return_insn): Declare.
13588 * config/s390/s390.h (EPILOGUE_USES): Define.
13589 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
13590 instructions.
13591 (s390_chunkify_start): Handle return JUMP_LABELs.
13592 (s390_early_mach): Emit a main_pool instruction on the entry edge.
13593 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
13594 (s390_can_use_return_insn): New functions.
13595 (s390_fix_long_loop_prediction): Handle conditional returns.
13596 (TARGET_SET_UP_BY_PROLOGUE): Define.
13597 * config/s390/s390.md (ANY_RETURN): New code iterator.
13598 (*creturn, *csimple_return, return, simple_return): New patterns.
13599
13600 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13601
13602 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
13603 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
13604 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
13605 REG_CFA_RESTORE list when deciding not to restore a register.
13606
13607 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13608
13609 * config/s390/s390.c: Include tree-pass.h and context.h.
13610 (s390_early_mach): New function, split out from...
13611 (s390_emit_prologue): ...here.
13612 (pass_data_s390_early_mach): New pass structure.
13613 (pass_s390_early_mach): New class.
13614 (s390_option_override): Create and register early_mach pass.
13615 Move to end of file.
13616
13617 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13618
13619 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
13620 to match for the exit block.
13621
13622 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13623
13624 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
13625 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
13626 Reject misaligned operands.
13627
13628 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13629
13630 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
13631
13632 2014-02-07 Richard Biener <rguenther@suse.de>
13633
13634 PR middle-end/60092
13635 * gimple-low.c (lower_builtin_posix_memalign): New function.
13636 (lower_stmt): Call it to lower posix_memalign in a way
13637 to make alignment info accessible.
13638
13639 2014-02-07 Jakub Jelinek <jakub@redhat.com>
13640
13641 PR c++/60082
13642 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
13643 __builtin_setjmp_receiver.
13644
13645 2014-02-07 Richard Biener <rguenther@suse.de>
13646
13647 PR middle-end/60092
13648 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
13649 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
13650 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13651 Handle BUILT_IN_POSIX_MEMALIGN.
13652 (find_func_clobbers): Likewise.
13653 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13654 (call_may_clobber_ref_p_1): Likewise.
13655
13656 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
13657
13658 PR ipa/59918
13659 * ipa-devirt.c (record_target_from_binfo): Remove overactive
13660 sanity check.
13661
13662 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
13663
13664 PR ipa/59469
13665 * lto-cgraph.c (lto_output_node): Use
13666 symtab_get_symbol_partitioning_class.
13667 (lto_output_varpool_node): likewise.
13668 (symtab_get_symbol_partitioning_class): Move here from
13669 lto/lto-partition.c
13670 * cgraph.h (symbol_partitioning_class): Likewise.
13671 (symtab_get_symbol_partitioning_class): Declare.
13672
13673 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
13674
13675 * ggc.h (ggc_internal_cleared_alloc): New macro.
13676 * vec.h (vec_safe_copy): Handle memory stats.
13677 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
13678 * target-globals.c (save_target_globals): Likewise.
13679
13680 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
13681
13682 PR target/60077
13683 * expr.c (emit_move_resolve_push): Export; be bit more selective
13684 on when to clear alias set.
13685 * expr.h (emit_move_resolve_push): Declare.
13686 * function.h (struct function): Add tail_call_marked.
13687 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
13688 * config/i386/i386-protos.h (ix86_expand_push): Remove.
13689 * config/i386/i386.md (TImode move expander): De not call
13690 ix86_expand_push.
13691 (FP push expanders): Preserve memory attributes.
13692 * config/i386/sse.md (push<mode>1): Remove.
13693 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
13694 (ix86_expand_push): Remove.
13695 * config/i386/mmx.md (push<mode>1): Remove.
13696
13697 2014-02-06 Jakub Jelinek <jakub@redhat.com>
13698
13699 PR rtl-optimization/60030
13700 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
13701 lopart with paradoxical subreg before shifting it up by hprec.
13702
13703 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13704
13705 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
13706 Remove extra newline at end of file.
13707 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
13708 (arm_issue_rate): Handle cortexa57.
13709 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
13710 (cortex-a57.cortex-a53): Likewise.
13711
13712 2014-02-06 Jakub Jelinek <jakub@redhat.com>
13713
13714 PR target/59575
13715 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
13716 don't record in REG_FRAME_RELATED_EXPR registers not set in that
13717 bitmask.
13718 (arm_expand_prologue): Adjust all callers.
13719 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
13720 info, registers also at the lowest numbered registers side. Use
13721 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
13722 XEXP.
13723
13724 PR debug/59992
13725 * var-tracking.c (adjust_mems): Before adding a SET to
13726 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
13727
13728 2014-02-06 Alan Modra <amodra@gmail.com>
13729
13730 PR target/60032
13731 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
13732 change SDmode to DDmode when lra_in_progress.
13733
13734 2014-02-06 Jakub Jelinek <jakub@redhat.com>
13735
13736 PR middle-end/59150
13737 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
13738 free_data_ref on the dr first, and before goto again also set dr
13739 to the next dr. For simd_lane_access, free old datarefs[i] before
13740 overwriting it. For get_vectype_for_scalar_type failure, don't
13741 free_data_ref if simd_lane_access.
13742
13743 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
13744
13745 PR target/60062
13746 * tree.h (opts_for_fn): New inline function.
13747 (opt_for_fn): Define.
13748 * config/i386/i386.c (ix86_function_regparm): Use
13749 opt_for_fn (decl, optimize) instead of optimize.
13750
13751 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
13752
13753 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
13754 for SYMBOL_REF in large memory model.
13755
13756 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13757
13758 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
13759 and crypto support.
13760 (cortex-a57): Likewise.
13761 (cortex-a57.cortex-a53): Likewise.
13762
13763 2014-02-06 Yury Gribov <y.gribov@samsung.com>
13764 Kugan Vivekanandarajah <kuganv@linaro.org>
13765
13766 * config/arm/arm.c (arm_vector_alignment_reachable): Check
13767 unaligned_access.
13768 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
13769
13770 2014-02-06 Richard Biener <rguenther@suse.de>
13771
13772 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
13773 set_loop_copy and initialize_original_copy_tables.
13774
13775 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
13776
13777 * config/aarch64/aarch64-simd.md
13778 (aarch64_ashr_simddi): Change QI to SI.
13779
13780 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
13781 Jakub Jelinek <jakub@redhat.com>
13782
13783 PR middle-end/60013
13784 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
13785 of the dataflow.
13786
13787 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13788
13789 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
13790 CODE_FOR_altivec_vpku[hw]um to
13791 CODE_FOR_altivec_vpku[hw]um_direct.
13792 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
13793 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
13794 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
13795 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
13796
13797 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13798
13799 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
13800 generation for -maltivec=be.
13801 (altivec_vsumsws): Simplify redundant test.
13802
13803 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13804
13805 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
13806 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
13807 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
13808 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
13809 gen_altivec_vpkuwum.
13810 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
13811 BYTES_BIG_ENDIAN.
13812 (altivec_vpks<VI_char>ss): Likewise.
13813 (altivec_vpks<VI_char>us): Likewise.
13814 (altivec_vpku<VI_char>us): Likewise.
13815 (altivec_vpku<VI_char>um): Likewise.
13816 (altivec_vpku<VI_char>um_direct): New (copy of
13817 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
13818 internal use).
13819 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
13820 target is little endian and -maltivec=be is not specified.
13821 (*altivec_vupkhs<VU_char>_direct): New (copy of
13822 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
13823 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
13824 target is little endian and -maltivec=be is not specified.
13825 (*altivec_vupkls<VU_char>_direct): New (copy of
13826 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
13827 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
13828 little endian and -maltivec=be is not specified.
13829 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
13830 little endian and -maltivec=be is not specified.
13831
13832 2014-02-05 Richard Henderson <rth@redhat.com>
13833
13834 PR debug/52727
13835 * combine-stack-adj.c: Revert r206943.
13836 * sched-int.h (struct deps_desc): Add last_args_size.
13837 * sched-deps.c (init_deps): Initialize it.
13838 (sched_analyze_insn): Add OUTPUT dependencies between insns that
13839 contain REG_ARGS_SIZE notes.
13840
13841 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
13842
13843 * lto-cgraph.c (asm_nodes_output): Make global.
13844 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
13845 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
13846 (driver_handle_option): Handle OPT_fwpa.
13847
13848 2014-02-05 Jakub Jelinek <jakub@redhat.com>
13849
13850 PR ipa/59947
13851 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
13852 a comment typo and formatting issue. If odr_hash hasn't been
13853 created, return vNULL and set *completep to false.
13854
13855 PR middle-end/57499
13856 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
13857 bb with no successors.
13858
13859 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
13860
13861 PR target/59718
13862 * doc/invoke.texi (-march): Clarify documentation for ARM.
13863 (-mtune): Likewise.
13864 (-mcpu): Likewise.
13865
13866 2014-02-05 Richard Biener <rguenther@suse.de>
13867
13868 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
13869 when not vectorizing because of too many alias checks.
13870 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
13871 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
13872
13873 2014-02-05 Nick Clifton <nickc@redhat.com>
13874
13875 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
13876 accept extended registers in any mode when compiling for the MN10300.
13877
13878 2014-02-05 Yury Gribov <y.gribov@samsung.com>
13879
13880 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
13881 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
13882 sanitization attributes.
13883 (can_inline_edge_p): Likewise.
13884 (sanitize_attrs_match_for_inline_p): New function.
13885
13886 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
13887
13888 * ipa-prop.c (detect_type_change): Shor circuit testing of
13889 type changes on THIS pointer.
13890
13891 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
13892
13893 PR target/59777
13894 * config/pa/pa.c (legitimize_tls_address): Return original address
13895 if not passed a SYMBOL_REF rtx.
13896 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
13897 addresses.
13898 (pa_emit_move_sequence): Simplify TLS source operands.
13899 (pa_legitimate_constant_p): Reject all TLS constants.
13900 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
13901 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
13902
13903 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
13904
13905 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
13906 groups when we know they are controlled by LTO.
13907 * varasm.c (default_binds_local_p_1): If object is in other partition,
13908 it will be resolved locally.
13909
13910 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13911
13912 * config/host-linux.c (linux_gt_pch_use_address): Don't
13913 use SSIZE_MAX because it is not always defined.
13914
13915 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
13916
13917 PR bootstrap/59913
13918 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
13919 threshold for pseudo splitting.
13920 (update_ebb_live_info): Process call argument hard registers and
13921 hard registers from insn definition too.
13922 (max_small_class_regs_num): New constant.
13923 (inherit_in_ebb): Update live hard regs through EBBs. Update
13924 reloads_num only for small register classes. Don't split for
13925 outputs of jumps.
13926
13927 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
13928
13929 PR ipa/60058
13930 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
13931 is non-null.
13932
13933 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
13934
13935 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
13936 visibility is safe.
13937
13938 2014-02-04 Marek Polacek <polacek@redhat.com>
13939
13940 * gdbinit.in (pel): Define.
13941
13942 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
13943
13944 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
13945 behavior.
13946
13947 2014-02-04 Richard Biener <rguenther@suse.de>
13948
13949 PR lto/59723
13950 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
13951 in function context local.
13952 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
13953 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
13954 similar to LTO_imported_decl_ref.
13955
13956 2014-02-04 Jakub Jelinek <jakub@redhat.com>
13957
13958 PR tree-optimization/60002
13959 * cgraphclones.c (build_function_decl_skip_args): Clear
13960 DECL_LANG_SPECIFIC.
13961
13962 PR tree-optimization/60023
13963 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
13964 false to gsi_replace.
13965 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
13966 has been in some EH region and vec_stmt could throw, add
13967 vec_stmt into the same EH region.
13968 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
13969 has no lhs, ignore it.
13970 * internal-fn.c (expand_MASK_LOAD): Likewise.
13971
13972 PR ipa/60026
13973 * tree-inline.c (copy_forbidden): Fail for
13974 __attribute__((optimize (0))) functions.
13975
13976 PR other/58712
13977 * omp-low.c (simd_clone_struct_copy): If from->inbranch
13978 is set, copy one less argument.
13979 (expand_simd_clones): Don't subtract clone_info->inbranch
13980 from simd_clone_struct_alloc argument.
13981
13982 PR rtl-optimization/57915
13983 * recog.c (simplify_while_replacing): If all unary/binary/relational
13984 operation arguments are constant, attempt to simplify those.
13985
13986 PR middle-end/59261
13987 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
13988 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
13989
13990 2014-02-04 Richard Biener <rguenther@suse.de>
13991
13992 PR tree-optimization/60012
13993 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
13994 TBAA disambiguation to all DDRs.
13995
13996 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13997
13998 PR target/59788
13999 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
14000 (LINK_SPEC): Use it for -shared, -shared-libgcc.
14001
14002 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
14003
14004 PR ipa/59882
14005 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
14006
14007 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
14008
14009 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
14010 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
14011
14012 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
14013
14014 PR ipa/59831
14015 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
14016 to figure out targets of polymorphic calls with known decl.
14017 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14018 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
14019 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
14020 (get_polymorphic_call_info): ... here.
14021 (get_polymorphic_call_info_from_invariant): New function.
14022
14023 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
14024
14025 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
14026 lookup via vtable pointer; check for type consistency
14027 and turn inconsitent facts into UNREACHABLE.
14028 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14029 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
14030 type inconsistent querries; return UNREACHABLE instead.
14031
14032 2014-02-03 Richard Henderson <rth@twiddle.net>
14033
14034 PR tree-opt/59924
14035 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
14036 already processed this node.
14037 (normalize_one_pred_1): Pass along mark_set.
14038 (normalize_one_pred): Create and destroy a pointer_set_t.
14039 (normalize_one_pred_chain): Likewise.
14040
14041 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
14042
14043 PR gcov-profile/58602
14044 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
14045
14046 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
14047
14048 PR ipa/59831
14049 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
14050 -fno-devirtualize; try to devirtualize by the knowledge of
14051 virtual table pointer given by aggregate propagation.
14052 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14053 (ipa_print_node_jump_functions): Dump also offset that
14054 is relevant for polymorphic calls.
14055 (determine_known_aggregate_parts): Add arg_type parameter; use it
14056 instead of determining the type from pointer type.
14057 (ipa_compute_jump_functions_for_edge): Update call of
14058 determine_known_aggregate_parts.
14059 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
14060 (gimple_get_virt_method_for_binfo): ... here; simplify using
14061 vtable_pointer_value_to_vtable.
14062 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
14063 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
14064 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
14065 (vtable_pointer_value_to_vtable): Break out from ...; handle also
14066 POINTER_PLUS_EXPR.
14067 (vtable_pointer_value_to_binfo): ... here.
14068 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
14069
14070 2014-02-03 Teresa Johnson <tejohnson@google.com>
14071
14072 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
14073 redef of outer loop index variable.
14074
14075 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
14076
14077 PR c++/53017
14078 PR c++/59211
14079 * doc/extend.texi (Function Attributes): Typo.
14080
14081 2014-02-03 Cong Hou <congh@google.com>
14082
14083 PR tree-optimization/60000
14084 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
14085 if the vectorized statement is a store. A store statement can only
14086 appear at the end of pattern statements.
14087
14088 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
14089
14090 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
14091 (ix86_option_override_internal): Default long double to 64-bit for
14092 32-bit Bionic and to 128-bit for 64-bit Bionic.
14093
14094 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
14095 TARGET_LONG_DOUBLE_128 is true.
14096 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
14097
14098 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
14099 (mlong-double-64): Negate -mlong-double-128.
14100 (mlong-double-128): New option.
14101
14102 * config/i386/i386-c.c (ix86_target_macros): Define
14103 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
14104
14105 * doc/invoke.texi: Document -mlong-double-128.
14106
14107 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
14108
14109 PR rtl-optimization/60024
14110 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
14111
14112 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
14113
14114 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
14115
14116 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
14117
14118 PR rtl-optimization/57662
14119 * sel-sched.c (code_motion_path_driver): Do not mark already not
14120 existing blocks in the visiting bitmap.
14121
14122 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
14123
14124 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
14125 on the insn being emitted.
14126
14127 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
14128 Will Deacon <will.deacon@arm.com>
14129
14130 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
14131
14132 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14133
14134 * config/arm/arm-tables.opt: Regenerate.
14135
14136 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14137
14138 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
14139 for vector types other than V16QImode.
14140 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
14141 define_expand, and call altivec_expand_vec_perm_le when producing
14142 code with little endian element order.
14143 (*altivec_vperm_<mode>_internal): New insn having previous
14144 behavior of altivec_vperm_<mode>.
14145 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
14146 altivec_expand_vec_perm_le when producing code with little endian
14147 element order.
14148 (*altivec_vperm_<mode>_uns_internal): New insn having previous
14149 behavior of altivec_vperm_<mode>_uns.
14150
14151 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14152
14153 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
14154 (altivec_vsumsws): Add handling for -maltivec=be with a little
14155 endian target.
14156 (altivec_vsumsws_direct): New.
14157 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
14158 gen_altivec_vsumsws.
14159
14160 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
14161
14162 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
14163 vtable_pointer_value_to_binfo): New functions.
14164 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
14165 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
14166
14167 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
14168
14169 * config/nios2/nios2.md (load_got_register): Initialize GOT
14170 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
14171 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
14172
14173 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
14174
14175 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
14176 preserverd by passthrough, do not propagate the type.
14177
14178 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
14179
14180 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
14181 (mips_atomic_assign_expand_fenv): New function.
14182 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
14183
14184 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
14185
14186 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
14187 (__builtin_mips_set_fcsr): Likewise.
14188 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
14189 MIPS_USI_FTYPE_VOID.
14190 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
14191 (mips16_expand_set_fcsr): Likewise.
14192 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
14193 (mips16_set_fcsr_stub): Likewise.
14194 (mips16_get_fcsr_one_only_stub): New class.
14195 (mips16_set_fcsr_one_only_stub): Likewise.
14196 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
14197 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
14198 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
14199 (hard_float): New availability predicate.
14200 (mips_builtins): Add get_fcsr and set_fcsr.
14201 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
14202 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
14203 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
14204 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
14205 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
14206 patterns.
14207
14208 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
14209
14210 * config/mips/mips.c (mips_one_only_stub): New class.
14211 (mips_need_mips16_rdhwr_p): Replace with...
14212 (mips16_rdhwr_stub): ...this new variable.
14213 (mips16_stub_call_address): New function.
14214 (mips16_rdhwr_one_only_stub): New class.
14215 (mips_expand_thread_pointer): Use mips16_stub_call_address.
14216 (mips_output_mips16_rdhwr): Delete.
14217 (mips_finish_stub): New function.
14218 (mips_code_end): Use it to handle rdhwr stubs.
14219
14220 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
14221
14222 PR target/60017
14223 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
14224 when calculating size of integer atomic types.
14225
14226 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
14227
14228 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
14229
14230 2014-02-01 Jakub Jelinek <jakub@redhat.com>
14231
14232 PR tree-optimization/60003
14233 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
14234 * profile.c (branch_prob): Use gimple_call_builtin_p
14235 to check for BUILT_IN_SETJMP_RECEIVER.
14236 * tree-inline.c (copy_bb): Call notice_special_calls.
14237
14238 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
14239
14240 PR bootstrap/59985
14241 * lra-constraints.c (process_alt_operands): Update reload_sum only
14242 on the first pass.
14243
14244 2014-01-31 Richard Henderson <rth@redhat.com>
14245
14246 PR middle-end/60004
14247 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
14248 until after else_eh is processed.
14249
14250 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
14251
14252 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
14253 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
14254 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
14255 in smmintrin.h, remove them.
14256 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
14257 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
14258 * config/i386/i386.md (ROUND_SAE): Fix value.
14259 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
14260 (const48_operand): New.
14261 * config/i386/subst.md (round), (round_expand): Use
14262 const_4_or_8_to_11_operand.
14263 (round_saeonly), (round_saeonly_expand): Use const48_operand.
14264
14265 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
14266
14267 * config/i386/constraints.md (Yk): Swap meaning with k.
14268 * config/i386/i386.md (movhi_internal): Change Yk to k.
14269 (movqi_internal): Ditto.
14270 (*k<logic><mode>): Ditto.
14271 (*andhi_1): Ditto.
14272 (*andqi_1): Ditto.
14273 (kandn<mode>): Ditto.
14274 (*<code>hi_1): Ditto.
14275 (*<code>qi_1): Ditto.
14276 (kxnor<mode>): Ditto.
14277 (kortestzhi): Ditto.
14278 (kortestchi): Ditto.
14279 (kunpckhi): Ditto.
14280 (*one_cmplhi2_1): Ditto.
14281 (*one_cmplqi2_1): Ditto.
14282 * config/i386/sse.md (): Change k to Yk.
14283 (avx512f_load<mode>_mask): Ditto.
14284 (avx512f_blendm<mode>): Ditto.
14285 (avx512f_store<mode>_mask): Ditto.
14286 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
14287 (avx512f_storedqu<mode>_mask): Ditto.
14288 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
14289 Ditto.
14290 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
14291 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
14292 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
14293 (avx512f_maskcmp<mode>3): Ditto.
14294 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
14295 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
14296 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
14297 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
14298 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
14299 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
14300 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
14301 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
14302 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
14303 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
14304 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
14305 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
14306 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
14307 (vec_extract_lo_<mode>_maskm): Ditto.
14308 (vec_extract_hi_<mode>_maskm): Ditto.
14309 (avx512f_vternlog<mode>_mask): Ditto.
14310 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
14311 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
14312 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
14313 (avx512f_<code>v8div16qi2_mask): Ditto.
14314 (avx512f_<code>v8div16qi2_mask_store): Ditto.
14315 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
14316 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
14317 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
14318 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
14319 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
14320 (*avx512pf_gatherpf<mode>df_mask): Ditto.
14321 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
14322 (*avx512pf_scatterpf<mode>df_mask): Ditto.
14323 (avx512cd_maskb_vec_dupv8di): Ditto.
14324 (avx512cd_maskw_vec_dupv16si): Ditto.
14325 (avx512f_vpermi2var<mode>3_maskz): Ditto.
14326 (avx512f_vpermi2var<mode>3_mask): Ditto.
14327 (avx512f_vpermi2var<mode>3_mask): Ditto.
14328 (avx512f_vpermt2var<mode>3_maskz): Ditto.
14329 (*avx512f_gathersi<mode>): Ditto.
14330 (*avx512f_gathersi<mode>_2): Ditto.
14331 (*avx512f_gatherdi<mode>): Ditto.
14332 (*avx512f_gatherdi<mode>_2): Ditto.
14333 (*avx512f_scattersi<mode>): Ditto.
14334 (*avx512f_scatterdi<mode>): Ditto.
14335 (avx512f_compress<mode>_mask): Ditto.
14336 (avx512f_compressstore<mode>_mask): Ditto.
14337 (avx512f_expand<mode>_mask): Ditto.
14338 * config/i386/subst.md (mask): Change k to Yk.
14339 (mask_scalar_merge): Ditto.
14340 (sd): Ditto.
14341
14342 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
14343
14344 * doc/extend.texi (Vector Extensions): Document ?: in C++.
14345
14346 2014-01-31 Richard Biener <rguenther@suse.de>
14347
14348 PR middle-end/59990
14349 * builtins.c (fold_builtin_memory_op): Make sure to not
14350 use a floating-point mode or a boolean or enumeral type for
14351 the copy operation.
14352
14353 2014-01-30 DJ Delorie <dj@redhat.com>
14354
14355 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
14356 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
14357 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
14358 whenever main() has an epilogue.
14359
14360 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14361
14362 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
14363 unused variable "field".
14364 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
14365 (vsx_mergeh_<mode>): Likewise.
14366 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
14367 (altivec_vmrghh): Likewise.
14368 (altivec_vmrghw): Likewise.
14369 (altivec_vmrglb): Likewise.
14370 (altivec_vmrglh): Likewise.
14371 (altivec_vmrglw): Likewise.
14372 (altivec_vspltb): Add missing uses.
14373 (altivec_vsplth): Likewise.
14374 (altivec_vspltw): Likewise.
14375 (altivec_vspltsf): Likewise.
14376
14377 2014-01-30 Jakub Jelinek <jakub@redhat.com>
14378
14379 PR target/59923
14380 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
14381 frame related instructions.
14382
14383 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
14384
14385 PR rtl-optimization/59959
14386 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
14387 any reload of register whose subreg is invalid.
14388
14389 2014-01-30 Jakub Jelinek <jakub@redhat.com>
14390
14391 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
14392 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
14393 Add missing return type - void.
14394
14395 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14396
14397 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
14398 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
14399 remove element index adjustment for endian (now handled in vsx.md
14400 and altivec.md).
14401 (altivec_expand_vec_perm_const): Use
14402 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
14403 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
14404 (vsx_xxspltw_<mode>): Adjust element index for little endian.
14405 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
14406 define_expand and a new define_insn *altivec_vspltb_internal;
14407 adjust for -maltivec=be on a little endian target.
14408 (altivec_vspltb_direct): New.
14409 (altivec_vsplth): Divide into a define_expand and a new
14410 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
14411 little endian target.
14412 (altivec_vsplth_direct): New.
14413 (altivec_vspltw): Divide into a define_expand and a new
14414 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
14415 little endian target.
14416 (altivec_vspltw_direct): New.
14417 (altivec_vspltsf): Divide into a define_expand and a new
14418 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
14419 a little endian target.
14420
14421 2014-01-30 Richard Biener <rguenther@suse.de>
14422
14423 PR tree-optimization/59993
14424 * tree-ssa-forwprop.c (associate_pointerplus): Check we
14425 can propagate form the earlier stmt and avoid the transform
14426 when the intermediate result is needed.
14427
14428 2014-01-30 Alangi Derick <alangiderick@gmail.com>
14429
14430 * README.Portability: Fix typo.
14431
14432 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
14433
14434 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
14435 comparison_operator with ordered_comparison_operator.
14436
14437 2014-01-30 Nick Clifton <nickc@redhat.com>
14438
14439 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
14440 Rename to mn10300_store_multiple_regs.
14441 * config/mn10300/mn10300.c: Likewise.
14442 * config/mn10300/mn10300.md (store_movm): Fix typo: call
14443 store_multiple_regs.
14444 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
14445 Call mn10300_store_multiple_regs.
14446
14447 2014-01-30 Nick Clifton <nickc@redhat.com>
14448 DJ Delorie <dj@redhat.com>
14449
14450 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
14451 %fp 2 to keep registers after it properly word-aligned.
14452 (rl78_alloc_physical_registers_umul): Handle the case where both
14453 input operands are the same.
14454
14455 2014-01-30 Richard Biener <rguenther@suse.de>
14456
14457 PR tree-optimization/59903
14458 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
14459 check properly.
14460
14461 2014-01-30 Jason Merrill <jason@redhat.com>
14462
14463 PR c++/59633
14464 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
14465
14466 PR c++/59645
14467 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
14468
14469 2014-01-30 Richard Biener <rguenther@suse.de>
14470
14471 PR tree-optimization/59951
14472 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
14473
14474 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
14475
14476 PR target/59784
14477 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
14478 SFmode to DFmode case.
14479
14480 2014-01-29 DJ Delorie <dj@redhat.com>
14481
14482 * config/msp430/msp430.opt (-minrt): New.
14483 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
14484 if -minrt given.
14485 (ENDFILE_SPEC): Likewise.
14486
14487 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
14488
14489 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
14490 (estimate_function_body_sizes): Use it.
14491
14492 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
14493
14494 PR c++/58561
14495 * dwarf2out.c (is_cxx_auto): New.
14496 (is_base_type): Use it.
14497 (gen_type_die_with_usage): Likewise.
14498
14499 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14500
14501 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
14502 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
14503 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
14504 -maltivec=be with LE targets.
14505 (vsx_mergeh_<mode>): Likewise.
14506 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
14507 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
14508 (altivec_vmrghb): Replace with define_expand and new
14509 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
14510 (altivec_vmrghb_direct): New define_insn.
14511 (altivec_vmrghh): Replace with define_expand and new
14512 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
14513 (altivec_vmrghh_direct): New define_insn.
14514 (altivec_vmrghw): Replace with define_expand and new
14515 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
14516 (altivec_vmrghw_direct): New define_insn.
14517 (*altivec_vmrghsf): Adjust for endianness.
14518 (altivec_vmrglb): Replace with define_expand and new
14519 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
14520 (altivec_vmrglb_direct): New define_insn.
14521 (altivec_vmrglh): Replace with define_expand and new
14522 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
14523 (altivec_vmrglh_direct): New define_insn.
14524 (altivec_vmrglw): Replace with define_expand and new
14525 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
14526 (altivec_vmrglw_direct): New define_insn.
14527 (*altivec_vmrglsf): Adjust for endianness.
14528 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
14529 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
14530 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
14531 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
14532 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
14533 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
14534 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
14535 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
14536
14537 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
14538
14539 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
14540 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
14541 whitespace.
14542
14543 2014-01-29 Richard Biener <rguenther@suse.de>
14544
14545 PR tree-optimization/58742
14546 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
14547 associate_pointerplus_align.
14548 (associate_pointerplus_diff): New function.
14549 (associate_pointerplus): Likewise. Call associate_pointerplus_align
14550 and associate_pointerplus_diff.
14551
14552 2014-01-29 Richard Biener <rguenther@suse.de>
14553
14554 * lto-streamer.h (LTO_major_version): Bump to 3.
14555 (LTO_minor_version): Reset to 0.
14556
14557 2014-01-29 Renlin Li <Renlin.Li@arm.com>
14558
14559 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
14560 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
14561 (arm_file_start): Generate correct asm header for armv7ve.
14562 * config/arm/bpabi.h: Add multilib support for armv7ve.
14563 * config/arm/driver-arm.c: Change the architectures of cortex-a7
14564 and cortex-a15 to armv7ve.
14565 * config/arm/t-aprofile: Add multilib support for armv7ve.
14566 * doc/invoke.texi: Document -march=armv7ve.
14567
14568 2014-01-29 Richard Biener <rguenther@suse.de>
14569
14570 PR tree-optimization/58742
14571 * tree-ssa-forwprop.c (associate_plusminus): Return true
14572 if we changed sth, defer EH cleanup to ...
14573 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
14574 (simplify_mult): New function.
14575
14576 2014-01-29 Jakub Jelinek <jakub@redhat.com>
14577
14578 PR middle-end/59917
14579 PR tree-optimization/59920
14580 * tree.c (build_common_builtin_nodes): Remove
14581 __builtin_setjmp_dispatcher initialization.
14582 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
14583 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
14584 instead of gsi_after_labels + manually skipping debug stmts.
14585 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
14586 ignore bbs with IFN_ABNORMAL_DISPATCHER.
14587 * tree-inline.c (copy_edges_for_bb): Remove
14588 can_make_abnormal_goto argument, instead add abnormal_goto_dest
14589 argument. Ignore computed_goto_p stmts. Don't call
14590 make_abnormal_goto_edges. If a call might need abnormal edges
14591 for non-local gotos, see if it already has an edge to
14592 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
14593 with true argument, don't do anything then, otherwise add
14594 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
14595 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
14596 caller.
14597 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
14598 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
14599 (lower_stmt): Don't set data->calls_builtin_setjmp.
14600 (lower_builtin_setjmp): Adjust comment.
14601 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
14602 * tree-cfg.c (found_computed_goto): Remove.
14603 (factor_computed_gotos): Remove.
14604 (make_goto_expr_edges): Return bool, true for computed gotos.
14605 Don't call make_abnormal_goto_edges.
14606 (build_gimple_cfg): Don't set found_computed_goto, don't call
14607 factor_computed_gotos.
14608 (computed_goto_p): No longer static.
14609 (make_blocks): Don't set found_computed_goto.
14610 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
14611 (make_edges): If make_goto_expr_edges returns true, push bb
14612 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
14613 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
14614 vector. Record mapping between bbs and OpenMP regions if there
14615 are any, adjust make_gimple_omp_edges caller. Call
14616 handle_abnormal_edges.
14617 (make_abnormal_goto_edges): Remove.
14618 * tree-cfg.h (make_abnormal_goto_edges): Remove.
14619 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
14620 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
14621 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
14622 * internal-fn.def (ABNORMAL_DISPATCHER): New.
14623 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
14624 filling *region also set *region_idx to (*region)->entry->index.
14625
14626 PR other/58712
14627 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
14628 For REGs set ORIGINAL_REGNO.
14629
14630 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
14631
14632 * doc/md.texi: Mention that a target shouldn't implement
14633 vec_widen_(s|u)mul_even/odd pair if it is less efficient
14634 than hi/lo pair.
14635
14636 2014-01-29 Jakub Jelinek <jakub@redhat.com>
14637
14638 PR tree-optimization/59594
14639 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
14640 a copy of the datarefs vector rather than the vector itself.
14641
14642 2014-01-28 Jason Merrill <jason@redhat.com>
14643
14644 PR c++/53756
14645 * dwarf2out.c (auto_die): New static.
14646 (gen_type_die_with_usage): Handle C++1y 'auto'.
14647 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
14648 on definition.
14649
14650 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
14651
14652 PR target/59672
14653 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
14654 (SPEC_X32): Likewise.
14655 (SPEC_64): Likewise.
14656 * config/i386/i386.c (ix86_option_override_internal): Turn off
14657 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
14658 for TARGET_16BIT.
14659 (x86_file_start): Output .code16gcc for TARGET_16BIT.
14660 * config/i386/i386.h (TARGET_16BIT): New macro.
14661 (TARGET_16BIT_P): Likewise.
14662 * config/i386/i386.opt: Add m16.
14663 * doc/invoke.texi: Document -m16.
14664
14665 2014-01-28 Jakub Jelinek <jakub@redhat.com>
14666
14667 PR preprocessor/59935
14668 * input.c (location_get_source_line): Bail out on when line number
14669 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
14670
14671 2014-01-28 Richard Biener <rguenther@suse.de>
14672
14673 PR tree-optimization/58742
14674 * tree-ssa-forwprop.c (associate_plusminus): Handle
14675 pointer subtraction of the form (T)(P + A) - (T)P.
14676
14677 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14678
14679 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
14680 at const_int_cost.
14681
14682 2014-01-28 Richard Biener <rguenther@suse.de>
14683
14684 Revert
14685 2014-01-28 Richard Biener <rguenther@suse.de>
14686
14687 PR rtl-optimization/45364
14688 PR rtl-optimization/59890
14689 * var-tracking.c (local_get_addr_clear_given_value): Handle
14690 already cleared slot.
14691 (val_reset): Handle not allocated local_get_addr_cache.
14692 (vt_find_locations): Use post-order on the inverted CFG.
14693
14694 2014-01-28 Richard Biener <rguenther@suse.de>
14695
14696 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
14697
14698 2014-01-28 Richard Biener <rguenther@suse.de>
14699
14700 PR rtl-optimization/45364
14701 PR rtl-optimization/59890
14702 * var-tracking.c (local_get_addr_clear_given_value): Handle
14703 already cleared slot.
14704 (val_reset): Handle not allocated local_get_addr_cache.
14705 (vt_find_locations): Use post-order on the inverted CFG.
14706
14707 2014-01-28 Alan Modra <amodra@gmail.com>
14708
14709 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
14710 * configure.ac <recursive call for build != host>: Define
14711 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
14712 and LD_FOR_BUILD too.
14713 * configure: Regenerate.
14714
14715 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
14716
14717 * config/i386/i386.c (get_builtin_code_for_version): Separate
14718 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
14719 Broadwell from Haswell.
14720
14721 2014-01-27 Steve Ellcey <sellcey@mips.com>
14722
14723 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
14724 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
14725 * config/mips/mips.c (mips_option_override): Change setting
14726 of TARGET_DSP.
14727 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
14728 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
14729 Change from Mask to Var.
14730
14731 2014-01-27 Jeff Law <law@redhat.com>
14732
14733 * ipa-inline.c (inline_small_functions): Fix typo.
14734
14735 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
14736
14737 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
14738 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
14739 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
14740 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
14741 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
14742 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
14743 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
14744 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
14745 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
14746 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
14747 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
14748 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
14749 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
14750 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
14751 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
14752 (_mm512_storeu_epi64): Ditto.
14753 (_mm512_cmpge_epi32_mask): Ditto.
14754 (_mm512_cmpge_epu32_mask): Ditto.
14755 (_mm512_cmpge_epi64_mask): Ditto.
14756 (_mm512_cmpge_epu64_mask): Ditto.
14757 (_mm512_cmple_epi32_mask): Ditto.
14758 (_mm512_cmple_epu32_mask): Ditto.
14759 (_mm512_cmple_epi64_mask): Ditto.
14760 (_mm512_cmple_epu64_mask): Ditto.
14761 (_mm512_cmplt_epi32_mask): Ditto.
14762 (_mm512_cmplt_epu32_mask): Ditto.
14763 (_mm512_cmplt_epi64_mask): Ditto.
14764 (_mm512_cmplt_epu64_mask): Ditto.
14765 (_mm512_cmpneq_epi32_mask): Ditto.
14766 (_mm512_cmpneq_epu32_mask): Ditto.
14767 (_mm512_cmpneq_epi64_mask): Ditto.
14768 (_mm512_cmpneq_epu64_mask): Ditto.
14769 (_mm512_expand_pd): Ditto.
14770 (_mm512_expand_ps): Ditto.
14771 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
14772 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
14773 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
14774 * config/i386/i386.c (ix86_builtins): Add
14775 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
14776 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
14777 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
14778 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
14779 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
14780 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
14781 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
14782 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
14783 IX86_BUILTIN_PMOVUSQW512_MEM.
14784 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
14785 __builtin_ia32_pmovsqd512mem_mask,
14786 __builtin_ia32_pmovqd512mem_mask,
14787 __builtin_ia32_pmovusqw512mem_mask,
14788 __builtin_ia32_pmovsqw512mem_mask,
14789 __builtin_ia32_pmovqw512mem_mask,
14790 __builtin_ia32_pmovusdw512mem_mask,
14791 __builtin_ia32_pmovsdw512mem_mask,
14792 __builtin_ia32_pmovdw512mem_mask,
14793 __builtin_ia32_pmovqb512mem_mask,
14794 __builtin_ia32_pmovusqb512mem_mask,
14795 __builtin_ia32_pmovsqb512mem_mask,
14796 __builtin_ia32_pmovusdb512mem_mask,
14797 __builtin_ia32_pmovsdb512mem_mask,
14798 __builtin_ia32_pmovdb512mem_mask.
14799 (bdesc_args): Add __builtin_ia32_expanddf512,
14800 __builtin_ia32_expandsf512.
14801 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
14802 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
14803 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
14804 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
14805 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
14806 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
14807 (avx512f_<code>v8div16qi2_mask_store): This.
14808 (avx512f_expand<mode>): New.
14809
14810 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
14811
14812 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
14813 New.
14814 (_mm512_mask_prefetch_i64gather_pd): Ditto.
14815 (_mm512_prefetch_i32scatter_pd): Ditto.
14816 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
14817 (_mm512_prefetch_i64scatter_pd): Ditto.
14818 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
14819 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
14820 (_mm512_mask_prefetch_i64gather_ps): Ditto.
14821 (_mm512_prefetch_i32scatter_ps): Ditto.
14822 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
14823 (_mm512_prefetch_i64scatter_ps): Ditto.
14824 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
14825 * config/i386/i386-builtin-types.def: Define
14826 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
14827 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
14828 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
14829 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
14830 IX86_BUILTIN_SCATTERPFQPD.
14831 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
14832 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
14833 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
14834 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
14835 __builtin_ia32_scatterpfqps.
14836 (ix86_expand_builtin): Expand new built-ins.
14837 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
14838 fix memory access data type.
14839 (*avx512pf_gatherpf<mode>_mask): Ditto.
14840 (*avx512pf_gatherpf<mode>): Ditto.
14841 (avx512pf_scatterpf<mode>): Ditto.
14842 (*avx512pf_scatterpf<mode>_mask): Ditto.
14843 (*avx512pf_scatterpf<mode>): Ditto.
14844 (GATHER_SCATTER_SF_MEM_MODE): New.
14845 (avx512pf_gatherpf<mode>df): Ditto.
14846 (*avx512pf_gatherpf<mode>df_mask): Ditto.
14847 (*avx512pf_scatterpf<mode>df): Ditto.
14848
14849 2014-01-27 Jakub Jelinek <jakub@redhat.com>
14850
14851 PR bootstrap/59934
14852 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
14853 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
14854 reached.
14855
14856 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
14857
14858 * common/config/arm/arm-common.c
14859 (arm_rewrite_mcpu): Handle multiple names.
14860 * config/arm/arm.h
14861 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
14862
14863 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
14864
14865 * gimple-builder.h (create_gimple_tmp): Delete.
14866
14867 2014-01-27 Christian Bruel <christian.bruel@st.com>
14868
14869 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
14870 words comparisons.
14871
14872 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
14873
14874 * config/pa/pa.md (call): Generate indirect long calls to non-local
14875 functions when outputing 32-bit code.
14876 (call_value): Likewise except for special call to buggy powf function.
14877
14878 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
14879 portable runtime and PIC indirect calls.
14880 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
14881 and PIC call sequences. Use ldo instead of blr to set return register
14882 in PIC call sequence.
14883
14884 2014-01-25 Walter Lee <walt@tilera.com>
14885
14886 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
14887 avoid clobbering a live register.
14888
14889 2014-01-25 Walter Lee <walt@tilera.com>
14890
14891 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
14892 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
14893 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
14894 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
14895
14896 2014-01-25 Walter Lee <walt@tilera.com>
14897
14898 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
14899 arguments on even registers.
14900 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
14901 STACK_BOUNDARY.
14902 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
14903 (BIGGEST_ALIGNMENT): Ditto.
14904 (BIGGEST_FIELD_ALIGNMENT): Ditto.
14905
14906 2014-01-25 Walter Lee <walt@tilera.com>
14907
14908 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
14909 insns before bundling.
14910 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
14911
14912 2014-01-25 Walter Lee <walt@tilera.com>
14913
14914 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
14915 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
14916 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
14917
14918 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
14919
14920 * config/mips/constraints.md (kl): Delete.
14921 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
14922 define expands, using...
14923 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
14924 instructions for MIPS16.
14925 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
14926 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
14927
14928 2014-01-25 Walter Lee <walt@tilera.com>
14929
14930 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
14931 (clzdi2): Ditto.
14932 (ffsdi2): Ditto.
14933
14934 2014-01-25 Walter Lee <walt@tilera.com>
14935
14936 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
14937 (TARGET_EXPAND_TO_RTL_HOOK): Define.
14938
14939 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
14940
14941 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
14942 Handle XOR.
14943
14944 2014-01-25 Jakub Jelinek <jakub@redhat.com>
14945
14946 * print-rtl.c (in_call_function_usage): New var.
14947 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
14948 EXPR_LIST mode as mode and not as reg note name.
14949
14950 PR middle-end/59561
14951 * cfgloopmanip.c (copy_loop_info): If
14952 loop->warned_aggressive_loop_optimizations, make sure
14953 the flag is set in target loop too.
14954
14955 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
14956
14957 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
14958 flag_cilkplus.
14959 * builtins.def: Likewise.
14960 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
14961 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
14962 * ira.c (ira_setup_eliminable_regset): Likewise.
14963 * omp-low.c (gate_expand_omp): Likewise.
14964 (execute_lower_omp): Likewise.
14965 (diagnose_sb_0): Likewise.
14966 (gate_diagnose_omp_blocks): Likewise.
14967 (simd_clone_clauses_extract): Likewise.
14968 (gate): Likewise.
14969
14970 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14971
14972 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
14973 correction for little endian...
14974 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
14975 here.
14976
14977 2014-01-24 Jeff Law <law@redhat.com>
14978
14979 PR tree-optimization/59919
14980 * tree-vrp.c (find_assert_locations_1): Do not register asserts
14981 for non-returning calls.
14982
14983 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
14984
14985 * common/config/aarch64/aarch64-common.c
14986 (aarch64_rewrite_mcpu): Handle multiple names.
14987 * config/aarch64/aarch64.h
14988 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
14989
14990 2014-01-24 Dodji Seketeli <dodji@redhat.com>
14991
14992 * input.c (add_file_to_cache_tab): Handle the case where fopen
14993 returns NULL.
14994
14995 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
14996
14997 PR target/59929
14998 * config/i386/i386.md (pushsf splitter): Get stack adjustment
14999 from push operand if code of push isn't PRE_DEC.
15000
15001 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
15002
15003 PR target/59909
15004 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
15005 -mquad-memory-atomic. Update -mquad-memory documentation to say
15006 it is only used for non-atomic loads/stores.
15007
15008 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
15009 -mquad-memory or -mquad-memory-atomic switches.
15010
15011 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
15012 -mquad-memory-atomic to ISA 2.07 support.
15013
15014 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
15015 to separate support of normal quad word memory operations (ldq, stq)
15016 from the atomic quad word memory operations.
15017
15018 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
15019 support to separate non-atomic quad word operations from atomic
15020 quad word operations. Disable non-atomic quad word operations in
15021 little endian mode so that we don't have to swap words after the
15022 load and before the store.
15023 (quad_load_store_p): Add comment about atomic quad word support.
15024 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
15025 options printed with -mdebug=reg.
15026
15027 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
15028 -mquad-memory-atomic as the test for whether we have quad word
15029 atomic instructions.
15030 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
15031 or -mp8-vector are used, allow byte/half-word atomic operations.
15032
15033 * config/rs6000/sync.md (load_lockedti): Insure that the address
15034 is a proper indexed or indirect address for the lqarx instruction.
15035 On little endian systems, swap the hi/lo registers after the lqarx
15036 instruction.
15037 (load_lockedpti): Use indexed_or_indirect_operand predicate to
15038 insure the address is valid for the lqarx instruction.
15039 (store_conditionalti): Insure that the address is a proper indexed
15040 or indirect address for the stqcrx. instruction. On little endian
15041 systems, swap the hi/lo registers before doing the stqcrx.
15042 instruction.
15043 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
15044 insure the address is valid for the stqcrx. instruction.
15045
15046 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
15047 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
15048 type of quad memory support is available.
15049
15050 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
15051
15052 PR regression/59915
15053 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
15054 there is a danger of looping.
15055
15056 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
15057
15058 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15059 force flag_ira_loop_pressure if set via command line.
15060
15061 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
15062
15063 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
15064 (ashr_simd): New builtin handling DI mode.
15065 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
15066 (aarch64_sshr_simddi): New match pattern.
15067 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
15068 (vshrd_n_s64): Likewise.
15069 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
15070
15071 2014-01-23 Nick Clifton <nickc@redhat.com>
15072
15073 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
15074 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
15075 favour of mcu specific scripts.
15076 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
15077 430x multilibs.
15078
15079 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
15080 Alex Velenko <Alex.Velenko@arm.com>
15081
15082 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
15083 (vaddv_s16): Likewise.
15084 (vaddv_s32): Likewise.
15085 (vaddv_u8): Likewise.
15086 (vaddv_u16): Likewise.
15087 (vaddv_u32): Likewise.
15088 (vaddvq_s8): Likewise.
15089 (vaddvq_s16): Likewise.
15090 (vaddvq_s32): Likewise.
15091 (vaddvq_s64): Likewise.
15092 (vaddvq_u8): Likewise.
15093 (vaddvq_u16): Likewise.
15094 (vaddvq_u32): Likewise.
15095 (vaddvq_u64): Likewise.
15096 (vaddv_f32): Likewise.
15097 (vaddvq_f32): Likewise.
15098 (vaddvq_f64): Likewise.
15099 (vmaxv_f32): Likewise.
15100 (vmaxv_s8): Likewise.
15101 (vmaxv_s16): Likewise.
15102 (vmaxv_s32): Likewise.
15103 (vmaxv_u8): Likewise.
15104 (vmaxv_u16): Likewise.
15105 (vmaxv_u32): Likewise.
15106 (vmaxvq_f32): Likewise.
15107 (vmaxvq_f64): Likewise.
15108 (vmaxvq_s8): Likewise.
15109 (vmaxvq_s16): Likewise.
15110 (vmaxvq_s32): Likewise.
15111 (vmaxvq_u8): Likewise.
15112 (vmaxvq_u16): Likewise.
15113 (vmaxvq_u32): Likewise.
15114 (vmaxnmv_f32): Likewise.
15115 (vmaxnmvq_f32): Likewise.
15116 (vmaxnmvq_f64): Likewise.
15117 (vminv_f32): Likewise.
15118 (vminv_s8): Likewise.
15119 (vminv_s16): Likewise.
15120 (vminv_s32): Likewise.
15121 (vminv_u8): Likewise.
15122 (vminv_u16): Likewise.
15123 (vminv_u32): Likewise.
15124 (vminvq_f32): Likewise.
15125 (vminvq_f64): Likewise.
15126 (vminvq_s8): Likewise.
15127 (vminvq_s16): Likewise.
15128 (vminvq_s32): Likewise.
15129 (vminvq_u8): Likewise.
15130 (vminvq_u16): Likewise.
15131 (vminvq_u32): Likewise.
15132 (vminnmv_f32): Likewise.
15133 (vminnmvq_f32): Likewise.
15134 (vminnmvq_f64): Likewise.
15135
15136 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
15137
15138 * config/aarch64/aarch64-simd.md
15139 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
15140 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
15141 (*aarch64_mul3_elt<mode>): Likewise.
15142 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
15143 (*aarch64_mul3_elt_to_64v2df): Likewise.
15144 (*aarch64_mla_elt<mode>): Likewise.
15145 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
15146 (*aarch64_mls_elt<mode>): Likewise.
15147 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
15148 (*aarch64_fma4_elt<mode>): Likewise.
15149 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
15150 (*aarch64_fma4_elt_to_64v2df): Likewise.
15151 (*aarch64_fnma4_elt<mode>): Likewise.
15152 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
15153 (*aarch64_fnma4_elt_to_64v2df): Likewise.
15154 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
15155 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
15156 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
15157 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
15158 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15159 (aarch64_sqdmull_lane<mode>_internal): Likewise.
15160 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15161
15162 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
15163
15164 * config/aarch64/aarch64-simd.md
15165 (aarch64_be_checked_get_lane<mode>): New define_expand.
15166 * config/aarch64/aarch64-simd-builtins.def
15167 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
15168 New builtin definition.
15169 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
15170 Use new safe be builtin.
15171
15172 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
15173
15174 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
15175 New define_insn.
15176 (aarch64_be_st1<mode>): Likewise.
15177 (aarch_ld1<VALL:mode>): Define_expand modified.
15178 (aarch_st1<VALL:mode>): Likewise.
15179 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
15180 (UNSPEC_ST1): Likewise.
15181
15182 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
15183
15184 * config/microblaze/microblaze.md: Add trap insn and attribute
15185
15186 2014-01-23 Dodji Seketeli <dodji@redhat.com>
15187
15188 PR preprocessor/58580
15189 * input.h (location_get_source_line): Take an additional line_size
15190 parameter.
15191 (void diagnostics_file_cache_fini): Declare new function.
15192 * input.c (struct fcache): New type.
15193 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
15194 New static constants.
15195 (diagnostic_file_cache_init, total_lines_num)
15196 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
15197 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
15198 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
15199 (get_next_line, read_next_line, goto_next_line, read_line_num):
15200 New static function definitions.
15201 (diagnostic_file_cache_fini): New function.
15202 (location_get_source_line): Take an additional output line_len
15203 parameter. Re-write using lookup_or_add_file_to_cache_tab and
15204 read_line_num.
15205 * diagnostic.c (diagnostic_finish): Call
15206 diagnostic_file_cache_fini.
15207 (adjust_line): Take an additional input parameter for the length
15208 of the line, rather than calculating it with strlen.
15209 (diagnostic_show_locus): Adjust the use of
15210 location_get_source_line and adjust_line with respect to their new
15211 signature. While displaying a line now, do not stop at the first
15212 null byte. Rather, display the zero byte as a space and keep
15213 going until we reach the size of the line.
15214 * Makefile.in: Add vec.o to OBJS-libcommon
15215
15216 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
15217 Ilya Tocar <ilya.tocar@intel.com>
15218
15219 * config/i386/avx512fintrin.h (_mm512_kmov): New.
15220 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
15221 (__builtin_ia32_kmov16): Ditto.
15222 * config/i386/i386.md (UNSPEC_KMOV): New.
15223 (kmovw): Ditto.
15224
15225 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
15226
15227 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
15228 (_mm512_storeu_si512): Ditto.
15229
15230 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
15231
15232 PR target/52125
15233 * rtl.h (get_referenced_operands): Declare.
15234 * recog.c (get_referenced_operands): New function.
15235 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
15236 operands have been referenced when recording LO_SUM references.
15237
15238 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
15239
15240 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
15241
15242 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
15243
15244 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
15245 Enable for generic and recent AMD targets.
15246
15247 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
15248
15249 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
15250 ARG_SIZE note when adjustment was eliminated.
15251
15252 2014-01-22 Jeff Law <law@redhat.com>
15253
15254 PR tree-optimization/59597
15255 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
15256 in file. Accept new argument REGISTERING and use it to modify
15257 dump output appropriately.
15258 (register_jump_thread): Corresponding changes.
15259 (mark_threaded_blocks): Reinstate code to cancel unprofitable
15260 thread paths involving joiner blocks. Add code to dump cancelled
15261 jump threading paths.
15262
15263 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
15264
15265 PR rtl-optimization/59477
15266 * lra-constraints.c (inherit_in_ebb): Process call for living hard
15267 regs. Update reloads_num and potential_reload_hard_regs for all insns.
15268
15269 2014-01-22 Tom Tromey <tromey@redhat.com>
15270
15271 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
15272 PARAMS.
15273 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
15274
15275 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
15276
15277 PR rtl-optimization/59896
15278 * lra-constraints.c (process_alt_operands): Check unused note for
15279 matched operands of insn with no output reloads.
15280
15281 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
15282
15283 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
15284 (mips_move_from_gpr_cost): Likewise.
15285
15286 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
15287
15288 PR rtl-optimization/59858
15289 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
15290 ira_class_hard_regs_num.
15291 (process_alt_operands): Increase reject for dying matched operand.
15292
15293 2014-01-21 Jakub Jelinek <jakub@redhat.com>
15294
15295 PR target/59003
15296 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
15297 smaller than size, perform several stores or loads and stores
15298 at dst + count - size to store or copy all of size bytes, rather
15299 than just last modesize bytes.
15300
15301 2014-01-20 DJ Delorie <dj@redhat.com>
15302
15303 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
15304 that CLOBBERs are REGs before propogating their values.
15305
15306 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
15307
15308 PR middle-end/59789
15309 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
15310 (cgraph_inline_failed_type): New function.
15311 * cgraph.h (DEFCIFCODE): Add type.
15312 (cgraph_inline_failed_type_t): New enum.
15313 (cgraph_inline_failed_type): New prototype.
15314 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
15315 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
15316 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
15317 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
15318 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
15319 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
15320 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
15321 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
15322 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
15323 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
15324 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
15325 OPTIMIZATION_MISMATCH.
15326 * tree-inline.c (expand_call_inline): Emit errors during
15327 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
15328
15329 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
15330
15331 PR target/59685
15332 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
15333 mode attribute in insn output.
15334
15335 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
15336
15337 * output.h (output_constant): Delete.
15338 * varasm.c (output_constant): Make private.
15339
15340 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
15341
15342 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
15343
15344 2014-01-20 Jakub Jelinek <jakub@redhat.com>
15345
15346 PR middle-end/59860
15347 * tree.h (fold_builtin_strcat): New prototype.
15348 * builtins.c (fold_builtin_strcat): No longer static. Add len
15349 argument, if non-NULL, don't call c_strlen. Optimize
15350 directly into __builtin_memcpy instead of __builtin_strcpy.
15351 (fold_builtin_2): Adjust fold_builtin_strcat caller.
15352 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
15353
15354 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
15355
15356 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
15357 for SImode_address_operand operands, having only a REG argument.
15358
15359 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
15360
15361 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
15362 loader name using mbig-endian.
15363 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
15364
15365 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
15366
15367 * doc/invoke.texi (-march): Clarify documentation for AArch64.
15368 (-mtune): Likewise.
15369 (-mcpu): Likewise.
15370
15371 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
15372
15373 * config/aarch64/aarch64-protos.h
15374 (aarch64_cannot_change_mode_class_ptr): Declare.
15375 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
15376 aarch64_cannot_change_mode_class_ptr): New.
15377 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
15378 backend hook aarch64_cannot_change_mode_class.
15379
15380 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
15381
15382 * common/config/aarch64/aarch64-common.c
15383 (aarch64_handle_option): Don't handle any option order logic here.
15384 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
15385 selected_cpu, warn on architecture version mismatch.
15386 (aarch64_override_options): Fix parsing order for option strings.
15387
15388 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15389 Iain Sandoe <iain@codesourcery.com>
15390
15391 PR bootstrap/59496
15392 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
15393 warning. Amend comment to reflect current functionality.
15394
15395 2014-01-20 Richard Biener <rguenther@suse.de>
15396
15397 PR middle-end/59860
15398 * builtins.c (fold_builtin_strcat): Remove case better handled
15399 by tree-ssa-strlen.c.
15400
15401 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
15402
15403 * config/aarch64/aarch64.opt
15404 (mcpu, march, mtune): Make case-insensitive.
15405
15406 2014-01-20 Jakub Jelinek <jakub@redhat.com>
15407
15408 PR target/59880
15409 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
15410 if operands[1] is a REG or ZERO_EXTEND of a REG.
15411
15412 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
15413
15414 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
15415
15416 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
15417
15418 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
15419 long non-pic millicode calls.
15420
15421 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15422
15423 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
15424
15425 2014-01-19 Kito Cheng <kito@0xlab.org>
15426
15427 * builtins.c (expand_movstr): Check movstr expand done or fail.
15428
15429 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
15430 H.J. Lu <hongjiu.lu@intel.com>
15431
15432 PR target/59379
15433 * config/i386/i386.md (*lea<mode>): Zero-extend return register
15434 to DImode for zero-extended addresses.
15435
15436 2014-01-19 Jakub Jelinek <jakub@redhat.com>
15437
15438 PR rtl-optimization/57763
15439 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
15440 on the new indirect jump_insn and increment LABEL_NUSES (label).
15441
15442 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
15443
15444 PR bootstrap/59580
15445 PR bootstrap/59583
15446 * config.gcc (x86_archs): New variable.
15447 (x86_64_archs): Likewise.
15448 (x86_cpus): Likewise.
15449 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
15450 --with-arch/--with-cpu= options.
15451 Support --with-arch=/--with-cpu={nehalem,westmere,
15452 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
15453
15454 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
15455
15456 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
15457 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
15458
15459 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
15460
15461 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
15462
15463 2014-01-18 Jakub Jelinek <jakub@redhat.com>
15464
15465 PR target/58944
15466 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
15467 clear cpp_get_options (parse_in)->warn_unused_macros for
15468 ix86_target_macros_internal with cpp_define.
15469
15470 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
15471
15472 * jump.c (delete_related_insns): Keep (use (insn))s.
15473 * reorg.c (redundant_insn): Check for barriers too.
15474
15475 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
15476
15477 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
15478
15479 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
15480
15481 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
15482 call to $$dyncall when TARGET_LONG_CALLS is true.
15483
15484 2014-01-17 Jeff Law <law@redhat.com>
15485
15486 * ree.c (combine_set_extension): Temporarily disable test for
15487 changing number of hard registers.
15488
15489 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
15490
15491 PR middle-end/58125
15492 * ipa-inline-analysis.c (inline_free_summary):
15493 Do not free summary of aliases.
15494
15495 2014-01-17 Jakub Jelinek <jakub@redhat.com>
15496
15497 PR middle-end/59706
15498 * gimplify.c (gimplify_expr): Use create_tmp_var
15499 instead of create_tmp_var_raw. If cond doesn't have
15500 integral type, don't add the IFN_ANNOTATE builtin at all.
15501
15502 2014-01-17 Martin Jambor <mjambor@suse.cz>
15503
15504 PR ipa/59736
15505 * ipa-cp.c (prev_edge_clone): New variable.
15506 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
15507 Also resize prev_edge_clone vector.
15508 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
15509 (ipcp_edge_removal_hook): New function.
15510 (ipcp_driver): Register ipcp_edge_removal_hook.
15511
15512 2014-01-17 Andrew Pinski <apinski@cavium.com>
15513 Steve Ellcey <sellcey@mips.com>
15514
15515 PR target/59462
15516 * config/mips/mips.c (mips_print_operand): Check operand mode instead
15517 of operator mode.
15518
15519 2014-01-17 Jeff Law <law@redhat.com>
15520
15521 PR middle-end/57904
15522 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
15523 so that pass_ccp runs first.
15524
15525 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
15526
15527 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
15528 (ix86_adjust_cost): Use !TARGET_XXX.
15529 (do_reorder_for_imul): Likewise.
15530 (swap_top_of_ready_list): Likewise.
15531 (ix86_sched_reorder): Likewise.
15532
15533 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
15534
15535 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15536 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
15537 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
15538 (intel_memset): New. Duplicate slm_memset.
15539 (intel_cost): New. Duplicate slm_cost.
15540 (m_INTEL): New macro.
15541 (processor_target_table): Add "intel".
15542 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
15543 with PROCESSOR_INTEL for "intel".
15544 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
15545 PROCESSOR_SILVERMONT.
15546 (ix86_issue_rate): Likewise.
15547 (ix86_adjust_cost): Likewise.
15548 (ia32_multipass_dfa_lookahead): Likewise.
15549 (swap_top_of_ready_list): Likewise.
15550 (ix86_sched_reorder): Likewise.
15551 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
15552 instead of TARGET_OPT_AGU.
15553 * config/i386/i386.h (TARGET_INTEL): New.
15554 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
15555 (processor_type): Add PROCESSOR_INTEL.
15556 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
15557 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
15558
15559 2014-01-17 Marek Polacek <polacek@redhat.com>
15560
15561 PR c/58346
15562 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
15563 size is zero.
15564
15565 2014-01-17 Richard Biener <rguenther@suse.de>
15566
15567 PR tree-optimization/46590
15568 * opts.c (default_options_table): Add entries for
15569 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
15570 all enabled at -O1 but not for -Og.
15571 * common.opt (fbranch-count-reg): Remove Init(1).
15572 (fmove-loop-invariants): Likewise.
15573 (ftree-pta): Likewise.
15574
15575 2014-01-17 Jakub Jelinek <jakub@redhat.com>
15576
15577 * config/i386/i386.c (ix86_data_alignment): For compatibility with
15578 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
15579 decls to at least the GCC 4.8 used alignments.
15580
15581 PR fortran/59440
15582 * tree-nested.c (convert_nonlocal_reference_stmt,
15583 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
15584 of GIMPLE_BIND stmts, adjust associated decls.
15585
15586 2014-01-17 Richard Biener <rguenther@suse.de>
15587
15588 PR tree-optimization/46590
15589 * vec.h (vec<>::bseach): New member function implementing
15590 binary search according to C89 bsearch.
15591 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
15592 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
15593 bitmap pointer again. Make accesses_in_loop a flat array.
15594 (mem_ref_obstack): New global.
15595 (outermost_indep_loop): Adjust for mem_ref->stored changes.
15596 (mark_ref_stored): Likewise.
15597 (ref_indep_loop_p_2): Likewise.
15598 (set_ref_stored_in_loop): New helper function.
15599 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
15600 (memref_free): Adjust.
15601 (record_mem_ref_loc): Simplify.
15602 (gather_mem_refs_stmt): Adjust.
15603 (sort_locs_in_loop_postorder_cmp): New function.
15604 (analyze_memory_references): Sort accesses_in_loop after
15605 loop postorder number.
15606 (find_ref_loc_in_loop_cmp): New function.
15607 (for_all_locs_in_loop): Find relevant cluster of locs in
15608 accesses_in_loop and iterate without recursion.
15609 (execute_sm): Avoid uninit warning.
15610 (struct ref_always_accessed): Simplify.
15611 (ref_always_accessed::operator ()): Likewise.
15612 (ref_always_accessed_p): Likewise.
15613 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
15614 loop postorder numbers here.
15615 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
15616 numbers.
15617
15618 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
15619
15620 PR c++/57945
15621 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
15622 on decls for which assemble_alias has been called.
15623
15624 2014-01-17 Nick Clifton <nickc@redhat.com>
15625
15626 * config/msp430/msp430.opt: (mcpu): New option.
15627 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
15628 (msp430_option_override): Parse target_cpu. If the MCU name
15629 matches a generic string, clear target_mcu.
15630 (msp430_attr): Allow numeric interrupt values up to 63.
15631 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
15632 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
15633 option.
15634 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
15635 Add mcpu matches.
15636 * config/msp430/msp430.md (popm): Use %J rather than %I.
15637 (addsi3): Use msp430_nonimmediate_operand for operand 2.
15638 (addhi_cy_i): Use immediate_operand for operand 2.
15639 * doc/invoke.texi: Document -mcpu option.
15640
15641 2014-01-17 Richard Biener <rguenther@suse.de>
15642
15643 PR rtl-optimization/38518
15644 * df.h (df_analyze_loop): Declare.
15645 * df-core.c: Include cfgloop.h.
15646 (df_analyze_1): Split out main part of df_analyze.
15647 (df_analyze): Adjust.
15648 (loop_inverted_post_order_compute): New function.
15649 (loop_post_order_compute): Likewise.
15650 (df_analyze_loop): New function avoiding whole-function
15651 postorder computes.
15652 * loop-invariant.c (find_defs): Use df_analyze_loop.
15653 (find_invariants): Adjust.
15654 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
15655
15656 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
15657
15658 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
15659 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
15660
15661 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
15662
15663 * ipa-ref.c (ipa_remove_stmt_references): Fix references
15664 traversal when removing references.
15665
15666 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
15667
15668 PR ipa/59775
15669 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
15670
15671 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
15672
15673 PR middle-end/56791
15674 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
15675 pushing a reload for an autoinc when we had previously reloaded an
15676 inner part of the address.
15677
15678 2014-01-16 Jakub Jelinek <jakub@redhat.com>
15679
15680 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
15681 field.
15682 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
15683 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
15684 when not giving up or versioning for alias only because of
15685 loop->safelen.
15686 (vect_analyze_data_ref_dependences): Set to true.
15687 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
15688 is a GIMPLE_PHI.
15689 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
15690 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
15691 to the condition.
15692
15693 PR middle-end/58344
15694 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
15695
15696 PR target/59839
15697 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
15698 operand 0 predicate for gathers, use a new pseudo as subtarget.
15699
15700 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
15701
15702 PR middle-end/59609
15703 * lra-constraints.c (process_alt_operands): Add printing debug info.
15704 Check absence of input/output reloads for matched operands too.
15705
15706 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
15707
15708 PR rtl-optimization/59835
15709 * ira.c (ira_init_register_move_cost): Increase cost for
15710 impossible modes.
15711
15712 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
15713
15714 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
15715
15716 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
15717
15718 PR target/59780
15719 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
15720 non-register objects. Use gen_(high/low)part more consistently.
15721 Fix assertions.
15722
15723 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
15724
15725 PR target/59844
15726 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
15727 endian support, remove tests for WORDS_BIG_ENDIAN.
15728 (p8_mfvsrd_3_<mode>): Likewise.
15729 (reload_gpr_from_vsx<mode>): Likewise.
15730 (reload_gpr_from_vsxsf): Likewise.
15731 (p8_mfvsrd_4_disf): Likewise.
15732
15733 2014-01-16 Richard Biener <rguenther@suse.de>
15734
15735 PR rtl-optimization/46590
15736 * lcm.c (compute_antinout_edge): Use postorder iteration.
15737 (compute_laterin): Use inverted postorder iteration.
15738
15739 2014-01-16 Nick Clifton <nickc@redhat.com>
15740
15741 PR middle-end/28865
15742 * varasm.c (output_constant): Return the number of bytes actually
15743 emitted.
15744 (output_constructor_array_range): Update the field size with the
15745 number of bytes emitted by output_constant.
15746 (output_constructor_regular_field): Likewise. Also do not
15747 complain if the total number of bytes emitted is now greater
15748 than the expected fieldpos.
15749 * output.h (output_constant): Update prototype and descriptive comment.
15750
15751 2014-01-16 Marek Polacek <polacek@redhat.com>
15752
15753 PR middle-end/59827
15754 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
15755 it is error_mark_node.
15756
15757 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
15758
15759 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
15760 VALID_AVX256_REG_OR_OI_MODE.
15761
15762 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
15763
15764 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
15765 current procedure should be profiled.
15766
15767 2014-01-15 Andrew Pinski <apinski@cavium.com>
15768
15769 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
15770 of moving from/to the STACK_REG register class.
15771
15772 2014-01-15 Richard Henderson <rth@redhat.com>
15773
15774 PR debug/54694
15775 * reginfo.c (global_regs_decl): Globalize.
15776 * rtl.h (global_regs_decl): Declare.
15777 * ira.c (do_reload): Diagnose frame_pointer_needed and it
15778 reserved via global_regs.
15779
15780 2014-01-15 Teresa Johnson <tejohnson@google.com>
15781
15782 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
15783
15784 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15785
15786 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
15787 and vmulosh rather than call gen_vec_widen_smult_*.
15788 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
15789 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
15790 (vec_widen_smult_even_v16qi): Likewise.
15791 (vec_widen_umult_even_v8hi): Likewise.
15792 (vec_widen_smult_even_v8hi): Likewise.
15793 (vec_widen_umult_odd_v16qi): Likewise.
15794 (vec_widen_smult_odd_v16qi): Likewise.
15795 (vec_widen_umult_odd_v8hi): Likewise.
15796 (vec_widen_smult_odd_v8hi): Likewise.
15797 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
15798 vmuloub rather than call gen_vec_widen_umult_*.
15799 (vec_widen_umult_lo_v16qi): Likewise.
15800 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
15801 vmulosb rather than call gen_vec_widen_smult_*.
15802 (vec_widen_smult_lo_v16qi): Likewise.
15803 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
15804 rather than call gen_vec_widen_umult_*.
15805 (vec_widen_umult_lo_v8hi): Likewise.
15806 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
15807 rather than call gen_vec_widen_smult_*.
15808 (vec_widen_smult_lo_v8hi): Likewise.
15809
15810 2014-01-15 Jeff Law <law@redhat.com>
15811
15812 PR tree-optimization/59747
15813 * ree.c (find_and_remove_re): Properly handle case where a second
15814 eliminated extension requires widening a copy created for elimination
15815 of a prior extension.
15816 (combine_set_extension): Ensure that the number of hard regs needed
15817 for a destination register does not change when we widen it.
15818
15819 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
15820
15821 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
15822 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
15823 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
15824 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
15825 (avr-*-rtems*): Likewise.
15826 (bfin*-rtems*): Likewise.
15827 (moxie-*-rtems*): Likewise.
15828 (h8300-*-rtems*): Likewise.
15829 (i[34567]86-*-rtems*): Likewise.
15830 (lm32-*-rtems*): Likewise.
15831 (m32r-*-rtems*): Likewise.
15832 (m68k-*-rtems*): Likewise.
15833 (microblaze*-*-rtems*): Likewise.
15834 (mips*-*-rtems*): Likewise.
15835 (powerpc-*-rtems*): Likewise.
15836 (sh-*-rtems*): Likewise.
15837 (sparc-*-rtems*): Likewise.
15838 (sparc64-*-rtems*): Likewise.
15839 (v850-*-rtems*): Likewise.
15840 (m32c-*-rtems*): Likewise.
15841
15842 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
15843
15844 PR rtl-optimization/59511
15845 * ira.c (ira_init_register_move_cost): Use memory costs for some
15846 cases of register move cost calculations.
15847 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
15848 instead of BB frequency.
15849 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
15850 * lra-assigns.c (find_hard_regno_for): Ditto.
15851
15852 2014-01-15 Richard Biener <rguenther@suse.de>
15853
15854 PR tree-optimization/59822
15855 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
15856 (vectorizable_load): Use it to hoist defs of uses of invariant
15857 loads out of the loop.
15858
15859 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
15860 Kugan Vivekanandarajah <kuganv@linaro.org>
15861
15862 PR target/59695
15863 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
15864 truncation.
15865
15866 2014-01-15 Richard Biener <rguenther@suse.de>
15867
15868 PR rtl-optimization/59802
15869 * lcm.c (compute_available): Use inverted postorder to seed
15870 the initial worklist.
15871
15872 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15873
15874 PR target/59803
15875 * config/s390/s390.c (s390_preferred_reload_class): Don't return
15876 ADDR_REGS for invalid symrefs in non-PIC code.
15877
15878 2014-01-15 Jakub Jelinek <jakub@redhat.com>
15879
15880 PR other/58712
15881 * builtins.c (determine_block_size): Initialize *probable_max_size
15882 even if len_rtx is CONST_INT.
15883
15884 2014-01-14 Andrew Pinski <apinski@cavium.com>
15885
15886 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
15887 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
15888 (cortexa53_tunings): Likewise.
15889 (aarch64_sched_issue_rate): New function.
15890 (TARGET_SCHED_ISSUE_RATE): Define.
15891
15892 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
15893
15894 * ira-costs.c (find_costs_and_classes): Add missed
15895 ira_init_register_move_cost_if_necessary.
15896
15897 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
15898
15899 PR target/59787
15900 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
15901
15902 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
15903
15904 PR target/59794
15905 * config/i386/i386.c (type_natural_mode): Add a bool parameter
15906 to indicate if type is used for function return value. Warn ABI
15907 change if the vector mode isn't available for function return value.
15908 (ix86_function_arg_advance): Pass false to type_natural_mode.
15909 (ix86_function_arg): Likewise.
15910 (ix86_gimplify_va_arg): Likewise.
15911 (function_arg_32): Don't warn ABI change.
15912 (ix86_function_value): Pass true to type_natural_mode.
15913 (ix86_return_in_memory): Likewise.
15914 (ix86_struct_value_rtx): Removed.
15915 (TARGET_STRUCT_VALUE_RTX): Likewise.
15916
15917 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15918
15919 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
15920 converting a conditional jump into a conditional return.
15921
15922 2014-01-14 Richard Biener <rguenther@suse.de>
15923
15924 PR tree-optimization/58921
15925 PR tree-optimization/59006
15926 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
15927 hoisting invariant stmts.
15928 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
15929 invariant loads on the preheader edge if possible.
15930
15931 2014-01-14 Joey Ye <joey.ye@arm.com>
15932
15933 * doc/plugin.texi (Building GCC plugins): Update to C++.
15934
15935 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
15936
15937 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
15938 (_mm_rcp28_round_ss): Ditto.
15939 (_mm_rsqrt28_round_sd): Ditto.
15940 (_mm_rsqrt28_round_ss): Ditto.
15941 (_mm_rcp28_sd): Ditto.
15942 (_mm_rcp28_ss): Ditto.
15943 (_mm_rsqrt28_sd): Ditto.
15944 (_mm_rsqrt28_ss): Ditto.
15945 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
15946 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
15947 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
15948 (IX86_BUILTIN_RCP28SD): Ditto.
15949 (IX86_BUILTIN_RCP28SS): Ditto.
15950 (IX86_BUILTIN_RSQRT28SD): Ditto.
15951 (IX86_BUILTIN_RSQRT28SS): Ditto.
15952 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
15953 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
15954 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
15955 (ix86_expand_special_args_builtin): Expand new FTYPE.
15956 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
15957 (srcp14<mode>): Make insn unary.
15958 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
15959 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
15960 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
15961 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
15962 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
15963 Fix rounding: make it SAE only.
15964 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
15965 Ditto.
15966 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
15967 Ditto.
15968 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
15969 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
15970 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
15971 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
15972 (round_saeonly_mask_scalar_operand4): Ditto.
15973 (round_saeonly_mask_scalar_op3): Ditto.
15974 (round_saeonly_mask_scalar_op4): Ditto.
15975
15976 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15977
15978 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15979 Implement -maltivec=be for vec_insert and vec_extract.
15980
15981 2014-01-10 DJ Delorie <dj@redhat.com>
15982
15983 * config/msp430/msp430.md (call_internal): Don't allow memory
15984 references with SP as the base register.
15985 (call_value_internal): Likewise.
15986 * config/msp430/constraints.md (Yc): New. For memory references
15987 that don't use SP as a base register.
15988
15989 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
15990 "an integer without a # prefix"
15991 * config/msp430/msp430.md (epilogue_helper): Use it.
15992
15993 2014-01-13 Jakub Jelinek <jakub@redhat.com>
15994
15995 PR target/59617
15996 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
15997 AVX512F gather builtins.
15998 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
15999 on gather decls with INTEGER_TYPE masktype.
16000 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
16001 directly into the builtin rather than hoisting it before loop.
16002
16003 PR tree-optimization/59387
16004 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
16005 (scev_const_prop): If folded_casts and type has undefined overflow,
16006 use force_gimple_operand instead of force_gimple_operand_gsi and
16007 for each added stmt if it is assign with
16008 arith_code_with_undefined_signed_overflow, call
16009 rewrite_to_defined_overflow.
16010 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
16011 gimple-fold.h instead.
16012 (arith_code_with_undefined_signed_overflow,
16013 rewrite_to_defined_overflow): Moved to ...
16014 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
16015 rewrite_to_defined_overflow): ... here. No longer static.
16016 Include gimplify-me.h.
16017 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
16018 rewrite_to_defined_overflow): New prototypes.
16019
16020 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16021
16022 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
16023
16024 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
16025
16026 * builtins.c (get_object_alignment_2): Minor tweak.
16027 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
16028
16029 2014-01-13 Christian Bruel <christian.bruel@st.com>
16030
16031 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
16032 optimized non constant lengths.
16033
16034 2014-01-13 Jakub Jelinek <jakub@redhat.com>
16035
16036 PR libgomp/59194
16037 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
16038 load as __atomic_load_N if possible.
16039
16040 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
16041
16042 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
16043 target parameter.
16044 (rs6000_expand_builtin): Adjust call.
16045
16046 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
16047
16048 PR target/58115
16049 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
16050 * config/rs6000/rs6000.c: Include target-globals.h.
16051 (rs6000_set_current_function): Instead of doing target_reinit
16052 unconditionally, use save_target_globals_default_opts and
16053 restore_target_globals.
16054
16055 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
16056 FPSCR.
16057 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
16058 (rs6000_expand_builtin): Handle mffs and mtfsf.
16059 (rs6000_init_builtins): Define mffs and mtfsf.
16060 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
16061 (rs6000_mffs): New pattern.
16062 (rs6000_mtfsf): New pattern.
16063
16064 2014-01-11 Bin Cheng <bin.cheng@arm.com>
16065
16066 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
16067 Start narrowing with START. Apply candidate-use pair
16068 and check overall cost in narrowing.
16069 (iv_ca_prune): Pass new argument.
16070
16071 2014-01-10 Jeff Law <law@redhat.com>
16072
16073 PR middle-end/59743
16074 * ree.c (combine_reaching_defs): Ensure the defining statement
16075 occurs before the extension when optimizing extensions with
16076 different source and destination hard registers.
16077
16078 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
16079
16080 PR ipa/58585
16081 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
16082 vtables into the type inheritance graph.
16083
16084 2014-01-10 Jakub Jelinek <jakub@redhat.com>
16085
16086 PR rtl-optimization/59754
16087 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
16088 modes in the REGNO != REGNO case.
16089
16090 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16091
16092 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
16093
16094 2014-01-10 Jakub Jelinek <jakub@redhat.com>
16095
16096 PR tree-optimization/59745
16097 * tree-predcom.c (tree_predictive_commoning_loop): Call
16098 free_affine_expand_cache if giving up because components is NULL.
16099
16100 * target-globals.c (save_target_globals): Allocate < 4KB structs using
16101 GC in payload of target_globals struct instead of allocating them on
16102 the heap and the larger structs separately using GC.
16103 * target-globals.h (struct target_globals): Make regs, hard_regs,
16104 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
16105 of GTY((skip)) and change type to void *.
16106 (reset_target_globals): Cast loads from those fields to corresponding
16107 types.
16108
16109 2014-01-10 Steve Ellcey <sellcey@mips.com>
16110
16111 PR plugins/59335
16112 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
16113 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
16114 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
16115
16116 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
16117
16118 PR target/59744
16119 * aarch64-modes.def (CC_Zmode): New flags mode.
16120 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
16121 represents an equality.
16122 (aarch64_get_condition_code): Handle CC_Zmode.
16123 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
16124
16125 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16126
16127 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
16128 extraction in good case.
16129
16130 2014-01-10 Richard Biener <rguenther@suse.de>
16131
16132 PR tree-optimization/59374
16133 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
16134 checking after SLP discovery. Mark stmts not participating
16135 in any SLP instance properly.
16136
16137 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16138
16139 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
16140 when handling a SET rtx.
16141
16142 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16143
16144 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
16145 (cortex-a57): Likewise.
16146 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
16147
16148 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16149
16150 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
16151 non-iwmmxt builtins.
16152
16153 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
16154
16155 PR ipa/58252
16156 PR ipa/59226
16157 * ipa-devirt.c record_target_from_binfo): Take as argument
16158 stack of binfos and lookup matching one for virtual inheritance.
16159 (possible_polymorphic_call_targets_1): Update.
16160
16161 2014-01-10 Huacai Chen <chenhc@lemote.com>
16162
16163 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
16164 kernel strings for Loongson-2E/2F/3A.
16165
16166 2014-01-10 Jakub Jelinek <jakub@redhat.com>
16167
16168 PR middle-end/59670
16169 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
16170 is_gimple_call before calling gimple_call_internal_p.
16171
16172 2014-01-09 Steve Ellcey <sellcey@mips.com>
16173
16174 * Makefile.in (TREE_FLOW_H): Remove.
16175 (TREE_SSA_H): Add file names from tree-flow.h.
16176 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
16177 * tree.h: Remove tree-flow.h reference.
16178 * hash-table.h: Remove tree-flow.h reference.
16179 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
16180 reference with tree-ssa-loop.h.
16181
16182 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16183
16184 * doc/invoke.texi: Add -maltivec={be,le} options, and document
16185 default element-order behavior for -maltivec.
16186 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
16187 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
16188 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
16189 when targeting big endian, at least for now.
16190 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
16191
16192 2014-01-09 Jakub Jelinek <jakub@redhat.com>
16193
16194 PR middle-end/47735
16195 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
16196 var satisfies use_register_for_decl, just take into account type
16197 alignment, rather than decl alignment.
16198
16199 PR tree-optimization/59622
16200 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
16201 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
16202 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
16203 Don't devirtualize for inplace at all. For targets.length () == 1,
16204 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
16205
16206 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
16207
16208 * config/i386/i386.md (cpu): Remove the unused btver1.
16209
16210 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
16211
16212 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
16213
16214 2014-01-09 Jakub Jelinek <jakub@redhat.com>
16215
16216 PR target/58115
16217 * tree-core.h (struct target_globals): New forward declaration.
16218 (struct tree_target_option): Add globals field.
16219 * tree.h (TREE_TARGET_GLOBALS): Define.
16220 (prepare_target_option_nodes_for_pch): New prototype.
16221 * target-globals.h (struct target_globals): Define even if
16222 !SWITCHABLE_TARGET.
16223 * tree.c (prepare_target_option_node_for_pch,
16224 prepare_target_option_nodes_for_pch): New functions.
16225 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
16226 * config/i386/i386.c: Include target-globals.h.
16227 (ix86_set_current_function): Instead of doing target_reinit
16228 unconditionally, use save_target_globals_default_opts and
16229 restore_target_globals.
16230
16231 2014-01-09 Richard Biener <rguenther@suse.de>
16232
16233 PR tree-optimization/59715
16234 * tree-cfg.h (split_critical_edges): Declare.
16235 * tree-cfg.c (split_critical_edges): Export.
16236 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
16237
16238 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
16239
16240 * cfgexpand.c (expand_stack_vars): Optionally disable
16241 asan stack protection.
16242 (expand_used_vars): Likewise.
16243 (partition_stack_vars): Likewise.
16244 * asan.c (asan_emit_stack_protection): Optionally disable
16245 after return stack usage.
16246 (instrument_derefs): Optionally disable memory access instrumentation.
16247 (instrument_builtin_call): Likewise.
16248 (instrument_strlen_call): Likewise.
16249 (asan_protect_global): Optionally disable global variables protection.
16250 * doc/invoke.texi: Added doc for new options.
16251 * params.def: Added new options.
16252 * params.h: Likewise.
16253
16254 2014-01-09 Jakub Jelinek <jakub@redhat.com>
16255
16256 PR rtl-optimization/59724
16257 * ifcvt.c (cond_exec_process_if_block): Don't call
16258 flow_find_head_matching_sequence with 0 longest_match.
16259 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
16260 non-active insns if !stop_after.
16261 (try_head_merge_bb): Revert 2014-01-07 changes.
16262
16263 2014-01-08 Jeff Law <law@redhat.com>
16264
16265 * ree.c (get_sub_rtx): New function, extracted from...
16266 (merge_def_and_ext): Here.
16267 (combine_reaching_defs): Use get_sub_rtx.
16268
16269 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
16270
16271 * cgraph.h (varpool_variable_node): Do not choke on null node.
16272
16273 2014-01-08 Catherine Moore <clm@codesourcery.com>
16274
16275 * config/mips/mips.md (simple_return): Attempt to use JRC
16276 for microMIPS.
16277 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
16278
16279 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
16280
16281 PR rtl-optimization/59137
16282 * reorg.c (steal_delay_list_from_target): Call update_block for
16283 elided insns.
16284 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
16285
16286 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16287
16288 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
16289 two duplicate entries.
16290
16291 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
16292
16293 Revert:
16294 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
16295
16296 * config/mips/mips.c (mips_truncated_op_cost): New function.
16297 (mips_rtx_costs): Adjust test for BADDU.
16298 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
16299
16300 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
16301
16302 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
16303 (*baddu_si): ...this new pattern.
16304
16305 2014-01-08 Jakub Jelinek <jakub@redhat.com>
16306
16307 PR ipa/59722
16308 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
16309
16310 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
16311
16312 PR middle-end/57748
16313 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
16314 inner_reference_p.
16315 (expand_expr, expand_normal): Adjust.
16316 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
16317 inner_reference_p. Use inner_reference_p to expand inner references.
16318 (store_expr): Adjust.
16319 * cfgexpand.c (expand_call_stmt): Adjust.
16320
16321 2014-01-08 Rong Xu <xur@google.com>
16322
16323 * gcov-io.c (gcov_var): Move from gcov-io.h.
16324 (gcov_position): Ditto.
16325 (gcov_is_error): Ditto.
16326 (gcov_rewrite): Ditto.
16327 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
16328 only part to libgcc/libgcov.h.
16329
16330 2014-01-08 Marek Polacek <polacek@redhat.com>
16331
16332 PR middle-end/59669
16333 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
16334
16335 2014-01-08 Marek Polacek <polacek@redhat.com>
16336
16337 PR sanitizer/59667
16338 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
16339
16340 2014-01-08 Jakub Jelinek <jakub@redhat.com>
16341
16342 PR rtl-optimization/59649
16343 * stor-layout.c (get_mode_bounds): For BImode return
16344 0 and STORE_FLAG_VALUE.
16345
16346 2014-01-08 Richard Biener <rguenther@suse.de>
16347
16348 PR middle-end/59630
16349 * gimple.h (is_gimple_builtin_call): Remove.
16350 (gimple_builtin_call_types_compatible_p): New.
16351 (gimple_call_builtin_p): New overload.
16352 * gimple.c (is_gimple_builtin_call): Remove.
16353 (validate_call): Rename to ...
16354 (gimple_builtin_call_types_compatible_p): ... this and export. Also
16355 check return types.
16356 (validate_type): New static function.
16357 (gimple_call_builtin_p): New overload and adjust.
16358 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
16359 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
16360 (gimple_fold_stmt_to_constant_1): Likewise.
16361 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
16362
16363 2014-01-08 Richard Biener <rguenther@suse.de>
16364
16365 PR middle-end/59471
16366 * gimplify.c (gimplify_expr): Gimplify register-register type
16367 VIEW_CONVERT_EXPRs to separate stmts.
16368
16369 2014-01-07 Jeff Law <law@redhat.com>
16370
16371 PR middle-end/53623
16372 * ree.c (combine_set_extension): Handle case where source
16373 and destination registers in an extension insn are different.
16374 (combine_reaching_defs): Allow source and destination registers
16375 in extension to be different under limited circumstances.
16376 (add_removable_extension): Remove restriction that the
16377 source and destination registers in the extension are the same.
16378 (find_and_remove_re): Emit a copy from the extension's
16379 destination to its source after the defining insn if
16380 the source and destination registers are different.
16381
16382 PR middle-end/59285
16383 * ifcvt.c (merge_if_block): If we are merging a block with more than
16384 one successor with a block with no successors, remove any BARRIER
16385 after the second block.
16386
16387 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
16388
16389 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
16390
16391 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
16392
16393 PR target/59652
16394 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
16395 for 14-bit register offsets when INT14_OK_STRICT is false.
16396
16397 2014-01-07 Roland Stigge <stigge@antcom.de>
16398 Michael Meissner <meissner@linux.vnet.ibm.com>
16399
16400 PR 57386/target
16401 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16402 Only check TFmode for SPE constants. Don't check TImode or TDmode.
16403
16404 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
16405
16406 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
16407 -mcpu.
16408
16409 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
16410
16411 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
16412 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
16413 rtx is const0_rtx or not.
16414
16415 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
16416
16417 PR target/58115
16418 * target-globals.c (save_target_globals): Remove this_fn_optab
16419 handling.
16420 * toplev.c: Include optabs.h.
16421 (target_reinit): Temporarily restore the global options if another
16422 set of options are in force.
16423
16424 2014-01-07 Jakub Jelinek <jakub@redhat.com>
16425
16426 PR rtl-optimization/58668
16427 * cfgcleanup.c (flow_find_cross_jump): Don't count
16428 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
16429 to determine what is counted.
16430 (flow_find_head_matching_sequence): Use active_insn_p to determine
16431 what is counted.
16432 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
16433 counting change.
16434 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
16435 determine what is counted.
16436
16437 PR tree-optimization/59643
16438 * tree-predcom.c (split_data_refs_to_components): If one dr is
16439 read and one write, determine_offset fails and the write isn't
16440 in the bad component, just put the read into the bad component.
16441
16442 2014-01-07 Mike Stump <mikestump@comcast.net>
16443 Jakub Jelinek <jakub@redhat.com>
16444
16445 PR pch/59436
16446 * tree-core.h (struct tree_optimization_option): Change optabs
16447 type from unsigned char * to void *.
16448 * optabs.c (init_tree_optimization_optabs): Adjust
16449 TREE_OPTIMIZATION_OPTABS initialization.
16450
16451 2014-01-06 Jakub Jelinek <jakub@redhat.com>
16452
16453 PR target/59644
16454 * config/i386/i386.h (struct machine_function): Add
16455 no_drap_save_restore field.
16456 * config/i386/i386.c (ix86_save_reg): Use
16457 !cfun->machine->no_drap_save_restore instead of
16458 crtl->stack_realign_needed.
16459 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
16460 this function clears frame_pointer_needed. Set
16461 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
16462 and DRAP reg is needed.
16463
16464 2014-01-06 Marek Polacek <polacek@redhat.com>
16465
16466 PR c/57773
16467 * doc/implement-c.texi: Mention that other integer types are
16468 permitted as bit-field types in strictly conforming mode.
16469
16470 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
16471
16472 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
16473 is newly allocated.
16474
16475 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
16476
16477 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
16478
16479 2014-01-06 Martin Jambor <mjambor@suse.cz>
16480
16481 PR ipa/59008
16482 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
16483 to int.
16484 * ipa-prop.c (ipa_print_node_params): Fix indentation.
16485
16486 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
16487
16488 PR debug/59350
16489 PR debug/59510
16490 * var-tracking.c (add_stores): Preserve the value of the source even if
16491 we don't record the store.
16492
16493 2014-01-06 Terry Guo <terry.guo@arm.com>
16494
16495 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
16496
16497 2014-01-05 Iain Sandoe <iain@codesourcery.com>
16498
16499 PR bootstrap/59541
16500 * config/darwin.c (darwin_function_section): Adjust return values to
16501 correspond to optimisation changes made in r206070.
16502
16503 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
16504
16505 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
16506 from prefetch_block tune setting.
16507 (nocona_cost): Correct size of prefetch block to 64.
16508
16509 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
16510
16511 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
16512 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
16513 used to save the static chain register in the computation of the offset
16514 from which the FP registers need to be restored.
16515
16516 2014-01-04 Jakub Jelinek <jakub@redhat.com>
16517
16518 PR tree-optimization/59519
16519 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
16520 ICE if get_current_def (current_new_name) is already non-NULL, as long
16521 as it is a phi result of some other phi in *new_exit_bb that has
16522 the same argument.
16523
16524 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
16525 or vmovdqu* for misaligned_operand.
16526 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
16527 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
16528 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
16529 aligned_mem for AVX512F masked aligned load and store builtins and for
16530 non-temporal moves.
16531
16532 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
16533
16534 PR tree-optimization/59651
16535 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
16536 Address range for negative step should be added by TYPE_SIZE_UNIT.
16537
16538 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
16539
16540 * config/m68k/m68k.c (handle_move_double): Handle pushes with
16541 overlapping registers also for registers other than the stack pointer.
16542
16543 2014-01-03 Marek Polacek <polacek@redhat.com>
16544
16545 PR other/59661
16546 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
16547 __builtin_FILE.
16548
16549 2014-01-03 Jakub Jelinek <jakub@redhat.com>
16550
16551 PR target/59625
16552 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
16553 asm goto as jump.
16554
16555 * config/i386/i386.md (MODE_SIZE): New mode attribute.
16556 (push splitter): Use <P:MODE_SIZE> instead of
16557 GET_MODE_SIZE (<P:MODE>mode).
16558 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
16559 (mov -1, reg peephole2): Likewise.
16560 * config/i386/sse.md (*mov<mode>_internal,
16561 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
16562 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
16563 *<code><mode>3, *andnot<mode>3<mask_name>,
16564 <mask_codefor><code><mode>3<mask_name>): Likewise.
16565 * config/i386/subst.md (mask_mode512bit_condition,
16566 sd_mask_mode512bit_condition): Likewise.
16567
16568 2014-01-02 Xinliang David Li <davidxl@google.com>
16569
16570 PR tree-optimization/59303
16571 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
16572 (dump_predicates): Better output format.
16573 (pred_equal_p): New function.
16574 (is_neq_relop_p): Ditto.
16575 (is_neq_zero_form_p): Ditto.
16576 (pred_expr_equal_p): Ditto.
16577 (pred_neg_p): Ditto.
16578 (simplify_pred): Ditto.
16579 (simplify_preds_2): Ditto.
16580 (simplify_preds_3): Ditto.
16581 (simplify_preds_4): Ditto.
16582 (simplify_preds): Ditto.
16583 (push_pred): Ditto.
16584 (push_to_worklist): Ditto.
16585 (get_pred_info_from_cmp): Ditto.
16586 (is_degenerated_phi): Ditto.
16587 (normalize_one_pred_1): Ditto.
16588 (normalize_one_pred): Ditto.
16589 (normalize_one_pred_chain): Ditto.
16590 (normalize_preds): Ditto.
16591 (normalize_cond_1): Remove function.
16592 (normalize_cond): Ditto.
16593 (is_gcond_subset_of): Ditto.
16594 (is_subset_of_any): Ditto.
16595 (is_or_set_subset_of): Ditto.
16596 (is_and_set_subset_of): Ditto.
16597 (is_norm_cond_subset_of): Ditto.
16598 (pred_chain_length_cmp): Ditto.
16599 (convert_control_dep_chain_into_preds): Type change.
16600 (find_predicates): Ditto.
16601 (find_def_preds): Ditto.
16602 (destroy_predicates_vecs): Ditto.
16603 (find_matching_predicates_in_rest_chains): Ditto.
16604 (use_pred_not_overlap_with_undef_path_pred): Ditto.
16605 (is_pred_expr_subset): Ditto.
16606 (is_pred_chain_subset_of): Ditto.
16607 (is_included_in): Ditto.
16608 (is_superset_of): Ditto.
16609
16610 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16611
16612 Update copyright years.
16613
16614 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16615
16616 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
16617 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
16618 config/arc/arc.md, config/arc/arc.opt,
16619 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
16620 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
16621 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
16622 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
16623 config/linux-protos.h, config/linux.c, config/winnt-c.c,
16624 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
16625 vtable-verify.c, vtable-verify.h: Use the standard form for the
16626 copyright notice.
16627
16628 2014-01-02 Tobias Burnus <burnus@net-b.de>
16629
16630 * gcc.c (process_command): Update copyright notice dates.
16631 * gcov-dump.c: Ditto.
16632 * gcov.c: Ditto.
16633 * doc/cpp.texi: Bump @copying's copyright year.
16634 * doc/cppinternals.texi: Ditto.
16635 * doc/gcc.texi: Ditto.
16636 * doc/gccint.texi: Ditto.
16637 * doc/gcov.texi: Ditto.
16638 * doc/install.texi: Ditto.
16639 * doc/invoke.texi: Ditto.
16640
16641 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
16642
16643 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
16644
16645 2014-01-01 Jakub Jelinek <jakub@redhat.com>
16646
16647 * config/i386/sse.md (*mov<mode>_internal): Guard
16648 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
16649
16650 PR rtl-optimization/59647
16651 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
16652 new_rtx into UNSIGNED_FLOAT rtxes.
16653 \f
16654 Copyright (C) 2014 Free Software Foundation, Inc.
16655
16656 Copying and distribution of this file, with or without modification,
16657 are permitted in any medium without royalty provided the copyright
16658 notice and this notice are preserved.