OSDN Git Service

* doc/extend.texi (Function Attributes): Fix a typo.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-05-02  Bruno Haible  <bruno@clisp.org>
2
3         * doc/extend.texi (Function Attributes): Fix a typo.
4
5 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
6
7         Revert:
8         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
9         placeholder from 0x%x to %#x.
10         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11         * config/i386/i386.c (output_pic_addr_const): Ditto.
12
13 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
14
15         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
16         placeholder from 0x%x to %#x.
17         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
18         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
19         (ASM_OUTPUT_DEBUG_DATA): Ditto.
20         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
21         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
22         * optc-gen.awk: Ditto.
23         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
24         (HOST_WIDE_INT_PRINT_HEX): Ditto.
25         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
26         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
27         * gcov-dump.c (tag_function): Ditto.
28         (tag_summary): Ditto.
29
30 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
31
32         * target.h (struct calls): Add function_value_regno_p field.
33         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
34         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
35         * targhooks.c (default_function_value_regno_p): New function.
36         * targhooks.h (default_function_value_regno_p): Declare function.
37         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
38         * builtins.c. (apply_result_size): (Ditto.).
39         * combine.c. (likely_spilled_retval_p): (Ditto.).
40         * mode-switching.c. Include 'target.h'.
41         (create_pre_exit): Use function_value_regno_p hook.
42         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
43         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
44         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
45
46         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
47         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
48         (ix86_function_value_regno_p): Declare as static, change argument
49         type to const unsigned int.
50         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
51
52 2010-05-01  Richard Guenther  <rguenther@suse.de>
53
54         PR tree-optimization/43949
55         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
56         types.
57         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
58
59 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
60
61         * rtl.h (CONST_DOUBLE_P): Define.
62         (rtx_to_double_int): Declare.
63         * emit-rtl.c (rtx_to_double_int): New function.
64         * dwarf2out.c (insert_double): New function.
65         (loc_descriptor, add_const_value_attribute): Clean up, use
66         rtx_to_double_int and insert_double functions.
67
68 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
69
70         * doc/extend.texi (Inline): Add missing return keyword to examples.
71         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
72         "command-line".
73
74 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
75
76         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
77         the variable part of the offset as well.  Use highest_pow2_factor for
78         all alignment checks.
79
80 2010-04-30  Richard Guenther  <rguenther@suse.de>
81
82         PR tree-optimization/43879
83         * tree-ssa-structalias.c (type_could_have_pointers): Functions
84         can have pointers.
85
86 2010-04-30  Jan Hubicka  <jh@suse.cz>
87
88         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
89         varpool.
90         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
91
92 2010-04-30  Jan Hubicka  <jh@suse.cz>
93
94         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
95         New.
96         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
97         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
98         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
99         cgraph_node_set_needs_ltrans_p): Remove.
100
101 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
102
103         * sdbout.c: Include vec.h, do not include varray.h.
104         (deferred_global_decls, sdbout_global_decl,
105         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
106         * toplev.c: Do not include varray.h.
107         (dump_memory_report): Do not dump VARRAY statistics.
108         * gengtype.c (open_base_file): Ignore varray.h.
109         * Makefile.in: Update for abovementioned changes.
110         Remove all traces of varray.c and varray.h.
111         * varray.c: Remove file.
112         * varray.h: Remove file.
113
114 2010-04-30  Jan Hubicka  <jh@suse.cz>
115
116         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
117         references.
118
119 2010-04-30  Jan Hubicka  <jh@suse.cz>
120
121         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
122         needed.
123
124 2010-04-30  Richard Guenther  <rguenther@suse.de>
125
126         * tree-ssa-structalias.c (get_constraint_for_1): Generate
127         constraints for CONSTRUCTOR.
128
129 2010-04-30  Richard Guenther  <rguenther@suse.de>
130
131         PR lto/43946
132         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
133         first after all lowering passes.
134
135 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
136
137         * toplev.c: Include varray.h for statistics dumping.
138         * tree.h: Do not declare varray_head_tag.
139         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
140         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
141         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
142         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
143         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
144         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
145         c-common.c, c-common.h, reg-stack.c, basic-block.h,
146         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
147         include varray.h.
148         * Makefile.in: Update for abovementioned changes.
149
150 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
151
152         PR debug/43942
153         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
154
155 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
156
157         * config/picochip/picochip.c (picochip_legitimize_address): Define.
158         Use this function to do machine-specific conversion.
159         (picochip_legitimize_reload_address): Likewise.
160         (picochip_legitimate_address_p): Check valid base register only if
161         strict.
162         (picochip_check_conditional_copy): Check for modw only if opnd is
163         register.
164         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
165         to call the function in c.
166         * config/picochip/picochip-protos.h
167         (picochip_legitimize_reload_address): Define.
168         * config/picochip/picochip.md (supported_compare1): Define.
169
170 2010-04-30  Jan Hubicka  <jh@suse.cz>
171
172         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
173         (cgraph_global_info): Remove inlined.
174         (LTO_cgraph_tag_names): Remove.
175         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
176         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
177         simplify cgraph tags and document.
178         (lto_output_node): Use only LTO_cgraph_unavail_node and
179         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
180         for_functions_valid, global info, process and output flags.
181         (input_overwrite_node): Initialize estimated stack size and
182         estimated growth.  Do not read flags we no longer store.
183         (input_node): Likewise do not read info no longer stored.
184         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
185         flag.
186
187 2010-04-30  Richard Guenther  <rguenther@suse.de>
188
189         PR tree-optimization/43879
190         * tree-ssa-structalias.c (get_constraint_for_1): Properly
191         handle non-zero initializers.
192
193 2010-04-30  Richard Guenther  <rguenther@suse.de>
194
195         * builtins.c (fold_builtin_1): Delete free (0).
196
197 2010-04-29  Jan Hubicka  <jh@suse.cz>
198
199         * gengtype.c (open_base_files): Add lto-streamer.h
200         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
201         (pass_ipa_cp): GGC collect.
202         * toplev. (compile_file): Do not output symbols.
203         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
204         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
205         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
206         * lto-section-in.c: Include ggc.h
207         (lto_new_in_decl_state): Alloc in GGC.
208         (lto_delete_in_decl_state): Likewise.
209         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
210         Collect.
211
212 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
213
214         PR target/42895
215         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
216         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
217         (HONOR_REG_ALLOC_ORDER): Describe new macro.
218         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
219         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
220         account only if HONOR_REG_ALLOC_ORDER is not defined.
221         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
222         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
223
224 2010-04-29  Jon Grant  <04@jguk.org>
225
226         * collect2.c (vflag): Change type from int to bool.
227         (debug): Likewise.
228         (helpflag): New global bool.
229         (main): Set vflag and debug with boolean, not integer truth values.
230         Accept new "--help" option and output usage text if found.
231         * collect2.h (vflag): Update prototype.
232         (debug): Likewise.
233
234 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
235
236         PR bootstrap/43936
237         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
238
239 2010-04-29  Richard Guenther  <rguenther@suse.de>
240
241         PR bootstrap/43935
242         * plugin.h (invoke_plugin_callbacks): Annotate arguments
243         with ATTRIBUTE_UNUSED.
244
245 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
246
247         PR target/43921
248         * config/i386/i386.c (get_some_local_dynamic_name): Replace
249         INSN_P with NONDEBUG_INSN_P.
250         (distance_non_agu_define): Likewise.
251         (distance_agu_use): Likewise.
252
253 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
254
255         From Dominique d'Humieres <dominiq@lps.ens.fr>
256         PR bootstrap/43858
257         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
258         test_set.
259
260 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
261
262         * plugin.h (invoke_plugin_callbacks): New inline function.
263         * plugin.c (flag_plugin_added): New global flag.
264         (add_new_plugin): Initialize above flag.
265         (invoke_plugin_callbacks): Rename to ...
266         (invoke_plugin_callbacks_full): ... this.
267
268 2010-04-28  Jan Hubicka  <jh@suse.cz>
269
270         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
271         (lto_varpool_replace_node): New.
272         (lto_symtab_resolve_symbols): Resolve varpool nodes.
273         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
274         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
275         * cgraph.h (varpool_node_ptr): New type.
276         (varpool_node_ptr): New vector.
277         (varpool_node_set_def): New structure.
278         (varpool_node_set): New type.
279         (varpool_node_set): New vector.
280         (varpool_node_set_element_def): New structure.
281         (varpool_node_set_element, const_varpool_node_set_element): New types.
282         (varpool_node_set_iterator): New type.
283         (varpool_node): Add prev pointers, add used_from_other_partition,
284         in_other_partition.
285         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
286         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
287         varpool_get_node, varpool_remove_node): Declare.
288         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
289         varpool_node_set_size): New inlines.
290         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
291         * tree-pass.h (varpool_node_set_def): Forward declare.
292         (ipa_opt_pass_d): Summary writting takes vnode sets too.
293         (ipa_write_optimization_summaries): Update prototype.
294         * ipa-cp.c (ipcp_write_summary): Update.
295         * ipa-reference.c (ipa_reference_write_summary): Update.
296         * lto-cgraph.c (lto_output_varpool_node): New static function.
297         (output_varpool): New function.
298         (input_varpool_node): New static function.
299         (input_varpool_1): New function.
300         (input_cgraph): Input varpool.
301         * ipa-pure-const.c (pure_const_write_summary): Update.
302         * lto-streamer-out.c (lto_output): Update, output varpool too.
303         (write_global_stream): Kill WPA hack.
304         (produce_asm_for_decls): Update.
305         (output_alias_pair_p): Handle variables.
306         (output_unreferenced_globals): Output only needed partition of varpool.
307         * ipa-inline.c (inline_write_summary): Update.
308         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
309         cgraph.
310         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
311         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
312         varpool_node_set_new, varpool_node_set_add,
313         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
314         debug_varpool_node_set): New functions.
315         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
316         (execute_one_pass): Process new decls too.
317         (ipa_write_summaries_2): Pass around vsets.
318         (ipa_write_summaries_1): Likewise.
319         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
320         to add.
321         (ipa_write_optimization_summaries_1): Pass around vsets.
322         (ipa_write_optimization_summaries): Likewise.
323         * varpool.c (varpool_get_node): New.
324         (varpool_node): Update doubly linked lists.
325         (varpool_remove_node): New.
326         (dump_varpool_node): More dumping.
327         (varpool_enqueue_needed_node): Update doubly linked lists.
328         (decide_is_variable_needed): Kill ltrans hack.
329         (varpool_finalize_decl): Kill lto hack.
330         (varpool_assemble_decl): Skip decls in other partitions.
331         (varpool_assemble_pending_decls): Update doubly linkes lists.
332         (varpool_empty_needed_queue): Likewise.
333         (varpool_extra_name_alias): Likewise.
334         * lto-streamer.c (lto_get_section_name): Add vars section.
335         * lto-streamer.h (lto_section_type): Update.
336         (output_varpool, input_varpool): Declare.
337
338 2010-04-28  Mike Stump  <mikestump@comcast.net>
339
340         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
341
342 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
343
344         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
345         record or union type with RECORD_OR_UNION_TYPE_P predicate.
346         (lto_input_ts_type_tree_pointers): Likewise.
347         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
348         (lto_output_ts_type_tree_pointers): Likewise.
349
350 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
351
352         Uniquization of constants at the Tree level
353         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
354         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
355         bit to the end.
356         (tree_output_constant_def): Declare.
357         * gimplify.c (gimplify_init_constructor): When using block copy, first
358         uniquize the constant constructor on the RHS.
359         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
360         DECL_IN_CONSTANT_POOL flag.
361         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
362         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
363         constant pool.
364         (assemble_variable): Deal with symbols belonging to the tree constant
365         pool.
366         (get_constant_section): Add ALIGN parameter and simplify.
367         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
368         (assemble_constant_contents): Use the expression of the VAR_DECL.
369         (output_constant_def_contents): Use the alignment of the VAR_DECL.
370         (tree_output_constant_def): New global function.
371         (mark_constant): Use the expression of the VAR_DECL.
372         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
373         its expression.
374         (output_object_block): Likewise and assemble the expression.
375
376 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
377
378         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
379         hash_tree, eq_tree): New tree hash table.
380         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
381         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
382         lto_orig_address_remove): Reimplement.
383
384 2010-04-28  Xinliang David Li  <davidxl@google.com>
385
386         PR c/42643
387         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
388         (compute_uninit_opnds_pos): New function.
389         (is_non_loop_exit_postdominating): New function.
390         (compute_control_dep_chain): New function.
391         (find_pdom): New function.
392         (convert_control_dep_chain_into_preds): New function.
393         (find_predicates): New function.
394         (find_control_equiv_block): New function.
395         (collect_phi_def_edges): New function.
396         (find_def_preds): New function.
397         (find_dom): New function.
398         (dump_predicates): New function.
399         (get_cmp_code): New function.
400         (is_value_included_in): New function.
401         (find_matching_predicate_in_rest_chains): New function.
402         (use_pred_not_overlap_with_undef_path_pred): New function.
403         (is_use_properly_guarded): New function.
404         (normalize_cond_1): New function.
405         (is_and_or_or): New function.
406         (normalize_cond): New function.
407         (is_gcond_subset_of): New function.
408         (is_subset_of_any): New function.
409         (is_or_set_subset_of): New function.
410         (is_and_set_subset_of): New function.
411         (is_norm_cond_subset_of): New function.
412         (is_pred_expr_subset_of): New function.
413         (is_pred_chain_subset_of): New function.
414         (is_included_in): New function.
415         (is_superset_of): New function.
416         (find_uninit_use): New function.
417         (warn_uninitialized_phi): New function.
418         (compute_possibly_undefined_names): New function.
419         (ssa_undefined_value_p): New function.
420         (execute_late_warn_uninitialized): New function.
421         * tree-ssa.c (ssa_undefined_value_p): Removed.
422         (warn_uninit): Changed to extern.
423         (warn_uninitialized_phi): Removed.
424         (warn_uninitialized_vars): Changed to extern.
425         (execute_late_warn_uninitialized): Removed
426         * tree-flow.h: Add new prototypes.
427         * timevar.def: Add new time variable.
428         * Makefile.in: Add new build file.
429
430 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
431
432         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
433         type if available.
434
435 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
436
437         PR target/22224
438         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
439
440 2010-04-28  Martin Jambor  <mjambor@suse.cz>
441
442         * cgraph.h (struct cgraph_node): New field indirect_calls.
443         (struct cgraph_indirect_call_info): New type.
444         (struct cgraph_edge): Removed field indirect_call. New fields
445         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
446         (cgraph_create_indirect_edge): Declare.
447         (cgraph_make_edge_direct): Likewise.
448         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
449         * ipa-prop.h (struct ipa_param_call_note): Removed.
450         (struct ipa_node_params): Removed field param_calls.
451         (ipa_create_all_structures_for_iinln): Declare.
452         * cgraph.c: Described indirect edges and uids in initial comment.
453         (cgraph_add_edge_to_call_site_hash): New function.
454         (cgraph_edge): Search also among the indirect edges, use
455         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
456         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
457         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
458         site hash.
459         (initialize_inline_failed): Assign a reason to indirect edges.
460         (cgraph_create_edge_1): New function.
461         (cgraph_create_edge): Moved some functionality to
462         cgraph_create_edge_1.
463         (cgraph_create_indirect_edge): New function.
464         (cgraph_edge_remove_callee): Add an assert checking for
465         non-indirectness.
466         (cgraph_edge_remove_caller): Special-case indirect edges.
467         (cgraph_remove_edge): Likewise.
468         (cgraph_set_edge_callee): New function.
469         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
470         (cgraph_make_edge_direct): New function.
471         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
472         the declaration of the call statement matches.
473         (cgraph_node_remove_callees): Special-case indirect edges.
474         (cgraph_clone_edge): Likewise.
475         (cgraph_clone_node): Clone also the indirect edges.
476         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
477         indirect_call, dump count of indirect_calls edges.
478         * ipa-prop.c (iinlining_processed_edges): New variable.
479         (ipa_note_param_call): Create indirect edges instead of
480         creating notes.  New parameter node.
481         (ipa_analyze_call_uses): New parameter node, pass it on to
482         ipa_note_param_call.
483         (ipa_analyze_stmt_uses): Likewise.
484         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
485         (print_edge_addition_message): Work on edges rather than on notes.
486         (update_call_notes_after_inlining): Likewise, renamed to
487         update_indirect_edges_after_inlining.
488         (ipa_create_all_structures_for_iinln): New function.
489         (ipa_free_node_params_substructures): Do not free notes.
490         (ipa_edge_duplication_hook): Propagate bits within
491         iinlining_processed_edges bitmap.
492         (ipa_node_duplication_hook): Do not duplicate notes.
493         (free_all_ipa_structures_after_ipa_cp): Renamed to
494         ipa_free_all_structures_after_ipa_cp.
495         (free_all_ipa_structures_after_iinln): Renamed to
496         ipa_free_all_structures_after_iinln.g
497         (ipa_write_param_call_note): Removed.
498         (ipa_read_param_call_note): Removed.
499         (ipa_write_indirect_edge_info): New function.
500         (ipa_read_indirect_edge_info): Likewise.
501         (ipa_write_node_info): Do not stream notes, do stream information
502         in indirect edges.
503         (ipa_read_node_info): Likewise.
504         (lto_ipa_fixup_call_notes): Removed.
505         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
506         * ipa-inline.c (pass_ipa_inline): Likewise.
507         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
508         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
509         * tree-inline.c (copy_bb): Removed an unnecessary double check for
510         is_gimple_call.
511         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
512         edges.
513         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
514         (output_cgraph): Stream also indirect edges.
515         (lto_output_edge): Added capability to stream indirect edges.
516         (input_edge): Likewise.
517         (input_cgraph_1): Likewise.
518         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
519         of indirect edges.
520
521 2010-04-28  Richard Guenther  <rguenther@suse.de>
522
523         PR tree-optimization/43879
524         PR tree-optimization/43909
525         * tree-ssa-structalias.c (struct variable_info): Add
526         only_restrict_pointers flag.
527         (new_var_info): Initialize it.  Increment stats.total_vars here.
528         (create_function_info_for): Do not increment stats.total_vars
529         here.
530         (get_function_part_constraint): Fix build with C++.
531         (insert_into_field_list): Remove.
532         (push_fields_onto_fieldstack): Properly merge fields.
533         (create_variable_info_for): Split and simplify.
534         (create_variable_info_for_1): New piece.
535         (intra_create_variable_infos): Properly make restrict constraints
536         from parameters.
537
538 2010-04-28  Richard Guenther  <rguenther@suse.de>
539
540         PR c++/43880
541         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
542
543 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
544             Jan Hubicka <hubicka@ucw.cz>
545
546         * doc/invoke.texi (-Wsuggest-attribute=const,
547         -Wsuggest-attribute=pure): Document.
548         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
549         (function_always_visible_to_compiler_p,
550         suggest_attribute, warn_function_pure, warn_function_const):
551         New functions.
552         (check_call): Improve debug info.
553         (analyze_function): Do not check availability.
554         (add_new_function): Check availability.
555         (propagate): Output warnings.
556         (skip_function_for_local_pure_const): New function.
557         (local_pure_const): Use it; output warnings.
558         * common.opt (Wsuggest-attribute=const,
559         Wsuggest-attribute=pure): New.
560
561 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
562
563         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
564         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
565         or DW_CFA_def_cfa_offset{,_sf}.
566
567 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
568
569         * tree.h: Fix truncated long macros.
570
571 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
572
573         * collect2.c (TARGET_64BIT): Redefine to target's default.
574         * tlink.c: Likewise.
575         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
576         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
577         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
578         for underscoring __USER_LABEL_PREFIX__.
579         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
580         (SUB_LINK_ENTRY32): New.
581         (SUB_LINK_ENTRY64): New.
582         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
583         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
584         (SUB_LINK_ENTRY64): New.
585         (SUB_LINK_ENTRY): New.
586         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
587         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
588         x64 target is choosen.
589         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
590         * configure: Regenerated.
591         * configure.ac (leading-mingw64-underscores): Option added.
592
593 2010-04-27  Jan Hubicka  <jh@suse.cz>
594
595         * doc/invoke.texi (-fipa-profile): Document.
596         * opts.c (decode_options): Enable ipa-profile at -O1.
597         * timevar.def (TV_IPA_PROFILE): Define.
598         * common.opt (fipa-profile): Add.
599         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
600         flag for clones.
601         (cgraph_propagate_frequency): Handle only local ones.
602         * tree-pass.h (pass_ipa_profile): Declare.
603         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
604         (pass_ipa_profile): Use TV_IPA_PROFILE.
605         * ipa.c (ipa_profile): New function.
606         (gate_ipa_profile): Likewise.
607         (pass_ipa_profile): New global variable.
608         * passes.c (pass_ipa_profile): New.
609
610 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
611
612         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
613
614 2010-04-27  Martin Jambor  <mjambor@suse.cz>
615
616         PR middle-end/43812
617         * ipa.c (dissolve_same_comdat_group_list): New function.
618         (function_and_variable_visibility): Call
619         dissolve_same_comdat_group_list when comdat group contains external or
620         newly local nodes.
621         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
622         lists are circular and that they contain only DECL_ONE_ONLY nodes.
623
624 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
625
626         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
627         (const_hash_1) <VECTOR_CST>: New case.
628         (compare_constant) <VECTOR_CST>: Likewise.
629         <ADDR_EXPR>: Deal with LABEL_REFs.
630         (copy_constant) <VECTOR_CST>: New case.
631
632 2010-04-27  Jan Hubicka  <jh@suse.cz>
633
634         * cgraph.c (cgraph_propagate_frequency): New function.
635         * cgraph.h (cgraph_propagate_frequency): Declare.
636         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
637         cgraph_propagate_frequency.
638
639 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
640
641         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
642
643 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
644
645         PR target/40657
646         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
647         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
648         here to determine which regs to push and how much stack to reserve.
649
650 2010-04-27  Jie Zhang  <jie@codesourcery.com>
651
652         * doc/gimple.texi (gimple_statement_with_ops): Remove
653         addresses_taken field.
654         (gimple_statement_with_memory_ops): Likewise.
655
656 2010-04-27  Jan Hubicka  <jh@suse.cz>
657
658         * tree-inline.c (eni_inlining_weights): Remove.
659         (estimate_num_insns): Special case more builtins.
660
661 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
662
663         PR c/32207
664         * c-typeck.c (build_binary_op): Move forward check for comparison
665         pointer with null pointer constant and adjust the diagnostic message.
666
667 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
668
669         PR lto/42776
670         * configure.ac (gcc_cv_as_section_has_align): Set if installed
671         binutils supports extended .section directive needed by LTO, or
672         warn if older binutils found.
673         (LTO_BINARY_READER): New AC_SUBST'd variable.
674         (LTO_USE_LIBELF): Likewise.
675         * gcc/config.gcc (lto_binary_reader): New target-specific configure
676         variable.
677         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
678         (LTO_USE_LIBELF): Likewise.
679         * configure: Regenerate.
680
681         * collect2.c (is_elf): Rename from this ...
682         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
683          object files in addition to ELF-formatted ones.
684         (scan_prog_file): Caller updated.  Also allow for LTO info marker
685         symbol to be prefixed or not by an extra underscore.
686
687         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
688         * config/i386/winnt.c: Also #include lto-streamer.h
689         (i386_pe_asm_named_section): Specify 1-byte section alignment for
690         LTO named sections.
691         (i386_pe_asm_output_aligned_decl_common): Add comment.
692         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
693
694 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
695
696         PR target/43889
697         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
698         Add missing earlyclobber for second alternative.
699
700 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
701
702         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
703         bits for artificial defs at the top of the block.
704         * fwprop.c (single_def_use_enter_block): Don't call it.
705
706 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
707
708         PR 43715
709         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
710         instead of "$gcc_cv_objdump -T".
711         Use "-undefined dynamic_lookup" on darwin.
712         * gcc/configure: Regenerate.
713
714 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
715
716         PR c/43893
717         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
718
719 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
720
721         * c-parser.c (struct c_token): Move location field up.
722         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
723         (struct c_declspecs): Convert typespec_word, storage_class, and
724         default_int_p into bitfields.
725         (struct c_declarator): Move loc field up.
726
727 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
728
729         * cfgloop.h (struct loop): Move can_be_parallel field up.
730         * ipa-prop.h (struct ip_node_params): Move bitfields up.
731         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
732         down.
733         (struct iv_cand): Convert pos field into a bitfield.
734         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
735         field up.
736         (struct _stmt_vec_info): Shuffle fields for better packing.
737
738 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
739
740         * varasm.c (IN_NAMED_SECTION): Remove guard.
741         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
742         (IN_NAMED_SECTION_P): ...this.
743         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
744         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
745
746 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
747
748         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
749         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
750         of shadowing it.  Fix comments.
751
752 2010-04-26  Jan Hubicka  <jh@suse.cz>
753
754         * cgraph.c (cgraph_create_node): Set node frequency to normal.
755         (cgraph_clone_node): Copy function frequency.
756         * cgraph.h (node_frequency): New enum
757         (struct cgraph_node): Add.
758         * final.c (rest_of_clean_state): Update.
759         * lto-cgraph.c (lto_output_node): Output node frequency.
760         (input_overwrite_node): Input node frequency.
761         * tre-ssa-loop-ivopts (computation_cost): Update.
762         * lto-streamer-out.c (output_function): Do not output function
763         frequency.
764         * predict.c (maybe_hot_frequency_p): Update and handle functions
765         executed once.
766         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
767         attribute lookup.
768         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
769         (compute_function_frequency): Set noreturn functions to be executed
770         once.
771         (choose_function_section): Update.
772         * lto-streamer-in.c (input_function): Do not input function frequency.
773         * function.c (allocate_struct_function): Do not initialize function
774         frequency.
775         * function.h (function_frequency): Remove.
776         (struct function): Remove function frequency.
777         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
778         (try_update): Update.
779         * tree-inline.c (initialize_cfun): Do not update function frequency.
780         * passes.c (pass_init_dump_file): Update.
781         * i386.c (ix86_compute_frame_layout): Update.
782         (ix86_pad_returns): Update.
783
784 2010-04-26  Jie Zhang  <jie@codesourcery.com>
785
786         PR tree-optimization/43833
787         * tree-vrp.c (range_int_cst_p): New.
788         (range_int_cst_singleton_p): New.
789         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
790         when both operands are constants.  Use range_int_cst_p in
791         BIT_IOR_EXPR case.
792
793 2010-04-26  Jan Hubicka  <jh@suse.cz>
794
795         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
796
797 2010-04-26  Richard Guenther  <rguenther@suse.de>
798
799         PR lto/43080
800         * gimple.c (gimple_decl_printable_name): Deal gracefully
801         with a NULL DECL_NAME.
802
803 2010-04-26  Richard Guenther  <rguenther@suse.de>
804
805         PR lto/42425
806         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
807         if emitting debug information and it is either a function
808         or a namespace decl.
809
810 2010-04-26  Ira Rosen  <irar@il.ibm.com>
811
812         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
813         determine if the statement is vectorizable, and a macro to access it.
814         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
815         Skip statements that can't be vectorized. If the analysis fails,
816         mark the statement as unvectorizable if vectorizing basic block.
817         (vect_compute_data_refs_alignment): Likewise.
818         (vect_verify_datarefs_alignment): Skip statements marked as
819         unvectorizable. Add print.
820         (vect_analyze_group_access): Skip statements that can't be
821         vectorized. If the analysis fails, mark the statement as
822         unvectorizable if vectorizing basic block.
823         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
824         * tree-vect-stmts.c (vectorizable_store): Fix the number of
825         generated stmts for SLP.
826         (new_stmt_vec_info): Initialize the new field.
827         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
828         statements marked as unvectorizable.
829
830 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
831
832         * c-common.c (flag_isoc1x): New.
833         (flag_isoc99): Update comment.
834         * c-common.h (flag_isoc1x): New.
835         (flag_isoc99): Update comment.
836         * c-cppbuiltin.c (builtin_define_float_constants): Also define
837         __<type>_DECIMAL_DIG__.
838         * c-opts.c (set_std_c1x): New.
839         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
840         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
841         * c.opt (-std=c1x, -std=gnu1x): New options.
842         * doc/cpp.texi: Mention -std=c1x.
843         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
844         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
845         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
846         * doc/standards.texi: Mention C1X.
847         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
848         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
849         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
850         Define for C1X.
851
852 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
853
854         * config/i386/gmon-sol2.c (_mcleanup): Change format string
855         placeholder from 0x%x to %#x.
856         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
857         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
858         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
859         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
860         * config/i386/i386.c (ix86_target_string): Ditto.
861         (output_pic_addr_const): Ditto.
862         (print_operand): Ditto.
863
864 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
865
866         * combine.c (find_split_point): Add third argument.  Use it
867         to find nested multiply-accumulate instructions.  Adjust calls.
868         (try_combine): Adjust call to find_split_point.
869
870 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
871
872         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
873
874 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
875
876         PR tree-optimization/41442
877         * fold-const.c (merge_truthop_with_opposite_arm): New function.
878         (fold_binary_loc): Call it.
879
880 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
881
882         * toplev.c (general_init): Set default for fdiagnostics-show-option.
883         * opts.c (common_handle_option): Allow disabling it.
884         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
885
886 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
887
888         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
889         between modes if both types are integral.
890
891 2010-04-23  Richard Guenther  <rguenther@suse.de>
892
893         PR tree-optimization/43572
894         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
895
896 2010-04-23  Richard Guenther  <rguenther@suse.de>
897
898         PR lto/43455
899         * tree-inline.c (tree_can_inline_p): Also check compatibility
900         of return types.
901
902 2010-04-23  Martin Jambor  <mjambor@suse.cz>
903
904         PR tree-optimization/43846
905         * tree-sra.c (struct access): New flag grp_assignment_read.
906         (build_accesses_from_assign): Set grp_assignment_read.
907         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
908         (enum mark_read_status): New type.
909         (analyze_access_subtree): Propagate grp_assignment_read, create
910         accesses also if both direct_read and root->grp_assignment_read.
911
912 2010-04-23  Martin Jambor  <mjambor@suse.cz>
913
914         PR middle-end/43835
915         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
916         function does not have type attributes.
917
918 2010-04-23  Richard Guenther  <rguenther@suse.de>
919
920         PR lto/42653
921         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
922         of FUNCTION_DECLs.
923
924 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
925
926         * sese.h (create_if_region_on_edge): Remove.
927
928         * sese.c (create_if_region_on_edge): Make static.
929
930         * tree-inline.c: Do not include ggc.h.
931
932         * expr.c: Do not include ggc.h.
933
934         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
935         dependencies.
936
937 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
938
939         PR target/43744
940         * config/sh/sh.c (find_barrier): Don't emit a constant pool
941         in the middle of insns for casesi_worker_2.
942
943 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
944
945         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
946
947 2010-04-22  Ira Rosen  <irar@il.ibm.com>
948
949         PR tree-optimization/43842
950         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
951         loop unrolling in update of exit phis. Fix comment.
952         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
953         least two reduction statements in the loop before starting SLP
954         analysis.
955
956 2010-04-22  Nick Clifton  <nickc@redhat.com>
957
958         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
959
960 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
961
962         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
963         to simplify a + ~a.
964
965 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
966
967         * tree-parloops.c (loop_parallel_p): New argument
968         parloop_obstack.  Pass it down.
969         (parallelize_loops): New variable parloop_obstack.  Initialize it,
970         pass it down, free it.
971
972         * tree-loop-linear.c (linear_transform_loops): Pass down
973         lambda_obstack.
974
975         * tree-data-ref.h (lambda_compute_access_matrices): New argument
976         of type struct obstack *.
977
978         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
979         scratch_obstack.  Initialize it, pass down, free it.
980
981         * lambda.h (lambda_loop_new): Remove.
982         (lambda_matrix_new, lambda_matrix_inverse)
983         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
984         argument of type struct obstack *.
985
986         * lambda-trans.c (lambda_trans_matrix_new): New argument
987         lambda_obstack.  Pass it down, use obstack allocation for ret.
988         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
989         it down.
990
991         * lambda-mat.c (lambda_matrix_get_column)
992         (lambda_matrix_project_to_null): Remove.
993         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
994         allocation for mat.
995         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
996         lambda_obstack.
997
998         * lambda-code.c (lambda_loop_new): New function.
999         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
1000         (lambda_compute_auxillary_space, lambda_compute_target_space)
1001         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
1002         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
1003         (build_access_matrix): New argument lambda_obstack.  Use obstack
1004         allocation for am.
1005         (lambda_compute_step_signs, lambda_compute_access_matrices): New
1006         argument lambda_obstack.  Pass it down.
1007
1008 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
1009
1010         * optabs.h (expand_widening_mult): Declare.
1011
1012 2010-04-22  Richard Guenther  <rguenther@suse.de>
1013
1014         PR tree-optimization/43845
1015         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
1016         lookup the CALL_EXPR function and arguments.
1017
1018 2010-04-22  Nick Clifton  <nickc@redhat.com>
1019
1020         * config/stormy16/stormy16.c
1021         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
1022         * config/stormy16/stormy16.h: Tidy up formatting.
1023         (DONT_USE_BUILTIN_SETJMP): Remove definition.
1024         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
1025         (ineqbranchsi): Delete pattern.
1026         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
1027         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
1028         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
1029         stormy16-lib2-ucmpsi2.c.
1030
1031 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
1032
1033         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
1034         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
1035         extra set merge_set_noclobber, and use it to relax the final test
1036         slightly.
1037         * df.h (df_simulate_find_noclobber_defs): Declare.
1038         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
1039         conditional defs.
1040         (df_simulate_find_noclobber_defs): New function.
1041
1042 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
1043
1044         * config/i386/i386.md: Use {} around multi-line preparation statements.
1045
1046 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1047
1048         * c-tree.h (push_init_level, pop_init_level, set_init_index)
1049         (process_init_element): New argument of type struct obstack *.
1050
1051         * c-typeck.c (push_init_level, pop_init_level, set_designator)
1052         (set_init_index, set_init_label, set_nonincremental_init)
1053         (set_nonincremental_init_from_string, find_init_member)
1054         (output_init_element, output_pending_init_elements)
1055         (process_init_element): New argument braced_init_obstack.  Pass it
1056         down.
1057         (push_range_stack, add_pending_init): New argument
1058         braced_init_obstack.  Use obstack allocation.
1059
1060         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
1061         braced_init_obstack.  Pass it down.
1062         (c_parser_braced_init): New variables ret, braced_init_obstack.
1063         Initialize obstack, pass it down and finally free it.
1064
1065 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
1066
1067         PR middle-end/29274
1068         * tree-pass.h (pass_optimize_widening_mul): Declare.
1069         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
1070         gate_optimize_widening_mul): New static functions.
1071         (pass_optimize_widening_mul): New.
1072         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
1073         <case MULT_EXPR>: Remove support for widening multiplies.
1074         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
1075         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
1076         simplify_gen_unary rather than directly building extensions.
1077         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
1078         WIDEN_MULT_EXPR.
1079         * expmed.c (expand_widening_mult): New function.
1080         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
1081
1082 2010-04-21  Jan Hubicka  <jh@suse.cz>
1083
1084         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
1085         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
1086         * lto-wpa-fixup.c: Remove.
1087         * Makefile.in (lto-wpa-fixup.o): Remove.
1088         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
1089         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
1090         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
1091
1092 2010-04-21  Jan Hubicka  <jh@suse.cz>
1093
1094         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
1095         add write_optimization_summary, read_optimization_summary.
1096         (ipa_write_summaries_of_cgraph_node_set): Remove.
1097         (ipa_write_optimization_summaries): Declare.
1098         (ipa_read_optimization_summaries): Declare.
1099         * ipa-cp.c (pass_ipa_cp): Update.
1100         * ipa-reference.c (pass_ipa_reference): Update.
1101         * ipa-pure-const.c (pass_ipa_pure_const): Update.
1102         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
1103         Update.
1104         * ipa-inline.c (pass_ipa_inline): Update.
1105         * ipa.c (pass_ipa_whole_program): Update.
1106         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
1107         * passes.c (ipa_write_summaries_1): Do not test wpa.
1108         (ipa_write_optimization_summaries_1): New.
1109         (ipa_write_optimization_summaries): New.
1110         (ipa_read_summaries): Do not test ltrans.
1111         (ipa_read_optimization_summaries_1): New.
1112         (ipa_read_optimization_summaries): New.
1113
1114 2010-04-21  Jan Hubicka  <jh@suse.cz>
1115
1116         * lto-cgraph.c (lto_output_node): Do not output comdat groups
1117         for boundary nodes.
1118         (output_cgraph): Do not arrange comdat groups for boundary nodes.
1119
1120 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1121
1122         PR debug/40040
1123         * dwarf2out.c (add_name_and_src_coords_attributes): Add
1124         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
1125
1126 2010-04-21  Jan Hubicka  <jh@suse.cz>
1127
1128         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
1129
1130 2010-04-21  Jan Hubicka  <jh@suse.cz>
1131
1132         * varpool.c (decide_is_variable_needed): Variable is always needed
1133         during ltrans.
1134
1135 2010-04-21  Jan Hubicka  <jh@suse.cz>
1136
1137         * opts.c (decode_options): Enable pure-const pass for whopr.
1138
1139 2010-04-21  Jan Hubicka  <jh@suse.cz>
1140
1141         * cgraph.c (dump_cgraph_node): Dump also assembler name.
1142         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
1143         at WPA dumping.
1144         (cgraph_decide_inlining): Do not expect callee to be removed in all
1145         cases.
1146
1147 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
1148
1149         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
1150
1151 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
1152
1153         * config/i386/i386.md (x86_shrd): Add athlon_decode and
1154         amdfam10_decode attributes.
1155
1156 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1157
1158         PR middle-end/43570
1159         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
1160         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
1161         (lower_copyprivate_clauses): Use private var in outer
1162         context instead of original var.  Make sure the types
1163         are correct for VLAs.
1164
1165 2010-04-21  Richard Guenther  <rguenther@suse.de>
1166
1167         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
1168         to non-pointer objects.
1169
1170 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
1171
1172         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
1173         last chain entry if it starts with the still current label.
1174         (add_location_or_const_value_attribute): Check that
1175         loc_list->first->next is NULL instead of comparing ->first with ->last.
1176         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
1177         to add_var_loc_to_decl.
1178
1179         * dwarf2out.c (output_call_frame_info): For dw_cie_version
1180         >= 4 add also address size and segment size fields into CIE header.
1181
1182         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
1183         long as address size is the same as sizeof (void *) and
1184         segment size is 0.
1185         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
1186         address size or segment size is unexpected, return DW_EH_PE_omit.
1187         (classify_object_over_fdes): If get_cie_encoding returned
1188         DW_EH_PE_omit, return -1.
1189         (init_object): If classify_object_over_fdes returned -1,
1190         pretend there were no FDEs at all.
1191
1192 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
1193
1194         * config/i386/i386.md (bswap<mode>2): Macroize expander from
1195         bswap{si,di}2 using SWI48 mode iterator.
1196         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
1197         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
1198         set modrm attribute of bswap insn to 0 and remove length attribute.
1199         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
1200         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
1201         set mode attribute to <MODE> and remove length attribute.
1202
1203 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
1204
1205         PR rtl-optimization/43520
1206         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
1207         zero available registers.
1208
1209 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1210
1211         * builtins.c (fold_builtin_cproj): Fold more cases.
1212
1213 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1214
1215         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
1216         (fold_builtin_1): Fold builtin cproj.
1217         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
1218         Use ATTR_CONST_NOTHROW_LIST.
1219
1220 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
1221
1222         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
1223         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
1224         ffsi2_no_cmove for !TARGET_CMOVE.
1225         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
1226         (ffssi2): Remove expander.
1227         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
1228         mode iterator.
1229         (ctz<mode>2): Ditto from ctz{si,di}2.
1230         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
1231         mode iterator.
1232         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
1233         mode iterator.
1234
1235 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1236
1237         * dwarf2out.c (AT_linkage_name): Define.
1238         (clone_as_declaration): Handle DW_AT_linkage_name.
1239         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
1240         of DW_AT_MIPS_linkage_name.
1241         (move_linkage_attr): Likewise.
1242         (dwarf2out_finish): Likewise.
1243
1244 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
1245
1246         PR middle-end/41952
1247         * fold-const.c (fold_comparison): New folding rule.
1248
1249 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
1250
1251         * double-int.h (double_int_setbit): Declare.
1252         * double-int.c (double_int_setbit): New function.
1253         * rtl.h (immed_double_int_const): Declare.
1254         * emit-rtl.c (immed_double_int_const): New function.
1255         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
1256         and immed_double_int_const functions.
1257         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
1258         expand_copysign_bit):  (Ditto.).
1259         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
1260         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
1261         * dojump.c (prefer_and_bit_test): (Ditto.).
1262         * expr.c (convert_modes, reduce_to_bit_field_precision,
1263         const_vector_from_tree): (Ditto.).
1264         * expmed.c (mask_rtx, lshift_value): (Ditto.).
1265
1266 2010-04-20  Jan Hubicka  <jh@suse.cz>
1267
1268         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
1269         (dump_cgraph_node): Dump new flags.
1270         * cgraph.h (struct cgraph_node): Add flags
1271         reachable_from_other_partition and in_other_partition.
1272         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
1273         other partition can not be removed.
1274         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
1275         the other partition must be output; silence sanity checking on
1276         leaking functions bodies from other paritition.
1277         * lto-cgraph.c (reachable_from_other_partition_p): New function.
1278         (lto_output_node): Output new flags; do not sanity check that inline
1279         clones are output; drop lto_forced_extern_inline_p code; do not mock
1280         visibility flags at partition boundaries.
1281         (add_node_to): New function.
1282         (output_cgraph): Use it to sort functions so masters appear before
1283         clones.
1284         (input_overwrite_node): Input new flags.
1285         * passes.c (ipa_write_summaries): Do not call
1286         lto_new_extern_inline_states.
1287         * lto-section-out.c (forced_extern_inline,
1288         lto_new_extern_inline_states lto_delete_extern_inline_states,
1289         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
1290         * lto-streamer.h (lto_new_extern_inline_states,
1291         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
1292         lto_forced_extern_inline_p): Kill.
1293
1294 2010-04-20  Richard Guenther  <rguenther@suse.de>
1295
1296         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
1297         from vars that can have pointers.
1298         (process_constraint): Dump useless constraints.
1299
1300 2010-04-20  Richard Guenther  <rguenther@suse.de>
1301
1302         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
1303         (dump_sa_points_to_info): Remove asserts.
1304         (init_base_vars): nothing_id isn't an escape point nor does it
1305         have pointers.
1306
1307 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
1308
1309         * tree.h (TYPE_REF_IS_RVALUE): Define.
1310         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
1311         should_move_die_to_comdat, prune_unused_types_walk): Handle
1312         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
1313         (modified_type_die, gen_reference_type_die): Emit
1314         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
1315         if TYPE_REF_IS_RVALUE and -gdwarf-4.
1316
1317 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1318
1319         PR target/43635
1320         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
1321         calls for -fpic -m31 if they have been sibcall optimized.
1322
1323 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
1324
1325         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
1326         ar.lc fixed and call-used.
1327
1328         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
1329
1330 2010-04-19  Jan Hubicka  <jh@suse.cz>
1331
1332         * opts.c (decode_options): Disable whpr incompatible passes.
1333         * lto/lto.c (lto_1_to_1_map): Skip clones.
1334         (read_cgraph_and_symbols): Do not mark everything as needed.
1335         (do_whole_program_analysis): Do map only after optimizing;
1336         set proper cgraph_state; use passmanager.
1337
1338 2010-04-19  DJ Delorie  <dj@redhat.com>
1339
1340         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
1341         POINTER_PLUS_EXPR and fix them.
1342
1343 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
1344
1345         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
1346         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
1347         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
1348         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
1349         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
1350         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
1351         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
1352         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
1353         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
1354         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
1355         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
1356
1357 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
1358
1359         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
1360         (check_cond_move_block): Likewise.
1361         (cond_move_process_if_block): Likewise.
1362         (noce_find_if_block): Improve formatting.
1363         (find_if_header): Pass 0 to memset and tweak conditions.
1364         (cond_exec_find_if_block): Fix long lines and tweak conditions.
1365
1366 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1367
1368         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
1369         for -gdwarf-4.
1370
1371         PR middle-end/43337
1372         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
1373         with non-local decl doesn't need chain.
1374
1375 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
1376
1377         * ira-color.c (allocno_reload_assign): Avoid accumulating
1378         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
1379
1380 2010-04-19  Martin Jambor  <mjambor@suse.cz>
1381
1382         * gimple.h (create_tmp_reg): Declare.
1383         * gimplify.c (create_tmp_reg): New function.
1384         (gimplify_return_expr): Use create_tmp_reg.
1385         (gimplify_omp_atomic): Likewise.
1386         (gimple_regimplify_operands): Likewise.
1387         * tree-dfa.c (make_rename_temp): Likewise.
1388         * tree-predcom.c (predcom_tmp_var): Likewise.
1389         (reassociate_to_the_same_stmt): Likewise.
1390         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
1391         (get_replaced_param_substitute): Likewise.
1392         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
1393         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
1394         * tree-ssa-pre.c (get_representative_for): Likewise.
1395         (create_expression_by_pieces): Likewise.
1396         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
1397         (create_tailcall_accumulator): Likewise.
1398
1399 2010-04-19  Martin Jambor  <mjambor@suse.cz>
1400
1401         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
1402         new_stmt.
1403         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
1404
1405 2010-04-19  Richard Guenther  <rguenther@suse.de>
1406
1407         PR tree-optimization/43796
1408         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
1409         from SCEV in the lattice.
1410         (vrp_visit_phi_node): Dump change.
1411
1412 2010-04-19  Richard Guenther  <rguenther@suse.de>
1413
1414         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
1415         * configure: Re-generated.
1416
1417 2010-04-19  Richard Guenther  <rguenther@suse.de>
1418
1419         PR tree-optimization/43783
1420         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
1421         constant ARRAY_REF operands two and three if possible.
1422
1423 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
1424
1425         PR target/43766
1426         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
1427
1428 2010-04-19  Jie Zhang  <jie@codesourcery.com>
1429
1430         PR target/43662
1431         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
1432
1433 2010-04-19  Ira Rosen  <irar@il.ibm.com>
1434
1435         PR tree-optimization/37027
1436         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
1437         and macro to access it.
1438         (vectorizable_reduction): Add argument.
1439         (vect_get_slp_defs): Likewise.
1440         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
1441         statements for possible use in SLP.
1442         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
1443         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
1444         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
1445         add new argument.
1446         (vectorizable_reduction): Likewise.
1447         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
1448         vect_get_slp_defs.
1449         (vectorizable_type_demotion, vectorizable_type_promotion,
1450         vectorizable_store): Likewise.
1451         (vect_analyze_stmt): Update call to vectorizable_reduction.
1452         (vect_transform_stmt): Likewise.
1453         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
1454         (vect_build_slp_tree): Fix indentation. Check that there are no loads
1455         from different interleaving chains in same node.
1456         (vect_slp_rearrange_stmts): New function.
1457         (vect_supported_load_permutation_p): Allow load permutations for
1458         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
1459         inside SLP nodes if necessary.
1460         (vect_analyze_slp_instance): Handle reductions.
1461         (vect_analyze_slp): Try to build SLP instances originating from groups
1462         of reductions.
1463         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
1464         (vect_get_constant_vectors): Create initial vectors for reductions
1465         according to reduction code. Add new argument.
1466         (vect_get_slp_defs): Add new argument, pass it to
1467         vect_get_constant_vectors.
1468         (vect_schedule_slp_instance): Remove SLP tree root statements.
1469
1470 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
1471
1472         * tree.h (ENUM_IS_SCOPED): Define.
1473         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
1474         for ENUM_IS_SCOPED enums.
1475
1476 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
1477
1478         * fold-const.c (fold_comparison): Use ssizetype.
1479         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
1480         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
1481         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
1482         * tree-object-size.c (compute_object_sizes): Use size_type_node.
1483
1484         * tree.h (initialize_sizetypes): Remove parameter.
1485         (build_common_tree_nodes): Remove second parameter.
1486         * stor-layout.c (initialize_sizetypes): Remove parameter.
1487         Always create an unsigned type.
1488         (set_sizetype): Assert that the passed type is unsigned and simplify.
1489         * tree.c (build_common_tree_nodes): Remove second parameter.
1490         Adjust call to initialize_sizetypes.
1491         * c-decl.c (c_init_decl_processing): Remove second argument in call to
1492         build_common_tree_nodes.
1493
1494 2010-04-18  Matthias Klose  <doko@ubuntu.com>
1495
1496         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
1497
1498 2010-04-18  Ira Rosen  <irar@il.ibm.com>
1499
1500         PR tree-optimization/43771
1501         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
1502         load permutation doesn't have gaps.
1503
1504 2010-04-18  Jan Hubicka  <jh@suse.cz>
1505
1506         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
1507         (sse_prologue_save_insn expander): Use new pattern.
1508         (sse_prologue_save_insn1): New pattern and splitter.
1509         (sse_prologue_save_insn): Update to deal also with 64bit aligned
1510         blocks.
1511         * i386.c (setup_incoming_varargs_64): Do not compute jump
1512         destination here.
1513         (ix86_gimplify_va_arg): Update alignment needed.
1514         (ix86_local_alignment): Do not align all local arrays to 128bit.
1515
1516 2010-04-17  Jan Hubicka  <jh@suse.cz>
1517
1518         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
1519
1520 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1521
1522         * arm.md (negdi2): Remove redundant code to force values into a
1523         register.
1524
1525 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1526
1527         * arm/bpabi.S: Add EABI alignment attributes to objects.
1528         * arm/bpabi-v6m.S: Likewise.
1529         * arm/crti.asm: Likewise.
1530         * arm/crtn.asm: Likewise.
1531         * arm/lib1funcs.asm: Likewise.
1532         * arm/libunwind.S: Likewise.
1533
1534 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
1535
1536         * arm-protos.h (tune_params): New structure.
1537         * arm.c (current_tune): New variable.
1538         (arm_constant_limit): Delete.
1539         (struct processors): Add pointer to the tune parameters.
1540         (arm_slowmul_tune): New tuning option.
1541         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
1542         (all_cores): Adjust to pick up the tuning model.
1543         (arm_constant_limit): New function.
1544         (arm_override_options): Select the appropriate tuning model.  Delete
1545         initialization of arm_const_limit.
1546         (arm_split_constant): Use the new constant-limit model.
1547         (arm_rtx_costs): Pick up the current tuning model.
1548         * arm.md (is_strongarm, is_xscale): Delete.
1549         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
1550         for Xscale variant architectures.
1551         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
1552
1553 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1554
1555         * config/arm/arm.c (arm_gen_constant): Remove unused variable
1556         can_shift.
1557         (arm_rtx_costs_1): Remove unused variable extra_cost.
1558         (arm_unwind_emit_set): Use variable offset.
1559         (thumb1_output_casesi): Remove unused variable flags.
1560
1561 2010-04-16  Jeff Law  <law@redhat.com>
1562
1563         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
1564         needing assignment rather than doing a two-phase assignment.  Remove
1565         unused variable 'm'.
1566
1567 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1568
1569         PR bootstrap/43767
1570         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
1571
1572 2010-04-16  Doug Kwan  <dougkwan@google.com>
1573
1574         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
1575         (next_operand_entry_id): New static variable.
1576         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
1577         (add_to_ops_vec): Assigned unique ID to operand entry.
1578         (struct oecount_s): New field ID.
1579         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
1580         (undistribute_ops_list): Assign unique IDs to oecounts.
1581         (init_reassoc): reset next_operand_entry_id.
1582
1583 2010-04-16  Doug Kwan  <dougkwan@google.com>
1584
1585         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
1586         missing left parenthesis.
1587
1588 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
1589
1590         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
1591         *btdi_rex64 using SWI48 mode iterator.
1592         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
1593         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
1594         *jcc_btdi_mask_rex64.
1595
1596 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
1597
1598         * double-int.h (tree_to_double_int): Convert to macro.
1599         * double-int.c (tree_to_double_int): Remove.
1600
1601 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1602
1603         PR debug/43762
1604         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
1605         with want_address 2 and in case a single element list might be
1606         possible, call it again with want_address 0.
1607
1608 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
1609
1610         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
1611         case 'W' print operands for HI mode.
1612         * config/h8300/h8300.h (Y0, Y2) : New constraints.
1613         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
1614         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
1615         * config/h8300/predicate.md (bit_register_indirect_operand): New.
1616
1617         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
1618
1619         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
1620         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
1621         #xx:3 and #xx:4 mode.
1622
1623         * config/h8300/h8300.md (inverted load with HImode dest): Add
1624         support for H8300SX.
1625
1626         * config/h8300/predicate.md (bit_operand): Allow immediate values that
1627         satisfy 'U' constraint.
1628
1629 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1630
1631         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
1632         * configure: Regenerate.
1633         * config.in: Regenerate.
1634         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
1635         works.
1636
1637 2010-04-16  Richard Guenther  <rguenther@suse.de>
1638
1639         * tree.h (struct tree_decl_minimal): Move pt_uid ...
1640         (struct tree_decl_common): ... here.
1641         (DECL_PT_UID): Adjust.
1642         (SET_DECL_PT_UID): Likewise.
1643         (DECL_PT_UID_SET_P): Likewise.
1644
1645 2010-04-16  Richard Guenther  <rguenther@suse.de>
1646
1647         PR tree-optimization/43572
1648         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
1649         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
1650         * tree-flow.h (is_call_clobbered): Remove.
1651         * tree-flow-inline.h (is_call_clobbered): Likewise.
1652         * tree-dfa.c (dump_variable): Do not dump call clobber state.
1653         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
1654         (execute_return_slot_opt): Adjust.
1655         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
1656         check for call clobbered vars here.
1657         (find_tail_calls): Move tailcall verification to the
1658         proper place.
1659
1660 2010-04-16  Diego Novillo  <dnovillo@google.com>
1661
1662         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
1663
1664 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1665
1666         PR target/40603
1667         * config/arm/arm.md (cbranchqi4): New pattern.
1668         * config/arm/predicates.md (const0_operand,
1669         cbranchqi4_comparison_operator): New predicates.
1670
1671 2010-04-16  Richard Guenther  <rguenther@suse.de>
1672
1673         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
1674         (dump_gimple_stmt): Likewise.
1675
1676 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
1677
1678         * recog.h (struct recog_data): New field is_operator.
1679         (struct insn_operand_data): New field is_operator.
1680         * recog.c (extract_insn): Set recog_data.is_operator.
1681         * genoutput.c (output_operand_data): Emit code to set the
1682         is_operator field.
1683         * reload.c (find_reloads): Use it rather than testing for an
1684         empty constraint string.
1685
1686         PR target/41514
1687         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
1688         If the previous insn is a cbranchsi4_insn with the same arguments,
1689         omit the compare instruction.
1690
1691         * config/arm/arm.md (addsi3_cbranch): If destination is a high
1692         register, inputs must be low registers and we need a low register
1693         scratch.  Handle alternative 2 like alternative 3.
1694
1695 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
1696
1697         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
1698         don't call get_addr on both.  If one expression is a VALUE and
1699         the other a REG, check VALUE's locs if the REG isn't among them.
1700
1701 2010-04-16  Christian Bruel  <christian.bruel@st.com>
1702
1703         * config/sh/sh.h (sh_frame_pointer_required): New function.
1704         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
1705         (flag_omit_frame_pointer) Set.
1706         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
1707         (rounded_frame_size): Adjust size with outgoing_args_size.
1708         (sh_set_return_address): Must return from stack pointer.
1709         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
1710         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
1711         (ACCUMULATE_OUTGOING_ARGS): Define.
1712         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
1713         * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
1714
1715 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1716
1717         PR target/43471
1718         * config/sh/sh.c (sh_legitimize_reload_address): Use
1719         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
1720         Remove a unneeded check for offset_base.
1721
1722 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
1723
1724         * configure: Regenerated.
1725
1726 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1727
1728         * config/s390/s390.c (s390_call_save_register_used): Switch back
1729         to HARD_REGNO_NREGS.
1730
1731 2010-04-15  Richard Guenther  <rguenther@suse.de>
1732
1733         * alias.c (alias_set_subset_of): Handle alias-set zero
1734         child properly.
1735
1736 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
1737             Julian Brown  <julian@codesourcery.com>
1738
1739         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
1740         alternatives according to use of high and low regs.
1741         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
1742         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
1743         optimizing for size on Thumb-2.
1744
1745 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
1746
1747         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
1748
1749 2010-04-15  Richard Guenther  <rguenther@suse.de>
1750
1751         * tree-ssa-structalias.c (struct variable_info): Add
1752         is_fn_info flag.
1753         (new_var_info): Initialize it.
1754         (dump_constraints): Support printing last added constraints.
1755         (debug_constraints): Adjust.
1756         (dump_constraint_graph): Likewise.
1757         (make_heapvar_for): Check for NULL cfun.
1758         (get_function_part_constraint): New function.
1759         (get_fi_for_callee): Likewise.
1760         (find_func_aliases): Properly implement IPA PTA constraints.
1761         (process_ipa_clobber): New function.
1762         (find_func_clobbers): Likewise.
1763         (insert_into_field_list_sorted): Remove.
1764         (create_function_info_for): Properly allocate vars for IPA mode.
1765         Do not use insert_into_field_list_sorted.
1766         (create_variable_info_for): Properly generate constraints for
1767         global vars in IPA mode.
1768         (dump_solution_for_var): Always dump the solution.
1769         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
1770         (find_what_var_points_to): Adjust.
1771         (pt_solution_set): Change.
1772         (pt_solution_ior_into): New function.
1773         (pt_solution_empty_p): Export.
1774         (pt_solution_includes_global): Adjust.
1775         (pt_solution_includes_1): Likewise.
1776         (pt_solutions_intersect_1): Likewise.
1777         (dump_sa_points_to_info): Check some invariants.
1778         (solve_constraints): Move constraint dumping ...
1779         (compute_points_to_sets): ... here.
1780         (ipa_pta_execute): ... and here.
1781         (compute_may_aliases): Do not re-compute points-to info
1782         locally if IPA info is available.
1783         (ipa_escaped_pt): New global var.
1784         (ipa_pta_execute): Properly implement IPA PTA.
1785         * tree-into-ssa.c (dump_decl_set): Support dumping
1786         decls not in referenced-vars.
1787         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
1788         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
1789         (dump_points_to_solution): Likewise.
1790         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
1791         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
1792         (remap_gimple_stmt): Reset call clobber/use information if necessary.
1793         (copy_decl_to_var): Copy DECL_PT_UID.
1794         (copy_result_decl_to_var): Likewise.
1795         * tree.c (make_node_stat): Initialize DECL_PT_UID.
1796         (copy_node_stat): Copy it.
1797         * tree.h (DECL_PT_UID): New macro.
1798         (SET_DECL_PT_UID): Likewise.
1799         (DECL_PT_UID_SET_P): Likewise.
1800         (struct tree_decl_minimal): Add pt_uid member.
1801         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
1802         (pt_solution_empty_p): Declare.
1803         (pt_solution_set): Adjust.
1804         (ipa_escaped_pt): Declare.
1805         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
1806         * gimple-pretty-print.c (pp_points_to_solution): New function.
1807         (dump_gimple_call): Dump call clobber/use information.
1808         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
1809         * tree-pass.h (TDF_ALIAS): New dump option.
1810         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
1811         * doc/invoke.texi (-fipa-pta): Update documentation.
1812
1813 2010-04-15  Richard Guenther  <rguenther@suse.de>
1814
1815         * Makefile.in (OBJS-common): Add gimple-fold.o.
1816         (gimple-fold.o): New rule.
1817         * tree.h (maybe_fold_offset_to_reference,
1818         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
1819         prototypes ...
1820         * gimple.h: ... here.
1821         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
1822         may_propagate_address_into_dereference): Move prototypes ...
1823         * gimple.h: ... here.
1824         * tree-ssa-ccp.c (get_symbol_constant_value,
1825         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
1826         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
1827         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
1828         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
1829         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
1830         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
1831         gimplify_and_update_call_from_tree): Move ...
1832         * gimple-fold.c: ... here.  New file.
1833         (ccp_fold_builtin): Rename to ...
1834         (gimple_fold_builtin): ... this.
1835         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
1836
1837 2010-04-15  Richard Guenther  <rguenther@suse.de>
1838
1839         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
1840         fit_double_type, force_fit_type_double, add_double_with_sign,
1841         neg_double, mul_double_with_sign, lshift_double, rshift_double,
1842         lrotate_double, rrotate_double, div_and_round_double): Move ...
1843         * double-int.c: ... here.
1844         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
1845         add_double, neg_double, mul_double_with_sign, mul_double,
1846         lshift_double, rshift_double, lrotate_double, rrotate_double,
1847         div_and_round_double): Move prototypes ...
1848         * double-int.h: ... here.
1849
1850 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
1851
1852         PR target/43742
1853         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
1854         matching constraints to ensure inputs match the output.
1855
1856 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1857
1858         PR target/43742
1859         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
1860         in an input-only operand.
1861
1862 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
1863
1864         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
1865         (double_int_not, double_int_lshift, double_int_rshift): Declare.
1866         (double_int_negative_p): Convert to static inline function.
1867         * double-int.c (double_int_lshift, double_int_lshift): New functions.
1868         (double_int_negative_p): Remove.
1869         * tree.h (lshift_double, rshift_double):
1870         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
1871         * fold-const.c (fold_convert_const_int_from_real,
1872         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
1873         (lshift_double): Change type of arith argument to bool.
1874         (rshift_double): Change type of arith argument to bool. Correct
1875         comment.
1876         * expmed.c (mask_rtx, lshift_value): (Ditto.).
1877
1878 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
1879
1880         PR target/21803
1881         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
1882         at the start and end of the then/else blocks, and omit them from the
1883         conversion.
1884         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
1885         argument; all callers changed.  Pass zero to old_insns_match_p instead.
1886         (flow_find_head_matching_sequence): New function.
1887         (old_insns_match_p): Check REG_EH_REGION notes for calls.
1888         * basic-block.h (flow_find_cross_jump,
1889         flow_find_head_matching_sequence): Declare functions.
1890
1891 2010-04-14  Jason Merrill  <jason@redhat.com>
1892
1893         PR c++/36625
1894         * c-common.c (attribute_takes_identifier_p): New fn.
1895         * c-common.h: Declare it.
1896
1897 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1898
1899         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
1900         splitter condition.
1901         (*udivmod<mode>4): Ditto.
1902
1903 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1904
1905         * config/i386/i386.md (maxmin_int): Rename code attribute from
1906         maxminiprefix and update all users.
1907         (maxmin_float): Ditto from maxminfprefix.
1908         (logic): Ditto from logicprefix.
1909         (absneg_mnemonic): Ditto from absnegprefix.
1910         * config/i386/mmx.md: Update all users of maxminiprefix,
1911         maxminfprefix and logicprefix for rename.
1912         * config/i386/sse.md: Ditto.
1913         * config/i386/sync.md (sync_<code><mode>): Update for
1914         logicprefix rename.
1915
1916 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1917
1918         PR 42966
1919         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
1920         warnings converted to errors.
1921
1922 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1923
1924         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
1925         used insn_type variable.
1926         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
1927         to avoid set-but-not-used warning.
1928
1929 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1930
1931         * df-core.c (df_ref_debug): Change format string placeholder
1932         from 0x%x to %#x.
1933         * dwarf2asm.c (dw2_asm_output_data_raw,
1934         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
1935         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
1936         * dwarf2out.c (output_cfi, output_cfi_directive,
1937         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
1938         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
1939         Ditto.
1940         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
1941         * print-rtl.c (print_rtx): Ditto.
1942
1943 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1944
1945         PR middle-end/42694
1946         * builtins.c (expand_builtin_pow_root): New function to expand pow
1947         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
1948         series of sqrt and cbrt calls under -ffast-math.
1949         (expand_builtin_pow): Call it.
1950
1951 2010-04-14  Michael Matz  <matz@suse.de>
1952
1953         PR tree-optimization/42963
1954         * tree-cfg.c (touched_switch_bbs): New static variable.
1955         (group_case_labels_stmt): New function broken out from ...
1956         (group_case_labels): ... here, use the above.
1957         (start_recording_case_labels): Allocate touched_switch_bbs.
1958         (end_recording_case_labels): Deallocate it, call
1959         group_case_labels_stmt.
1960         (gimple_redirect_edge_and_branch): Remember index of affected BB.
1961
1962 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1963
1964         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
1965         from insn template.
1966
1967 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
1968
1969         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
1970
1971 2010-04-13  Jan Hubicka  <jh@suse.cz>
1972
1973         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
1974         of optimized out static functions.
1975         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
1976         cost computation.  Also sanity check for overflows.
1977         (update_caller_keys): Update cgraph_edge_badness call; properly
1978         update fibheap and sanity check that it is up to date.
1979         (add_new_edges_to_heap): Update cgraph_edge_badness.
1980         (cgraph_decide_inlining_of_small_function): Likewise;
1981         add sanity checking that badness in heap is up to date;
1982         improve dumping of reason; Update badness of calls to the
1983         offline copy of function currently inlined; dump badness
1984         of functions not inlined because of unit growth limits.
1985
1986 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
1987
1988         PR middle-end/32628
1989         * c-common.c (pointer_int_sum): Disregard overflow that occured only
1990         because of sign-extension change when converting to sizetype here...
1991         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
1992
1993         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
1994         the folding to constants.  Remove redundant final conversion.
1995         (fold_binary) <associate>: Do not associate if the re-association of
1996         constants alone overflows.
1997         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
1998         to the end of the list.
1999         (multiple_of_p) <COND_EXPR>: New case.
2000
2001 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2002
2003         * opt-functions.awk (opt_sanitized_name): New.
2004         (opt_enum): New.
2005         * optc-gen.awk: Use it
2006         * opth-gen.awk: Use it.
2007
2008 2010-04-13  Martin Jambor  <mjambor@suse.cz>
2009
2010         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
2011         (sra_modify_assign): Delete stmts loading dead data even if racc has no
2012         children.  Call replace_uses_with_default_def_ssa_name to handle
2013         SSA_NAES on lhs.
2014
2015 2010-04-13  Michael Matz  <matz@suse.de>
2016
2017         PR middle-end/43730
2018         * builtins.c (expand_builtin_interclass_mathfn): Also create
2019         a register if the predicate doesn't match.
2020
2021 2010-04-13  Diego Novillo  <dnovillo@google.com>
2022
2023         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
2024         * c-pch.c: Include timevar.h.
2025         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
2026         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
2027         * ggc-common.c: Include timevar.h.
2028         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
2029         * timevar.def (TV_PCH_SAVE): Define.
2030         (TV_PCH_CPP_SAVE): Define.
2031         (TV_PCH_PTR_REALLOC): Define.
2032         (TV_PCH_PTR_SORT): Define.
2033         (TV_PCH_RESTORE): Define.
2034         (TV_PCH_CPP_RESTORE): Define.
2035
2036 2010-04-13  Michael Matz  <matz@suse.de>
2037
2038         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
2039         into MINUS_EXPRs.
2040         (can_reassociate_p): New function.
2041         (break_up_subtract_bb, reassociate_bb): Use it.
2042
2043 2010-04-13  Richard Guenther  <rguenther@suse.de>
2044
2045         PR bootstrap/43737
2046         * builtins.c (c_readstr): Fix assert.
2047
2048 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
2049
2050         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
2051         when generating cltd insn.
2052
2053         (*ashl<mode>3_1): Remove special handling for register operand 2.
2054         (*ashlsi3_1_zext): Ditto.
2055         (*ashlhi3_1): Ditto.
2056         (*ashlhi3_1_lea): Ditto.
2057         (*ashlqi3_1): Ditto.
2058         (*ashlqi3_1_lea): Ditto.
2059         (*<shiftrt_insn><mode>3_1): Ditto.
2060         (*<shiftrt_insn>si3_1_zext): Ditto.
2061         (*<shiftrt_insn>qi3_1_slp): Ditto.
2062         (*<rotate_insn><mode>3_1): Ditto.
2063         (*<rotate_insn>si3_1_zext): Ditto.
2064         (*<rotate_insn>qi3_1_slp): Ditto.
2065
2066 2010-04-13  Richard Guenther  <rguenther@suse.de>
2067
2068         * tree-ssa-structalias.c (callused_id): Remove.
2069         (call_stmt_vars): New.
2070         (get_call_vi): Likewise.
2071         (lookup_call_use_vi): Likewise.
2072         (lookup_call_clobber_vi): Likewise.
2073         (get_call_use_vi): Likewise.
2074         (get_call_clobber_vi): Likewise.
2075         (make_transitive_closure_constraints): Likewise.
2076         (handle_const_call): Adjust to do per-call call-used handling.
2077         (handle_pure_call): Likewise.
2078         (find_what_var_points_to): Remove general callused handling.
2079         (init_base_vars): Likewise.
2080         (init_alias_vars): Initialize call_stmt_vars.
2081         (compute_points_to_sets): Process call-used and call-clobbered
2082         vars for call statements.
2083         (delete_points_to_sets): Free call_stmt_vars.
2084
2085 2010-04-13  Richard Guenther  <rguenther@suse.de>
2086
2087         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
2088         Only add RW dependence for dependence distance zero.
2089         Adjust maximal vectorization factor according to dependences.
2090         Move alignment handling ...
2091         (vect_find_same_alignment_drs): ... here.  New function.
2092         (vect_analyze_data_ref_dependences): Adjust.
2093         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
2094         (vect_analyze_data_refs): Adjust minimal vectorization factor
2095         according to data references.
2096         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
2097         dependences before determining the vectorization factor.
2098         Analyze alignment after determining the vectorization factor.
2099         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
2100         dependences before alignment.
2101         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
2102         Adjust prototype.
2103         (vect_analyze_data_refs): Likewise.
2104         (MAX_VECTORIZATION_FACTOR): New define.
2105
2106 2010-04-13  Duncan Sands  <baldrick@free.fr>
2107
2108         * except.h (lang_eh_type_covers): Remove.
2109         * except.c (lang_eh_type_covers): Likewise.
2110
2111 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2112             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2113
2114         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
2115         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
2116         UNITS_PER_LONG where it is ABI relevant.
2117         (s390_return_addr_rtx): Likewise.
2118         (s390_back_chain_rtx): Likewise.
2119         (s390_frame_area): Likewise.
2120         (s390_frame_info): Likewise.
2121         (s390_initial_elimination_offset): Likewise.
2122         (save_gprs): Likewise.
2123         (s390_emit_prologue): Likewise.
2124         (s390_emit_epilogue): Likewise.
2125         (s390_function_arg_advance): Likewise.
2126         (s390_function_arg): Likewise.
2127         (s390_va_start): Likewise.
2128         (s390_gimplify_va_arg): Likewise.
2129         (s390_function_profiler): Likewise.
2130         (s390_optimize_prologue): Likewise.
2131         (s390_rtx_costs): Likewise.
2132         (s390_secondary_reload): Likewise.
2133         (s390_promote_function_mode): Likewise.
2134         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
2135         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
2136         registers available.
2137         (s390_unwind_word_mode): New function.
2138         (s390_function_value): Split 64 bit values into register pair if
2139         used as return value.
2140         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
2141         function call parameters.  Handle parallels.
2142         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
2143         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
2144         (DWARF_CIE_DATA_ALIGNMENT): New macro.
2145         (s390_expand_setmem): Remove unused variable src_addr.
2146         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
2147         deal with 64 bit registers.
2148         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
2149         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
2150         (UNITS_PER_LONG): New macro.
2151         * libjava/include/s390-signal.h: Define extended ucontext
2152         structure containing the upper halfs of the 64 bit registers.
2153
2154 2010-04-13  Simon Baldwin  <simonb@google.com>
2155
2156         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
2157
2158 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
2159
2160         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
2161         rvalue on the RHS if the LHS is of a non-renamable type.
2162         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
2163
2164 2010-04-13  Matthias Klose  <doko@ubuntu.com>
2165
2166         * gcc.c (cc1_options): Handle -iplugindir before processing
2167         the cc1 spec. Only add -iplugindir once.
2168         (cpp_unique_options): Add -iplugindir option if -fplugin* options
2169         found.
2170         * common.opt (iplugindir): Remove `Separate' property, initialize.
2171         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
2172         option.
2173         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
2174         (distclean): Remove plugin dir.
2175         * doc/invoke.texi: Document -iplugindir.
2176
2177 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
2178
2179         * doc/plugins.texi (Loading Plugins): Document short
2180         -fplugin=foo option.
2181         (Plugin API): Mention default_plugin_dir_name function.
2182
2183         * gcc.c (find_file_spec_function): Add new declaration.
2184         (static_spec_func): Use it for "find-file".
2185         (find_file_spec_function): Add new function.
2186         (cc1_options): Add -iplugindir option if -fplugin* options found.
2187
2188         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
2189
2190         * plugin.c (add_new_plugin): Updated comment, and handle short
2191         plugin name.
2192         (default_plugin_dir_name): Added new function.
2193
2194         * common.opt (iplugindir): New option to set the plugin directory.
2195
2196 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
2197
2198         * config/i386/i386.md (any_rotate): New code iterator.
2199         (rotate_insn): New code attribute.
2200         (rotate): Ditto.
2201         (SWIM124): New mode iterator.
2202         (<rotate_insn>ti3): New expander.
2203         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
2204         any_rotate code iterator.
2205         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
2206         using any_rotate code iterator and SWIM124 mode iterator.
2207         (ix86_rotlti3): New insn_and_split pattern.
2208         (ix86_rotrti3): Ditto.
2209         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
2210         ix86_rotl{di,ti}3 patterns.
2211         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
2212         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
2213         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
2214         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
2215         code iterator and SWI mode iterator.
2216         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
2217         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
2218         code iterator.
2219         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
2220         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
2221         (bswap rotatert splitter): Add splitter.
2222         (bswap splitter): Macroize splitter using any_rotate code iterator.
2223         Add insn predicate to split only for TARGET_USE_XCHGB or when
2224         optimizing function for size.
2225
2226 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
2227
2228         * config/pa/pa.c (emit_move_sequence): Remove use of
2229         deleted variable flag_argument_noalias.
2230
2231 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2232
2233         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
2234         configurations.
2235         Add to unsupported targets list.
2236         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
2237         sparc*-sun-solaris2.[567]* from target lists.
2238         * configure: Regenerate.
2239         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
2240         removal.
2241         Remove Solaris 7 patch references.
2242         (Specific, sparc-sun-solaris2.7): Removed.
2243         (sparc-sun-solaris2*): Update Solaris 7 example.
2244         (sparc64-*-solaris2*): Likewise.
2245
2246 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2247
2248         * config.build (alpha*-dec-osf4*): Remove.
2249         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
2250         of obsolete configurations.
2251         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
2252         support.
2253         * config/alpha/t-osf4: Renamed to ...
2254         * config/alpha/t-osf5: ... this.
2255         * config/alpha/osf.h: Renamed to ...
2256         * config/alpha/osf5.h: ... this.
2257         Merged old osf5.h contents.
2258         Update comments.
2259         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
2260         (EXTRA_SPECS): Removed.
2261         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
2262         reflect removal of Tru64 UNIX V4.0/V5.0 support.
2263         Document that.
2264
2265 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2266
2267         * doc/contrib.texi (Contributors, Rainer Orth): Update.
2268
2269 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
2270
2271         PR/43702
2272         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
2273         __thiscall convention.
2274
2275 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
2276
2277         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
2278         orig_base.
2279         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
2280
2281 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
2282
2283         * function.c (assign_parms_initialize_all): Add unused attribute
2284         to fntype.
2285
2286 2010-04-12  Richard Guenther  <rguenther@suse.de>
2287
2288         * gsstruct.def (GSS_CALL): New.
2289         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
2290         * gimple.h: Include tree-ssa-alias.h.
2291         (struct gimple_statement_call): New.
2292         (union gimple_statement_struct_d): Add gimple_call member.
2293         (gimple_call_reset_alias_info): Declare.
2294         (gimple_call_use_set): New function.
2295         (gimple_call_clobber_set): Likewise.
2296         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
2297         * gimple.c (gimple_call_reset_alias_info): New function.
2298         (gimple_build_call_1): Call it.
2299         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2300         * tree-inline.c (remap_gimple_stmt): Likewise.
2301         (expand_call_inline): Remove callused handling.
2302         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
2303         * tree-dfa.c (dump_variable): Likewise.
2304         * tree-parloops.c (parallelize_loops): Likewise.
2305         * tree-ssa.c (init_tree_ssa): Likewise.
2306         (delete_tree_ssa): Likewise.
2307         * tree-flow-inline.h (is_call_used): Remove.
2308         * tree-flow.h (struct gimple_df): Remove callused member.
2309         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
2310         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
2311         (ref_maybe_used_by_call_p_1): Simplify.
2312         (call_may_clobber_ref_p_1): Likewise.
2313         * tree-ssa-structalias.c (compute_points_to_sets): Set
2314         the call stmt used and clobbered sets.
2315         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
2316         (find_tail_calls): Verify the tail call.
2317
2318 2010-04-12  Richard Guenther  <rguenther@suse.de>
2319
2320         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
2321         single-iteration always-inline inlining.
2322         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
2323         (cgraph_decide_inlining): Do not handle always-inline specially.
2324         (try_inline): Remove always-inline cycle detection special case.
2325         Do not recurse on always-inlines.
2326         (cgraph_early_inlining): Do not iterate if not optimizing.
2327         (cgraph_gate_early_inlining): remove.
2328         (pass_early_inline): Run unconditionally.
2329         (gate_cgraph_decide_inlining): New function.
2330         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
2331         not inlining or optimizing.
2332         (cgraph_decide_inlining_of_small_functions): Also consider
2333         always-inline functions.
2334         (cgraph_default_inline_p): Return true for nodes which should
2335         disregard inline limits.
2336         (estimate_function_body_sizes): Assume zero size and time for
2337         nodes which are marked as disregarding inline limits.
2338         (cgraph_decide_recursive_inlining): Do not perform recursive
2339         inlining on always-inline nodes.
2340
2341 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
2342
2343         PR bootstrap/43699
2344         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
2345         for exprs satisfying handled_component_p.
2346
2347 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
2348
2349         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
2350         non-constant aggregate elements.
2351
2352         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
2353         is a real initialization.
2354
2355 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
2356
2357         PR c/36774
2358         * c-decl.c (start_function): Move forward check for nested function.
2359
2360 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2361
2362         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
2363         * config/sh/sh.c: Include reload.h.
2364         (sh_legitimize_reload_address): New.
2365         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
2366         sh_legitimize_reload_address.
2367
2368 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
2369
2370         * config/sh/sh.md (*movqi_pop): New insn pattern.
2371         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
2372
2373 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2374
2375         * config/i386/i386.md (any_shiftrt): New code iterator.
2376         (shiftrt_insn): New code attribute.
2377         (shiftrt): Ditto.
2378         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
2379         using any_shiftrt code iterator.
2380         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
2381         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
2382         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
2383         pattern from corresponding peephole2 patterns.
2384         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
2385         using any_shiftrt code iterator.
2386         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
2387         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
2388         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
2389         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
2390         *{ashr,lshr}<mode>3_cmp_zext.
2391         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
2392
2393 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2394
2395         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
2396         scratch register.
2397         (*lshr<mode>3_cconly): Ditto.
2398
2399 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
2400
2401         * config/i386/i386.md (lshr<mode>3): Macroize expander from
2402         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2403         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2404         pattern from *lshr{di,ti}3_1 and corresponding splitters using
2405         DWI mode iterator.
2406         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2407         from corresponding peephole2 patterns.
2408         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
2409         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
2410         and *lshrdi3_1_rex64 using SWI mode iterator.
2411         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
2412         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
2413         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
2414         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
2415         and *lshrdi3_cmp_rex64 using SWI mode iterator.
2416         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
2417         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
2418         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
2419         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
2420         SWI mode iterator.
2421
2422 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
2423
2424         * config/i386/i386.md (ashr<mode>3): Macroize expander from
2425         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
2426         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2427         pattern from *ashr{di,ti}3_1 and corresponding splitters using
2428         DWI mode iterator.
2429         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
2430         from corresponding peephole2 patterns.
2431         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
2432         (ashrsi3_cvt): Rename from ashrsi3_31.
2433         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
2434         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
2435         and x86_64_shift_adj_3 using SWI48 mode iterator.
2436         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
2437         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
2438         and *ashrdi3_1_rex64 using SWI mode iterator.
2439         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
2440         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
2441         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
2442         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
2443         and *ashrdi3_cmp_rex64 using SWI mode iterator.
2444         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
2445         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
2446         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
2447         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
2448         SWI mode iterator.
2449         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
2450         * config/i386/i386.c (ix86_split_ashr): Update for renamed
2451         x86_shift<mode>_adj_3 expanders.
2452
2453 2010-04-10  Wei Guozhi  <carrot@google.com>
2454
2455         PR target/42601
2456         * config/arm/arm.c (arm_pic_static_addr): New function.
2457         (legitimize_pic_address): Call arm_pic_static_addr when it detects
2458         a static symbol.
2459         (arm_output_addr_const_extra): Output expression for new pattern.
2460         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
2461
2462 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
2463
2464         * ira-costs.c (record_reg_classes): Ignore alternatives that are
2465         not enabled.
2466
2467         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
2468         * web.c: Include "insn-config.h" and "recog.h".
2469         (union_match_dups): New function.
2470         (web_main): Call it.
2471         (union_defs): Don't try to recognize match_dups.
2472
2473         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
2474         if doing so would replace the entire pattern.
2475
2476 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
2477
2478         PR target/43707
2479         PR target/43709
2480         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
2481         and splitter pattern.  Change splitter operand 1 predicate to
2482         nonmemory_operand.
2483
2484 2010-04-09  Martin Jambor  <mjambor@suse.cz>
2485
2486         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
2487         lattices are addresses of CONST_DECLs with the same initial value.
2488         (ipcp_print_all_lattices): Print values of CONST_DECLs.
2489         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
2490
2491 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
2492             Bernd Schmidt  <bernds@codesourcery.com>
2493
2494         * loop-invariant.c (replace_uses): New static function.
2495         (move_invariant_reg): Use it to ensure we can replace the uses.
2496
2497 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
2498
2499         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
2500         function template.
2501         (picochip_override_options): Enable section anchors only above -O1.
2502         (picochip_reorg): Fixed a couple of build warnings.
2503
2504 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2505
2506         * configure.ac (plugin -rdynamic test): Log result.
2507         * configure: Regenerate.
2508         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
2509         (RDYNAMIC_SPEC): Define.
2510         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
2511
2512 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2513
2514         * configure.ac: Determine Sun ld version numbers.
2515         (comdat_group): Restrict GNU ld version checks to gld.
2516         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
2517         (enable_comdat): Support --enable-comdat.
2518         * configure: Regenerate.
2519         * doc/install.texi (Configuration): Document --enable-comdat.
2520
2521 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2522
2523         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
2524         * config/sol2-gld.h: ... here.
2525         * config.gcc (sparc*-*-solaris2*): Reflect this.
2526         (i[34567]86-*-solaris2*): Use it.
2527
2528 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
2529
2530         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
2531         setup_clocks_p.
2532         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
2533
2534 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2535
2536         PR 42965
2537         * diagnostic.c (diagnostic_initialize): Initialize
2538         some_warnings_are_errors.
2539         (diagnostic_finish): New.
2540         (diagnostic_action_after_output): Call it before exiting.
2541         (diagnostic_report_diagnostic): Do not print message here. Set
2542         some_warnings_are_errors.
2543         * diagnostic.h (diagnostic_context): Delete
2544         issue_warnings_are_errors_message. Add some_warnings_are_errors.
2545         (diagnostic_finish): Declare.
2546         * toplev.c (toplev_main): Call it before exit.
2547
2548 2010-04-09  Jason Merrill  <jason@redhat.com>
2549
2550         PR c++/42623
2551         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
2552         for incomplete type.
2553
2554         PR c++/41788
2555         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
2556         based on a warning flag.
2557
2558 2010-04-09  Richard Guenther  <rguenther@suse.de>
2559
2560         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
2561
2562 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
2563
2564         PR bootstrap/43684
2565         * varasm.c (default_assemble_visibility): Wrap vars that are
2566         set, but unused, by targets without GAS.
2567         * config/rs6000/rs6000.c: (paired_emit_vector_compare):
2568         Remove set, but unused, vars.
2569         (rs6000_legitimize_tls_address): Likewise.
2570         (altivec_expand_dst_builtin): Likewise.
2571         * config/darwin.c (machopic_classify_symbol): Likewise.
2572         (machopic_indirection_name): Likewise.
2573
2574 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
2575
2576         * config/i386/i386.md (DWI): New mode iterator.
2577         (S): New mode attribute.
2578         (shift_operand): Ditto.
2579         (shift_immediate_operand): Ditto.
2580         (ashl_input_operand): Ditto.
2581         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
2582         using SDWIM mode iterator.
2583         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
2584         pattern from *ashl{di,ti}3_1 and corresponding splitters using
2585         DWI mode iterator.
2586         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
2587         from corresponding peephole2 patterns.
2588         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
2589         and x86_64_shift_adj_1 using SWI48 mode iterator.
2590         (x86_shift<mode>_adj_2): Ditto.
2591         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
2592         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
2593         using SWI48 mode iterator.
2594         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
2595         *ashldi3_cmp_rex64 using SWI mode iterator.
2596         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
2597         *ashldi3_cconly_rex64 using SWI mode iterator.
2598         * config/i386/i386.c (ix86_split_ashl): Update for renamed
2599         x86_shift<mode>_adj_{1,2}.
2600         (ix86_split_ashr): Ditto.
2601         (ix86_split_lshr): Ditto.
2602
2603 2010-04-09  Richard Guenther  <rguenther@suse.de>
2604
2605         * target.h (builtin_conversion): Pass in input and output types.
2606         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
2607         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
2608         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
2609         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
2610
2611         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
2612         Handle AVX modes.
2613         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
2614
2615 2010-04-09  Richard Guenther  <rguenther@suse.de>
2616
2617         PR target/43152
2618         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
2619
2620 2010-04-09  Richard Guenther  <rguenther@suse.de>
2621
2622         * tree-vectorizer.h (struct _stmt_vec_info): Document
2623         that vectype is the type of the LHS.
2624         (supportable_widening_operation, supportable_narrowing_operation):
2625         Get both input and output vector types as arguments.
2626         (vect_is_simple_use_1): Declare.
2627         (get_same_sized_vectype): Likewise.
2628         * tree-vect-loop.c (vect_determine_vectorization_factor):
2629         Set STMT_VINFO_VECTYPE to the vector type of the def.
2630         (vectorizable_reduction): Adjust.
2631         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
2632         Adjust.  Specify the output vector type.
2633         (vect_pattern_recog_1): Adjust.
2634         * tree-vect-stmts.c (get_same_sized_vectype): New function.
2635         (vectorizable_call): Adjust.
2636         (vectorizable_conversion): Likewise.
2637         (vectorizable_operation): Likewise.
2638         (vectorizable_type_demotion): Likewise.
2639         (vectorizable_type_promotion): Likewise.
2640         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
2641         the def.
2642         (vect_is_simple_use_1): New function.
2643         (supportable_widening_operation): Get both input and output
2644         vector types.
2645         (supportable_narrowing_operation): Likewise.
2646         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
2647
2648 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
2649
2650         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
2651         __thiscall and _thiscall as predefined macros.
2652         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
2653         thiscall attribute handling.
2654         (ix86_comp_type_attributes): Likewise.
2655         (ix86_function_regparm): Likewise.
2656         (ix86_return_pops_args): Likewise.
2657         (init_cumulative_args): Likewise.
2658         (find_drap_reg): Likewise.
2659         (ix86_static_chain): Likewise.
2660         (x86_this_parameter): Likewise.
2661         (x86_output_mi_thunk): Likewise.
2662         (ix86_attribute_table): Add description for thiscall attribute.
2663         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
2664         * doc/extend.texi: Add documentation for thiscall.
2665
2666 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2667
2668         PR c++/28584
2669         * c.opt (Wint-to-pointer-cast): Available in C++.
2670         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
2671
2672 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
2673
2674         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
2675         * calls.c (expand_call): Pass the function type to aggregate_value_p.
2676         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
2677         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
2678         function type instead.  Reorder and simplify checks.
2679
2680         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
2681
2682 2010-04-08  Jing Yu  <jingyu@google.com>
2683             Zdenek Dvorak  <ook@ucw.cz>
2684
2685         PR tree-optimization/42720
2686         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
2687         loop unswitch conditions here from ...
2688         (tree_unswitch_single_loop): ... here.
2689
2690 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2691
2692         * tree-if-conv.c: Fix comments and simplify logic.
2693
2694 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2695
2696         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
2697         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
2698         (main_tree_if_conversion): Update call to tree_if_conversion.
2699
2700 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2701
2702         PR 42485
2703         * doc/invoke.texi (-b,-V): Delete.
2704         * doc/tm.texi: Do not mention -b.
2705         * gcc.c (display_help): Delete -b and -V.
2706         (process_command): Delete -b and -V.
2707         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
2708
2709 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
2710             Wolfgang Gellerich  <gellerich@de.ibm.com>
2711
2712         Implement target hook for loop unrolling
2713         * target.h (loop_unroll_adjust): Add a new target hook function.
2714         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
2715         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
2716         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
2717         (s390_loop_unroll_adjust): Implement the new target hook for s390.
2718         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
2719         target hook.
2720         (decide_unroll_stupid): Likewise.
2721
2722 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2723
2724         PR target/43643
2725         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
2726
2727 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2728
2729         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
2730         (Specific, *-*-solaris2*): Likewise.
2731         Don't prefer Sun as over GNU as.
2732
2733 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
2734
2735         * config/s390/s390.c (override_options): Adjust the z10
2736           defaults for max-unroll-times, max-completely-peeled-insns
2737           and max-completely-peel-times.
2738
2739 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2740
2741         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
2742         instructions for z10.
2743         (s390_expand_setmem): Likewise.
2744         (s390_expand_cmpmem): Likewise.
2745
2746 2010-04-08  Richard Guenther  <rguenther@suse.de>
2747
2748         PR tree-optimization/43679
2749         * tree-ssa-pre.c (eliminate): Only propagate copies.
2750
2751 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
2752
2753         PR bootstrap/43681
2754         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
2755         set but not used variable warning.
2756
2757 2010-04-08  Wei Guozhi  <carrot@google.com>
2758
2759         PR target/41653
2760         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
2761         (arm_size_rtx_costs): Call the new function when optimized for size.
2762
2763 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
2764
2765         PR debug/43670
2766         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
2767         op0 is not a MEM, just return NULL instead of assertion
2768         failure.
2769         (discover_nonconstant_array_refs): Don't walk debug stmts.
2770
2771 2010-04-08  Doug Kwan  <dougkwan@google.com>
2772
2773         * configure.ac: Recognize gold and do not use its version number
2774         to test ld features.
2775         * configure: Regenerate.
2776
2777 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2778
2779         PR middle-end/40815
2780         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
2781         (negate_value): Move code to push elements to broken_up_substracts ...
2782         (eliminate_plus_minus_pair): ... here.  Push operands that have no
2783         negative pair to plus_negates.
2784         (repropagate_negates, init_reassoc, fini_reassoc): Update.
2785
2786 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2787
2788         * doc/install.texi (Configuration): Move description of
2789         --enable-lto, --with-libelf*, --enable-gold from Java section to
2790         general section.
2791
2792         * doc/generic.texi (Working with declarations)
2793         (Function Properties, C and C++ Trees): Fix typos.
2794         * doc/sourcebuild.texi (Top Level): Likewise.
2795
2796 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
2797
2798         PR c/18624
2799         * tree.h (DECL_READ_P): Define.
2800         (struct tree_decl_common): Add decl_read_flag.
2801         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
2802         a set but not used warning.
2803         (merge_decls): Merge DECL_READ_P flag.
2804         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
2805         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
2806         * c-common.c (handle_used_attribute, handle_unused_attribute):
2807         Likewise.
2808         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
2809         New prototypes.
2810         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
2811         New functions.
2812         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
2813         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
2814         c_parser_binary_expression, c_parser_cast_expression,
2815         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
2816         Call default_function_array_read_conversion instead of
2817         default_function_array_conversion where needed.
2818         (c_parser_unary_expression, c_parser_conditional_expression,
2819         c_parser_postfix_expression_after_primary, c_parser_initelt):
2820         Likewise.  Call mark_exp_read where needed.
2821         (c_parser_statement_after_labels, c_parser_asm_operands,
2822         c_parser_typeof_specifier, c_parser_sizeof_expression,
2823         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
2824         where needed.
2825         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
2826         New.
2827         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
2828         (warn_unused_but_set_parameter): Default to warn_unused
2829         && extra_warnings.
2830         * doc/invoke.texi: Document -Wunused-but-set-variable and
2831         -Wunused-but-set-parameter.
2832
2833         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
2834         used count variable.
2835         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
2836         when operandN variables aren't used in the body of the expander
2837         or splitter.
2838         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
2839         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
2840         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
2841         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
2842         FOR_EACH_IMM_USE_ON_STMT): Likewise.
2843         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
2844         * tree.c (PROCESS_ARG): Likewise.
2845
2846 2010-04-07  Simon Baldwin  <simonb@google.com>
2847
2848         * diagnostic.h (diagnostic_override_option_index): New macro to
2849         set a diagnostic's option_index.
2850         * c-tree.h (c_cpp_error): Add warning reason argument.
2851         * opts.c (_warning_as_error_callback): New.
2852         (register_warning_as_error_callback): Store callback for
2853         warnings enabled via enable_warning_as_error.
2854         (enable_warning_as_error): Call callback, minor code tidy.
2855         * opts.h (register_warning_as_error_callback): Declare.
2856         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
2857         response to -Werror=.
2858         (c_common_init_options): Register warning_as_error_callback in opts.c.
2859         * common.opt: Add -Wno-cpp option.
2860         * c-common.c (struct reason_option_codes_t): Map cpp warning
2861         reason codes to gcc option indexes.
2862         * (c_option_controlling_cpp_error): New function, lookup the gcc
2863         option index for a cpp warning reason code.
2864         * (c_cpp_error): Add warning reason argument, call
2865         c_option_controlling_cpp_error for diagnostic_override_option_index.
2866         * doc/invoke.texi: Document -Wno-cpp.
2867
2868 2010-04-07  Richard Guenther  <rguenther@suse.de>
2869
2870         * ipa-reference.c (mark_load): Use get_base_address.
2871         (mark_store): Likewise.
2872
2873         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
2874         inserting GIMPLE_NOPs into the IL.
2875         * tree-ssa-structalias.c (get_constraint_for_component_ref):
2876         Explicitly strip handled components and indirect references.
2877
2878         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
2879         folding address expressions.
2880         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
2881         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
2882         operand_equal_p to compare decls.
2883         (ptr_deref_may_alias_decl_p): Likewise.
2884         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
2885         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
2886         Handle reversed comparison ops.
2887         * tree-sra.c (asm_visit_addr): Use get_base_address.
2888         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
2889         * ipa-reference.c (mark_address): Use get_base_address.
2890
2891 2010-04-07  Richard Guenther  <rguenther@suse.de>
2892
2893         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
2894         Propagate constants everywhere.
2895
2896 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
2897
2898         PR debug/43516
2899         * tree.c (MAX_INT_CACHED_PREC): Define.
2900         (nonstandard_integer_type_cache): New array.
2901         (build_nonstandard_integer_type): Cache results for precision
2902         <= MAX_INT_CACHED_PREC.
2903
2904 2010-04-07  Richard Guenther  <rguenther@suse.de>
2905
2906         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
2907         -fargument-noalias-global, -fargument-noalias-anything): Remove.
2908         * common.opt: Likewise.
2909         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
2910         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
2911         (nonoverlapping_memrefs_p): Likewise.
2912         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
2913         * opts.c (common_handle_option): Handle OPT_fargument_alias,
2914         OPT_fargument_noalias, OPT_fargument_noalias_anything and
2915         OPT_fargument_noalias_global for backward compatibility.
2916
2917 2010-04-07  Richard Guenther  <rguenther@suse.de>
2918
2919         PR tree-optimization/43270
2920         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
2921         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
2922         * tree-ssa-pre.c (phi_translate_1): Adjust.
2923         (fully_constant_expression): Split out vn_reference handling to ...
2924         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
2925         Fold reads from constant strings.
2926         (vn_reference_lookup): Handle fully constant references.
2927         (vn_reference_lookup_pieces): Likewise.
2928         * Makefile.in (expmed.o-warn): Add -Wno-error.
2929
2930 2010-04-07  Martin Jambor  <mjambor@suse.cz>
2931
2932         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
2933
2934 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
2935
2936         PR driver/41594
2937         * gcc.c: Add -static-libstdc++ to list of recognized options.
2938
2939 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2940
2941         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
2942
2943 2010-04-07  Richard Guenther  <rguenther@suse.de>
2944
2945         PR middle-end/42617
2946         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
2947         bases build simple mem attributes to retain points-to information.
2948
2949 2010-04-07  Richard Guenther  <rguenther@suse.de>
2950
2951         PR middle-end/42617
2952         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
2953         preserve points-to related information.
2954
2955 2010-04-07  Richard Guenther  <rguenther@suse.de>
2956
2957         PR middle-end/42617
2958         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
2959         discard plain indirect references.
2960         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
2961         * tree.c (tree_nop_conversion): Likewise.
2962
2963 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
2964
2965         PR debug/43628
2966         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
2967
2968 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
2969
2970         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
2971         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
2972
2973 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2974
2975         * tree-if-conv.c: Fix indentation and comments.
2976
2977 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2978
2979         * tree-if-conv.c: Sort static functions in topological order.
2980
2981 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2982
2983         * tree-if-conv.c: Fix indentation and comments.
2984
2985 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2986
2987         PR middle-end/43519
2988         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
2989         lang_hooks.types.type_for_size instead of
2990         build_nonstandard_integer_type.
2991         When converting an unsigned type to signed, double its precision.
2992         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
2993         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
2994         (graphite_create_new_loop_guard): When ub + 1 wraps around,
2995         use lb <= ub.
2996
2997 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
2998
2999         PR middle-end/43519
3000         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3001         POINTER_PLUS_EXPR for pointer types.
3002
3003 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3004
3005         PR middle-end/43519
3006         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
3007         * graphite-clast-to-gimple.c: Include langhooks.h.
3008         (max_signed_precision_type): New.
3009         (max_precision_type): Takes two types as arguments.
3010         (precision_for_value): New.
3011         (precision_for_interval): New.
3012         (gcc_type_for_interval): New.
3013         (gcc_type_for_value): New.
3014         (gcc_type_for_clast_term): New.
3015         (gcc_type_for_clast_red): New.
3016         (gcc_type_for_clast_bin): New.
3017         (gcc_type_for_clast_expr): Split up into several functions.
3018         (gcc_type_for_clast_eq): Rewritten.
3019         (compute_bounds_for_level): New.
3020         (compute_type_for_level_1): New.
3021         (compute_type_for_level): New.
3022         (gcc_type_for_cloog_iv): Removed.
3023         (gcc_type_for_iv_of_clast_loop): Rewritten.
3024         (graphite_create_new_loop): Compute the lower and upper bound types
3025         with gcc_type_for_clast_expr.
3026         (graphite_create_new_loop_guard): Same.
3027         (find_cloog_iv_in_expr): Removed.
3028         (compute_cloog_iv_types_1): Removed.
3029         (compute_cloog_iv_types): Removed.
3030         (gloog): Do not call compute_cloog_iv_types.
3031         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
3032         GBB_CLOOG_IV_TYPES.
3033         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
3034         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
3035         (GBB_CLOOG_IV_TYPES): Removed.
3036
3037 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3038
3039         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
3040         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
3041         (detect_commutative_reduction): Same.
3042
3043 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3044
3045         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
3046         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
3047         argument.
3048         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
3049         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
3050         (rewrite_commutative_reductions_out_of_ssa): Same.
3051         * passes.c (execute_function_todo): Call verify_ssa for every pass
3052         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
3053         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
3054         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
3055         with an extra argument.
3056         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
3057         verify_ssa only when the extra argument is true.
3058         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
3059         with an extra argument.
3060         (tree_transform_and_unroll_loop): Same.
3061
3062 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
3063
3064         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
3065         for all the passes of the LNO having LOOP_CLOSED_SSA.
3066         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
3067         * tree-loop-distribution.c (pass_loop_distribution): Same.
3068         * tree-pass.h (TODO_verify_loops): Removed.
3069         * tree-ssa-loop.c (pass_tree_loop_init): Same.
3070         (pass_lim): Same.
3071         (pass_tree_unswitch): Same.
3072         (pass_predcom): Same.
3073         (pass_vectorize): Same.
3074         (pass_linear_transform): Same.
3075         (pass_graphite_transforms): Same.
3076         (pass_iv_canon): Same.
3077         (pass_complete_unroll): Same.
3078         (pass_complete_unrolli): Same.
3079         (pass_parallelize_loops): Same.
3080         (pass_loop_prefetch): Same.
3081         (pass_iv_optimize): Same.
3082
3083 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
3084
3085         PR middle-end/32824
3086         * passes.c (init_optimization_passes): Move pass_lim before
3087         pass_copy_prop and pass_dce_loop.
3088
3089 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
3090
3091         PR target/43667
3092         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
3093         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
3094         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
3095         MULTI_* defines for 4 argument vpermil2p* builtins.
3096
3097 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
3098
3099         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
3100         * config/i386/i386.c (x86_maybe_negate_const_int): New.
3101         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
3102         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
3103         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
3104         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
3105         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
3106         Use x86_maybe_negate_const_int to output insn mnemonic.
3107         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
3108         check from instruction predicate.  Update comments.
3109         * config/i386/sync.md (sync_add<mode>): Use
3110         x86_maybe_negate_const_int to output insn mnemonic.
3111
3112 2010-04-06  Jan Hubicka  <jh@suse.cz>
3113
3114         PR tree-optimization/42906
3115         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
3116         IGNORE_SELF argument.  Set visited_control_parents for fully
3117         processed BBs.
3118         (find_obviously_necessary_stmts): Update call of
3119         mark_control_dependent_edges_necessary.
3120         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
3121
3122 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
3123
3124         * config/i386/i386.md: Remove comment about 'e' and 'E'
3125         operand modifier.
3126
3127 2010-04-06  Richard Guenther  <rguenther@suse.de>
3128
3129         PR tree-optimization/43627
3130         * tree-vrp.c (extract_range_from_unary_expr): Widenings
3131         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
3132         not varying.
3133
3134 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
3135
3136         * BASE-VER: Change to 4.6.0.
3137
3138         PR target/43638
3139         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
3140         handling.
3141
3142 2010-04-06  Richard Guenther  <rguenther@suse.de>
3143
3144         PR middle-end/43661
3145         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
3146
3147 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3148
3149         * doc/invoke.texi (Optimize Options): Document that LTO
3150         won't remove object access purely due to incompatible
3151         declarations.
3152
3153 2010-04-04  Matthias Klose  <doko@ubuntu.com>
3154
3155         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
3156         Initialize variable.
3157
3158 2010-04-03  Richard Guenther  <rguenther@suse.de>
3159
3160         PR middle-end/42509
3161         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
3162         require a non-NULL MEM_OFFSET.
3163
3164 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
3165
3166         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
3167         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
3168         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
3169         config/alpha/predicates.md, config/arm/arm.md,
3170         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
3171         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
3172         config/darwin9.h, config/darwin.c, config/darwin.h,
3173         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
3174         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
3175         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
3176         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
3177         config/mips/mips.md, config/mn10300/mn10300.c,
3178         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
3179         config/rs6000/aix.h, config/rs6000/dfp.md,
3180         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
3181         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
3182         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
3183         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
3184         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
3185         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
3186         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
3187         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
3188         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
3189         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
3190         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
3191         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
3192         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
3193         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
3194         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
3195         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
3196         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
3197         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
3198         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
3199         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
3200         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
3201         opt-functions.awk, opth-gen.awk, params.def, passes.c,
3202         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
3203         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
3204         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
3205         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
3206         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
3207         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
3208         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
3209         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
3210         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3211         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
3212         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
3213         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
3214         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
3215         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
3216
3217 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3218
3219         PR other/43620
3220         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
3221         * aclocal.m4: Regenerate.
3222
3223 2010-04-02  Richard Guenther  <rguenther@suse.de>
3224
3225         PR tree-optimization/43629
3226         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
3227         if we have seen a constant value.
3228
3229 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
3230
3231         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
3232
3233 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
3234
3235         PR target/43469
3236         * arm.c (legitimize_tls_address): Adjust call to
3237         gen_tls_load_dot_plus_four.
3238         (arm_note_pic_base): New function.
3239         (arm_cannot_copy_insn_p): Use it.
3240         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
3241         constraint.
3242
3243 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3244
3245         PR bootstrap/43531
3246
3247         Revert:
3248         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3249
3250         * Makefile.in ($(out_object_file)): Depend on
3251         gt-$(basename $(notdir $(out_file))).h.
3252
3253 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
3254
3255         * config.gcc (lm32-*-rtems*): Add t-lm32.
3256
3257 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
3258
3259         * config.gcc: Add lm32-*-rtems*.
3260         * config/lm32/rtems.h: New file.
3261
3262 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
3263
3264         PR target/42609
3265         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
3266
3267 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
3268
3269         * dwarf2out.c (output_compilation_unit_header): For
3270         -gdwarf-4 use version 4 instead of version 3.
3271         (output_line_info): For version 4 and above emit additional
3272         maximum ops per insn header field.
3273         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
3274
3275         * dwarf2out.c (is_c_family, is_java): Remove.
3276         (lower_bound_default): New function.
3277         (add_bound_info, gen_descr_array_type_die): Use it.
3278
3279 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
3280
3281         PR debug/43325
3282         * dwarf2out.c (gen_variable_die): Allow debug info for variable
3283         re-declaration when it happens in a function.
3284
3285 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
3286
3287         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
3288         (cgraph_remove_function_insertion_hook): Same.
3289         (cgraph_call_function_insertion_hooks): Same.
3290
3291 2010-04-01  Richard Guenther  <rguenther@suse.de>
3292
3293         PR middle-end/43614
3294         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
3295         and TREE_THIS_VOLATILE.
3296         (copy_ref_info): Likewise.
3297         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
3298         * tree.c (build6_stat): Ignore side-effects of all but arg5
3299         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
3300         TARGET_MEM_REF.
3301
3302 2010-04-01  Richard Guenther  <rguenther@suse.de>
3303
3304         PR tree-optimization/43607
3305         * ipa-type-escape.c (check_call): Do not access non-existing
3306         arguments.
3307
3308 2010-04-01  Richard Guenther  <rguenther@suse.de>
3309
3310         PR middle-end/43602
3311         Revert
3312         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
3313                     Jack Howarth <howarth@bromo.med.uc.edu>
3314
3315         * tree-profile.c (tree_init_ic_make_global_vars): Make static
3316         variables TLS.
3317
3318 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3319
3320         * doc/install.texi (Prerequisites): Document libelf usability on
3321         IRIX 5/6 and Solaris 2.
3322         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
3323         Update GNU as, GNU ld requirements.
3324         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
3325         Document Sun Studio compiler download.
3326         Update and simplify as, ld recommendations.
3327         (Specific, *-*-solaris2.7): Note obsoletion, removal.
3328
3329 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3330
3331         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
3332         with_tune_32 to pentium4.
3333
3334 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
3335
3336         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
3337
3338 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3339
3340         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
3341         obsoletion, removal.
3342         Update IDO URL.
3343         Document GNU as requirement.
3344         Update configure requirements.
3345         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
3346         Recomment IRIX 6.5.18+.
3347         Document IDF/IDL requirement.
3348         Document GNU as requirement.
3349         Document GNU ld bootstrap failure.
3350         Remove freeware.sgi.com reference.
3351
3352 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3353
3354         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
3355         UNIX V4.0, V5.0 obsoletion, removal.
3356         Remove --with-gc=simple reference.
3357         Update VM requirements during bootstrap.
3358         Remove -oldas bootstrap description.
3359         Update binutils reference.
3360         Remove comparison failure note.
3361
3362 2010-03-31  Richard Guenther  <rguenther@suse.de>
3363             Zdenek Dvorak  <ook@ucw.cz>
3364             Sebastian Pop  <sebastian.pop@amd.com>
3365
3366         PR middle-end/43464
3367         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
3368         with multiple arguments.
3369         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
3370
3371 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3372
3373         * graphite-dependences.c (print_pddr): Call print_pdr with an
3374         extra argument.
3375         * graphite-poly.c (debug_pdr): Add an extra argument for the
3376         verbosity level.
3377         (print_pdr): Same.
3378         (print_pbb_domain): Same.
3379         (print_pbb): Same.
3380         (print_scop_context): Same.
3381         (print_scop): Same.
3382         (print_cloog): Same.
3383         (debug_pbb_domain): Same.
3384         (debug_pbb): Same.
3385         (print_pdrs): Same.
3386         (debug_pdrs): Same.
3387         (debug_scop_context): Same.
3388         (debug_scop): Same.
3389         (debug_cloog): Same.
3390         (print_scop_params): Same.
3391         (debug_scop_params): Same.
3392         (print_iteration_domain): Same.
3393         (print_iteration_domains): Same.
3394         (debug_iteration_domain): Same.
3395         (debug_iteration_domains): Same.
3396         (print_scattering_function): Same.
3397         (print_scattering_functions): Same.
3398         (debug_scattering_function): Same.
3399         (debug_scattering_functions): Same.
3400         * graphite-poly.h (debug_pdr): Update declaration.
3401         (print_pdr): Same.
3402         (print_pbb_domain): Same.
3403         (print_pbb): Same.
3404         (print_scop_context): Same.
3405         (print_scop): Same.
3406         (print_cloog): Same.
3407         (debug_pbb_domain): Same.
3408         (debug_pbb): Same.
3409         (print_pdrs): Same.
3410         (debug_pdrs): Same.
3411         (debug_scop_context): Same.
3412         (debug_scop): Same.
3413         (debug_cloog): Same.
3414         (print_scop_params): Same.
3415         (debug_scop_params): Same.
3416         (print_iteration_domain): Same.
3417         (print_iteration_domains): Same.
3418         (debug_iteration_domain): Same.
3419         (debug_iteration_domains): Same.
3420         (print_scattering_function): Same.
3421         (print_scattering_functions): Same.
3422         (debug_scattering_function): Same.
3423         (debug_scattering_functions): Same.
3424
3425 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
3426
3427         * graphite-poly.c (print_scattering_function_1): New.
3428         (print_scattering_function): Call it.
3429         (print_scop_params): Remove spaces