OSDN Git Service

2010-04-30 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-04-30  Richard Guenther  <rguenther@suse.de>
2
3         PR tree-optimization/43879
4         * tree-ssa-structalias.c (type_could_have_pointers): Functions
5         can have pointers.
6
7 2010-04-30  Jan Hubicka  <jh@suse.cz>
8
9         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10         varpool.
11         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
12
13 2010-04-30  Jan Hubicka  <jh@suse.cz>
14
15         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
16         New.
17         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
18         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
19         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
20         cgraph_node_set_needs_ltrans_p): Remove.
21
22 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
23
24         * sdbout.c: Include vec.h, do not include varray.h.
25         (deferred_global_decls, sdbout_global_decl,
26         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
27         * toplev.c: Do not include varray.h.
28         (dump_memory_report): Do not dump VARRAY statistics.
29         * gengtype.c (open_base_file): Ignore varray.h.
30         * Makefile.in: Update for abovementioned changes.
31         Remove all traces of varray.c and varray.h.
32         * varray.c: Remove file.
33         * varray.h: Remove file.
34
35 2010-04-30  Jan Hubicka  <jh@suse.cz>
36
37         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
38         references.
39
40 2010-04-30  Jan Hubicka  <jh@suse.cz>
41
42         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
43         needed.
44
45 2010-04-30  Richard Guenther  <rguenther@suse.de>
46
47         * tree-ssa-structalias.c (get_constraint_for_1): Generate
48         constraints for CONSTRUCTOR.
49
50 2010-04-30  Richard Guenther  <rguenther@suse.de>
51
52         PR lto/43946
53         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
54         first after all lowering passes.
55
56 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
57
58         * toplev.c: Include varray.h for statistics dumping.
59         * tree.h: Do not declare varray_head_tag.
60         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
61         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
62         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
63         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
64         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
65         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
66         c-common.c, c-common.h, reg-stack.c, basic-block.h,
67         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
68         include varray.h.
69         * Makefile.in: Update for abovementioned changes.
70
71 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
72
73         PR debug/43942
74         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
75
76 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
77
78         * config/picochip/picochip.c (picochip_legitimize_address): Define.
79         Use this function to do machine-specific conversion.
80         (picochip_legitimize_reload_address): Likewise.
81         (picochip_legitimate_address_p): Check valid base register only if
82         strict.
83         (picochip_check_conditional_copy): Check for modw only if opnd is
84         register.
85         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
86         to call the function in c.
87         * config/picochip/picochip-protos.h
88         (picochip_legitimize_reload_address): Define.
89         * config/picochip/picochip.md (supported_compare1): Define.
90
91 2010-04-30  Jan Hubicka  <jh@suse.cz>
92
93         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
94         (cgraph_global_info): Remove inlined.
95         (LTO_cgraph_tag_names): Remove.
96         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
97         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
98         simplify cgraph tags and document.
99         (lto_output_node): Use only LTO_cgraph_unavail_node and
100         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
101         for_functions_valid, global info, process and output
102         flags.
103         (input_overwrite_node): Initialize estimated stack size and
104         estimated growth.
105         Do not read flags we no longer store.
106         (input_node): Likewise do not read info no longer stored.
107         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
108         flag.
109
110 2010-04-30  Richard Guenther  <rguenther@suse.de>
111
112         PR tree-optimization/43879
113         * tree-ssa-structalias.c (get_constraint_for_1): Properly
114         handle non-zero initializers.
115
116 2010-04-30  Richard Guenther  <rguenther@suse.de>
117
118         * builtins.c (fold_builtin_1): Delete free (0).
119
120 2010-04-29  Jan Hubicka  <jh@suse.cz>
121
122         * gengtype.c (open_base_files): Add lto-streamer.h
123         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
124         (pass_ipa_cp): GGC collect.
125         * toplev. (compile_file): Do not output symbols.
126         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
127         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
128         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
129         * lto-section-in.c: Include ggc.h
130         (lto_new_in_decl_state): Alloc in GGC.
131         (lto_delete_in_decl_state): Likewise.
132         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program): Collect.
133
134 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
135
136         PR target/42895
137         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
138         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
139         (HONOR_REG_ALLOC_ORDER): Describe new macro.
140         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
141         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
142         account only if HONOR_REG_ALLOC_ORDER is not defined.
143         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
144         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
145         
146 2010-04-29  Jon Grant <04@jguk.org>
147         
148         * collect2.c (vflag): Change type from int to bool.
149         (debug): Likewise.
150         (helpflag): New global bool.
151         (main): Set vflag and debug with boolean, not integer truth
152         values.  Accept new "--help" option and output usage text if
153         found.
154         * collect2.h (vflag): Update prototype.
155         (debug): Likewise.
156         
157 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
158
159         PR bootstrap/43936
160         * plugin.h (flag_plugin_added): Moved out of
161         invoke_plugin_callbacks.
162
163 2010-04-29  Richard Guenther  <rguenther@suse.de>
164
165         PR bootstrap/43935
166         * plugin.h (invoke_plugin_callbacks): Annotate arguments
167         with ATTRIBUTE_UNUSED.
168
169 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
170
171         PR target/43921
172         * config/i386/i386.c (get_some_local_dynamic_name): Replace
173         INSN_P with NONDEBUG_INSN_P.
174         (distance_non_agu_define): Likewise.
175         (distance_agu_use): Likewise.
176
177 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
178
179         From Dominique d'Humieres <dominiq@lps.ens.fr>
180         PR bootstrap/43858
181         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
182         test_set.
183
184 2010-04-29  Brian Hackett   <bhackett1024@gmail.com>
185
186         * plugin.h (invoke_plugin_callbacks): New inline function.
187         * plugin.c (flag_plugin_added): New global flag.
188         (add_new_plugin): Initialize above flag.
189         (invoke_plugin_callbacks): Rename to ...
190         (invoke_plugin_callbacks_full): ... this.
191
192 2010-04-28  Jan Hubicka  <jh@suse.cz>
193
194         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
195         (lto_varpool_replace_node): New.
196         (lto_symtab_resolve_symbols): Resolve varpool nodes.
197         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
198         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
199         * cgraph.h (varpool_node_ptr): New type.
200         (varpool_node_ptr): New vector.
201         (varpool_node_set_def): New structure.
202         (varpool_node_set): New type.
203         (varpool_node_set): New vector.
204         (varpool_node_set_element_def): New structure.
205         (varpool_node_set_element, const_varpool_node_set_element): New types.
206         (varpool_node_set_iterator): New type.
207         (varpool_node): Add prev pointers, add used_from_other_partition,
208         in_other_partition.
209         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
210         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
211         varpool_get_node, varpool_remove_node): Declare.
212         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
213         varpool_node_set_size): New inlines.
214         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
215         * tree-pass.h (varpool_node_set_def): Forward declare.
216         (ipa_opt_pass_d): Summary writting takes vnode sets too.
217         (ipa_write_optimization_summaries): Update prototype.
218         * ipa-cp.c (ipcp_write_summary): Update.
219         * ipa-reference.c (ipa_reference_write_summary): Update.
220         * lto-cgraph.c (lto_output_varpool_node): New static function.
221         (output_varpool): New function.
222         (input_varpool_node): New static function.
223         (input_varpool_1): New function.
224         (input_cgraph): Input varpool.
225         * ipa-pure-const.c (pure_const_write_summary): Update.
226         * lto-streamer-out.c (lto_output): Update, output varpool too.
227         (write_global_stream): Kill WPA hack.
228         (produce_asm_for_decls): Update.
229         (output_alias_pair_p): Handle variables.
230         (output_unreferenced_globals): Output only needed partition of varpool.
231         * ipa-inline.c (inline_write_summary): Update.
232         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build cgraph.
233         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
234         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
235         varpool_node_set_new, varpool_node_set_add,
236         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
237         debug_varpool_node_set): New functions.
238         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
239         (execute_one_pass): Process new decls too.
240         (ipa_write_summaries_2): Pass around vsets.
241         (ipa_write_summaries_1): Likewise.
242         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
243         to add.
244         (ipa_write_optimization_summaries_1): Pass around vsets.
245         (ipa_write_optimization_summaries): Likewise.
246         * varpool.c (varpool_get_node): New.
247         (varpool_node): Update doubly linked lists.
248         (varpool_remove_node): New.
249         (dump_varpool_node): More dumping.
250         (varpool_enqueue_needed_node): Update doubly linked lists.
251         (decide_is_variable_needed): Kill ltrans hack.
252         (varpool_finalize_decl): Kill lto hack.
253         (varpool_assemble_decl): Skip decls in other partitions.
254         (varpool_assemble_pending_decls): Update doubly linkes lists.
255         (varpool_empty_needed_queue): Likewise.
256         (varpool_extra_name_alias): Likewise.
257         * lto-streamer.c (lto_get_section_name): Add vars section.
258         * lto-streamer.h (lto_section_type): Update.
259         (output_varpool, input_varpool): Declare.
260
261 2010-04-28  Mike Stump  <mikestump@comcast.net>
262
263         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
264
265 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
266
267         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
268         record or union type with RECORD_OR_UNION_TYPE_P predicate.
269         (lto_input_ts_type_tree_pointers): Likewise.
270         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
271         (lto_output_ts_type_tree_pointers): Likewise.
272
273 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
274
275         Uniquization of constants at the Tree level
276         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
277         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
278         bit to the end.
279         (tree_output_constant_def): Declare.
280         * gimplify.c (gimplify_init_constructor): When using block copy, first
281         uniquize the constant constructor on the RHS.
282         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
283         DECL_IN_CONSTANT_POOL flag.
284         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
285         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
286         constant pool.
287         (assemble_variable): Deal with symbols belonging to the tree constant
288         pool.
289         (get_constant_section): Add ALIGN parameter and simplify.
290         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
291         (assemble_constant_contents): Use the expression of the VAR_DECL.
292         (output_constant_def_contents): Use the alignment of the VAR_DECL.
293         (tree_output_constant_def): New global function.
294         (mark_constant): Use the expression of the VAR_DECL.
295         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
296         its expression.
297         (output_object_block): Likewise and assemble the expression.
298
299 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
300
301         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
302         hash_tree, eq_tree): New tree hash table.
303         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
304         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
305         lto_orig_address_remove): Reimplement.
306
307 2010-04-28  Xinliang David Li  <davidxl@google.com>
308
309         PR c/42643
310         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
311         (compute_uninit_opnds_pos): New function.
312         (is_non_loop_exit_postdominating): New function.
313         (compute_control_dep_chain): New function.
314         (find_pdom): New function.
315         (convert_control_dep_chain_into_preds): New function.
316         (find_predicates): New function.
317         (find_control_equiv_block): New function.
318         (collect_phi_def_edges): New function.
319         (find_def_preds): New function.
320         (find_dom): New function.
321         (dump_predicates): New function.
322         (get_cmp_code): New function.
323         (is_value_included_in): New function.
324         (find_matching_predicate_in_rest_chains): New function.
325         (use_pred_not_overlap_with_undef_path_pred): New function.
326         (is_use_properly_guarded): New function.
327         (normalize_cond_1): New function.
328         (is_and_or_or): New function.
329         (normalize_cond): New function.
330         (is_gcond_subset_of): New function.
331         (is_subset_of_any): New function.
332         (is_or_set_subset_of): New function.
333         (is_and_set_subset_of): New function.
334         (is_norm_cond_subset_of): New function.
335         (is_pred_expr_subset_of): New function.
336         (is_pred_chain_subset_of): New function.
337         (is_included_in): New function.
338         (is_superset_of): New function.
339         (find_uninit_use): New function.
340         (warn_uninitialized_phi): New function.
341         (compute_possibly_undefined_names): New function.
342         (ssa_undefined_value_p): New function.
343         (execute_late_warn_uninitialized): New function.
344         * tree-ssa.c (ssa_undefined_value_p): Removed.
345         (warn_uninit): Changed to extern.
346         (warn_uninitialized_phi): Removed.
347         (warn_uninitialized_vars): Changed to extern.
348         (execute_late_warn_uninitialized): Removed
349         * tree-flow.h: Add new prototypes.
350         * timevar.def: Add new time variable.
351         * Makefile.in: Add new build file.
352
353 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
354
355         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
356         type if available.
357
358 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
359
360         PR target/22224
361         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
362
363 2010-04-28  Martin Jambor  <mjambor@suse.cz>
364
365         * cgraph.h (struct cgraph_node): New field indirect_calls.
366         (struct cgraph_indirect_call_info): New type.
367         (struct cgraph_edge): Removed field indirect_call. New fields
368         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
369         (cgraph_create_indirect_edge): Declare.
370         (cgraph_make_edge_direct): Likewise.
371         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
372         * ipa-prop.h (struct ipa_param_call_note): Removed.
373         (struct ipa_node_params): Removed field param_calls.
374         (ipa_create_all_structures_for_iinln): Declare.
375         * cgraph.c: Described indirect edges and uids in initial comment.
376         (cgraph_add_edge_to_call_site_hash): New function.
377         (cgraph_edge): Search also among the indirect edges, use
378         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
379         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
380         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
381         site hash.
382         (initialize_inline_failed): Assign a reason to indirect edges.
383         (cgraph_create_edge_1): New function.
384         (cgraph_create_edge): Moved some functionality to
385         cgraph_create_edge_1.
386         (cgraph_create_indirect_edge): New function.
387         (cgraph_edge_remove_callee): Add an assert checking for
388         non-indirectness.
389         (cgraph_edge_remove_caller): Special-case indirect edges.
390         (cgraph_remove_edge): Likewise.
391         (cgraph_set_edge_callee): New function.
392         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
393         (cgraph_make_edge_direct): New function.
394         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
395         the declaration of the call statement matches.
396         (cgraph_node_remove_callees): Special-case indirect edges.
397         (cgraph_clone_edge): Likewise.
398         (cgraph_clone_node): Clone also the indirect edges.
399         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
400         indirect_call, dump count of indirect_calls edges.
401         * ipa-prop.c (iinlining_processed_edges): New variable.
402         (ipa_note_param_call): Create indirect edges instead of
403         creating notes.  New parameter node.
404         (ipa_analyze_call_uses): New parameter node, pass it on to
405         ipa_note_param_call.
406         (ipa_analyze_stmt_uses): Likewise.
407         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
408         (print_edge_addition_message): Work on edges rather than on notes.
409         (update_call_notes_after_inlining): Likewise, renamed to
410         update_indirect_edges_after_inlining.
411         (ipa_create_all_structures_for_iinln): New function.
412         (ipa_free_node_params_substructures): Do not free notes.
413         (ipa_edge_duplication_hook): Propagate bits within
414         iinlining_processed_edges bitmap.
415         (ipa_node_duplication_hook): Do not duplicate notes.
416         (free_all_ipa_structures_after_ipa_cp): Renamed to
417         ipa_free_all_structures_after_ipa_cp.
418         (free_all_ipa_structures_after_iinln): Renamed to
419         ipa_free_all_structures_after_iinln.g
420         (ipa_write_param_call_note): Removed.
421         (ipa_read_param_call_note): Removed.
422         (ipa_write_indirect_edge_info): New function.
423         (ipa_read_indirect_edge_info): Likewise.
424         (ipa_write_node_info): Do not stream notes, do stream information
425         in indirect edges.
426         (ipa_read_node_info): Likewise.
427         (lto_ipa_fixup_call_notes): Removed.
428         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
429         * ipa-inline.c (pass_ipa_inline): Likewise.
430         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
431         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
432         * tree-inline.c (copy_bb): Removed an unnecessary double check for
433         is_gimple_call.
434         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
435         edges.
436         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
437         (output_cgraph): Stream also indirect edges.
438         (lto_output_edge): Added capability to stream indirect edges.
439         (input_edge): Likewise.
440         (input_cgraph_1): Likewise.
441         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
442         of indirect edges.
443
444 2010-04-28  Richard Guenther  <rguenther@suse.de>
445
446         PR tree-optimization/43879
447         PR tree-optimization/43909
448         * tree-ssa-structalias.c (struct variable_info): Add
449         only_restrict_pointers flag.
450         (new_var_info): Initialize it.  Increment stats.total_vars here.
451         (create_function_info_for): Do not increment stats.total_vars
452         here.
453         (get_function_part_constraint): Fix build with C++.
454         (insert_into_field_list): Remove.
455         (push_fields_onto_fieldstack): Properly merge fields.
456         (create_variable_info_for): Split and simplify.
457         (create_variable_info_for_1): New piece.
458         (intra_create_variable_infos): Properly make restrict constraints
459         from parameters.
460
461 2010-04-28  Richard Guenther  <rguenther@suse.de>
462
463         PR c++/43880
464         * tree-inline.c (copy_bind_expr): Also copy bind expr vars
465         value-exprs.
466
467 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
468             Jan Hubicka <hubicka@ucw.cz>
469
470         * doc/invoke.texi (-Wsuggest-attribute=const,
471         -Wsuggest-attribute=pure): Document.
472         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
473         (function_always_visible_to_compiler_p,
474         suggest_attribute, warn_function_pure, warn_function_const):
475         New functions.
476         (check_call): Improve debug info.
477         (analyze_function): Do not check availability.
478         (add_new_function): Check availability.
479         (propagate): Output warnings.
480         (skip_function_for_local_pure_const): New function.
481         (local_pure_const): Use it; output warnings.
482         * common.opt (Wsuggest-attribute=const,
483         Wsuggest-attribute=pure): New.
484
485 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
486
487         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
488         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
489         or DW_CFA_def_cfa_offset{,_sf}.
490
491 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
492
493         * tree.h: Fix truncated long macros.
494
495 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
496
497         * collect2.c (TARGET_64BIT): Redefine to target's default.
498         * tlink.c: Likewise.
499         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
500         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
501         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
502         for underscoring __USER_LABEL_PREFIX__.
503         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
504         (SUB_LINK_ENTRY32): New.
505         (SUB_LINK_ENTRY64): New.
506         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
507         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
508         (SUB_LINK_ENTRY64): New.
509         (SUB_LINK_ENTRY): New.
510         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
511         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
512         x64 target is choosen.
513         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
514         * configure: Regenerated.
515         * configure.ac (leading-mingw64-underscores): Option added.
516
517 2010-04-27  Jan Hubicka  <jh@suse.cz>
518
519         * doc/invoke.texi (-fipa-profile): Document.
520         * opts.c (decode_options): Enable ipa-profile at -O1.
521         * timevar.def (TV_IPA_PROFILE): Define.
522         * common.opt (fipa-profile): Add.
523         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
524         flag for clones.
525         (cgraph_propagate_frequency): Handle only local ones.
526         * tree-pass.h (pass_ipa_profile): Declare.
527         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
528         (pass_ipa_profile): Use TV_IPA_PROFILE.
529         * ipa.c (ipa_profile): New function.
530         (gate_ipa_profile): Likewise.
531         (pass_ipa_profile): New global variable.
532         * passes.c (pass_ipa_profile): New.
533
534 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
535
536         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
537
538 2010-04-27  Martin Jambor  <mjambor@suse.cz>
539
540         PR middle-end/43812
541         * ipa.c (dissolve_same_comdat_group_list): New function.
542         (function_and_variable_visibility): Call
543         dissolve_same_comdat_group_list when comdat group contains external or
544         newly local nodes.
545         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
546         lists are circular and that they contain only DECL_ONE_ONLY nodes.
547
548 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
549
550         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
551         (const_hash_1) <VECTOR_CST>: New case.
552         (compare_constant) <VECTOR_CST>: Likewise.
553         <ADDR_EXPR>: Deal with LABEL_REFs.
554         (copy_constant) <VECTOR_CST>: New case.
555
556 2010-04-27  Jan Hubicka  <jh@suse.cz>
557
558         * cgraph.c (cgraph_propagate_frequency): New function.
559         * cgraph.h (cgraph_propagate_frequency): Declare.
560         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
561         cgraph_propagate_frequency.
562
563 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
564
565         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
566
567 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
568
569         PR target/40657
570         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
571         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
572         here to determine which regs to push and how much stack to reserve.
573
574 2010-04-27  Jie Zhang  <jie@codesourcery.com>
575
576         * doc/gimple.texi (gimple_statement_with_ops): Remove
577         addresses_taken field.
578         (gimple_statement_with_memory_ops): Likewise.
579
580 2010-04-27  Jan Hubicka  <jh@suse.cz>
581
582         * tree-inline.c (eni_inlining_weights): Remove.
583         (estimate_num_insns): Special case more builtins.
584
585 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
586
587         PR c/32207
588         * c-typeck.c (build_binary_op): Move forward check for comparison
589         pointer with null pointer constant and adjust the diagnostic message.
590
591 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
592
593         PR lto/42776
594         * configure.ac (gcc_cv_as_section_has_align): Set if installed
595         binutils supports extended .section directive needed by LTO, or
596         warn if older binutils found.
597         (LTO_BINARY_READER): New AC_SUBST'd variable.
598         (LTO_USE_LIBELF): Likewise.
599         * gcc/config.gcc (lto_binary_reader): New target-specific configure
600         variable.
601         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
602         (LTO_USE_LIBELF): Likewise.
603         * configure: Regenerate.
604
605         * collect2.c (is_elf): Rename from this ...
606         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
607          object files in addition to ELF-formatted ones.
608         (scan_prog_file): Caller updated.  Also allow for LTO info marker
609         symbol to be prefixed or not by an extra underscore.
610
611         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
612         * config/i386/winnt.c: Also #include lto-streamer.h
613         (i386_pe_asm_named_section): Specify 1-byte section alignment for
614         LTO named sections.
615         (i386_pe_asm_output_aligned_decl_common): Add comment.
616         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
617
618 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
619
620         PR target/43889
621         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
622         Add missing earlyclobber for second alternative.
623
624 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
625
626         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
627         bits for artificial defs at the top of the block.
628         * fwprop.c (single_def_use_enter_block): Don't call it.
629
630 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
631
632         PR 43715
633         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
634         instead of "$gcc_cv_objdump -T".
635         Use "-undefined dynamic_lookup" on darwin.
636         * gcc/configure: Regenerate.
637
638 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
639
640         PR c/43893
641         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
642
643 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
644
645         * c-parser.c (struct c_token): Move location field up.
646         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
647         (struct c_declspecs): Convert typespec_word, storage_class, and
648         default_int_p into bitfields.
649         (struct c_declarator): Move loc field up.
650
651 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
652
653         * cfgloop.h (struct loop): Move can_be_parallel field up.
654         * ipa-prop.h (struct ip_node_params): Move bitfields up.
655         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
656         down.
657         (struct iv_cand): Convert pos field into a bitfield.
658         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
659         field up.
660         (struct _stmt_vec_info): Shuffle fields for better packing.
661
662 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
663
664         * varasm.c (IN_NAMED_SECTION): Remove guard.
665         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
666         (IN_NAMED_SECTION_P): ...this.
667         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
668         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
669
670 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
671
672         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
673         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
674         of shadowing it.  Fix comments.
675
676 2010-04-26  Jan Hubicka  <jh@suse.cz>
677
678         * cgraph.c (cgraph_create_node): Set node frequency to normal.
679         (cgraph_clone_node): Copy function frequency.
680         * cgraph.h (node_frequency): New enum
681         (struct cgraph_node): Add.
682         * final.c (rest_of_clean_state): Update.
683         * lto-cgraph.c (lto_output_node): Output node frequency.
684         (input_overwrite_node): Input node frequency.
685         * tre-ssa-loop-ivopts (computation_cost): Update.
686         * lto-streamer-out.c (output_function): Do not output function
687         frequency.
688         * predict.c (maybe_hot_frequency_p): Update and handle functions
689         executed once.
690         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
691         attribute lookup.
692         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
693         (compute_function_frequency): Set noreturn functions to be executed
694         once.
695         (choose_function_section): Update.
696         * lto-streamer-in.c (input_function): Do not input function frequency.
697         * function.c (allocate_struct_function): Do not initialize function
698         frequency.
699         * function.h (function_frequency): Remove.
700         (struct function): Remove function frequency.
701         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
702         (try_update): Update.
703         * tree-inline.c (initialize_cfun): Do not update function frequency.
704         * passes.c (pass_init_dump_file): Update.
705         * i386.c (ix86_compute_frame_layout): Update.
706         (ix86_pad_returns): Update.
707
708 2010-04-26  Jie Zhang  <jie@codesourcery.com>
709
710         PR tree-optimization/43833
711         * tree-vrp.c (range_int_cst_p): New.
712         (range_int_cst_singleton_p): New.
713         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
714         when both operands are constants.  Use range_int_cst_p in
715         BIT_IOR_EXPR case.
716
717 2010-04-26  Jan Hubicka  <jh@suse.cz>
718
719         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
720
721 2010-04-26  Richard Guenther  <rguenther@suse.de>
722
723         PR lto/43080
724         * gimple.c (gimple_decl_printable_name): Deal gracefully
725         with a NULL DECL_NAME.
726
727 2010-04-26  Richard Guenther  <rguenther@suse.de>
728
729         PR lto/42425
730         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
731         if emitting debug information and it is either a function
732         or a namespace decl.
733
734 2010-04-26  Ira Rosen  <irar@il.ibm.com>
735
736         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
737         determine if the statement is vectorizable, and a macro to access it.
738         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
739         Skip statements that can't be vectorized. If the analysis fails,
740         mark the statement as unvectorizable if vectorizing basic block.
741         (vect_compute_data_refs_alignment): Likewise.
742         (vect_verify_datarefs_alignment): Skip statements marked as
743         unvectorizable. Add print.
744         (vect_analyze_group_access): Skip statements that can't be
745         vectorized. If the analysis fails, mark the statement as
746         unvectorizable if vectorizing basic block.
747         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
748         * tree-vect-stmts.c (vectorizable_store): Fix the number of
749         generated stmts for SLP.
750         (new_stmt_vec_info): Initialize the new field.
751         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
752         statements marked as unvectorizable.
753
754 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
755
756         * c-common.c (flag_isoc1x): New.
757         (flag_isoc99): Update comment.
758         * c-common.h (flag_isoc1x): New.
759         (flag_isoc99): Update comment.
760         * c-cppbuiltin.c (builtin_define_float_constants): Also define
761         __<type>_DECIMAL_DIG__.
762         * c-opts.c (set_std_c1x): New.
763         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
764         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
765         * c.opt (-std=c1x, -std=gnu1x): New options.
766         * doc/cpp.texi: Mention -std=c1x.
767         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
768         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
769         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
770         * doc/standards.texi: Mention C1X.
771         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
772         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
773         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
774         Define for C1X.
775
776 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
777
778         * config/i386/gmon-sol2.c (_mcleanup): Change format string
779         placeholder from 0x%x to %#x.
780         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
781         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
782         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
783         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
784         * config/i386/i386.c (ix86_target_string): Ditto.
785         (output_pic_addr_const): Ditto.
786         (print_operand): Ditto.
787
788 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
789
790         * combine.c (find_split_point): Add third argument.  Use it
791         to find nested multiply-accumulate instructions.  Adjust calls.
792         (try_combine): Adjust call to find_split_point.
793
794 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
795
796         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
797
798 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
799
800         PR tree-optimization/41442
801         * fold-const.c (merge_truthop_with_opposite_arm): New function.
802         (fold_binary_loc): Call it.
803
804 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
805
806         * toplev.c (general_init): Set default for fdiagnostics-show-option.
807         * opts.c (common_handle_option): Allow disabling it.
808         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
809
810 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
811
812         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
813         between modes if both types are integral.
814
815 2010-04-23  Richard Guenther  <rguenther@suse.de>
816
817         PR tree-optimization/43572
818         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
819
820 2010-04-23  Richard Guenther  <rguenther@suse.de>
821
822         PR lto/43455
823         * tree-inline.c (tree_can_inline_p): Also check compatibility
824         of return types.
825
826 2010-04-23  Martin Jambor  <mjambor@suse.cz>
827
828         PR tree-optimization/43846
829         * tree-sra.c (struct access): New flag grp_assignment_read.
830         (build_accesses_from_assign): Set grp_assignment_read.
831         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
832         (enum mark_read_status): New type.
833         (analyze_access_subtree): Propagate grp_assignment_read, create
834         accesses also if both direct_read and root->grp_assignment_read.
835
836 2010-04-23  Martin Jambor  <mjambor@suse.cz>
837
838         PR middle-end/43835
839         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
840         function does not have type attributes.
841
842 2010-04-23  Richard Guenther  <rguenther@suse.de>
843
844         PR lto/42653
845         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
846         of FUNCTION_DECLs.
847
848 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
849
850         * sese.h (create_if_region_on_edge): Remove.
851
852         * sese.c (create_if_region_on_edge): Make static.
853
854         * tree-inline.c: Do not include ggc.h.
855
856         * expr.c: Do not include ggc.h.
857
858         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
859         dependencies.
860
861 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
862
863         PR target/43744
864         * config/sh/sh.c (find_barrier): Don't emit a constant pool
865         in the middle of insns for casesi_worker_2.
866
867 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
868
869         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
870
871 2010-04-22  Ira Rosen  <irar@il.ibm.com>
872
873         PR tree-optimization/43842
874         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
875         loop unrolling in update of exit phis. Fix comment.
876         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
877         least two reduction statements in the loop before starting SLP
878         analysis.
879
880 2010-04-22  Nick Clifton  <nickc@redhat.com>
881
882         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
883
884 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
885
886         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
887         to simplify a + ~a.
888
889 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
890
891         * tree-parloops.c (loop_parallel_p): New argument
892         parloop_obstack.  Pass it down.
893         (parallelize_loops): New variable parloop_obstack.  Initialize it,
894         pass it down, free it.
895
896         * tree-loop-linear.c (linear_transform_loops): Pass down
897         lambda_obstack.
898
899         * tree-data-ref.h (lambda_compute_access_matrices): New argument
900         of type struct obstack *.
901
902         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
903         scratch_obstack.  Initialize it, pass down, free it.
904
905         * lambda.h (lambda_loop_new): Remove.
906         (lambda_matrix_new, lambda_matrix_inverse)
907         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
908         argument of type struct obstack *.
909
910         * lambda-trans.c (lambda_trans_matrix_new): New argument
911         lambda_obstack.  Pass it down, use obstack allocation for ret.
912         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
913         it down.
914
915         * lambda-mat.c (lambda_matrix_get_column)
916         (lambda_matrix_project_to_null): Remove.
917         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
918         allocation for mat.
919         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
920         lambda_obstack.
921
922         * lambda-code.c (lambda_loop_new): New function.
923         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
924         (lambda_compute_auxillary_space, lambda_compute_target_space)
925         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
926         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
927         (build_access_matrix): New argument lambda_obstack.  Use obstack
928         allocation for am.
929         (lambda_compute_step_signs, lambda_compute_access_matrices): New
930         argument lambda_obstack.  Pass it down.
931
932 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
933
934         * optabs.h (expand_widening_mult): Declare.
935
936 2010-04-22  Richard Guenther  <rguenther@suse.de>
937
938         PR tree-optimization/43845
939         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
940         lookup the CALL_EXPR function and arguments.
941
942 2010-04-22  Nick Clifton  <nickc@redhat.com>
943
944         * config/stormy16/stormy16.c
945         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
946         * config/stormy16/stormy16.h: Tidy up formatting.
947         (DONT_USE_BUILTIN_SETJMP): Remove definition.
948         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
949         (ineqbranchsi): Delete pattern.
950         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
951         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
952         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
953         stormy16-lib2-ucmpsi2.c.
954
955 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
956
957         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
958         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
959         extra set merge_set_noclobber, and use it to relax the final test
960         slightly.
961         * df.h (df_simulate_find_noclobber_defs): Declare.
962         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
963         conditional defs.
964         (df_simulate_find_noclobber_defs): New function.
965
966 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
967
968         * config/i386/i386.md: Use {} around multi-line preparation statements.
969
970 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
971
972         * c-tree.h (push_init_level, pop_init_level, set_init_index)
973         (process_init_element): New argument of type struct obstack *.
974
975         * c-typeck.c (push_init_level, pop_init_level, set_designator)
976         (set_init_index, set_init_label, set_nonincremental_init)
977         (set_nonincremental_init_from_string, find_init_member)
978         (output_init_element, output_pending_init_elements)
979         (process_init_element): New argument braced_init_obstack.  Pass it
980         down.
981         (push_range_stack, add_pending_init): New argument
982         braced_init_obstack.  Use obstack allocation.
983
984         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
985         braced_init_obstack.  Pass it down.
986         (c_parser_braced_init): New variables ret, braced_init_obstack.
987         Initialize obstack, pass it down and finally free it.
988
989 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
990
991         PR middle-end/29274
992         * tree-pass.h (pass_optimize_widening_mul): Declare.
993         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
994         gate_optimize_widening_mul): New static functions.
995         (pass_optimize_widening_mul): New.
996         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
997         <case MULT_EXPR>: Remove support for widening multiplies.
998         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
999         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
1000         simplify_gen_unary rather than directly building extensions.
1001         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
1002         WIDEN_MULT_EXPR.
1003         * expmed.c (expand_widening_mult): New function.
1004         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
1005
1006 2010-04-21  Jan Hubicka  <jh@suse.cz>
1007
1008         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
1009         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
1010         * lto-wpa-fixup.c: Remove.
1011         * Makefile.in (lto-wpa-fixup.o): Remove.
1012         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
1013         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
1014         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
1015
1016 2010-04-21  Jan Hubicka  <jh@suse.cz>
1017
1018         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
1019         add write_optimization_summary, read_optimization_summary.
1020         (ipa_write_summaries_of_cgraph_node_set): Remove.
1021         (ipa_write_optimization_summaries): Declare.
1022         (ipa_read_optimization_summaries): Declare.
1023         * ipa-cp.c (pass_ipa_cp): Update.
1024         * ipa-reference.c (pass_ipa_reference): Update.
1025         * ipa-pure-const.c (pass_ipa_pure_const): Update.
1026         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
1027         Update.
1028         * ipa-inline.c (pass_ipa_inline): Update.
1029         * ipa.c (pass_ipa_whole_program): Update.
1030         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
1031         * passes.c (ipa_write_summaries_1): Do not test wpa.
1032         (ipa_write_optimization_summaries_1): New.
1033         (ipa_write_optimization_summaries): New.
1034         (ipa_read_summaries): Do not test ltrans.
1035         (ipa_read_optimization_summaries_1): New.
1036         (ipa_read_optimization_summaries): New.
1037
1038 2010-04-21  Jan Hubicka  <jh@suse.cz>
1039
1040         * lto-cgraph.c (lto_output_node): Do not output comdat groups
1041         for boundary nodes.
1042         (output_cgraph): Do not arrange comdat groups for boundary nodes.
1043
1044 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1045
1046         PR debug/40040
1047         * dwarf2out.c (add_name_and_src_coords_attributes): Add
1048         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
1049
1050 2010-04-21  Jan Hubicka  <jh@suse.cz>
1051
1052         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
1053
1054 2010-04-21  Jan Hubicka  <jh@suse.cz>
1055
1056         * varpool.c (decide_is_variable_needed): Variable is always needed
1057         during ltrans.
1058
1059 2010-04-21  Jan Hubicka  <jh@suse.cz>
1060
1061         * opts.c (decode_options): Enable pure-const pass for whopr.
1062
1063 2010-04-21  Jan Hubicka  <jh@suse.cz>
1064
1065         * cgraph.c (dump_cgraph_node): Dump also assembler name.
1066         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
1067         at WPA dumping.
1068         (cgraph_decide_inlining): Do not expect callee to be removed in all
1069         cases.
1070
1071 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
1072
1073         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
1074
1075 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
1076
1077         * config/i386/i386.md (x86_shrd): Add athlon_decode and
1078         amdfam10_decode attributes.
1079
1080 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1081
1082         PR middle-end/43570
1083         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
1084         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
1085         (lower_copyprivate_clauses): Use private var in outer
1086         context instead of original var.  Make sure the types
1087         are correct for VLAs.
1088
1089 2010-04-21  Richard Guenther  <rguenther@suse.de>
1090
1091         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
1092         to non-pointer objects.
1093
1094 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1095
1096         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
1097         last chain entry if it starts with the still current label.
1098         (add_location_or_const_value_attribute): Check that
1099         loc_list->first->next is NULL instead of comparing ->first with ->last.
1100         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
1101         to add_var_loc_to_decl.
1102
1103         * dwarf2out.c (output_call_frame_info): For dw_cie_version
1104         >= 4 add also address size and segment size fields into CIE header.
1105
1106         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
1107         long as address size is the same as sizeof (void *) and
1108         segment size is 0.
1109         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
1110         address size or segment size is unexpected, return DW_EH_PE_omit.
1111         (classify_object_over_fdes): If get_cie_encoding returned
1112         DW_EH_PE_omit, return -1.
1113         (init_object): If classify_object_over_fdes returned -1,
1114         pretend there were no FDEs at all.
1115
1116 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
1117
1118         * config/i386/i386.md (bswap<mode>2): Macroize expander from
1119         bswap{si,di}2 using SWI48 mode iterator.
1120         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
1121         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
1122         set modrm attribute of bswap insn to 0 and remove length attribute.
1123         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
1124         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
1125         set mode attribute to <MODE> and remove length attribute.
1126
1127 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
1128
1129         PR rtl-optimization/43520
1130         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
1131         zero available registers.
1132
1133 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1134
1135         * builtins.c (fold_builtin_cproj): Fold more cases.
1136
1137 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1138
1139         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
1140         (fold_builtin_1): Fold builtin cproj.
1141         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
1142         Use ATTR_CONST_NOTHROW_LIST.
1143
1144 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
1145
1146         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
1147         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
1148         ffsi2_no_cmove for !TARGET_CMOVE.
1149         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
1150         (ffssi2): Remove expander.
1151         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
1152         mode iterator.
1153         (ctz<mode>2): Ditto from ctz{si,di}2.
1154         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
1155         mode iterator.
1156         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
1157         mode iterator.
1158
1159 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1160
1161         * dwarf2out.c (AT_linkage_name): Define.
1162         (clone_as_declaration): Handle DW_AT_linkage_name.
1163         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
1164         of DW_AT_MIPS_linkage_name.
1165         (move_linkage_attr): Likewise.
1166         (dwarf2out_finish): Likewise.
1167
1168 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
1169
1170         PR middle-end/41952
1171         * fold-const.c (fold_comparison): New folding rule.
1172
1173 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
1174
1175         * double-int.h (double_int_setbit): Declare.
1176         * double-int.c (double_int_setbit): New function.
1177         * rtl.h (immed_double_int_const): Declare.
1178         * emit-rtl.c (immed_double_int_const): New function.
1179         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
1180         and immed_double_int_const functions.
1181         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
1182         expand_copysign_bit):  (Ditto.).
1183         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
1184         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
1185         * dojump.c (prefer_and_bit_test): (Ditto.).
1186         * expr.c (convert_modes, reduce_to_bit_field_precision,
1187         const_vector_from_tree): (Ditto.).
1188         * expmed.c (mask_rtx, lshift_value): (Ditto.).
1189
1190 2010-04-20  Jan Hubicka  <jh@suse.cz>
1191
1192         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
1193         (dump_cgraph_node): Dump new flags.
1194         * cgraph.h (struct cgraph_node): Add flags
1195         reachable_from_other_partition and in_other_partition.
1196         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
1197         other partition can not be removed.
1198         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
1199         the other partition must be output; silence sanity checking on
1200         leaking functions bodies from other paritition.
1201         * lto-cgraph.c (reachable_from_other_partition_p): New function.
1202         (lto_output_node): Output new flags; do not sanity check that inline
1203         clones are output; drop lto_forced_extern_inline_p code; do not mock
1204         visibility flags at partition boundaries.
1205         (add_node_to): New function.
1206         (output_cgraph): Use it to sort functions so masters appear before
1207         clones.
1208         (input_overwrite_node): Input new flags.
1209         * passes.c (ipa_write_summaries): Do not call
1210         lto_new_extern_inline_states.
1211         * lto-section-out.c (forced_extern_inline,
1212         lto_new_extern_inline_states lto_delete_extern_inline_states,
1213         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
1214         * lto-streamer.h (lto_new_extern_inline_states,
1215         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
1216         lto_forced_extern_inline_p): Kill.
1217
1218 2010-04-20  Richard Guenther  <rguenther@suse.de>
1219
1220         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
1221         from vars that can have pointers.
1222         (process_constraint): Dump useless constraints.
1223
1224 2010-04-20  Richard Guenther  <rguenther@suse.de>
1225
1226         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
1227         (dump_sa_points_to_info): Remove asserts.
1228         (init_base_vars): nothing_id isn't an escape point nor does it
1229         have pointers.
1230
1231 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1232
1233         * tree.h (TYPE_REF_IS_RVALUE): Define.
1234         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
1235         should_move_die_to_comdat, prune_unused_types_walk): Handle
1236         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
1237         (modified_type_die, gen_reference_type_die): Emit
1238         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
1239         if TYPE_REF_IS_RVALUE and -gdwarf-4.
1240
1241 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1242
1243         PR target/43635
1244         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
1245         calls for -fpic -m31 if they have been sibcall optimized.
1246
1247 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
1248
1249         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
1250         ar.lc fixed and call-used.
1251
1252         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
1253
1254 2010-04-19  Jan Hubicka  <jh@suse.cz>
1255
1256         * opts.c (decode_options): Disable whpr incompatible passes.
1257         * lto/lto.c (lto_1_to_1_map): Skip clones.
1258         (read_cgraph_and_symbols): Do not mark everything as needed.
1259         (do_whole_program_analysis): Do map only after optimizing;
1260         set proper cgraph_state; use passmanager.
1261
1262 2010-04-19  DJ Delorie  <dj@redhat.com>
1263
1264         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
1265         POINTER_PLUS_EXPR and fix them.
1266
1267 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
1268
1269         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
1270         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
1271         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
1272         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
1273         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
1274         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
1275         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
1276         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
1277         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
1278         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
1279         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
1280
1281 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1282
1283         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
1284         (check_cond_move_block): Likewise.
1285         (cond_move_process_if_block): Likewise.
1286         (noce_find_if_block): Improve formatting.
1287         (find_if_header): Pass 0 to memset and tweak conditions.
1288         (cond_exec_find_if_block): Fix long lines and tweak conditions.
1289
1290 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1291
1292         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
1293         for -gdwarf-4.
1294
1295         PR middle-end/43337
1296         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
1297         with non-local decl doesn't need chain.
1298
1299 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1300
1301         * ira-color.c (allocno_reload_assign): Avoid accumulating
1302         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
1303
1304 2010-04-19  Martin Jambor  <mjambor@suse.cz>
1305
1306         * gimple.h (create_tmp_reg): Declare.
1307         * gimplify.c (create_tmp_reg): New function.
1308         (gimplify_return_expr): Use create_tmp_reg.
1309         (gimplify_omp_atomic): Likewise.
1310         (gimple_regimplify_operands): Likewise.
1311         * tree-dfa.c (make_rename_temp): Likewise.
1312         * tree-predcom.c (predcom_tmp_var): Likewise.
1313         (reassociate_to_the_same_stmt): Likewise.
1314         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
1315         (get_replaced_param_substitute): Likewise.
1316         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1317         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1318         * tree-ssa-pre.c (get_representative_for): Likewise.
1319         (create_expression_by_pieces): Likewise.
1320         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
1321         (create_tailcall_accumulator): Likewise.
1322
1323 2010-04-19  Martin Jambor  <mjambor@suse.cz>
1324
1325         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
1326         new_stmt.
1327         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
1328
1329 2010-04-19  Richard Guenther  <rguenther@suse.de>
1330
1331         PR tree-optimization/43796
1332         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
1333         from SCEV in the lattice.
1334         (vrp_visit_phi_node): Dump change.
1335
1336 2010-04-19  Richard Guenther  <rguenther@suse.de>
1337
1338         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
1339         * configure: Re-generated.
1340
1341 2010-04-19  Richard Guenther  <rguenther@suse.de>
1342
1343         PR tree-optimization/43783
1344         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
1345         constant ARRAY_REF operands two and three if possible.
1346
1347 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
1348
1349         PR target/43766
1350         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
1351
1352 2010-04-19  Jie Zhang  <jie@codesourcery.com>
1353
1354         PR target/43662
1355         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
1356
1357 2010-04-19  Ira Rosen  <irar@il.ibm.com>
1358
1359         PR tree-optimization/37027
1360         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
1361         and macro to access it.
1362         (vectorizable_reduction): Add argument.
1363         (vect_get_slp_defs): Likewise.
1364         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
1365         statements for possible use in SLP.
1366         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
1367         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
1368         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
1369         add new argument.
1370         (vectorizable_reduction): Likewise.
1371         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
1372         vect_get_slp_defs.
1373         (vectorizable_type_demotion, vectorizable_type_promotion,
1374         vectorizable_store): Likewise.
1375         (vect_analyze_stmt): Update call to vectorizable_reduction.
1376         (vect_transform_stmt): Likewise.
1377         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
1378         (vect_build_slp_tree): Fix indentation. Check that there are no loads
1379         from different interleaving chains in same node.
1380         (vect_slp_rearrange_stmts): New function.
1381         (vect_supported_load_permutation_p): Allow load permutations for
1382         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
1383         inside SLP nodes if necessary.
1384         (vect_analyze_slp_instance): Handle reductions.
1385         (vect_analyze_slp): Try to build SLP instances originating from groups
1386         of reductions.
1387         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
1388         (vect_get_constant_vectors): Create initial vectors for reductions
1389         according to reduction code. Add new argument.
1390         (vect_get_slp_defs): Add new argument, pass it to
1391         vect_get_constant_vectors.
1392         (vect_schedule_slp_instance): Remove SLP tree root statements.
1393
1394 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1395
1396         * tree.h (ENUM_IS_SCOPED): Define.
1397         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
1398         for ENUM_IS_SCOPED enums.
1399
1400 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1401
1402         * fold-const.c (fold_comparison): Use ssizetype.
1403         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1404         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
1405         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
1406         * tree-object-size.c (compute_object_sizes): Use size_type_node.
1407
1408         * tree.h (initialize_sizetypes): Remove parameter.
1409         (build_common_tree_nodes): Remove second parameter.
1410         * stor-layout.c (initialize_sizetypes): Remove parameter.
1411         Always create an unsigned type.
1412         (set_sizetype): Assert that the passed type is unsigned and simplify.
1413         * tree.c (build_common_tree_nodes): Remove second parameter.
1414         Adjust call to initialize_sizetypes.
1415         * c-decl.c (c_init_decl_processing): Remove second argument in call to
1416         build_common_tree_nodes.
1417
1418 2010-04-18  Matthias Klose  <doko@ubuntu.com>
1419
1420         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
1421
1422 2010-04-18  Ira Rosen  <irar@il.ibm.com>
1423
1424         PR tree-optimization/43771
1425         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
1426         load permutation doesn't have gaps.
1427
1428 2010-04-18  Jan Hubicka  <jh@suse.cz>
1429
1430         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
1431         (sse_prologue_save_insn expander): Use new pattern.
1432         (sse_prologue_save_insn1): New pattern and splitter.
1433         (sse_prologue_save_insn): Update to deal also with 64bit aligned
1434         blocks.
1435         * i386.c (setup_incoming_varargs_64): Do not compute jump
1436         destination here.
1437         (ix86_gimplify_va_arg): Update alignment needed.
1438         (ix86_local_alignment): Do not align all local arrays to 128bit.
1439
1440 2010-04-17  Jan Hubicka  <jh@suse.cz>
1441
1442         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
1443
1444 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1445
1446         * arm.md (negdi2): Remove redundant code to force values into a
1447         register.
1448
1449 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1450
1451         * arm/bpabi.S: Add EABI alignment attributes to objects.
1452         * arm/bpabi-v6m.S: Likewise.
1453         * arm/crti.asm: Likewise.
1454         * arm/crtn.asm: Likewise.
1455         * arm/lib1funcs.asm: Likewise.
1456         * arm/libunwind.S: Likewise.
1457
1458 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1459
1460         * arm-protos.h (tune_params): New structure.
1461         * arm.c (current_tune): New variable.
1462         (arm_constant_limit): Delete.
1463         (struct processors): Add pointer to the tune parameters.
1464         (arm_slowmul_tune): New tuning option.
1465         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
1466         (all_cores): Adjust to pick up the tuning model.
1467         (arm_constant_limit): New function.
1468         (arm_override_options): Select the appropriate tuning model.  Delete
1469         initialization of arm_const_limit.
1470         (arm_split_constant): Use the new constant-limit model.
1471         (arm_rtx_costs): Pick up the current tuning model.
1472         * arm.md (is_strongarm, is_xscale): Delete.
1473         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
1474         for Xscale variant architectures.
1475         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
1476
1477 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1478
1479         * config/arm/arm.c (arm_gen_constant): Remove unused variable
1480         can_shift.
1481         (arm_rtx_costs_1): Remove unused variable extra_cost.
1482         (arm_unwind_emit_set): Use variable offset.
1483         (thumb1_output_casesi): Remove unused variable flags.
1484
1485 2010-04-16  Jeff Law  <law@redhat.com>
1486
1487         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
1488         needing assignment rather than doing a two-phase assignment.  Remove
1489         unused variable 'm'.
1490
1491 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1492
1493         PR bootstrap/43767
1494         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
1495
1496 2010-04-16  Doug Kwan  <dougkwan@google.com>
1497
1498         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
1499         (next_operand_entry_id): New static variable.
1500         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
1501         (add_to_ops_vec): Assigned unique ID to operand entry.
1502         (struct oecount_s): New field ID.
1503         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
1504         (undistribute_ops_list): Assign unique IDs to oecounts.
1505         (init_reassoc): reset next_operand_entry_id.
1506
1507 2010-04-16  Doug Kwan  <dougkwan@google.com>
1508
1509         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
1510         missing left parenthesis.
1511
1512 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
1513
1514         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
1515         *btdi_rex64 using SWI48 mode iterator.
1516         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
1517         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
1518         *jcc_btdi_mask_rex64.
1519
1520 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
1521
1522         * double-int.h (tree_to_double_int): Convert to macro.
1523         * double-int.c (tree_to_double_int): Remove.
1524
1525 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1526
1527         PR debug/43762
1528         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
1529         with want_address 2 and in case a single element list might be
1530         possible, call it again with want_address 0.
1531
1532 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1533
1534         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
1535         case 'W' print operands for HI mode.
1536         * config/h8300/h8300.h (Y0, Y2) : New constraints.
1537         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
1538         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
1539         * config/h8300/predicate.md (bit_register_indirect_operand): New.
1540
1541         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
1542
1543         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
1544         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
1545         #xx:3 and #xx:4 mode.
1546
1547         * config/h8300/h8300.md (inverted load with HImode dest): Add
1548         support for H8300SX.
1549
1550         * config/h8300/predicate.md (bit_operand): Allow immediate values that
1551         satisfy 'U' constraint.
1552
1553 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1554
1555         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
1556         * configure: Regenerate.
1557         * config.in: Regenerate.
1558         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
1559         works.
1560
1561 2010-04-16  Richard Guenther  <rguenther@suse.de>
1562
1563         * tree.h (struct tree_decl_minimal): Move pt_uid ...
1564         (struct tree_decl_common): ... here.
1565         (DECL_PT_UID): Adjust.
1566         (SET_DECL_PT_UID): Likewise.
1567         (DECL_PT_UID_SET_P): Likewise.
1568
1569 2010-04-16  Richard Guenther  <rguenther@suse.de>
1570
1571         PR tree-optimization/43572
1572         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
1573         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
1574         * tree-flow.h (is_call_clobbered): Remove.
1575         * tree-flow-inline.h (is_call_clobbered): Likewise.
1576         * tree-dfa.c (dump_variable): Do not dump call clobber state.
1577         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
1578         (execute_return_slot_opt): Adjust.
1579         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
1580         check for call clobbered vars here.
1581         (find_tail_calls): Move tailcall verification to the
1582         proper place.
1583
1584 2010-04-16  Diego Novillo  <dnovillo@google.com>
1585
1586         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
1587
1588 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1589
1590         PR target/40603
1591         * config/arm/arm.md (cbranchqi4): New pattern.
1592         * config/arm/predicates.md (const0_operand,
1593         cbranchqi4_comparison_operator): New predicates.
1594
1595 2010-04-16  Richard Guenther  <rguenther@suse.de>
1596
1597         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
1598         (dump_gimple_stmt): Likewise.
1599
1600 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1601
1602         * recog.h (struct recog_data): New field is_operator.
1603         (struct insn_operand_data): New field is_operator.
1604         * recog.c (extract_insn): Set recog_data.is_operator.
1605         * genoutput.c (output_operand_data): Emit code to set the
1606         is_operator field.
1607         * reload.c (find_reloads): Use it rather than testing for an
1608         empty constraint string.
1609
1610         PR target/41514
1611         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
1612         If the previous insn is a cbranchsi4_insn with the same arguments,
1613         omit the compare instruction.
1614
1615         * config/arm/arm.md (addsi3_cbranch): If destination is a high
1616         register, inputs must be low registers and we need a low register
1617         scratch.  Handle alternative 2 like alternative 3.
1618
1619 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1620
1621         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
1622         don't call get_addr on both.  If one expression is a VALUE and
1623         the other a REG, check VALUE's locs if the REG isn't among them.
1624
1625 2010-04-16  Christian Bruel  <christian.bruel@st.com>
1626
1627         * config/sh/sh.h (sh_frame_pointer_required): New function.
1628         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
1629         (flag_omit_frame_pointer) Set.
1630         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
1631         (rounded_frame_size): Adjust size with outgoing_args_size.
1632         (sh_set_return_address): Must return from stack pointer.
1633         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
1634         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
1635         (ACCUMULATE_OUTGOING_ARGS): Define.
1636         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
1637         * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
1638
1639 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1640
1641         PR target/43471
1642         * config/sh/sh.c (sh_legitimize_reload_address): Use
1643         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
1644         Remove a unneeded check for offset_base.
1645
1646 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1647
1648         * configure: Regenerated.
1649
1650 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1651
1652         * config/s390/s390.c (s390_call_save_register_used): Switch back
1653         to HARD_REGNO_NREGS.
1654
1655 2010-04-15  Richard Guenther  <rguenther@suse.de>
1656
1657         * alias.c (alias_set_subset_of): Handle alias-set zero
1658         child properly.
1659
1660 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
1661             Julian Brown  <julian@codesourcery.com>
1662
1663         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
1664         alternatives according to use of high and low regs.
1665         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1666         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
1667         optimizing for size on Thumb-2.
1668
1669 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
1670
1671         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
1672
1673 2010-04-15  Richard Guenther  <rguenther@suse.de>
1674
1675         * tree-ssa-structalias.c (struct variable_info): Add
1676         is_fn_info flag.
1677         (new_var_info): Initialize it.
1678         (dump_constraints): Support printing last added constraints.
1679         (debug_constraints): Adjust.
1680         (dump_constraint_graph): Likewise.
1681         (make_heapvar_for): Check for NULL cfun.
1682         (get_function_part_constraint): New function.
1683         (get_fi_for_callee): Likewise.
1684         (find_func_aliases): Properly implement IPA PTA constraints.
1685         (process_ipa_clobber): New function.
1686         (find_func_clobbers): Likewise.
1687         (insert_into_field_list_sorted): Remove.
1688         (create_function_info_for): Properly allocate vars for IPA mode.
1689         Do not use insert_into_field_list_sorted.
1690         (create_variable_info_for): Properly generate constraints for
1691         global vars in IPA mode.
1692         (dump_solution_for_var): Always dump the solution.
1693         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
1694         (find_what_var_points_to): Adjust.
1695         (pt_solution_set): Change.
1696         (pt_solution_ior_into): New function.
1697         (pt_solution_empty_p): Export.
1698         (pt_solution_includes_global): Adjust.
1699         (pt_solution_includes_1): Likewise.
1700         (pt_solutions_intersect_1): Likewise.
1701         (dump_sa_points_to_info): Check some invariants.
1702         (solve_constraints): Move constraint dumping ...
1703         (compute_points_to_sets): ... here.
1704         (ipa_pta_execute): ... and here.
1705         (compute_may_aliases): Do not re-compute points-to info
1706         locally if IPA info is available.
1707         (ipa_escaped_pt): New global var.
1708         (ipa_pta_execute): Properly implement IPA PTA.
1709         * tree-into-ssa.c (dump_decl_set): Support dumping
1710         decls not in referenced-vars.
1711         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
1712         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
1713         (dump_points_to_solution): Likewise.
1714         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
1715         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
1716         (remap_gimple_stmt): Reset call clobber/use information if necessary.
1717         (copy_decl_to_var): Copy DECL_PT_UID.
1718         (copy_result_decl_to_var): Likewise.
1719         * tree.c (make_node_stat): Initialize DECL_PT_UID.
1720         (copy_node_stat): Copy it.
1721         * tree.h (DECL_PT_UID): New macro.
1722         (SET_DECL_PT_UID): Likewise.
1723         (DECL_PT_UID_SET_P): Likewise.
1724         (struct tree_decl_minimal): Add pt_uid member.
1725         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
1726         (pt_solution_empty_p): Declare.
1727         (pt_solution_set): Adjust.
1728         (ipa_escaped_pt): Declare.
1729         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
1730         * gimple-pretty-print.c (pp_points_to_solution): New function.
1731         (dump_gimple_call): Dump call clobber/use information.
1732         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
1733         * tree-pass.h (TDF_ALIAS): New dump option.
1734         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
1735         * doc/invoke.texi (-fipa-pta): Update documentation.
1736
1737 2010-04-15  Richard Guenther  <rguenther@suse.de>
1738
1739         * Makefile.in (OBJS-common): Add gimple-fold.o.
1740         (gimple-fold.o): New rule.
1741         * tree.h (maybe_fold_offset_to_reference,
1742         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
1743         prototypes ...
1744         * gimple.h: ... here.
1745         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
1746         may_propagate_address_into_dereference): Move prototypes ...
1747         * gimple.h: ... here.
1748         * tree-ssa-ccp.c (get_symbol_constant_value,
1749         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
1750         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
1751         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
1752         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
1753         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
1754         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
1755         gimplify_and_update_call_from_tree): Move ...
1756         * gimple-fold.c: ... here.  New file.
1757         (ccp_fold_builtin): Rename to ...
1758         (gimple_fold_builtin): ... this.
1759         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
1760
1761 2010-04-15  Richard Guenther  <rguenther@suse.de>
1762
1763         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
1764         fit_double_type, force_fit_type_double, add_double_with_sign,
1765         neg_double, mul_double_with_sign, lshift_double, rshift_double,
1766         lrotate_double, rrotate_double, div_and_round_double): Move ...
1767         * double-int.c: ... here.
1768         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
1769         add_double, neg_double, mul_double_with_sign, mul_double,
1770         lshift_double, rshift_double, lrotate_double, rrotate_double,
1771         div_and_round_double): Move prototypes ...
1772         * double-int.h: ... here.
1773
1774 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
1775
1776         PR target/43742
1777         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
1778         matching constraints to ensure inputs match the output.
1779
1780 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1781
1782         PR target/43742
1783         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
1784         in an input-only operand.
1785
1786 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
1787
1788         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
1789         (double_int_not, double_int_lshift, double_int_rshift): Declare.
1790         (double_int_negative_p): Convert to static inline function.
1791         * double-int.c (double_int_lshift, double_int_lshift): New functions.
1792         (double_int_negative_p): Remove.
1793         * tree.h (lshift_double, rshift_double):
1794         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
1795         * fold-const.c (fold_convert_const_int_from_real,
1796         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
1797         (lshift_double): Change type of arith argument to bool.
1798         (rshift_double): Change type of arith argument to bool. Correct
1799         comment.
1800         * expmed.c (mask_rtx, lshift_value): (Ditto.).
1801
1802 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
1803
1804         PR target/21803
1805         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
1806         at the start and end of the then/else blocks, and omit them from the
1807         conversion.
1808         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
1809         argument; all callers changed.  Pass zero to old_insns_match_p instead.
1810         (flow_find_head_matching_sequence): New function.
1811         (old_insns_match_p): Check REG_EH_REGION notes for calls.
1812         * basic-block.h (flow_find_cross_jump,
1813         flow_find_head_matching_sequence): Declare functions.
1814
1815 2010-04-14  Jason Merrill  <jason@redhat.com>
1816
1817         PR c++/36625
1818         * c-common.c (attribute_takes_identifier_p): New fn.
1819         * c-common.h: Declare it.
1820
1821 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1822
1823         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
1824         splitter condition.
1825         (*udivmod<mode>4): Ditto.
1826
1827 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1828
1829         * config/i386/i386.md (maxmin_int): Rename code attribute from
1830         maxminiprefix and update all users.
1831         (maxmin_float): Ditto from maxminfprefix.
1832         (logic): Ditto from logicprefix.
1833         (absneg_mnemonic): Ditto from absnegprefix.
1834         * config/i386/mmx.md: Update all users of maxminiprefix,
1835         maxminfprefix and logicprefix for rename.
1836         * config/i386/sse.md: Ditto.
1837         * config/i386/sync.md (sync_<code><mode>): Update for
1838         logicprefix rename.
1839
1840 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1841
1842         PR 42966
1843         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
1844         warnings converted to errors.
1845
1846 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1847
1848         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
1849         used insn_type variable.
1850         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
1851         to avoid set-but-not-used warning.
1852
1853 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1854
1855         * df-core.c (df_ref_debug): Change format string placeholder
1856         from 0x%x to %#x.
1857         * dwarf2asm.c (dw2_asm_output_data_raw,
1858         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
1859         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
1860         * dwarf2out.c (output_cfi, output_cfi_directive,
1861         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
1862         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
1863         Ditto.
1864         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
1865         * print-rtl.c (print_rtx): Ditto.
1866
1867 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1868
1869         PR middle-end/42694
1870         * builtins.c (expand_builtin_pow_root): New function to expand pow
1871         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
1872         series of sqrt and cbrt calls under -ffast-math.
1873         (expand_builtin_pow): Call it.
1874
1875 2010-04-14  Michael Matz  <matz@suse.de>
1876
1877         PR tree-optimization/42963
1878         * tree-cfg.c (touched_switch_bbs): New static variable.
1879         (group_case_labels_stmt): New function broken out from ...
1880         (group_case_labels): ... here, use the above.
1881         (start_recording_case_labels): Allocate touched_switch_bbs.
1882         (end_recording_case_labels): Deallocate it, call
1883         group_case_labels_stmt.
1884         (gimple_redirect_edge_and_branch): Remember index of affected BB.
1885
1886 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1887
1888         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
1889         from insn template.
1890
1891 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1892
1893         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
1894
1895 2010-04-13  Jan Hubicka  <jh@suse.cz>
1896
1897         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
1898         of optimized out static functions.
1899         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
1900         cost computation.  Also sanity check for overflows.
1901         (update_caller_keys): Update cgraph_edge_badness call; properly
1902         update fibheap and sanity check that it is up to date.
1903         (add_new_edges_to_heap): Update cgraph_edge_badness.
1904         (cgraph_decide_inlining_of_small_function): Likewise;
1905         add sanity checking that badness in heap is up to date;
1906         improve dumping of reason; Update badness of calls to the
1907         offline copy of function currently inlined; dump badness
1908         of functions not inlined because of unit growth limits.
1909
1910 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
1911
1912         PR middle-end/32628
1913         * c-common.c (pointer_int_sum): Disregard overflow that occured only
1914         because of sign-extension change when converting to sizetype here...
1915         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
1916
1917         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
1918         the folding to constants.  Remove redundant final conversion.
1919         (fold_binary) <associate>: Do not associate if the re-association of
1920         constants alone overflows.
1921         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
1922         to the end of the list.
1923         (multiple_of_p) <COND_EXPR>: New case.
1924
1925 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1926
1927         * opt-functions.awk (opt_sanitized_name): New.
1928         (opt_enum): New.
1929         * optc-gen.awk: Use it
1930         * opth-gen.awk: Use it.
1931
1932 2010-04-13  Martin Jambor  <mjambor@suse.cz>
1933
1934         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
1935         (sra_modify_assign): Delete stmts loading dead data even if racc has no
1936         children.  Call replace_uses_with_default_def_ssa_name to handle
1937         SSA_NAES on lhs.
1938
1939 2010-04-13  Michael Matz  <matz@suse.de>
1940
1941         PR middle-end/43730
1942         * builtins.c (expand_builtin_interclass_mathfn): Also create
1943         a register if the predicate doesn't match.
1944
1945 2010-04-13  Diego Novillo  <dnovillo@google.com>
1946
1947         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
1948         * c-pch.c: Include timevar.h.
1949         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
1950         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
1951         * ggc-common.c: Include timevar.h.
1952         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
1953         * timevar.def (TV_PCH_SAVE): Define.
1954         (TV_PCH_CPP_SAVE): Define.
1955         (TV_PCH_PTR_REALLOC): Define.
1956         (TV_PCH_PTR_SORT): Define.
1957         (TV_PCH_RESTORE): Define.
1958         (TV_PCH_CPP_RESTORE): Define.
1959
1960 2010-04-13  Michael Matz  <matz@suse.de>
1961
1962         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
1963         into MINUS_EXPRs.
1964         (can_reassociate_p): New function.
1965         (break_up_subtract_bb, reassociate_bb): Use it.
1966
1967 2010-04-13  Richard Guenther  <rguenther@suse.de>
1968
1969         PR bootstrap/43737
1970         * builtins.c (c_readstr): Fix assert.
1971
1972 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
1973
1974         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
1975         when generating cltd insn.
1976
1977         (*ashl<mode>3_1): Remove special handling for register operand 2.
1978         (*ashlsi3_1_zext): Ditto.
1979         (*ashlhi3_1): Ditto.
1980         (*ashlhi3_1_lea): Ditto.
1981         (*ashlqi3_1): Ditto.
1982         (*ashlqi3_1_lea): Ditto.
1983         (*<shiftrt_insn><mode>3_1): Ditto.
1984         (*<shiftrt_insn>si3_1_zext): Ditto.
1985         (*<shiftrt_insn>qi3_1_slp): Ditto.
1986         (*<rotate_insn><mode>3_1): Ditto.
1987         (*<rotate_insn>si3_1_zext): Ditto.
1988         (*<rotate_insn>qi3_1_slp): Ditto.
1989
1990 2010-04-13  Richard Guenther  <rguenther@suse.de>
1991
1992         * tree-ssa-structalias.c (callused_id): Remove.
1993         (call_stmt_vars): New.
1994         (get_call_vi): Likewise.
1995         (lookup_call_use_vi): Likewise.
1996         (lookup_call_clobber_vi): Likewise.
1997         (get_call_use_vi): Likewise.
1998         (get_call_clobber_vi): Likewise.
1999         (make_transitive_closure_constraints): Likewise.
2000         (handle_const_call): Adjust to do per-call call-used handling.
2001         (handle_pure_call): Likewise.
2002         (find_what_var_points_to): Remove general callused handling.
2003         (init_base_vars): Likewise.
2004         (init_alias_vars): Initialize call_stmt_vars.
2005         (compute_points_to_sets): Process call-used and call-clobbered
2006         vars for call statements.
2007         (delete_points_to_sets): Free call_stmt_vars.
2008
2009 2010-04-13  Richard Guenther  <rguenther@suse.de>
2010
2011         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2012         Only add RW dependence for dependence distance zero.
2013         Adjust maximal vectorization factor according to dependences.
2014         Move alignment handling ...
2015         (vect_find_same_alignment_drs): ... here.  New function.
2016         (vect_analyze_data_ref_dependences): Adjust.
2017         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
2018         (vect_analyze_data_refs): Adjust minimal vectorization factor
2019         according to data references.
2020         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
2021         dependences before determining the vectorization factor.
2022         Analyze alignment after determining the vectorization factor.
2023         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
2024         dependences before alignment.
2025         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
2026         Adjust prototype.
2027         (vect_analyze_data_refs): Likewise.
2028         (MAX_VECTORIZATION_FACTOR): New define.
2029
2030 2010-04-13  Duncan Sands  <baldrick@free.fr>
2031
2032         * except.h (lang_eh_type_covers): Remove.
2033         * except.c (lang_eh_type_covers): Likewise.
2034
2035 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2036             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2037
2038         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
2039         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
2040         UNITS_PER_LONG where it is ABI relevant.
2041         (s390_return_addr_rtx): Likewise.
2042         (s390_back_chain_rtx): Likewise.
2043         (s390_frame_area): Likewise.
2044         (s390_frame_info): Likewise.
2045         (s390_initial_elimination_offset): Likewise.
2046         (save_gprs): Likewise.
2047         (s390_emit_prologue): Likewise.
2048         (s390_emit_epilogue): Likewise.
2049         (s390_function_arg_advance): Likewise.
2050         (s390_function_arg): Likewise.
2051         (s390_va_start): Likewise.
2052         (s390_gimplify_va_arg): Likewise.
2053         (s390_function_profiler): Likewise.
2054         (s390_optimize_prologue): Likewise.
2055         (s390_rtx_costs): Likewise.
2056         (s390_secondary_reload): Likewise.
2057         (s390_promote_function_mode): Likewise.
2058         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
2059         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
2060         registers available.
2061         (s390_unwind_word_mode): New function.
2062         (s390_function_value): Split 64 bit values into register pair if
2063         used as return value.
2064         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
2065         function call parameters.  Handle parallels.
2066         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
2067         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
2068         (DWARF_CIE_DATA_ALIGNMENT): New macro.
2069         (s390_expand_setmem): Remove unused variable src_addr.
2070         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
2071         deal with 64 bit registers.
2072         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
2073         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
2074         (UNITS_PER_LONG): New macro.
2075         * libjava/include/s390-signal.h: Define extended ucontext
2076         structure containing the upper halfs of the 64 bit registers.
2077
2078 2010-04-13  Simon Baldwin  <simonb@google.com>
2079
2080         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
2081
2082 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
2083
2084         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
2085         rvalue on the RHS if the LHS is of a non-renamable type.
2086         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
2087
2088 2010-04-13  Matthias Klose  <doko@ubuntu.com>
2089
2090         * gcc.c (cc1_options): Handle -iplugindir before processing
2091         the cc1 spec. Only add -iplugindir once.
2092         (cpp_unique_options): Add -iplugindir option if -fplugin* options
2093         found.
2094         * common.opt (iplugindir): Remove `Separate' property, initialize.
2095         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
2096         option.
2097         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
2098         (distclean): Remove plugin dir.
2099         * doc/invoke.texi: Document -iplugindir.
2100
2101 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
2102
2103         * doc/plugins.texi (Loading Plugins): Document short
2104         -fplugin=foo option.
2105         (Plugin API): Mention default_plugin_dir_name function.
2106
2107         * gcc.c (find_file_spec_function): Add new declaration.
2108         (static_spec_func): Use it for "find-file".
2109         (find_file_spec_function): Add new function.
2110         (cc1_options): Add -iplugindir option if -fplugin* options found.
2111
2112         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
2113
2114         * plugin.c (add_new_plugin): Updated comment, and handle short
2115         plugin name.
2116         (default_plugin_dir_name): Added new function.
2117
2118         * common.opt (iplugindir): New option to set the plugin directory.
2119
2120 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
2121
2122         * config/i386/i386.md (any_rotate): New code iterator.
2123         (rotate_insn): New code attribute.
2124         (rotate): Ditto.
2125         (SWIM124): New mode iterator.
2126         (<rotate_insn>ti3): New expander.
2127         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
2128         any_rotate code iterator.
2129         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
2130         using any_rotate code iterator and SWIM124 mode iterator.
2131         (ix86_rotlti3): New insn_and_split pattern.
2132         (ix86_rotrti3): Ditto.
2133         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
2134         ix86_rotl{di,ti}3 patterns.
2135         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
2136         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
2137         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
2138         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
2139         code iterator and SWI mode iterator.
2140         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
2141         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
2142         code iterator.
2143         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
2144         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
2145         (bswap rotatert splitter): Add splitter.
2146         (bswap splitter): Macroize splitter using any_rotate code iterator.
2147         Add insn predicate to split only for TARGET_USE_XCHGB or when
2148         optimizing function for size.
2149
2150 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
2151
2152         * config/pa/pa.c (emit_move_sequence): Remove use of
2153         deleted variable flag_argument_noalias.
2154
2155 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2156
2157         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
2158         configurations.
2159         Add to unsupported targets list.
2160         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
2161         sparc*-sun-solaris2.[567]* from target lists.
2162         * configure: Regenerate.
2163         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
2164         removal.
2165         Remove Solaris 7 patch references.
2166         (Specific, sparc-sun-solaris2.7): Removed.
2167         (sparc-sun-solaris2*): Update Solaris 7 example.
2168         (sparc64-*-solaris2*): Likewise.
2169
2170 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2171
2172         * config.build (alpha*-dec-osf4*): Remove.
2173         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
2174         of obsolete configurations.
2175         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
2176         support.
2177         * config/alpha/t-osf4: Renamed to ...
2178         * config/alpha/t-osf5: ... this.
2179         * config/alpha/osf.h: Renamed to ...
2180         * config/alpha/osf5.h: ... this.
2181         Merged old osf5.h contents.
2182         Update comments.
2183         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
2184         (EXTRA_SPECS): Removed.
2185         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
2186         reflect removal of Tru64 UNIX V4.0/V5.0 support.
2187         Document that.
2188
2189 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2190
2191         * doc/contrib.texi (Contributors, Rainer Orth): Update.
2192
2193 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
2194
2195         PR/43702
2196         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
2197         __thiscall convention.
2198
2199 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
2200
2201         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
2202         orig_base.
2203         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
2204
2205 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
2206
2207         * function.c (assign_parms_initialize_all): Add unused attribute
2208         to fntype.
2209
2210 2010-04-12  Richard Guenther  <rguenther@suse.de>
2211
2212         * gsstruct.def (GSS_CALL): New.
2213         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
2214         * gimple.h: Include tree-ssa-alias.h.
2215         (struct gimple_statement_call): New.
2216         (union gimple_statement_struct_d): Add gimple_call member.
2217         (gimple_call_reset_alias_info): Declare.
2218         (gimple_call_use_set): New function.
2219         (gimple_call_clobber_set): Likewise.
2220         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
2221         * gimple.c (gimple_call_reset_alias_info): New function.
2222         (gimple_build_call_1): Call it.
2223         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2224         * tree-inline.c (remap_gimple_stmt): Likewise.
2225         (expand_call_inline): Remove callused handling.
2226         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
2227         * tree-dfa.c (dump_variable): Likewise.
2228         * tree-parloops.c (parallelize_loops): Likewise.
2229         * tree-ssa.c (init_tree_ssa): Likewise.
2230         (delete_tree_ssa): Likewise.
2231         * tree-flow-inline.h (is_call_used): Remove.
2232         * tree-flow.h (struct gimple_df): Remove callused member.
2233         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
2234         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
2235         (ref_maybe_used_by_call_p_1): Simplify.
2236         (call_may_clobber_ref_p_1): Likewise.
2237         * tree-ssa-structalias.c (compute_points_to_sets): Set
2238         the call stmt used and clobbered sets.
2239         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
2240         (find_tail_calls): Verify the tail call.
2241
2242 2010-04-12  Richard Guenther  <rguenther@suse.de>
2243
2244         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
2245         single-iteration always-inline inlining.
2246         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
2247         (cgraph_decide_inlining): Do not handle always-inline specially.
2248         (try_inline): Remove always-inline cycle detection special case.
2249         Do not recurse on always-inlines.
2250         (cgraph_early_inlining): Do not iterate if not optimizing.
2251         (cgraph_gate_early_inlining): remove.
2252         (pass_early_inline): Run unconditionally.
2253         (gate_cgraph_decide_inlining): New function.
2254         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
2255         not inlining or optimizing.
2256         (cgraph_decide_inlining_of_small_functions): Also consider
2257         always-inline functions.
2258         (cgraph_default_inline_p): Return true for nodes which should
2259         disregard inline limits.
2260         (estimate_function_body_sizes): Assume zero size and time for
2261         nodes which are marked as disregarding inline limits.
2262         (cgraph_decide_recursive_inlining): Do not perform recursive
2263         inlining on always-inline nodes.
2264
2265 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
2266
2267         PR bootstrap/43699
2268         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
2269         for exprs satisfying handled_component_p.
2270
2271 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
2272
2273         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
2274         non-constant aggregate elements.
2275
2276         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
2277         is a real initialization.
2278
2279 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
2280
2281         PR c/36774
2282         * c-decl.c (start_function): Move forward check for nested function.
2283
2284 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2285
2286         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
2287         * config/sh/sh.c: Include reload.h.
2288         (sh_legitimize_reload_address): New.
2289         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
2290         sh_legitimize_reload_address.
2291
2292 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2293
2294         * config/sh/sh.md (*movqi_pop): New insn pattern.
2295         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
2296
2297 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2298
2299         * config/i386/i386.md (any_shiftrt): New code iterator.
2300         (shiftrt_insn): New code attribute.
2301         (shiftrt): Ditto.
2302         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
2303         using any_shiftrt code iterator.
2304         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
2305         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
2306         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
2307         pattern from corresponding peephole2 patterns.
2308         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
2309         using any_shiftrt code iterator.
2310         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
2311         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
2312         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
2313         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
2314         *{ashr,lshr}<mode>3_cmp_zext.
2315         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
2316
2317 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2318
2319         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
2320         scratch register.
2321         (*lshr<mode>3_cconly): Ditto.
2322
2323 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2324
2325         * config/i386/i386.md (lshr<mode>3): Macroize expander from
2326         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2327         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2328         pattern from *lshr{di,ti}3_1 and corresponding splitters using
2329         DWI mode iterator.
2330         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2331         from corresponding peephole2 patterns.
2332         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
2333         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
2334         and *lshrdi3_1_rex64 using SWI mode iterator.
2335         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
2336         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
2337         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
2338         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
2339         and *lshrdi3_cmp_rex64 using SWI mode iterator.
2340         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
2341         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
2342         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
2343         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
2344         SWI mode iterator.
2345
2346 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
2347
2348         * config/i386/i386.md (ashr<mode>3): Macroize expander from
2349         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2350         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2351         pattern from *ashr{di,ti}3_1 and corresponding splitters using
2352         DWI mode iterator.
2353         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2354         from corresponding peephole2 patterns.
2355         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
2356         (ashrsi3_cvt): Rename from ashrsi3_31.
2357         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
2358         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
2359         and x86_64_shift_adj_3 using SWI48 mode iterator.
2360         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
2361         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
2362         and *ashrdi3_1_rex64 using SWI mode iterator.
2363         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
2364         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
2365         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
2366         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
2367         and *ashrdi3_cmp_rex64 using SWI mode iterator.
2368         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
2369         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
2370         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
2371         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
2372         SWI mode iterator.
2373         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
2374         * config/i386/i386.c (ix86_split_ashr): Update for renamed
2375         x86_shift<mode>_adj_3 expanders.
2376
2377 2010-04-10  Wei Guozhi  <carrot@google.com>
2378
2379         PR target/42601
2380         * config/arm/arm.c (arm_pic_static_addr): New function.
2381         (legitimize_pic_address): Call arm_pic_static_addr when it detects
2382         a static symbol.
2383         (arm_output_addr_const_extra): Output expression for new pattern.
2384         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
2385
2386 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
2387
2388         * ira-costs.c (record_reg_classes): Ignore alternatives that are
2389         not enabled.
2390
2391         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
2392         * web.c: Include "insn-config.h" and "recog.h".
2393         (union_match_dups): New function.
2394         (web_main): Call it.
2395         (union_defs): Don't try to recognize match_dups.
2396
2397         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
2398         if doing so would replace the entire pattern.
2399
2400 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
2401
2402         PR target/43707
2403         PR target/43709
2404         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
2405         and splitter pattern.  Change splitter operand 1 predicate to
2406         nonmemory_operand.
2407
2408 2010-04-09  Martin Jambor  <mjambor@suse.cz>
2409
2410         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
2411         lattices are addresses of CONST_DECLs with the same initial value.
2412         (ipcp_print_all_lattices): Print values of CONST_DECLs.
2413         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
2414
2415 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
2416             Bernd Schmidt  <bernds@codesourcery.com>
2417
2418         * loop-invariant.c (replace_uses): New static function.
2419         (move_invariant_reg): Use it to ensure we can replace the uses.
2420
2421 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
2422
2423         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
2424         function template.
2425         (picochip_override_options): Enable section anchors only above -O1.
2426         (picochip_reorg): Fixed a couple of build warnings.
2427
2428 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2429
2430         * configure.ac (plugin -rdynamic test): Log result.
2431         * configure: Regenerate.
2432         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
2433         (RDYNAMIC_SPEC): Define.
2434         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
2435
2436 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2437
2438         * configure.ac: Determine Sun ld version numbers.
2439         (comdat_group): Restrict GNU ld version checks to gld.
2440         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
2441         (enable_comdat): Support --enable-comdat.
2442         * configure: Regenerate.
2443         * doc/install.texi (Configuration): Document --enable-comdat.
2444
2445 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2446
2447         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
2448         * config/sol2-gld.h: ... here.
2449         * config.gcc (sparc*-*-solaris2*): Reflect this.
2450         (i[34567]86-*-solaris2*): Use it.
2451
2452 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
2453
2454         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
2455         setup_clocks_p.
2456         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
2457
2458 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2459
2460         PR 42965
2461         * diagnostic.c (diagnostic_initialize): Initialize
2462         some_warnings_are_errors.
2463         (diagnostic_finish): New.
2464         (diagnostic_action_after_output): Call it before exiting.
2465         (diagnostic_report_diagnostic): Do not print message here. Set
2466         some_warnings_are_errors.
2467         * diagnostic.h (diagnostic_context): Delete
2468         issue_warnings_are_errors_message. Add some_warnings_are_errors.
2469         (diagnostic_finish): Declare.
2470         * toplev.c (toplev_main): Call it before exit.
2471
2472 2010-04-09  Jason Merrill  <jason@redhat.com>
2473
2474         PR c++/42623
2475         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
2476         for incomplete type.
2477
2478         PR c++/41788
2479         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
2480         based on a warning flag.
2481
2482 2010-04-09  Richard Guenther  <rguenther@suse.de>
2483
2484         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
2485
2486 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
2487
2488         PR bootstrap/43684
2489         * varasm.c (default_assemble_visibility): Wrap vars that are
2490         set, but unused, by targets without GAS.
2491         * config/rs6000/rs6000.c: (paired_emit_vector_compare):
2492         Remove set, but unused, vars.
2493         (rs6000_legitimize_tls_address): Likewise.
2494         (altivec_expand_dst_builtin): Likewise.
2495         * config/darwin.c (machopic_classify_symbol): Likewise.
2496         (machopic_indirection_name): Likewise.
2497
2498 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
2499
2500         * config/i386/i386.md (DWI): New mode iterator.
2501         (S): New mode attribute.
2502         (shift_operand): Ditto.
2503         (shift_immediate_operand): Ditto.
2504         (ashl_input_operand): Ditto.
2505         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
2506         using SDWIM mode iterator.
2507         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2508         pattern from *ashl{di,ti}3_1 and corresponding splitters using
2509         DWI mode iterator.
2510         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
2511         from corresponding peephole2 patterns.
2512         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
2513         and x86_64_shift_adj_1 using SWI48 mode iterator.
2514         (x86_shift<mode>_adj_2): Ditto.
2515         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
2516         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
2517         using SWI48 mode iterator.
2518         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
2519         *ashldi3_cmp_rex64 using SWI mode iterator.
2520         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
2521         *ashldi3_cconly_rex64 using SWI mode iterator.
2522         * config/i386/i386.c (ix86_split_ashl): Update for renamed
2523         x86_shift<mode>_adj_{1,2}.
2524         (ix86_split_ashr): Ditto.
2525         (ix86_split_lshr): Ditto.
2526
2527 2010-04-09  Richard Guenther  <rguenther@suse.de>
2528
2529         * target.h (builtin_conversion): Pass in input and output types.
2530         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
2531         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
2532         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
2533         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
2534
2535         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
2536         Handle AVX modes.
2537         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
2538
2539 2010-04-09  Richard Guenther  <rguenther@suse.de>
2540
2541         PR target/43152
2542         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
2543
2544 2010-04-09  Richard Guenther  <rguenther@suse.de>
2545
2546         * tree-vectorizer.h (struct _stmt_vec_info): Document
2547         that vectype is the type of the LHS.
2548         (supportable_widening_operation, supportable_narrowing_operation):
2549         Get both input and output vector types as arguments.
2550         (vect_is_simple_use_1): Declare.
2551         (get_same_sized_vectype): Likewise.
2552         * tree-vect-loop.c (vect_determine_vectorization_factor):
2553         Set STMT_VINFO_VECTYPE to the vector type of the def.
2554         (vectorizable_reduction): Adjust.
2555         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
2556         Adjust.  Specify the output vector type.
2557         (vect_pattern_recog_1): Adjust.
2558         * tree-vect-stmts.c (get_same_sized_vectype): New function.
2559         (vectorizable_call): Adjust.
2560         (vectorizable_conversion): Likewise.
2561         (vectorizable_operation): Likewise.
2562         (vectorizable_type_demotion): Likewise.
2563         (vectorizable_type_promotion): Likewise.
2564         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
2565         the def.
2566         (vect_is_simple_use_1): New function.
2567         (supportable_widening_operation): Get both input and output
2568         vector types.
2569         (supportable_narrowing_operation): Likewise.
2570         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
2571
2572 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
2573
2574         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
2575         __thiscall and _thiscall as predefined macros.
2576         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
2577         thiscall attribute handling.
2578         (ix86_comp_type_attributes): Likewise.
2579         (ix86_function_regparm): Likewise.
2580         (ix86_return_pops_args): Likewise.
2581         (init_cumulative_args): Likewise.
2582         (find_drap_reg): Likewise.
2583         (ix86_static_chain): Likewise.
2584         (x86_this_parameter): Likewise.
2585         (x86_output_mi_thunk): Likewise.
2586         (ix86_attribute_table): Add description for thiscall attribute.
2587         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
2588         * doc/extend.texi: Add documentation for thiscall.
2589
2590 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2591
2592         PR c++/28584
2593         * c.opt (Wint-to-pointer-cast): Available in C++.
2594         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
2595
2596 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2597
2598         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
2599         * calls.c (expand_call): Pass the function type to aggregate_value_p.
2600         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
2601         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
2602         function type instead.  Reorder and simplify checks.
2603
2604         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
2605
2606 2010-04-08  Jing Yu  <jingyu@google.com>
2607             Zdenek Dvorak  <ook@ucw.cz>
2608
2609         PR tree-optimization/42720
2610         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
2611         loop unswitch conditions here from ...
2612         (tree_unswitch_single_loop): ... here.
2613
2614 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2615
2616         * tree-if-conv.c: Fix comments and simplify logic.
2617
2618 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2619
2620         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
2621         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
2622         (main_tree_if_conversion): Update call to tree_if_conversion.
2623
2624 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2625
2626         PR 42485
2627         * doc/invoke.texi (-b,-V): Delete.
2628         * doc/tm.texi: Do not mention -b.
2629         * gcc.c (display_help): Delete -b and -V.
2630         (process_command): Delete -b and -V.
2631         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
2632
2633 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
2634             Wolfgang Gellerich  <gellerich@de.ibm.com>
2635
2636         Implement target hook for loop unrolling
2637         * target.h (loop_unroll_adjust): Add a new target hook function.
2638         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
2639         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
2640         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
2641         (s390_loop_unroll_adjust): Implement the new target hook for s390.
2642         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
2643         target hook.
2644         (decide_unroll_stupid): Likewise.
2645
2646 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2647
2648         PR target/43643
2649         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
2650
2651 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2652
2653         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
2654         (Specific, *-*-solaris2*): Likewise.
2655         Don't prefer Sun as over GNU as.
2656
2657 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
2658
2659         * config/s390/s390.c (override_options): Adjust the z10
2660           defaults for max-unroll-times, max-completely-peeled-insns
2661           and max-completely-peel-times.
2662
2663 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2664
2665         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
2666         instructions for z10.
2667         (s390_expand_setmem): Likewise.
2668         (s390_expand_cmpmem): Likewise.
2669
2670 2010-04-08  Richard Guenther  <rguenther@suse.de>
2671
2672         PR tree-optimization/43679
2673         * tree-ssa-pre.c (eliminate): Only propagate copies.
2674
2675 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
2676
2677         PR bootstrap/43681
2678         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
2679         set but not used variable warning.
2680
2681 2010-04-08  Wei Guozhi  <carrot@google.com>
2682
2683         PR target/41653
2684         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
2685         (arm_size_rtx_costs): Call the new function when optimized for size.
2686
2687 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
2688
2689         PR debug/43670
2690         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
2691         op0 is not a MEM, just return NULL instead of assertion
2692         failure.
2693         (discover_nonconstant_array_refs): Don't walk debug stmts.
2694
2695 2010-04-08  Doug Kwan  <dougkwan@google.com>
2696
2697         * configure.ac: Recognize gold and do not use its version number
2698         to test ld features.
2699         * configure: Regenerate.
2700
2701 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2702
2703         PR middle-end/40815
2704         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
2705         (negate_value): Move code to push elements to broken_up_substracts ...
2706         (eliminate_plus_minus_pair): ... here.  Push operands that have no
2707         negative pair to plus_negates.
2708         (repropagate_negates, init_reassoc, fini_reassoc): Update.
2709
2710 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2711
2712         * doc/install.texi (Configuration): Move description of
2713         --enable-lto, --with-libelf*, --enable-gold from Java section to
2714         general section.
2715
2716         * doc/generic.texi (Working with declarations)
2717         (Function Properties, C and C++ Trees): Fix typos.
2718         * doc/sourcebuild.texi (Top Level): Likewise.
2719
2720 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
2721
2722         PR c/18624
2723         * tree.h (DECL_READ_P): Define.
2724         (struct tree_decl_common): Add decl_read_flag.
2725         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
2726         a set but not used warning.
2727         (merge_decls): Merge DECL_READ_P flag.
2728         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
2729         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
2730         * c-common.c (handle_used_attribute, handle_unused_attribute):
2731         Likewise.
2732         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
2733         New prototypes.
2734         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
2735         New functions.
2736         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
2737         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
2738         c_parser_binary_expression, c_parser_cast_expression,
2739         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
2740         Call default_function_array_read_conversion instead of
2741         default_function_array_conversion where needed.
2742         (c_parser_unary_expression, c_parser_conditional_expression,
2743         c_parser_postfix_expression_after_primary, c_parser_initelt):
2744         Likewise.  Call mark_exp_read where needed.
2745         (c_parser_statement_after_labels, c_parser_asm_operands,
2746         c_parser_typeof_specifier, c_parser_sizeof_expression,
2747         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
2748         where needed.
2749         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
2750         New.
2751         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
2752         (warn_unused_but_set_parameter): Default to warn_unused
2753         && extra_warnings.
2754         * doc/invoke.texi: Document -Wunused-but-set-variable and
2755         -Wunused-but-set-parameter.
2756
2757         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
2758         used count variable.
2759         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
2760         when operandN variables aren't used in the body of the expander
2761         or splitter.
2762         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
2763         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
2764         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
2765         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
2766         FOR_EACH_IMM_USE_ON_STMT): Likewise.
2767         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
2768         * tree.c (PROCESS_ARG): Likewise.
2769
2770 2010-04-07  Simon Baldwin  <simonb@google.com>
2771
2772         * diagnostic.h (diagnostic_override_option_index): New macro to
2773         set a diagnostic's option_index.
2774         * c-tree.h (c_cpp_error): Add warning reason argument.
2775         * opts.c (_warning_as_error_callback): New.
2776         (register_warning_as_error_callback): Store callback for
2777         warnings enabled via enable_warning_as_error.
2778         (enable_warning_as_error): Call callback, minor code tidy.
2779         * opts.h (register_warning_as_error_callback): Declare.
2780         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
2781         response to -Werror=.
2782         (c_common_init_options): Register warning_as_error_callback in opts.c.
2783         * common.opt: Add -Wno-cpp option.
2784         * c-common.c (struct reason_option_codes_t): Map cpp warning
2785         reason codes to gcc option indexes.
2786         * (c_option_controlling_cpp_error): New function, lookup the gcc
2787         option index for a cpp warning reason code.
2788         * (c_cpp_error): Add warning reason argument, call
2789         c_option_controlling_cpp_error for diagnostic_override_option_index.
2790         * doc/invoke.texi: Document -Wno-cpp.
2791
2792 2010-04-07  Richard Guenther  <rguenther@suse.de>
2793
2794         * ipa-reference.c (mark_load): Use get_base_address.
2795         (mark_store): Likewise.
2796
2797         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
2798         inserting GIMPLE_NOPs into the IL.
2799         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2800         Explicitly strip handled components and indirect references.
2801
2802         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
2803         folding address expressions.
2804         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
2805         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
2806         operand_equal_p to compare decls.
2807         (ptr_deref_may_alias_decl_p): Likewise.
2808         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
2809         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2810         Handle reversed comparison ops.
2811         * tree-sra.c (asm_visit_addr): Use get_base_address.
2812         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
2813         * ipa-reference.c (mark_address): Use get_base_address.
2814
2815 2010-04-07  Richard Guenther  <rguenther@suse.de>
2816
2817         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
2818         Propagate constants everywhere.
2819
2820 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
2821
2822         PR debug/43516
2823         * tree.c (MAX_INT_CACHED_PREC): Define.
2824         (nonstandard_integer_type_cache): New array.
2825         (build_nonstandard_integer_type): Cache results for precision
2826         <= MAX_INT_CACHED_PREC.
2827
2828 2010-04-07  Richard Guenther  <rguenther@suse.de>
2829
2830         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
2831         -fargument-noalias-global, -fargument-noalias-anything): Remove.
2832         * common.opt: Likewise.
2833         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
2834         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
2835         (nonoverlapping_memrefs_p): Likewise.
2836         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2837         * opts.c (common_handle_option): Handle OPT_fargument_alias,
2838         OPT_fargument_noalias, OPT_fargument_noalias_anything and
2839         OPT_fargument_noalias_global for backward compatibility.
2840
2841 2010-04-07  Richard Guenther  <rguenther@suse.de>
2842
2843         PR tree-optimization/43270
2844         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
2845         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
2846         * tree-ssa-pre.c (phi_translate_1): Adjust.
2847         (fully_constant_expression): Split out vn_reference handling to ...
2848         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
2849         Fold reads from constant strings.
2850         (vn_reference_lookup): Handle fully constant references.
2851         (vn_reference_lookup_pieces): Likewise.
2852         * Makefile.in (expmed.o-warn): Add -Wno-error.
2853
2854 2010-04-07  Martin Jambor  <mjambor@suse.cz>
2855
2856         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
2857
2858 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
2859
2860         PR driver/41594
2861         * gcc.c: Add -static-libstdc++ to list of recognized options.
2862
2863 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2864
2865         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
2866
2867 2010-04-07  Richard Guenther  <rguenther@suse.de>
2868
2869         PR middle-end/42617
2870         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
2871         bases build simple mem attributes to retain points-to information.
2872
2873 2010-04-07  Richard Guenther  <rguenther@suse.de>
2874
2875         PR middle-end/42617
2876         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
2877         preserve points-to related information.
2878
2879 2010-04-07  Richard Guenther  <rguenther@suse.de>
2880
2881         PR middle-end/42617
2882         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
2883         discard plain indirect references.
2884         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
2885         * tree.c (tree_nop_conversion): Likewise.
2886
2887 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
2888
2889         PR debug/43628
2890         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
2891
2892 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
2893
2894         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
2895         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
2896
2897 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2898
2899         * tree-if-conv.c: Fix indentation and comments.
2900
2901 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2902
2903         * tree-if-conv.c: Sort static functions in topological order.
2904
2905 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2906
2907         * tree-if-conv.c: Fix indentation and comments.
2908
2909 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2910
2911         PR middle-end/43519
2912         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
2913         lang_hooks.types.type_for_size instead of
2914         build_nonstandard_integer_type.
2915         When converting an unsigned type to signed, double its precision.
2916         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
2917         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
2918         (graphite_create_new_loop_guard): When ub + 1 wraps around,
2919         use lb <= ub.
2920
2921 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2922
2923         PR middle-end/43519
2924         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
2925         POINTER_PLUS_EXPR for pointer types.
2926
2927 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2928
2929         PR middle-end/43519
2930         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
2931         * graphite-clast-to-gimple.c: Include langhooks.h.
2932         (max_signed_precision_type): New.
2933         (max_precision_type): Takes two types as arguments.
2934         (precision_for_value): New.
2935         (precision_for_interval): New.
2936         (gcc_type_for_interval): New.
2937         (gcc_type_for_value): New.
2938         (gcc_type_for_clast_term): New.
2939         (gcc_type_for_clast_red): New.
2940         (gcc_type_for_clast_bin): New.
2941         (gcc_type_for_clast_expr): Split up into several functions.
2942         (gcc_type_for_clast_eq): Rewritten.
2943         (compute_bounds_for_level): New.
2944         (compute_type_for_level_1): New.
2945         (compute_type_for_level): New.
2946         (gcc_type_for_cloog_iv): Removed.
2947         (gcc_type_for_iv_of_clast_loop): Rewritten.
2948         (graphite_create_new_loop): Compute the lower and upper bound types
2949         with gcc_type_for_clast_expr.
2950         (graphite_create_new_loop_guard): Same.
2951         (find_cloog_iv_in_expr): Removed.
2952         (compute_cloog_iv_types_1): Removed.
2953         (compute_cloog_iv_types): Removed.
2954         (gloog): Do not call compute_cloog_iv_types.
2955         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
2956         GBB_CLOOG_IV_TYPES.
2957         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
2958         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
2959         (GBB_CLOOG_IV_TYPES): Removed.
2960
2961 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2962
2963         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
2964         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
2965         (detect_commutative_reduction): Same.
2966
2967 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2968
2969         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
2970         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
2971         argument.
2972         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
2973         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
2974         (rewrite_commutative_reductions_out_of_ssa): Same.
2975         * passes.c (execute_function_todo): Call verify_ssa for every pass
2976         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
2977         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
2978         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
2979         with an extra argument.
2980         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
2981         verify_ssa only when the extra argument is true.
2982         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
2983         with an extra argument.
2984         (tree_transform_and_unroll_loop): Same.
2985
2986 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2987
2988         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
2989         for all the passes of the LNO having LOOP_CLOSED_SSA.
2990         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
2991         * tree-loop-distribution.c (pass_loop_distribution): Same.
2992         * tree-pass.h (TODO_verify_loops): Removed.
2993         * tree-ssa-loop.c (pass_tree_loop_init): Same.
2994         (pass_lim): Same.
2995         (pass_tree_unswitch): Same.
2996         (pass_predcom): Same.
2997         (pass_vectorize): Same.
2998         (pass_linear_transform): Same.
2999         (pass_graphite_transforms): Same.
3000         (pass_iv_canon): Same.
3001         (pass_complete_unroll): Same.
3002         (pass_complete_unrolli): Same.
3003         (pass_parallelize_loops): Same.
3004         (pass_loop_prefetch): Same.
3005         (pass_iv_optimize): Same.
3006
3007 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
3008
3009         PR middle-end/32824
3010         * passes.c (init_optimization_passes): Move pass_lim before
3011         pass_copy_prop and pass_dce_loop.
3012
3013 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
3014
3015         PR target/43667
3016         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
3017         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
3018         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
3019         MULTI_* defines for 4 argument vpermil2p* builtins.
3020
3021 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
3022
3023         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
3024         * config/i386/i386.c (x86_maybe_negate_const_int): New.
3025         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
3026         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
3027         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
3028         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
3029         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
3030         Use x86_maybe_negate_const_int to output insn mnemonic.
3031         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
3032         check from instruction predicate.  Update comments.
3033         * config/i386/sync.md (sync_add<mode>): Use
3034         x86_maybe_negate_const_int to output insn mnemonic.
3035
3036 2010-04-06  Jan Hubicka  <jh@suse.cz>
3037
3038         PR tree-optimization/42906
3039         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
3040         IGNORE_SELF argument.  Set visited_control_parents for fully
3041         processed BBs.
3042         (find_obviously_necessary_stmts): Update call of
3043         mark_control_dependent_edges_necessary.
3044         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
3045
3046 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
3047
3048         * config/i386/i386.md: Remove comment about 'e' and 'E'
3049         operand modifier.
3050
3051 2010-04-06  Richard Guenther  <rguenther@suse.de>
3052
3053         PR tree-optimization/43627
3054         * tree-vrp.c (extract_range_from_unary_expr): Widenings
3055         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
3056         not varying.
3057
3058 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
3059
3060         * BASE-VER: Change to 4.6.0.
3061
3062         PR target/43638
3063         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
3064         handling.
3065
3066 2010-04-06  Richard Guenther  <rguenther@suse.de>
3067
3068         PR middle-end/43661
3069         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
3070
3071 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3072
3073         * doc/invoke.texi (Optimize Options): Document that LTO
3074         won't remove object access purely due to incompatible
3075         declarations.
3076
3077 2010-04-04  Matthias Klose  <doko@ubuntu.com>
3078
3079         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
3080         Initialize variable.
3081
3082 2010-04-03  Richard Guenther  <rguenther@suse.de>
3083
3084         PR middle-end/42509
3085         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
3086         require a non-NULL MEM_OFFSET.
3087
3088 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
3089
3090         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
3091         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
3092         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
3093         config/alpha/predicates.md, config/arm/arm.md,
3094         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
3095         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
3096         config/darwin9.h, config/darwin.c, config/darwin.h,
3097         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
3098         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
3099         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
3100         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
3101         config/mips/mips.md, config/mn10300/mn10300.c,
3102         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
3103         config/rs6000/aix.h, config/rs6000/dfp.md,
3104         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
3105         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
3106         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
3107         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
3108         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
3109         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
3110         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
3111         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
3112         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
3113         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
3114         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
3115         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
3116         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
3117         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
3118         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
3119         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
3120         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
3121         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
3122         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
3123         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
3124         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
3125         opt-functions.awk, opth-gen.awk, params.def, passes.c,
3126         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
3127         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
3128         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
3129         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
3130         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
3131         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
3132         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
3133         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
3134         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3135         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
3136         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3137         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
3138         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
3139         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
3140
3141 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3142
3143         PR other/43620
3144         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
3145         * aclocal.m4: Regenerate.
3146
3147 2010-04-02  Richard Guenther  <rguenther@suse.de>
3148
3149         PR tree-optimization/43629
3150         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
3151         if we have seen a constant value.
3152
3153 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
3154
3155         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
3156
3157 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
3158
3159         PR target/43469
3160         * arm.c (legitimize_tls_address): Adjust call to
3161         gen_tls_load_dot_plus_four.
3162         (arm_note_pic_base): New function.
3163         (arm_cannot_copy_insn_p): Use it.
3164         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
3165         constraint.
3166
3167 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3168
3169         PR bootstrap/43531
3170
3171         Revert:
3172         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3173
3174         * Makefile.in ($(out_object_file)): Depend on
3175         gt-$(basename $(notdir $(out_file))).h.
3176
3177 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
3178
3179         * config.gcc (lm32-*-rtems*): Add t-lm32.
3180
3181 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
3182
3183         * config.gcc: Add lm32-*-rtems*.
3184         * config/lm32/rtems.h: New file.
3185
3186 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
3187
3188         PR target/42609
3189         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
3190
3191 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
3192
3193         * dwarf2out.c (output_compilation_unit_header): For
3194         -gdwarf-4 use version 4 instead of version 3.
3195         (output_line_info): For version 4 and above emit additional
3196         maximum ops per insn header field.
3197         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
3198
3199         * dwarf2out.c (is_c_family, is_java): Remove.
3200         (lower_bound_default): New function.
3201         (add_bound_info, gen_descr_array_type_die): Use it.
3202
3203 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
3204
3205         PR debug/43325
3206         * dwarf2out.c (gen_variable_die): Allow debug info for variable
3207         re-declaration when it happens in a function.
3208
3209 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
3210
3211         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
3212         (cgraph_remove_function_insertion_hook): Same.
3213         (cgraph_call_function_insertion_hooks): Same.
3214
3215 2010-04-01  Richard Guenther  <rguenther@suse.de>
3216
3217         PR middle-end/43614
3218         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
3219         and TREE_THIS_VOLATILE.
3220         (copy_ref_info): Likewise.
3221         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
3222         * tree.c (build6_stat): Ignore side-effects of all but arg5
3223         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
3224         TARGET_MEM_REF.
3225
3226 2010-04-01  Richard Guenther  <rguenther@suse.de>
3227
3228         PR tree-optimization/43607
3229         * ipa-type-escape.c (check_call): Do not access non-existing
3230         arguments.
3231
3232 2010-04-01  Richard Guenther  <rguenther@suse.de>
3233
3234         PR middle-end/43602
3235         Revert
3236         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
3237                     Jack Howarth <howarth@bromo.med.uc.edu>
3238
3239         * tree-profile.c (tree_init_ic_make_global_vars): Make static
3240         variables TLS.
3241
3242 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3243
3244         * doc/install.texi (Prerequisites): Document libelf usability on
3245         IRIX 5/6 and Solaris 2.
3246         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
3247         Update GNU as, GNU ld requirements.
3248         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
3249         Document Sun Studio compiler download.
3250         Update and simplify as, ld recommendations.
3251         (Specific, *-*-solaris2.7): Note obsoletion, removal.
3252
3253 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3254
3255         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
3256         with_tune_32 to pentium4.
3257
3258 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
3259
3260         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
3261
3262 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3263
3264         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
3265         obsoletion, removal.
3266         Update IDO URL.
3267         Document GNU as requirement.
3268         Update configure requirements.
3269         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
3270         Recomment IRIX 6.5.18+.
3271         Document IDF/IDL requirement.
3272         Document GNU as requirement.
3273         Document GNU ld bootstrap failure.
3274         Remove freeware.sgi.com reference.
3275
3276 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3277
3278         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
3279         UNIX V4.0, V5.0 obsoletion, removal.
3280         Remove --with-gc=simple reference.
3281         Update VM requirements during bootstrap.
3282         Remove -oldas bootstrap description.
3283         Update binutils reference.
3284         Remove comparison failure note.
3285
3286 2010-03-31  Richard Guenther  <rguenther@suse.de>
3287             Zdenek Dvorak  <ook@ucw.cz>
3288             Sebastian Pop  <sebastian.pop@amd.com>
3289
3290         PR middle-end/43464
3291         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
3292         with multiple arguments.
3293         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
3294
3295 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3296
3297         * graphite-dependences.c (print_pddr): Call print_pdr with an
3298         extra argument.
3299         * graphite-poly.c (debug_pdr): Add an extra argument for the
3300         verbosity level.
3301         (print_pdr): Same.
3302         (print_pbb_domain): Same.
3303         (print_pbb): Same.
3304         (print_scop_context): Same.
3305         (print_scop): Same.
3306         (print_cloog): Same.
3307         (debug_pbb_domain): Same.
3308         (debug_pbb): Same.
3309         (print_pdrs): Same.
3310         (debug_pdrs): Same.
3311         (debug_scop_context): Same.
3312         (debug_scop): Same.
3313         (debug_cloog): Same.
3314         (print_scop_params): Same.
3315         (debug_scop_params): Same.
3316         (print_iteration_domain): Same.
3317         (print_iteration_domains): Same.
3318         (debug_iteration_domain): Same.
3319         (debug_iteration_domains): Same.
3320         (print_scattering_function): Same.
3321         (print_scattering_functions): Same.
3322         (debug_scattering_function): Same.
3323         (debug_scattering_functions): Same.
3324         * graphite-poly.h (debug_pdr): Update declaration.
3325         (print_pdr): Same.
3326         (print_pbb_domain): Same.
3327         (print_pbb): Same.
3328         (print_scop_context): Same.
3329         (print_scop): Same.
3330         (print_cloog): Same.
3331         (debug_pbb_domain): Same.
3332         (debug_pbb): Same.
3333         (print_pdrs): Same.
3334         (debug_pdrs): Same.
3335         (debug_scop_context): Same.
3336         (debug_scop): Same.
3337         (debug_cloog): Same.
3338         (print_scop_params): Same.
3339         (debug_scop_params): Same.
3340         (print_iteration_domain): Same.
3341         (print_iteration_domains): Same.
3342         (debug_iteration_domain): Same.
3343         (debug_iteration_domains): Same.
3344         (print_scattering_function): Same.
3345         (print_scattering_functions): Same.
3346         (debug_scattering_function): Same.
3347         (debug_scattering_functions): Same.
3348
3349 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3350
3351         * graphite-poly.c (print_scattering_function_1): New.
3352         (print_scattering_function): Call it.
3353         (print_scop_params): Remove spaces at the end of lines.
3354         (print_cloog): New.
3355         (debug_cloog): New.
3356         * graphite-poly.h (print_cloog): Declared.
3357         (debug_cloog): Declared.
3358
3359 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3360
3361         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
3362         in loop->header.
3363         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
3364         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
3365         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
3366         to switch between adding the IV bump in loop->latch or in loop->header.
3367
3368 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3369
3370         * graphite-poly.c (print_scattering_function): Pretty print following
3371         the scoplib format.
3372         (print_pdr): Same.
3373         (print_pbb_domain): Same.
3374         (dump_gbb_cases): Same.
3375         (dump_gbb_conditions): Same.
3376         (print_pdrs): Same.
3377         (print_pbb): Same.
3378         (print_scop_params): Same.
3379         (print_scop_context): Same.
3380         (print_scop): Same.
3381         (print_pbb_body): New.
3382         (lst_indent_to): New.
3383         (print_lst): Start new lines with a #.
3384         * graphite-poly.h (pbb_bb): New.
3385         (pbb_index): Use pbb_bb.
3386         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
3387         disjuncts.
3388         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
3389
3390 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
3391
3392         * dwarf2out.c (size_of_die): For -gdwarf-4 use
3393         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
3394         and 0 instead of 1 for dw_val_class_flag.
3395         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
3396         dw_val_class_range_list, dw_val_class_loc_list,
3397         dw_val_class_lineptr and dw_val_class_macptr, use
3398         DW_FORM_flag_present for dw_val_class_flag and
3399         DW_FORM_exprloc for dw_val_class_loc.
3400         (output_die): For -gdwarf-4 print dw_val_class_loc
3401         size as uleb128 instead of 1 or 2 bytes and don't print
3402         anything for dw_val_class_flag.
3403
3404         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
3405         instead of cselib_lookup following by tweaking locs->setting_insn.
3406
3407         PR bootstrap/43596
3408         * cselib.c (cselib_process_insn): Clear cselib_current_insn
3409         even before returning from label, setjmp call or volatile asm
3410         handling.
3411
3412 2010-03-31  Richard Guenther  <rguenther@suse.de>
3413
3414         PR middle-end/43600
3415         * cgraphunit.c (cgraph_output_in_order): Do not allocate
3416         temporary data on stack.
3417
3418 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3419
3420         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
3421         (PUSHSECTION_ASM_OP): Remove.
3422         (POPSECTION_ASM_OP): Remove.
3423         (PUSHSECTION_FORMAT): Remove.
3424         * config/sol2.h (PUSHSECTION_FORMAT): Define.
3425         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
3426         * config/sol2.c (solaris_output_init_fini): Use it.
3427
3428 2010-03-31  Jie Zhang  <jie@codesourcery.com>
3429
3430         PR 43574
3431         * opt-functions.awk (var_type_struct): Use signed char type
3432         for simple variables.
3433
3434 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3435
3436         * config/sol2.c: Include output.h.
3437         (solaris_assemble_visibility): New function.
3438         * config/t-sol2 (sol2.o): Add output.h dependency.
3439         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
3440         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
3441         Redefine.
3442
3443 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
3444
3445         PR target/43580
3446         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
3447         V2SImode or XFmode on PRE_DEC.
3448
3449         PR debug/43557
3450         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
3451         BLKmode.
3452
3453 2010-03-31  Jie Zhang  <jie@codesourcery.com>
3454
3455         PR 43562
3456         * reload.h (caller_save_initialized_p): Declare.
3457         * toplev.c (backend_init_target): Don't call
3458         init_caller_save but set caller_save_initialized_p to false.
3459         * caller-save.c (caller_save_initialized_p): Define.
3460         (init_caller_save): Check caller_save_initialized_p.
3461         * ira.c (ira): Call init_caller_save if flag_caller_saves.
3462
3463 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3464
3465         PR target/39048
3466         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
3467         and soft-fp/t-softfp to tmake_file.
3468         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
3469         (LIBGCC2_TF_CEXT): Define.
3470         (TF_SIZE): Define.
3471
3472 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
3473
3474         PR debug/42977
3475         * cselib.c (n_useless_values): Document handling of debug locs.
3476         (n_useless_debug_values, n_debug_values): New variables.
3477         (new_elt_loc_list): Don't add to debug values, keep count.
3478         (promote_debug_loc): New.
3479         (cselib_reset_table): Zero new variables.
3480         (entry_and_rtx_equal_p): Promote debug locs.
3481         (discard_useless_locs): Increment n_useless_debug_values for
3482         debug values.
3483         (remove_useless_values): Adjust n_useless_values and n_debug_values
3484         with n_useless_debug_values.
3485         (add_mem_for_addr): Promote debug locs.
3486         (cselib_lookup_mem): Likewise.
3487         (cselib_lookup_addr): Renamed to...
3488         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
3489         (cselib_log_lookup): ... this.  Turn into...
3490         (cselib_lookup_addr): ... new wrapper.
3491         (cselib_lookup_from_insn): New.
3492         (cselib_invalidate_regno): Increment n_useless_debug_values for
3493         debug values.
3494         (cselib_invalidate_mem): Likewise.
3495         (cselib_process_insn): Take n_deleted and n_debug_values into
3496         account to guard remove_useless_value call.
3497         (cselib_finish): Zero n_useless_debug_values.
3498         * cselib.h (cselib_lookup_from_insn): Declare.
3499         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
3500         (sched_analyze_2): Likewise.
3501
3502 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
3503
3504         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
3505         functions.
3506         (adjust_mems): Replace narrowing SUBREG of expression containing
3507         just PLUS, MINUS, MULT and ASHIFT of registers and constants
3508         with operations in the narrower mode.
3509
3510         PR debug/43593
3511         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
3512         regs_invalidated_by_call instead all call_used_reg_set registers.
3513
3514 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
3515
3516         PR middle-end/43430
3517         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
3518         pointer comparisons with types_compatible_p.
3519         * tree-vect-stmts.c (vectorizable_call): Same.
3520         (vectorizable_condition): Same.
3521
3522 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3523
3524         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
3525         stack check if the mask would be zero.
3526
3527 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
3528             Jack Howarth <howarth@bromo.med.uc.edu>
3529
3530         * tree-profile.c (tree_init_ic_make_global_vars): Make static
3531         variables TLS.
3532
3533 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
3534
3535         PR other/25232
3536         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
3537         and __unordtf2.
3538         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
3539         Include ___unordxf2 and ___unordtf2.
3540         * config/i386/libgcc-glibc.ver: Do not define inheritance from
3541         GCC_4.4.0 here.
3542
3543 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
3544
3545         * config/lm32/t-lm32: New file.
3546         * config.gcc: Use the above file when targetting lm32.
3547
3548 2010-03-28  Duncan Sands  <baldrick@free.fr>
3549
3550         * Makefile.in (PLUGIN_HEADERS): Add except.h.
3551
3552 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
3553
3554         PR middle-end/43431
3555         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
3556         Improve vectorization cost model diagnostic.
3557
3558 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
3559
3560         PR middle-end/43436
3561         * tree-vect-data-refs.c (vect_analyze_data_refs): When
3562         compute_data_dependences_for_loop returns false, early exit
3563         and output an extra diagnostic for the failed data reference
3564         analysis.
3565
3566 2010-03-29  Richard Guenther  <rguenther@suse.de>
3567
3568         PR tree-optimization/43560
3569         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
3570         (can_sm_ref_p): Treat stores to readonly locations as trapping.
3571
3572 2010-03-29  Jie Zhang  <jie@codesourcery.com>
3573
3574         PR 43564
3575         * toplev.c (process_options): Set optimization_default_node
3576         and optimization_current_node.
3577         * opts.c (decode_options): Don't set optimization_default_node
3578         and optimization_current_node.
3579
3580 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
3581
3582         * config/rtems.h: Abandon -qrtems_debug.
3583
3584 2010-03-28  Jan Hubicka  <jh@suse.cz>
3585
3586         PR tree-optimization/43505
3587         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
3588         map should not be copied.
3589
3590 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3591
3592         PR middle-end/41674
3593         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
3594         cdtors, set DECL_PRESERVE_P.
3595         * ipa.c (cgraph_externally_visible_p): Return true if declaration
3596         should be preseved.
3597
3598 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
3599
3600         PR tree-optimization/43528
3601         * stor-layout.c (place_field): Check that constant fits into
3602         unsigned HWI when skipping calculation of MS bitfield layout.
3603
3604 2010-03-27  Jan Hubicka  <jh@suse.cz>
3605
3606         PR middle-end/43391
3607         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
3608         notice_global_symbol work.
3609
3610 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
3611
3612         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
3613         instead of dwarf2out_decl.
3614         (struct var_loc_node): Remove section_label field.
3615         (dwarf2out_function_decl): New function.
3616         (dwarf2out_var_location): Don't set section_label field.
3617         (dwarf2out_begin_function): Don't empty decl_loc_table here.
3618
3619 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3620
3621         PR tree-optimization/43544
3622         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
3623         First argument for builtin vectorized function hook is now a
3624         tree to be able to distinguish between machine specific and
3625         standard builtins.
3626         * targhooks.c (default_builtin_vectorized_function): Ditto.
3627         * targhooks.h (default_builtin_vectorized_function): Ditto.
3628         * target.h (struct gcc_target): Ditto.
3629         * tree-vect-stmts.c (vectorizable_function): Ditto.
3630         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
3631         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3632         Ditto.
3633
3634 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
3635
3636         PR c/43381
3637         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
3638         nested binding iff it is a FUNCTION_DECL.
3639         (store_parm_decls_newstyle): Pass nested=true to bind for
3640         FUNCTION_DECLs amongst parameters.
3641
3642 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
3643
3644         * var-tracking.c (vt_expand_loc_callback): Don't run
3645         cselib_expand_value_rtx_cb in dummy mode if
3646         cselib_dummy_expand_value_rtx_cb returned false.
3647
3648         * var-tracking.c (emit_note_insn_var_location): For one part
3649         notes with offset 0, don't add EXPR_LIST around the location.
3650         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
3651         add_location_or_const_value_attribute): Adjust for that change.
3652
3653         PR debug/43540
3654         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
3655         into first operand and location into second.
3656         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
3657         dw_cfi_oprnd_loc for DW_CFA_expression.
3658         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
3659         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
3660         assume first argument is regnum and second argument is location.
3661
3662 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
3663
3664         PR target/42113
3665         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
3666         of scratch register to DImode.  Split to DImode comparison operator.
3667         Use SImode subreg of scratch register in the multiplication.
3668         (*cmp_sadd_sidi): Ditto.
3669         (*cmp_ssub_si): Ditto.
3670         (*cmp_ssub_sidi): Ditto.
3671
3672 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
3673
3674         PR target/43524
3675         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
3676         Remove invalid assert and wrong comment.
3677
3678 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
3679
3680         PR debug/43516
3681         * flags.h (final_insns_dump_p): New extern.
3682         * final.c (final_insns_dump_p): New variable.
3683         (rest_of_clean_state): Set it before -fdump-final-insns=
3684         dumping, clear afterwards.
3685         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
3686         MEM_ALIAS_SET on MEMs.
3687
3688 2010-03-26  David S. Miller  <davem@davemloft.net>
3689
3690         * configure.ac: Fix sparc GOTDATA_OP bug check.
3691         * configure: Rebuild.
3692
3693 2010-03-26  Alan Modra  <amodra@gmail.com>
3694
3695         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
3696
3697 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3698
3699         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
3700         TLS_SECTION_ASM_FLAG.
3701
3702 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
3703
3704         PR bootstrap/43511
3705         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
3706         Clear first_function_block_is_cold.
3707
3708         PR c/43385
3709         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
3710         argument if the argument is truth_value_p.
3711
3712 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
3713
3714         * config/rs6000/constraints.md: Update copyright year for my changes.
3715
3716         PR target/43484
3717         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
3718         used in reg+reg addressing, swap registers.
3719
3720 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
3721
3722         PR debug/43293
3723         * target.h (struct gcc_target): Add code_end hook.
3724         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
3725         if not yet defined.
3726         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
3727         * toplev.c (compile_file): Call targetm.asm_out.code_end
3728         hook before unwind info/debug info output.
3729         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
3730         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
3731         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
3732         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
3733         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
3734         * config/i386/i386.c (ix86_file_end): Renamed to...
3735         (ix86_code_end): ... this.  Make static.  Don't call
3736         file_end_indicate_exec_stack.  Emit unwind info using
3737         final_start_function/final_end_function.
3738         (darwin_x86_file_end): Remove.
3739         (TARGET_ASM_CODE_END): Define.
3740         * config/i386/i386.h (TARGET_ASM_FILE_END,
3741         NEED_INDICATE_EXEC_STACK): Don't define.
3742         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
3743         (TARGET_ASM_FILE_END): Define to darwin_file_end.
3744         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
3745         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
3746
3747         PR target/43498
3748         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
3749         at the beginning and final_end_function at the end.
3750         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
3751
3752 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3753
3754         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
3755         and Sun as TLS syntax.
3756         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
3757         * configure: Regenerate.
3758         * config.in: Regenerate.
3759         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
3760         (default_elf_asm_named_section): Use it.
3761         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
3762         (i386_output_dwarf_dtprel): Likewise.
3763         (output_addr_const_extra): Likewise.
3764         (output_pic_addr_const): Lowercase @GOTTPOFF.
3765         (output_addr_const_extra): Likewise.
3766         (output_pic_addr_const): Lowercase @GOTNTPOFF.
3767         (output_addr_const_extra): Likewise.
3768         (output_pic_addr_const): Lowercase @INDNTPOFF.
3769         (output_addr_const_extra): Likewise.
3770         (output_pic_addr_const): Lowercase @NTPOFF.
3771         (output_addr_const_extra): Likewise.
3772         (output_pic_addr_const): Lowercase @TPOFF.
3773         (output_addr_const_extra): Likewise.
3774         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
3775         (*tls_global_dynamic_64): Likewise.
3776         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
3777         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
3778
3779         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
3780         (ASM_OUTPUT_TLS_COMMON): Use it.
3781         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
3782
3783         PR target/38118
3784         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
3785         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
3786         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
3787         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
3788         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
3789         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
3790
3791 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3792
3793         * config/i386/i386.c (override_options): Don't accept
3794         -mtls-dialect=sun any longer.
3795         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
3796         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
3797         (*tls_local_dynamic_base_32_sun): Likewise.
3798         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
3799
3800 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
3801
3802         PR debug/43508
3803         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
3804         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
3805
3806         PR debug/43479
3807         * ira.c (adjust_cleared_regs): New function.
3808         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
3809
3810         PR debug/19192
3811         PR debug/43479
3812         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
3813         from gimple_block.
3814         * expr.c (expand_expr_real): Restore previous
3815         curr_insn_source_location and curr_insn_block after
3816         expand_expr_real_1 call.
3817         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
3818         instead of expand_expr_real_1.
3819
3820 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
3821
3822         PR rtl-optimization/43413
3823         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
3824         hard regs too.
3825
3826 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
3827
3828         PR target/43348
3829         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
3830         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
3831
3832 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
3833
3834         * config/i386/i386.c (ix86_target_string): Add -mfma.
3835         Fix a typo in comment.
3836
3837 2010-03-22  Mike Stump  <mikestump@comcast.net>
3838
3839         PR target/23071
3840         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
3841         Don't overly align based upon packed packed fields.
3842
3843 2010-03-22  Jason Merrill  <jason@redhat.com>
3844
3845         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
3846         Use () rather than [], and move before the element type.
3847
3848 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3849
3850         * doc/configfiles.texi (Configuration Files): Removed
3851         fixinc/Makefile*, intl/Makefile.*.
3852         * doc/makefile.texi: Fixed markup. Abstract from version
3853         control system used.
3854         (Makefile): Removed obsolete gcc/java/parse.y example.
3855         * doc/sourcebuild.texi: Likewise.
3856         (Top Level): Added config, gnattools, libdecnumber, libgcc,
3857         libgomp, libssp.  Removed fastjar.
3858         (Miscellaneous Docs): Clarify location.
3859         Added COPYING3, COPYING3.LIB.
3860         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
3861
3862 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3863
3864         PR target/38085
3865         * config/i386/i386.c (x86_function_profiler)
3866         [!NO_PROFILE_COUNTERS]: Fix typo.
3867         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
3868         instead of callq.
3869
3870 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
3871             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3872
3873         * doc/sourcebuild.texi (Test Directives): Split into six
3874         subsections, with most of the current text in new subsections
3875         Directives, Selectors, and Final Actions.
3876         (Directives): Split list of test directives into multiple
3877         subsubsections.
3878         (Selectors): Describe use and syntax of selectors.
3879         (Effective-Target Keywords): Describe all existing keywords.
3880         (Add Options): Describe features for dg-add-options.
3881         (Require Support): Describe variants of dg-require-support.
3882         (Final Actions): Describe commands to use in dg-final.
3883
3884 2010-03-22  Michael Matz  <matz@suse.de>
3885
3886         PR middle-end/43475
3887         * recog.c (validate_replace_rtx_group): Replace also in
3888         REG_EQUAL and REG_EQUIV notes.
3889
3890 2010-03-22  Richard Guenther  <rguenther@suse.de>
3891
3892         PR tree-optimization/43390
3893         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
3894         sure vector extracts are type correct.
3895
3896 2010-03-22  Richard Guenther  <rguenther@suse.de>
3897
3898         PR middle-end/40106
3899         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
3900         x * sqrt (x) even when optimizing for size if the target
3901         has native support for sqrt.
3902
3903 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
3904
3905         * varasm.c (make_decl_rtl_for_debug): Also clear
3906         flag_mudflap for the duration of make_decl_rtl call.
3907
3908         PR debug/43443
3909         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
3910         locs from preserved VALUEs.
3911
3912 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3913
3914         PR middle-end/42718
3915         * pa.md (movmemsi): Set align to one if zero.
3916         (movmemdi): Likewise.
3917
3918 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
3919
3920         PR target/42321
3921         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
3922         with their corresponding prologue pushes.
3923
3924 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
3925
3926         PR target/43156
3927         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
3928         at the begining or end.
3929         (spu_expand_epilogue): Likewise.
3930
3931 2010-03-20  Richard Guenther  <rguenther@suse.de>
3932
3933         PR rtl-optimization/43438
3934         * combine.c (make_extraction): Properly zero-/sign-extend an
3935         extraction of the low part of a CONST_INT.  Also handle
3936         CONST_DOUBLE.
3937
3938 2010-03-19  Mike Stump  <mikestump@comcast.net>
3939
3940         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
3941         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
3942         (override_options): Use SUBTARGET32_DEFAULT_CPU.
3943
3944 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
3945
3946         PR c/43211
3947         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
3948         an error.
3949
3950 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
3951
3952         PR rtl-optimization/42258
3953         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
3954         use that may match DEF.
3955
3956         PR target/40697
3957         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
3958         the cost of loading the constant rather than assuming
3959         COSTS_N_INSNS (1).
3960         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
3961         outer code is AND, do the same tests as the andsi3 expander and
3962         return COSTS_N_INSNS (1) if and is cheap.
3963
3964         * optabs.c (avoid_expensive_constant): Fix formatting.
3965
3966 2010-03-19  Michael Matz  <matz@suse.de>
3967
3968         PR c++/43116
3969         * attribs.c (decl_attributes): When rebuilding a function pointer
3970         type use the same qualifiers as the original pointer type.
3971
3972 2010-03-19  Martin Jambor  <mjambor@suse.cz>
3973
3974         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
3975         and is_gimple_ip_invariant_address.
3976
3977 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3978
3979         Revert
3980         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3981
3982         * config/arm/arm.c (arm_override_options): Turn off
3983         flag_dwarf2_cfi_asm for AAPCS variants.
3984
3985 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3986
3987         PR target/43399
3988         * config/arm/arm.c (emit_multi_reg_push): Update comments.
3989         Use PRE_MODIFY instead of PRE_DEC.
3990         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
3991         (vfp_emit_fstmd): Likewise.
3992
3993 2010-03-19  Michael Matz  <matz@suse.de>
3994
3995         PR target/43305
3996         * builtins.c (expand_builtin_interclass_mathfn,
3997         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
3998         if that fails.
3999
4000 2010-03-19  Richard Guenther  <rguenther@suse.de>
4001
4002         PR tree-optimization/43415
4003         * tree-ssa-pre.c (phi_translate): Split out worker to ...
4004         (phi_translate_1): ... this.
4005         (phi_translate): Move all caching here.  Cache all NARY
4006         and REFERENCE translations.
4007
4008 2010-03-19  David S. Miller  <davem@davemloft.net>
4009
4010         With help from Eric Botcazou.
4011         * config/sparc/sparc.c: Include dwarf2out.h.
4012         (emit_pic_helper): Delete.
4013         (pic_helper_symbol_name): Delete.
4014         (pic_helper_emitted_p): Delete.
4015         (pic_helper_needed): New.
4016         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
4017         (get_pc_thunk_name): New.
4018         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
4019         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
4020         Set pic_helper_needed to true.  Don't call emit_pic_helper.
4021         (sparc_expand_prologue): Update load_pic_register call.
4022         (sparc_output_mi_thunk): Likewise.
4023         (sparc_file_end): Emit a hidden comdat symbol for the PIC
4024         thunk if possible.  Output CFI information as needed.
4025
4026 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4027             Jack Howarth <howarth@bromo.med.uc.edu>
4028
4029         PR target/36399
4030         * config/i386/i386.h: Fix ABI on darwin x86-32.
4031
4032 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
4033
4034         * tree.h: Declare make_decl_rtl_for_debug.
4035         * varasm.c (make_decl_rtl_for_debug): New.
4036         * dwarf2out.c (rtl_for_decl_location): Call it.
4037         * cfgexpand.c (expand_debug_expr): Call it.
4038
4039 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
4040
4041         PR bootstrap/43399
4042         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
4043         mem_mode.
4044
4045         PR bootstrap/43403
4046         * var-tracking.c (vt_init_cfa_base): Do nothing if
4047         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
4048
4049 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
4050
4051         PR debug/42873
4052         * var-tracking.c (canonicalize_vars_star): New.
4053         (dataflow_post_merge_adjust): Use it.
4054
4055 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
4056
4057         PR debug/43058
4058         * var-tracking.c (non_suitable_const): New function.
4059         (add_uses): For DEBUG_INSNs with constants, don't record any
4060         value, instead just the constant value itself.
4061         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
4062         is not VAR_LOC_UNKNOWN_P, set var to the constant.
4063         (emit_notes_in_bb): Likewise.
4064         (emit_note_insn_var_location): For onepart variables if
4065         cur_loc is a VOIDmode constant, use DECL_MODE.
4066
4067 2010-03-18  Martin Jambor  <mjambor@suse.cz>
4068
4069         PR middle-end/42450
4070         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
4071         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
4072         all non-clones.  Moved call redirection...
4073         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
4074         (cgraph_materialize_all_clones): Dispose of all
4075         combined_args_to_skip bitmaps.
4076         (verify_cgraph_node): Do not check for edges pointing to wrong
4077         nodes in inline clones.
4078         * tree-inline.c (copy_bb): Call
4079         cgraph_redirect_edge_call_stmt_to_callee.
4080         * ipa.c (cgraph_remove_unreachable_nodes): Call
4081         cgraph_node_remove_callees even when there are used clones.
4082
4083 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
4084
4085         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
4086
4087 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
4088
4089         PR target/43383
4090         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
4091         for 32bit.
4092
4093 2010-03-18  Michael Matz  <matz@suse.de>
4094
4095         PR middle-end/43419
4096         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
4097         into sqrt(x) if we need to preserve signed zeros.
4098
4099 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
4100             Eric Botcazou  <ebotcazou@adacore.com>
4101
4102         PR rtl-optimization/43360
4103         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
4104         note if we don't know its invariant status.
4105
4106 2010-03-18  Michael Matz  <matz@suse.de>
4107
4108         PR tree-optimization/43402
4109         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
4110         PHI chains of ssa names registered for update.
4111
4112 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
4113
4114         PR target/42427
4115         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
4116         non-offsettable and pre_modify update addressing.
4117         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
4118         and "2" alternatives "#".
4119         (*movdd_softfloat32): Make all alternatives "#";
4120         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
4121         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
4122         (*movdf_softfloat32): Make all alternatives "#";
4123         (movdi): Use the new DIFD mode iterator to create a common splitter
4124         for movdi, movdf and movdd patterns.
4125
4126 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
4127
4128         * common.opt (dumpdir): Remove redundant tab.
4129
4130 2010-03-17  Martin Jambor  <mjambor@suse.cz>
4131
4132         PR tree-optimization/43347
4133         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
4134         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
4135
4136 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
4137
4138         PR rtl-optimization/42216
4139         * regrename.c (create_new_chain): New function, broken out from...
4140         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
4141         appending a use to an empty chain.
4142         (build_def_use): Remove previous changes that convert OP_INOUT to
4143         OP_OUT operands; instead detect the case where an OP_INOUT operand
4144         uses a previously untracked register and create an empty chain for it.
4145
4146 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4147
4148         * doc/extend.texi (Function Attributes): Rewrite unfinished
4149         sentence in ms_abi documentation.
4150
4151 2010-03-17  Alan Modra  <amodra@gmail.com>
4152
4153         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
4154         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
4155         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
4156         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
4157
4158 2010-03-16  Richard Henderson  <rth@redhat.com>
4159
4160         PR middle-end/43365
4161         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
4162         (lower_try_finally): Save and restore eh_seq around the expansion
4163         of the try-finally.
4164
4165 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
4166
4167         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
4168         statements before splitting block.
4169
4170 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4171
4172         * doc/sourcebuild.texi (Testsuites): Fix markup.
4173         Use pathnames relative to gcc/testsuite.
4174         (Test Directives): Move description of how timeout is determined.
4175         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
4176         (C Tests): Correct gcc.misc-tests directory.
4177         Framework tests now live in gcc.test-framework.
4178
4179 2010-03-16  Richard Guenther  <rguenther@suse.de>
4180
4181         PR middle-end/43379
4182         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
4183         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
4184
4185 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
4186             Alexandre Oliva  <aoliva@redhat.com>
4187
4188         PR tree-optimization/42917
4189         * lambda-code.c (remove_iv): Skip debug statements.
4190         (lambda_loopnest_to_gcc_loopnest): Likewise.
4191         (not_interesting_stmt): Debug statements are not interesting.
4192
4193 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
4194
4195         PR debug/43051
4196         PR debug/43092
4197         * cselib.c (cselib_preserve_constants,
4198         cfa_base_preserved_val): New static variables.
4199         (preserve_only_constants): New function.
4200         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
4201         clear its REG_VALUES.  If cselib_preserve_constants, don't
4202         empty the whole hash table, but preserve there VALUEs with constants,
4203         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
4204         (cselib_preserve_cfa_base_value): New function.
4205         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
4206         (cselib_init): Change argument to int bitfield.  Set
4207         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
4208         is in it.
4209         (cselib_finish): Clear cselib_preserve_constants and
4210         cfa_base_preserved_val.
4211         * cselib.h (enum cselib_record_what): New enum.
4212         (cselib_init): Change argument to int.
4213         (cselib_preserve_cfa_base_value): New prototype.
4214         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
4215         * dse.c (dse_step1): Likewise.
4216         * cfgcleanup.c (thread_jump): Likewise.
4217         * sched-deps.c (sched_analyze): Likewise.
4218         * gcse.c (local_cprop_pass): Likewise.
4219         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
4220         If FN is non-NULL, call the callback always and whenever it returns
4221         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
4222         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
4223         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
4224         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
4225         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
4226         * var-tracking.c: Include recog.h.
4227         (bb_stack_adjust_offset): Remove.
4228         (vt_stack_adjustments): Don't call it, instead just gather the
4229         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
4230         (adjust_stack_reference): Remove.
4231         (compute_cfa_pointer): New function.
4232         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
4233         (struct adjust_mem_data): New type.
4234         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
4235         functions.
4236         (get_address_mode): New function.
4237         (replace_expr_with_values): Use it.
4238         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
4239         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
4240         (adjust_sets): Remove.
4241         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
4242         Use get_address_mode.
4243         (get_adjusted_src): Remove.
4244         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
4245         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
4246         (add_with_sets): Don't call adjust_sets.
4247         (fp_setter, vt_init_cfa_base): New functions.
4248         (vt_initialize): Change return type to bool.  Move most of pool etc.
4249         initialization to the beginning of the function from end.  Pass
4250         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
4251         If !frame_pointer_needed, call vt_stack_adjustment before mos
4252         vector is filled, call vt_init_cfa_base if argp/framep has been
4253         eliminated to sp.  If frame_pointer_needed and argp/framep has
4254         been eliminated to hard frame pointer, set
4255         hard_frame_pointer_adjustment and call vt_init_cfa_base after
4256         encountering fp setter in the prologue.  For MO_ADJUST, call
4257         log_op_type before pusing the op into mos vector, not afterwards.
4258         Call adjust_insn before cselib_process_insn/add_with_sets,
4259         call cancel_changes (0) afterwards.
4260         (variable_tracking_main_1): Adjust for vt_initialize calling
4261         vt_stack_adjustments and returning whether it succeeded or not.
4262
4263 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
4264
4265         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
4266         debug statements.
4267
4268 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
4269
4270         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
4271         has been set.
4272         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
4273         drap_reg has not been set.
4274
4275 2010-03-15  Michael Matz  <matz@suse.de>
4276
4277         PR middle-end/43300
4278         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
4279         use it to expand block copies.
4280         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
4281         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
4282         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
4283
4284 2010-03-15  Richard Guenther  <rguenther@suse.de>
4285
4286         PR tree-optimization/43367
4287         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
4288         elimination check.
4289
4290 2010-03-15  Richard Guenther  <rguenther@suse.de>
4291
4292         PR tree-optimization/43317
4293         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
4294
4295 2010-03-15  Martin Jambor  <mjambor@suse.cz>
4296
4297         PR tree-optimization/43141
4298         * tree-sra.c (create_abstract_origin): New function.
4299         (modify_function): Call create_abstract_origin.
4300
4301 2010-03-15  Chris Demetriou  <cgd@google.com>
4302
4303         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
4304         wasn't copied.
4305
4306 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4307
4308         PR middle-end/43354
4309         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
4310         call insert_out_of_ssa_copy for default definitions.
4311
4312 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4313
4314         * graphite-clast-to-gimple.c (my_long_long): Defined.
4315         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
4316         * graphite-sese-to-poly.c (my_long_long): Defined.
4317         (scop_ivs_can_be_represented): Use it.
4318
4319 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4320
4321         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
4322         graphite-max-bbs-per-function, and loop-block-tile-size.
4323         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
4324         with "maximum".
4325         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
4326
4327 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4328
4329         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
4330         forward declaration.
4331         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
4332         (add_upper_bounds_from_estimated_nit): New.
4333         (build_loop_iteration_domains): Use it.
4334
4335 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4336
4337         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
4338
4339 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4340
4341         PR middle-end/43306
4342         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
4343         should be an INTEGER_CST.  Also handle CASE_CONVERT.
4344
4345 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4346
4347         * graphite.c (graphite_initialize): To bound the number of bbs per
4348         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4349         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
4350         * doc/invoke.texi: Document it.
4351
4352 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4353
4354         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
4355         * graphite-sese-to-poly.h (build_poly_scop): Same.
4356
4357 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
4358
4359         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
4360         the number of parameters in the scop.  Use as an upper bound
4361         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
4362         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
4363         * doc/invoke.texi: Document it.
4364
4365 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
4366
4367         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
4368         * doc/c-tree.texi: Remove.
4369         * doc/generic.texi: Merge c-tree.texi here.
4370         * doc/gccint.texi (Trees): Remove menu entry.
4371         (c-tree.texi): Remove @include.
4372         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
4373         * doc/languages.texi (Reading RTL): Ditto.
4374
4375 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
4376
4377         PR target/42869
4378         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
4379
4380 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
4381
4382         PR middle-end/42431
4383         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
4384         code added to work around reload clobbering CONST insns.
4385
4386 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
4387
4388         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
4389         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
4390         (cselib_preserve_only_values): Remove retain argument, don't
4391         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
4392         * cselib.h (cselib_preserve_only_values): Remove retain argument.
4393         * var-tracking.c (micro_operation): Move insn field before union.
4394         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
4395         (struct variable_tracking_info_def): Remove n_mos field, change
4396         mos into a vector of micro_operations.
4397         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
4398         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
4399         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
4400         changing into a vector.
4401         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
4402         come before all other uops generated by add_stores.
4403         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
4404         argument removal.
4405         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
4406         a vector.  Run just one pass over the bbs instead of separate counting
4407         and computation phase.
4408         (vt_finalize): Free VTI (bb)->mos vector instead of array.
4409
4410         PR debug/43329
4411         * tree-inline.c (remap_decls): Put old_var rather than origin_var
4412         into *nonlocalized_list vector.
4413         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
4414         even if origin is non-NULL.
4415         (gen_variable_die): Likewise.
4416         (process_scope_var): Don't change origin.
4417         (gen_decl_die): Likewise.
4418         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
4419         before adding new edges instead of after it, fix moving over
4420         debug stmts.
4421
4422 2010-03-11  David S. Miller  <davem@davemloft.net>
4423
4424         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
4425         of four.
4426         * configure: Rebuild.
4427
4428 2010-03-11  Martin Jambor  <mjambor@suse.cz>
4429
4430         PR tree-optimization/43257
4431         * tree.c (assign_assembler_name_if_neeeded): New function.
4432         (free_lang_data_in_cgraph): Assembler name assignment moved to the
4433         above new function.
4434         * tree.h (assign_assembler_name_if_neeeded): Declare.
4435         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
4436         the function if needed.
4437
4438 2010-03-11  Chris Demetriou  <cgd@google.com>
4439
4440         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
4441         include/stdint-gcc.h, and include/stdint.h world-readable.
4442
4443 2010-03-11  Richard Guenther  <rguenther@suse.de>
4444
4445         PR tree-optimization/43255
4446         * tree-vrp.c (process_assert_insertions_for): Do not insert
4447         asserts for trivial conditions.
4448
4449 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4450
4451         PR tree-optimization/43280
4452         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
4453         generation.  Move calculation of size out of the if branch.
4454         (find_bswap): Modify compare number generation.
4455
4456 2010-03-11  Richard Guenther  <rguenther@suse.de>
4457
4458         PR lto/43200
4459         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
4460         (input_gimple_stmt): Fixup handled component types during
4461         operand read.  Also fix up decls in ADDR_EXPRs.
4462
4463 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
4464
4465         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
4466         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
4467
4468 2010-03-10  Jan Hubicka  <jh@suse.cz>
4469
4470         PR c/43288
4471         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
4472         * varasm.c (get_variable_section): Don't do that here...
4473         (make_decl_rtl): ... and here.
4474         (do_assemble_alias): Produce decl RTL.
4475         (assemble_alias): Likewise.
4476
4477 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
4478
4479         PR debug/43290
4480         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
4481         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
4482         of fde->vdrap_reg.
4483         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
4484         (based_loc_descr): Only express drap or vdrap regno based expressions
4485         using DW_OP_fbreg when not optimizing.
4486         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
4487         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
4488         REG_CFA_SET_VDRAP note.
4489
4490 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
4491
4492         PR tree-optimization/43236
4493         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
4494         error in calculation of base address in reverse iteration case.
4495         (generate_builtin): Take number of latch executions if the statement
4496         is in the latch.
4497
4498 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
4499
4500         PR middle-end/42859
4501         * tree-eh.c: Include pointer-set.h.
4502         (lower_eh_dispatch): Filter out duplicate case labels and
4503         remove the unneeded edge when the label is unused.  Return
4504         true when some edges are removed.
4505         (execute_lower_eh_dispatch): When any lowering resulted in
4506         removing an edge, also delete unreachable blocks.
4507
4508 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
4509
4510         PR bootstrap/43287
4511         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4512         UNSPEC_MACHOPIC_OFFSET.
4513
4514 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
4515
4516         PR target/43294
4517         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
4518         (m68k_delegitimize_address): New function.
4519
4520 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
4521
4522         PR debug/43299
4523         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
4524
4525         PR debug/43299
4526         * var-tracking.c (adjust_sets): New function.
4527         (count_with_sets, add_with_sets): Use it.
4528         (get_adjusted_src): New inline function.
4529         (add_stores): Use it.
4530
4531         PR debug/43304
4532         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
4533         call cselib_dummy_expand_value_rtx_cb instead of
4534         cselib_expand_value_rtx_cb.
4535
4536         PR debug/43293
4537         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
4538         * config/i386/i386.c: Include debug.h and dwarf2out.h.
4539         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
4540         and .cfi_endproc around the pic thunks.
4541         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
4542         all queued unwind info register saves are saved before the call.
4543         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
4544         considered as sp-=4 for unwind info and the pop as sp+=4 which
4545         also clobbers dest, but doesn't actually restore it.
4546
4547         PR debug/43290
4548         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
4549         RTX_FRAME_RELATED_P.
4550
4551 2010-03-09  Jie Zhang  <jie@codesourcery.com>
4552
4553         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
4554         whitespaces in output template.
4555
4556 2010-03-09  Jie Zhang  <jie@codesourcery.com>
4557
4558         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
4559         out array boundary.
4560
4561 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
4562
4563         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
4564         builtins.exp in a separate job.
4565
4566 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4567
4568         * graphite-sese-to-poly.c (add_param_constraints): Use
4569         lower_bound_in_type and upper_bound_in_type.
4570
4571 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4572
4573         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
4574         instead of unsigned_type_node.
4575
4576 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4577             Reza Yazdani  <reza.yazdani@amd.com>
4578
4579         PR middle-end/43065
4580         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
4581         on pointer type parameters.
4582
4583 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
4584
4585         PR middle-end/42644
4586         PR middle-end/42130
4587         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
4588         handle conversions from pointer to integers.
4589         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
4590         induction variable, to be able to work with code generated by CLooG.
4591         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
4592         (build_poly_scop): Bail out if we cannot codegen a loop.
4593
4594 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
4595
4596         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
4597         code generation with gloog_error.
4598
4599 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4600
4601         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
4602         Call fold_convert on all the returned values.
4603         (expand_scalar_variables_expr): Pass to
4604         expand_scalar_variables_ssa_name the type of the resulting expression.
4605
4606 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4607
4608         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
4609         ppl_min_for_le_pointset.
4610         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
4611         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
4612
4613 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4614
4615         * graphite-dependences.c (map_into_dep_poly): Removed.
4616         (dependence_polyhedron_1): Use combine_context_id_scat.
4617
4618 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4619
4620         * graphite-poly.h (struct poly_scattering): Add layout documentation.
4621         (struct poly_bb): Same.
4622         (combine_context_id_scat): New.
4623
4624 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4625
4626         PR middle-end/42326
4627         * sese.c (name_defined_in_loop_p): Return false for default
4628         definitions.
4629
4630 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4631
4632         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
4633         and clean up the logic.
4634
4635 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
4636
4637         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
4638         early return.
4639
4640 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
4641
4642         * var-tracking.c (remove_cselib_value_chains): Define only for
4643         ENABLE_CHECKING.
4644         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
4645         delete_slot_part, emit_notes_for_differences_1): Don't call
4646         remove_cselib_value_chains here.
4647         (set_slot_part, emit_notes_for_differences_2): Don't call
4648         add_cselib_value_chains here.
4649         (preserved_values): New vector.
4650         (preserve_value): New function.
4651         (add_uses, add_stores, vt_add_function_parameters): Use it
4652         instead of cselib_preserve_value.
4653         (changed_values_stack): New vector.
4654         (check_changed_vars_0): New function.
4655         (check_changed_vars_1, check_changed_vars_2): Use it.
4656         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
4657         changed_values_stack VALUEs.
4658         (vt_emit_notes): For all preserved_values call
4659         add_cselib_value_chains.  If ENABLE_CHECKING call
4660         remove_cselib_value_chains before verifying value_chains is empty.
4661         Initialize and free changed_values_stack.
4662         (vt_initialize): Initialize preserved_values.
4663         (vt_finalize): Free preserved_values.
4664
4665 2010-03-08  Richard Guenther  <rguenther@suse.de>
4666
4667         PR tree-optimization/43269
4668         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
4669         region detection.
4670
4671 2010-03-08  Martin Jambor  <mjambor@suse.cz>
4672
4673         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
4674         (ipa_is_param_called): Removed.
4675         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
4676         (ipa_print_node_params): Do not print the called flag.
4677         (ipa_write_node_info): Do not stream the called flag.
4678         (ipa_read_node_info): Likewise.
4679
4680 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
4681
4682         PR debug/43176
4683         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
4684         * cselib.c (struct expand_value_data): Add dummy field.
4685         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
4686         dummy to false.
4687         (cselib_dummy_expand_value_rtx_cb): New function.
4688         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
4689         any rtl.
4690         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
4691         * var-tracking.c: Include pointer-set.h.
4692         (variable): Change n_var_parts to char from int.  Add
4693         cur_loc_changed and in_changed_variables fields.
4694         (variable_canonicalize): Remove.
4695         (shared_var_p): New inline function.
4696         (unshare_variable): Maintain cur_loc_changed and
4697         in_changed_variables fields.  If var was in changed_variables,
4698         replace it there with new_var.  Just copy cur_loc instead of
4699         resetting it to something else.
4700         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
4701         (dataflow_set_union): Don't call variable_canonicalize.
4702         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
4703         of their DEBUG_EXPR_TREE_DECLs.
4704         (canonicalize_loc_order_check): Verify that cur_loc is NULL
4705         and in_changed_variables and cur_loc_changed is false.
4706         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
4707         and cur_loc_changed.  Don't update cur_loc here.
4708         (variable_merge_over_src): Don't call variable_canonicalize.
4709         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
4710         removing loc that is equal to cur_loc, clear cur_loc,
4711         set cur_loc_changed and ensure variable_was_changed is called.
4712         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
4713         compare pointers in cur_loc check, if it is equal to loc,
4714         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
4715         (variable_different_p): Remove compare_current_location argument,
4716         don't compare cur_loc.
4717         (dataflow_set_different_1): Adjust variable_different_p caller.
4718         (variable_was_changed): If dv had some var in changed_variables
4719         already, reset in_changed_variables flag for it and propagate
4720         cur_loc_changed over to the new variable.  On empty var
4721         always set cur_loc_changed.  Set in_changed_variables on whatever
4722         var is added to changed_variables.
4723         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
4724         Use shared_var_p.  When removing loc that is equal to cur_loc,
4725         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
4726         end, don't set it to something else, just call variable_was_changed.
4727         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
4728         loc being removed, clear cur_loc and set cur_loc_changed.
4729         Set cur_loc_changed if all locations have been removed.
4730         (struct expand_loc_callback_data): New type.
4731         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
4732         allocated.  Always create SUBREGs if simplify_subreg failed.
4733         Prefer to use cur_loc, when that fails and still in
4734         changed_variables (and seen first time) recompute it.  Set
4735         cur_loc_changed of variables which had to change cur_loc and
4736         compute elcd->cur_loc_changed if any of the subexpressions used
4737         had to change cur_loc.
4738         (vt_expand_loc): Adjust to pass arguments in
4739         expand_loc_callback_data structure.
4740         (vt_expand_loc_dummy): New function.
4741         (emitted_notes): New variable.
4742         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
4743         that weren't used for any other decl in current
4744         emit_notes_for_changes call call vt_expand_loc_dummy to update
4745         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
4746         first loc_chain location if NULL before.  Always use just
4747         cur_loc instead of first loc_chain location.  When cur_loc_changed
4748         is false, when not --enable-checking=rtl just don't emit any note.
4749         When rtl checking, compute the note and assert it is the same
4750         as previous note.  Clear cur_loc_changed and in_changed_variables
4751         at the end before removing from changed_variables.
4752         (check_changed_vars_3): New function.
4753         (emit_notes_for_changes): Traverse changed_vars to call
4754         check_changed_vars_3 on each changed var.
4755         (emit_notes_for_differences_1): Clear cur_loc_changed and
4756         in_changed_variables.  Recompute cur_loc of new_var.
4757         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
4758         (vt_emit_notes): Initialize and destroy emitted_notes.
4759
4760 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
4761
4762         PR rtl-optimization/42220
4763         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
4764         Use verify_reg_tracked to determine if we should use OP_OUT rather
4765         than OP_INOUT.
4766         (build_def_use): If we see an in-out operand for a register that we
4767         know nothing about, treat is an output if possible, fail the block if
4768         not.
4769
4770 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
4771
4772         PR debug/42897
4773         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
4774         permanently.
4775
4776 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
4777
4778         PR debug/42897
4779         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
4780         uses of relevant DEFs that are dead outside the loop too.
4781
4782 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
4783
4784         * var-tracking.c (dataflow_set_merge): Swap src and src2.
4785         Reverted:
4786         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
4787         PR debug/41371
4788         * var-tracking.c (values_to_unmark): New variable.
4789         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
4790         values_to_unmark vector.  Moved body to...
4791         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
4792         instead queue it into values_to_unmark vector.
4793         (vt_find_locations): Free values_to_unmark vector.
4794
4795 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
4796
4797         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
4798         (site.exp): Export them when plugins are enabled.
4799
4800 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
4801
4802         PR middle-end/42326
4803         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
4804         that contain scevs.
4805         (chrec_fold_multiply): Same.
4806
4807 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
4808
4809         PR c/43248
4810         * c-decl.c (build_compound_literal): Return early if init is
4811         an error_mark_node.
4812
4813 2010-03-04  Martin Jambor  <mjambor@suse.cz>
4814
4815         PR tree-optimization/43164
4816         PR tree-optimization/43191
4817         * tree-sra.c (type_consists_of_records_p): Reject records with
4818         zero-size bit-fields at the end.
4819
4820 2010-03-04  Mike Stump  <mikestump@comcast.net>
4821
4822         * Makefile.in (TAGS): Remove *.y.
4823
4824 2010-03-04  Richard Guenther  <rguenther@suse.de>
4825
4826         PR tree-optimization/40761
4827         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
4828         in reverse order.
4829         (my_rev_post_order_compute): New function.
4830         (init_pre): Call it.
4831
4832 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
4833
4834         PR middle-end/43209
4835         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
4836         decrease the cost of an IV candidate when the cost is infinite.
4837
4838 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4839
4840         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
4841         Use '3DNow!' for the extension of that name, ensure normal space
4842         after the string.
4843         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
4844
4845 2010-03-03  Jeff Law  <law@redhat.com>
4846
4847         * PR middle-end/32693
4848         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
4849         than gen_rtx_SUBREG.
4850         (extract_bit_field_1): Likewise.
4851
4852 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
4853
4854         * doc/sourcebuild.texi (Test directives): Document that arguments
4855         include-opts and exclude-opts are now optional for dg-skip-if,
4856         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
4857
4858 2010-03-03  Jason Merrill  <jason@redhat.com>
4859
4860         PR c++/12909
4861         * cgraph.h (varpool_node): Add extra_name field.
4862         * varpool.c (varpool_extra_name_alias): New.
4863         (varpool_assemble_decl): Emit extra name aliases.
4864         (varpool_mark_needed_node): Look past an extra name alias.
4865         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
4866         * lto-streamer-in.c (lto_input_tree): Read it.
4867         * lto-streamer-out.c (output_unreferenced_globals): Write it.
4868
4869 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
4870
4871         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
4872         (sparc*-*-solaris2*): ...this.
4873
4874 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
4875
4876         PR debug/43229
4877         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
4878         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
4879         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
4880         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
4881
4882         PR debug/43237
4883         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
4884         fallthrough to default handling, just with want_address 0 instead of 2.
4885         For single element lists, add_AT_loc directly, otherwise create an
4886         artificial variable DIE and stick location list to it.
4887
4888         PR debug/43177
4889         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
4890         (VAL_EXPR_HAS_REVERSE): Define.
4891         (reverse_op): New function.
4892         (add_stores): For reversible operations add an extra MO_VAL_USE.
4893
4894 2010-03-02  Jason Merrill  <jason@redhat.com>
4895
4896         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
4897
4898 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
4899
4900         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
4901         (sparc64-*-linux*): Likewise.
4902         (sparc64-*-solaris2*): Include assembler files before linker ones.
4903         (sparc-*-solaris2*): Simplify and reorder to match previous case.
4904         * config/sparc/gas.h: Delete.
4905         * config/sparc/sol2-64.h: Add copyright notice.
4906         * config/sparc/sol2-gas-bi.h: Likewise.
4907         * config/sparc/sol2-gld.h: Likewise.
4908         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
4909         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
4910         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
4911         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
4912         (sparc_elf_asm_named_section): Rename into...
4913         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
4914
4915 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
4916
4917         * config/alpha/alpha.c (override_options): Fix -mtune error message.
4918
4919 2010-03-02  Jeff Law  <law@redhat.com>
4920
4921         PR middle-end/42431
4922         * reload1.c (rtx_p, substitute_stack): Declare.
4923         (substitute): Record addresses of changed rtxs.
4924         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
4925         Restore the original rtx when complete.
4926         (reload): Free subsitute_stack when complete.
4927
4928 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
4929
4930         * doc/gccint.texi (menu): Add Testsuites as a chapter.
4931         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
4932         new chapter.
4933         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
4934         LTO Testing, gcov Testing, profopt Testing, compat Testing,
4935         Torture Tests): Change from subsection to section.
4936
4937 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
4938             Steven Bosscher  <steven@gcc.gnu.org>
4939
4940         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
4941         instead of bb.
4942
4943 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
4944
4945         PR middle-end/42640
4946         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
4947         the assignment from the new induction variable to the assignment
4948         of the value from the original loop PHI function.
4949
4950 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
4951             Daniel Jacobowitz  <dan@codesourcery.com>
4952
4953         * doc/sourcebuild.texi (Test directives): Clarify options to
4954         dg-skip-if.
4955
4956 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4957
4958         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
4959         Disable cfi directives unless GCC and gas agree on using read-only
4960         .eh_frame sections for 64-bit.
4961         * configure: Regenerate.
4962
4963 2010-03-01  Richard Guenther  <rguenther@suse.de>
4964
4965         PR tree-optimization/43220
4966         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
4967         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
4968
4969 2010-03-01  Richard Guenther  <rguenther@suse.de>
4970             Martin Jambor  <mjambor@suse.cz>
4971
4972         PR middle-end/41250
4973         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
4974         gimplified parameters.
4975
4976 2010-03-01  Christian Bruel  <christian.bruel@st.com>
4977
4978         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
4979
4980 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
4981
4982         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
4983
4984 2010-03-01  Richard Guenther  <rguenther@suse.de>
4985
4986         PR middle-end/43213
4987         * expr.c (expand_assignment): Use the alias-oracle to tell
4988         if the rhs aliases the result decl.
4989
4990 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4991
4992         PR pch/14940
4993         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
4994         to sol_gt_pch_get_address.
4995         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
4996         64-bit, SPARC and x86.
4997         (sol_gt_pch_get_address): New function.
4998
4999 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
5000
5001         * toplev.h (inform_n, error_n): Declare.
5002         * diagnostic.c (inform_n, error_n): New function.
5003
5004 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
5005
5006         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
5007         has no rtl yet when processing local_decls, queue it and recheck
5008         if deferred stack allocation hasn't assigned it rtl.
5009
5010 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
5011
5012         * config/sh/sh.c (unspec_bbr_uid): New.
5013         (gen_block_redirect): Use it instead of INSN_UID.
5014         (gen_far_branch): Likewise.
5015
5016 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
5017
5018         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
5019         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
5020
5021 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5022
5023         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
5024         (Warning Options): -Wno-conversion-null is valid for
5025         Objective-C++ as well.
5026         * doc/tm.texi (Named Address Spaces): Likewise.
5027         * doc/plugins.texi (Plugins): Replace TABs with spaces.
5028         * doc/tree-ssa.texi (Tree SSA): Likewise.
5029
5030 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
5031
5032         PR bootstrap/43202
5033         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
5034         by default.  Don't set the default arch for
5035         i[34567]86-*-darwin*|x86_64-*-darwin*.
5036
5037 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
5038
5039         PR bootstrap/43202
5040         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
5041         default.  Set the default 32bit/64bit archs with $with_arch
5042         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
5043
5044 2010-02-27  Richard Guenther  <rguenther@suse.de>
5045
5046         PR tree-optimization/43186
5047         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
5048         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
5049         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
5050         unroller iterations.
5051
5052 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
5053
5054         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
5055         required and i[34567]86-*-* targets don't support 64bit ISA.
5056
5057 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
5058
5059         PR ada/43096
5060         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
5061         the same alias set.
5062
5063 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
5064
5065         * config.gcc: Set the default arch at least to Prescott for
5066         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
5067         if SSE math is enabled.
5068
5069 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5070
5071         * diagnostic.c (diagnostic_initialize): Update.
5072         (diagnostic_report_diagnostic): Test inhibit_notes_p for
5073         informative notes.
5074         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
5075         (diagnostic_inhibit_notes): New.
5076         * toplev.c (process_options): inhibit notes with -fcompare-debug.
5077
5078 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5079
5080         PR c/20631
5081         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
5082         * doc/standards.texi: Likewise.
5083         * doc/extend.texi: Likewise.
5084         * doc/trouble.texi: Likewise.
5085         * doc/cppopts.texi: Likewise.
5086         * doc/install.texi: Likewise.
5087         * c.opt (std=c90,std=gnu90): New options.
5088         * c-opts.c (c_common_handle_option): Handle them.
5089
5090 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5091
5092         PR c/24577
5093         * c-decl.c (undeclared_variable): Use an informative note.
5094
5095 2010-02-26  Richard Guenther  <rguenther@suse.de>
5096
5097         PR tree-optimization/43186
5098         * gimple.h (gimple_fold): Remove.
5099         * gimple.c (gimple_fold): Remove.  Inline into single user ...
5100         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
5101         Try harder for conditions.
5102
5103 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
5104
5105         PR debug/43190
5106         * function.c (used_types_insert): Don't skip through named pointer
5107         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
5108         and it is different from the main variant's type.
5109
5110 2010-02-26  Nick Clifton  <nickc@redhat.com>
5111
5112         * config/rx/rx.md (sminsi3): Remove bogus alternative.
5113
5114 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
5115
5116         * config.gcc: Support --with-fpmath=sse for x86.
5117
5118         * config/i386/ssemath.h: New.
5119
5120         * doc/install.texi (--with-fpmath=sse): Documented.
5121
5122 2010-02-26  Richard Guenther  <rguenther@suse.de>
5123
5124         PR tree-optimization/43188
5125         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
5126         vector types of over-aligned element type.
5127
5128 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
5129
5130         PR target/43175
5131         * config/i386/i386.c (expand_vec_perm_blend): Use correct
5132         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
5133
5134 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5135
5136         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
5137
5138 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
5139
5140         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
5141         * var-tracking.c: Include diagnostic.h.
5142         (debug_dv): New function.
5143         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
5144
5145         PR debug/43160
5146         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
5147         (add_value_chain, add_value_chains, remove_value_chain,
5148         remove_value_chains): Handle DEBUG_EXPRs.
5149         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
5150
5151         PR debug/43161
5152         * regcprop.c (struct queued_debug_insn_change): New type.
5153         (struct value_data_entry): Add debug_insn_changes field.
5154         (struct value_data): Add n_debug_insn_changes field.
5155         (debug_insn_changes_pool): New variable.
5156         (free_debug_insn_changes, apply_debug_insn_changes,
5157         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
5158         (kill_value_one_regno): Call free_debug_insn_changes if needed.
5159         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
5160         fields.
5161         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
5162         changes for them.
5163         (copyprop_hardreg_forward_1): Don't call apply_change_group for
5164         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
5165         changes, call cprop_find_used_regs via note_stores.
5166         (copyprop_hardreg_forward): When copying vd from predecessor
5167         which has any queued DEBUG_INSN changes, make sure the pointers are
5168         cleared.  At the end call df_analyze and then if there are any
5169         DEBUG_INSN changes queued at the end of some basic block for still
5170         live registers, apply them.
5171         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
5172
5173 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
5174
5175         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
5176         (arm*-*-*): Ditto.
5177
5178 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
5179
5180         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
5181         targets.  Set the default with_cpu/with_arch from arch/cpu.
5182         Allow x86-64 and native for with_cpu/with_arch.
5183
5184 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
5185
5186         * ebitmap.c: Change calls to verify_popcount with calls to
5187         sbitmap_verify_popcount.
5188         (ebitmap_clear_bit): Fixed map->cacheindex test and
5189         map>cache update when bit clearing results in an empty
5190         element.
5191
5192 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
5193
5194         PR target/43154
5195         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
5196         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
5197         and support both V2DF and V2DI modes.
5198         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
5199         support both V2DF and V2DI modes.
5200         (general): Delete trailing whitespace from a few patterns.
5201
5202         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5203         V2DF/V2DI interleave high/low builtins.
5204
5205         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
5206         new VSX builtins.
5207
5208         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
5209         interleave high/low functions.
5210
5211 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
5212
5213         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
5214         #pragma extern_prefix.
5215
5216 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
5217
5218         PR debug/43166
5219         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
5220         BLKmode, assert op0 is a MEM and just adjust its mode.
5221
5222         PR debug/43165
5223         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
5224         if bitpos isn't multiple of mode's bitsize.
5225
5226 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5227
5228         * c.opt (-ftemplate-depth=): New.
5229         (-ftemplate-depth-): Deprecate.
5230         * optc-gen.awk: Handle -ftemplate-depth=.
5231         * opth-gen.awk: Likewise.
5232         * c-opts.c (c_common_handle_option): Likewise.
5233         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
5234
5235 2010-02-24  Jason Merrill  <jason@redhat.com>
5236
5237         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
5238
5239 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5240
5241         * cfg.c (alloc_aux_for_block): Remove inline.
5242         (alloc_aux_for_edge): Likewise.
5243
5244 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5245
5246         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
5247
5248 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5249
5250         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
5251         * config/i386/sol2-gas.h: New file.
5252         * config.gcc (i[34567]86-*-solaris2*): Use it.
5253
5254 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5255
5256         PR c/43128
5257         * c-typeck.c (ep_convert_and_check): New.
5258         (build_conditional_expr): Use it.
5259         (build_binary_op): Likewise.
5260
5261 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
5262
5263         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
5264
5265         PR debug/43150
5266         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
5267         bounds even for -O+.
5268         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
5269         expr needs to have DECL_NAME set.
5270
5271 2010-02-24  Nick Clifton  <nickc@redhat.com>
5272
5273         * config/mep/mep.c: Include gimple.h.
5274         (mep_function_uses_sp): Delete unused function.
5275         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
5276         parameters.  Use unsigned integers to count args.  Return a
5277         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
5278
5279 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
5280
5281         PR target/43107
5282         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
5283         greater or equal to nelt instead of 2 * nelt.
5284         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
5285         with nelt - 1.
5286
5287 2010-02-23  Jason Merrill  <jason@redhat.com>
5288
5289         PR debug/42800
5290         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
5291         in cfun->local_decls even if they have register types.
5292
5293         PR c++/42837
5294         * stor-layout.c (place_field): Don't warn about unnecessary
5295         DECL_PACKED if the type is packed.
5296
5297 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
5298
5299         PR target/43139
5300         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
5301         GOTOFF relocs, even when the base reg isn't pic pointer.
5302
5303 2010-02-23  Michael Matz  <matz@suse.de>
5304
5305         PR debug/43077
5306         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
5307         (expand_gimple_basic_block): Generate and use debug temps if there
5308         are debug uses left after the last real use of TERed ssa names.
5309         Unlink debug immediate uses when they are expanded.
5310
5311 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5312
5313         PR 43123
5314         * config/i386/i386.c (override_options): Reorganise to provide
5315         better error messages.
5316
5317 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
5318
5319         PR middle-end/43083
5320         * graphite-scop-detection.c (create_single_exit_edge): Move
5321         the call to find_single_exit_edge to....
5322         (create_sese_edges): ...here.  Don't handle multiple edges
5323         exiting the function.
5324         (build_graphite_scops): Don't handle multiple edges
5325         exiting the function.
5326
5327 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
5328
5329         PR middle-end/43097
5330         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
5331         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
5332
5333 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
5334
5335         PR middle-end/43026
5336         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
5337
5338 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5339
5340         PR c++/43126
5341         * c-typeck.c (convert_arguments): Print declaration location.
5342         * c-common.c (validate_nargs): Rename as
5343         builtin_function_validate_nargs.
5344         (check_builtin_function_arguments): Update.
5345
5346 2010-02-22  Richard Guenther  <rguenther@suse.de>
5347
5348         PR lto/43045
5349         * tree-inline.c (declare_return_variable): Use the type of
5350         the call stmt lhs if available.
5351
5352 2010-02-22  Duncan Sands  <baldrick@free.fr>
5353
5354         * passes.c (register_pass): Always consider all pass lists when
5355         ref_pass_instance_number is zero.
5356
5357 2010-02-22  Richard Guenther  <rguenther@suse.de>
5358
5359         PR tree-optimization/42749
5360         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
5361         parameter.  Do arithmetic in the original type.
5362         (update_accumulator_with_ops): Likewise.
5363         (adjust_accumulator_values): Adjust.
5364
5365 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5366
5367         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
5368         (QI to BLKmode splitter): New splitter.
5369
5370 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
5371
5372         * config/i386/i386.c (initial_ix86_tune_features): Turn on
5373         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
5374
5375 2010-02-22  Richard Guenther  <rguenther@suse.de>
5376
5377         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
5378
5379 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
5380
5381         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
5382         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
5383         ($(T)crti.o, $(T)crtn.o): Remove rules.
5384
5385 2010-02-21  Tobias Burnus  <burnus@net-b.de>
5386
5387         PR fortran/35259
5388         * doc/invoke.texi (-fassociative-math): Document that this
5389         option is automatically enabled for Fortran.
5390
5391 2010-02-20  David S. Miller  <davem@davemloft.net>
5392
5393         * configure.ac: Test if linker and assembler properly support
5394         GOTDATA_OP relocations.
5395         * configure: Rebuild.
5396         * config.in: Likewise.
5397         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
5398         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
5399         (movsi_high_pic): Likewise.
5400         (movdi_lo_sum_pic): Likewise.
5401         (movdi_high_pic): Likewise.
5402         (movsi_pic_gotdata_op): New pattern.
5403         (movdi_pic_gotdata_op): Likewise.
5404         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
5405         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
5406
5407 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
5408
5409         PR target/43067
5410         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
5411         attribute to ssemul.
5412         (xop_mulv2div2di3_high): Ditto.
5413
5414 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5415
5416         PR c++/35669
5417         * c.opt (Wconversion-null): New option.
5418         * doc/invoke.texi (Wconversion-null): Document.
5419
5420 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5421
5422         * common.opt (Wlarger-than-): Add Undocumented.
5423
5424 2010-02-19  Mike Stump  <mikestump@comcast.net>
5425
5426         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
5427
5428 2010-02-19  Jason Merrill  <jason@redhat.com>
5429
5430         PR target/40332
5431         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
5432         * configure: Likewise.
5433
5434 2010-02-20  Alan Modra  <amodra@gmail.com>
5435
5436         PR middle-end/42344
5437         * cgraph.h (cgraph_make_decl_local): Declare.
5438         * cgraph.c (cgraph_make_decl_local): New function.
5439         (cgraph_make_node_local): Use it.
5440         * cgraphunit.c (cgraph_function_versioning): Likewise.
5441         * ipa.c (function_and_variable_visibility): Likewise.
5442
5443 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
5444
5445         PR bootstrap/43121
5446         * except.c (sjlj_emit_function_enter): Don't call
5447         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
5448         directly.
5449         * rtl.h (add_reg_br_prob_note): Remove prototype.
5450
5451 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5452
5453         PR 41779
5454         * c-common.c (conversion_warning): Remove widening conversions
5455         before checking the conversion of integers to reals.
5456
5457 2010-02-19  Mike Stump  <mikestump@comcast.net>
5458
5459         PR middle-end/43125
5460         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
5461
5462         PR objc/43061
5463         * cgraphunit.c (process_function_and_variable_attributes): Check
5464         DECL_PRESERVE_P instead of looking up attribute "used".
5465         * ipa-pure-const.c (check_decl): Likewise.
5466         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
5467         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
5468         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
5469         instead of attribute "used".
5470         * config/sol2-c.c (solaris_pragma_init): Likewise.
5471         (solaris_pragma_fini): Likewise.
5472
5473 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
5474
5475         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
5476         Use XCNEW instead of xcalloc.
5477         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
5478         XNEW instead of xmalloc.
5479         (get_fields): Use XNEWVEC instead of xmalloc.
5480
5481         PR debug/43084
5482         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
5483         populate vars array.
5484         (create_new_general_access): For debug stmts just reset value.
5485         (get_stmt_accesses): For accesses within debug stmts just record them
5486         using add_access_to_acc_sites instead of preventing the peeling or
5487         counting them as accesses.
5488
5489         PR middle-end/42233
5490         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
5491
5492 2010-02-19  Richard Guenther  <rguenther@suse.de>
5493
5494         PR tree-optimization/42916
5495         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
5496         instructions.
5497
5498 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
5499
5500         * configure.ac: Replace all uses of changequote in macro arguments
5501         with proper quoting.
5502
5503 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
5504
5505         PR middle-end/42233
5506         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
5507
5508 2010-02-19  Richard Guenther  <rguenther@suse.de>
5509
5510         PR tree-optimization/42944
5511         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
5512         test for aliasing with errno.
5513
5514 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
5515
5516         PR middle-end/42233
5517         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
5518         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
5519         * dojump.c: Include output.h.
5520         (inv): New inline function.
5521         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
5522         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
5523         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
5524         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
5525         argument, pass it down to other calls.
5526         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
5527         add REG_BR_PROB note to the conditional jump.
5528         * cfgexpand.c (add_reg_br_prob_note): Removed.
5529         (expand_gimple_cond): Don't call it, add the probability
5530         as last argument to jumpif_1/jumpifnot_1.
5531         * Makefile.in (dojump.o): Depend on output.h.
5532         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
5533         callers.
5534         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
5535         * stmt.c (do_jump_if_equal): Likewise.
5536         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
5537         * loop-unswitch.c (compare_and_jump_seq): Likewise.
5538         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
5539         Likewise.
5540         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
5541         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
5542         jumpifnot_1 callers.
5543         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
5544         callers.
5545         (store_expr): Adjust jumpifnot caller.
5546         (store_constructor): Adjust jumpif caller.
5547
5548         PR middle-end/42233
5549         * gimplify.c (gimple_boolify): For __builtin_expect call
5550         gimple_boolify also on its first argument.
5551
5552 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
5553
5554         * configure.ac (gnu-unique-object): Wrap regexps using [] in
5555         changequote block.
5556         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
5557         * configure: Regenerated.
5558
5559 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5560
5561         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
5562         lang_hooks.types_compatible_p instead of comptypes.
5563
5564 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
5565
5566         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
5567         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
5568         if __prefer_thumb__ is defined.
5569
5570 2010-02-18  Martin Jambor  <mjambor@suse.cz>
5571
5572         PR tree-optimization/43066
5573         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
5574         array with zero-sized element type.
5575
5576 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
5577
5578         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
5579         rtx, allocate struct var_loc_node here and return it to the
5580         caller, and only if it is actually needed.
5581         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
5582         move it earlier and return immediately if it returns NULL.
5583
5584 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
5585
5586         * config/sparc/gas.h: New file.  Restore
5587         TARGET_ASM_NAMED_SECTION to its ELF default.
5588         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
5589         check !HAVE_GNU_AS.
5590         * config/sparc/sparc.c (sparc_elf_asm_named_section):
5591         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
5592         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
5593         after sparc/sysv4.h.
5594
5595 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
5596
5597         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
5598
5599 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
5600
5601         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
5602         patterns from predicated pattern.
5603
5604 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
5605
5606         PR target/43103
5607         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
5608         for insn mnemonic suffix.
5609
5610 2010-02-17  Richard Guenther  <rguenther@suse.de>
5611
5612         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
5613         to loop PHI nodes.
5614
5615 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
5616
5617         PR debug/42918
5618         * caller-save.c (save_call_clobbered_regs): If BB ends with
5619         a DEBUG_INSN, move any notes in between last real insn and the last
5620         DEBUG_INSN after the last DEBUG_INSN.
5621
5622 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
5623
5624         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
5625         Fix return type.  Fix argument type.  Explain meaning of return value.
5626
5627 2010-02-16  Richard Guenther  <rguenther@suse.de>
5628
5629         PR tree-optimization/41043
5630         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
5631         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
5632         statements ...
5633         (vrp_visit_phi_node): ... but only for loop PHI nodes.
5634
5635 2010-02-16  Ira Rosen  <irar@il.ibm.com>
5636
5637         PR tree-optimization/43074
5638         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
5639         * tree-vect-loop.c (vect_analyze_loop_operations): Add
5640         vectorizable cycles in hybrid SLP check.
5641         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
5642
5643 2010-02-16  Richard Guenther  <rguenther@suse.de>
5644
5645         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
5646         (true_dependence): If memrefs_conflict_p computes must-alias
5647         trust it.  Move TBAA check after offset-based disambiguation.
5648         (canon_true_dependence): Likewise.
5649
5650 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
5651
5652         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
5653         * doc/invoke.texi: Document it.
5654         * var-tracking.c: Include toplev.h and params.h.
5655         (vt_find_locations): Return bool indicating success.  Compute
5656         hash sizes unconditionally.  Check new parameter, report.
5657         (variable_tracking_main_1): Check vt_find_locations results and
5658         retry.  Renamed from...
5659         (variable_tracking_main): ... this.  New wrapper to preserve
5660         flag_var_tracking_assignments.
5661         * Makefile.in (var-tracking.o): Adjust dependencies.
5662
5663 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
5664             Jakub Jelinek <jakub@redhat.com>
5665
5666         PR target/42854
5667         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
5668         if weak_import attribute is present.
5669         * config/darwin.c (machopic_select_section): Likewise.
5670
5671 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
5672
5673         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
5674         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
5675         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
5676         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
5677
5678         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
5679         types.
5680
5681         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
5682         Fix argument types.
5683
5684         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
5685         Rewrite text to refer to the names.
5686
5687 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
5688
5689         * config/i386/i386-builtin-types.def
5690         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
5691         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
5692         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
5693         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
5694         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
5695         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
5696         IX86_BUILTIN_VPERMIL2PS256.
5697         (MULTI_ARG_4_DF2_DI_I): Defined.
5698         (MULTI_ARG_4_DF2_DI_I1): Defined.
5699         (MULTI_ARG_4_SF2_SI_I): Defined.
5700         (MULTI_ARG_4_SF2_SI_I1): Defined.
5701         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
5702         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
5703         __builtin_ia32_vpermil2ps256.
5704         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
5705         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
5706         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
5707         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
5708         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
5709         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
5710         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
5711         CODE_FOR_xop_vpermil2v8sf3.
5712         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
5713         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
5714         * config/i386/xopintrin.h (_mm_permute2_pd): New.
5715         (_mm256_permute2_pd): New.
5716         (_mm_permute2_ps): New.
5717         (_mm256_permute2_ps): New.
5718
5719 2010-02-15  Nick Clifton  <nickc@redhat.com>
5720
5721         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
5722         boolean parameters.  Use emit_jump_insn when emitting a pop
5723         instruction containing a return insn.
5724         (push): Use 'true' rather than '1' as second parameter to F.
5725         (h8300_expand_prologue): Likewise.
5726         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
5727         (h8300_expand_epilogue): Likewise.
5728
5729 2010-02-15  Richard Guenther  <rguenther@suse.de>
5730
5731         PR middle-end/43068
5732         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
5733         if that is zero.
5734
5735 2010-02-15  Nick Clifton  <nickc@redhat.com>
5736
5737         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
5738         delta.
5739
5740 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
5741
5742         * intl.c (fake_ngettext): New function.
5743         * intl.h (fake_ngettext): Declare.
5744         (ngettext): Define macro.
5745         * collect2.c (notice_translated): New function.
5746         (main): Use notice_translated and ngettext.
5747         * collect2.h (notice_translated): Declare.
5748
5749 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
5750
5751         * reorg.c (delete_computation): Comment fixes.
5752         * caller-save.c (setup_save_areas): Idem.
5753         * sel-sched-dump.c (dump_lv_set): Idem.
5754         * rtl.def: Idem.
5755
5756 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5757
5758         * config/s390/s390.c (s390_sched_init): New function.
5759         (TARGET_SCHED_INIT): Target hook defined.
5760
5761 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
5762             Jack Howarth  <howarth@bromo.med.uc.edu>
5763             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
5764
5765         PR target/42982
5766         Partial revert of unintended change in fix for PR41605.
5767         * config/darwin.h: Fix typo.
5768         * config/darwin9.h: Same.
5769
5770 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
5771
5772         * c-pch.c (pch_init): Clear v.
5773
5774 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
5775
5776         PR middle-end/42930
5777         * graphite-scop-detection.c (graphite_can_represent_scev): Call
5778         graphite_can_represent_init for MULT_EXPR.
5779
5780 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
5781
5782         PR middle-end/42914
5783         PR middle-end/42530
5784         * graphite-sese-to-poly.c (remove_phi): New.
5785         (translate_scalar_reduction_to_array): Call remove_phi.
5786
5787 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
5788
5789         PR middle-end/42771
5790         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
5791         * graphite-clast-to-gimple.h (gloog): Update declaration.
5792         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
5793         * graphite-poly.h (struct poly_bb): Add missing comments.
5794         (struct scop): Add poly_scop_p field.
5795         (POLY_SCOP_P): New.
5796         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
5797         * graphite.c (graphite_transform_loops): Build the polyhedral
5798         representation for each scop before code generation.
5799         * sese.c (rename_variables_in_operand): Removed.
5800         (rename_variables_in_expr): Return the renamed expression.
5801         (rename_sese_parameters): New.
5802         * sese.h (rename_sese_parameters): Declared.
5803
5804 2010-02-11  Richard Guenther  <rguenther@suse.de>
5805
5806         PR tree-optimization/42998
5807         * tree-ssa-pre.c (create_expression_by_pieces): Treat
5808         POINTER_PLUS_EXPR properly.
5809
5810 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
5811             Changpeng Fang  <changpeng.fang@amd.com>
5812
5813         PR middle-end/40886
5814         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
5815         the cost of an IV candidate when the IV is used in a test against zero.
5816
5817         * gcc.dg/tree-ssa/ivopts-3.c: New.
5818
5819 2010-02-11  Richard Guenther  <rguenther@suse.de>
5820
5821         PR lto/41664
5822         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
5823         pointer-vs-decl case by swapping refs.  Handle some cases
5824         of pointer-vs-decl disambiguations more conservatively.
5825         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
5826         to false after expanding.
5827
5828 2010-02-11  Richard Guenther  <rguenther@suse.de>
5829
5830         PR driver/43021
5831         * gcc.c (process_command): Handle LTO file@offset case more
5832         appropriately.
5833
5834 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
5835
5836         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
5837         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
5838         of DEBUG_INSNs.
5839         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
5840
5841         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
5842         if MEM's mode size isn't DWARF2_ADDR_SIZE.
5843         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
5844         Optimize eq/ne comparisons when both arguments are known to be
5845         zero-extended.
5846         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
5847         Don't mask operands unnecessarily if they are known to be already
5848         zero-extended.
5849
5850 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
5851
5852         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
5853         instead of loop.
5854
5855 2010-02-10  Richard Guenther  <rguenther@suse.de>
5856
5857         PR tree-optimization/43017
5858         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
5859         for wrapping signed arithmetic.
5860
5861 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
5862
5863         PR debug/43010
5864         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
5865         if no debug info should be emitted for it.
5866
5867 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
5868
5869         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
5870         note when flag_exceptions is set.
5871
5872 2010-02-10  Duncan Sands  <baldrick@free.fr>
5873
5874         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
5875
5876 2010-02-10  Richard Guenther  <rguenther@suse.de>
5877
5878         PR c/43007
5879         * tree.c (get_unwidened): Handle constants.
5880         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
5881
5882 2010-02-10  Martin Jambor  <mjambor@suse.cz>
5883
5884         PR lto/42985
5885         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
5886         check for variable argument counts independently.
5887
5888 2010-02-10  Christian Bruel  <christian.bruel@st.com>
5889
5890         PR target/42841
5891         * config/sh/sh.c (find_barrier): Increase length for non delayed
5892         conditional branches.
5893
5894 2010-02-10  Christian Bruel  <christian.bruel@st.com>
5895
5896         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
5897
5898 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
5899
5900         * builtins.c (set_builtin_user_assembler_name): Also handle
5901         ffs if int is smaller than word.
5902
5903 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
5904
5905         PR middle-end/42973
5906         * ira-conflicts.c (get_dup): Remove.
5907         (process_reg_shuffles): Add new parameter.  Use it as an
5908         additional guard for copy generation.
5909         (add_insn_allocno_copies): Rewrite.
5910
5911 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
5912
5913         * common.opt (fsched2-use-traces): Preserved for backward
5914         compatibility.
5915         * doc/invoke.texi: Remove the documentation about option
5916         -fsched2-use-traces.
5917         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
5918         flag_sched2_use_traces.
5919         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
5920         the backward compatibility flag section.
5921
5922 2010-02-09  Richard Guenther  <rguenther@suse.de>
5923
5924         PR tree-optimization/43008
5925         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
5926         make HEAP variables initialized from global memory if they
5927         are not known builtin functions.
5928         (find_func_aliases): Adjust.
5929
5930 2010-02-09  Richard Guenther  <rguenther@suse.de>
5931
5932         PR tree-optimization/43000
5933         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
5934         arithmetic manually.
5935
5936 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
5937
5938         PR tree-optimization/42931
5939         * tree-loop-linear.c (try_interchange_loops): Don't call
5940         double_int_mul if estimated_loop_iterations failed.
5941
5942 2010-02-08  Martin Jambor  <mjambor@suse.cz>
5943
5944         PR middle-end/42898
5945         * tree-sra.c (build_accesses_from_assign): Do not mark in
5946         should_scalarize_away_bitmap if stmt has volatile ops.
5947         (sra_modify_assign): Do not process assigns piecemeal if if stmt
5948         has volatile ops.
5949
5950 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
5951
5952         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
5953
5954 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
5955
5956         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
5957         before the pattern.
5958
5959 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
5960
5961         PR middle-end/42946
5962         * df-core.c (df_finish_pass): Change type of saved_flags to int.
5963
5964 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
5965
5966         PR middle-end/42988
5967         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
5968         to unknown_dependence.
5969         (graphite_legal_transform_dr): Handle the unknown_dependence.
5970         (graphite_carried_dependence_level_k): Same.
5971
5972 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
5973
5974         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
5975
5976 2010-02-07  Richard Guenther  <rguenther@suse.de>
5977
5978         PR middle-end/42991
5979         * expr.c (get_inner_reference): Always initialize *pbitsize.
5980
5981 2010-02-07  Richard Guenther  <rguenther@suse.de>
5982
5983         PR middle-end/42956
5984         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
5985         new ARRAY_REFs on variable size element or minimal index arrays.
5986         Complete.
5987         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
5988         gimple_fold_indirect_ref.
5989
5990 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
5991
5992         PR target/42957
5993         * arm.c (arm_override_options): Just return if the user has specified
5994         an invalid fpu name.
5995
5996 2010-02-03  Jason Merrill  <jason@redhat.com>
5997
5998         PR c++/42870
5999         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
6000         i386_pe_maybe_record_exported_symbol.
6001
6002 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
6003
6004         PR target/42924
6005         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6006         (pa_delegitimize_address): New function.
6007
6008 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
6009
6010         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
6011         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
6012
6013 2010-02-05  Richard Guenther  <rguenther@suse.de>
6014
6015         PR lto/42762
6016         * lto-streamer-in.c (get_resolution): Deal with references
6017         to undefined functions.
6018
6019 2010-02-05  Richard Guenther  <rguenther@suse.de>
6020
6021         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
6022         (fold_const_aggregate_ref): Likewise.
6023         (ccp_fold_stmt): Substitute loads.
6024         (maybe_fold_reference): Verify types before substituting.
6025         Unshare properly.
6026         (fold_gimple_assign): Unshare properly.
6027         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
6028
6029 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
6030
6031         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
6032         for rs6000_gen_cell_microcode.
6033
6034 2010-02-04  Richard Guenther  <rguenther@suse.de>
6035
6036         PR rtl-optimization/42952
6037         * dse.c (const_or_frame_p): Remove MEM handling.
6038
6039 2010-02-04  Nick Clifton  <nickc@redhat.com>
6040
6041         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
6042         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
6043         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
6044         (mn10300_asm_output_mi_thunk): New function.
6045         (mn10300_can_output_mu_thunk): New function.
6046         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
6047         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
6048         (FUNCTION_ARG): Delete incorrect comment.
6049
6050 2010-02-03  Jason Merrill  <jason@redhat.com>
6051
6052         PR c++/40138
6053         * fold-const.c (operand_equal_p): Handle erroneous types.
6054
6055 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6056
6057         * config/h8300/h8300.md (can_delay): Fix attibute condition.
6058
6059 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
6060
6061         PR rtl-optimization/42941
6062         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
6063         of xmalloc.
6064
6065 2010-02-03  Jason Merrill  <jason@redhat.com>
6066
6067         PR c++/35652
6068         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
6069
6070 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
6071
6072         PR debug/42896
6073         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
6074         (cselib_reset_table): Renamed from...
6075         (cselib_reset_table_with_next_value): ... this.
6076         (cselib_get_next_uid): Renamed from...
6077         (cselib_get_next_unknown_value): ... this.
6078         * cselib.c (next_uid): Renamed from...
6079         (next_unknown_value): ... this.
6080         (cselib_clear_table): Adjust.
6081         (cselib_reset_table): Adjust.  Renamed from...
6082         (cselib_reset_table_with_next_value): ... this.
6083         (cselib_get_next_uid): Adjust.  Renamed from...
6084         (cselib_get_next_unknown_value): ... this.
6085         (get_value_hash): Use hash.
6086         (cselib_hash_rtx): Likewise.
6087         (new_cselib_val): Adjust.  Set and dump uid.
6088         (cselib_lookup_mem): Pass next_uid as hash.
6089         (cselib_subst_to_values): Likewise.
6090         (cselib_log_lookup): Dump uid.
6091         (cselib_lookup): Pass next_uid as hash.  Adjust.
6092         (cselib_process_insn): Adjust.
6093         (cselib_init): Initialize next_uid.
6094         (cselib_finish): Adjust.
6095         (dump_cselib_table): Likewise.
6096         * dse.c (canon_address): Dump value uid.
6097         * print-rtl.c (print_rtx): Print value uid.
6098         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
6099         (dvuid): New type.
6100         (dv_uid): New function, sort of renamed from...
6101         (dv_htab_hash): ... this, reimplemented in terms of it and...
6102         (dv_uid2hash): ... this.  New.
6103         (variable_htab_eq): Drop excess assertions.
6104         (tie_break_pointers): Removed.
6105         (canon_value_cmp): Compare uids.
6106         (variable_post_merge_New_vals): Print uids.
6107         (vt_add_function_parameters): Adjust.
6108         (vt_initialize): Reset table.  Adjust.
6109
6110 2010-02-03  Richard Guenther  <rguenther@suse.de>
6111
6112         PR tree-optimization/42944
6113         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
6114         (call_may_clobber_ref_p_1): Likewise.  Properly handle
6115         malloc and calloc clobbering errno.
6116
6117 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
6118
6119         * doc/invoke.texi: Fix name of sched1 dump.
6120
6121         * opts.c (decode_options): Set flag_tree_switch_conversion
6122         only conditionally on optimize >= 2.
6123
6124         * gcse.c: Assorted comment fixes in pass description.
6125
6126 2010-02-03  Anthony Green  <green@moxielogic.com>
6127
6128         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
6129         nop padding in order to maintain alignment of storage location of
6130         target function address.
6131         (moxie_trampoline_init): Store target function address at newly
6132         aligned location.
6133         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
6134         to 32.
6135         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
6136
6137 2010-02-03  Richard Guenther  <rguenther@suse.de>
6138
6139         PR middle-end/42927
6140         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
6141
6142 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6143
6144         * config.gcc: Reenable check for obsolete targets.
6145         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
6146         mips-sgi-irix6.[0-4]*.
6147
6148 2010-02-02  Nick Clifton  <nickc@redhat.com>
6149
6150         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
6151         constant size of 4 as being the same as 0.
6152         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
6153         can take values in the range 0..4.
6154
6155 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
6156
6157         PR java/41991
6158         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
6159         as _darwin10_Unwind_FindEnclosingFunction().
6160         * libgcc-libsystem.ver: New.
6161
6162 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
6163
6164         PR target/41399
6165         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
6166         implicitly set registers.
6167
6168 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
6169
6170         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
6171         (arm_override_options): Allow automatic selection of the thread
6172         pointer register if thumb2.
6173         (legitimize_pic_address): Improve code sequences for Thumb2.
6174         (arm_call_tls_get_addr): Likewise.
6175         (legitimize_tls_address): Likewise.
6176         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
6177         (pic_load_addr_32bit): ... this.  New named pattern.
6178         * thumb2.md (pic_load_addr_thumb2): Delete.
6179         (pic_load_dot_plus_four): Delete.
6180         (tls_load_dot_plus_four): New named pattern.
6181
6182 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6183
6184         PR libgomp/29986
6185         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
6186         Document fix for TLS bug.
6187
6188 2010-01-31  Richard Guenther  <rguenther@suse.de>
6189
6190         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
6191         conservatively correct.
6192
6193 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6194
6195         PR target/42850
6196         Revert:
6197         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6198
6199         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
6200
6201 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6202
6203         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
6204
6205 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
6206
6207         * config.gcc: Adjust order of makefile fragments for mingw targets.
6208
6209 2010-01-31  Richard Guenther  <rguenther@suse.de>
6210
6211         PR middle-end/42898
6212         * gimplify.c (gimplify_init_constructor): For volatile LHS
6213         initialize a temporary.
6214
6215 2010-01-31  Matthias Klose  <doko@ubuntu.com>
6216
6217         * configure.ac: Fix __stack_chk_fail check for cross builds configured
6218         --with-headers
6219         * configure: Regenerate.
6220
6221 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
6222
6223         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
6224         the same alias set and their sizes different constantness.
6225         (aliasing_component_refs_p): Revert 2009-10-24 change.
6226
6227 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6228
6229         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
6230         unused.
6231
6232 2010-01-29  Richard Guenther  <rguenther@suse.de>
6233
6234         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
6235         Assert we successfully updated the call.
6236
6237 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
6238
6239         PR rtl-optimization/42889
6240         * df.h (df_set_bb_dirty_nonlr): New prototype.
6241         * df-core.c (df_set_bb_dirty_nonlr): New function.
6242         * df-scan.c (df_insn_rescan): Call it instead of
6243         df_set_bb_dirty for DEBUG_INSNs.
6244
6245 2010-01-29  Richard Guenther  <rguenther@suse.de>
6246
6247         PR middle-end/37448
6248         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
6249         quadratic behavior in most cases.
6250
6251 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
6252
6253         PR target/42891
6254         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
6255         in the call to gen_x86_movsicc_0_m1.
6256
6257 2010-01-28  Richard Guenther  <rguenther@suse.de>
6258
6259         PR tree-optimization/42871
6260         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
6261
6262 2010-01-28  Richard Guenther  <rguenther@suse.de>
6263
6264         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
6265         into call arguments.
6266
6267 2010-01-28  Richard Guenther  <rguenther@suse.de>
6268
6269         PR middle-end/42883
6270         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
6271         the forwarder if the destination is an EH landing pad.
6272
6273 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
6274
6275         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
6276         block list passed to gimple_duplicate_sese_tail.
6277         (parallelize_loops): Avoid parallelization when the function
6278         has_nonlocal_label.
6279         Avoid parallelization when the preheader is IRREDUCIBLE.
6280         Try to optimize when estimated_loop_iterations_int is unresolved.
6281         Add the loop's location to the dump file.
6282         * tree-cfg.c (add_phi_args_after_redirect): Remove.
6283         (gimple_duplicate_sese_tail): Remove the check for the latch.
6284         Redirect nexits to the exit block.
6285         Remove handling of the incoming edges to the latch.
6286         Redirect the backedge from the copied latch to the exit bb.
6287
6288 2010-01-28  Michael Matz  <matz@suse.de>
6289
6290         PR target/42881
6291         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
6292         Wrap force_reg into a sequence, emit it before user.
6293
6294 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
6295
6296         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
6297         (arm_rev): New.
6298         (arm_legacy_rev): Likewise.
6299         (thumb_legacy_rev): Likewise.
6300
6301 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
6302
6303         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
6304         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
6305         on MEM's address failed, try avoid_constant_pool_reference and
6306         recurse if it returned something different.
6307         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
6308         address, try avoid_constant_pool_reference and recurse if it
6309         returned something different.
6310         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
6311         address and avoid_constant_pool_reference returned something
6312         different, don't set have_address.
6313
6314 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
6315
6316         PR debug/42861
6317         * var-tracking.c (val_store): Add modified argument, obey it.
6318         Adjust callers.
6319         (count_uses): Move down logging of main.
6320         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
6321         don't need resolution.
6322         (emit_notes_in_bb): Likewise.
6323
6324 2010-01-27  Richard Guenther  <rguenther@suse.de>
6325
6326         PR middle-end/42878
6327         * tree-inline.c (remap_decl): Delay remapping of SSA name
6328         default definitions until we need them.
6329
6330 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
6331
6332         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
6333         (rs6000_delegitimize_address): New function.
6334
6335         * config/s390/s390.c (s390_delegitimize_address): Call
6336         delegitimize_mem_from_attrs.
6337
6338         PR middle-end/42874
6339         * tree-inline.c (cannot_copy_type_1): Removed.
6340         (copy_forbidden): Don't forbid copying of functions containing
6341         records/unions with variable length fields.
6342
6343 2010-01-27  Christian Bruel  <christian.bruel@st.com>
6344
6345         Revert:
6346         PR target/42841
6347         * config/sh/sh.c (find_barrier): Increase length for non delayed
6348         conditional branches.
6349
6350 2010-01-27  Matthias Klose  <doko@ubuntu.com>
6351
6352         * configure.ac (gnu-unique-object): Fix ldd version check.
6353         * configure: Regenerate.
6354
6355 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6356
6357         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
6358         HAVE_GNU_AS value.
6359         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
6360         Test for HAVE_GNU_AS value.
6361
6362 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6363
6364         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
6365         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
6366         INT64_TYPE): Define.
6367         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
6368         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6369         INT_LEAST64_TYPE): Define.
6370         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
6371         UINT_LEAST64_TYPE): Define.
6372         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
6373         INT_FAST64_TYPE): Define.
6374         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6375         UINT_FAST64_TYPE): Define.
6376         (INTMAX_TYPE, UINTMAX_TYPE): Define.
6377         (INTPTR_TYPE, UINTPTR_TYPE): Define.
6378         (SIG_ATOMIC_TYPE): Define.
6379
6380 2010-01-26  Richard Guenther  <rguenther@suse.de>
6381
6382         * df-scan.c (df_scan_set_bb_info): Remove assert.
6383         (df_insn_rescan_debug_internal): Merge asserts.
6384         (df_install_ref): Likewise.
6385         (df_mark_reg): Use bitmap_set_range.
6386         (df_hard_reg_used_p): Remove assert.
6387         (df_hard_reg_used_count): Likewise.
6388
6389 2010-01-26  Richard Guenther  <rguenther@suse.de>
6390
6391         PR rtl-optimization/42685
6392         * web.c (web_main): Ignore DEBUG_INSNs.
6393
6394 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
6395
6396         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
6397
6398         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
6399         Fix types of fndecl and arglist parameters.
6400
6401 2010-01-26  Richard Guenther  <rguenther@suse.de>
6402
6403         PR middle-end/42806
6404         * tree-eh.c (unsplit_eh): Skip debug insns.
6405
6406 2010-01-26  Richard Guenther  <rguenther@suse.de>
6407
6408         PR tree-optimization/42250
6409         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
6410
6411 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
6412
6413         PR fortran/42866
6414         * omp-low.c (expand_omp_sections): Only use single_pred if
6415         l2_bb is single_pred_p.
6416
6417 2010-01-25  Christian Bruel  <christian.bruel@st.com>
6418
6419         PR target/42841
6420         * config/sh/sh.c (find_barrier): Increase length for non delayed
6421         conditional branches.
6422         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
6423
6424 2010-01-24  David S. Miller  <davem@davemloft.net>
6425
6426         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
6427         define if not using GAS.
6428         * config/sparc/sparc.c (sparc_elf_asm_named_section):
6429         Likewise.  Delete SECTION_MERGE code, which is only applicable
6430         when using GAS.
6431
6432 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
6433
6434         PR c++/42748
6435         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
6436         mangling of va_list in system headers.
6437
6438 2010-01-23  Toon Moene  <toon@moene.org>
6439
6440         * tree-predcom.c (combine_chains): Return NULL, not false.
6441
6442 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
6443
6444         * tree-loop-distribution.c (distribute_loop): Fix declaration and
6445         initialization of variable res to agree with return type.
6446
6447 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
6448
6449         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
6450         * tree-sra.c: Add include of expr.h.
6451
6452 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
6453
6454         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
6455         insert the debug stmt on the single non-EH edge from the stmt.
6456
6457 2010-01-22  Richard Henderson  <rth@redhat.com>
6458
6459         PR tree-opt/42833
6460         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
6461         the RHS until after generate_subtree_copies has insertted its
6462         code before the current statement.
6463
6464 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
6465
6466         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
6467
6468         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
6469
6470 2010-01-21  Martin Jambor  <mjambor@suse.cz>
6471
6472         PR tree-optimization/42585
6473         * tree-sra.c (struct access): New field grp_total_scalarization.
6474         (dump_access): Dump the new field.
6475         (should_scalarize_away_bitmap): New variable.
6476         (cannot_scalarize_away_bitmap): Likewise.
6477         (sra_initialize): Allocate new bitmaps.
6478         (sra_deinitialize): Free new bitmaps.
6479         (create_access_1): New function.
6480         (create_access): Parts moved to create_access_1.
6481         (type_consists_of_records_p): New function.
6482         (completely_scalarize_record): Likewise.
6483         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
6484         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
6485         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
6486         access.
6487         (analyze_all_variable_accesses): Completely scalarize small eligible
6488         records.
6489
6490 2010-01-21  Martin Jambor  <mjambor@suse.cz>
6491
6492         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
6493
6494 2010-01-21  Andrew Haley  <aph@redhat.com>
6495
6496         * gcc.c (process_command): Move lang_specific_driver before
6497         setting cc_libexec_prefix.
6498
6499 2010-01-21  Richard Guenther  <rguenther@suse.de>
6500
6501         PR middle-end/19988
6502         * fold-const.c (negate_expr_p): Pretend only negative
6503         real constants are easily negatable.
6504
6505 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
6506             Jason Merrill  <jason@redhat.com>
6507
6508         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
6509         (TYPE_TRANSPARENT_AGGR): this, for union and record.
6510         * calls.c (initialize argument_information): Handle it.
6511         * c-common.c (handle_transparent_union_attribute): Use new name.
6512         * c-decl.c (finish_struct): Ditto.
6513         * c-typeck.c (type_lists_compatible_p): Ditto.
6514         (convert_for_assignment): Use new name and also handle record.
6515         * function.c (aggregate_value_p): Handle it.
6516         (pass_by_reference): Ditto.
6517         (assign_parm_data_types): Ditto.
6518         * print-tree.c (print_node): Ditto.
6519         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
6520         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
6521         * tree.c (first_field): New fn.
6522
6523 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
6524
6525         PR target/42818
6526         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
6527         even when linking statically, for now.
6528
6529 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
6530
6531         PR debug/42715
6532         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
6533         without a cselib val.
6534         (count_uses): Accept MO_VAL_SET with no val on stores.
6535         (add_stores): Likewise.
6536
6537 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
6538
6539         * var-tracking.c (check_value_val): Add a compile time assertion.
6540         (dv_is_decl_p): Simplify.
6541         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
6542         gcc_assert if ENABLE_CHECKING.
6543
6544 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
6545
6546         PR debug/42782
6547         * var-tracking.c: Include tree-flow.h.
6548         (mem_dies_at_call): New.
6549         (dataflow_set_preserve_mem_locs): Use it.
6550         (dataflow_set_remove_mem_locs): Likewise.
6551         (dump_var): Renamed from dump_variable.  Adjust all callers.
6552         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
6553         * Makefile.in (var-tracking.o): Adjust deps.
6554
6555 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
6556
6557         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
6558
6559 2010-01-20  Richard Guenther  <rguenther@suse.de>
6560
6561         PR tree-optimization/42717
6562         * tree-ssa-dce.c (get_live_post_dom): Remove.
6563         (forward_edge_to_pdom): Take an arbitrary edge to copy
6564         degenerate PHI args from.
6565         (remove_dead_stmt): Use the first post-dominator even if it
6566         does not contain live statements as redirection destination.
6567
6568 2010-01-20  Richard Guenther  <rguenther@suse.de>
6569
6570         * tree-inline.c (estimate_num_insns): Handle EH builtins.
6571
6572 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
6573
6574         * sel-sched.c (create_speculation_check): Remove set but not used
6575         variable twin.
6576         (try_transformation_cache): Remove set but not used variable ds.
6577         (calculate_privileged_insns): Remove set but not used variables
6578         cur_insn and min_spec_insn.
6579         (find_best_expr): Remove set but not used variable avail_n.
6580         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
6581         variable e.
6582         * cgraphunit.c (assemble_thunk): Remove set but not used variable
6583         false_label.
6584         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
6585         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
6586         new_scop_exit_edge.
6587
6588 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
6589
6590         PR bootstrap/42786
6591         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
6592         cpu types.  Add support for *-sse3 cpu types.
6593         (x86_64-*-*): Ditto.
6594
6595 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
6596
6597         PR middle-end/42803
6598         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
6599         argument, call initializer_constant_valid_p_1 instead of
6600         initializer_constant_valid_p, pass CACHE to it, return NULL
6601         immediately if first call returns NULL.
6602         (initializer_constant_valid_p_1): New function.
6603         (initializer_constant_valid_p): Use it.
6604
6605 2010-01-20  Thomas Quinot  <quinot@adacore.com>
6606
6607         * tree.def (PLACEHOLDER_EXPR): Fix comment.
6608
6609 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
6610
6611         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
6612         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
6613         (loc_list_from_tree): Don't handle unsigned division.  Handle
6614         signed modulo using DW_OP_{over,over,div,mul,minus}.
6615         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
6616         modulo instead of signed.
6617
6618 2010-01-20  DJ Delorie  <dj@redhat.com>
6619
6620         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
6621         (Fpa): Pass it
6622         (h8300_emit_stack_adjustment): Propogate it.
6623         (push): Pass it.
6624         (h8300_expand_prologue): Likewise.
6625         (h8300_expand_epilogue): Likewise.
6626
6627 2010-01-19  Michael Matz  <matz@suse.de>
6628
6629         PR tree-optimization/41783
6630         * tree-data-ref.c (toplevel): Include flags.h.
6631         (dump_data_dependence_relation):  Also dump the inputs if the
6632         result will be unknown.
6633         (split_constant_offset_1): Look through some conversions.
6634         * tree-predcom.c (determine_roots_comp): Restart a new chain if
6635         the offset from last element is too large.
6636         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
6637         (reassociate_to_the_same_stmt): Handle vector registers.
6638         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
6639         (e.g. conversions).
6640         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
6641         wide_prolog_niters argument, emit widening instructions.
6642         (vect_do_peeling_for_alignment): Adjust caller, use widened
6643         variant of the iteration cound.
6644         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
6645
6646 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6647
6648         PR target/38697
6649         * config/arm/neon-testgen.m (emit_automatics): New parameter
6650         features. Adjust for Fixed_return_reg feature.
6651         (test_intrinsic): Call emit_automatics with new feature.
6652         * config/arm/neon.ml: Update copyright years.
6653         (features): New Fixed_return_reg feature.
6654         (ops): Update feature for Vget_low.
6655
6656 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
6657
6658         PR tree-optimization/42719
6659         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
6660         stmt uses.
6661
6662         PR debug/42728
6663         * fwprop.c (all_uses_available_at): Return false if def_set dest
6664         is a REG that is used in def_insn.
6665
6666 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
6667
6668         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
6669
6670         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
6671         Add argument names.
6672
6673         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
6674
6675         * target.h (struct gcc_target) <secondary_reload>: Change type
6676         of last argument to secondary_reload_info *.
6677
6678 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
6679
6680         PR target/42774
6681         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
6682         memory references with unaligned offsets.  Remove CQImode handling.
6683         (unaligned_memory_operand): Return 1 for memory references with
6684         unaligned offsets.  Remove CQImode handling.
6685
6686 2010-01-18  Richard Guenther  <rguenther@suse.de>
6687
6688         PR middle-end/39954
6689         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
6690         builtin calls.
6691
6692 2010-01-18  Richard Guenther  <rguenther@suse.de>
6693
6694         PR tree-optimization/42781
6695         * tree-ssa-structalias.c (find_what_var_points_to): Skip
6696         restrict processing only if the original variable was artificial.
6697
6698 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
6699
6700         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
6701         find number of popped argument bytes.
6702
6703         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
6704         Fix the text that describes the return value for invalid insns.
6705
6706         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
6707
6708         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
6709         Clarify what 'cost of the -dependence' is.  Fix quoting.
6710
6711         * toplev.c (default_get_pch_validity): Rename argument to "sz".
6712         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
6713
6714 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
6715
6716         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
6717         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
6718
6719 2010-01-17  Richard Guenther  <rguenther@suse.de>
6720
6721         PR middle-end/42248
6722         * function.c (split_complex_args): Take a VEC to modify.
6723         (assign_parms_augmented_arg_list): Build a VEC instead of
6724         a chain of PARM_DECLs.
6725         (assign_parms_unsplit_complex): Take a VEC of arguments.
6726         Do not fixup unmodified parms.
6727         (assign_parms): Deal with the VEC.
6728         (gimplify_parameters): Likewise.
6729
6730 2010-01-17  Richard Guenther  <rguenther@suse.de>
6731
6732         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
6733         node existence check.
6734         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
6735         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
6736         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
6737         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
6738         (gimple_execute_on_growing_pred): Likewise.
6739
6740 2010-01-17  Richard Guenther  <rguenther@suse.de>
6741
6742         PR tree-optimization/42773
6743         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
6744         (compute_antic_aux): Likewise.
6745         (compute_partial_antic_aux): Likewise.
6746
6747 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
6748
6749         PR debug/42767
6750         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
6751         and US_TRUNCATE.
6752
6753 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
6754
6755         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
6756         appearance.
6757
6758         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
6759         Fix markup for strict argument.
6760
6761         (TARGET_SCHED_REORDER2): Fix argument types.
6762
6763         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
6764         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
6765
6766         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
6767         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
6768
6769         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
6770         Add argument name.
6771
6772         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
6773         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
6774         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
6775         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
6776         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
6777
6778         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
6779
6780         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
6781
6782         (TARGET_ASM_RELOC_RW_MASK): Add return type.
6783         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
6784
6785         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
6786
6787         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
6788         Use prototype.
6789
6790         (TARGET_ASM_NAMED_SECTION): Fix argument list.
6791
6792         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
6793         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
6794
6795         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
6796
6797         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
6798
6799         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
6800         referring to it.  Fix language.
6801
6802         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
6803
6804         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
6805
6806         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
6807
6808         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
6809
6810         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
6811         '@var{stream}.  Remove stray 'and'.
6812
6813         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
6814
6815         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
6816
6817         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
6818
6819         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
6820         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
6821
6822         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
6823         Fix description of return value.
6824         Rename argument "sz" to "len."
6825
6826         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
6827         Clarify meaning of 'true' return value.
6828
6829         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
6830
6831         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
6832         rep_mode versus mode_rep.
6833
6834         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
6835
6836         (TARGET_BUILTIN_DECL): Fix name.
6837
6838         (TARGET_COMMUTATIVE_P): Fix type of first argument.
6839
6840         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
6841
6842         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
6843
6844         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
6845
6846         (TARGET_RELAXED_ORDERING): Use @deftypevr.
6847
6848         (TARGET_GET_DRAP_RTX): Note that this is a hook.
6849         Clarify language.
6850
6851         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
6852         Rename argument tm_fn to md_fn.
6853
6854         (TARGET_OPTION_PRINT): Fix argument list.
6855
6856 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
6857
6858         PR target/42664
6859         * config/i386/i386.c (ix86_fixup_binary_operands):
6860         Revert FMA4 fixup of operands.
6861
6862 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6863
6864         PR gcc/42525
6865         * Makefile.in (write_entries_to_file, install-plugin):
6866         Use \012 instead of \n with tr.
6867
6868 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
6869
6870         * configure.ac (HAVE_AS_REF): New C macro.
6871         * configure: Regenerate.
6872         * config.in: Likewise.
6873         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
6874         if HAVE_AS_REF.
6875         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
6876         if HAVE_AS_REF.
6877
6878 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
6879
6880         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
6881
6882         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
6883
6884         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
6885
6886         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
6887
6888         (TARGET_IN_SMALL_DATA_P): Fix argument type.
6889
6890         (TARGET_BINDS_LOCAL_P): Fix argument type.
6891
6892         (TARGET_ASM_FILE_END): Use prototype.
6893
6894         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
6895
6896         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
6897
6898         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
6899
6900         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
6901
6902         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
6903         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
6904
6905         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
6906         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
6907
6908         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
6909         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
6910         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
6911         (TARGET_ADDR_SPACE_CONVERT): Likewise.
6912
6913         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
6914
6915         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
6916
6917         (TARGET_INIT_BUILTINS): Use prototype.
6918
6919         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
6920         Put 'const char *' in braces.  Fix parameter types.
6921         (TARGET_INVALID_CONVERSION): Fix parameter types.
6922         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
6923         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
6924
6925         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
6926         Fix argument type.
6927
6928         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
6929
6930         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
6931
6932 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
6933
6934         * doc/tm.texi (TARGET_HELP): Fix return type.
6935
6936         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
6937         in braces.  Fix argument types.
6938
6939         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
6940
6941         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
6942
6943         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
6944
6945         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
6946         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
6947
6948         (TARGET_MANGLE_TYPE): Fix argument types.
6949
6950         (TARGET_IRA_COVER_CLASSES): Use prototype.
6951
6952         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
6953
6954         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
6955
6956         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
6957
6958         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
6959
6960         (TARGET_CALLEE_COPIES): Fix argument types.
6961
6962         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
6963
6964         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
6965
6966         (TARGET_FUNCTION_VALUE): Fix argument types.
6967
6968         (TARGET_RETURN_IN_MSB): Fix argument type.
6969
6970         (TARGET_RETURN_IN_MEMORY): Fix argument types.
6971
6972         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
6973
6974         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
6975
6976         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
6977         agree with return type.
6978
6979         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
6980
6981 2010-01-15  Jing Yu  <jingyu@google.com>
6982
6983         PR rtl-optimization/42691
6984         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
6985         a pseudo to a constant and are merged, and adjust comments.
6986
6987 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
6988
6989         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
6990
6991 2010-01-15  Richard Guenther  <rguenther@suse.de>
6992
6993         PR middle-end/42739
6994         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
6995         labels of computed or non-local gotos to the destination.
6996         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
6997         landing pad label is the first label.
6998
6999 2010-01-15  Richard Guenther  <rguenther@suse.de>
7000
7001         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
7002
7003 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7004
7005         PR target/42747
7006         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
7007         to allow generation of the xssqrtdp instruction on power7.
7008         (sqrtdf2_fpr): Ditto.
7009
7010 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
7011
7012         PR middle-end/42674
7013         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
7014         functions with noreturn attribute.
7015
7016         PR c++/42608
7017         * varasm.c (declare_weak): Add weak attribute to decl if it
7018         doesn't have one already.
7019         (assemble_external): Only add decls to weak_decls if they also
7020         have weak attribute.
7021
7022 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
7023
7024         * var-tracking.c (var_reg_delete): Don't delete the association
7025         between REGs and values or one-part variables if the register
7026         isn't clobbered.
7027
7028 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
7029
7030         PR debug/42657
7031         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
7032         because its first operand is a non-localized variable.
7033
7034 2010-01-14  Martin Jambor  <mjambor@suse.cz>
7035
7036         PR tree-optimization/42706
7037         * tree-sra.c (encountered_recursive_call): New variable.
7038         (encountered_unchangable_recursive_call): Likewise.
7039         (sra_initialize): Initialize both new variables.
7040         (callsite_has_enough_arguments_p): New function.
7041         (scan_function): Call decl and flags check only for IPA-SRA, check
7042         whether there is a recursive call and whether it has enough arguments.
7043         (all_callers_have_enough_arguments_p): New function.
7044         (convert_callers): Look for recursive calls only when
7045         encountered_recursive_call is set.
7046         (ipa_early_sra): Bail out either if
7047         !all_callers_have_enough_arguments_p or
7048         encountered_unchangable_recursive_call.
7049
7050 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
7051
7052         * sel-sched.c: Add 2010 to copyright years.
7053         * sel-sched-ir.c: Likewise.
7054         * sel-sched-ir.h: Likewise.
7055
7056 2010-01-14  Martin Jambor  <mjambor@suse.cz>
7057
7058         PR tree-optimization/42714
7059         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
7060         constructors specially.
7061
7062 2010-01-14  Andi Kleen  <ak@linux.intel.com>
7063
7064         * config/i386/drivers-i386.c (detect_caches_intel):
7065         Add l2sizekb parameter and fill in.
7066         (host_detect_local_cpu): Add l2sizekb, fill in.
7067         Add Atom small cache heuristic.
7068
7069 2010-01-14  Andi Kleen  <ak@linux.intel.com>
7070
7071         * config/i386/drivers-i386.c (detect_caches_cpuid4):
7072         Add level3 parameter and fill in.
7073         (detect_caches_intel): Handle level3 cache.
7074
7075 2010-01-14  Andi Kleen  <ak@linux.intel.com>
7076
7077         * config/i386/drivers-i386.c (host_detect_local_cpu):
7078         Fix core duo detection.
7079
7080 2010-01-14  Andi Kleen  <ak@linux.intel.com>
7081
7082         * config/i386/drivers-i386.c (host_detect_local_cpu):
7083         Fix Atom detection.
7084
7085 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
7086
7087         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
7088         (rs6000_variable_issue_1): this.  Use...
7089         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
7090
7091 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
7092
7093         * sel-sched-ir.c (sel_restore_other_notes): Rename to
7094         sel_restore_notes.  Update all callers.  Call reemit_notes
7095         for all insns.
7096
7097 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
7098
7099         PR rtl-optimization/42246
7100         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
7101         loops.
7102
7103 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
7104
7105         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
7106         all successors is the same as number of successors in current region.
7107
7108 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
7109
7110         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
7111         to rename is not separable.  Otherwise check that its LHS is not NULL.
7112
7113 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
7114
7115         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
7116
7117 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
7118
7119         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
7120         available registers when failed to discover LHS register class.
7121         Fix indentation.  Update comment.
7122
7123 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
7124             Alexander Monakov  <amonakov@ispras.ru>
7125
7126         PR rtl-optimization/42389
7127         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
7128         to can_issue_more.
7129         (advance_state_on_fence): Likewise.
7130         (sel_target_adjust_priority): Print debug output only when
7131         sched_verbose >= 4, not 2.
7132         (get_expr_cost): Do not issue all unique insns on the next cycle.
7133         (fill_insns): Initialize can_issue_more from the value saved
7134         with the fence.
7135         * sel-sched-ir.c (flist_add): New parameter issue_more.
7136         Init FENCE_ISSUE_MORE with it.
7137         (merge_fences): Likewise.
7138         (init_fences): Update call to flist_add.
7139         (add_to_fences, add_clean_fence_to_fences)
7140         (add_dirty_fence_to_fences): Likewise.
7141         (move_fence_to_fences): Update call to merge_fences.
7142         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
7143         sched groups.
7144         * sel-sched-ir.h (struct _fence): New field issue_more.
7145         (FENCE_ISSUE_MORE): New accessor macro.
7146
7147 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
7148
7149         PR rtl-optimization/42388
7150         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
7151         that have no predecessors nor successors.  Do not call move_bb_info
7152         for empty blocks outside of current region.
7153
7154 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
7155
7156         PR rtl-optimization/42294
7157         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
7158         * sel-sched.c (move_exprs_to_boundary): Transitively add all
7159         originators' originators.
7160
7161 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
7162
7163         PR rtl-optimization/39453
7164         PR rtl-optimization/42246
7165         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
7166         for pipelining_p.
7167         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
7168
7169 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
7170             Alexander Monakov  <amonakov@ispras.ru>
7171
7172         PR middle-end/42245
7173         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
7174         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
7175         argument.  Update all callers.
7176         (tidy_control_flow): ... and here.  Recompute topological order
7177         of basic blocks in region if necessary.
7178         (sel_redirect_edge_and_branch): Change return type.  Return true
7179         if topological order might have been invalidated.
7180         (purge_empty_blocks): Export and move from...
7181         * sel-sched.c (purge_empty_blocks): ... here.
7182         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
7183         (maybe_tidy_empty_bb): Delete prototype.
7184         (purge_empty_blocks): Declare.
7185
7186 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
7187
7188         PR rtl-optimization/42249
7189         * sel-sched.c (try_replace_dest_reg): When chosen register
7190         and original register is the same, do not bail out early, but
7191         still check all original insns for validity of replacing destination
7192         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
7193         in this case.
7194
7195 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
7196
7197         PR c/42721
7198         Port from no-undefined-overflow branch:
7199         2009-03-09  Richard Guenther  <rguenther@suse.de>
7200
7201         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
7202
7203 2010-01-14  Richard Guenther  <rguenther@suse.de>
7204
7205         PR lto/42665
7206         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
7207
7208 2010-01-14  Ira Rosen  <irar@il.ibm.com>
7209
7210         PR tree-optimization/42709
7211         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
7212         as scalar type in creation of constant vector operand.
7213
7214 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7215
7216         PR testsuite/42414
7217         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
7218         (check-parallel-%): Match `testsuite' directory component only
7219         at the end.
7220
7221 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
7222
7223         PR translation/39521
7224         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
7225         strings with _().
7226
7227 2010-01-13  Richard Guenther  <rguenther@suse.de>
7228
7229         PR tree-optimization/42730
7230         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
7231         offset zero.
7232
7233 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
7234
7235         PR target/pr42542
7236         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
7237         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
7238         them signed.
7239
7240 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
7241
7242         * config/bfin/libgcc-bfin.ver: Regenerate based on current
7243         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
7244         ___umulsi3_highpart.
7245
7246         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
7247         rather than schedule_insns if the pass is enabled.
7248
7249 2010-01-13  Martin Jambor  <mjambor@suse.cz>
7250
7251         PR tree-optimization/42704
7252         * tree-sra.c (sra_modify_assign): Do not delete assignments to
7253         SSA_NAMEs.
7254
7255 2010-01-13  Martin Jambor  <mjambor@suse.cz>
7256
7257         PR tree-optimization/42703
7258         * tree-sra.c (analyze_access_subtree): Check that we can build a
7259         reference to the original data within the aggregate.
7260
7261 2010-01-13  Richard Guenther  <rguenther@suse.de>
7262
7263         PR tree-optimization/42705
7264         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
7265
7266 2010-01-13  Richard Guenther  <rguenther@suse.de>
7267
7268         PR middle-end/42716
7269         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
7270
7271 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
7272
7273         PR debug/41371
7274         * var-tracking.c (values_to_unmark): New variable.
7275         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
7276         values_to_unmark vector.  Moved body to...
7277         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
7278         instead queue it into values_to_unmark vector.
7279         (vt_find_locations): Free values_to_unmark vector.
7280
7281 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
7282
7283         * config/s390/s390.c (override_options): Set
7284         default of max-pending-list-length to 256
7285
7286 2010-01-13  Richard Guenther  <rguenther@suse.de>
7287
7288         PR lto/42678
7289         * tree-pass.h (PROP_gimple_lcx): New.
7290         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
7291         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
7292         before the final cleanup_eh.
7293         (dump_properties): Dump PROP_gimple_lcx.
7294         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
7295         (tree_lower_complex_O0): Remove.
7296         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
7297         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
7298         tree_lower_complex, schedule TODO_update_ssa.
7299         * lto-streamer-out.c (output_function): Stream the functions
7300         properties.
7301         * lto-streamer-in.c (input_function): Likewise.
7302         (lto_read_body): Do not override them here.
7303
7304 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
7305
7306         PR c/42708
7307         * c-typeck.c (build_c_cast): Fold value cast to union type before
7308         wrapping it in a CONSTRUCTOR.
7309
7310 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
7311
7312         PR rtl-optimization/42699
7313         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
7314         involved.
7315
7316 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7317
7318         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
7319         SUBTARGET_WARN_UNUSED_SPEC): Move ...
7320         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
7321         SUBTARGET_WARN_UNUSED_SPEC): ... here
7322         * config/mips/iris5.h (LIBGCC_SPEC): Define.
7323
7324 2010-01-12  Julian Brown  <julian@codesourcery.com>
7325
7326         * config/arm/neon-schedgen.ml (Utils): Don't try to
7327         open missing module.
7328         (find_with_result): New.
7329
7330 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
7331
7332         PR debug/42662
7333         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
7334         sharing when canonicalizing ({lt,ge}u (plus a b) b).
7335
7336         PR tree-optimization/42645
7337         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
7338         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
7339         decl_map, set processing_debug_stmt to -1 and return name without
7340         any remapping.
7341
7342 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
7343
7344         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
7345         binutils version, and reword target configuration description.
7346
7347 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
7348
7349         * config/avr/avr.h (LINKER_NAME): Remove.
7350
7351 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
7352
7353         PR target/42416
7354         * config/rs6000/rs6000.c (rs6000_override_options): On targets
7355         that support VSX, warn for -mno-altivec if vsx is not disabled,
7356         and disable vsx.
7357
7358 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
7359             Shujing Zhao  <pearly.zhao@oracle.com>
7360
7361         PR translation/42469
7362         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
7363         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
7364         character between option name and help text.
7365         * c.opt (imultilib): Likewise.
7366
7367 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
7368
7369         * lto-streamer-out.c (output_unreferenced_globals): Output static
7370         variables.
7371
7372 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
7373
7374         PR rtl-optimization/42621
7375         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
7376         optimizing for size.
7377         (duplicate_computed_gotos): Remove now-redundant check.
7378
7379 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
7380
7381         PR target/37454
7382         * configure.ac: Save and restore LDFLAGS and LIBS
7383         * configure: Regenerate.
7384
7385 2010-01-10  Richard Guenther  <rguenther@suse.de>
7386
7387         PR middle-end/42667
7388         * builtins.c (fold_builtin_strlen): Add type argument and
7389         convert the resulting length to it.
7390         (fold_builtin_1): Adjust.
7391
7392 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
7393
7394         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
7395         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
7396         1 insn.
7397         (num_insns_constant_wide): Adjust for that change.
7398
7399 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7400
7401         PR debug/42631
7402         * web.c (union_defs): Add used argument, to combine uses of
7403         uninitialized regs.
7404         (entry_register): Adjust type and tests of used argument.
7405         (web_main): Widen used for new use.  Pass it to union_defs.
7406         * df.h (union_defs): Adjust prototype.
7407
7408 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7409
7410         PR debug/42630
7411         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
7412         uses in new incoming argument.  Free body.
7413         (reset_debug_uses_in_loop): New.
7414         (analyze_insn_to_expand_var): Call the latter if the former found
7415         anything.  Fix whitespace.  Reject invalid dest overlaps before
7416         going through all insns in the loop.
7417
7418 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7419
7420         PR debug/42629
7421         * haifa-sched.c (dying_use_p): Debug insns don't count.
7422
7423 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7424
7425         PR middle-end/42363
7426         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
7427         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
7428         (verify_gimple_call): Reject LHS in noreturn calls.
7429
7430 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7431
7432         PR debug/42604
7433         PR debug/42395
7434         * tree-vect-loop-manip.c (adjust_info): New type.
7435         (adjust_vec): New pointer to vector.
7436         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
7437         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
7438         (slpeel_update_phis_for_duplicate_loop): Use them.
7439         (slpeel_update_phi_nodes_for_guard1): Likewise.
7440         (slpeel_update_phi_nodes_for_guard2): Likewise.
7441         (slpeel_tree_peel_loop_to_edge): Likewise.
7442         (vect_update_ivs_after_vectorizer): Likewise.
7443
7444 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7445
7446         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
7447         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
7448
7449 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
7450
7451         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
7452         bogus uninitialized warning.
7453
7454 2010-01-09  Richard Guenther  <rguenther@suse.de>
7455
7456         PR middle-end/42512
7457         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
7458         the evolution is compatible with the initial condition.
7459
7460 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
7461
7462         * gcc.c (process_command): Update copyright notice dates.
7463         * gcov.c (print_version): Likewise.
7464         * gcov-dump.c (print_version): Likewise.
7465         * mips-tfile.c (main): Likewise.
7466         * mips-tdump.c (main): Likewise.
7467
7468 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
7469
7470         PR target/41885
7471         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
7472         (rotlhi3): Delete.
7473         (rotlhi3_8): Delete.
7474         (rotlsi3): Delete.
7475         (rotlsi3_8): Delete.
7476         (rotlsi3_16): Delete.
7477         (rotlsi3_24): Delete.
7478         (rotl<mode>3): New.
7479         (*rotw<mode>3): New.
7480         (*rotb<mode>3): New.
7481         * config/avr/avr.c (avr_rotate_bytes): New function.
7482         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
7483
7484 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
7485
7486         PR target/37454
7487         * configure.ac: Modify -rdynamic check.
7488         * configure: Regenerate.
7489
7490 2010-01-08  DJ Delorie  <dj@redhat.com>
7491
7492         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
7493         register popping order.
7494
7495 2010-01-08  Richard Guenther  <rguenther@suse.de>
7496
7497         PR lto/42528
7498         * c.opt (fsigned-char): Also let LTO handle this option.
7499         (funsigned-char): Likewise.
7500
7501 2010-01-07  Richard Guenther  <rguenther@suse.de>
7502
7503         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
7504         (gimple_op): Likewise.
7505         (gimple_op_ptr): Likewise.
7506         (gimple_assign_set_lhs): Remove gcc_assert.
7507         (gimple_assign_set_rhs1): Likewise.
7508         (gimple_assign_set_rhs2): Likewise.
7509         (gimple_call_set_lhs): Likewise.
7510         (gimple_call_set_fn): Likewise.
7511         (gimple_call_set_fndecl): Likewise.
7512         (gimple_call_fndecl): Likewise.
7513         (gimple_call_return_type): Likewise.
7514         (gimple_call_set_chain): Likewise.
7515         (gimple_call_num_args): Likewise.
7516         (gimple_call_set_arg): Likewise.
7517         (gimple_cond_set_code): Likewise.
7518         (gimple_cond_set_lhs): Likewise.
7519         (gimple_cond_set_rhs): Likewise.
7520         (gimple_cond_set_true_label): Likewise.
7521         (gimple_cond_set_false_label): Likewise.
7522         (gimple_label_set_label): Likewise.
7523         (gimple_goto_set_dest): Likewise.
7524         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
7525         (gimple_debug_bind_get_value): Likewise.
7526         (gimple_debug_bind_get_value_ptr): Likewise.
7527         (gimple_debug_bind_set_var): Likewise.
7528         (gimple_debug_bind_set_value): Likewise.
7529         (gimple_debug_bind_reset_value): Likewise.
7530         (gimple_debug_bind_has_value_p): Likewise.
7531         (gimple_return_retval_ptr): Remove gcc_assert.
7532         (gimple_return_retval): Likewise.
7533         (gimple_return_set_retval): Likewise.
7534         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
7535         (safe_referenced_var_iterator): Remove.
7536         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
7537         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
7538         (fill_referenced_var_vec): Remove.
7539         (first_readonly_imm_use): Remove redundant gcc_assert.
7540         (phi_arg_index_from_use): Combine gcc_asserts.
7541         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
7542         (first_imm_use_stmt): Remove redundant gcc_assert.
7543         * tree-cfg.c (verify_gimple_call): Verify function and chain
7544         operands.  Verify arguments.
7545         (verify_types_in_gimple_stmt): Verify condition code and labels.
7546
7547 2010-01-07  Richard Guenther  <rguenther@suse.de>
7548
7549         PR tree-optimization/42641
7550         * sese.c (rename_map_elt_info): Use the SSA name version, do
7551         not hash pointers.
7552
7553 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
7554
7555         PR tree-optimization/42625
7556         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
7557         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
7558
7559 2010-01-07  Duncan Sands  <baldrick@free.fr>
7560
7561         * Makefile.in (PLUGIN_HEADERS): Add version.h.
7562
7563 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
7564
7565         PR target/42511
7566         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
7567         note itself is not function_invariant_p.
7568
7569 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
7570
7571         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
7572         Do not add the DF_NOTE problem.
7573         * store-motion.c (execute_rtl_store_motion): Likewise.
7574
7575 2010-01-07  Martin Jambor  <mjambor@suse.cz>
7576
7577         PR tree-optimization/42157
7578         * tree-sra.c (compare_access_positions): Stabilize sort if both
7579         accesses have integer types, return zero immediately if they are the
7580         same.
7581
7582 2010-01-06  Richard Henderson  <rth@redhat.com>
7583
7584         PR middle-end/41883
7585         * haifa-sched.c (add_to_note_list): Merge into ...
7586         (concat_note_lists): ... here, and ...
7587         (unlink_other_notes, rm_other_notes): Merge into...
7588         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
7589         NOTE_INSN_EPILOGUE_BEG.
7590
7591 2010-01-06  Richard Guenther  <rguenther@suse.de>
7592
7593         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
7594         not inline regular functions into always-inline functions.
7595
7596 2010-01-06  Nick Clifton  <nickc@redhat.com>
7597
7598         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
7599         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
7600         used together.
7601         (OVERRIDE_OPTIONS): Delete.
7602         (OPTIMIZATION_OPTIONS): Define.
7603         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
7604         * config/rx/rx.c (rx_handle_option): Issue an error message if
7605         -mcpu=rx200 and -fpu are used together.
7606         (rx_set_optimization_options): New function.  Issue an error
7607         message if an optimization attribute attempts to reset the FPU/
7608         math optimization pairing.
7609         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
7610         * config/rx/rx.opt: Set the default to 32-bit doubles.
7611         * config/rx/t-rx: Add multilibs for -nofpu option.
7612         * doc/invoke.texi: Update documentation of RX options.
7613
7614 2010-01-06  Richard Guenther  <rguenther@suse.de>
7615
7616         * tree-ssa-pre.c (name_to_id): New global.
7617         (alloc_expression_id): Simplify SSA name handling.
7618         (lookup_expression_id): Likewise.
7619         (init_pre): Zero name_to_id.
7620         (fini_pre): Free it.
7621
7622 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
7623
7624         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
7625
7626 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
7627
7628         PR target/42542
7629         * config/i386/sse.md (smaxv2di3): New.
7630         (umaxv2di3): Likewise.
7631         (sminv2di3): Likewise.
7632         (uminv2di3): Likewise.
7633
7634 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
7635
7636         PR target/42564
7637         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
7638         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
7639         (legitimize_tls_address): Likewise.
7640         (sparc_tls_referenced_p): Likewise.
7641         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
7642         and adjust calls to legitimize_pic_address.
7643         (legitimate_constant_p) Use sparc_tls_referenced_p.
7644         (legitimate_pic_operand_p): Likewise.
7645         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
7646         (sparc_tls_symbol_ref_1): Delete.
7647         (sparc_tls_referenced_p): Make static, recognize specific patterns.
7648         (legitimize_tls_address): Make static, handle CONST patterns.
7649         (legitimize_pic_address): Make static, remove unused parameter and
7650         adjust recursive calls.
7651         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
7652         and adjust call to legitimize_pic_address.
7653         (sparc_output_mi_thunk): Likewise.
7654
7655 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
7656             H.J. Lu  <hongjiu.lu@intel.com>
7657
7658         PR target/42542
7659         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
7660         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
7661         operands to make them signed.
7662
7663         Revert:
7664         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
7665
7666         PR target/42542
7667         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
7668         GTU to GT for V4SI and V2DI.
7669
7670         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
7671         (umin<mode>3): Removed.
7672         (uminv8hi3): New.
7673         (uminv4si3): Likewise.
7674
7675 2010-01-05  Martin Jambor  <mjambor@suse.cz>
7676
7677         PR tree-optimization/42462
7678         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
7679         current_function_decl to helper functions and macros.
7680
7681 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7682
7683         PR bootstrap/41771
7684         * flags.h: Don't include real.h.
7685         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
7686         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
7687         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
7688         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
7689         * dominance.c: Update copyright.
7690         * gimple.c (walk_gimple_op): Remove inline.
7691         * tree-ssa-reassoc.c: Include real.h.
7692         * Makefile.in (FLAGS_H): Remove $(REAL_H).
7693         (tree-ssa-reassoc.o): Depend on $(REAL_H).
7694
7695 2010-01-05  Nick Clifton  <nickc@redhat.com>
7696
7697         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
7698         register to push into the stack frame when the accumulator has to
7699         be saved during interrupts.
7700
7701 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
7702
7703         * doc/invoke.texi: Remove the documentation about option
7704         -Wunreachable-code.
7705         * common.opt (Wunreachable-code):  Preserved for backward
7706         compatibility.
7707         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
7708         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
7709         the backward compatibility flag section.
7710
7711 2010-01-05  Richard Guenther  <rguenther@suse.de>
7712
7713         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
7714
7715 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
7716
7717         PR other/42611
7718         * cfgexpand.c (expand_one_var): Diagnose too large variables.
7719
7720         PR tree-optimization/42508
7721         * tree-sra.c (convert_callers): Check for recursive call
7722         by comparing cgraph nodes instead of decls.
7723         (modify_function): Call ipa_modify_formal_parameters also
7724         on all same_body aliases.
7725
7726         * cgraphunit.c (cgraph_materialize_all_clones): Compare
7727         cgraph nodes when checking for same_body aliases.
7728
7729 2010-01-05  Richard Guenther  <rguenther@suse.de>
7730
7731         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
7732         allocation and lookup.
7733         (get_or_alloc_expr_for_constant): Likewise.
7734         (phi_translate): Sink allocation.
7735
7736 2010-01-04  Richard Guenther  <rguenther@suse.de>
7737
7738         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
7739         a new entry only if needed.
7740         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
7741         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
7742         hashtable lookup.
7743         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
7744         the result array.
7745         (phi_translate): Handle CONSTANTs early.
7746
7747 2010-01-04  Martin Jambor  <mjambor@suse.cz>
7748
7749         PR tree-optimization/42398
7750         * tree-sra.c (struct access): Removed flag grp_different_types.
7751         (dump_access): Do not dump the removed flag.
7752         (sort_and_splice_var_accesses): Do not set the removed flag.
7753         (sra_modify_expr): Check for type compatibility directly.
7754
7755 2010-01-04  Martin Jambor  <mjambor@suse.cz>
7756
7757         PR tree-optimization/42366
7758         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
7759         edges with variable number of parameters.
7760         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
7761         flag instead of asserting it.
7762         (ipa_read_node_info): Read uses_analysis_done flag.
7763
7764 2010-01-04  Richard Guenther  <rguenther@suse.de>
7765
7766         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
7767         iterative_hash_* as intended.
7768         (vn_reference_compute_hash): Likewise.  Simplify hashing
7769         SSA names.
7770         (vn_reference_lookup_2): Likewise.
7771         (vn_nary_op_compute_hash): Likewise.
7772         (vn_phi_compute_hash): Likewise.
7773         (expressions_equal_p): Remove strange code.
7774         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
7775         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
7776         (bitmap_insert_into_set_1): Take value-id as parameter.
7777         (add_to_value): Pass it.
7778         (bitmap_insert_into_set): Likewise.
7779         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
7780
7781 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
7782
7783         PR driver/42442
7784         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
7785         (do_self_spec): For switches with SWITCH_IGNORE set set also
7786         SWITCH_IGNORE_PERMANENTLY.
7787         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
7788         of SWITCH_IGNORE.
7789
7790 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
7791
7792         * lto-streamer-out.c (output_unreferenced_globals): Output the full
7793         tree of an unreferenced global var.
7794
7795 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
7796
7797         PR target/42542
7798         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
7799         GTU to GT for V4SI and V2DI.
7800
7801         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
7802         (umin<mode>3): Removed.
7803         (uminv8hi3): New.
7804         (uminv4si3): Likewise.
7805
7806 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
7807
7808         PR lto/42581
7809         * collect2.c (main): Turn on trace in collect2 if -v is passed
7810         to gcc with LTO.
7811
7812 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
7813
7814         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
7815         description of expression operand.
7816
7817 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
7818
7819         * configure.ac: Add install-html to target_list for Make-hooks.
7820         * configure: Regenerate.
7821         * fortran/Make-lang.in (F95_HTMLFILES): New.
7822         (fortran.html): Use it.
7823         (fortran.install-html): New.
7824         * Makefile.in (install-html): Add lang.install-html.
7825         * java/Make-lang.in (JAVA_HTMLFILES): New.
7826         (java.html): Use it.
7827         (java.install-html): New.
7828         * objc/Make-lang.in (objc.install-html): New.
7829         * objcp/Make-lang.in (obj-c++.install-html): New.
7830         * cp/Make-lang.in (c++.install-html): New.
7831         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
7832         * lto/Make-lang.in (lto.install-html): New.
7833
7834 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
7835
7836         PR lto/42520
7837         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
7838
7839 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
7840
7841         PR rtl-optimization/41862
7842         * store-motion.c (store_killed_in_insn, compute_store_table,
7843         remove_reachable_equiv_notes, replace_store_insn,
7844         build_store_vectors): Ignore all DEBUG_INSNs.
7845
7846 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
7847
7848         PR lto/41564
7849         * common.opt: Add dumpdir.
7850
7851         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
7852         isn't specified.
7853         (option_map): Add --dumpdir.
7854
7855         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
7856
7857         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
7858
7859         * opts.c (decode_options): Try dump_dir_name first if
7860         dump_base_name isn't an absolute path.
7861         (common_handle_option): Handle OPT_dumpdir.
7862
7863         * toplev.c (dump_dir_name): New.
7864         (print_switch_values): Also ignore -dumpdir.
7865
7866         * toplev.h (dump_dir_name): New.
7867
7868 2010-01-03  Richard Guenther  <rguenther@suse.de>
7869
7870         PR tree-optimization/42589
7871         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
7872         double-word expansion of bswap32.
7873
7874 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
7875
7876         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
7877         with BLOCK_FOR_INSN.
7878         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
7879         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
7880         noce_process_if_block): Likewise.
7881         * gcse.c (compute_local_properties, insert_expr_in_table,
7882         insert_set_in_table, canon_list_insert, find_avail_set,
7883         pre_insert_copy_insn): Likewise.
7884
7885         * basic-block.h (BLOCK_NUM): Move from here...
7886         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
7887
7888 2010-01-03  Richard Guenther  <rguenther@suse.de>
7889
7890         PR tree-optimization/42438
7891         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
7892         contains_may_not_return_call flag.
7893         (BB_MAY_NOTRETURN): New.
7894         (valid_in_sets): Trapping nary operations are not valid
7895         in blocks that may not return.
7896         (insert_into_preds_of_block): Remove check for trapping expressions.
7897         (compute_avail): Compute also BB_MAY_NOTRETURN.
7898
7899 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
7900
7901         * doc/invoke.texi: Add 2010 to copyright years.
7902
7903 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
7904
7905         * config/sparc/sparc.c: Fix formatting nits.
7906
7907 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
7908             Alexander Monakov  <amonakov@ispras.ru>
7909
7910         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
7911
7912 2010-01-02  Richard Guenther  <rguenther@suse.de>
7913
7914         PR middle-end/42577
7915         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
7916         (simplify_switch_using_ranges): Mark to be removed edges
7917         as non-executable.
7918
7919 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7920
7921         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
7922
7923         * collect2.c (scan_libraries): Add missing argument in call to
7924         scan_prog_file.
7925
7926 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
7927
7928         PR target/42448
7929         * config/alpha/predicates.md (aligned_memory_operand): Return false
7930         for CQImode.
7931         (unaligned_memory_operand): Return true for CQImode.
7932         * config/alpha/alpha.c (get_aligned_mem): Assert that location
7933         doesn not cross aligned SImode word boundary.
7934
7935 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
7936
7937         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
7938         Remove.
7939         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
7940         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
7941
7942 2010-01-02  Richard Guenther  <rguenther@suse.de>
7943
7944         PR lto/41597
7945         * toplev.c (compile_file): Emit LTO marker properly.  Change
7946         it to __gnu_lto_v1.
7947         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
7948
7949 2010-01-01  Richard Guenther  <rguenther@suse.de>
7950
7951         PR debug/42455
7952         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
7953
7954 2010-01-01  Richard Guenther  <rguenther@suse.de>
7955
7956         PR c/42570
7957         * c-decl.c (grokdeclarator): For zero-size arrays force
7958         structural equality checks as layout_type does.
7959
7960 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
7961
7962         * builtins.c: Update copyright to 2010.
7963
7964 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
7965
7966         PR lto/42531
7967         * lto-streamer-out.c (produce_asm): Revert the last change.
7968         (copy_function): Likewise.
7969
7970         * lto-streamer.c (lto_get_section_name): Skip any leading
7971         asterisk in name.
7972
7973 2010-01-01  Richard Guenther  <rguenther@suse.de>
7974
7975         PR middle-end/42559
7976         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
7977         for LABEL_DECLs.
7978
7979 \f
7980 Copyright (C) 2010 Free Software Foundation, Inc.
7981
7982 Copying and distribution of this file, with or without modification,
7983 are permitted in any medium without royalty provided the copyright
7984 notice and this notice are preserved.