OSDN Git Service

4d7ece95cfa7dfe3ee32681a7da186384601a986
[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>