OSDN Git Service

e1c13f5884bd67cecdbb78c901e85ce8bbfa55f6
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-05-10  Ian Lance Taylor  <iant@google.com>
2
3         * basic-block.h (enum profile_status): Break out of struct
4         control_flow_graph.
5         * cgraph.h (struct inline_summary): Break out of struct
6         cgraph_local_info.
7         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
8         of struct cgraph_order_sort.
9         * combine.c (enum undo_kind): New enum, broken out of struct
10         undo.
11         * cse.c (struct branch_path): Break out of struct
12         cse_basic_block_data.
13         * except.h (enum eh_region_type): Break out of struct eh_region.
14         * gcc.c (enum add_del): Break out of struct modify_target.
15         * genrecog.c (enum decision_type): Break out of struct
16         decision_test.
17         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
18         ggc_pch_data.
19         * matrix-reorg.c (struct free_info): Break out of struct
20         matrix_info.
21         * regmove.c (enum match_use): New enum, broken out of struct
22         match.
23         * sched-int.h (enum post_call_group): New enum, broken out of
24         struct deps.
25         (struct deps_reg): Break out of struct deps.
26         * target.h (struct asm_int_op): Break out of struct gcc_target.
27         * tree-eh.c (struct goto_queue_node): Break out of struct
28         leh_tf_state.
29         * tree-inline.h (enum copy_body_cge_which): Break out of
30         copy_body_data.
31         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
32
33         * c-decl.c (in_struct, struct_types): New static variables.
34         (pushtag): Add loc parameter.  Change all callers.
35         (lookup_tag): Add ploc parameter.  Change all callers.
36         (check_compound_literal_type): New function.
37         (parser_xref_tag): Add loc parameter.  Change all callers.  If
38         -Wc++-compat, warn about struct/union/enum types defined within a
39         struct or union.
40         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
41         and loc parameters.  Change all callers.  Change error calls to
42         error_at, using loc.  For a redefinition, if the location of the
43         original definition is known, report it.  Set in_struct and
44         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or
45         alignof.
46         (finish_struct): Add new parameters enclosing_in_struct and
47         enclosing_struct_types.  Change all callers.  Set
48         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
49         in the struct.  If in a struct, add this struct to struct_types.
50         (start_enum): Add loc parameter.  Change all callers.  Use
51         error_at for errors, using loc.  For a redefinition, if the
52         location of the original definition is known, report it.  If in a
53         struct, add this enum type to struct_types.  If -Wc++-compat warn
54         if in sizeof, typeof, or alignof.
55         * c-parser.c (disable_extension_diagnostics): Disable
56         -Wc++-compat.
57         (enable_extension_diagnostics): Reenable -Wc++-compat if
58         appropriate.
59         (c_parser_enum_specifier): Get enum location for start_enum.
60         (c_parser_struct_or_union_specifier): Get struct location for
61         start_struct.  Save in_struct and struct_types status between
62         start_struct and finish_struct.
63         (c_parser_cast_expression): Get location of cast.
64         (c_parser_alignof_expression): Get location of type.
65         (c_parser_postfix_expression): Likewise.
66         (c_parser_postfix_expression_after_paren_type): Add type_loc
67         parameter.  Change all callers.  Call
68         check_compound_literal_type.  Use type_loc for error about
69         variable size type.
70         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a
71         use of an enum constant from an enum type defined in a struct or
72         union.
73         (c_cast_expr): Add loc parameter.  Change all callers.  If
74         -Wc++-compat, warn about defining a type in a cast.
75         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
76         (start_enum, start_struct, finish_struct): Update declarations.
77         (parser_xref_tag, c_cast_expr): Update declarations.
78         (check_compound_literal_type): Declare.
79
80 2009-05-11  Ben Elliston  <bje@au.ibm.com>
81
82         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
83         for recent libcpp interface change.
84         (rs6000_macro_to_expand): Likewise.
85
86 2009-05-10  Michael Matz  <matz@suse.de>
87
88         PR target/40031
89         * config/arm/arm.c (require_pic_register): Emit on entry edge,
90         not at entry of function.
91
92 2009-05-10  Richard Guenther  <rguenther@suse.de>
93
94         PR tree-optimization/40081
95         Revert
96         * tree-sra.c (instantiate_element): Instantiate scalar replacements
97         using the main variant of the element type.  Do not fiddle with
98         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
99
100         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
101         structs with volatile fields.
102
103 2009-05-10  Jan Hubicka  <jh@suse.cz>
104
105         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
106         (estimate_move_cost): Assert that it does not get called for VOID_TYPE_P.
107         (estimate_num_insns): Skip VOID types in argument handling.
108         (optimize_inline_calls): Delete unreachable blocks and verify that
109         callgraph is valid.
110
111 2009-05-10  Jan Hubicka  <jh@suse.cz>
112
113         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
114         * cgraph.c (cgraph_mark_address_taken_node): New function.
115         (dump_cgraph_node): Dump new flag.
116         * cgraph.h (struct cgraph_node): Add address_taken.
117         (cgraph_mark_address_taken_node): New function.
118         * ipa.c (cgraph_postorder): Prioritize functions with address taken
119         since new direct calls can be born.
120
121 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
122
123         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
124         tok->val.node.node.
125
126 2009-05-10  Jan Hubicka  <jh@suse.cz>
127
128         PR middle-end/40084
129         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
130         argument; rewrite.
131         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
132         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
133         * tree-inline.c (copy_bb): Set frequency correctly.
134         (fold_marked_statements): Update call to
135         cgraph_update_edges_for_call_stmt.
136
137 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
138
139         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
140         identifiers in diagnostics.
141         * config/arm/arm.c (arm_handle_fndecl_attribute,
142         arm_handle_isr_attribute): Likewise.
143         * config/avr/avr.c (avr_handle_progmem_attribute,
144         avr_handle_fndecl_attribute, avr_handle_fntype_attribute):
145         Likewise.
146         * config/bfin/bfin.c (handle_int_attribute,
147         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
148         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
149         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
150         Likewise.
151         * config/darwin.c (darwin_handle_kext_attribute,
152         darwin_handle_weak_import_attribute): Likewise.
153         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
154         h8300_handle_eightbit_data_attribute,
155         h8300_handle_tiny_data_attribute): Likewise.
156         * config/i386/i386.c (ix86_handle_cconv_attribute,
157         ix86_handle_abi_attribute, ix86_handle_struct_attribute):
158         Likewise.
159         * config/i386/winnt.c (ix86_handle_shared_attribute,
160         ix86_handle_selectany_attribute): Likewise.
161         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
162         * config/m32c/m32c.c (function_vector_handler): Likewise.
163         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
164         m68hc11_handle_fntype_attribute): Likewise.
165         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
166         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
167         * config/mips/mips.c (mips_insert_attributes,
168         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
169         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
170         rs6000_handle_struct_attribute): Likewise.
171         * config/sh/sh.c (sh_insert_attributes,
172         sh_handle_resbank_handler_attribute,
173         sh_handle_interrupt_handler_attribute,
174         sh2a_handle_function_vector_handler_attribute,
175         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
176         Likewise.
177         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
178         * config/spu/spu.c (spu_handle_fndecl_attribute,
179         spu_handle_vector_attribute): Likewise.
180         * config/stormy16/stormy16.c
181         (xstormy16_handle_interrupt_attribute): Likewise.
182         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
183         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
184
185 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
186
187         * pretty-print.h (struct pretty_print_info): Add
188         translate_identifiers.
189         (pp_translate_identifiers): New.
190         (pp_identifier): Only conditionally translate identifier to locale
191         character set.
192         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
193         (pp_base_tree_identifier): Only conditionally translate identifier
194         to locale character set.
195         * c-pretty-print.c (M_): Define.
196         (pp_c_type_specifier, pp_c_primary_expression): Mark English
197         fragments for conditional translation with M_.
198         * tree-pretty-print.c (maybe_init_pretty_print): Disable
199         identifier translation.
200
201 2009-05-10  Richard Guenther  <rguenther@suse.de>
202
203         PR tree-optimization/40081
204         * tree-sra.c (instantiate_element): Instantiate scalar replacements
205         using the main variant of the element type.  Do not fiddle with
206         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
207
208 2009-05-09  Jan Hubicka  <jh@suse.cz>
209
210         PR middle-end/40080
211         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
212         indirect calls; verify cgraph afterwards.
213
214 2009-05-09  Jan Hubicka  <jh@suse.cz>
215
216         PR bootstrap/40082
217         * ipa.c (update_inlined_to_pointer): New function.
218         (cgraph_remove_unreachable_nodes): Use it.
219
220 2009-05-09  Jan Hubicka  <jh@suse.cz>
221
222         * tree-eh.c (struct leh_state): Remove prev_try.
223         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
224         not track prev_try.
225         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
226         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
227         remove_eh_handler_and_replace, foreach_reachable_handler,
228         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
229         * except.h (struct eh_region): Remove eh_region_u_cleanup.
230         (gen_eh_region_cleanup): Update prototype.
231
232 2009-05-09  Jan Hubicka  <jh@suse.cz>
233
234         PR middle-end/40043
235         * except.c (copy_eh_region): Always set prev_try.
236         (redirect_eh_edge_to_label): Find outer try.
237         (foreach_reachable_handler): When looking for prev try
238         handle case where previous try is not going to be taken.
239
240 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
241
242         PR tree-optimization/40049
243         * tree-vect-stmts.c (vectorizable_operation): If the machine has
244         only vector/vector shifts, convert the type of the constant to the
245         appropriate type to avoid building incorrect trees, which
246         eventually have problems with garbage collection.
247
248 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
249
250         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
251         -1 for complex floating-point types if honoring signed zeros.
252
253 2009-05-08  Jan Hubicka  <jh@suse.cz>
254
255         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
256         argument; handle correctly when profile is absent.
257         (build_cgraph_edges): Update.
258         (rebuild_cgraph_edges): Update.
259         * cgraph.c: Do not include varray.h.
260         (cgraph_set_call_stmt_including_clones): New function.
261         (cgraph_create_edge_including_clones): Likewise
262         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
263         (cgraph_update_edges_for_call_stmt): Handle clones.
264         (cgraph_remove_node): Handle clone tree.
265         (cgraph_remove_node_and_inline_clones): New function.
266         (dump_cgraph_node): Dump clone tree.
267         (cgraph_clone_node): Handle clone tree.
268         (clone_function_name): Bring here from tree-inline.c.
269         (cgraph_create_virtual_clone): New function.
270         * cgraph.h (ipa_replace_map): Move here from ipa.h.
271         (cgraph_clone_info): New function.
272         (strut cgraph_node): Add clone_info and new clone tree pointers.
273         (cgraph_remove_node_and_inline_clones,
274         cgraph_set_call_stmt_including_clones,
275         cgraph_create_edge_including_clones,
276         cgraph_create_virtual_clone): Declare.
277         (cgraph_function_versioning): Use VEC argument.
278         (compute_call_stmt_bb_frequency): Update prototype.
279         (cgraph_materialize_all_clones): New function.
280         * ipa-cp.c (ipcp_update_cloned_node): Remove.
281         (ipcp_create_replace_map): Update to VECtors.
282         (ipcp_update_callgraph): Use virtual clones.
283         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
284         (ipcp_update_profiling): Do not update local profiling.
285         (ipcp_insert_stage): Use VECtors and virtual clones.
286         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
287         (clone_of_p): New function.
288         (cgraph_preserve_function_body_p): Use clone tree.
289         (cgraph_optimize): Materialize clones.
290         (cgraph_function_versioning): Update for VECtors.
291         (save_inline_function_body): Use clone tree.
292         (cgraph_materialize_clone): New function.
293         (cgraph_materialize_all_clones): Likewise.
294         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
295         * ipa.c: Include gimple.h.
296         (cgraph_remove_unreachable_nodes): Use clone tree.
297         * ipa-prop.c (ipa_note_param_call): Update call to
298         compute_call_stmt_bb_frequencycall.
299         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
300         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
301         (copy_bb): Handle updating of clone tree; add new edge when new call
302         appears.
303         (expand_call_inline): Be strict about every call having edge.
304         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
305         (delete_unreachable_blocks_update_callgraph): New function.
306         (tree_function_versioning): Use VECtors; always remove unreachable
307         blocks and fold conditionals.
308         * tree-inline.h: Do not include varray.h.
309         (tree_function_versioning): Remove.
310         * Makefile.in (GTFILES): Remove tree-inline.c
311         * passes.c (do_per_function): Do only functions having body.
312         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
313         tree.
314
315 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
316             Andrew Morrow  <acm@google.com>
317
318         PR c/36892
319         * c-common.c (c_common_attribute_table): Permit deprecated
320         attribute to take an optional argument.
321         (handle_deprecated_attribute): If the optional argument to
322         __attribute__((deprecated)) is not a string ignore the attribute
323         and emit a warning.
324
325         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
326         * c-typeck.c (build_component_ref): Likewise.
327         (build_external_ref): Likewise.
328
329         * toplev.c (warn_deprecated_use): Add an attribute argument.
330         Emit the message associated with __attribute__((deprecated)).
331
332         * toplev.h (warn_deprecated_use): Updated.
333
334         * doc/extend.texi: Document new optional parameter to
335         __attribute__((deprecated))
336
337 2009-05-08  Michael Eager <eager@eagercon.com>
338
339         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
340         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
341
342 2009-05-08  Richard Guenther  <rguenther@suse.de>
343
344         PR tree-optimization/40062
345         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
346         Avoid exponential behavior.
347
348 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
349
350         PR rtl-optimization/33928
351         PR 26854
352         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
353         process_uses, build_single_def_use_links): New.
354         (update_df): Update use_def_ref.
355         (forward_propagate_into): Use get_def_for_use instead of use-def
356         chains.
357         (fwprop_init): Call build_single_def_use_links and let it initialize
358         dataflow.
359         (fwprop_done): Free use_def_ref.
360         (fwprop_addr): Eliminate duplicate call to df_set_flags.
361         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
362         df_rd_simulate_one_insn): New.
363         (df_rd_bb_local_compute_process_def): Update head comment.
364         (df_chain_create_bb): Use the new RD simulation functions.
365         * df.h (df_rd_simulate_artificial_defs_at_top, 
366         df_rd_simulate_one_insn): New.
367         * opts.c (decode_options): Enable fwprop at -O1.
368         * doc/invoke.texi (-fforward-propagate): Document this.
369
370 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
371
372         PR c/24581
373         * c-typeck.c (build_binary_op): Handle arithmetic between one real
374         and one complex operand specially.
375         * tree-complex.c (some_nonzerop): Do not identify a real value as
376         zero if flag_signed_zeros.
377
378 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
379
380         PR rtl-optimization/33928
381         * loop-invariant.c (record_use): Fix && vs. || mishap.
382
383 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
384
385         PR rtl-optimization/33928
386         * loop-invariant.c (struct use): Add addr_use_p.
387         (struct def): Add n_addr_uses.
388         (struct invariant): Add cheap_address.
389         (create_new_invariant): Set cheap_address.
390         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
391         (record_uses): Pass df_ref to record_use.
392         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
393         used only as such.
394
395 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
396
397         * config/sh/sh.c: Do not include c-pragma.h.
398
399 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
400
401         * config/spu/spu.c: Remove include of c-common.h.
402
403 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
404
405         PR c/39037
406         * c-common.h (mark_valid_location_for_stdc_pragma,
407         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
408         clear_float_const_decimal64, float_const_decimal64_p): New.
409         * c.opt (Wunsuffixed-float-constants): New.
410         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
411         unsuffixed float constant, handle new warning.
412         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
413         * c-decl.c (c_scope): New flag float_const_decimal64.
414         (set_float_const_decimal64, clear_float_const_decimal64,
415         float_const_decimal64_p): New.
416         (push_scope): Set new flag.
417         * c-parser.c (c_parser_translation_unit): Mark when it's valid
418         to use STDC pragmas.
419         (c_parser_external_declaration): Ditto.
420         (c_parser_compound_statement_nostart): Ditto.
421         * c-pragma.c (valid_location_for_stdc_pragma,
422         mark_valid_location_for_stdc_pragma,
423         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
424         handle_pragma_float_const_decimal64): New.
425         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
426         * cp/semantics.c (valid_location_for_stdc_pragma_p,
427         set_float_const_decimal64, clear_float_const_decimal64,
428         float_const_decimal64_p): New dummy functions.
429         * doc/extend.texi (Decimal Float): Remove statement that the
430         pragma, and suffix for double constants, are not supported.
431         * doc/invoke.texi (Warning Options): List new option.
432         (-Wunsuffixed-float-constants): New.
433
434 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
435
436         * config/i386/i386.c: Do not include c-common.h.
437
438 2009-05-07  Mark Heffernan  <meheff@google.com>
439
440         * doc/invoke.texi (Debugging Options): Document change of debugging
441         dump location.
442         * opts.c (decode_options): Make dump_base_name relative to
443         aux_base_name directory.
444
445 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
446
447         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
448         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
449
450 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
451
452         * Makefile.in (install-plugin): Simplify a bit.
453
454 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
455
456         * Makefile.in (OBJS-common): Add regcprop.o.
457         (regcprop.o): New.
458         * timevar.def (TV_CPROP_REGISTERS): New.
459         * regrename.c (regrename_optimize): Return 0.
460         (rest_of_handle_regrename): Delete.
461         (pass_rename_registers): Point to regrename_optimize.
462         (struct value_data_entry, struct value_data, 
463         kill_value_one_regno, kill_value_regno, kill_value,
464         set_value_regno, init_value_data, kill_clobbered_value,
465         kill_set_value, kill_autoinc_value, copy_value,
466         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
467         replace_oldest_value_reg, replace_oldest_value_addr,
468         replace_oldest_value_mem, copyprop_hardreg_forward_1,
469         debug_value_data, validate_value_data): Move...
470         * regcprop.c: ... here.
471         (rest_of_handle_cprop): Delete.
472         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
473
474 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
475
476         PR middle-end/40057
477         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
478         GEN_INT for 1 << bitnum.
479         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
480         build_int_cst_type.
481
482 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
483
484         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
485         Remove wrong description of "nand" operation.
486
487 2009-05-06  Richard Guenther  <rguenther@suse.de>
488             Adam Nemet  <anemet@caviumnetworks.com>
489
490         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
491         comment.  Add that if LHS is not a gimple register, then RHS1 has
492         to be a single object (GIMPLE_SINGLE_RHS).
493
494 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
495
496         * expr.c (get_def_for_expr): Move it up in the file.
497         (store_field): When expanding a bit-field store, look at the
498         defining gimple stmt for the masking conversion.
499
500 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
501
502         PR middle-end/39986
503         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
504         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
505         32-bit memcpy into long.
506
507 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
508
509         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
510         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
511         new_reg_loc_descr.
512         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
513         instead of appending DW_OP_deref*.
514
515 2009-05-06  Michael Matz  <matz@suse.de>
516
517         PR middle-end/40021
518         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
519         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
520
521 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
522
523         * Makefile.in (install-plugin): Fix srcdir handling.
524
525 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
526
527         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
528         when processing for not_regs_needed bitmap.
529         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
530         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
531         handling it for rhs. 
532
533 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
534
535         * config/i386/i386.md (unnamed inc/dec peephole): Use
536         optimize_insn_for_size_p instead of optimize_size.
537         * config/i386/predicates.md (incdec_operand): Likewise.
538         (aligned_operand): Likewise.
539         * config/i386/sse.md (divv8sf3): Likewise.
540         (sqrtv8sf2): Likewise.
541
542 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
543
544         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
545
546         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
547
548 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
549
550         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
551         ssemodesuffixf2c with avxmodesuffixf2c.
552
553 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
554
555         PR c/40032
556         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
557
558 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
559
560         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
561         (struct tree_base): Adjust spacing for 8 bit boundaries.
562         (struct tree_decl_common): Add decl_by_reference_flag bit.
563         (DECL_BY_REFERENCE): Adjust.
564         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
565         print DECL_BY_REFERENCE bit.
566         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
567         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
568         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
569         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
570         unconditionally.
571
572         PR middle-end/39666
573         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
574         range of the type, but default label is missing, add it with one
575         of the existing labels instead of adding a new label for it.
576
577 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
578
579         * dwarf.h: Remove.
580
581 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
582
583         * Makefile.in (enable_plugin, plugin_includedir): New.
584         (install): Depend on install-plugin.
585         (PLUGIN_HEADERS): New.
586         (install-plugin): New.
587         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
588
589 2009-05-05  Richard Guenther  <rguenther@suse.de>
590
591         PR tree-optimization/40022
592         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
593         the only vuse.
594         (phivn_valid_p): Fix tuplification error, simplify.
595         (phiprop_insert_phi): Add dumps.
596         (propagate_with_phi): Simplify.
597
598 2009-05-05  Richard Guenther  <rguenther@suse.de>
599
600         PR middle-end/40023
601         * builtins.c (gimplify_va_arg_expr): Properly build the address.
602
603 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
604
605         * tree.h (strip_float_extensions): Remove duplicate declaration.
606         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
607         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
608         block_ultimate_origin): Rearrange the declarations line to match the
609         comment that indicates the .c file which the functions are defined.
610         (dwarf2out_*, set_decl_rtl): Add comment.
611         (get_base_address): Adjust comment.
612         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
613         declarations line and add comment.
614         (is_builtin_name): Add blank after function name, for clarity.
615
616 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
617
618         * attribs.c (decl_attributes): Use %qE for identifiers in
619         diagnostics.
620         * cgraphunit.c (verify_cgraph_node): Translate function names to
621         locale character set in diagnostics.
622         * coverage.c (get_coverage_counts): Use %qE for identifiers in
623         diagnostics.
624         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
625         Document that functions are named in UTF-8.
626         * expr.c (expand_expr_real_1): Translate function names to locale
627         character set in diagnostics.
628         * gimplify.c (omp_notice_variable, omp_is_private,
629         gimplify_scan_omp_clauses): Use %qE for identifiers in
630         diagnostics.
631         * langhooks.c (lhd_print_error_function): Translate function names
632         to locale character set.
633         * langhooks.h (decl_printable_name): Document that return value is
634         in internal character set.
635         * stmt.c: Include pretty-print.h
636         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
637         diagnostics.
638         (resolve_operand_name_1): Translate named operand name to locale
639         character set.
640         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
641         diagnostics.
642         * toplev.c (announce_function): Translate function names to locale
643         character set.
644         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
645         (default_tree_printer): Use pp_identifier or translate identifiers
646         to locale character set.  Mark "<anonymous>" for translation.
647         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
648         for identifiers in diagnostics.
649         * tree.c (handle_dll_attribute): Use %qE for identifiers in
650         diagnostics.
651         * varasm.c (output_constructor): Use %qE for identifiers in
652         diagnostics.
653
654 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
655
656         * configure.ac: use ` ` instead of $()
657         * configure: Regenerate.
658
659 2009-05-05  Ben Elliston  <bje@au.ibm.com>
660
661         * config/pa/linux-atomic.c: Eliminate conditional include of
662         errno.h on non-LP64 systems to simplify build requirements.
663
664 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
665
666         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
667         diagnostics.
668         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
669         and pass value to identifier_to_locale.
670         (warn_variable_length_array): Make name a tree.
671         (grokdeclarator): Separate diagnostic texts for named and unnamed
672         declarators.  Use %qE for named declarators.
673         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
674         diagnostics.
675         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
676         identifiers in diagnostics.
677         * c-typeck.c (push_member_name, start_init): Pass identifiers to
678         identifier_to_locale.  Mark "anonymous" strings for translation.
679
680 2009-05-04  Michael Eager <eager@eagercon.com>
681
682         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
683         address for DImode/DFmode only if double-precision FP regs.
684
685 2009-05-04  Michael Eager <eager@eagercon.com>
686
687         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
688         TARGET_SINGLE_FLOAT check.
689
690 2009-05-04  Michael Eager <eager@eagercon.com>
691
692         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
693
694 2009-05-04  Michael Eager <eager@eagercon.com>
695
696         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
697         * config/rs6000/t-xilinx: New
698
699 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
700
701         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
702         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
703         * gcc/explow.c (memory_address): Use target hook.
704         * gcc/targhooks.c (default_legitimize_address): New.
705         * gcc/targhooks.h (default_legitimize_address): New.
706         * gcc/target.h (legitimize_address): New.
707         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
708         (TARGET_INITIALIZER): Include it.
709         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
710
711         * config/bfin/bfin-protos.h (legitimize_address): Remove.
712         * config/bfin/bfin.c (legitimize_address): Remove.
713         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
714         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
715         Remove.
716         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
717         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
718
719         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
720         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
721         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
722         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
723         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
724         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
725         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
726         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
727         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
728         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
729         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
730         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
731         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
732         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
733         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
734         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
735         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
736         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
737         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
738         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
739         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
740         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
741         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
742
743         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
744         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
745         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
746         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
747         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
748         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
749         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
750         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
751         (thumb_legitimize_address): Delete.
752         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
753         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
754         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
755         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
756         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
757         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
758         Delete.
759         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
760         Delete.
761
762         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
763         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
764         * config/m32r/m32r.c (m32r_legitimize_address): New.
765         * config/m68k/m68k.c (m68k_legitimize_address): New.
766         * config/score/score.c (score_legitimize_address): Standardize.
767         * config/score/score3.c (score3_legitimize_address): Standardize.
768         * config/score/score3.h (score3_legitimize_address): Adjust.
769         * config/score/score7.c (score7_legitimize_address): Standardize.
770         * config/score/score7.h (score7_legitimize_address): Adjust.
771         * config/sh/sh.c (sh_legitimize_address): New.
772         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
773
774         * gcc/config/s390/s390.c (legitimize_address): Rename to...
775         (s390_legitimize_address): ... this.
776         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
777         (sparc_legitimize_address): ... this.
778         * gcc/config/i386/i386.c (legitimize_address): Rename to...
779         (ix86_legitimize_address): ... this.
780         * gcc/config/avr/avr.c (legitimize_address): Rename to...
781         (avr_legitimize_address): ... this.
782         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
783         (mn10300_legitimize_address): ... this.
784         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
785         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
786         (alpha_expand_mov): Adjust call.
787
788         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
789         * config/spu/spu.c (spu_legitimize_address): Likewise.
790         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
791         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
792
793 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
794
795         * intl.c (locale_encoding, locale_utf8): New.
796         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
797         * intl.h (locale_encoding, locale_utf8): Declare.
798         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
799         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
800         New.
801         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
802         argument.
803         (pp_tree_identifier): Define to call pp_base_tree_identifier.
804         (pp_base_tree_identifier): Declare as function.
805         (identifier_to_locale): Declare.
806         * Makefile.in (pretty-print.o): Update dependencies.
807         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
808
809 2009-05-04  Richard Guenther  <rguenther@suse.de>
810
811         PR middle-end/40015
812         * builtins.c (fold_builtin_memory_op): Do not decay to element
813         type if the size matches the whole array.
814
815 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
816
817         * expmed.c (synth_mult): When trying out a shift, pass the result
818         of a signed shift.
819
820 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
821
822         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
823         (shiftsub1_cost): New.
824         (init_expmed): Compute shiftsub1_cost.
825         (synth_mult): Optimize multiplications by constants of the form
826         -(2^^m-1) for some constant positive integer m.
827
828 2009-05-03  Richard Guenther  <rguenther@suse.de>
829
830         PR c/39983
831         * c-typeck.c (array_to_pointer_conversion): Do not built
832         ADDR_EXPRs of arrays of pointer-to-element type.
833         * c-gimplify.c (c_gimplify_expr): Revert change fixing
834         up wrong ADDR_EXPRs after-the-fact.
835         * c-common.c (strict_aliasing_warning): Strip pointer
836         conversions for obtaining the original type.
837         * builtins.c (fold_builtin_memset): Handle array types.
838         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
839         and array types
840
841 2009-05-03  Richard Guenther  <rguenther@suse.de>
842
843         PR middle-end/23329
844         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
845         Do not lose casts from array types with unknown extent to array
846         types with known extent.
847         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
848         alias set compatibility.
849
850 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
851
852         * flags.h (extra_warnings): Delete.
853         * toplev.c (process_options): Handle Wuninitialized here.
854         * opts.c (extra_warnings): Delete.
855         (set_Wextra): Delete.
856         (common_handle_option): -Wextra can be handled automatically.
857         * c-opts.c (c_common_handle_option): Delete obsolete code.
858         (c_common_post_options): Simplify comment.
859         * common.opt (W): Add Var.
860         (Wextra): Add Var.
861         (Wuninitialized): Initialize to -1.
862
863 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
864             Richard Guenther  <rguenther@suse.de>
865
866         * expr.c (get_def_for_expr): New function.
867         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
868         SSA rather than trees.
869         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
870         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
871         
872 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
873
874         * c-common.c (reswords): Add _Imaginary.
875         * c-common.c (enum rid): Add RID_IMAGINARY.
876
877 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
878
879         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
880         Patch by Richard Guenther.
881
882 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
883
884         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
885         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
886         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
887         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
888         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
889         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
890         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
891         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
892         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
893         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
894         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
895         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
896         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
897         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
898         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
899         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
900         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
901         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
902
903 2009-05-02  Richard Guenther  <rguenther@suse.de>
904
905         PR tree-optimization/39940
906         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
907         doing so.
908
909 2009-05-02  Richard Guenther  <rguenther@suse.de>
910
911         PR middle-end/40001
912         * tree-ssa.c (execute_update_addresses_taken): Properly check
913         if we can mark a variable DECL_GIMPLE_REG_P.
914         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
915         back to the end of the function.
916         (is_gimple_reg_type): Remove complex type special casing.
917         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
918         if not optimizing.
919
920 2009-05-02  Ben Elliston  <bje@au.ibm.com>
921
922         * doc/collect2.texi (Collect2): Document search path behaviour
923         when configured with --with-ld.
924
925 2009-05-02  Jan Hubicka  <jh@suse.cz>
926
927         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
928         parameter; update callers.
929         (coalesce_cost_edge): EH edges are costier because they needs
930         splitting even if not critical and even more costier when there are
931         multiple EH predecestors.
932
933 2009-05-02  Jan Hubicka  <jh@suse.cz>
934
935         * except.c (remove_eh_handler_and_replace): Handle updating after
936         removing TRY blocks.
937
938 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
939
940         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
941
942 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
943
944         * varasm.c: Do not include c-pragma.h.
945         * attribs.c: Do not incude c-common.h.
946
947 2009-05-01  Michael Matz  <matz@suse.de>
948
949         * calls.c (initialize_argument_information): Handle SSA names like
950         decls with a non MEM_P DECL_RTL.
951
952 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
953
954         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
955         * ipa-utils.c: Likewise.
956         * ipa-type-escape.c: Likewise.
957         * cgraphunit.c Do not include c-common.h.
958         * ipa-pure-const.c: Likewise.
959         * tree-if-conv.c: Likewise.
960         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
961         * ipa-struct-reorg.c: Likewise.
962         * tree-nomudflap.c: Likewise.
963         * tree-ssa-structalias.c: Likewise.
964
965 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
966
967         * store-motion.c: Many cleanups to make this pass a first-class
968         citizen instead of an appendix to gcse load motion.  Add TODO list
969         to make this pass faster/cleaner/better.
970
971         (struct ls_expr): Post gcse.c-split cleanups.
972         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
973         "stores" field to "avail_stores".
974         (pre_ldst_mems): Rename to store_motion_mems.
975         (pre_ldst_table): Rename to store_motion_mems_table.
976         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
977         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
978         (ldst_entry): Rename to st_expr_entry, update users.
979         (free_ldst_entry): Rename to free_st_expr_entry, update users.
980         (free_ldst_mems): Rename to free_store_motion_mems, update users.
981         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
982         update caller.
983         (first_ls_expr): Rename to first_st_expr, update users.
984         (next_ls_expr): Rename to next_st_expr, update users.
985         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
986         fields properly for store motion instead of names inherited from load
987         motion in gcse.c.
988         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
989         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
990         are done with it.
991
992         (ae_kill): Rename to st_kill, update users.
993         (ae_gen): Rename to st_avloc, update users.
994         (transp): Rename to st_transp, update users.
995         (pre_insert_map): Rename to st_insert_map, update users.
996         (pre_delete_map): Rename to st_delete_map, update users.
997         (insert_store, build_store_vectors, free_store_memory,
998         one_store_motion_pass): Update for abovementioned changes.
999
1000         (gcse_subst_count, gcse_create_count): Remove.
1001         (one_store_motion_pass): New statistics counters "n_stores_deleted"
1002         and "n_stores_created", local variables.
1003
1004         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
1005         use for_each_rtx.
1006
1007         (regvec, compute_store_table_current_insn): Remove.
1008         (reg_set_info, reg_clear_last_set): Remove.
1009         (compute_store_table): Use DF caches instead of local dataflow
1010         solvers.
1011
1012 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
1013
1014         * c-objc-common.c (c_tree_printer): Print identifiers with
1015         pp_identifier, not pp_string.  Mark "({anonymous})" for
1016         translation.
1017         * c-pretty-print.c (pp_c_ws_string): New.
1018         (pp_c_cv_qualifier, pp_c_type_specifier,
1019         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
1020         pp_c_storage_class_specifier, pp_c_function_specifier,
1021         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
1022         pp_c_primary_expression, pp_c_postfix_expression,
1023         pp_c_unary_expression, pp_c_shift_expression,
1024         pp_c_relational_expression, pp_c_equality_expression,
1025         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
1026         use pp_string and pp_c_ws_string in place of pp_identifier and
1027         pp_c_identifier for non-identifiers.  Mark English strings for
1028         translation.
1029         * c-pretty-print.h (pp_c_ws_string): Declare.
1030
1031 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1032             Roland McGrath <roland@redhat.com>
1033
1034         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
1035         (ENABLE_LD_BUILDID): New configuration option.
1036         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
1037         (LINK_BUILDID_SPEC): New macro.
1038         (init_spec): If defined, prepend it between LINK_EH_SPEC and
1039         link_spec.
1040         * doc/install.texi: Document --enable-linker-build-id option.
1041         * configure: Rebuild.
1042         * config.in: Rebuild.
1043
1044 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
1045
1046         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
1047         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
1048         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
1049         MIPS_GP_SAVE_AREA_SIZE.
1050         * config/mips/mips.c (struct mips_frame_info): Update comment
1051         before arg_pointer_offset and hard_frame_pointer_offset.
1052         (mips_compute_frame_info): Update diagram before function: to
1053         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
1054         indicate the position of frame_pointer_rtx with -fstack-protector and
1055         to show args_size.  Don't allocate cprestore area for leaf functions
1056         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
1057         cprestore_size.
1058         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
1059
1060 2009-04-30  Michael Matz  <matz@suse.de>
1061
1062         PR tree-optimization/39955
1063         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
1064
1065 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1066
1067         * ira.c (setup_cover_and_important_classes):  Use safe macro
1068         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
1069         directly.
1070         * genpreds.c (write_tm_preds_h):  Output suitable definition of
1071         REG_CLASS_FOR_CONSTRAINT.
1072
1073 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
1074
1075         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
1076         instead of an int.
1077         * bitmap.c (bitmap_descriptor): Likewise.
1078         * ggc-common.c (loc_descriptor): Likewise.
1079         * varray.c (varray_descriptor): Likewise.
1080         * vec.c (vec_descriptor): Likewise.
1081
1082 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
1083
1084         * Makefile.in (dce.o): Add $(EXCEPT_H).
1085         * dce.c: Include except.h and delete redundant vector definitions.
1086         (deletable_insn_p): Return false for non-call insns that can throw
1087         if DF is running.
1088
1089 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
1090
1091         * gcse.c (ae_gen): Remove.
1092         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
1093         and make non-static function to make it available in store-motion.c.
1094         Update call sites with search-and-replace.
1095         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
1096         extract_mentioned_regs, extract_mentioned_regs_helper,
1097         find_moveable_store, compute_store_table, load_kills_store, find_loads,
1098         store_killed_in_insn, store_killed_after, store_killed_before,
1099         build_store_vectors, insert_insn_start_basic_block, insert-store,
1100         remove_reachable_equiv_notes, replace_store_insn, delete_store,
1101         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
1102         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
1103         * store-motion.c: ...new file.  Also copy data structures from gcse.c
1104         and clean up to remove parts not used by store motion.
1105         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
1106         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
1107
1108 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1109
1110         PR target/38571
1111         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
1112         when optimizing for size.
1113
1114 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
1115
1116         * gcse.c (gcse_constant_p): Fix typo in last change.
1117
1118 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
1119
1120         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
1121
1122 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
1123
1124         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
1125
1126 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
1127
1128         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
1129         CONST_HIGH_PART result.
1130
1131 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
1132
1133         * config/avr/avr.c (initial_elimination_offset): Rename to
1134         avr_initial_elimination_offset.
1135         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
1136         change return type to bool.
1137         (avr_can_eliminate): New function.
1138         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
1139         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
1140         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
1141         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
1142         avr_initial_elimination_offset.
1143         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
1144         (avr_initial_elimination_offset): Define.
1145
1146 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
1147             Steven Bosscher  <steven@gcc.gnu.org>
1148
1149         PR rtl-optimization/39938
1150         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
1151         * cfgrtl.c: Include insn-attr.h.
1152         (rest_of_pass_free_cfg): New function.
1153         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
1154         * resource.c (init_resource_info): Remove call to df_analyze.
1155
1156 2009-04-29  Richard Guenther  <rguenther@suse.de>
1157
1158         PR target/39943
1159         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
1160         allow conversion to signed integers.
1161
1162 2009-04-29  Richard Guenther  <rguenther@suse.de>
1163
1164         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
1165         shifts of floating point vectors if the shift amount is
1166         a constant multiple of the element size.
1167
1168 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
1169             Michael Matz  <matz@suse.de>
1170
1171         PR middle-end/39927
1172         PR bootstrap/39929
1173         * tree-outof-ssa.c (emit_partition_copy): New function.
1174         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
1175         insert_part_to_rtx_on_edge): Perform the partition base var
1176         copy using emit_partition_copy.
1177         (insert_value_copy_on_edge): Convert constants to the right mode.
1178         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
1179         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
1180
1181 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1182
1183         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
1184         scan backwards to try to find a constant to initialize it.
1185
1186         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
1187         insn before the loop_end instruction, don't look past labels.
1188
1189 2009-04-29  Richard Guenther  <rguenther@suse.de>
1190
1191         PR middle-end/39937
1192         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
1193         loose type conversions.
1194         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
1195         stmts only if there are no uses of its definition.
1196
1197 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1198
1199         * config/bfin/bfin.h (splitting_loops): Declare.
1200         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
1201         Reorder bit definitions to be ascending.
1202         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
1203         * config/bfin/bfin.c (splitting_loops): New variable.
1204         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
1205         (struct loop_info): Remove members INIT and LOOP_INIT.
1206         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
1207         the LSETUP sequence.  Allow LC to be loaded from any register, but
1208         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
1209         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
1210         set to 1.
1211         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
1212         of reload_completed.
1213
1214         From Jie Zhang:
1215         * config/bfin/bfin.md (movsi_insn): Refine constraints.
1216
1217 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
1218
1219         * Makefile.in (PLUGIN_VERSION_H): New.
1220         (OBJS-common): Remove plugin-version.o.
1221         (plugin.o): Depend on (PLUGIN_VERSION_H).
1222         (plugin-version.o): Remove.
1223         * configure: Regenerate
1224         * configure.ac: Create plugin-version.h.
1225         * gcc-plugin.h (plugin_gcc_version): Remove.
1226         (plugin_default_version_check): Change signature.
1227         * plugin-version.c: Remove.
1228         * plugin.c: Include plugin-version.h.
1229         (str_plugin_gcc_version_name): Remove.
1230         (try_init_one_plugin): Pass gcc version to plugin_init.
1231         (plugin_default_version_check): Both gcc and plugin versions are now
1232         arguments.
1233
1234 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1235         
1236         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
1237         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
1238         Remove special case testing for last insn of inner loops. Don't fail
1239         if the loop ends with a jump, emit an extra nop instead.
1240
1241         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
1242         DREGS rather than comparing directly.  Remove code that tries to
1243         account for latencies.
1244
1245 2009-04-29  Richard Guenther  <rguenther@suse.de>
1246
1247         PR tree-optimization/39941
1248         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
1249         eliminating an indirect call.
1250
1251 2009-04-29  Richard Guenther  <rguenther@suse.de>
1252
1253         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
1254         parameter.  Allow invariants as base if !require_lvalue.
1255         (verify_gimple_assign_single): Adjust.
1256
1257 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1258
1259         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
1260         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
1261         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
1262         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
1263         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
1264         a VEC_SELECT.
1265         * config/bfin/bfin.c (bfin_expand_builtin,
1266         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
1267
1268 2009-04-28  Richard Guenther  <rguenther@suse.de>
1269
1270         * tree-vect-loop.c (get_initial_def_for_induction): Use
1271         correct types for pointer increment.
1272
1273 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1274
1275         * toplev.c (print_version): Update GMP version string calculation.
1276
1277 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1278
1279         PR rtl-optimization/39938
1280         * resource.c (init_resource_info): Add call to df_analyze.
1281
1282 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1283
1284         * config/alpha/alpha.md (usegp): Cast the result of
1285         alpha_find_lo_sum_using_gp to enum attr_usegp.
1286         * config/alpha/alpha.c (override_options): Remove end-of-structure
1287         marker element from cpu_table.  Use array size of cpu_table to handle
1288         -mcpu and -mtune options.
1289         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
1290
1291 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
1292
1293         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
1294         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
1295         tune_32 and tune_64.
1296         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
1297         support on PowerPC.
1298         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
1299         * config/rs6000/option-defaults.h: ... here.  New file.
1300         (OPT_64, OPT_32): Define.
1301         (MASK_64BIT): Define to 0 if not already defined.
1302         (OPT_ARCH64, OPT_ARCH32): Define.
1303         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
1304         and tune_64.
1305
1306 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1307
1308         * config/arm/arm.c (arm_override_options): Emit error on using
1309         fpa with AAPCS.
1310
1311 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1312
1313         PR rtl-optimization/39914
1314         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
1315         registers for allocnos created from user-defined variables only
1316         when not optimizing.
1317
1318 2009-04-28  Richard Guenther  <rguenther@suse.de>
1319
1320         PR middle-end/39937
1321         * fold-const.c (fold_binary): Use distribute_real_division only
1322         on float types.
1323
1324 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
1325
1326         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
1327         add hpux-stdint.h to tm_file.
1328         (hppa[12]*-*-hpux11*): Ditto.
1329         (ia64*-*-hpux*): Ditto.
1330         * config/hpux-stdint.h: New.
1331         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
1332         __STDC_EXT__ for all compiles.
1333         * config/pa/pa-hpux.h: Ditto.
1334         * config/pa/pa-hpux10.h: Ditto.
1335         * config/pa/pa-hpux11.h: Ditto.
1336
1337 2009-04-28  Catherine Moore  <clm@codesourcery.com>
1338
1339         * debug.h (set_name): Add comment.
1340
1341 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
1342
1343         PR target/39929
1344         * config/darwin.c (machopic_gen_offset): Check
1345         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
1346         * config/arm/arm.c (require_pic_register): Likewise.
1347
1348 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
1349
1350         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
1351         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
1352         m32c_promote_prototypes): Delete.
1353
1354 2009-04-28  Michael Matz  <matz@suse.de>
1355
1356         PR middle-end/39922
1357         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
1358         constants.
1359
1360 2009-04-28  Richard Guenther  <rguenther@suse.de>
1361
1362         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
1363
1364 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1365
1366         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
1367         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
1368         * config/arm/arm-tune.md: Regenerate.
1369
1370 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
1371
1372         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
1373         block if there are complex incoming edges.
1374         (sel_merge_blocks): Remove useless assert.
1375         (sel_redirect_edge_and_branch): Check that edge was redirected.
1376         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
1377         (sel_find_rgns): Delete declaration.
1378         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
1379         the region when it is not a preheader.
1380
1381 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1382
1383         PR c/39323
1384         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
1385
1386 2009-04-28  Richard Guenther  <rguenther@suse.de>
1387
1388         * tree.h (SSA_NAME_VALUE): Remove.
1389         (struct tree_ssa_name): Remove value_handle member.
1390         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
1391         array for jump threading.
1392         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
1393         SSA_NAME_VALUEs.
1394         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
1395         * tree-flow.h (threadedge_initialize_values): Declare.
1396         (threadedge_finalize_values): Likewise.
1397         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
1398         (SSA_NAME_VALUE): Define.
1399         (threadedge_initialize_values): New function.
1400         (threadedge_finalize_values): Likewise.
1401         * tree-ssa-dom.c (ssa_name_values): New global variable.
1402         (SSA_NAME_VALUE): Define.
1403         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
1404
1405 2009-04-28  Ira Rosen  <irar@il.ibm.com>
1406
1407         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1408         Use REPORT_VECTORIZED_LOCATIONS instead 
1409         REPORT_VECTORIZED_LOOPS.
1410         * tree-vectorizer.c (vect_verbosity_level): Make static.
1411         (vect_loop_location): Rename to vect_location.
1412         (vect_set_verbosity_level): Update comment.
1413         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
1414         and vect_location.
1415         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
1416         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
1417         instead REPORT_UNVECTORIZED_LOOPS.
1418         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def and
1419         vect_loop_def to vect_external_def and vect_internal_def.
1420         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
1421         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
1422         REPORT_UNVECTORIZED_LOCATIONS.
1423         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
1424         and vect_used_in_loop and to vect_unused_in_scope and 
1425         vect_used_in_scope.
1426         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
1427         (vect_verbosity_level): Remove declaration.
1428         (vect_analyze_operations): Likewise.
1429         (vect_analyze_stmt): Declare.
1430         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
1431         REPORT_UNVECTORIZED_LOCATIONS.
1432         (vect_get_loop_niters): Fix indentation.
1433         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
1434         (vect_analyze_loop_operations): New function.
1435         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
1436         vect_analyze_operations.
1437         (vect_is_simple_reduction): Use new names.
1438         (vectorizable_live_operation, vect_transform_loop): Likewise.
1439         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value to
1440         specify whether the data references can be a part of interleaving chain.
1441         (vect_analyze_data_ref_dependence): Use new names.
1442         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
1443         (vect_create_addr_base_for_vector_ref): Remove redundant code.
1444         * tree-vect-patterns.c (widened_name_p): Use new names.
1445         (vect_recog_dot_prod_pattern): Likewise.
1446         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
1447         (process_use, vect_mark_stmts_to_be_vectorized, 
1448         vect_model_simple_cost, vect_model_store_cost,
1449         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
1450         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
1451         vectorizable_operation, vectorizable_type_demotion,
1452         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
1453         vectorizable_condition): Likewise.
1454         (vect_analyze_operations): Split into vect_analyze_loop_operations
1455         and ...
1456         (vect_analyze_stmt): ... new function.
1457         (new_stmt_vec_info): Use new names.
1458         (vect_is_simple_use): Use new names and fix comment.
1459         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
1460         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
1461
1462 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1463
1464         PR target/39911
1465         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
1466         and integer modes for x87 operands.  Do not ICE for unsupported size,
1467         generate error instead.  Generate error for unsupported operand types.
1468         ['z']: Do not handle HImode memory operands specially.  Warning
1469         for floating-point operands.  Fallthru to 'Z' for unsupported operand
1470         types.  Do not ICE for unsupported size, generate error instead.
1471         (output_387_binary_op): Use %Z to output operands.
1472         (output_fp_compare): Ditto.
1473         (output_387_reg_move): Ditto.
1474
1475 2009-04-28  Ben Elliston  <bje@au.ibm.com>
1476
1477         PR c++/35652
1478         Revert:
1479
1480         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1481
1482         * builtins.c (c_strlen): Do not warn here.
1483         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
1484         * c-common.c (pointer_int_sum): Take an explicit location.
1485         Warn about offsets out of bounds.
1486         * c-common.h (pointer_int_sum): Adjust declaration.
1487
1488 2009-04-27  Ian Lance Taylor  <iant@google.com>
1489
1490         * collect2.c (is_ctor_dtor): Change type of ret field in struct
1491         names to symkind.
1492         * dce.c (run_fast_df_dce): Change type of old_flags to int.
1493         * df-core.c (df_set_flags): Change return type to int.  Change
1494         type of old_flags to int.
1495         (df_clear_flags): Likewise.
1496         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
1497         (df_get_conditional_uses): Likewise.
1498         * df.h (df_set_flags, df_clear_flags): Update declarations.
1499         * dwarf2out.c (struct indirect_string_node): Change type of form
1500         field to enum dwarf_form.
1501         (AT_string_form): Change return type to enum dwarf_form.
1502         * fixed-value.c (fixed_compare): Add cast to enum type.
1503         * fwprop.c (update_df): Change 0 to VOIDmode.
1504         * gensupport.c: Change 0 to UNKNOWN.
1505         * gimple.h (gimple_cond_code): Add cast to enum type.
1506         * haifa-sched.c (reemit_notes): Add cast to enum type.
1507         * hooks.c (hook_int_void_no_regs): Remove function.
1508         * hooks.h (hook_int_void_no_regs): Remove declaration.
1509         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
1510         * predict.c (combine_predictions_for_insn): Add casts to enum type.
1511         * real.c (real_arithmetic): Add cast to enum type.
1512         (real_compare): Likewise.
1513         * target.h (struct gcc_target): Change return type of
1514         branch_target_register_class to enum reg_class.
1515         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
1516         default_branch_target_register_class.
1517         * targhooks.c (default_branch_target_register_class): New function.
1518         * targhooks.h (default_branch_target_register_class): Declare.
1519         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
1520         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
1521         cast to int.
1522         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
1523         ERROR_MARK.
1524         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
1525         vect_uninitialized_def.  Change 0 to ERROR_MARK.
1526         * tree-vect-stmts.c (supportable_widening_operation): Don't
1527         initialize icode1 and icode2.
1528         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
1529         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
1530         and to STD_C89.
1531         (cmn_err_flag_specs): Change 0 to STD_C89.
1532         (cmn_err_char_table): Likewise.
1533         * config/arm/arm.c (get_arm_condition_code): Change type of code
1534         to enum arm_cond_code.
1535         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
1536         (IWMMXT_BUILTIN2): Likewise.
1537         (neon_builtin_type_bits): Don't define typedef.
1538         (neon_builtin_datum): Change type of bits field to int.
1539         (arm_expand_neon_args): Add cast to enum type.
1540         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
1541         TLS_MODEL_NONE.
1542         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
1543         casts to enum type.
1544         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
1545         MIPS_FP_COND_f.
1546         * config/mips/mips.md (jal_macro): Return enum constant.
1547         (single_insn): Likewise.
1548         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
1549         CODE_FOR_nothing.
1550         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1551         casts to enum type.
1552         * config/s390/s390.c (s390_tune_flags): Change type to int.
1553         (s390_arch_flags): Likewise.
1554         (s390_handle_arch_option): Change flags field of struct pta to int.
1555         * config/s390/s390.h (s390_tune_flags): Update declaration.
1556         (s390_arch_flags): Likewise.
1557         * config/sh/sh.c (prepare_move_operands): Compare
1558         tls_symbolic_operand result with enum constant.
1559         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
1560         (sh_expand_prologue): Add cast to enum type.
1561         (sh_expand_epilogue): Likewise.
1562         (tls_symbolic_operand): Change return type to enum tls_model.
1563         (fpscr_set_from_mem): Add cast to enum type.
1564         (legitimize_pic_address): Compare tls_symbolic_operand result with
1565         enum constant.
1566         (sh_target_reg_class): Change return type to enum reg_class.
1567         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
1568         PROCESSOR_xxx.
1569         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
1570         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
1571         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
1572         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
1573         (delayed_branch, tls_call_delay): Likewise.
1574         (eligible_for_sibcall_delay): Likewise.
1575         (eligible_for_return_delay): Likewise. 
1576         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
1577         (spu_expand_builtin_1): Likewise.
1578
1579         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
1580         for all types of conversions.
1581         (output_init_element): Issue -Wc++-compat warning if needed when
1582         initializing a bitfield with enum type.
1583         * c-parser.c (c_parser_expression): Set original_type to
1584         original_type of right hand operand of comman operator.
1585
1586 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1587
1588         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
1589         grammar nits.
1590         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
1591         * doc/cpp.texi (Standard Predefined Macros)
1592         (Implementation-defined behavior): Likewise.
1593         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
1594         * doc/gimple.texi (GIMPLE Exception Handling)
1595         (@code{GIMPLE_ASSIGN}): Likewise.
1596         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
1597         * doc/invoke.texi (Warning Options, Optimize Options)
1598         (AVR Options, Darwin Options): Likewise.
1599         (Optimize Options): Reformulate -fwhole-program description.
1600         * doc/loop.texi (Lambda): Likewise.
1601         * doc/md.texi (Output Template, Define Constraints)
1602         (Standard Names, Insn Splitting): Likewise.
1603         * doc/options.texi (Option properties): Likewise.
1604         * doc/passes.texi (Tree-SSA passes): Likewise.
1605         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
1606         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
1607         (File Names and DBX): Likewise.
1608         * doc/trouble.texi (Incompatibilities): Likewise.
1609
1610 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1611
1612         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
1613         instruction is correct.
1614
1615 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1616
1617         Allow non-constant arguments to conversion intrinsics.
1618         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
1619         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
1620         * spu.c (print_operand): Handle 'v' and 'w'.
1621         (exp2_immediate_p, spu_gen_exp2): Define.
1622         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
1623         spu_convtf_1): Update parameter descriptions.
1624         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
1625         * constraints.md ('v', 'w'): New.
1626         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
1627         Remove.
1628         (i2f, I2F): New define_mode_attr.
1629         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
1630         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
1631         fixuns_truncv4sfv4si2):  Update to use mode attribute.
1632         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
1633         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
1634         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
1635         patterns for combine.
1636
1637 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
1638
1639         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
1640         (cprop, hoist, pre, store_motion): New debug counters.
1641         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
1642         is not an RTL pass anymore.
1643         (pass_profiling): Remove extern decl for pass removed in 2005.
1644         (pass_gcse, pass_jump_bypass): Remove.
1645         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
1646         to 0 for clean state.
1647         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
1648         * cse.c (gate_handle_cse_after_global_opts,
1649         rest_of_handle_cse_after_global_opts): New functions.
1650         (pass_cse_after_global_opts): New pass, does local CSE.
1651         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
1652         (TV_CPROP): New timevar.
1653         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
1654         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
1655         (gcse_main, recompute_all_luids): Remove.
1656         (compute_hash_table_work): Call max_reg_num instead of reading
1657         max_gcse_regno.
1658         (cprop_jump): Don't set run_jump_opt_after_gcse.
1659         (constprop_register): Always allow to alter jumps.
1660         (cprop_insn): Likewise.
1661         (do_local_cprop): Likewise.
1662         (local_cprop_pass): Likewise.  Return non-zero if something changed.
1663         (cprop): Remove function, fold interesting bits into one_cprop_pass.
1664         (find_implicit_sets): Add note about missed optimization opportunity.
1665         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
1666         pass_rtl_cprop execute function.
1667         Don't bother tracking the pass number, each pass gets its own dumpfile
1668         now anyway.
1669         Always allow to alter jumpsand bypass jumps.
1670         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
1671         will just find no suitable set.
1672         (pre_edge_insert): Fix dumping, this function is for PRE only.
1673         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
1674         pass_rtl_pre execute function.
1675         (hoist_code): Return non-zero if something changed.  Keep track of
1676         substitutions and insertions for statistics gathering similar to PRE.
1677         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
1678         called from the pass_rtl_hoist execute function.  Show pass statistics.
1679         (compute_store_table): Use max_reg_num directly instead of using the
1680         formerly global max_gcse_regno.
1681         (build_store_vectors): Likewise.
1682         (replace_store_insn): Fix dumping.
1683         (store_motion): Rename to ...
1684         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
1685         pass, called from the pass_rtl_store_motion execute function.  Keep
1686         track of substitutions and insertions for statistics gathering similar
1687         to PRE.
1688         (bypass_jumps): Remove, fold interesting bits into ...
1689         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
1690         from the pass_rtl_cprop execute function.
1691         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
1692         pass_jump_bypass): Remove.
1693         (gate_handle_gcse, rest_of_handle_gcse): Remove.
1694         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
1695         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
1696         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
1697         (gate_rtl_store_motion, execute_rtl_store_motion,
1698         pass_rtl_store_motion): New.
1699         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
1700         make it clear that -fcse-skip-blocks is a no-op for backward compat.
1701         * passes.c (init_optimization_passes): Remove pass_gcse and
1702         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
1703         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
1704         instead of pass_jump_bypass.
1705
1706 2009-04-27  Richard Guenther  <rguenther@suse.de>
1707
1708         PR middle-end/39928
1709         * gimplify.c (gimplify_expr): If we are required to create
1710         a temporary make sure it ends up as register.
1711
1712 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1713
1714         PR target/39903
1715         * config/i386/i386.c (construct_container): Don't call
1716         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
1717         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
1718
1719 2009-04-27  Michael Matz  <matz@suse.de>
1720
1721         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
1722         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
1723         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
1724         (dump_replaceable_exprs): Take a bitmap.
1725         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
1726         array.
1727         (expand_gimple_basic_block): Likewise.
1728         * tree-ssa-ter.c (struct temp_expr_table_d): Make
1729         replaceable_expressions member a bitmap.
1730         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
1731         (mark_replaceable): Likewise.
1732         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
1733         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
1734
1735 2009-04-27  Richard Guenther  <rguenther@suse.de>
1736
1737         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
1738         (verify_stmts): Dispatch to gimple/type verification code.
1739         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
1740         issue with call argument types.
1741
1742 2009-04-27  Michael Matz  <matz@suse.de>
1743
1744         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
1745         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
1746         to above.
1747
1748 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
1749             Eric Botcazou  <ebotcazou@adacore.com>
1750
1751         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
1752         a label's basic block.
1753         (mark_target_live_regs): Tidy and rework obsolete comments.
1754         Change back DF problem to LIVE.  If a label starts a basic block,
1755         assume that all registers that used to be live then still are.
1756         (init_resource_info): If a label starts a basic block, set its
1757         BLOCK_FOR_INSN accordingly.
1758         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
1759
1760 2009-04-27  Richard Guenther  <rguenther@suse.de>
1761
1762         * tree-flow-inline.h (function_ann): Remove.
1763         (get_function_ann): Likewise.
1764         * tree-dfa.c (create_function_ann): Remove.
1765         * tree-flow.h (struct static_var_ann_d): Remove.
1766         (struct function_ann_d): Likewise.
1767         (union tree_ann_d): Remove fdecl member.
1768         (function_ann_t): Remove.
1769         (function_ann, get_function_ann, create_function_ann): Remove
1770         declarations.
1771
1772 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
1773
1774         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
1775
1776 2009-04-27  Jan Hubicka  <jh@suse.cz>
1777
1778         * ipa-pure-const.c (struct funct_state_d): New fields
1779         state_previously_known, looping_previously_known; remove
1780         state_set_in_source.
1781         (analyze_function): Use new fields.
1782         (propagate): Avoid assumption that state_set_in_source imply
1783         nonlooping.
1784
1785         * tree-ssa-loop-niter.c (finite_loop_p): New function.
1786         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
1787         * cfgloop.h (finite_loop_p): Declare.
1788
1789 2009-04-26  Michael Matz  <matz@suse.de>
1790
1791         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
1792
1793 2009-04-26  Michael Matz  <matz@suse.de>
1794
1795         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
1796         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
1797         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
1798         pass_mark_used_blocks): Remove.
1799         * tree-optimize.c (pass_free_datastructures,
1800         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
1801         * passes.c (init_optimization_passes): Don't call
1802         pass_mark_used_blocks, remove dead code.
1803
1804 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
1805
1806         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
1807         * tree-ssa-live.h (register_ssa_partition): Likewise.
1808
1809 2009-04-26  Michael Matz  <matz@suse.de>
1810
1811         Expand from SSA.
1812         * builtins.c (fold_builtin_next_arg): Handle SSA names.
1813         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
1814         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
1815         SSA names. 
1816         (compare_pairs): Swap cost comparison.
1817         (coalesce_ssa_name): Don't use change_partition_var.
1818         * tree-nrv.c (struct nrv_data): Add modified member.
1819         (finalize_nrv_r): Set it.
1820         (tree_nrv): Use it to update statements.
1821         (pass_nrv): Require PROP_ssa.
1822         * tree-mudflap.c (mf_decl_cache_locals,
1823         mf_build_check_statement_for): Use make_rename_temp.
1824         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
1825         * alias.c (find_base_decl): Handle SSA names.
1826         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
1827         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
1828         * rtl.h (set_reg_attrs_for_parm): Declare.
1829         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
1830         to "optimized", remove unused locals at finish.
1831         (execute_free_datastructures): Make global, call
1832         delete_tree_cfg_annotations.
1833         (execute_free_cfg_annotations): Don't call
1834         delete_tree_cfg_annotations.
1835
1836         * ssaexpand.h: New file.
1837         * expr.c (toplevel): Include ssaexpand.h.
1838         (expand_assignment): Handle SSA names the same as register variables.
1839         (expand_expr_real_1): Expand SSA names.
1840         * cfgexpand.c (toplevel): Include ssaexpand.h.
1841         (SA): New global variable.
1842         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
1843         (SSAVAR): New macro.
1844         (set_rtl): New helper function.
1845         (add_stack_var): Deal with SSA names, use set_rtl.
1846         (expand_one_stack_var_at): Likewise.
1847         (expand_one_stack_var): Deal with SSA names.
1848         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
1849         before unique numbers.
1850         (expand_stack_vars): Use set_rtl.
1851         (expand_one_var): Accept SSA names, add asserts for them, feed them
1852         to above subroutines.
1853         (expand_used_vars): Expand all partitions (without default defs),
1854         then only the local decls (ignoring those expanded already).
1855         (expand_gimple_cond): Remove edges when jumpif() expands an
1856         unconditional jump.
1857         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
1858         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
1859         SSA name.
1860         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
1861         members of SA; deal with PARM_DECL partitions here; expand
1862         all PHI nodes, free tree datastructures and SA.  Commit instructions
1863         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
1864         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
1865         info and statements at start, collect garbage at finish.
1866         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
1867         (VAR_ANN_PARTITION) Remove.
1868         (change_partition_var): Don't declare.
1869         (partition_to_var): Always return SSA names.
1870         (var_to_partition): Only accept SSA names.
1871         (register_ssa_partition): Only check argument.
1872         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
1873         member.
1874         (delete_var_map): Don't free it.
1875         (var_union): Only accept SSA names, simplify.
1876         (partition_view_init): Mark only useful SSA names as used.
1877         (partition_view_fini): Only deal with SSA names.
1878         (change_partition_var): Remove.
1879         (dump_var_map): Use ssa_name instead of partition_to_var member.
1880         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
1881         basic blocks.
1882         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
1883         (struct _elim_graph): New member const_dests; nodes member vector of
1884         ints.
1885         (set_location_for_edge): New static helper.
1886         (create_temp): Remove.
1887         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
1888         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
1889         (new_elim_graph): Allocate const_dests member.
1890         (clean_elim_graph): Truncate const_dests member.
1891         (delete_elim_graph): Free const_dests member.
1892         (elim_graph_size): Adapt to new type of nodes member.
1893         (elim_graph_add_node): Likewise.
1894         (eliminate_name): Likewise.
1895         (eliminate_build): Don't take basic block argument, deal only with
1896         partition numbers, not variables.
1897         (get_temp_reg): New static helper.
1898         (elim_create): Use it, deal with RTL temporaries instead of trees.
1899         (eliminate_phi): Adjust all calls to new signature.
1900         (assign_vars, replace_use_variable, replace_def_variable): Remove.
1901         (rewrite_trees): Only do checking.
1902         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
1903         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
1904         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
1905         contains_tree_r, MAX_STMTS_IN_LATCH,
1906         process_single_block_loop_latch, analyze_edges_for_bb,
1907         perform_edge_inserts): Remove.
1908         (expand_phi_nodes): New global function.
1909         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
1910         functions, initialize new parameter, remember partitions having a
1911         default def.
1912         (finish_out_of_ssa): New global function.
1913         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
1914         don't reset in_ssa_p here, don't disable TER when mudflap.
1915         (pass_del_ssa): Remove.
1916         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
1917         partition members.
1918         (execute_free_datastructures): Declare.
1919         * Makefile.in (SSAEXPAND_H): New variable.
1920         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
1921         * basic-block.h (commit_one_edge_insertion): Declare.
1922         * passes.c (init_optimization_passes): Move pass_nrv and
1923         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
1924         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
1925         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
1926         (redirect_branch_edge): Deal with super block when expanding, split
1927         out jump patching itself into ...
1928         (patch_jump_insn): ... here, new static helper.
1929
1930 2009-04-26  Michael Matz  <matz@suse.de>
1931
1932         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
1933         beyond num_ssa_names.
1934         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1935         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
1936
1937 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1938
1939         PR inline-asm/39543
1940         * fwprop.c (forward_propagate_asm): New function.
1941         (forward_propagate_and_simplify): Propagate also into __asm, if it
1942         doesn't increase the number of referenced registers.
1943
1944         PR c/39889
1945         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
1946
1947 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1948
1949         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
1950         note_nonlocal_vla_type for nonlocal VLAs.
1951         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
1952         contains_remapped_vars, remap_vla_decls): New functions.
1953         (convert_nonlocal_reference_stmt): If not optimizing, call
1954         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
1955         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
1956         if it wasn't found in var_map.
1957         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
1958         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
1959         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
1960         declare_vars.
1961         * gimplify.c (nonlocal_vlas): New variable.
1962         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
1963         referenced VLAs.
1964         (gimplify_body): Create and destroy nonlocal_vlas.
1965
1966         * dwarf2out.c (loc_descr_plus_const): New function.
1967         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
1968         mem_loc_descriptor, loc_descriptor_from_tree_1,
1969         descr_info_loc, gen_variable_die): Use it.
1970
1971         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
1972         !TREE_STATIC VAR_DECLs.
1973         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
1974         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
1975         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
1976         DECL_BY_REFERENCE is valid.
1977         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
1978         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
1979         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
1980         Copy DECL_BY_REFERENCE.
1981         (struct nesting_copy_body_data): New type.
1982         (nesting_copy_decl): New function.
1983         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
1984         if they have variable length.
1985
1986 2009-04-26  Michael Matz  <matz@suse.de>
1987
1988         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
1989         mark new temporaries for renaming.
1990
1991 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
1992
1993         PR c/39581
1994         * c-decl.c (global_bindings_p): Return negative value.
1995         (c_variable_size): New.  Based on variable_size from
1996         stor-layout.c.
1997         (grokdeclarator): Call c_variable_size not variable_size.
1998
1999 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
2000
2001         * config/i386/i386.c (print_operand) ['z']: Fix typo.
2002
2003 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
2004
2005         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
2006         Redefine it to just use mingw/include.
2007         (ASM_SPEC): Rules for -m32 and -m64.
2008         (LINK_SPEC): Use Likewise.
2009         (SPEC_32): New define.
2010         (SPEC_64): Likewise.
2011         (SUB_LINK_SPEC): Likewise.
2012         (MULTILIB_DEFAULTS): New define.
2013         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
2014         Add multilib options.
2015         (MULTILIB_DIRNAMES): Likewise.
2016         (MULTILIB_OSDIRNAMES): Likewise.
2017         (LIBGCC): Likewise.
2018         (INSTALL_LIBGCC): Likewise.
2019
2020 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
2021
2022         PR c/39556
2023         * c-tree.h (enum c_inline_static_type): New.
2024         (record_inline_static): Declare.
2025         * c-decl.c (struct c_inline_static, c_inline_statics,
2026         record_inline_static, check_inline_statics): New.
2027         (pop_file_scope): Call check_inline_statics.
2028         (start_decl): Call record_inline_static instead of pedwarning
2029         directly for static in inline function.
2030         * c-typeck.c (build_external_ref): Call record_inline_static
2031         instead of pedwarning directly for static referenced in inline
2032         function.
2033
2034 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
2035
2036         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
2037         not new but only being rescanned.
2038         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
2039         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
2040         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
2041         record_set_info, compute_set, grealloc): Remove.
2042         (recompute_all_luids): New function.
2043         (gcse_main): Don't compute sets, and don't do related memory
2044         allocations/free-ing.  If something changed before the end of the
2045         pass, update LUIDs using recompute_all_luids.
2046         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
2047         (free_gcse_mem): Don't free it either.
2048         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
2049         Use the df insn LUIDs.
2050         (load_killed_in_block): Likewise.
2051         (compute_hash_table_work): Don't compute reg_set_in_block.
2052         (compute_transp): Use DF_REG_DEF_CHAINs.
2053         (local_cprop_pass): Don't use compute_sets and related functions.
2054         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
2055         Use get_max_uid() instead of max_cuid.
2056         (insert_insn_end_basic_block, pre_insert_copy_insn,
2057         update_ld_motion_stores): Don't try to
2058         keep reg_set tables up to date.
2059         (pre_insert_copies): Use df insn LUIDs.
2060         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
2061         (reg_set_info): Don't use extra bitmap argument.
2062         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
2063         information to compute regs_set_in_block.
2064         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
2065         (bypass_jumps): Don't use compute_sets and friends.
2066
2067 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2068
2069         PR testsuite/39710
2070         * opts.c (undocumented_msg): Do not leave blank even with
2071         ENABLE_CHECKING.
2072
2073 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
2074
2075         * c-decl.c (build_enumerator): Allow values folding to integer
2076         constants but not integer constant expressions with a pedwarn if
2077         pedantic.
2078
2079 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
2080
2081         PR c/39582
2082         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
2083         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
2084         type is an integer constant.
2085
2086 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
2087
2088         PR target/39897
2089         * config/i386/i386.c (print_operand) ['z']: Revert handling of
2090         HImode operands.
2091
2092 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
2093
2094         PR c/39564
2095         * c-decl.c (grokdeclarator): Diagnose declarations of functions
2096         with variably modified return type and no storage class
2097         specifiers, except for the case of nested functions.  Distinguish
2098         extern declarations of functions with variably modified return
2099         types from those of objects with variably modified types.
2100
2101 2009-04-25  Jan Hubicka  <jh@suse.cz>
2102
2103         * tree.c (list_equal_p): New function.
2104         * tree.h (list_equal_p): Declare.
2105         * coretypes.h (edge_def, edge, const_edge, basic_block_def
2106         basic_block_def, basic_block, const_basic_block): New.
2107         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
2108         (redirect_eh_edge): New function.
2109         (make_eh_edge_update_phi): EH edges are not abnormal.
2110         * except.c: Include tree-flow.h.
2111         (list_match): New function.
2112         (eh_region_replaceable_by_p): New function.
2113         (replace_region): New function.
2114         (hash_type_list): New function.
2115         (hash_eh_region): New function.
2116         (eh_regions_equal_p): New function.
2117         (merge_peers): New function.
2118         (remove_unreachable_regions): Verify EH tree when checking;
2119         merge peers.
2120         (copy_eh_region_1): New function.
2121         (copy_eh_region): New function.
2122         (push_reachable_handler): New function.
2123         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
2124         regions without label but with live RESX.
2125         * except.h (redirect_eh_edge_to_label): New.
2126         * tree-flow.h (redirect_eh_edge): New.
2127         * coretypes.h (edge_def, edge, const_edge, basic_block_def
2128         basic_block_def, basic_block, const_basic_block): Remove.
2129         * Makefile.in (except.o): Add dependency on tree-flow.h
2130         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
2131         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
2132         Remove.
2133
2134 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
2135
2136         PR bootstrap/39645
2137         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
2138         on the destination of memcpy.
2139
2140 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
2141
2142         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
2143         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
2144         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
2145
2146 2009-04-25  Jan Hubicka  <jh@suse.cz>
2147
2148         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
2149         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
2150         to be reached by different label than left.
2151         (update_eh_edges): Update comment; remove edge_to_remove if possible
2152         and return true if suceeded.
2153         (cleanup_empty_eh): Accept sharing map; handle shared regions.
2154         (cleanup_eh): Compute sharing map.
2155         * except.c (remove_eh_handler_and_replace): Add argument if we should
2156         update regions.
2157         (remove_unreachable_regions): Update for label sharing.
2158         (label_to_region_map): Likewise.
2159         (get_next_region_sharing_label): New function.
2160         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
2161         prev_try pointers.
2162         (remove_eh_handler): Update.
2163         (remove_eh_region_and_replace_by_outer_of): New function.
2164         * except.h (struct eh_region): Add next_region_sharing_label.
2165         (remove_eh_region_and_replace_by_outer_of,
2166         get_next_region_sharing_label): Declare.
2167         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
2168
2169 2009-04-25  Jan Hubicka  <jh@suse.cz>
2170
2171         * tree-cfg.c (split_critical_edges): Split also edges where we can't
2172         insert code even if they are not critical.
2173
2174 2009-04-25  Jan Hubicka  <jh@suse.cz>
2175
2176         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
2177         (gimple_can_remove_branch_p): EH edges won't remove branch by
2178         redirection.
2179         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
2180         updating of non-abnormal EH edges.
2181         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
2182         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
2183         (split_critical_edges): Split also edges where emitting code on them
2184         will lead to splitting later.
2185
2186 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
2187             H.J. Lu  <hongjiu.lu@intel.com>
2188
2189         PR target/39590
2190         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
2191         the configured assembler supports fildq and fistpq mnemonics.
2192         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
2193         * configure: Regenerated.
2194         * config.in: Ditto.
2195
2196         * config/i386/i386.c (print_operand): Handle 'Z'.
2197         ['z']: Remove handling of special fild/fist suffixes.
2198         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
2199         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
2200         suffix of fild insn.
2201         (*floatsi<mode>2_vector_mixed): Ditto.
2202         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
2203         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
2204         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2205         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
2206         * config/i386/gas.h (GAS_MNEMONICS): Remove.
2207
2208 2009-04-25  Ben Elliston  <bje@au.ibm.com>
2209  
2210         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
2211         the source of a set operation.
2212
2213 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
2214
2215         * target.h (struct gcc_target): Add case_values_threshold field.
2216         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
2217         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
2218         * targhooks.c (default_case_values_threshold): New function.
2219         * targhooks.h (default_case_values_threshold): Declare function.
2220         * stmt.c (expand_case): Use case_values_threshold target hook.
2221         * expr.h (case_values_threshold): Remove declartation.
2222         * expr.c (case_values_threshold): Remove function.
2223         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
2224
2225         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
2226         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2227         (avr_case_values_threshold): Declare as static.
2228         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
2229
2230         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
2231         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2232         (mn10300_case_values_threshold): New function.
2233
2234 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
2235
2236         * ira.c (setup_cover_and_important_classes): Add enum cast.
2237
2238 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2239
2240         * genpreds.c (write_enum_constraint_num): Output definition of
2241         CONSTRAINT_NUM_DEFINED_P macro.
2242         * ira.c (setup_cover_and_important_classes): Use
2243         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
2244         
2245 2009-04-24  DJ Delorie  <dj@redhat.com>
2246
2247         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
2248         __SH2A_SINGLE_ONLY__ also.
2249
2250 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
2251
2252         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
2253         (movdf_internal): Ditto.
2254         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
2255         SFmode and DFmode constants.
2256         (ia64_print_operand): Add 'G' format for printing
2257         floating point constants.
2258
2259 2009-04-24  Richard Guenther  <rguenther@suse.de>
2260
2261         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
2262         from unsigned additions.
2263
2264 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
2265
2266         * c-typeck.c (set_init_index): Allow array designators that are
2267         not integer constant expressions with a pedwarn if pedantic.
2268
2269 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2270
2271         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
2272         zero if no overlap in nonzero bits between the operands.
2273
2274 2009-04-24  Ian Lance Taylor  <iant@google.com>
2275
2276         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
2277         (record_dead_and_set_regs): Likewise.
2278         * df.h (struct df_mw_hardreg): Change flags field to int.
2279         (struct df_base_ref): Likewise.
2280         (struct df): Change changeable_flags field to int.
2281         * df-scan.c (df_defs_record): Change clobber_flags to int.
2282         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
2283         constants rather than #define macros.
2284         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
2285         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
2286         (enum dwarf_calling_convention): Likewise.
2287         (enum dwarf_line_number_x_ops): Likewise.
2288         (enum dwarf_call_frame_info): Likewise.
2289         (enum dwarf_source_language): Likewise.
2290         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
2291         (add_calling_convention_attribute): Likewise.
2292         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
2293         (combine_comparisons): Change compcode to int.  Add cast to enum type.
2294         * genrecog.c (maybe_both_true_2): Change c to int.
2295         (write_switch): Likewise.  Add cast to enum type.
2296         * gimplify.c (gimplify_omp_for): Handle return values from
2297         gimplify_expr using MIN rather than bitwise or.
2298         (gimplify_expr): Add cast to enum type.
2299         * ipa-prop.c (update_jump_functions_after_inlining): Change
2300         IPA_BOTTOM to IPA_JF_UNKNOWN.
2301         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
2302         Add casts to enum type.
2303         (setup_cover_and_important_classes): Change cl to int.  Add casts
2304         to enum type.
2305         (setup_class_translate): Change cl and mode to int.
2306         (ira_init_once): Change mode to int.
2307         (free_register_move_costs): Likewise.
2308         (setup_prohibited_mode_move_regs): Add casts to enum type.
2309         * langhooks.c (add_builtin_function_common): Rework assertion that
2310         value fits bitfield.
2311         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
2312         * omega.c (omega_do_elimination): Avoid math on enum types.
2313         * optabs.c (expand_vec_shift_expr): Remove casts to int.
2314         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
2315         int local to handle integral_argment value.
2316         * regmove.c (try_auto_increment): Change PUT_MODE to
2317         PUT_REG_NOTE_KIND.
2318         * reload.c (push_secondary_reload): Add casts to enum type.
2319         (secondary_reload_class, find_valid_class): Likewise.
2320         * reload1.c (emit_input_reload_insns): Likewise.
2321         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
2322         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
2323         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
2324         constant.
2325         * tree.c (build_common_builtin_nodes): Add casts to enum type.
2326         * tree-complex.c (complex_lattice_t): Typedef to int rather than
2327         enum type.
2328         (expand_complex_libcall): Add casts to enum type.
2329         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
2330         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
2331         with ERROR_MARK, not NUM_TREE_CODES.
2332         (vect_create_epilog_for_reduction): Likewise.
2333         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
2334         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
2335         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
2336         enum machine_mode.
2337         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
2338         vect_unused_in_loop.  Change 0 to loop_vect.
2339         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
2340         * var-tracking.c (get_init_value): Change return type to enum
2341         var_init_status.
2342         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
2343         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
2344         arm_fp_model.
2345         (arm_override_options): Add casts to enum type.
2346         (arm_emit_tls_decoration): Likewise.
2347         * config/i386/i386.c (ix86_function_specific_restore): Add casts
2348         to enum type.
2349         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
2350         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
2351         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
2352         enum type.
2353         * config/s390/s390.c (code_for_builtin_64): Change to array of
2354         enum insn_code.
2355         (code_for_builtin_31): Likewise.
2356         (s390_expand_builtin): Change code_for_builtin to enum insn_code
2357         const *.
2358         * config/sparc/sparc.c (sparc_override_options): Change value
2359         field in struct code_model to enum cmodel.  In initializer change
2360         0 to NULL and add cast to enum type.
2361
2362         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
2363         Change all callers.  Issue a -Wc++-compat warning using
2364         lhs_origtype if necessary.
2365         (convert_for_assignment): Issue -Wc++-compat warnings about
2366         invalid conversions to enum type on assignment.
2367         * c-common.h (build_modify_expr): Update declaration.
2368
2369 2009-04-24  Nick Clifton  <nickc@redhat.com>
2370
2371         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
2372         (function_arg_advance): Likewise.
2373         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
2374         5th alternative.
2375
2376 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2377
2378         * config/s390/constraints.md ('I', 'J'): Fix condition.
2379
2380 2009-04-24  Diego Novillo  <dnovillo@google.com>
2381
2382         * gengtype-parse.c (parse_error): Add newline after message.
2383
2384 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
2385
2386         * config/i386/sse.md (avxmodesuffixs): Removed.
2387         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
2388         (*avx_pinsr<ssevecsize>): This.
2389
2390 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2391
2392         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
2393         follow chains of regs with a single definition, and allow expressions
2394         that are function_invariant_p.
2395         (simple_rhs_p): Allow expressions that are function_invariant_p.
2396
2397 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
2398
2399         PR middle-end/39867
2400         * fold-const.c (fold_cond_expr_with_comparison): When folding
2401         > and >= to MAX, make sure the MAX uses the same type as the
2402         comparison's operands.
2403
2404 2009-04-24  Nick Clifton  <nickc@redhat.com>
2405
2406         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
2407         addressing for DImode accesses.
2408         (frv_print_operand_address): Handle PLUS case.
2409         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
2410
2411 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2412
2413         PR rtl-optimization/39794
2414         * alias.c (canon_true_dependence): Add x_addr argument.
2415         * rtl.h (canon_true_dependence): Adjust prototype.
2416         * cse.c (check_dependence): Adjust canon_true_dependence callers.
2417         * cselib.c (cselib_invalidate_mem): Likewise.
2418         * gcse.c (compute_transp): Likewise.
2419         * dse.c (scan_reads_nospill): Likewise.
2420         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
2421         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
2422         canon_base_addr of the group, plus optional offset.
2423         (struct group_info): Rename canon_base_mem to
2424         canon_base_addr.
2425         (get_group_info): Set canon_base_addr to canon_rtx of base, not
2426         canon_rtx of base_mem.
2427
2428 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
2429
2430         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
2431         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
2432
2433 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2434
2435         * config/spu/spu-builtins.h: Delete file.
2436
2437         * config/spu/spu.h (enum spu_builtin_type): Move here from
2438         spu-builtins.h.
2439         (struct spu_builtin_description): Likewise.  Add GTY marker.
2440         Do not use enum spu_function_code or enum insn_code.
2441         (spu_builtins): Add extern declaration.
2442
2443         * config/spu/spu.c: Do not include "spu-builtins.h".
2444         (enum spu_function_code, enum spu_builtin_type_index,
2445         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
2446         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
2447         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
2448         unsigned_V2DI_type_node): Move here from spu-builtins.h.
2449         (spu_builtin_types): Make static.  Add GTY marker.
2450         (spu_builtins): Add extern declaration with GTY marker.
2451         Include "gt-spu.h".
2452
2453         * config/spu/spu-c.c: Do not include "spu-builtins.h".
2454         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
2455         Check programmatically whether all parameters are scalar.
2456
2457         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
2458
2459 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
2460
2461         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
2462         assignment from the constructor either if the target is volatile.
2463
2464 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
2465
2466         * config/arm/arm.md (insv): Do not share operands[0].
2467
2468 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
2469
2470         * config/vxlib-tls.c (active_tls_threads): Delete.
2471         (delete_hook_installed): New.
2472         (tls_delete_hook): Don't delete the delete hook.
2473         (tls_destructor): Delete it here.
2474         (__gthread_set_specific): Adjust installing the delete hook.
2475         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
2476         __gthread_leave_tsd_dtor_context.
2477
2478 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
2479
2480         * c-format.c (gcc_tdiag_char_table): Add support for %E.
2481
2482 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
2483
2484         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
2485         enum type.
2486         (alpha_rtx_costs): Ditto.
2487         (emit_unlikely_jump): Use add_reg_note.
2488         (emit_frame_store_1): Ditto.
2489         (alpha_expand_prologue): Ditto.
2490         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
2491         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
2492
2493 2009-04-23  Nick Clifton  <nickc@redhat.com>
2494
2495         * config/v850/v850.md (epilogue): Remove suppressed code.
2496         (return): Rename to return_simple and remove test of frame size.
2497         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
2498         to gen_return_simple.
2499
2500 2009-04-22  Jing Yu  <jingyu@google.com>
2501
2502         PR testsuite/39781
2503         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
2504
2505 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2506
2507         PR C/31499
2508         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
2509         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
2510         value is a VECTOR_CST, the element type is the element type of the
2511         vector.
2512
2513 2009-04-22  DJ Delorie  <dj@redhat.com>
2514
2515         * config/m32c/m32c.h: Update GTY annotations to new syntax.
2516
2517 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
2518
2519         * alias.c (find_base_term): Move around LO_SUM case, so that
2520         CONST falls through into PLUS/MINUS handling.
2521
2522         PR c/39855
2523         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
2524         into 0, use omit_one_operand.
2525
2526 2009-04-23  Ben Elliston  <bje@au.ibm.com>
2527
2528         * config/rs6000/linux-unwind.h (get_regs): Remove type
2529         puns. Change the type of `pc' to an array of unsigned ints and
2530         update all users.  Constify frame24.
2531
2532 2009-04-22  DJ Delorie  <dj@redhat.com>
2533
2534         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
2535         declarations before code.
2536         (current_function_special_page_vector): Likewise.
2537         (m32c_expand_insv): Silence a warning.
2538
2539 2009-04-21  Taras Glek  <tglek@mozilla.com>
2540
2541         * alias.c: Update GTY annotations to new syntax.
2542         * basic-block.h: Likewise.
2543         * bitmap.h: Likewise.
2544         * c-common.h: Likewise.
2545         * c-decl.c: Likewise.
2546         * c-parser.c: Likewise.
2547         * c-pragma.c: Likewise.
2548         * c-tree.h: Likewise.
2549         * cfgloop.h: Likewise.
2550         * cgraph.h: Likewise.
2551         * config/alpha/alpha.c: Likewise.
2552         * config/arm/arm.h: Likewise.
2553         * config/avr/avr.h: Likewise.
2554         * config/bfin/bfin.c: Likewise.
2555         * config/cris/cris.c: Likewise.
2556         * config/darwin.c: Likewise.
2557         * config/frv/frv.c: Likewise.
2558         * config/i386/i386.c: Likewise.
2559         * config/i386/i386.h: Likewise.
2560         * config/i386/winnt.c: Likewise.
2561         * config/ia64/ia64.h: Likewise.
2562         * config/iq2000/iq2000.c: Likewise.
2563         * config/mips/mips.c: Likewise.
2564         * config/mmix/mmix.h: Likewise.
2565         * config/pa/pa.c: Likewise.
2566         * config/pa/pa.h: Likewise.
2567         * config/rs6000/rs6000.c: Likewise.
2568         * config/s390/s390.c: Likewise.
2569         * config/sparc/sparc.c: Likewise.
2570         * config/xtensa/xtensa.c: Likewise.
2571         * cselib.h: Likewise.
2572         * dbxout.c: Likewise.
2573         * dwarf2out.c: Likewise.
2574         * except.c: Likewise.
2575         * except.h: Likewise.
2576         * fixed-value.h: Likewise.
2577         * function.c: Likewise.
2578         * function.h: Likewise.
2579         * gimple.h: Likewise.
2580         * integrate.c: Likewise.
2581         * optabs.c: Likewise.
2582         * output.h: Likewise.
2583         * real.h: Likewise.
2584         * rtl.h: Likewise.
2585         * stringpool.c: Likewise.
2586         * tree-data-ref.c: Likewise.
2587         * tree-flow.h: Likewise.
2588         * tree-scalar-evolution.c: Likewise.
2589         * tree-ssa-address.c: Likewise.
2590         * tree-ssa-alias.h: Likewise.
2591         * tree-ssa-operands.h: Likewise.
2592         * tree.c: Likewise.
2593         * tree.h: Likewise.
2594         * varasm.c: Likewise.
2595         * varray.h: Likewise.
2596         * vec.h: Likewise.
2597         * coretypes.h: Do not define GTY macro if it is already defined.
2598         * doc/gty.texi: Update GTY documentation to new syntax.
2599         * gengtype-lex.l: Enforce attribute-like syntax for GTY
2600         annotations on structs.
2601         * gengtype-parse.c: Likewise.
2602
2603 2009-04-22  Mark Heffernan  <meheff@google.com>
2604
2605         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
2606
2607 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
2608
2609         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
2610         where appropriate.
2611
2612 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
2613
2614         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
2615         the same as a PLUS without a shift.  Increase the cost of a
2616         CONST_INT in MULT.
2617
2618 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2619
2620         * Makefile.in: Update dependencies.
2621         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
2622         * errors.h: Remove bogus comment about compatibility.
2623         (warning): Update declaration.
2624         * genautomata.c: Update all calls to warning.
2625         * gimple.c: Do not include errors.h. Include toplev.h.
2626         * tree-ssa-structalias.c: Do not include errors.h.
2627         * omega.c: Likewise.
2628         * tree-ssa-reassoc.c: Likewise.
2629         * config/spu/spu-c.c: Likewise.
2630         * config/spu/t-spu-elf: Update dependencies.
2631
2632 2009-04-22  Richard Guenther  <rguenther@suse.de>
2633
2634         PR tree-optimization/39824
2635         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
2636         make sure the types are compatible.
2637
2638 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2639
2640         PR c++/14875
2641         * c-common.c (c_parse_error): Take a token_flags parameter.
2642         Use token_type for the token type instead.
2643         Pass token_flags to cpp_type2name.
2644         * c-common.h (c_parse_error): Update declaration.
2645         * c-parser.c (c_parser_error): Pass 0 as token flags.
2646
2647 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
2648
2649         PR rtl-optimization/39580
2650         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
2651         
2652 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2653
2654         * function.c (expand_function_end): Do not emit a jump to the "naked"
2655         return label for fall-through returns.
2656         * except.c (sjlj_emit_function_exit): Always place the call to the
2657         unregister function at the location installed by expand_function_end.
2658
2659 2009-04-22  Richard Guenther  <rguenther@suse.de>
2660
2661         PR tree-optimization/39845
2662         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
2663         (gen_inbound_check): Likewise.
2664
2665 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
2666
2667         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
2668         padding for PPC.
2669         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
2670         * config/vxlib.c (__gthread_once): Add race guard for PPC.
2671
2672 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2673
2674         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
2675         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
2676         shift counts to avoid out-of-bounds array accesses.
2677
2678 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2679
2680         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
2681         (Pmode): Move above.
2682
2683 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
2684
2685         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
2686         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
2687         GET_CODE macro.  Use IN_RANGE macro where appropriate.
2688         * config/alpha/alpha.h: Ditto.
2689         * config/alpha/alpha.md: Ditto.
2690         * config/alpha/constraints.md: Ditto.
2691         * config/alpha/predicates.md: Ditto.
2692         
2693 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2694
2695         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
2696         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2697         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2698         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2699         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2700         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2701         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2702         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2703         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2704         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2705         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2706         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2707         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2708         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2709         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2710         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2711         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2712         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2713         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2714         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2715         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2716         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2717         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2718         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2719         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2720         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2721         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2722
2723 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2724
2725         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
2726         references from comments.
2727         * cfgbuild.c: (count_basic_blocks): Delete.
2728         (find_basic_blocks_1): Delete.
2729         (find_basic_blocks): Delete.
2730         * except.c (finish_eh_generation): Make static.  Move comment from
2731         except.h here.  Remove find_basic_blocks references from comments.
2732         * except.h (finish_eh_generation): Delete.
2733         * basic-block.h (find_basic_blocks): Delete.
2734         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
2735
2736 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2737
2738         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
2739         (sdbout_parms):  Likewise.
2740
2741 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
2742
2743         * config/sh/sh.c (prepare_cbranch_operands): Use
2744         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
2745         (expand_cbranchdi4): Likewise.
2746         (from_compare): Add cast to enum type.
2747         (expand_cbranchsi4): Use add_reg_note.
2748         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
2749         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
2750         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
2751         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
2752         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
2753         instead of CODE_FOR_nothing.
2754         (cbranchdi4): Likewise.  Fix the order of arguments for
2755         gen_rtx_fmt_ee.
2756         (push_fpscr): Use add_reg_note.
2757         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
2758         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
2759         
2760 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
2761
2762         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
2763         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
2764         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
2765         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
2766         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
2767         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
2768         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
2769         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
2770         config/alpha/x-vms, config/arc/t-arc,
2771         config/arm/README-interworking, config/arm/arm-c.c,
2772         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
2773         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
2774         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
2775         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
2776         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
2777         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
2778         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
2779         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
2780         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
2781         config/cris/t-elfmulti, config/crx/t-crx,
2782         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
2783         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
2784         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
2785         config/h8300/t-h8300, config/i386/athlon.md,
2786         config/i386/darwin-libgcc.10.4.ver,
2787         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
2788         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
2789         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
2790         config/i386/t-linux64, config/i386/t-nwld,
2791         config/i386/t-rtems-i386, config/i386/t-sol2-10,
2792         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
2793         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
2794         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
2795         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
2796         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
2797         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
2798         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
2799         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
2800         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
2801         config/m68k/t-uclinux, config/mcore/t-mcore,
2802         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
2803         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
2804         config/mips/crtn.asm, config/mips/irix-crti.asm,
2805         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
2806         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
2807         config/mips/mips-fixed.md, config/mips/sb1.md,
2808         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
2809         config/mips/t-iris6, config/mips/t-isa3264,
2810         config/mips/t-libgcc-mips16, config/mips/t-linux64,
2811         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
2812         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
2813         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
2814         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
2815         config/mn10300/t-linux, config/mn10300/t-mn10300,
2816         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
2817         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
2818         config/picochip/libgccExtras/clzsi2.asm,
2819         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
2820         config/rs6000/darwin-libgcc.10.4.ver,
2821         config/rs6000/darwin-libgcc.10.5.ver,
2822         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
2823         config/rs6000/t-aix43, config/rs6000/t-aix52,
2824         config/rs6000/t-darwin, config/rs6000/t-fprules,
2825         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
2826         config/rs6000/t-lynx, config/rs6000/t-netbsd,
2827         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
2828         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
2829         config/rs6000/t-rtems, config/rs6000/t-spe,
2830         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
2831         config/score/t-score-elf, config/sh/divcost-analysis,
2832         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
2833         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
2834         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
2835         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
2836         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
2837         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
2838         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
2839         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
2840         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
2841         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
2842         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
2843         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
2844         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
2845         limitx.h, version.c, xcoff.h: Add copyright and license notices.
2846         * config/h8300/genmova.sh: Include copyright and license notices
2847         in generated output.
2848         * config/h8300/mova.md: Regenerate.
2849         * doc/install.texi2html: Include word "Copyright" in copyright
2850         notice and use name "Free Software Foundation, Inc.".
2851         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
2852         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
2853         ChangeLog-2007, ChangeLog-2008: Correct dates.
2854
2855 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2856
2857         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
2858         NE_EXPR operations as well.
2859         * c-parser.c (c_parser_condition): Do not set location information on
2860         the condition.
2861         (c_parser_conditional_expression): Likewise.
2862         (c_parser_binary_expression): Set location information on operators.
2863         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
2864         TRUTH_NOT_EXPR has been folded.
2865         * fold-const.c (fold_truth_not_expr): Copy location information from
2866         the incoming expression to the outgoing one.
2867         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
2868         recursive calls on the LHS of the operator but pass that of the
2869         operator to recursive calls on the RHS of the operator.  Set it
2870         on the COND_EXPR.
2871         (shortcut_cond_expr): Set the locus of the operator on the second
2872         COND_EXPR and that of the expression on the first in degenerate cases.
2873         Pass the locus of the expression to calls to shortcut_cond_r.
2874         Set the locus of the 'then' block on the associated jump, if any.
2875         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
2876         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
2877         expression to call to gimplify_boolean_expr.
2878
2879 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
2880
2881         * config.gcc: Add additional configuration for
2882         i686-w64-mingw* and x86_64-w64-mingw* triplet.
2883         * config/i386/mingw-w64.h: New mingw-w64 specific header.
2884         (CPP_SPEC): Redefine for allowing -municode option.
2885         (STARTFILE_SPEC): Likewise.
2886         * config/i386/t-mingw-w64: New.
2887         * config/i386/mingw-w64.opt: New.
2888         (municode): Add new target option.
2889         * doc/invoke.texi (municode): Add documentation for new option.
2890
2891 2009-04-21  Ian Lance Taylor  <iant@google.com>
2892
2893         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2894         Correct test for number of arguments.
2895         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2896
2897 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
2898
2899         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
2900         argument of emit_library_call.
2901
2902 2009-04-21  Richard Guenther  <rguenther@suse.de>
2903
2904         PR middle-end/39829
2905         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
2906         inside VIEW_CONVERT_EXPRs.
2907
2908 2009-04-21  Martin Jambor  <mjambor@suse.cz>
2909
2910         * tree-switch-conversion.c (build_constructors): Split a long line.
2911         (constructor_contains_same_values_p): New function.
2912         (build_one_array): Create assigns of constants if possible, do not
2913         call mark_sym_for_renaming, call update_stmt.
2914         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
2915         make_rename_temp.  Do not call mark_symbols_for_renaming, call
2916         update_stmt.
2917         (gen_def_assigns): Do not call mark_symbols_for_renaming or
2918         find_new_referenced_vars, call update_stmt.
2919         (gen_inbound_check): Use create_tmp_var and create ssa names manually
2920         instead of calling make_rename_temp.  Do not call
2921         find_new_referenced_vars or mark_symbols_for_renaming, call
2922         update_stmt.
2923
2924 2009-04-21  Richard Guenther  <rguenther@suse.de>
2925
2926         PR tree-optimization/39827
2927         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2928         (tree_ssa_phiprop): Pass the correct array size.
2929
2930 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
2931
2932         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
2933
2934 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2935
2936         PR 16202
2937         * c-typeck.c (lvalue_p): Move declaration ...
2938         * c-common.h (lvalue_p): ... to here.
2939         * c-common.c (candidate_equal_p): New.
2940         (add_tlist): Use it.
2941         (merge_tlist): Use it.
2942         (warn_for_collisions_1): Likewise.
2943         (warning_candidate_p): Accept more candidates.
2944         (verify_tree): A warning candidate can be an expression. Use
2945         candidate_equal_p.
2946
2947 2009-04-21  Ben Elliston  <bje@au.ibm.com>
2948
2949         PR target/5267
2950         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
2951         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
2952         options.  Remove -mcall-solaris documentation.
2953
2954 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2955
2956         PR c++/13358
2957         * doc/invoke.texi (-Wlong-long): Update description.
2958         * c-lex (interpret_integer): Only warn if there was no previous
2959         overflow and -Wlong-long is enabled.
2960         * c-decl.c (declspecs_add_type): Drop redundant flags.
2961         * c.opt (Wlong-long): Init to -1.
2962         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
2963         and front-end warn_long_long. Wlong-long only depends on other
2964         flags if it is uninitialized.
2965         * c-parser.c (disable_extension_diagnostics): warn_long_long is
2966         the same for CPP and FE.
2967         (restore_extension_diagnostics): Likewise.
2968
2969 2009-04-20  Ian Lance Taylor  <iant@google.com>
2970
2971         Fix enum conversions which are invalid in C++:
2972         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
2973         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
2974         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
2975         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
2976         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
2977         (dbxout_parms): Likewise.
2978         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
2979         (df_clear_flags): Likewise.
2980         * df-problems.c (df_rd_bb_local_compute_process_def): Change
2981         top_flag parameter to int.
2982         (df_chain_create_bb_process_use): Likewise.
2983         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
2984         Remove cast.
2985         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
2986         (df_ref_create_structure, df_def_record_1): Likewise.
2987         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
2988         (df_notes_rescan): Change 0 to VOIDmode in function call.
2989         (df_get_call_refs, df_insn_refs_collect): Likewise.
2990         (df_bb_regs_collect): Likewise.
2991         (df_entry_block_defs_collect): Likewise.
2992         (df_exit_block_uses_collect): Likewise.
2993         * df.h: Update declarations.
2994         * double-int.c (double_int_divmod): Add cast to enum type.
2995         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
2996         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
2997         (based_loc_descr): Likewise.
2998         (loc_descriptor_from_tree_1): Change first_op and second_op to
2999         enum dwarf_location_atom.  Add cast to enum type.
3000         * expmed.c (init_expmed): Change 0 to SET in function call.
3001         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
3002         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
3003         (do_store_flag): Likewise.
3004         * fixed-value.h (struct fixed_value): Change mode to enum
3005         machine_mode.
3006         * function.c (assign_parms): Change 0 to VOIDmode in function call.
3007         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
3008         function call.
3009         (insert_insn_decl, insert_decl, insert_state): Likewise.
3010         (automata_list_finish): Likewise.
3011         * genrecog.c (process_define_predicate): Add cast to enum type.
3012         * gensupport.c (init_predicate_table): Add cast to enum type.
3013         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
3014         function call.
3015         (gimple_build_call_1, gimple_build_label): Likewise.
3016         (gimple_build_goto, gimple_build_asm_1): Likewise.
3017         (gimple_build_switch_1, gimple_build_cdt): Likewise.
3018         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
3019         (enum fallback): Rename from enum fallback_t.
3020         (fallback_t): Typedef as int.
3021         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
3022         GSI_SAME_STMT in function call.
3023         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
3024         enum type.
3025         (setup_reg_class_relations): Likewise.
3026         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
3027         (setup_prohibited_class_mode_regs): Add cast to enum type.
3028         (setup_prohibited_mode_move_regs): Likewise.
3029         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
3030         (record_address_regs): Change i to enum reg_class.
3031         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
3032         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
3033         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
3034         (GET_MODE_2XWIDER_MODE): Likewise.
3035         (GET_CLASS_NARROWEST_MODE): Likewise.
3036         * omp-low.c (expand_omp_for): Add cast to enum type.
3037         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
3038         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
3039         * postreload.c (reload_cse_simplify_operands): Change rclass local
3040         to enum reg_class.
3041         * predict.c (combine_predictions_for_insn): Change best_predictor
3042         and predictor to enum br_predictor.
3043         (combine_predictions_for_bb): Likewise.
3044         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
3045         use SET_PREDICT_EXPR_OUTCOME.
3046         * real.c (real_arithmetic): Change icode to code in function call.
3047         * reginfo.c (init_move_cost): Add casts to enum type.
3048         (init_reg_sets_1, init_fake_stack_mems): Likewise.
3049         * regmove.c (regclass_compatible_p): Change class0 and class1 to
3050         enum reg_class.
3051         * reload.c (find_valid_class): Add casts to enum type.
3052         (push_reload): Change 0 to NO_REGS in function call.
3053         (find_reloads): Change this_alternative to array of enum
3054         reg_class.  Remove some now-unnecessary casts.
3055         (make_memloc): Change 0 to VOIDmode in function call.
3056         * reload1.c (reload): Change 0 to VOIDmode in function call.
3057         (eliminate_regs_1, elimination_effects): Likewise.
3058         (eliminate_regs_in_insn): Likewise.
3059         (emit_input_reload_insns): Add cast to enum type.
3060         (delete_output_reload): Change 0 to VOIDmode in function call.
3061         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
3062         to enum type in function call.
3063         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
3064         (SET_PREDICT_EXPR_OUTCOME): Define.
3065         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
3066         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
3067         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
3068         (dump_function): Likewise.
3069         * tree-dump.h: Update declarations.
3070         * tree-pass.h: Update declarations.
3071         * varasm.c (assemble_integer): Change mclass to enum mode_class.
3072         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
3073         enum type.
3074         (arm_rtx_costs_1): Correct parenthesization.
3075         (arm_rtx_costs): Add casts to enum type.
3076         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
3077         (vfp_emit_fstmd): Use add_rg_note.
3078         (emit_multi_reg_push, emit_sfm): Likewise.
3079         (thumb_set_frame_pointer): Likewise.
3080         (arm_expand_prologue): Likewise.
3081         (arm_regno_class): Change return type to enum reg_class.
3082         (thumb1_expand_prologue): Use add_reg_note.
3083         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
3084         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
3085         in function call.
3086         * config/arm/gentune.sh: Add cast to enum type.
3087         * config/arm/arm-tune.md: Rebuild.
3088         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
3089         (ix86_split_fp_branch, predict_jump): Likewise.
3090         (ix86_expand_multi_arg_builtin): Change sub_code from enum
3091         insn_code to enum rtx_code.
3092         (ix86_builtin_vectorized_function): Add cast to enum type.
3093         * config/i386/i386.md (truncdfsf2): Change slot to enum
3094         ix86_stack_slot.
3095         (truncxf<mode>2, isinf<mode>2): Likewise.
3096         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
3097         enum type.
3098         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
3099         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
3100         (insert_bundle_state): Change 1 to INSERT in function call.
3101         (ia64_add_bundle_selector_before): Likewise.
3102         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
3103         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
3104         (restore_stack_nonlocal): Likewise.
3105         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
3106         function call.
3107         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
3108         function call.
3109         (mips_rtx_costs): Likewise.
3110         (mips_override_options): Add casts to enum type.
3111         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
3112         in function call.
3113         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
3114         (store_reg, set_reg_plus_d): Likewise.
3115         (hppa_expand_prologue, hppa_profile_hook): Likewise.
3116         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3117         cast to enum type.
3118         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
3119         function call.
3120         (emit_unlikely_jump): Use add_reg_note.
3121         (rs6000_emit_allocate_stack): Likewise.
3122         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
3123         (output_toc): Change 1 to INSERT in function call.
3124         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
3125         (rs6000_initialize_trampoline): Likewise.
3126         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
3127         function call.
3128         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
3129         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
3130         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
3131         (save_gprs): Use add_reg_note.
3132         (s390_emit_prologue): Likewise.
3133         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
3134         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
3135         (sparc_fold_builtin): Add cast to enum type.
3136         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
3137         enum insn_code.
3138         (spu_expand_prologue): Use add_reg_note.
3139         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
3140
3141 2009-04-20  Ian Lance Taylor  <iant@google.com>
3142
3143         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
3144         (c_parser_postfix_expression_after_primary): Get VEC for list of
3145         arguments.  Get original types of arguments.  Call
3146         build_function_call_vec.
3147         (cached_expr_list_1, cached_expr_list_2): New static variables.
3148         (c_parser_expr_list): Change return type to VEC *.  Add
3149         p_orig_types parameter.  Change all callers.
3150         (c_parser_release_expr): New static function.
3151         (c_parser_vec_to_tree_list): New static function.
3152         * c-typeck.c (build_function_call): Rewrite to build a VEC and
3153         call build_function_call_vec.
3154         (build_function_call_vec): New function, based on old
3155         build_function_call.
3156         (convert_arguments): Remove nargs and argarray parameters.  Change
3157         values to a VEC.  Add origtypes parameter.
3158         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
3159         (convert_for_assignment): Add origtype parameter.  Change all
3160         callers.  If warn_cxx_compat, check for conversion to an enum
3161         type when calling a function.
3162         (store_init_value): Add origtype parameter.  Change all callers.
3163         (digest_init): Likewise.
3164         (struct init_node): Add origtype field.
3165         (add_pending_init): Add origtype parameter.  Change all callers.
3166         (output_init_element): Likewise.
3167         (output_pending_init_elements): Pass origtype from init_node to
3168         output_init_element.
3169         (process_init_element): Pass origtype from c_expr to
3170         output_init_element.
3171         (c_finish_return): Add origtype parameter.  Change all callers.
3172         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
3173         caller.
3174         (sync_resolve_params): Likewise.
3175         (sync_resolve_return): Change params to first_param.  Change caller.
3176         (resolve_overloaded_builtins): Change params to VEC *.  Change
3177         callers.  Save first parameter around call to build_function_call_vec.
3178         * c-decl.c (finish_decl): Add origtype parameter.  Change all
3179         callers.  Call build_function_call_vec rather than
3180         build_function_call for cleanup.
3181         * c-tree.h: Update declarations.
3182         * c-common.h: Update declarations.
3183         * stub-objc.c (objc_rewrite_function_call): Change parameter from
3184         params to first_param.
3185         * target.h (struct gcc_target): Change resolve_overloaded_builtin
3186         params parameter from tree to void *.
3187         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3188         Change arglist parameter to have type void *, and to be a pointer
3189         to a VEC.
3190         * config/rs6000/rs6000-protos.h
3191         (altivec_resolve_overloaded_builtin): Update declaration.
3192         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
3193         fnargs parameter to have type void *, and to be a pointer to a
3194         VEC.  Call build_function_call_vec instead of
3195         build_function_call.
3196         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
3197
3198 2009-04-20  Joey Ye  <joey.ye@intel.com>
3199             Xuepeng Guo  <xuepeng.guo@intel.com>
3200             H.J. Lu  <hongjiu.lu@intel.com>
3201
3202         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
3203
3204         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
3205         (IX86_LEA_PRIORITY): Likewise.
3206         (distance_non_agu_define): New function.
3207         (distance_agu_use): Likewise.
3208         (ix86_lea_for_add_ok): Likewise.
3209         (ix86_dep_by_shift_count): Likewise.
3210
3211         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
3212         should split for LEA.
3213
3214         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
3215         function.
3216         (ix86_dep_by_shift_count): Likewise.
3217
3218 2009-04-20  Richard Guenther  <rguenther@suse.de>
3219
3220         * expr.c (handled_component_p): Move ...
3221         * tree.h (handled_component_p): ... here.
3222         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
3223         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
3224         and REALPART_EXPR to be in one group.
3225
3226 2009-04-20  Richard Guenther  <rguenther@suse.de>
3227
3228         * basic-block.h (get_all_dominated_blocks): Declare.
3229         * dominance.c (get_all_dominated_blocks): New function.
3230         * tree-cfg.c (get_all_dominated_blocks): Remove.
3231         (remove_edge_and_dominated_blocks): Adjust.
3232         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
3233         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
3234         instead of recursing.
3235
3236 2009-04-20  Doug Kwan  <dougkwan@google.com>
3237
3238         * cgraph.h (cgraph_node_ptr): New type for vector functions.
3239         (struct cgraph_node_set_def): New type.
3240         (cgraph_node_set) New type. Also declare vector functions.
3241         (struct cgraph_node_set_element_def): New type.
3242         (cgraph_node_set_element): Ditto.
3243         (cgraph_node_set_iterator): New iterator type.
3244         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
3245         cgraph_node_set_remove, dump_cgraph_node_set,
3246         debug_cgraph_node_set): New prototypes.
3247         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
3248         cgraph_node_set_size): New inlines.
3249         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
3250         including cgraph.h.
3251         (struct ipa_opt_pass): Add struct cgraph_node_set_def
3252         argument to function 'write_summary'.
3253         * ipa.c: Include ggc.h.
3254         (hash_cgraph_node_set_element,
3255         eq_cgraph_node_set_element, cgraph_node_set_new,
3256         cgraph_node_set_add, cgraph_node_set_remove,
3257         cgraph_node_set_find, dump_cgraph_node_set,
3258         debug_cgraph_node_set): New functions.
3259         * Makefile.in (ipa.o): Add dependency on GGC_H.
3260
3261 2009-04-20  Ira Rosen  <irar@il.ibm.com>
3262
3263         PR tree-optimization/39675
3264         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
3265         check of the return code of vect_schedule_slp. Check that
3266         stmt_vec_info still exists for the statement, before checking its
3267         vectorization type.
3268
3269 2009-04-20  Michael Matz  <matz@suse.de>
3270
3271         * Makefile.in (generated_files): Take out $(simple_generated_c).
3272
3273 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
3274
3275         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
3276         (UINTPTR_TYPE):  Likewise.
3277
3278 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
3279
3280         PR c/37481
3281         * c-typeck.c (digest_init): Check for initializing an array with a
3282         string literal.
3283
3284 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
3285
3286         PR c/19771
3287         * c-semantics.c (pop_stmt_list): Propagate
3288         STATEMENT_LIST_HAS_LABEL to parent statement list.
3289
3290 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
3291
3292         * config/mips/mips.h (mips_tune_attr): New macro.
3293         * config/mips/mips.md (cpu): Use it.
3294
3295 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
3296
3297         PR c/38243
3298         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
3299         declaring a tag.
3300
3301 2009-04-19  Diego Novillo  <dnovillo@google.com>
3302
3303         * toplev.c (compile_file): Move call to coverage_finish ...
3304         * cgraphunit.c (ipa_passes): ... here.
3305         Call cgraph_process_new_functions.
3306         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
3307         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
3308
3309 2009-04-19  Jan Hubicka  <jh@suse.cz>
3310
3311         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
3312         cfun.
3313         (dump_cgraph_node): Dump can throw external flag.
3314         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
3315
3316 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3317
3318         PR c/32061
3319         PR c++/36954
3320         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
3321         * common.opt (Wlogical-op): Move from here...
3322         * c.opt (Wlogical-op): ... to here.
3323         * c-typeck.c (parser_build_binary_op): Update call to
3324         warn_logical_operator.
3325         * c-opts.c (c_common_post_options): Enable warn_logical_op with
3326         extra_warnings.
3327         * c-common.c (warn_logical_op): Update.
3328         * c-common.h (warn_logical_op): Update declaration.
3329
3330 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3331
3332         * tree.c (protected_set_expr_location): Fix formatting.
3333
3334 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
3335
3336         PR c/27676
3337         * c-typeck.c (readonly_warning): new.
3338         (build_unary_op, build_modify_expr): Use readonly_warning for
3339         storing into something readonly but not const-qualified.
3340
3341 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
3342
3343         PR c/22367
3344         * c-typeck.c (build_unary_op): Check for taking address of
3345         expression of type void.
3346
3347 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
3348
3349         PR c/35210
3350         * c-typeck.c (build_function_call): Check for calling a function
3351         with qualified void return types.  Call require_complete_type when
3352         generating a trap.
3353
3354 2009-04-18  Jan Hubicka  <jh@suse.cz>
3355
3356         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
3357         Set nothrow flag.
3358         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
3359         can_throw_external flag.
3360         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
3361         * ipa-pure-const.c (ignore_edge): New function.
3362         (propagate): Compute order for NOTHROW computation; set NOTHROWs
3363         only over can_throw_external edges.
3364         (local_pure_const): Add nothrow flag.
3365         * ipa-utils.c (searchc): Add ignore_edge callback.
3366         (ipa_utils_reduced_inorder): Add ignore_edge callback.
3367         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
3368         (set_nothrow_function_flags): Update cgraph.
3369         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
3370
3371 2009-04-18  Richard Guenther  <rguenther@suse.de>
3372
3373         PR middle-end/39804
3374         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
3375         (fold_stmt): ... this and ...
3376         (fold_stmt_inplace): ... this.
3377         (fold_stmt_1): Fold references in calls and asms.
3378         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
3379
3380 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3381
3382         * tree-vrp.c (ssa_name_nonzero_p): Remove.
3383         * tree.h: Remove the prototype for ssa_name_nonzero_p.
3384
3385 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3386
3387         * tree.c (function_args_count): Remove.
3388         * tree.h: Remove the prototype for function_args_count.
3389
3390 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3391
3392         * tree-iterator.c (expr_only): Remove.
3393         * tree.h: Remove the prototype for expr_only.
3394
3395 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3396
3397         * reginfo.c (cannot_change_mode_set_regs): Remove.
3398         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
3399
3400 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
3401
3402         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
3403         whether operands 0 and 1 overlaps.
3404
3405 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3406
3407         PR middle-end/36902
3408         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
3409         pointer. Use warning_at instead of warning.
3410         (search_for_addr_array): Likewise.
3411         (check_array_bounds): Likewise.
3412         (check_all_array_refs): Check that the incoming edge is not in the
3413         list of edges to be removed.
3414         (check_all_array_refs): Avoid the temporal pointer.
3415         (vrp_visit_cond_stmt): Fix typo.
3416         (simplify_switch_using_ranges): Handle the case where the switch
3417         index is an integer constant.
3418
3419 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
3420
3421         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
3422
3423 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3424
3425         * doc/extend.texi, doc/invoke.texi: Fix typos.
3426
3427 2009-04-17  Cary Coutant  <ccoutant@google.com>
3428
3429         * tree-flow-inline.h (get_lineno): Fix inverted test.
3430
3431 2009-04-17  Diego Novillo  <dnovillo@google.com>
3432
3433         * tree-ssa-pre.c (create_expression_by_pieces): Remove
3434         assertion for AVAIL_OUT.
3435
3436 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
3437
3438         PR target/38627
3439         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
3440         * config/sh/linux-atomic.asm: Likewise.
3441
3442 2009-04-17  Diego Novillo  <dnovillo@google.com>
3443
3444         * except.c (debug_eh_tree): New.
3445         (struct eh_region, struct eh_status): Move ...
3446         * except.h: ... here.
3447         (add_type_for_runtime): Declare extern.
3448         (lookup_type_for_runtime): Likewise.
3449         (debug_eh_tree): Declare.
3450         * Makefile.in (GTFILES): List except.h before except.c
3451
3452 2009-04-17  Diego Novillo  <dnovillo@google.com>
3453
3454         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
3455         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
3456         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
3457         (find_vars_r): ... here.
3458         * tree-flow.h (find_referenced_vars_in): Declare.
3459         * tree-ssa-pre.c (create_expression_by_pieces): Assert
3460         that AVAIL_OUT exists for BLOCK.
3461         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
3462         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
3463         (tree-parloops.o): Likewise.
3464
3465 2009-04-17  Simon Baldwin  <simonb@google.com>
3466
3467         * toplev.c (default_tree_printer): Add handling for %E format.
3468
3469 2009-04-17  Diego Novillo  <dnovillo@google.com>
3470
3471         * tree-pretty-print.c (dump_generic_node): Add break after
3472         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
3473         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
3474         FUNCTION_TYPE together.  Call print_struct_decl when printing
3475         structures and TDF_SLIM is not given.
3476         (print_struct_decl): Fix logic for detecting recursion.
3477
3478 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
3479
3480         PR 31567
3481         * gcc.c (create_at_file): New.
3482         (compile_input_file_p): New.
3483         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
3484         * main.c (main): Update call to toplev_main.
3485         * toplev.c (toplev_main): Change signature. Call expandargv.
3486         * toplev.h (toplev_main): Change signature.
3487
3488 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3489
3490         * dwarf2out.c (field_byte_offset): Use the type size as the field size
3491         if the latter is not constant.
3492
3493 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
3494
3495         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
3496
3497 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3498
3499         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
3500         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
3501
3502 2009-04-17  Richard Guenther  <rguenther@suse.de>
3503
3504         * tree-ssa-structalias.c (get_constraint_for_component_ref):
3505         Handle component references view-converting an invariant address.
3506
3507 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
3508
3509         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
3510         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
3511         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
3512         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
3513         Use @deftypevr rather than @deftypevar.
3514
3515 2009-04-17  Richard Guenther  <rguenther@suse.de>
3516
3517         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
3518         (get_prop_source_stmt): Likewise.
3519         (can_propagate_from): Likewise.
3520
3521 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
3522
3523         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
3524         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
3525         (--with-multilib-list): Add default value.
3526         * configure: Regenerate.
3527         * Makefile.in (TM_ENDIAN_CONFIG): Define.
3528         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
3529         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
3530         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
3531         Don't add default cpu to multilib list unnecessarily, but do enable
3532         the relevant compiler option..
3533         Add support for --with-multilib-list=<blank> and
3534         --with-multilib-list=!<somelib> to supress unwanted multilibs.
3535         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
3536         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
3537         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
3538         TM_MULTILIB_CONFIG.
3539         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
3540         (MULTILIB_OSDIRNAMES): New variable.
3541         * config/sh/t-1e: Delete file.
3542         * config/sh/t-mlib-sh1: Delete file.
3543         * config/sh/t-mlib-sh2: Delete file.
3544         * config/sh/t-mlib-sh2a: Delete file.
3545         * config/sh/t-mlib-sh2a-nofpu: Delete file.
3546         * config/sh/t-mlib-sh2a-single: Delete file.
3547         * config/sh/t-mlib-sh2a-single-only: Delete file.
3548         * config/sh/t-mlib-sh2e: Delete file.
3549         * config/sh/t-mlib-sh3e: Delete file.
3550         * config/sh/t-mlib-sh4: Delete file.
3551         * config/sh/t-mlib-sh4-nofpu: Delete file.
3552         * config/sh/t-mlib-sh4-single: Delete file.
3553         * config/sh/t-mlib-sh4-single-only: Delete file.
3554         * config/sh/t-mlib-sh4a: Delete file.
3555         * config/sh/t-mlib-sh4a-nofpu: Delete file.
3556         * config/sh/t-mlib-sh4a-single: Delete file.
3557         * config/sh/t-mlib-sh4a-single-only: Delete file.
3558         * config/sh/t-mlib-sh4al: Delete file.
3559         * config/sh/t-mlib-sh5-32media: Delete file.
3560         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
3561         * config/sh/t-mlib-sh5-64media: Delete file.
3562         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
3563         * config/sh/t-mlib-sh5-compact: Delete file.
3564         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
3565         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
3566         * doc/install.texi (Options specification): Add
3567         --with-multilib-list and --with-endian.
3568
3569 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
3570
3571         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
3572         REVISION_c.
3573         (OBJS-common): Add plugin-version.o.
3574         (plugin-version.o): New.
3575         * gcc-plugin.h (plugin_gcc_version): New.
3576         (plugin_default_version_check): New.
3577         (plugin_init_func, plugin_init): Add version argument.
3578         * plugin-version.c: New.
3579         * plugin.c (str_plugin_gcc_version_name): New.
3580         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
3581         pass it to the init function.
3582         (plugin_default_version_check): New.
3583
3584 2009-04-17  Richard Guenther  <rguenther@suse.de>
3585
3586         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
3587         for decl-vs-decl disambiguation.
3588
3589 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
3590
3591         * config/s390/s390.h (s390_tune_attr): New macro definition.
3592         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
3593
3594 2009-04-17  Richard Guenther  <rguenther@suse.de>
3595
3596         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
3597         (fold_stmt_r): Likewise.
3598         (maybe_fold_reference): New function.
3599         (fold_gimple_assign): Handle cases fold_stmt_r did.
3600         (fold_stmt): Do not use fold_stmt_r.
3601         (fold_stmt_inplace): Likewise.
3602
3603 2009-04-17  Richard Guenther  <rguenther@suse.de>
3604
3605         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
3606         (record_equivalences_from_stmt): Remove useless checks and
3607         simplifications.
3608         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
3609         the type is already suitable.
3610
3611 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
3612
3613         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
3614
3615 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
3616
3617         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
3618         (CMPtype): Define as __gcc_CMPtype.
3619
3620 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
3621
3622         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
3623         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
3624
3625 2009-04-17  Richard Guenther  <rguenther@suse.de>
3626
3627         PR tree-optimization/39746
3628         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
3629         special-casing for builtins and static variable use/def.
3630         (call_may_clobber_ref_p_1): Likewise.
3631
3632 2009-04-16  Ian Lance Taylor  <iant@google.com>
3633
3634         * df.h: Include "timevar.h".
3635         (struct df_problem): Change tv_id field to timevar_id_t.
3636         * tree-pass.h: Include "timevar.h".
3637         (struct opt_pass): Change tv_id field to timevar_id_t.
3638         * timevar.h (timevar_id_t): Define TV_NONE.
3639         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
3640         TV_NONE rather than tv_id != 0.
3641         (execute_one_pass): Likewise.
3642         * Makefile.in (DF_H): Add $(TIMEVAR_H).
3643         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
3644         dependencies to $(TREE_PASS_H).
3645         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
3646         to TV_NONE.
3647         (pass_branch_target_load_optimize2): Likewise.
3648         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
3649         (pass_outof_cfg_layout_mode): Likewise.
3650         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
3651         (pass_rebuild_cgraph_edges): Likewise.
3652         (pass_remove_cgraph_callee_edges): Likewise.
3653         * df-core.c (pass_df_initialize_opt): Likewise.
3654         (pass_df_initialize_no_opt): Likewise.
3655         (pass_df_finish): Likewise.
3656         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
3657         * except.c (pass_set_nothrow_function_flags): Likewise.
3658         (pass_convert_to_eh_region_ranges): Likewise.
3659         * final.c (pass_compute_alignments): Likewise.
3660         * function.c (pass_instantiate_virtual_regs): Likewise.
3661         (pass_init_function): Likewise.
3662         (pass_leaf_regs): Likewise.
3663         (pass_match_asm_constraints): Likewise.
3664         * gimple-low.c (pass_lower_cf): Likewise.
3665         (pass_mark_used_blocks): Likewise.
3666         * init-regs.c (pass_initialize_regs): Likewise.
3667         * integrate.c (pass_initial_value_sets): Likewise.
3668         * ira.c (pass_ira): Likewise.
3669         * jump.c (pass_cleanup_barriers): Likewise.
3670         * omp-low.c (pass_expand_omp): Likewise.
3671         (pass_lower_omp): Likewise.
3672         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
3673         * recog.c (pass_split_all_insns): Likewise.
3674         (pass_split_after_reload): Likewise.
3675         (pass_split_before_regstack): Likewise.
3676         (pass_split_before_sched2): Likewise.
3677         (pass_split_for_shorten_branches): Likewise.
3678         * reginfo.c (pass_reginfo_init): Likewise.
3679         (pass_subregs_of_mode_init): Likewise.
3680         (pass_subregs_of_mode_finish): Likewise.
3681         * passes.c (pass_postreload): Likewise.
3682         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
3683         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
3684         (pass_warn_function_return): Likewise.
3685         (pass_warn_function_noreturn): Likewise.
3686         * tree-complex.c (pass_lower_complex): Likewise.
3687         (pass_lower_complex_O0): Likewise.
3688         * tree-if-conv.c (pass_if_conversion): Likewise.
3689         * tree-into-ssa.c (pass_build_ssa): Likewise.
3690         * tree-mudflap.c (pass_mudflap_1): Likewise.
3691         (pass_mudflap_2): Likewise.
3692         * tree-nomudflap.c (pass_mudflap_1): Likewise.
3693         (pass_mudflap_2): Likewise.
3694         * tree-nrv.c (pass_return_slot): Likewise.
3695         * tree-object-size.c (pass_object_sizes): Likewise.
3696         * tree-optimize.c (pass_all_optimizations): Likewise.
3697         (pass_early_local_passes): Likewise.
3698         (pass_all_early_optimizations): Likewise.
3699         (pass_cleanup_cfg): Likewise.
3700         (pass_cleanup_cfg_post_optimizing): Likewise.
3701         (pass_free_datastructures): Likewise.
3702         (pass_free_cfg_annotations): Likewise.
3703         (pass_fixup_cfg): Likewise.
3704         (pass_init_datastructures): Likewise.
3705         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
3706         (pass_late_warn_uninitialized): Likewise.
3707         (pass_update_address_taken): Likewise.
3708         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
3709         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
3710         (pass_cse_sincos): Likewise.
3711         (pass_convert_to_rsqrt): Likewise.
3712         * tree-ssa-structalias.c (pass_build_alias): Likewise.
3713         * tree-stdarg.c (pass_stdarg): Likewise.
3714         * tree-tailcall.c (pass_tail_recursion): Likewise.
3715         (pass_tail_calls): Likewise.
3716         * tree-vect-generic.c (pass_lower_vector): Likewise.
3717         (pass_lower_vector_ssa): Likewise.
3718         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
3719
3720 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
3721
3722         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
3723         XLR entry.
3724         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
3725         Handle -march=xlr.
3726         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
3727         logical and signext.
3728
3729 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3730
3731         PR target/39767
3732         * config/sh/predicates.md (arith_operand): Check if the operand
3733         of TRUNCATE is a REG.
3734
3735 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3736
3737         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
3738         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
3739
3740 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3741
3742         * tree-iterator.c (tsi_split_statement_list_after,
3743         tsi_split_statement_list_before): Remove.
3744         * tree-iterator.h: Remove the prototypes for
3745         tsi_split_statement_list_after and tsi_split_statement_list_before.
3746
3747 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3748
3749         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
3750         * tree-ssa-propagate.h: Remove the prototype for
3751         stmt_makes_single_load.
3752
3753 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3754
3755         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
3756         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
3757
3758 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3759
3760         * tree-iterator.c (EXPR_LAST_BODY): Remove.
3761
3762 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3763
3764         * except.c (eh_region_outer_p): Remove.
3765         * except.h: Remove the prototype for eh_region_outer_p.
3766
3767 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3768
3769         * function.c (current_function_assembler_name): Remove.
3770         * function.h: Remove the prototype for
3771         current_function_assembler_name.
3772
3773 2009-04-16  Ian Lance Taylor  <iant@google.com>
3774
3775         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
3776         (add_reg_note): Call alloc_reg_note.
3777         * rtl.h (alloc_reg_note): Declare.
3778         * combine.c (try_combine): Use alloc_reg_note.
3779         (recog_for_combine, move_deaths): Likewise.
3780         (distribute_notes): Use alloc_reg_note and add_reg_note.
3781         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
3782         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
3783         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
3784
3785 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
3786
3787         PR rtl-optimization/39762
3788         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
3789         ira_may_move_out_cost): Add comments about way of their usage.
3790         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
3791
3792         * ira-conflicts.c (process_regs_for_copy): Use function
3793         ira_get_register_move_cost instead of global
3794         ira_register_move_cost.
3795
3796         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
3797         color_pass, move_spill_restore, update_curr_costs): Ditto.
3798
3799         * ira-lives.c (process_single_reg_class_operands): Ditto.
3800
3801         * ira-emit.c (emit_move_list): Ditto.
3802
3803         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
3804         (record_reg_classes): Ditto.  Use functions
3805         ira_get_register_move_cost and ira_get_may_move_cost instead of
3806         global vars ira_register_move_cost, ira_may_move_out_cost and
3807         ira_may_move_in_cost.
3808         (record_address_regs): Don't call ira_init_register_move_cost.
3809         Use function ira_get_may_move_cost instead of global
3810         ira_may_move_in_cost.
3811         (process_bb_node_for_hard_reg_moves): Use function
3812         ira_get_register_move_cost instead of global ira_register_move_cost.
3813         (ira_costs): Don't call ira_init_register_move_cost.
3814
3815 2009-04-16  Richard Guenther  <rguenther@suse.de>
3816
3817         * tree-cfg.c (verify_gimple_assign_binary):
3818         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
3819         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
3820         (create_general_new_stmt): Note that this function is broken.
3821
3822 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
3823
3824         * common.opt (fhelp): Add Var(help_flag).
3825         * gcc-plugin.h (plugin_info): Add help.
3826         * plugin.c (plugin_name_args): Add help.
3827         (register_plugin_info): Set plugin->help.
3828         (print_help_one_plugin): New.
3829         (print_plugins_help): New.
3830         * plugin.h (print_plugins_help): New.
3831         * toplev.c (toplev_main): Call print_plugins_help if needed.
3832
3833 2009-04-16  Richard Guenther  <rguenther@suse.de>
3834
3835         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
3836         (gimple_ior_addresses_taken_1): New function.
3837         (gimple_ior_addresses_taken): Likewise.
3838         * gimple.h (struct gimple_statement_with_ops_base): Remove
3839         addresses_taken member.
3840         (gimple_ior_addresses_taken): Declare.
3841         (gimple_addresses_taken, gimple_addresses_taken_ptr,
3842         gimple_set_addresses_taken): Remove.
3843         * ipa-reference.c (mark_address): New function.
3844         (scan_stmt_for_static_refs): Use it for marking addresses taken.
3845         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
3846         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
3847         (gimple_add_to_addresses_taken): Remove.
3848         (get_tmr_operands): Call mark_address_taken.
3849         (get_asm_expr_operands): Likewise.
3850         (get_expr_operands): Likewise.
3851         (build_ssa_operands): Do not clear the addresses_taken bitmap.
3852         (free_stmt_operands): Do not free it.
3853         * tree-ssa.c (delete_tree_ssa): Likewise.
3854         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
3855
3856 2009-04-16  Richard Guenther  <rguenther@suse.de>
3857
3858         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
3859         (walk_stmt_load_store_ops): Likewise.
3860         * gimple.c (get_base_loadstore): New function.
3861         (walk_stmt_load_store_addr_ops): Likewise.
3862         (walk_stmt_load_store_ops): Likewise.
3863         * ipa-pure-const.c (check_op): Simplify.
3864         (check_load, check_store): New functions.
3865         (check_stmt): Use walk_stmt_load_store_ops.
3866         * ipa-reference.c (mark_load): Adjust signature.
3867         (mark_store): Likewise.
3868         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
3869
3870 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
3871
3872         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
3873         (plugin_info): New.
3874         * opts.c (common_handle_option): Don't call print_version.
3875         * plugin.c (plugin_name_args): Add version.
3876         (register_plugin_info): New.
3877         (register_callback): Handle PLUGIN_INFO.
3878         (try_init_one_plugin): New.
3879         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
3880         if failed to init.
3881         (finalize_one_plugin): New.
3882         (finalize_plugins): New.
3883         (print_one_plugin): New.
3884         (print_plugins_versions): New.
3885         * plugin.h (print_plugins_versions): New.
3886         (finalize_plugins): New.
3887         * toplev.c (compile_file): Don't call initialize_plugins.
3888         (print_version): Call print_plugins_versions.
3889         (toplev_main): Call initialize_plugins. Print version if needed.
3890         Call finalize_plugins.
3891
3892 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
3893
3894         * common.opt (fversion): New.
3895         * gcc.c (print_version): New.
3896         (process_command): Don't print the version. Just set print_version.
3897         (main): Print version. Call subprocesses if print_version and
3898         verbose_flag are set.
3899         * opts.c (common_handle_option): Handle OPT_fversion.
3900
3901 2009-04-16  Richard Guenther  <rguenther@suse.de>
3902             Ira Rosen  <irar@il.ibm.com>
3903
3904         PR tree-optimization/39698
3905         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
3906         type of the reduction variable.  Only generate the def if
3907         it is needed.
3908
3909         * omp-low.c (expand_omp_for_generic): When converting to a pointer
3910         make sure to first convert to an integer of the same precision.
3911         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
3912         the type of the evolution correctly in computing the new
3913         induction variable base.
3914
3915 2009-04-16  Richard Guenther  <rguenther@suse.de>
3916
3917         PR middle-end/39625
3918         * tree-cfg.c (make_blocks): Split statements with to-be
3919         abnormal SSA names on the lhs.
3920