OSDN Git Service

* config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-05-11  Ben Elliston  <bje@au.ibm.com>
2
3         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
4         for recent libcpp interface change.
5         (rs6000_macro_to_expand): Likewise.
6
7 2009-05-10  Michael Matz  <matz@suse.de>
8
9         PR target/40031
10         * config/arm/arm.c (require_pic_register): Emit on entry edge,
11         not at entry of function.
12
13 2009-05-10  Richard Guenther  <rguenther@suse.de>
14
15         PR tree-optimization/40081
16         Revert
17         * tree-sra.c (instantiate_element): Instantiate scalar replacements
18         using the main variant of the element type.  Do not fiddle with
19         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
20
21         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
22         structs with volatile fields.
23
24 2009-05-10  Jan Hubicka  <jh@suse.cz>
25
26         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
27         (estimate_move_cost): Assert that it does not get called for VOID_TYPE_P.
28         (estimate_num_insns): Skip VOID types in argument handling.
29         (optimize_inline_calls): Delete unreachable blocks and verify that
30         callgraph is valid.
31
32 2009-05-10  Jan Hubicka  <jh@suse.cz>
33
34         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
35         * cgraph.c (cgraph_mark_address_taken_node): New function.
36         (dump_cgraph_node): Dump new flag.
37         * cgraph.h (struct cgraph_node): Add address_taken.
38         (cgraph_mark_address_taken_node): New function.
39         * ipa.c (cgraph_postorder): Prioritize functions with address taken
40         since new direct calls can be born.
41
42 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
43
44         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
45         tok->val.node.node.
46
47 2009-05-10  Jan Hubicka  <jh@suse.cz>
48
49         PR middle-end/40084
50         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
51         argument; rewrite.
52         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
53         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
54         * tree-inline.c (copy_bb): Set frequency correctly.
55         (fold_marked_statements): Update call to
56         cgraph_update_edges_for_call_stmt.
57
58 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
59
60         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
61         identifiers in diagnostics.
62         * config/arm/arm.c (arm_handle_fndecl_attribute,
63         arm_handle_isr_attribute): Likewise.
64         * config/avr/avr.c (avr_handle_progmem_attribute,
65         avr_handle_fndecl_attribute, avr_handle_fntype_attribute):
66         Likewise.
67         * config/bfin/bfin.c (handle_int_attribute,
68         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
69         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
70         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
71         Likewise.
72         * config/darwin.c (darwin_handle_kext_attribute,
73         darwin_handle_weak_import_attribute): Likewise.
74         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
75         h8300_handle_eightbit_data_attribute,
76         h8300_handle_tiny_data_attribute): Likewise.
77         * config/i386/i386.c (ix86_handle_cconv_attribute,
78         ix86_handle_abi_attribute, ix86_handle_struct_attribute):
79         Likewise.
80         * config/i386/winnt.c (ix86_handle_shared_attribute,
81         ix86_handle_selectany_attribute): Likewise.
82         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
83         * config/m32c/m32c.c (function_vector_handler): Likewise.
84         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
85         m68hc11_handle_fntype_attribute): Likewise.
86         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
87         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
88         * config/mips/mips.c (mips_insert_attributes,
89         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
90         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
91         rs6000_handle_struct_attribute): Likewise.
92         * config/sh/sh.c (sh_insert_attributes,
93         sh_handle_resbank_handler_attribute,
94         sh_handle_interrupt_handler_attribute,
95         sh2a_handle_function_vector_handler_attribute,
96         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
97         Likewise.
98         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
99         * config/spu/spu.c (spu_handle_fndecl_attribute,
100         spu_handle_vector_attribute): Likewise.
101         * config/stormy16/stormy16.c
102         (xstormy16_handle_interrupt_attribute): Likewise.
103         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
104         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
105
106 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
107
108         * pretty-print.h (struct pretty_print_info): Add
109         translate_identifiers.
110         (pp_translate_identifiers): New.
111         (pp_identifier): Only conditionally translate identifier to locale
112         character set.
113         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
114         (pp_base_tree_identifier): Only conditionally translate identifier
115         to locale character set.
116         * c-pretty-print.c (M_): Define.
117         (pp_c_type_specifier, pp_c_primary_expression): Mark English
118         fragments for conditional translation with M_.
119         * tree-pretty-print.c (maybe_init_pretty_print): Disable
120         identifier translation.
121
122 2009-05-10  Richard Guenther  <rguenther@suse.de>
123
124         PR tree-optimization/40081
125         * tree-sra.c (instantiate_element): Instantiate scalar replacements
126         using the main variant of the element type.  Do not fiddle with
127         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
128
129 2009-05-09  Jan Hubicka  <jh@suse.cz>
130
131         PR middle-end/40080
132         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
133         indirect calls; verify cgraph afterwards.
134
135 2009-05-09  Jan Hubicka  <jh@suse.cz>
136
137         PR bootstrap/40082
138         * ipa.c (update_inlined_to_pointer): New function.
139         (cgraph_remove_unreachable_nodes): Use it.
140
141 2009-05-09  Jan Hubicka  <jh@suse.cz>
142
143         * tree-eh.c (struct leh_state): Remove prev_try.
144         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
145         not track prev_try.
146         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
147         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
148         remove_eh_handler_and_replace, foreach_reachable_handler,
149         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
150         * except.h (struct eh_region): Remove eh_region_u_cleanup.
151         (gen_eh_region_cleanup): Update prototype.
152
153 2009-05-09  Jan Hubicka  <jh@suse.cz>
154
155         PR middle-end/40043
156         * except.c (copy_eh_region): Always set prev_try.
157         (redirect_eh_edge_to_label): Find outer try.
158         (foreach_reachable_handler): When looking for prev try
159         handle case where previous try is not going to be taken.
160
161 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
162
163         PR tree-optimization/40049
164         * tree-vect-stmts.c (vectorizable_operation): If the machine has
165         only vector/vector shifts, convert the type of the constant to the
166         appropriate type to avoid building incorrect trees, which
167         eventually have problems with garbage collection.
168
169 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
170
171         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
172         -1 for complex floating-point types if honoring signed zeros.
173
174 2009-05-08  Jan Hubicka  <jh@suse.cz>
175
176         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
177         argument; handle correctly when profile is absent.
178         (build_cgraph_edges): Update.
179         (rebuild_cgraph_edges): Update.
180         * cgraph.c: Do not include varray.h.
181         (cgraph_set_call_stmt_including_clones): New function.
182         (cgraph_create_edge_including_clones): Likewise
183         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
184         (cgraph_update_edges_for_call_stmt): Handle clones.
185         (cgraph_remove_node): Handle clone tree.
186         (cgraph_remove_node_and_inline_clones): New function.
187         (dump_cgraph_node): Dump clone tree.
188         (cgraph_clone_node): Handle clone tree.
189         (clone_function_name): Bring here from tree-inline.c.
190         (cgraph_create_virtual_clone): New function.
191         * cgraph.h (ipa_replace_map): Move here from ipa.h.
192         (cgraph_clone_info): New function.
193         (strut cgraph_node): Add clone_info and new clone tree pointers.
194         (cgraph_remove_node_and_inline_clones,
195         cgraph_set_call_stmt_including_clones,
196         cgraph_create_edge_including_clones,
197         cgraph_create_virtual_clone): Declare.
198         (cgraph_function_versioning): Use VEC argument.
199         (compute_call_stmt_bb_frequency): Update prototype.
200         (cgraph_materialize_all_clones): New function.
201         * ipa-cp.c (ipcp_update_cloned_node): Remove.
202         (ipcp_create_replace_map): Update to VECtors.
203         (ipcp_update_callgraph): Use virtual clones.
204         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
205         (ipcp_update_profiling): Do not update local profiling.
206         (ipcp_insert_stage): Use VECtors and virtual clones.
207         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
208         (clone_of_p): New function.
209         (cgraph_preserve_function_body_p): Use clone tree.
210         (cgraph_optimize): Materialize clones.
211         (cgraph_function_versioning): Update for VECtors.
212         (save_inline_function_body): Use clone tree.
213         (cgraph_materialize_clone): New function.
214         (cgraph_materialize_all_clones): Likewise.
215         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
216         * ipa.c: Include gimple.h.
217         (cgraph_remove_unreachable_nodes): Use clone tree.
218         * ipa-prop.c (ipa_note_param_call): Update call to
219         compute_call_stmt_bb_frequencycall.
220         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
221         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
222         (copy_bb): Handle updating of clone tree; add new edge when new call
223         appears.
224         (expand_call_inline): Be strict about every call having edge.
225         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
226         (delete_unreachable_blocks_update_callgraph): New function.
227         (tree_function_versioning): Use VECtors; always remove unreachable
228         blocks and fold conditionals.
229         * tree-inline.h: Do not include varray.h.
230         (tree_function_versioning): Remove.
231         * Makefile.in (GTFILES): Remove tree-inline.c
232         * passes.c (do_per_function): Do only functions having body.
233         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
234         tree.
235
236 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
237             Andrew Morrow  <acm@google.com>
238
239         PR c/36892
240         * c-common.c (c_common_attribute_table): Permit deprecated
241         attribute to take an optional argument.
242         (handle_deprecated_attribute): If the optional argument to
243         __attribute__((deprecated)) is not a string ignore the attribute
244         and emit a warning.
245
246         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
247         * c-typeck.c (build_component_ref): Likewise.
248         (build_external_ref): Likewise.
249
250         * toplev.c (warn_deprecated_use): Add an attribute argument.
251         Emit the message associated with __attribute__((deprecated)).
252
253         * toplev.h (warn_deprecated_use): Updated.
254
255         * doc/extend.texi: Document new optional parameter to
256         __attribute__((deprecated))
257
258 2009-05-08  Michael Eager <eager@eagercon.com>
259
260         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
261         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
262
263 2009-05-08  Richard Guenther  <rguenther@suse.de>
264
265         PR tree-optimization/40062
266         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
267         Avoid exponential behavior.
268
269 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
270
271         PR rtl-optimization/33928
272         PR 26854
273         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
274         process_uses, build_single_def_use_links): New.
275         (update_df): Update use_def_ref.
276         (forward_propagate_into): Use get_def_for_use instead of use-def
277         chains.
278         (fwprop_init): Call build_single_def_use_links and let it initialize
279         dataflow.
280         (fwprop_done): Free use_def_ref.
281         (fwprop_addr): Eliminate duplicate call to df_set_flags.
282         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
283         df_rd_simulate_one_insn): New.
284         (df_rd_bb_local_compute_process_def): Update head comment.
285         (df_chain_create_bb): Use the new RD simulation functions.
286         * df.h (df_rd_simulate_artificial_defs_at_top, 
287         df_rd_simulate_one_insn): New.
288         * opts.c (decode_options): Enable fwprop at -O1.
289         * doc/invoke.texi (-fforward-propagate): Document this.
290
291 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
292
293         PR c/24581
294         * c-typeck.c (build_binary_op): Handle arithmetic between one real
295         and one complex operand specially.
296         * tree-complex.c (some_nonzerop): Do not identify a real value as
297         zero if flag_signed_zeros.
298
299 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
300
301         PR rtl-optimization/33928
302         * loop-invariant.c (record_use): Fix && vs. || mishap.
303
304 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
305
306         PR rtl-optimization/33928
307         * loop-invariant.c (struct use): Add addr_use_p.
308         (struct def): Add n_addr_uses.
309         (struct invariant): Add cheap_address.
310         (create_new_invariant): Set cheap_address.
311         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
312         (record_uses): Pass df_ref to record_use.
313         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
314         used only as such.
315
316 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
317
318         * config/sh/sh.c: Do not include c-pragma.h.
319
320 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
321
322         * config/spu/spu.c: Remove include of c-common.h.
323
324 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
325
326         PR c/39037
327         * c-common.h (mark_valid_location_for_stdc_pragma,
328         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
329         clear_float_const_decimal64, float_const_decimal64_p): New.
330         * c.opt (Wunsuffixed-float-constants): New.
331         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
332         unsuffixed float constant, handle new warning.
333         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
334         * c-decl.c (c_scope): New flag float_const_decimal64.
335         (set_float_const_decimal64, clear_float_const_decimal64,
336         float_const_decimal64_p): New.
337         (push_scope): Set new flag.
338         * c-parser.c (c_parser_translation_unit): Mark when it's valid
339         to use STDC pragmas.
340         (c_parser_external_declaration): Ditto.
341         (c_parser_compound_statement_nostart): Ditto.
342         * c-pragma.c (valid_location_for_stdc_pragma,
343         mark_valid_location_for_stdc_pragma,
344         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
345         handle_pragma_float_const_decimal64): New.
346         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
347         * cp/semantics.c (valid_location_for_stdc_pragma_p,
348         set_float_const_decimal64, clear_float_const_decimal64,
349         float_const_decimal64_p): New dummy functions.
350         * doc/extend.texi (Decimal Float): Remove statement that the
351         pragma, and suffix for double constants, are not supported.
352         * doc/invoke.texi (Warning Options): List new option.
353         (-Wunsuffixed-float-constants): New.
354
355 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
356
357         * config/i386/i386.c: Do not include c-common.h.
358
359 2009-05-07  Mark Heffernan  <meheff@google.com>
360
361         * doc/invoke.texi (Debugging Options): Document change of debugging
362         dump location.
363         * opts.c (decode_options): Make dump_base_name relative to
364         aux_base_name directory.
365
366 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
367
368         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
369         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
370
371 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
372
373         * Makefile.in (install-plugin): Simplify a bit.
374
375 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
376
377         * Makefile.in (OBJS-common): Add regcprop.o.
378         (regcprop.o): New.
379         * timevar.def (TV_CPROP_REGISTERS): New.
380         * regrename.c (regrename_optimize): Return 0.
381         (rest_of_handle_regrename): Delete.
382         (pass_rename_registers): Point to regrename_optimize.
383         (struct value_data_entry, struct value_data, 
384         kill_value_one_regno, kill_value_regno, kill_value,
385         set_value_regno, init_value_data, kill_clobbered_value,
386         kill_set_value, kill_autoinc_value, copy_value,
387         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
388         replace_oldest_value_reg, replace_oldest_value_addr,
389         replace_oldest_value_mem, copyprop_hardreg_forward_1,
390         debug_value_data, validate_value_data): Move...
391         * regcprop.c: ... here.
392         (rest_of_handle_cprop): Delete.
393         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
394
395 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
396
397         PR middle-end/40057
398         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
399         GEN_INT for 1 << bitnum.
400         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
401         build_int_cst_type.
402
403 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
404
405         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
406         Remove wrong description of "nand" operation.
407
408 2009-05-06  Richard Guenther  <rguenther@suse.de>
409             Adam Nemet  <anemet@caviumnetworks.com>
410
411         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
412         comment.  Add that if LHS is not a gimple register, then RHS1 has
413         to be a single object (GIMPLE_SINGLE_RHS).
414
415 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
416
417         * expr.c (get_def_for_expr): Move it up in the file.
418         (store_field): When expanding a bit-field store, look at the
419         defining gimple stmt for the masking conversion.
420
421 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
422
423         PR middle-end/39986
424         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
425         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
426         32-bit memcpy into long.
427
428 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
429
430         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
431         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
432         new_reg_loc_descr.
433         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
434         instead of appending DW_OP_deref*.
435
436 2009-05-06  Michael Matz  <matz@suse.de>
437
438         PR middle-end/40021
439         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
440         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
441
442 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
443
444         * Makefile.in (install-plugin): Fix srcdir handling.
445
446 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
447
448         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
449         when processing for not_regs_needed bitmap.
450         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
451         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
452         handling it for rhs. 
453
454 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
455
456         * config/i386/i386.md (unnamed inc/dec peephole): Use
457         optimize_insn_for_size_p instead of optimize_size.
458         * config/i386/predicates.md (incdec_operand): Likewise.
459         (aligned_operand): Likewise.
460         * config/i386/sse.md (divv8sf3): Likewise.
461         (sqrtv8sf2): Likewise.
462
463 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
464
465         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
466
467         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
468
469 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
470
471         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
472         ssemodesuffixf2c with avxmodesuffixf2c.
473
474 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
475
476         PR c/40032
477         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
478
479 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
480
481         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
482         (struct tree_base): Adjust spacing for 8 bit boundaries.
483         (struct tree_decl_common): Add decl_by_reference_flag bit.
484         (DECL_BY_REFERENCE): Adjust.
485         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
486         print DECL_BY_REFERENCE bit.
487         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
488         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
489         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
490         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
491         unconditionally.
492
493         PR middle-end/39666
494         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
495         range of the type, but default label is missing, add it with one
496         of the existing labels instead of adding a new label for it.
497
498 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
499
500         * dwarf.h: Remove.
501
502 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
503
504         * Makefile.in (enable_plugin, plugin_includedir): New.
505         (install): Depend on install-plugin.
506         (PLUGIN_HEADERS): New.
507         (install-plugin): New.
508         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
509
510 2009-05-05  Richard Guenther  <rguenther@suse.de>
511
512         PR tree-optimization/40022
513         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
514         the only vuse.
515         (phivn_valid_p): Fix tuplification error, simplify.
516         (phiprop_insert_phi): Add dumps.
517         (propagate_with_phi): Simplify.
518
519 2009-05-05  Richard Guenther  <rguenther@suse.de>
520
521         PR middle-end/40023
522         * builtins.c (gimplify_va_arg_expr): Properly build the address.
523
524 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
525
526         * tree.h (strip_float_extensions): Remove duplicate declaration.
527         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
528         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
529         block_ultimate_origin): Rearrange the declarations line to match the
530         comment that indicates the .c file which the functions are defined.
531         (dwarf2out_*, set_decl_rtl): Add comment.
532         (get_base_address): Adjust comment.
533         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
534         declarations line and add comment.
535         (is_builtin_name): Add blank after function name, for clarity.
536
537 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
538
539         * attribs.c (decl_attributes): Use %qE for identifiers in
540         diagnostics.
541         * cgraphunit.c (verify_cgraph_node): Translate function names to
542         locale character set in diagnostics.
543         * coverage.c (get_coverage_counts): Use %qE for identifiers in
544         diagnostics.
545         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
546         Document that functions are named in UTF-8.
547         * expr.c (expand_expr_real_1): Translate function names to locale
548         character set in diagnostics.
549         * gimplify.c (omp_notice_variable, omp_is_private,
550         gimplify_scan_omp_clauses): Use %qE for identifiers in
551         diagnostics.
552         * langhooks.c (lhd_print_error_function): Translate function names
553         to locale character set.
554         * langhooks.h (decl_printable_name): Document that return value is
555         in internal character set.
556         * stmt.c: Include pretty-print.h
557         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
558         diagnostics.
559         (resolve_operand_name_1): Translate named operand name to locale
560         character set.
561         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
562         diagnostics.
563         * toplev.c (announce_function): Translate function names to locale
564         character set.
565         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
566         (default_tree_printer): Use pp_identifier or translate identifiers
567         to locale character set.  Mark "<anonymous>" for translation.
568         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
569         for identifiers in diagnostics.
570         * tree.c (handle_dll_attribute): Use %qE for identifiers in
571         diagnostics.
572         * varasm.c (output_constructor): Use %qE for identifiers in
573         diagnostics.
574
575 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
576
577         * configure.ac: use ` ` instead of $()
578         * configure: Regenerate.
579
580 2009-05-05  Ben Elliston  <bje@au.ibm.com>
581
582         * config/pa/linux-atomic.c: Eliminate conditional include of
583         errno.h on non-LP64 systems to simplify build requirements.
584
585 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
586
587         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
588         diagnostics.
589         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
590         and pass value to identifier_to_locale.
591         (warn_variable_length_array): Make name a tree.
592         (grokdeclarator): Separate diagnostic texts for named and unnamed
593         declarators.  Use %qE for named declarators.
594         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
595         diagnostics.
596         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
597         identifiers in diagnostics.
598         * c-typeck.c (push_member_name, start_init): Pass identifiers to
599         identifier_to_locale.  Mark "anonymous" strings for translation.
600
601 2009-05-04  Michael Eager <eager@eagercon.com>
602
603         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
604         address for DImode/DFmode only if double-precision FP regs.
605
606 2009-05-04  Michael Eager <eager@eagercon.com>
607
608         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
609         TARGET_SINGLE_FLOAT check.
610
611 2009-05-04  Michael Eager <eager@eagercon.com>
612
613         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
614
615 2009-05-04  Michael Eager <eager@eagercon.com>
616
617         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
618         * config/rs6000/t-xilinx: New
619
620 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
621
622         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
623         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
624         * gcc/explow.c (memory_address): Use target hook.
625         * gcc/targhooks.c (default_legitimize_address): New.
626         * gcc/targhooks.h (default_legitimize_address): New.
627         * gcc/target.h (legitimize_address): New.
628         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
629         (TARGET_INITIALIZER): Include it.
630         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
631
632         * config/bfin/bfin-protos.h (legitimize_address): Remove.
633         * config/bfin/bfin.c (legitimize_address): Remove.
634         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
635         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
636         Remove.
637         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
638         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
639
640         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
641         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
642         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
643         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
644         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
645         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
646         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
647         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
648         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
649         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
650         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
651         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
652         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
653         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
654         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
655         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
656         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
657         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
658         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
659         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
660         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
661         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
662         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
663
664         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
665         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
666         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
667         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
668         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
669         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
670         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
671         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
672         (thumb_legitimize_address): Delete.
673         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
674         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
675         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
676         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
677         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
678         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
679         Delete.
680         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
681         Delete.
682
683         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
684         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
685         * config/m32r/m32r.c (m32r_legitimize_address): New.
686         * config/m68k/m68k.c (m68k_legitimize_address): New.
687         * config/score/score.c (score_legitimize_address): Standardize.
688         * config/score/score3.c (score3_legitimize_address): Standardize.
689         * config/score/score3.h (score3_legitimize_address): Adjust.
690         * config/score/score7.c (score7_legitimize_address): Standardize.
691         * config/score/score7.h (score7_legitimize_address): Adjust.
692         * config/sh/sh.c (sh_legitimize_address): New.
693         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
694
695         * gcc/config/s390/s390.c (legitimize_address): Rename to...
696         (s390_legitimize_address): ... this.
697         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
698         (sparc_legitimize_address): ... this.
699         * gcc/config/i386/i386.c (legitimize_address): Rename to...
700         (ix86_legitimize_address): ... this.
701         * gcc/config/avr/avr.c (legitimize_address): Rename to...
702         (avr_legitimize_address): ... this.
703         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
704         (mn10300_legitimize_address): ... this.
705         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
706         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
707         (alpha_expand_mov): Adjust call.
708
709         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
710         * config/spu/spu.c (spu_legitimize_address): Likewise.
711         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
712         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
713
714 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
715
716         * intl.c (locale_encoding, locale_utf8): New.
717         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
718         * intl.h (locale_encoding, locale_utf8): Declare.
719         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
720         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
721         New.
722         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
723         argument.
724         (pp_tree_identifier): Define to call pp_base_tree_identifier.
725         (pp_base_tree_identifier): Declare as function.
726         (identifier_to_locale): Declare.
727         * Makefile.in (pretty-print.o): Update dependencies.
728         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
729
730 2009-05-04  Richard Guenther  <rguenther@suse.de>
731
732         PR middle-end/40015
733         * builtins.c (fold_builtin_memory_op): Do not decay to element
734         type if the size matches the whole array.
735
736 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
737
738         * expmed.c (synth_mult): When trying out a shift, pass the result
739         of a signed shift.
740
741 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
742
743         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
744         (shiftsub1_cost): New.
745         (init_expmed): Compute shiftsub1_cost.
746         (synth_mult): Optimize multiplications by constants of the form
747         -(2^^m-1) for some constant positive integer m.
748
749 2009-05-03  Richard Guenther  <rguenther@suse.de>
750
751         PR c/39983
752         * c-typeck.c (array_to_pointer_conversion): Do not built
753         ADDR_EXPRs of arrays of pointer-to-element type.
754         * c-gimplify.c (c_gimplify_expr): Revert change fixing
755         up wrong ADDR_EXPRs after-the-fact.
756         * c-common.c (strict_aliasing_warning): Strip pointer
757         conversions for obtaining the original type.
758         * builtins.c (fold_builtin_memset): Handle array types.
759         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
760         and array types
761
762 2009-05-03  Richard Guenther  <rguenther@suse.de>
763
764         PR middle-end/23329
765         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
766         Do not lose casts from array types with unknown extent to array
767         types with known extent.
768         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
769         alias set compatibility.
770
771 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
772
773         * flags.h (extra_warnings): Delete.
774         * toplev.c (process_options): Handle Wuninitialized here.
775         * opts.c (extra_warnings): Delete.
776         (set_Wextra): Delete.
777         (common_handle_option): -Wextra can be handled automatically.
778         * c-opts.c (c_common_handle_option): Delete obsolete code.
779         (c_common_post_options): Simplify comment.
780         * common.opt (W): Add Var.
781         (Wextra): Add Var.
782         (Wuninitialized): Initialize to -1.
783
784 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
785             Richard Guenther  <rguenther@suse.de>
786
787         * expr.c (get_def_for_expr): New function.
788         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
789         SSA rather than trees.
790         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
791         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
792         
793 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
794
795         * c-common.c (reswords): Add _Imaginary.
796         * c-common.c (enum rid): Add RID_IMAGINARY.
797
798 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
799
800         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
801         Patch by Richard Guenther.
802
803 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
804
805         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
806         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
807         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
808         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
809         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
810         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
811         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
812         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
813         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
814         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
815         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
816         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
817         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
818         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
819         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
820         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
821         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
822         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
823
824 2009-05-02  Richard Guenther  <rguenther@suse.de>
825
826         PR tree-optimization/39940
827         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
828         doing so.
829
830 2009-05-02  Richard Guenther  <rguenther@suse.de>
831
832         PR middle-end/40001
833         * tree-ssa.c (execute_update_addresses_taken): Properly check
834         if we can mark a variable DECL_GIMPLE_REG_P.
835         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
836         back to the end of the function.
837         (is_gimple_reg_type): Remove complex type special casing.
838         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
839         if not optimizing.
840
841 2009-05-02  Ben Elliston  <bje@au.ibm.com>
842
843         * doc/collect2.texi (Collect2): Document search path behaviour
844         when configured with --with-ld.
845
846 2009-05-02  Jan Hubicka  <jh@suse.cz>
847
848         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
849         parameter; update callers.
850         (coalesce_cost_edge): EH edges are costier because they needs
851         splitting even if not critical and even more costier when there are
852         multiple EH predecestors.
853
854 2009-05-02  Jan Hubicka  <jh@suse.cz>
855
856         * except.c (remove_eh_handler_and_replace): Handle updating after
857         removing TRY blocks.
858
859 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
860
861         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
862
863 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
864
865         * varasm.c: Do not include c-pragma.h.
866         * attribs.c: Do not incude c-common.h.
867
868 2009-05-01  Michael Matz  <matz@suse.de>
869
870         * calls.c (initialize_argument_information): Handle SSA names like
871         decls with a non MEM_P DECL_RTL.
872
873 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
874
875         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
876         * ipa-utils.c: Likewise.
877         * ipa-type-escape.c: Likewise.
878         * cgraphunit.c Do not include c-common.h.
879         * ipa-pure-const.c: Likewise.
880         * tree-if-conv.c: Likewise.
881         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
882         * ipa-struct-reorg.c: Likewise.
883         * tree-nomudflap.c: Likewise.
884         * tree-ssa-structalias.c: Likewise.
885
886 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
887
888         * store-motion.c: Many cleanups to make this pass a first-class
889         citizen instead of an appendix to gcse load motion.  Add TODO list
890         to make this pass faster/cleaner/better.
891
892         (struct ls_expr): Post gcse.c-split cleanups.
893         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
894         "stores" field to "avail_stores".
895         (pre_ldst_mems): Rename to store_motion_mems.
896         (pre_ldst_table): Rename to store_motion_mems_table.
897         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
898         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
899         (ldst_entry): Rename to st_expr_entry, update users.
900         (free_ldst_entry): Rename to free_st_expr_entry, update users.
901         (free_ldst_mems): Rename to free_store_motion_mems, update users.
902         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
903         update caller.
904         (first_ls_expr): Rename to first_st_expr, update users.
905         (next_ls_expr): Rename to next_st_expr, update users.
906         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
907         fields properly for store motion instead of names inherited from load
908         motion in gcse.c.
909         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
910         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
911         are done with it.
912
913         (ae_kill): Rename to st_kill, update users.
914         (ae_gen): Rename to st_avloc, update users.
915         (transp): Rename to st_transp, update users.
916         (pre_insert_map): Rename to st_insert_map, update users.
917         (pre_delete_map): Rename to st_delete_map, update users.
918         (insert_store, build_store_vectors, free_store_memory,
919         one_store_motion_pass): Update for abovementioned changes.
920
921         (gcse_subst_count, gcse_create_count): Remove.
922         (one_store_motion_pass): New statistics counters "n_stores_deleted"
923         and "n_stores_created", local variables.
924
925         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
926         use for_each_rtx.
927
928         (regvec, compute_store_table_current_insn): Remove.
929         (reg_set_info, reg_clear_last_set): Remove.
930         (compute_store_table): Use DF caches instead of local dataflow
931         solvers.
932
933 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
934
935         * c-objc-common.c (c_tree_printer): Print identifiers with
936         pp_identifier, not pp_string.  Mark "({anonymous})" for
937         translation.
938         * c-pretty-print.c (pp_c_ws_string): New.
939         (pp_c_cv_qualifier, pp_c_type_specifier,
940         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
941         pp_c_storage_class_specifier, pp_c_function_specifier,
942         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
943         pp_c_primary_expression, pp_c_postfix_expression,
944         pp_c_unary_expression, pp_c_shift_expression,
945         pp_c_relational_expression, pp_c_equality_expression,
946         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
947         use pp_string and pp_c_ws_string in place of pp_identifier and
948         pp_c_identifier for non-identifiers.  Mark English strings for
949         translation.
950         * c-pretty-print.h (pp_c_ws_string): Declare.
951
952 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
953             Roland McGrath <roland@redhat.com>
954
955         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
956         (ENABLE_LD_BUILDID): New configuration option.
957         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
958         (LINK_BUILDID_SPEC): New macro.
959         (init_spec): If defined, prepend it between LINK_EH_SPEC and
960         link_spec.
961         * doc/install.texi: Document --enable-linker-build-id option.
962         * configure: Rebuild.
963         * config.in: Rebuild.
964
965 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
966
967         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
968         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
969         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
970         MIPS_GP_SAVE_AREA_SIZE.
971         * config/mips/mips.c (struct mips_frame_info): Update comment
972         before arg_pointer_offset and hard_frame_pointer_offset.
973         (mips_compute_frame_info): Update diagram before function: to
974         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
975         indicate the position of frame_pointer_rtx with -fstack-protector and
976         to show args_size.  Don't allocate cprestore area for leaf functions
977         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
978         cprestore_size.
979         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
980
981 2009-04-30  Michael Matz  <matz@suse.de>
982
983         PR tree-optimization/39955
984         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
985
986 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
987
988         * ira.c (setup_cover_and_important_classes):  Use safe macro
989         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
990         directly.
991         * genpreds.c (write_tm_preds_h):  Output suitable definition of
992         REG_CLASS_FOR_CONSTRAINT.
993
994 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
995
996         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
997         instead of an int.
998         * bitmap.c (bitmap_descriptor): Likewise.
999         * ggc-common.c (loc_descriptor): Likewise.
1000         * varray.c (varray_descriptor): Likewise.
1001         * vec.c (vec_descriptor): Likewise.
1002
1003 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
1004
1005         * Makefile.in (dce.o): Add $(EXCEPT_H).
1006         * dce.c: Include except.h and delete redundant vector definitions.
1007         (deletable_insn_p): Return false for non-call insns that can throw
1008         if DF is running.
1009
1010 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
1011
1012         * gcse.c (ae_gen): Remove.
1013         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
1014         and make non-static function to make it available in store-motion.c.
1015         Update call sites with search-and-replace.
1016         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
1017         extract_mentioned_regs, extract_mentioned_regs_helper,
1018         find_moveable_store, compute_store_table, load_kills_store, find_loads,
1019         store_killed_in_insn, store_killed_after, store_killed_before,
1020         build_store_vectors, insert_insn_start_basic_block, insert-store,
1021         remove_reachable_equiv_notes, replace_store_insn, delete_store,
1022         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
1023         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
1024         * store-motion.c: ...new file.  Also copy data structures from gcse.c
1025         and clean up to remove parts not used by store motion.
1026         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
1027         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
1028
1029 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1030
1031         PR target/38571
1032         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
1033         when optimizing for size.
1034
1035 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
1036
1037         * gcse.c (gcse_constant_p): Fix typo in last change.
1038
1039 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
1040
1041         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
1042
1043 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
1044
1045         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
1046
1047 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
1048
1049         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
1050         CONST_HIGH_PART result.
1051
1052 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
1053
1054         * config/avr/avr.c (initial_elimination_offset): Rename to
1055         avr_initial_elimination_offset.
1056         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
1057         change return type to bool.
1058         (avr_can_eliminate): New function.
1059         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
1060         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
1061         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
1062         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
1063         avr_initial_elimination_offset.
1064         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
1065         (avr_initial_elimination_offset): Define.
1066
1067 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
1068             Steven Bosscher  <steven@gcc.gnu.org>
1069
1070         PR rtl-optimization/39938
1071         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
1072         * cfgrtl.c: Include insn-attr.h.
1073         (rest_of_pass_free_cfg): New function.
1074         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
1075         * resource.c (init_resource_info): Remove call to df_analyze.
1076
1077 2009-04-29  Richard Guenther  <rguenther@suse.de>
1078
1079         PR target/39943
1080         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
1081         allow conversion to signed integers.
1082
1083 2009-04-29  Richard Guenther  <rguenther@suse.de>
1084
1085         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
1086         shifts of floating point vectors if the shift amount is
1087         a constant multiple of the element size.
1088
1089 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
1090             Michael Matz  <matz@suse.de>
1091
1092         PR middle-end/39927
1093         PR bootstrap/39929
1094         * tree-outof-ssa.c (emit_partition_copy): New function.
1095         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
1096         insert_part_to_rtx_on_edge): Perform the partition base var
1097         copy using emit_partition_copy.
1098         (insert_value_copy_on_edge): Convert constants to the right mode.
1099         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
1100         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
1101
1102 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1103
1104         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
1105         scan backwards to try to find a constant to initialize it.
1106
1107         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
1108         insn before the loop_end instruction, don't look past labels.
1109
1110 2009-04-29  Richard Guenther  <rguenther@suse.de>
1111
1112         PR middle-end/39937
1113         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
1114         loose type conversions.
1115         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
1116         stmts only if there are no uses of its definition.
1117
1118 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1119
1120         * config/bfin/bfin.h (splitting_loops): Declare.
1121         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
1122         Reorder bit definitions to be ascending.
1123         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
1124         * config/bfin/bfin.c (splitting_loops): New variable.
1125         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
1126         (struct loop_info): Remove members INIT and LOOP_INIT.
1127         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
1128         the LSETUP sequence.  Allow LC to be loaded from any register, but
1129         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
1130         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
1131         set to 1.
1132         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
1133         of reload_completed.
1134
1135         From Jie Zhang:
1136         * config/bfin/bfin.md (movsi_insn): Refine constraints.
1137
1138 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
1139
1140         * Makefile.in (PLUGIN_VERSION_H): New.
1141         (OBJS-common): Remove plugin-version.o.
1142         (plugin.o): Depend on (PLUGIN_VERSION_H).
1143         (plugin-version.o): Remove.
1144         * configure: Regenerate
1145         * configure.ac: Create plugin-version.h.
1146         * gcc-plugin.h (plugin_gcc_version): Remove.
1147         (plugin_default_version_check): Change signature.
1148         * plugin-version.c: Remove.
1149         * plugin.c: Include plugin-version.h.
1150         (str_plugin_gcc_version_name): Remove.
1151         (try_init_one_plugin): Pass gcc version to plugin_init.
1152         (plugin_default_version_check): Both gcc and plugin versions are now
1153         arguments.
1154
1155 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1156         
1157         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
1158         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
1159         Remove special case testing for last insn of inner loops. Don't fail
1160         if the loop ends with a jump, emit an extra nop instead.
1161
1162         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
1163         DREGS rather than comparing directly.  Remove code that tries to
1164         account for latencies.
1165
1166 2009-04-29  Richard Guenther  <rguenther@suse.de>
1167
1168         PR tree-optimization/39941
1169         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
1170         eliminating an indirect call.
1171
1172 2009-04-29  Richard Guenther  <rguenther@suse.de>
1173
1174         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
1175         parameter.  Allow invariants as base if !require_lvalue.
1176         (verify_gimple_assign_single): Adjust.
1177
1178 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1179
1180         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
1181         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
1182         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
1183         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
1184         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
1185         a VEC_SELECT.
1186         * config/bfin/bfin.c (bfin_expand_builtin,
1187         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
1188
1189 2009-04-28  Richard Guenther  <rguenther@suse.de>
1190
1191         * tree-vect-loop.c (get_initial_def_for_induction): Use
1192         correct types for pointer increment.
1193
1194 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1195
1196         * toplev.c (print_version): Update GMP version string calculation.
1197
1198 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1199
1200         PR rtl-optimization/39938
1201         * resource.c (init_resource_info): Add call to df_analyze.
1202
1203 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1204
1205         * config/alpha/alpha.md (usegp): Cast the result of
1206         alpha_find_lo_sum_using_gp to enum attr_usegp.
1207         * config/alpha/alpha.c (override_options): Remove end-of-structure
1208         marker element from cpu_table.  Use array size of cpu_table to handle
1209         -mcpu and -mtune options.
1210         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
1211
1212 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
1213
1214         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
1215         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
1216         tune_32 and tune_64.
1217         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
1218         support on PowerPC.
1219         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
1220         * config/rs6000/option-defaults.h: ... here.  New file.
1221         (OPT_64, OPT_32): Define.
1222         (MASK_64BIT): Define to 0 if not already defined.
1223         (OPT_ARCH64, OPT_ARCH32): Define.
1224         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
1225         and tune_64.
1226
1227 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1228
1229         * config/arm/arm.c (arm_override_options): Emit error on using
1230         fpa with AAPCS.
1231
1232 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1233
1234         PR rtl-optimization/39914
1235         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
1236         registers for allocnos created from user-defined variables only
1237         when not optimizing.
1238
1239 2009-04-28  Richard Guenther  <rguenther@suse.de>
1240
1241         PR middle-end/39937
1242         * fold-const.c (fold_binary): Use distribute_real_division only
1243         on float types.
1244
1245 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
1246
1247         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
1248         add hpux-stdint.h to tm_file.
1249         (hppa[12]*-*-hpux11*): Ditto.
1250         (ia64*-*-hpux*): Ditto.
1251         * config/hpux-stdint.h: New.
1252         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
1253         __STDC_EXT__ for all compiles.
1254         * config/pa/pa-hpux.h: Ditto.
1255         * config/pa/pa-hpux10.h: Ditto.
1256         * config/pa/pa-hpux11.h: Ditto.
1257
1258 2009-04-28  Catherine Moore  <clm@codesourcery.com>
1259
1260         * debug.h (set_name): Add comment.
1261
1262 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
1263
1264         PR target/39929
1265         * config/darwin.c (machopic_gen_offset): Check
1266         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
1267         * config/arm/arm.c (require_pic_register): Likewise.
1268
1269 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
1270
1271         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
1272         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
1273         m32c_promote_prototypes): Delete.
1274
1275 2009-04-28  Michael Matz  <matz@suse.de>
1276
1277         PR middle-end/39922
1278         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
1279         constants.
1280
1281 2009-04-28  Richard Guenther  <rguenther@suse.de>
1282
1283         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
1284
1285 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1286
1287         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
1288         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
1289         * config/arm/arm-tune.md: Regenerate.
1290
1291 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
1292
1293         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
1294         block if there are complex incoming edges.
1295         (sel_merge_blocks): Remove useless assert.
1296         (sel_redirect_edge_and_branch): Check that edge was redirected.
1297         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
1298         (sel_find_rgns): Delete declaration.
1299         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
1300         the region when it is not a preheader.
1301
1302 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1303
1304         PR c/39323
1305         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
1306
1307 2009-04-28  Richard Guenther  <rguenther@suse.de>
1308
1309         * tree.h (SSA_NAME_VALUE): Remove.
1310         (struct tree_ssa_name): Remove value_handle member.
1311         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
1312         array for jump threading.
1313         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
1314         SSA_NAME_VALUEs.
1315         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
1316         * tree-flow.h (threadedge_initialize_values): Declare.
1317         (threadedge_finalize_values): Likewise.
1318         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
1319         (SSA_NAME_VALUE): Define.
1320         (threadedge_initialize_values): New function.
1321         (threadedge_finalize_values): Likewise.
1322         * tree-ssa-dom.c (ssa_name_values): New global variable.
1323         (SSA_NAME_VALUE): Define.
1324         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
1325
1326 2009-04-28  Ira Rosen  <irar@il.ibm.com>
1327
1328         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1329         Use REPORT_VECTORIZED_LOCATIONS instead 
1330         REPORT_VECTORIZED_LOOPS.
1331         * tree-vectorizer.c (vect_verbosity_level): Make static.
1332         (vect_loop_location): Rename to vect_location.
1333         (vect_set_verbosity_level): Update comment.
1334         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
1335         and vect_location.
1336         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
1337         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
1338         instead REPORT_UNVECTORIZED_LOOPS.
1339         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def and
1340         vect_loop_def to vect_external_def and vect_internal_def.
1341         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
1342         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
1343         REPORT_UNVECTORIZED_LOCATIONS.
1344         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
1345         and vect_used_in_loop and to vect_unused_in_scope and 
1346         vect_used_in_scope.
1347         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
1348         (vect_verbosity_level): Remove declaration.
1349         (vect_analyze_operations): Likewise.
1350         (vect_analyze_stmt): Declare.
1351         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
1352         REPORT_UNVECTORIZED_LOCATIONS.
1353         (vect_get_loop_niters): Fix indentation.
1354         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
1355         (vect_analyze_loop_operations): New function.
1356         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
1357         vect_analyze_operations.
1358         (vect_is_simple_reduction): Use new names.
1359         (vectorizable_live_operation, vect_transform_loop): Likewise.
1360         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value to
1361         specify whether the data references can be a part of interleaving chain.
1362         (vect_analyze_data_ref_dependence): Use new names.
1363         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
1364         (vect_create_addr_base_for_vector_ref): Remove redundant code.
1365         * tree-vect-patterns.c (widened_name_p): Use new names.
1366         (vect_recog_dot_prod_pattern): Likewise.
1367         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
1368         (process_use, vect_mark_stmts_to_be_vectorized, 
1369         vect_model_simple_cost, vect_model_store_cost,
1370         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
1371         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
1372         vectorizable_operation, vectorizable_type_demotion,
1373         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
1374         vectorizable_condition): Likewise.
1375         (vect_analyze_operations): Split into vect_analyze_loop_operations
1376         and ...
1377         (vect_analyze_stmt): ... new function.
1378         (new_stmt_vec_info): Use new names.
1379         (vect_is_simple_use): Use new names and fix comment.
1380         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
1381         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
1382
1383 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1384
1385         PR target/39911
1386         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
1387         and integer modes for x87 operands.  Do not ICE for unsupported size,
1388         generate error instead.  Generate error for unsupported operand types.
1389         ['z']: Do not handle HImode memory operands specially.  Warning
1390         for floating-point operands.  Fallthru to 'Z' for unsupported operand
1391         types.  Do not ICE for unsupported size, generate error instead.
1392         (output_387_binary_op): Use %Z to output operands.
1393         (output_fp_compare): Ditto.
1394         (output_387_reg_move): Ditto.
1395
1396 2009-04-28  Ben Elliston  <bje@au.ibm.com>
1397
1398         PR c++/35652
1399         Revert:
1400
1401         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1402
1403         * builtins.c (c_strlen): Do not warn here.
1404         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
1405         * c-common.c (pointer_int_sum): Take an explicit location.
1406         Warn about offsets out of bounds.
1407         * c-common.h (pointer_int_sum): Adjust declaration.
1408
1409 2009-04-27  Ian Lance Taylor  <iant@google.com>
1410
1411         * collect2.c (is_ctor_dtor): Change type of ret field in struct
1412         names to symkind.
1413         * dce.c (run_fast_df_dce): Change type of old_flags to int.
1414         * df-core.c (df_set_flags): Change return type to int.  Change
1415         type of old_flags to int.
1416         (df_clear_flags): Likewise.
1417         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
1418         (df_get_conditional_uses): Likewise.
1419         * df.h (df_set_flags, df_clear_flags): Update declarations.
1420         * dwarf2out.c (struct indirect_string_node): Change type of form
1421         field to enum dwarf_form.
1422         (AT_string_form): Change return type to enum dwarf_form.
1423         * fixed-value.c (fixed_compare): Add cast to enum type.
1424         * fwprop.c (update_df): Change 0 to VOIDmode.
1425         * gensupport.c: Change 0 to UNKNOWN.
1426         * gimple.h (gimple_cond_code): Add cast to enum type.
1427         * haifa-sched.c (reemit_notes): Add cast to enum type.
1428         * hooks.c (hook_int_void_no_regs): Remove function.
1429         * hooks.h (hook_int_void_no_regs): Remove declaration.
1430         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
1431         * predict.c (combine_predictions_for_insn): Add casts to enum type.
1432         * real.c (real_arithmetic): Add cast to enum type.
1433         (real_compare): Likewise.
1434         * target.h (struct gcc_target): Change return type of
1435         branch_target_register_class to enum reg_class.
1436         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
1437         default_branch_target_register_class.
1438         * targhooks.c (default_branch_target_register_class): New function.
1439         * targhooks.h (default_branch_target_register_class): Declare.
1440         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
1441         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
1442         cast to int.
1443         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
1444         ERROR_MARK.
1445         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
1446         vect_uninitialized_def.  Change 0 to ERROR_MARK.
1447         * tree-vect-stmts.c (supportable_widening_operation): Don't
1448         initialize icode1 and icode2.
1449         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
1450         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
1451         and to STD_C89.
1452         (cmn_err_flag_specs): Change 0 to STD_C89.
1453         (cmn_err_char_table): Likewise.
1454         * config/arm/arm.c (get_arm_condition_code): Change type of code
1455         to enum arm_cond_code.
1456         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
1457         (IWMMXT_BUILTIN2): Likewise.
1458         (neon_builtin_type_bits): Don't define typedef.
1459         (neon_builtin_datum): Change type of bits field to int.
1460         (arm_expand_neon_args): Add cast to enum type.
1461         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
1462         TLS_MODEL_NONE.
1463         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
1464         casts to enum type.
1465         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
1466         MIPS_FP_COND_f.
1467         * config/mips/mips.md (jal_macro): Return enum constant.
1468         (single_insn): Likewise.
1469         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
1470         CODE_FOR_nothing.
1471         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1472         casts to enum type.
1473         * config/s390/s390.c (s390_tune_flags): Change type to int.
1474         (s390_arch_flags): Likewise.
1475         (s390_handle_arch_option): Change flags field of struct pta to int.
1476         * config/s390/s390.h (s390_tune_flags): Update declaration.
1477         (s390_arch_flags): Likewise.
1478         * config/sh/sh.c (prepare_move_operands): Compare
1479         tls_symbolic_operand result with enum constant.
1480         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
1481         (sh_expand_prologue): Add cast to enum type.
1482         (sh_expand_epilogue): Likewise.
1483         (tls_symbolic_operand): Change return type to enum tls_model.
1484         (fpscr_set_from_mem): Add cast to enum type.
1485         (legitimize_pic_address): Compare tls_symbolic_operand result with
1486         enum constant.
1487         (sh_target_reg_class): Change return type to enum reg_class.
1488         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
1489         PROCESSOR_xxx.
1490         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
1491         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
1492         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
1493         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
1494         (delayed_branch, tls_call_delay): Likewise.
1495         (eligible_for_sibcall_delay): Likewise.
1496         (eligible_for_return_delay): Likewise. 
1497         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
1498         (spu_expand_builtin_1): Likewise.
1499
1500         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
1501         for all types of conversions.
1502         (output_init_element): Issue -Wc++-compat warning if needed when
1503         initializing a bitfield with enum type.
1504         * c-parser.c (c_parser_expression): Set original_type to
1505         original_type of right hand operand of comman operator.
1506
1507 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1508
1509         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
1510         grammar nits.
1511         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
1512         * doc/cpp.texi (Standard Predefined Macros)
1513         (Implementation-defined behavior): Likewise.
1514         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
1515         * doc/gimple.texi (GIMPLE Exception Handling)
1516         (@code{GIMPLE_ASSIGN}): Likewise.
1517         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
1518         * doc/invoke.texi (Warning Options, Optimize Options)
1519         (AVR Options, Darwin Options): Likewise.
1520         (Optimize Options): Reformulate -fwhole-program description.
1521         * doc/loop.texi (Lambda): Likewise.
1522         * doc/md.texi (Output Template, Define Constraints)
1523         (Standard Names, Insn Splitting): Likewise.
1524         * doc/options.texi (Option properties): Likewise.
1525         * doc/passes.texi (Tree-SSA passes): Likewise.
1526         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
1527         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
1528         (File Names and DBX): Likewise.
1529         * doc/trouble.texi (Incompatibilities): Likewise.
1530
1531 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1532
1533         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
1534         instruction is correct.
1535
1536 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
1537
1538         Allow non-constant arguments to conversion intrinsics.
1539         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
1540         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
1541         * spu.c (print_operand): Handle 'v' and 'w'.
1542         (exp2_immediate_p, spu_gen_exp2): Define.
1543         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
1544         spu_convtf_1): Update parameter descriptions.
1545         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
1546         * constraints.md ('v', 'w'): New.
1547         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
1548         Remove.
1549         (i2f, I2F): New define_mode_attr.
1550         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
1551         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
1552         fixuns_truncv4sfv4si2):  Update to use mode attribute.
1553         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
1554         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
1555         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
1556         patterns for combine.
1557
1558 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
1559
1560         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
1561         (cprop, hoist, pre, store_motion): New debug counters.
1562         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
1563         is not an RTL pass anymore.
1564         (pass_profiling): Remove extern decl for pass removed in 2005.
1565         (pass_gcse, pass_jump_bypass): Remove.
1566         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
1567         to 0 for clean state.
1568         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
1569         * cse.c (gate_handle_cse_after_global_opts,
1570         rest_of_handle_cse_after_global_opts): New functions.
1571         (pass_cse_after_global_opts): New pass, does local CSE.
1572         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
1573         (TV_CPROP): New timevar.
1574         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
1575         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
1576         (gcse_main, recompute_all_luids): Remove.
1577         (compute_hash_table_work): Call max_reg_num instead of reading
1578         max_gcse_regno.
1579         (cprop_jump): Don't set run_jump_opt_after_gcse.
1580         (constprop_register): Always allow to alter jumps.
1581         (cprop_insn): Likewise.
1582         (do_local_cprop): Likewise.
1583         (local_cprop_pass): Likewise.  Return non-zero if something changed.
1584         (cprop): Remove function, fold interesting bits into one_cprop_pass.
1585         (find_implicit_sets): Add note about missed optimization opportunity.
1586         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
1587         pass_rtl_cprop execute function.
1588         Don't bother tracking the pass number, each pass gets its own dumpfile
1589         now anyway.
1590         Always allow to alter jumpsand bypass jumps.
1591         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
1592         will just find no suitable set.
1593         (pre_edge_insert): Fix dumping, this function is for PRE only.
1594         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
1595         pass_rtl_pre execute function.
1596         (hoist_code): Return non-zero if something changed.  Keep track of
1597         substitutions and insertions for statistics gathering similar to PRE.
1598         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
1599         called from the pass_rtl_hoist execute function.  Show pass statistics.
1600         (compute_store_table): Use max_reg_num directly instead of using the
1601         formerly global max_gcse_regno.
1602         (build_store_vectors): Likewise.
1603         (replace_store_insn): Fix dumping.
1604         (store_motion): Rename to ...
1605         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
1606         pass, called from the pass_rtl_store_motion execute function.  Keep
1607         track of substitutions and insertions for statistics gathering similar
1608         to PRE.
1609         (bypass_jumps): Remove, fold interesting bits into ...
1610         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
1611         from the pass_rtl_cprop execute function.
1612         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
1613         pass_jump_bypass): Remove.
1614         (gate_handle_gcse, rest_of_handle_gcse): Remove.
1615         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
1616         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
1617         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
1618         (gate_rtl_store_motion, execute_rtl_store_motion,
1619         pass_rtl_store_motion): New.
1620         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
1621         make it clear that -fcse-skip-blocks is a no-op for backward compat.
1622         * passes.c (init_optimization_passes): Remove pass_gcse and
1623         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
1624         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
1625         instead of pass_jump_bypass.
1626
1627 2009-04-27  Richard Guenther  <rguenther@suse.de>
1628
1629         PR middle-end/39928
1630         * gimplify.c (gimplify_expr): If we are required to create
1631         a temporary make sure it ends up as register.
1632
1633 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1634
1635         PR target/39903
1636         * config/i386/i386.c (construct_container): Don't call
1637         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
1638         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
1639
1640 2009-04-27  Michael Matz  <matz@suse.de>
1641
1642         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
1643         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
1644         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
1645         (dump_replaceable_exprs): Take a bitmap.
1646         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
1647         array.
1648         (expand_gimple_basic_block): Likewise.
1649         * tree-ssa-ter.c (struct temp_expr_table_d): Make
1650         replaceable_expressions member a bitmap.
1651         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
1652         (mark_replaceable): Likewise.
1653         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
1654         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
1655
1656 2009-04-27  Richard Guenther  <rguenther@suse.de>
1657
1658         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
1659         (verify_stmts): Dispatch to gimple/type verification code.
1660         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
1661         issue with call argument types.
1662
1663 2009-04-27  Michael Matz  <matz@suse.de>
1664
1665         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
1666         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
1667         to above.
1668
1669 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
1670             Eric Botcazou  <ebotcazou@adacore.com>
1671
1672         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
1673         a label's basic block.
1674         (mark_target_live_regs): Tidy and rework obsolete comments.
1675         Change back DF problem to LIVE.  If a label starts a basic block,
1676         assume that all registers that used to be live then still are.
1677         (init_resource_info): If a label starts a basic block, set its
1678         BLOCK_FOR_INSN accordingly.
1679         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
1680
1681 2009-04-27  Richard Guenther  <rguenther@suse.de>
1682
1683         * tree-flow-inline.h (function_ann): Remove.
1684         (get_function_ann): Likewise.
1685         * tree-dfa.c (create_function_ann): Remove.
1686         * tree-flow.h (struct static_var_ann_d): Remove.
1687         (struct function_ann_d): Likewise.
1688         (union tree_ann_d): Remove fdecl member.
1689         (function_ann_t): Remove.
1690         (function_ann, get_function_ann, create_function_ann): Remove
1691         declarations.
1692
1693 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
1694
1695         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
1696
1697 2009-04-27  Jan Hubicka  <jh@suse.cz>
1698
1699         * ipa-pure-const.c (struct funct_state_d): New fields
1700         state_previously_known, looping_previously_known; remove
1701         state_set_in_source.
1702         (analyze_function): Use new fields.
1703         (propagate): Avoid assumption that state_set_in_source imply
1704         nonlooping.
1705
1706         * tree-ssa-loop-niter.c (finite_loop_p): New function.
1707         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
1708         * cfgloop.h (finite_loop_p): Declare.
1709
1710 2009-04-26  Michael Matz  <matz@suse.de>
1711
1712         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
1713
1714 2009-04-26  Michael Matz  <matz@suse.de>
1715
1716         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
1717         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
1718         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
1719         pass_mark_used_blocks): Remove.
1720         * tree-optimize.c (pass_free_datastructures,
1721         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
1722         * passes.c (init_optimization_passes): Don't call
1723         pass_mark_used_blocks, remove dead code.
1724
1725 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
1726
1727         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
1728         * tree-ssa-live.h (register_ssa_partition): Likewise.
1729
1730 2009-04-26  Michael Matz  <matz@suse.de>
1731
1732         Expand from SSA.
1733         * builtins.c (fold_builtin_next_arg): Handle SSA names.
1734         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
1735         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
1736         SSA names. 
1737         (compare_pairs): Swap cost comparison.
1738         (coalesce_ssa_name): Don't use change_partition_var.
1739         * tree-nrv.c (struct nrv_data): Add modified member.
1740         (finalize_nrv_r): Set it.
1741         (tree_nrv): Use it to update statements.
1742         (pass_nrv): Require PROP_ssa.
1743         * tree-mudflap.c (mf_decl_cache_locals,
1744         mf_build_check_statement_for): Use make_rename_temp.
1745         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
1746         * alias.c (find_base_decl): Handle SSA names.
1747         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
1748         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
1749         * rtl.h (set_reg_attrs_for_parm): Declare.
1750         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
1751         to "optimized", remove unused locals at finish.
1752         (execute_free_datastructures): Make global, call
1753         delete_tree_cfg_annotations.
1754         (execute_free_cfg_annotations): Don't call
1755         delete_tree_cfg_annotations.
1756
1757         * ssaexpand.h: New file.
1758         * expr.c (toplevel): Include ssaexpand.h.
1759         (expand_assignment): Handle SSA names the same as register variables.
1760         (expand_expr_real_1): Expand SSA names.
1761         * cfgexpand.c (toplevel): Include ssaexpand.h.
1762         (SA): New global variable.
1763         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
1764         (SSAVAR): New macro.
1765         (set_rtl): New helper function.
1766         (add_stack_var): Deal with SSA names, use set_rtl.
1767         (expand_one_stack_var_at): Likewise.
1768         (expand_one_stack_var): Deal with SSA names.
1769         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
1770         before unique numbers.
1771         (expand_stack_vars): Use set_rtl.
1772         (expand_one_var): Accept SSA names, add asserts for them, feed them
1773         to above subroutines.
1774         (expand_used_vars): Expand all partitions (without default defs),
1775         then only the local decls (ignoring those expanded already).
1776         (expand_gimple_cond): Remove edges when jumpif() expands an
1777         unconditional jump.
1778         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
1779         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
1780         SSA name.
1781         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
1782         members of SA; deal with PARM_DECL partitions here; expand
1783         all PHI nodes, free tree datastructures and SA.  Commit instructions
1784         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
1785         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
1786         info and statements at start, collect garbage at finish.
1787         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
1788         (VAR_ANN_PARTITION) Remove.
1789         (change_partition_var): Don't declare.
1790         (partition_to_var): Always return SSA names.
1791         (var_to_partition): Only accept SSA names.
1792         (register_ssa_partition): Only check argument.
1793         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
1794         member.
1795         (delete_var_map): Don't free it.
1796         (var_union): Only accept SSA names, simplify.
1797         (partition_view_init): Mark only useful SSA names as used.
1798         (partition_view_fini): Only deal with SSA names.
1799         (change_partition_var): Remove.
1800         (dump_var_map): Use ssa_name instead of partition_to_var member.
1801         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
1802         basic blocks.
1803         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
1804         (struct _elim_graph): New member const_dests; nodes member vector of
1805         ints.
1806         (set_location_for_edge): New static helper.
1807         (create_temp): Remove.
1808         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
1809         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
1810         (new_elim_graph): Allocate const_dests member.
1811         (clean_elim_graph): Truncate const_dests member.
1812         (delete_elim_graph): Free const_dests member.
1813         (elim_graph_size): Adapt to new type of nodes member.
1814         (elim_graph_add_node): Likewise.
1815         (eliminate_name): Likewise.
1816         (eliminate_build): Don't take basic block argument, deal only with
1817         partition numbers, not variables.
1818         (get_temp_reg): New static helper.
1819         (elim_create): Use it, deal with RTL temporaries instead of trees.
1820         (eliminate_phi): Adjust all calls to new signature.
1821         (assign_vars, replace_use_variable, replace_def_variable): Remove.
1822         (rewrite_trees): Only do checking.
1823         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
1824         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
1825         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
1826         contains_tree_r, MAX_STMTS_IN_LATCH,
1827         process_single_block_loop_latch, analyze_edges_for_bb,
1828         perform_edge_inserts): Remove.
1829         (expand_phi_nodes): New global function.
1830         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
1831         functions, initialize new parameter, remember partitions having a
1832         default def.
1833         (finish_out_of_ssa): New global function.
1834         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
1835         don't reset in_ssa_p here, don't disable TER when mudflap.
1836         (pass_del_ssa): Remove.
1837         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
1838         partition members.
1839         (execute_free_datastructures): Declare.
1840         * Makefile.in (SSAEXPAND_H): New variable.
1841         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
1842         * basic-block.h (commit_one_edge_insertion): Declare.
1843         * passes.c (init_optimization_passes): Move pass_nrv and
1844         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
1845         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
1846         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
1847         (redirect_branch_edge): Deal with super block when expanding, split
1848         out jump patching itself into ...
1849         (patch_jump_insn): ... here, new static helper.
1850
1851 2009-04-26  Michael Matz  <matz@suse.de>
1852
1853         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
1854         beyond num_ssa_names.
1855         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
1856         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
1857
1858 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1859
1860         PR inline-asm/39543
1861         * fwprop.c (forward_propagate_asm): New function.
1862         (forward_propagate_and_simplify): Propagate also into __asm, if it
1863         doesn't increase the number of referenced registers.
1864
1865         PR c/39889
1866         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
1867
1868 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
1869
1870         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
1871         note_nonlocal_vla_type for nonlocal VLAs.
1872         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
1873         contains_remapped_vars, remap_vla_decls): New functions.
1874         (convert_nonlocal_reference_stmt): If not optimizing, call
1875         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
1876         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
1877         if it wasn't found in var_map.
1878         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
1879         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
1880         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
1881         declare_vars.
1882         * gimplify.c (nonlocal_vlas): New variable.
1883         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
1884         referenced VLAs.
1885         (gimplify_body): Create and destroy nonlocal_vlas.
1886
1887         * dwarf2out.c (loc_descr_plus_const): New function.
1888         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
1889         mem_loc_descriptor, loc_descriptor_from_tree_1,
1890         descr_info_loc, gen_variable_die): Use it.
1891
1892         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
1893         !TREE_STATIC VAR_DECLs.
1894         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
1895         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
1896         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
1897         DECL_BY_REFERENCE is valid.
1898         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
1899         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
1900         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
1901         Copy DECL_BY_REFERENCE.
1902         (struct nesting_copy_body_data): New type.
1903         (nesting_copy_decl): New function.
1904         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
1905         if they have variable length.
1906
1907 2009-04-26  Michael Matz  <matz@suse.de>
1908
1909         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
1910         mark new temporaries for renaming.
1911
1912 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
1913
1914         PR c/39581
1915         * c-decl.c (global_bindings_p): Return negative value.
1916         (c_variable_size): New.  Based on variable_size from
1917         stor-layout.c.
1918         (grokdeclarator): Call c_variable_size not variable_size.
1919
1920 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
1921
1922         * config/i386/i386.c (print_operand) ['z']: Fix typo.
1923
1924 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
1925
1926         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
1927         Redefine it to just use mingw/include.
1928         (ASM_SPEC): Rules for -m32 and -m64.
1929         (LINK_SPEC): Use Likewise.
1930         (SPEC_32): New define.
1931         (SPEC_64): Likewise.
1932         (SUB_LINK_SPEC): Likewise.
1933         (MULTILIB_DEFAULTS): New define.
1934         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
1935         Add multilib options.
1936         (MULTILIB_DIRNAMES): Likewise.
1937         (MULTILIB_OSDIRNAMES): Likewise.
1938         (LIBGCC): Likewise.
1939         (INSTALL_LIBGCC): Likewise.
1940
1941 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
1942
1943         PR c/39556
1944         * c-tree.h (enum c_inline_static_type): New.
1945         (record_inline_static): Declare.
1946         * c-decl.c (struct c_inline_static, c_inline_statics,
1947         record_inline_static, check_inline_statics): New.
1948         (pop_file_scope): Call check_inline_statics.
1949         (start_decl): Call record_inline_static instead of pedwarning
1950         directly for static in inline function.
1951         * c-typeck.c (build_external_ref): Call record_inline_static
1952         instead of pedwarning directly for static referenced in inline
1953         function.
1954
1955 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
1956
1957         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
1958         not new but only being rescanned.
1959         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
1960         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
1961         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
1962         record_set_info, compute_set, grealloc): Remove.
1963         (recompute_all_luids): New function.
1964         (gcse_main): Don't compute sets, and don't do related memory
1965         allocations/free-ing.  If something changed before the end of the
1966         pass, update LUIDs using recompute_all_luids.
1967         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
1968         (free_gcse_mem): Don't free it either.
1969         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
1970         Use the df insn LUIDs.
1971         (load_killed_in_block): Likewise.
1972         (compute_hash_table_work): Don't compute reg_set_in_block.
1973         (compute_transp): Use DF_REG_DEF_CHAINs.
1974         (local_cprop_pass): Don't use compute_sets and related functions.
1975         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
1976         Use get_max_uid() instead of max_cuid.
1977         (insert_insn_end_basic_block, pre_insert_copy_insn,
1978         update_ld_motion_stores): Don't try to
1979         keep reg_set tables up to date.
1980         (pre_insert_copies): Use df insn LUIDs.
1981         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
1982         (reg_set_info): Don't use extra bitmap argument.
1983         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
1984         information to compute regs_set_in_block.
1985         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
1986         (bypass_jumps): Don't use compute_sets and friends.
1987
1988 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1989
1990         PR testsuite/39710
1991         * opts.c (undocumented_msg): Do not leave blank even with
1992         ENABLE_CHECKING.
1993
1994 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
1995
1996         * c-decl.c (build_enumerator): Allow values folding to integer
1997         constants but not integer constant expressions with a pedwarn if
1998         pedantic.
1999
2000 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
2001
2002         PR c/39582
2003         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
2004         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
2005         type is an integer constant.
2006
2007 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
2008
2009         PR target/39897
2010         * config/i386/i386.c (print_operand) ['z']: Revert handling of
2011         HImode operands.
2012
2013 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
2014
2015         PR c/39564
2016         * c-decl.c (grokdeclarator): Diagnose declarations of functions
2017         with variably modified return type and no storage class
2018         specifiers, except for the case of nested functions.  Distinguish
2019         extern declarations of functions with variably modified return
2020         types from those of objects with variably modified types.
2021
2022 2009-04-25  Jan Hubicka  <jh@suse.cz>
2023
2024         * tree.c (list_equal_p): New function.
2025         * tree.h (list_equal_p): Declare.
2026         * coretypes.h (edge_def, edge, const_edge, basic_block_def
2027         basic_block_def, basic_block, const_basic_block): New.
2028         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
2029         (redirect_eh_edge): New function.
2030         (make_eh_edge_update_phi): EH edges are not abnormal.
2031         * except.c: Include tree-flow.h.
2032         (list_match): New function.
2033         (eh_region_replaceable_by_p): New function.
2034         (replace_region): New function.
2035         (hash_type_list): New function.
2036         (hash_eh_region): New function.
2037         (eh_regions_equal_p): New function.
2038         (merge_peers): New function.
2039         (remove_unreachable_regions): Verify EH tree when checking;
2040         merge peers.
2041         (copy_eh_region_1): New function.
2042         (copy_eh_region): New function.
2043         (push_reachable_handler): New function.
2044         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
2045         regions without label but with live RESX.
2046         * except.h (redirect_eh_edge_to_label): New.
2047         * tree-flow.h (redirect_eh_edge): New.
2048         * coretypes.h (edge_def, edge, const_edge, basic_block_def
2049         basic_block_def, basic_block, const_basic_block): Remove.
2050         * Makefile.in (except.o): Add dependency on tree-flow.h
2051         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
2052         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
2053         Remove.
2054
2055 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
2056
2057         PR bootstrap/39645
2058         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
2059         on the destination of memcpy.
2060
2061 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
2062
2063         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
2064         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
2065         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
2066
2067 2009-04-25  Jan Hubicka  <jh@suse.cz>
2068
2069         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
2070         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
2071         to be reached by different label than left.
2072         (update_eh_edges): Update comment; remove edge_to_remove if possible
2073         and return true if suceeded.
2074         (cleanup_empty_eh): Accept sharing map; handle shared regions.
2075         (cleanup_eh): Compute sharing map.
2076         * except.c (remove_eh_handler_and_replace): Add argument if we should
2077         update regions.
2078         (remove_unreachable_regions): Update for label sharing.
2079         (label_to_region_map): Likewise.
2080         (get_next_region_sharing_label): New function.
2081         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
2082         prev_try pointers.
2083         (remove_eh_handler): Update.
2084         (remove_eh_region_and_replace_by_outer_of): New function.
2085         * except.h (struct eh_region): Add next_region_sharing_label.
2086         (remove_eh_region_and_replace_by_outer_of,
2087         get_next_region_sharing_label): Declare.
2088         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
2089
2090 2009-04-25  Jan Hubicka  <jh@suse.cz>
2091
2092         * tree-cfg.c (split_critical_edges): Split also edges where we can't
2093         insert code even if they are not critical.
2094
2095 2009-04-25  Jan Hubicka  <jh@suse.cz>
2096
2097         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
2098         (gimple_can_remove_branch_p): EH edges won't remove branch by
2099         redirection.
2100         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
2101         updating of non-abnormal EH edges.
2102         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
2103         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
2104         (split_critical_edges): Split also edges where emitting code on them
2105         will lead to splitting later.
2106
2107 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
2108             H.J. Lu  <hongjiu.lu@intel.com>
2109
2110         PR target/39590
2111         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
2112         the configured assembler supports fildq and fistpq mnemonics.
2113         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
2114         * configure: Regenerated.
2115         * config.in: Ditto.
2116
2117         * config/i386/i386.c (print_operand): Handle 'Z'.
2118         ['z']: Remove handling of special fild/fist suffixes.
2119         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
2120         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
2121         suffix of fild insn.
2122         (*floatsi<mode>2_vector_mixed): Ditto.
2123         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
2124         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
2125         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2126         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
2127         * config/i386/gas.h (GAS_MNEMONICS): Remove.
2128
2129 2009-04-25  Ben Elliston  <bje@au.ibm.com>
2130  
2131         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
2132         the source of a set operation.
2133
2134 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
2135
2136         * target.h (struct gcc_target): Add case_values_threshold field.
2137         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
2138         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
2139         * targhooks.c (default_case_values_threshold): New function.
2140         * targhooks.h (default_case_values_threshold): Declare function.
2141         * stmt.c (expand_case): Use case_values_threshold target hook.
2142         * expr.h (case_values_threshold): Remove declartation.
2143         * expr.c (case_values_threshold): Remove function.
2144         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
2145
2146         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
2147         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2148         (avr_case_values_threshold): Declare as static.
2149         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
2150
2151         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
2152         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2153         (mn10300_case_values_threshold): New function.
2154
2155 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
2156
2157         * ira.c (setup_cover_and_important_classes): Add enum cast.
2158
2159 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2160
2161         * genpreds.c (write_enum_constraint_num): Output definition of
2162         CONSTRAINT_NUM_DEFINED_P macro.
2163         * ira.c (setup_cover_and_important_classes): Use
2164         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
2165         
2166 2009-04-24  DJ Delorie  <dj@redhat.com>
2167
2168         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
2169         __SH2A_SINGLE_ONLY__ also.
2170
2171 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
2172
2173         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
2174         (movdf_internal): Ditto.
2175         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
2176         SFmode and DFmode constants.
2177         (ia64_print_operand): Add 'G' format for printing
2178         floating point constants.
2179
2180 2009-04-24  Richard Guenther  <rguenther@suse.de>
2181
2182         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
2183         from unsigned additions.
2184
2185 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
2186
2187         * c-typeck.c (set_init_index): Allow array designators that are
2188         not integer constant expressions with a pedwarn if pedantic.
2189
2190 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2191
2192         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
2193         zero if no overlap in nonzero bits between the operands.
2194
2195 2009-04-24  Ian Lance Taylor  <iant@google.com>
2196
2197         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
2198         (record_dead_and_set_regs): Likewise.
2199         * df.h (struct df_mw_hardreg): Change flags field to int.
2200         (struct df_base_ref): Likewise.
2201         (struct df): Change changeable_flags field to int.
2202         * df-scan.c (df_defs_record): Change clobber_flags to int.
2203         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
2204         constants rather than #define macros.
2205         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
2206         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
2207         (enum dwarf_calling_convention): Likewise.
2208         (enum dwarf_line_number_x_ops): Likewise.
2209         (enum dwarf_call_frame_info): Likewise.
2210         (enum dwarf_source_language): Likewise.
2211         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
2212         (add_calling_convention_attribute): Likewise.
2213         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
2214         (combine_comparisons): Change compcode to int.  Add cast to enum type.
2215         * genrecog.c (maybe_both_true_2): Change c to int.
2216         (write_switch): Likewise.  Add cast to enum type.
2217         * gimplify.c (gimplify_omp_for): Handle return values from
2218         gimplify_expr using MIN rather than bitwise or.
2219         (gimplify_expr): Add cast to enum type.
2220         * ipa-prop.c (update_jump_functions_after_inlining): Change
2221         IPA_BOTTOM to IPA_JF_UNKNOWN.
2222         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
2223         Add casts to enum type.
2224         (setup_cover_and_important_classes): Change cl to int.  Add casts
2225         to enum type.
2226         (setup_class_translate): Change cl and mode to int.
2227         (ira_init_once): Change mode to int.
2228         (free_register_move_costs): Likewise.
2229         (setup_prohibited_mode_move_regs): Add casts to enum type.
2230         * langhooks.c (add_builtin_function_common): Rework assertion that
2231         value fits bitfield.
2232         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
2233         * omega.c (omega_do_elimination): Avoid math on enum types.
2234         * optabs.c (expand_vec_shift_expr): Remove casts to int.
2235         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
2236         int local to handle integral_argment value.
2237         * regmove.c (try_auto_increment): Change PUT_MODE to
2238         PUT_REG_NOTE_KIND.
2239         * reload.c (push_secondary_reload): Add casts to enum type.
2240         (secondary_reload_class, find_valid_class): Likewise.
2241         * reload1.c (emit_input_reload_insns): Likewise.
2242         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
2243         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
2244         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
2245         constant.
2246         * tree.c (build_common_builtin_nodes): Add casts to enum type.
2247         * tree-complex.c (complex_lattice_t): Typedef to int rather than
2248         enum type.
2249         (expand_complex_libcall): Add casts to enum type.
2250         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
2251         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
2252         with ERROR_MARK, not NUM_TREE_CODES.
2253         (vect_create_epilog_for_reduction): Likewise.
2254         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
2255         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
2256         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
2257         enum machine_mode.
2258         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
2259         vect_unused_in_loop.  Change 0 to loop_vect.
2260         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
2261         * var-tracking.c (get_init_value): Change return type to enum
2262         var_init_status.
2263         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
2264         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
2265         arm_fp_model.
2266         (arm_override_options): Add casts to enum type.
2267         (arm_emit_tls_decoration): Likewise.
2268         * config/i386/i386.c (ix86_function_specific_restore): Add casts
2269         to enum type.
2270         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
2271         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
2272         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
2273         enum type.
2274         * config/s390/s390.c (code_for_builtin_64): Change to array of
2275         enum insn_code.
2276         (code_for_builtin_31): Likewise.
2277         (s390_expand_builtin): Change code_for_builtin to enum insn_code
2278         const *.
2279         * config/sparc/sparc.c (sparc_override_options): Change value
2280         field in struct code_model to enum cmodel.  In initializer change
2281         0 to NULL and add cast to enum type.
2282
2283         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
2284         Change all callers.  Issue a -Wc++-compat warning using
2285         lhs_origtype if necessary.
2286         (convert_for_assignment): Issue -Wc++-compat warnings about
2287         invalid conversions to enum type on assignment.
2288         * c-common.h (build_modify_expr): Update declaration.
2289
2290 2009-04-24  Nick Clifton  <nickc@redhat.com>
2291
2292         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
2293         (function_arg_advance): Likewise.
2294         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
2295         5th alternative.
2296
2297 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2298
2299         * config/s390/constraints.md ('I', 'J'): Fix condition.
2300
2301 2009-04-24  Diego Novillo  <dnovillo@google.com>
2302
2303         * gengtype-parse.c (parse_error): Add newline after message.
2304
2305 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
2306
2307         * config/i386/sse.md (avxmodesuffixs): Removed.
2308         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
2309         (*avx_pinsr<ssevecsize>): This.
2310
2311 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2312
2313         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
2314         follow chains of regs with a single definition, and allow expressions
2315         that are function_invariant_p.
2316         (simple_rhs_p): Allow expressions that are function_invariant_p.
2317
2318 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
2319
2320         PR middle-end/39867
2321         * fold-const.c (fold_cond_expr_with_comparison): When folding
2322         > and >= to MAX, make sure the MAX uses the same type as the
2323         comparison's operands.
2324
2325 2009-04-24  Nick Clifton  <nickc@redhat.com>
2326
2327         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
2328         addressing for DImode accesses.
2329         (frv_print_operand_address): Handle PLUS case.
2330         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
2331
2332 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
2333
2334         PR rtl-optimization/39794
2335         * alias.c (canon_true_dependence): Add x_addr argument.
2336         * rtl.h (canon_true_dependence): Adjust prototype.
2337         * cse.c (check_dependence): Adjust canon_true_dependence callers.
2338         * cselib.c (cselib_invalidate_mem): Likewise.
2339         * gcse.c (compute_transp): Likewise.
2340         * dse.c (scan_reads_nospill): Likewise.
2341         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
2342         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
2343         canon_base_addr of the group, plus optional offset.
2344         (struct group_info): Rename canon_base_mem to
2345         canon_base_addr.
2346         (get_group_info): Set canon_base_addr to canon_rtx of base, not
2347         canon_rtx of base_mem.
2348
2349 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
2350
2351         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
2352         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
2353
2354 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2355
2356         * config/spu/spu-builtins.h: Delete file.
2357
2358         * config/spu/spu.h (enum spu_builtin_type): Move here from
2359         spu-builtins.h.
2360         (struct spu_builtin_description): Likewise.  Add GTY marker.
2361         Do not use enum spu_function_code or enum insn_code.
2362         (spu_builtins): Add extern declaration.
2363
2364         * config/spu/spu.c: Do not include "spu-builtins.h".
2365         (enum spu_function_code, enum spu_builtin_type_index,
2366         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
2367         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
2368         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
2369         unsigned_V2DI_type_node): Move here from spu-builtins.h.
2370         (spu_builtin_types): Make static.  Add GTY marker.
2371         (spu_builtins): Add extern declaration with GTY marker.
2372         Include "gt-spu.h".
2373
2374         * config/spu/spu-c.c: Do not include "spu-builtins.h".
2375         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
2376         Check programmatically whether all parameters are scalar.
2377
2378         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
2379
2380 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
2381
2382         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
2383         assignment from the constructor either if the target is volatile.
2384
2385 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
2386
2387         * config/arm/arm.md (insv): Do not share operands[0].
2388
2389 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
2390
2391         * config/vxlib-tls.c (active_tls_threads): Delete.
2392         (delete_hook_installed): New.
2393         (tls_delete_hook): Don't delete the delete hook.
2394         (tls_destructor): Delete it here.
2395         (__gthread_set_specific): Adjust installing the delete hook.
2396         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
2397         __gthread_leave_tsd_dtor_context.
2398
2399 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
2400
2401         * c-format.c (gcc_tdiag_char_table): Add support for %E.
2402
2403 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
2404
2405         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
2406         enum type.
2407         (alpha_rtx_costs): Ditto.
2408         (emit_unlikely_jump): Use add_reg_note.
2409         (emit_frame_store_1): Ditto.
2410         (alpha_expand_prologue): Ditto.
2411         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
2412         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
2413
2414 2009-04-23  Nick Clifton  <nickc@redhat.com>
2415
2416         * config/v850/v850.md (epilogue): Remove suppressed code.
2417         (return): Rename to return_simple and remove test of frame size.
2418         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
2419         to gen_return_simple.
2420
2421 2009-04-22  Jing Yu  <jingyu@google.com>
2422
2423         PR testsuite/39781
2424         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
2425
2426 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2427
2428         PR C/31499
2429         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
2430         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
2431         value is a VECTOR_CST, the element type is the element type of the
2432         vector.
2433
2434 2009-04-22  DJ Delorie  <dj@redhat.com>
2435
2436         * config/m32c/m32c.h: Update GTY annotations to new syntax.
2437
2438 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
2439
2440         * alias.c (find_base_term): Move around LO_SUM case, so that
2441         CONST falls through into PLUS/MINUS handling.
2442
2443         PR c/39855
2444         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
2445         into 0, use omit_one_operand.
2446
2447 2009-04-23  Ben Elliston  <bje@au.ibm.com>
2448
2449         * config/rs6000/linux-unwind.h (get_regs): Remove type
2450         puns. Change the type of `pc' to an array of unsigned ints and
2451         update all users.  Constify frame24.
2452
2453 2009-04-22  DJ Delorie  <dj@redhat.com>
2454
2455         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
2456         declarations before code.
2457         (current_function_special_page_vector): Likewise.
2458         (m32c_expand_insv): Silence a warning.
2459
2460 2009-04-21  Taras Glek  <tglek@mozilla.com>
2461
2462         * alias.c: Update GTY annotations to new syntax.
2463         * basic-block.h: Likewise.
2464         * bitmap.h: Likewise.
2465         * c-common.h: Likewise.
2466         * c-decl.c: Likewise.
2467         * c-parser.c: Likewise.
2468         * c-pragma.c: Likewise.
2469         * c-tree.h: Likewise.
2470         * cfgloop.h: Likewise.
2471         * cgraph.h: Likewise.
2472         * config/alpha/alpha.c: Likewise.
2473         * config/arm/arm.h: Likewise.
2474         * config/avr/avr.h: Likewise.
2475         * config/bfin/bfin.c: Likewise.
2476         * config/cris/cris.c: Likewise.
2477         * config/darwin.c: Likewise.
2478         * config/frv/frv.c: Likewise.
2479         * config/i386/i386.c: Likewise.
2480         * config/i386/i386.h: Likewise.
2481         * config/i386/winnt.c: Likewise.
2482         * config/ia64/ia64.h: Likewise.
2483         * config/iq2000/iq2000.c: Likewise.
2484         * config/mips/mips.c: Likewise.
2485         * config/mmix/mmix.h: Likewise.
2486         * config/pa/pa.c: Likewise.
2487         * config/pa/pa.h: Likewise.
2488         * config/rs6000/rs6000.c: Likewise.
2489         * config/s390/s390.c: Likewise.
2490         * config/sparc/sparc.c: Likewise.
2491         * config/xtensa/xtensa.c: Likewise.
2492         * cselib.h: Likewise.
2493         * dbxout.c: Likewise.
2494         * dwarf2out.c: Likewise.
2495         * except.c: Likewise.
2496         * except.h: Likewise.
2497         * fixed-value.h: Likewise.
2498         * function.c: Likewise.
2499         * function.h: Likewise.
2500         * gimple.h: Likewise.
2501         * integrate.c: Likewise.
2502         * optabs.c: Likewise.
2503         * output.h: Likewise.
2504         * real.h: Likewise.
2505         * rtl.h: Likewise.
2506         * stringpool.c: Likewise.
2507         * tree-data-ref.c: Likewise.
2508         * tree-flow.h: Likewise.
2509         * tree-scalar-evolution.c: Likewise.
2510         * tree-ssa-address.c: Likewise.
2511         * tree-ssa-alias.h: Likewise.
2512         * tree-ssa-operands.h: Likewise.
2513         * tree.c: Likewise.
2514         * tree.h: Likewise.
2515         * varasm.c: Likewise.
2516         * varray.h: Likewise.
2517         * vec.h: Likewise.
2518         * coretypes.h: Do not define GTY macro if it is already defined.
2519         * doc/gty.texi: Update GTY documentation to new syntax.
2520         * gengtype-lex.l: Enforce attribute-like syntax for GTY
2521         annotations on structs.
2522         * gengtype-parse.c: Likewise.
2523
2524 2009-04-22  Mark Heffernan  <meheff@google.com>
2525
2526         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
2527
2528 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
2529
2530         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
2531         where appropriate.
2532
2533 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
2534
2535         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
2536         the same as a PLUS without a shift.  Increase the cost of a
2537         CONST_INT in MULT.
2538
2539 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2540
2541         * Makefile.in: Update dependencies.
2542         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
2543         * errors.h: Remove bogus comment about compatibility.
2544         (warning): Update declaration.
2545         * genautomata.c: Update all calls to warning.
2546         * gimple.c: Do not include errors.h. Include toplev.h.
2547         * tree-ssa-structalias.c: Do not include errors.h.
2548         * omega.c: Likewise.
2549         * tree-ssa-reassoc.c: Likewise.
2550         * config/spu/spu-c.c: Likewise.
2551         * config/spu/t-spu-elf: Update dependencies.
2552
2553 2009-04-22  Richard Guenther  <rguenther@suse.de>
2554
2555         PR tree-optimization/39824
2556         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
2557         make sure the types are compatible.
2558
2559 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2560
2561         PR c++/14875
2562         * c-common.c (c_parse_error): Take a token_flags parameter.
2563         Use token_type for the token type instead.
2564         Pass token_flags to cpp_type2name.
2565         * c-common.h (c_parse_error): Update declaration.
2566         * c-parser.c (c_parser_error): Pass 0 as token flags.
2567
2568 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
2569
2570         PR rtl-optimization/39580
2571         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
2572         
2573 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2574
2575         * function.c (expand_function_end): Do not emit a jump to the "naked"
2576         return label for fall-through returns.
2577         * except.c (sjlj_emit_function_exit): Always place the call to the
2578         unregister function at the location installed by expand_function_end.
2579
2580 2009-04-22  Richard Guenther  <rguenther@suse.de>
2581
2582         PR tree-optimization/39845
2583         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
2584         (gen_inbound_check): Likewise.
2585
2586 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
2587
2588         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
2589         padding for PPC.
2590         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
2591         * config/vxlib.c (__gthread_once): Add race guard for PPC.
2592
2593 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2594
2595         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
2596         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
2597         shift counts to avoid out-of-bounds array accesses.
2598
2599 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2600
2601         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
2602         (Pmode): Move above.
2603
2604 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
2605
2606         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
2607         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
2608         GET_CODE macro.  Use IN_RANGE macro where appropriate.
2609         * config/alpha/alpha.h: Ditto.
2610         * config/alpha/alpha.md: Ditto.
2611         * config/alpha/constraints.md: Ditto.
2612         * config/alpha/predicates.md: Ditto.
2613         
2614 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
2615
2616         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
2617         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2618         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2619         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2620         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2621         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2622         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2623         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2624         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2625         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2626         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2627         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2628         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2629         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2630         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2631         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2632         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2633         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2634         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2635         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2636         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2637         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2638         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2639         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2640         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2641         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2642         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
2643
2644 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2645
2646         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
2647         references from comments.
2648         * cfgbuild.c: (count_basic_blocks): Delete.
2649         (find_basic_blocks_1): Delete.
2650         (find_basic_blocks): Delete.
2651         * except.c (finish_eh_generation): Make static.  Move comment from
2652         except.h here.  Remove find_basic_blocks references from comments.
2653         * except.h (finish_eh_generation): Delete.
2654         * basic-block.h (find_basic_blocks): Delete.
2655         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
2656
2657 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
2658
2659         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
2660         (sdbout_parms):  Likewise.
2661
2662 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
2663
2664         * config/sh/sh.c (prepare_cbranch_operands): Use
2665         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
2666         (expand_cbranchdi4): Likewise.
2667         (from_compare): Add cast to enum type.
2668         (expand_cbranchsi4): Use add_reg_note.
2669         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
2670         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
2671         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
2672         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
2673         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
2674         instead of CODE_FOR_nothing.
2675         (cbranchdi4): Likewise.  Fix the order of arguments for
2676         gen_rtx_fmt_ee.
2677         (push_fpscr): Use add_reg_note.
2678         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
2679         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
2680         
2681 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
2682
2683         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
2684         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
2685         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
2686         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
2687         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
2688         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
2689         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
2690         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
2691         config/alpha/x-vms, config/arc/t-arc,
2692         config/arm/README-interworking, config/arm/arm-c.c,
2693         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
2694         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
2695         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
2696         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
2697         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
2698         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
2699         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
2700         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
2701         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
2702         config/cris/t-elfmulti, config/crx/t-crx,
2703         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
2704         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
2705         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
2706         config/h8300/t-h8300, config/i386/athlon.md,
2707         config/i386/darwin-libgcc.10.4.ver,
2708         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
2709         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
2710         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
2711         config/i386/t-linux64, config/i386/t-nwld,
2712         config/i386/t-rtems-i386, config/i386/t-sol2-10,
2713         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
2714         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
2715         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
2716         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
2717         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
2718         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
2719         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
2720         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
2721         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
2722         config/m68k/t-uclinux, config/mcore/t-mcore,
2723         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
2724         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
2725         config/mips/crtn.asm, config/mips/irix-crti.asm,
2726         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
2727         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
2728         config/mips/mips-fixed.md, config/mips/sb1.md,
2729         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
2730         config/mips/t-iris6, config/mips/t-isa3264,
2731         config/mips/t-libgcc-mips16, config/mips/t-linux64,
2732         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
2733         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
2734         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
2735         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
2736         config/mn10300/t-linux, config/mn10300/t-mn10300,
2737         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
2738         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
2739         config/picochip/libgccExtras/clzsi2.asm,
2740         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
2741         config/rs6000/darwin-libgcc.10.4.ver,
2742         config/rs6000/darwin-libgcc.10.5.ver,
2743         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
2744         config/rs6000/t-aix43, config/rs6000/t-aix52,
2745         config/rs6000/t-darwin, config/rs6000/t-fprules,
2746         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
2747         config/rs6000/t-lynx, config/rs6000/t-netbsd,
2748         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
2749         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
2750         config/rs6000/t-rtems, config/rs6000/t-spe,
2751         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
2752         config/score/t-score-elf, config/sh/divcost-analysis,
2753         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
2754         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
2755         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
2756         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
2757         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
2758         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
2759         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
2760         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
2761         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
2762         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
2763         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
2764         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
2765         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
2766         limitx.h, version.c, xcoff.h: Add copyright and license notices.
2767         * config/h8300/genmova.sh: Include copyright and license notices
2768         in generated output.
2769         * config/h8300/mova.md: Regenerate.
2770         * doc/install.texi2html: Include word "Copyright" in copyright
2771         notice and use name "Free Software Foundation, Inc.".
2772         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
2773         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
2774         ChangeLog-2007, ChangeLog-2008: Correct dates.
2775
2776 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
2777
2778         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
2779         NE_EXPR operations as well.
2780         * c-parser.c (c_parser_condition): Do not set location information on
2781         the condition.
2782         (c_parser_conditional_expression): Likewise.
2783         (c_parser_binary_expression): Set location information on operators.
2784         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
2785         TRUTH_NOT_EXPR has been folded.
2786         * fold-const.c (fold_truth_not_expr): Copy location information from
2787         the incoming expression to the outgoing one.
2788         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
2789         recursive calls on the LHS of the operator but pass that of the
2790         operator to recursive calls on the RHS of the operator.  Set it
2791         on the COND_EXPR.
2792         (shortcut_cond_expr): Set the locus of the operator on the second
2793         COND_EXPR and that of the expression on the first in degenerate cases.
2794         Pass the locus of the expression to calls to shortcut_cond_r.
2795         Set the locus of the 'then' block on the associated jump, if any.
2796         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
2797         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
2798         expression to call to gimplify_boolean_expr.
2799
2800 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
2801
2802         * config.gcc: Add additional configuration for
2803         i686-w64-mingw* and x86_64-w64-mingw* triplet.
2804         * config/i386/mingw-w64.h: New mingw-w64 specific header.
2805         (CPP_SPEC): Redefine for allowing -municode option.
2806         (STARTFILE_SPEC): Likewise.
2807         * config/i386/t-mingw-w64: New.
2808         * config/i386/mingw-w64.opt: New.
2809         (municode): Add new target option.
2810         * doc/invoke.texi (municode): Add documentation for new option.
2811
2812 2009-04-21  Ian Lance Taylor  <iant@google.com>
2813
2814         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2815         Correct test for number of arguments.
2816         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2817
2818 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
2819
2820         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
2821         argument of emit_library_call.
2822
2823 2009-04-21  Richard Guenther  <rguenther@suse.de>
2824
2825         PR middle-end/39829
2826         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
2827         inside VIEW_CONVERT_EXPRs.
2828
2829 2009-04-21  Martin Jambor  <mjambor@suse.cz>
2830
2831         * tree-switch-conversion.c (build_constructors): Split a long line.
2832         (constructor_contains_same_values_p): New function.
2833         (build_one_array): Create assigns of constants if possible, do not
2834         call mark_sym_for_renaming, call update_stmt.
2835         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
2836         make_rename_temp.  Do not call mark_symbols_for_renaming, call
2837         update_stmt.
2838         (gen_def_assigns): Do not call mark_symbols_for_renaming or
2839         find_new_referenced_vars, call update_stmt.
2840         (gen_inbound_check): Use create_tmp_var and create ssa names manually
2841         instead of calling make_rename_temp.  Do not call
2842         find_new_referenced_vars or mark_symbols_for_renaming, call
2843         update_stmt.
2844
2845 2009-04-21  Richard Guenther  <rguenther@suse.de>
2846
2847         PR tree-optimization/39827
2848         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2849         (tree_ssa_phiprop): Pass the correct array size.
2850
2851 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
2852
2853         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
2854
2855 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2856
2857         PR 16202
2858         * c-typeck.c (lvalue_p): Move declaration ...
2859         * c-common.h (lvalue_p): ... to here.
2860         * c-common.c (candidate_equal_p): New.
2861         (add_tlist): Use it.
2862         (merge_tlist): Use it.
2863         (warn_for_collisions_1): Likewise.
2864         (warning_candidate_p): Accept more candidates.
2865         (verify_tree): A warning candidate can be an expression. Use
2866         candidate_equal_p.
2867
2868 2009-04-21  Ben Elliston  <bje@au.ibm.com>
2869
2870         PR target/5267
2871         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
2872         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
2873         options.  Remove -mcall-solaris documentation.
2874
2875 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2876
2877         PR c++/13358
2878         * doc/invoke.texi (-Wlong-long): Update description.
2879         * c-lex (interpret_integer): Only warn if there was no previous
2880         overflow and -Wlong-long is enabled.
2881         * c-decl.c (declspecs_add_type): Drop redundant flags.
2882         * c.opt (Wlong-long): Init to -1.
2883         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
2884         and front-end warn_long_long. Wlong-long only depends on other
2885         flags if it is uninitialized.
2886         * c-parser.c (disable_extension_diagnostics): warn_long_long is
2887         the same for CPP and FE.
2888         (restore_extension_diagnostics): Likewise.
2889
2890 2009-04-20  Ian Lance Taylor  <iant@google.com>
2891
2892         Fix enum conversions which are invalid in C++:
2893         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
2894         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
2895         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
2896         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
2897         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
2898         (dbxout_parms): Likewise.
2899         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
2900         (df_clear_flags): Likewise.
2901         * df-problems.c (df_rd_bb_local_compute_process_def): Change
2902         top_flag parameter to int.
2903         (df_chain_create_bb_process_use): Likewise.
2904         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
2905         Remove cast.
2906         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
2907         (df_ref_create_structure, df_def_record_1): Likewise.
2908         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
2909         (df_notes_rescan): Change 0 to VOIDmode in function call.
2910         (df_get_call_refs, df_insn_refs_collect): Likewise.
2911         (df_bb_regs_collect): Likewise.
2912         (df_entry_block_defs_collect): Likewise.
2913         (df_exit_block_uses_collect): Likewise.
2914         * df.h: Update declarations.
2915         * double-int.c (double_int_divmod): Add cast to enum type.
2916         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
2917         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
2918         (based_loc_descr): Likewise.
2919         (loc_descriptor_from_tree_1): Change first_op and second_op to
2920         enum dwarf_location_atom.  Add cast to enum type.
2921         * expmed.c (init_expmed): Change 0 to SET in function call.
2922         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
2923         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
2924         (do_store_flag): Likewise.
2925         * fixed-value.h (struct fixed_value): Change mode to enum
2926         machine_mode.
2927         * function.c (assign_parms): Change 0 to VOIDmode in function call.
2928         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
2929         function call.
2930         (insert_insn_decl, insert_decl, insert_state): Likewise.
2931         (automata_list_finish): Likewise.
2932         * genrecog.c (process_define_predicate): Add cast to enum type.
2933         * gensupport.c (init_predicate_table): Add cast to enum type.
2934         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
2935         function call.
2936         (gimple_build_call_1, gimple_build_label): Likewise.
2937         (gimple_build_goto, gimple_build_asm_1): Likewise.
2938         (gimple_build_switch_1, gimple_build_cdt): Likewise.
2939         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
2940         (enum fallback): Rename from enum fallback_t.
2941         (fallback_t): Typedef as int.
2942         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
2943         GSI_SAME_STMT in function call.
2944         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
2945         enum type.
2946         (setup_reg_class_relations): Likewise.
2947         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
2948         (setup_prohibited_class_mode_regs): Add cast to enum type.
2949         (setup_prohibited_mode_move_regs): Likewise.
2950         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
2951         (record_address_regs): Change i to enum reg_class.
2952         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
2953         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
2954         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
2955         (GET_MODE_2XWIDER_MODE): Likewise.
2956         (GET_CLASS_NARROWEST_MODE): Likewise.
2957         * omp-low.c (expand_omp_for): Add cast to enum type.
2958         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
2959         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
2960         * postreload.c (reload_cse_simplify_operands): Change rclass local
2961         to enum reg_class.
2962         * predict.c (combine_predictions_for_insn): Change best_predictor
2963         and predictor to enum br_predictor.
2964         (combine_predictions_for_bb): Likewise.
2965         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
2966         use SET_PREDICT_EXPR_OUTCOME.
2967         * real.c (real_arithmetic): Change icode to code in function call.
2968         * reginfo.c (init_move_cost): Add casts to enum type.
2969         (init_reg_sets_1, init_fake_stack_mems): Likewise.
2970         * regmove.c (regclass_compatible_p): Change class0 and class1 to
2971         enum reg_class.
2972         * reload.c (find_valid_class): Add casts to enum type.
2973         (push_reload): Change 0 to NO_REGS in function call.
2974         (find_reloads): Change this_alternative to array of enum
2975         reg_class.  Remove some now-unnecessary casts.
2976         (make_memloc): Change 0 to VOIDmode in function call.
2977         * reload1.c (reload): Change 0 to VOIDmode in function call.
2978         (eliminate_regs_1, elimination_effects): Likewise.
2979         (eliminate_regs_in_insn): Likewise.
2980         (emit_input_reload_insns): Add cast to enum type.
2981         (delete_output_reload): Change 0 to VOIDmode in function call.
2982         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
2983         to enum type in function call.
2984         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
2985         (SET_PREDICT_EXPR_OUTCOME): Define.
2986         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
2987         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
2988         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
2989         (dump_function): Likewise.
2990         * tree-dump.h: Update declarations.
2991         * tree-pass.h: Update declarations.
2992         * varasm.c (assemble_integer): Change mclass to enum mode_class.
2993         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
2994         enum type.
2995         (arm_rtx_costs_1): Correct parenthesization.
2996         (arm_rtx_costs): Add casts to enum type.
2997         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
2998         (vfp_emit_fstmd): Use add_rg_note.
2999         (emit_multi_reg_push, emit_sfm): Likewise.
3000         (thumb_set_frame_pointer): Likewise.
3001         (arm_expand_prologue): Likewise.
3002         (arm_regno_class): Change return type to enum reg_class.
3003         (thumb1_expand_prologue): Use add_reg_note.
3004         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
3005         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
3006         in function call.
3007         * config/arm/gentune.sh: Add cast to enum type.
3008         * config/arm/arm-tune.md: Rebuild.
3009         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
3010         (ix86_split_fp_branch, predict_jump): Likewise.
3011         (ix86_expand_multi_arg_builtin): Change sub_code from enum
3012         insn_code to enum rtx_code.
3013         (ix86_builtin_vectorized_function): Add cast to enum type.
3014         * config/i386/i386.md (truncdfsf2): Change slot to enum
3015         ix86_stack_slot.
3016         (truncxf<mode>2, isinf<mode>2): Likewise.
3017         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
3018         enum type.
3019         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
3020         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
3021         (insert_bundle_state): Change 1 to INSERT in function call.
3022         (ia64_add_bundle_selector_before): Likewise.
3023         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
3024         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
3025         (restore_stack_nonlocal): Likewise.
3026         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
3027         function call.
3028         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
3029         function call.
3030         (mips_rtx_costs): Likewise.
3031         (mips_override_options): Add casts to enum type.
3032         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
3033         in function call.
3034         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
3035         (store_reg, set_reg_plus_d): Likewise.
3036         (hppa_expand_prologue, hppa_profile_hook): Likewise.
3037         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3038         cast to enum type.
3039         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
3040         function call.
3041         (emit_unlikely_jump): Use add_reg_note.
3042         (rs6000_emit_allocate_stack): Likewise.
3043         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
3044         (output_toc): Change 1 to INSERT in function call.
3045         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
3046         (rs6000_initialize_trampoline): Likewise.
3047         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
3048         function call.
3049         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
3050         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
3051         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
3052         (save_gprs): Use add_reg_note.
3053         (s390_emit_prologue): Likewise.
3054         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
3055         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
3056         (sparc_fold_builtin): Add cast to enum type.
3057         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
3058         enum insn_code.
3059         (spu_expand_prologue): Use add_reg_note.
3060         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
3061
3062 2009-04-20  Ian Lance Taylor  <iant@google.com>
3063
3064         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
3065         (c_parser_postfix_expression_after_primary): Get VEC for list of
3066         arguments.  Get original types of arguments.  Call
3067         build_function_call_vec.
3068         (cached_expr_list_1, cached_expr_list_2): New static variables.
3069         (c_parser_expr_list): Change return type to VEC *.  Add
3070         p_orig_types parameter.  Change all callers.
3071         (c_parser_release_expr): New static function.
3072         (c_parser_vec_to_tree_list): New static function.
3073         * c-typeck.c (build_function_call): Rewrite to build a VEC and
3074         call build_function_call_vec.
3075         (build_function_call_vec): New function, based on old
3076         build_function_call.
3077         (convert_arguments): Remove nargs and argarray parameters.  Change
3078         values to a VEC.  Add origtypes parameter.
3079         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
3080         (convert_for_assignment): Add origtype parameter.  Change all
3081         callers.  If warn_cxx_compat, check for conversion to an enum
3082         type when calling a function.
3083         (store_init_value): Add origtype parameter.  Change all callers.
3084         (digest_init): Likewise.
3085         (struct init_node): Add origtype field.
3086         (add_pending_init): Add origtype parameter.  Change all callers.
3087         (output_init_element): Likewise.
3088         (output_pending_init_elements): Pass origtype from init_node to
3089         output_init_element.
3090         (process_init_element): Pass origtype from c_expr to
3091         output_init_element.
3092         (c_finish_return): Add origtype parameter.  Change all callers.
3093         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
3094         caller.
3095         (sync_resolve_params): Likewise.
3096         (sync_resolve_return): Change params to first_param.  Change caller.
3097         (resolve_overloaded_builtins): Change params to VEC *.  Change
3098         callers.  Save first parameter around call to build_function_call_vec.
3099         * c-decl.c (finish_decl): Add origtype parameter.  Change all
3100         callers.  Call build_function_call_vec rather than
3101         build_function_call for cleanup.
3102         * c-tree.h: Update declarations.
3103         * c-common.h: Update declarations.
3104         * stub-objc.c (objc_rewrite_function_call): Change parameter from
3105         params to first_param.
3106         * target.h (struct gcc_target): Change resolve_overloaded_builtin
3107         params parameter from tree to void *.
3108         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3109         Change arglist parameter to have type void *, and to be a pointer
3110         to a VEC.
3111         * config/rs6000/rs6000-protos.h
3112         (altivec_resolve_overloaded_builtin): Update declaration.
3113         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
3114         fnargs parameter to have type void *, and to be a pointer to a
3115         VEC.  Call build_function_call_vec instead of
3116         build_function_call.
3117         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
3118
3119 2009-04-20  Joey Ye  <joey.ye@intel.com>
3120             Xuepeng Guo  <xuepeng.guo@intel.com>
3121             H.J. Lu  <hongjiu.lu@intel.com>
3122
3123         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
3124
3125         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
3126         (IX86_LEA_PRIORITY): Likewise.
3127         (distance_non_agu_define): New function.
3128         (distance_agu_use): Likewise.
3129         (ix86_lea_for_add_ok): Likewise.
3130         (ix86_dep_by_shift_count): Likewise.
3131
3132         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
3133         should split for LEA.
3134
3135         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
3136         function.
3137         (ix86_dep_by_shift_count): Likewise.
3138
3139 2009-04-20  Richard Guenther  <rguenther@suse.de>
3140
3141         * expr.c (handled_component_p): Move ...
3142         * tree.h (handled_component_p): ... here.
3143         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
3144         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
3145         and REALPART_EXPR to be in one group.
3146
3147 2009-04-20  Richard Guenther  <rguenther@suse.de>
3148
3149         * basic-block.h (get_all_dominated_blocks): Declare.
3150         * dominance.c (get_all_dominated_blocks): New function.
3151         * tree-cfg.c (get_all_dominated_blocks): Remove.
3152         (remove_edge_and_dominated_blocks): Adjust.
3153         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
3154         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
3155         instead of recursing.
3156
3157 2009-04-20  Doug Kwan  <dougkwan@google.com>
3158
3159         * cgraph.h (cgraph_node_ptr): New type for vector functions.
3160         (struct cgraph_node_set_def): New type.
3161         (cgraph_node_set) New type. Also declare vector functions.
3162         (struct cgraph_node_set_element_def): New type.
3163         (cgraph_node_set_element): Ditto.
3164         (cgraph_node_set_iterator): New iterator type.
3165         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
3166         cgraph_node_set_remove, dump_cgraph_node_set,
3167         debug_cgraph_node_set): New prototypes.
3168         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
3169         cgraph_node_set_size): New inlines.
3170         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
3171         including cgraph.h.
3172         (struct ipa_opt_pass): Add struct cgraph_node_set_def
3173         argument to function 'write_summary'.
3174         * ipa.c: Include ggc.h.
3175         (hash_cgraph_node_set_element,
3176         eq_cgraph_node_set_element, cgraph_node_set_new,
3177         cgraph_node_set_add, cgraph_node_set_remove,
3178         cgraph_node_set_find, dump_cgraph_node_set,
3179         debug_cgraph_node_set): New functions.
3180         * Makefile.in (ipa.o): Add dependency on GGC_H.
3181
3182 2009-04-20  Ira Rosen  <irar@il.ibm.com>
3183
3184         PR tree-optimization/39675
3185         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
3186         check of the return code of vect_schedule_slp. Check that
3187         stmt_vec_info still exists for the statement, before checking its
3188         vectorization type.
3189
3190 2009-04-20  Michael Matz  <matz@suse.de>
3191
3192         * Makefile.in (generated_files): Take out $(simple_generated_c).
3193
3194 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
3195
3196         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
3197         (UINTPTR_TYPE):  Likewise.
3198
3199 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
3200
3201         PR c/37481
3202         * c-typeck.c (digest_init): Check for initializing an array with a
3203         string literal.
3204
3205 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
3206
3207         PR c/19771
3208         * c-semantics.c (pop_stmt_list): Propagate
3209         STATEMENT_LIST_HAS_LABEL to parent statement list.
3210
3211 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
3212
3213         * config/mips/mips.h (mips_tune_attr): New macro.
3214         * config/mips/mips.md (cpu): Use it.
3215
3216 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
3217
3218         PR c/38243
3219         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
3220         declaring a tag.
3221
3222 2009-04-19  Diego Novillo  <dnovillo@google.com>
3223
3224         * toplev.c (compile_file): Move call to coverage_finish ...
3225         * cgraphunit.c (ipa_passes): ... here.
3226         Call cgraph_process_new_functions.
3227         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
3228         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
3229
3230 2009-04-19  Jan Hubicka  <jh@suse.cz>
3231
3232         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
3233         cfun.
3234         (dump_cgraph_node): Dump can throw external flag.
3235         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
3236
3237 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3238
3239         PR c/32061
3240         PR c++/36954
3241         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
3242         * common.opt (Wlogical-op): Move from here...
3243         * c.opt (Wlogical-op): ... to here.
3244         * c-typeck.c (parser_build_binary_op): Update call to
3245         warn_logical_operator.
3246         * c-opts.c (c_common_post_options): Enable warn_logical_op with
3247         extra_warnings.
3248         * c-common.c (warn_logical_op): Update.
3249         * c-common.h (warn_logical_op): Update declaration.
3250
3251 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
3252
3253         * tree.c (protected_set_expr_location): Fix formatting.
3254
3255 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
3256
3257         PR c/27676
3258         * c-typeck.c (readonly_warning): new.
3259         (build_unary_op, build_modify_expr): Use readonly_warning for
3260         storing into something readonly but not const-qualified.
3261
3262 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
3263
3264         PR c/22367
3265         * c-typeck.c (build_unary_op): Check for taking address of
3266         expression of type void.
3267
3268 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
3269
3270         PR c/35210
3271         * c-typeck.c (build_function_call): Check for calling a function
3272         with qualified void return types.  Call require_complete_type when
3273         generating a trap.
3274
3275 2009-04-18  Jan Hubicka  <jh@suse.cz>
3276
3277         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
3278         Set nothrow flag.
3279         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
3280         can_throw_external flag.
3281         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
3282         * ipa-pure-const.c (ignore_edge): New function.
3283         (propagate): Compute order for NOTHROW computation; set NOTHROWs
3284         only over can_throw_external edges.
3285         (local_pure_const): Add nothrow flag.
3286         * ipa-utils.c (searchc): Add ignore_edge callback.
3287         (ipa_utils_reduced_inorder): Add ignore_edge callback.
3288         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
3289         (set_nothrow_function_flags): Update cgraph.
3290         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
3291
3292 2009-04-18  Richard Guenther  <rguenther@suse.de>
3293
3294         PR middle-end/39804
3295         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
3296         (fold_stmt): ... this and ...
3297         (fold_stmt_inplace): ... this.
3298         (fold_stmt_1): Fold references in calls and asms.
3299         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
3300
3301 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3302
3303         * tree-vrp.c (ssa_name_nonzero_p): Remove.
3304         * tree.h: Remove the prototype for ssa_name_nonzero_p.
3305
3306 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3307
3308         * tree.c (function_args_count): Remove.
3309         * tree.h: Remove the prototype for function_args_count.
3310
3311 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3312
3313         * tree-iterator.c (expr_only): Remove.
3314         * tree.h: Remove the prototype for expr_only.
3315
3316 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3317
3318         * reginfo.c (cannot_change_mode_set_regs): Remove.
3319         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
3320
3321 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
3322
3323         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
3324         whether operands 0 and 1 overlaps.
3325
3326 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3327
3328         PR middle-end/36902
3329         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
3330         pointer. Use warning_at instead of warning.
3331         (search_for_addr_array): Likewise.
3332         (check_array_bounds): Likewise.
3333         (check_all_array_refs): Check that the incoming edge is not in the
3334         list of edges to be removed.
3335         (check_all_array_refs): Avoid the temporal pointer.
3336         (vrp_visit_cond_stmt): Fix typo.
3337         (simplify_switch_using_ranges): Handle the case where the switch
3338         index is an integer constant.
3339
3340 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
3341
3342         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
3343
3344 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
3345
3346         * doc/extend.texi, doc/invoke.texi: Fix typos.
3347
3348 2009-04-17  Cary Coutant  <ccoutant@google.com>
3349
3350         * tree-flow-inline.h (get_lineno): Fix inverted test.
3351
3352 2009-04-17  Diego Novillo  <dnovillo@google.com>
3353
3354         * tree-ssa-pre.c (create_expression_by_pieces): Remove
3355         assertion for AVAIL_OUT.
3356
3357 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
3358
3359         PR target/38627
3360         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
3361         * config/sh/linux-atomic.asm: Likewise.
3362
3363 2009-04-17  Diego Novillo  <dnovillo@google.com>
3364
3365         * except.c (debug_eh_tree): New.
3366         (struct eh_region, struct eh_status): Move ...
3367         * except.h: ... here.
3368         (add_type_for_runtime): Declare extern.
3369         (lookup_type_for_runtime): Likewise.
3370         (debug_eh_tree): Declare.
3371         * Makefile.in (GTFILES): List except.h before except.c
3372
3373 2009-04-17  Diego Novillo  <dnovillo@google.com>
3374
3375         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
3376         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
3377         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
3378         (find_vars_r): ... here.
3379         * tree-flow.h (find_referenced_vars_in): Declare.
3380         * tree-ssa-pre.c (create_expression_by_pieces): Assert
3381         that AVAIL_OUT exists for BLOCK.
3382         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
3383         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
3384         (tree-parloops.o): Likewise.
3385
3386 2009-04-17  Simon Baldwin  <simonb@google.com>
3387
3388         * toplev.c (default_tree_printer): Add handling for %E format.
3389
3390 2009-04-17  Diego Novillo  <dnovillo@google.com>
3391
3392         * tree-pretty-print.c (dump_generic_node): Add break after
3393         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
3394         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
3395         FUNCTION_TYPE together.  Call print_struct_decl when printing
3396         structures and TDF_SLIM is not given.
3397         (print_struct_decl): Fix logic for detecting recursion.
3398
3399 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
3400
3401         PR 31567
3402         * gcc.c (create_at_file): New.
3403         (compile_input_file_p): New.
3404         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
3405         * main.c (main): Update call to toplev_main.
3406         * toplev.c (toplev_main): Change signature. Call expandargv.
3407         * toplev.h (toplev_main): Change signature.
3408
3409 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3410
3411         * dwarf2out.c (field_byte_offset): Use the type size as the field size
3412         if the latter is not constant.
3413
3414 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
3415
3416         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
3417
3418 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3419
3420         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
3421         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
3422
3423 2009-04-17  Richard Guenther  <rguenther@suse.de>
3424
3425         * tree-ssa-structalias.c (get_constraint_for_component_ref):
3426         Handle component references view-converting an invariant address.
3427
3428 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
3429
3430         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
3431         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
3432         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
3433         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
3434         Use @deftypevr rather than @deftypevar.
3435
3436 2009-04-17  Richard Guenther  <rguenther@suse.de>
3437
3438         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
3439         (get_prop_source_stmt): Likewise.
3440         (can_propagate_from): Likewise.
3441
3442 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
3443
3444         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
3445         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
3446         (--with-multilib-list): Add default value.
3447         * configure: Regenerate.
3448         * Makefile.in (TM_ENDIAN_CONFIG): Define.
3449         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
3450         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
3451         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
3452         Don't add default cpu to multilib list unnecessarily, but do enable
3453         the relevant compiler option..
3454         Add support for --with-multilib-list=<blank> and
3455         --with-multilib-list=!<somelib> to supress unwanted multilibs.
3456         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
3457         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
3458         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
3459         TM_MULTILIB_CONFIG.
3460         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
3461         (MULTILIB_OSDIRNAMES): New variable.
3462         * config/sh/t-1e: Delete file.
3463         * config/sh/t-mlib-sh1: Delete file.
3464         * config/sh/t-mlib-sh2: Delete file.
3465         * config/sh/t-mlib-sh2a: Delete file.
3466         * config/sh/t-mlib-sh2a-nofpu: Delete file.
3467         * config/sh/t-mlib-sh2a-single: Delete file.
3468         * config/sh/t-mlib-sh2a-single-only: Delete file.
3469         * config/sh/t-mlib-sh2e: Delete file.
3470         * config/sh/t-mlib-sh3e: Delete file.
3471         * config/sh/t-mlib-sh4: Delete file.
3472         * config/sh/t-mlib-sh4-nofpu: Delete file.
3473         * config/sh/t-mlib-sh4-single: Delete file.
3474         * config/sh/t-mlib-sh4-single-only: Delete file.
3475         * config/sh/t-mlib-sh4a: Delete file.
3476         * config/sh/t-mlib-sh4a-nofpu: Delete file.
3477         * config/sh/t-mlib-sh4a-single: Delete file.
3478         * config/sh/t-mlib-sh4a-single-only: Delete file.
3479         * config/sh/t-mlib-sh4al: Delete file.
3480         * config/sh/t-mlib-sh5-32media: Delete file.
3481         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
3482         * config/sh/t-mlib-sh5-64media: Delete file.
3483         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
3484         * config/sh/t-mlib-sh5-compact: Delete file.
3485         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
3486         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
3487         * doc/install.texi (Options specification): Add
3488         --with-multilib-list and --with-endian.
3489
3490 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
3491
3492         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
3493         REVISION_c.
3494         (OBJS-common): Add plugin-version.o.
3495         (plugin-version.o): New.
3496         * gcc-plugin.h (plugin_gcc_version): New.
3497         (plugin_default_version_check): New.
3498         (plugin_init_func, plugin_init): Add version argument.
3499         * plugin-version.c: New.
3500         * plugin.c (str_plugin_gcc_version_name): New.
3501         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
3502         pass it to the init function.
3503         (plugin_default_version_check): New.
3504
3505 2009-04-17  Richard Guenther  <rguenther@suse.de>
3506
3507         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
3508         for decl-vs-decl disambiguation.
3509
3510 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
3511
3512         * config/s390/s390.h (s390_tune_attr): New macro definition.
3513         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
3514
3515 2009-04-17  Richard Guenther  <rguenther@suse.de>
3516
3517         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
3518         (fold_stmt_r): Likewise.
3519         (maybe_fold_reference): New function.
3520         (fold_gimple_assign): Handle cases fold_stmt_r did.
3521         (fold_stmt): Do not use fold_stmt_r.
3522         (fold_stmt_inplace): Likewise.
3523
3524 2009-04-17  Richard Guenther  <rguenther@suse.de>
3525
3526         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
3527         (record_equivalences_from_stmt): Remove useless checks and
3528         simplifications.
3529         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
3530         the type is already suitable.
3531
3532 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
3533
3534         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
3535
3536 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
3537
3538         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
3539         (CMPtype): Define as __gcc_CMPtype.
3540
3541 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
3542
3543         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
3544         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
3545
3546 2009-04-17  Richard Guenther  <rguenther@suse.de>
3547
3548         PR tree-optimization/39746
3549         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
3550         special-casing for builtins and static variable use/def.
3551         (call_may_clobber_ref_p_1): Likewise.
3552
3553 2009-04-16  Ian Lance Taylor  <iant@google.com>
3554
3555         * df.h: Include "timevar.h".
3556         (struct df_problem): Change tv_id field to timevar_id_t.
3557         * tree-pass.h: Include "timevar.h".
3558         (struct opt_pass): Change tv_id field to timevar_id_t.
3559         * timevar.h (timevar_id_t): Define TV_NONE.
3560         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
3561         TV_NONE rather than tv_id != 0.
3562         (execute_one_pass): Likewise.
3563         * Makefile.in (DF_H): Add $(TIMEVAR_H).
3564         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
3565         dependencies to $(TREE_PASS_H).
3566         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
3567         to TV_NONE.
3568         (pass_branch_target_load_optimize2): Likewise.
3569         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
3570         (pass_outof_cfg_layout_mode): Likewise.
3571         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
3572         (pass_rebuild_cgraph_edges): Likewise.
3573         (pass_remove_cgraph_callee_edges): Likewise.
3574         * df-core.c (pass_df_initialize_opt): Likewise.
3575         (pass_df_initialize_no_opt): Likewise.
3576         (pass_df_finish): Likewise.
3577         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
3578         * except.c (pass_set_nothrow_function_flags): Likewise.
3579         (pass_convert_to_eh_region_ranges): Likewise.
3580         * final.c (pass_compute_alignments): Likewise.
3581         * function.c (pass_instantiate_virtual_regs): Likewise.
3582         (pass_init_function): Likewise.
3583         (pass_leaf_regs): Likewise.
3584         (pass_match_asm_constraints): Likewise.
3585         * gimple-low.c (pass_lower_cf): Likewise.
3586         (pass_mark_used_blocks): Likewise.
3587         * init-regs.c (pass_initialize_regs): Likewise.
3588         * integrate.c (pass_initial_value_sets): Likewise.
3589         * ira.c (pass_ira): Likewise.
3590         * jump.c (pass_cleanup_barriers): Likewise.
3591         * omp-low.c (pass_expand_omp): Likewise.
3592         (pass_lower_omp): Likewise.
3593         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
3594         * recog.c (pass_split_all_insns): Likewise.
3595         (pass_split_after_reload): Likewise.
3596         (pass_split_before_regstack): Likewise.
3597         (pass_split_before_sched2): Likewise.
3598         (pass_split_for_shorten_branches): Likewise.
3599         * reginfo.c (pass_reginfo_init): Likewise.
3600         (pass_subregs_of_mode_init): Likewise.
3601         (pass_subregs_of_mode_finish): Likewise.
3602         * passes.c (pass_postreload): Likewise.
3603         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
3604         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
3605         (pass_warn_function_return): Likewise.
3606         (pass_warn_function_noreturn): Likewise.
3607         * tree-complex.c (pass_lower_complex): Likewise.
3608         (pass_lower_complex_O0): Likewise.
3609         * tree-if-conv.c (pass_if_conversion): Likewise.
3610         * tree-into-ssa.c (pass_build_ssa): Likewise.
3611         * tree-mudflap.c (pass_mudflap_1): Likewise.
3612         (pass_mudflap_2): Likewise.
3613         * tree-nomudflap.c (pass_mudflap_1): Likewise.
3614         (pass_mudflap_2): Likewise.
3615         * tree-nrv.c (pass_return_slot): Likewise.
3616         * tree-object-size.c (pass_object_sizes): Likewise.
3617         * tree-optimize.c (pass_all_optimizations): Likewise.
3618         (pass_early_local_passes): Likewise.
3619         (pass_all_early_optimizations): Likewise.
3620         (pass_cleanup_cfg): Likewise.
3621         (pass_cleanup_cfg_post_optimizing): Likewise.
3622         (pass_free_datastructures): Likewise.
3623         (pass_free_cfg_annotations): Likewise.
3624         (pass_fixup_cfg): Likewise.
3625         (pass_init_datastructures): Likewise.
3626         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
3627         (pass_late_warn_uninitialized): Likewise.
3628         (pass_update_address_taken): Likewise.
3629         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
3630         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
3631         (pass_cse_sincos): Likewise.
3632         (pass_convert_to_rsqrt): Likewise.
3633         * tree-ssa-structalias.c (pass_build_alias): Likewise.
3634         * tree-stdarg.c (pass_stdarg): Likewise.
3635         * tree-tailcall.c (pass_tail_recursion): Likewise.
3636         (pass_tail_calls): Likewise.
3637         * tree-vect-generic.c (pass_lower_vector): Likewise.
3638         (pass_lower_vector_ssa): Likewise.
3639         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
3640
3641 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
3642
3643         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
3644         XLR entry.
3645         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
3646         Handle -march=xlr.
3647         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
3648         logical and signext.
3649
3650 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3651
3652         PR target/39767
3653         * config/sh/predicates.md (arith_operand): Check if the operand
3654         of TRUNCATE is a REG.
3655
3656 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3657
3658         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
3659         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
3660
3661 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3662
3663         * tree-iterator.c (tsi_split_statement_list_after,
3664         tsi_split_statement_list_before): Remove.
3665         * tree-iterator.h: Remove the prototypes for
3666         tsi_split_statement_list_after and tsi_split_statement_list_before.
3667
3668 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3669
3670         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
3671         * tree-ssa-propagate.h: Remove the prototype for
3672         stmt_makes_single_load.
3673
3674 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3675
3676         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
3677         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
3678
3679 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3680
3681         * tree-iterator.c (EXPR_LAST_BODY): Remove.
3682
3683 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3684
3685         * except.c (eh_region_outer_p): Remove.
3686         * except.h: Remove the prototype for eh_region_outer_p.
3687
3688 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
3689
3690         * function.c (current_function_assembler_name): Remove.
3691         * function.h: Remove the prototype for
3692         current_function_assembler_name.
3693
3694 2009-04-16  Ian Lance Taylor  <iant@google.com>
3695
3696         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
3697         (add_reg_note): Call alloc_reg_note.
3698         * rtl.h (alloc_reg_note): Declare.
3699         * combine.c (try_combine): Use alloc_reg_note.
3700         (recog_for_combine, move_deaths): Likewise.
3701         (distribute_notes): Use alloc_reg_note and add_reg_note.
3702         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
3703         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
3704         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
3705
3706 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
3707
3708         PR rtl-optimization/39762
3709         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
3710         ira_may_move_out_cost): Add comments about way of their usage.
3711         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
3712
3713         * ira-conflicts.c (process_regs_for_copy): Use function
3714         ira_get_register_move_cost instead of global
3715         ira_register_move_cost.
3716
3717         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
3718         color_pass, move_spill_restore, update_curr_costs): Ditto.
3719
3720         * ira-lives.c (process_single_reg_class_operands): Ditto.
3721
3722         * ira-emit.c (emit_move_list): Ditto.
3723
3724         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
3725         (record_reg_classes): Ditto.  Use functions
3726         ira_get_register_move_cost and ira_get_may_move_cost instead of
3727         global vars ira_register_move_cost, ira_may_move_out_cost and
3728         ira_may_move_in_cost.
3729         (record_address_regs): Don't call ira_init_register_move_cost.
3730         Use function ira_get_may_move_cost instead of global
3731         ira_may_move_in_cost.
3732         (process_bb_node_for_hard_reg_moves): Use function
3733         ira_get_register_move_cost instead of global ira_register_move_cost.
3734         (ira_costs): Don't call ira_init_register_move_cost.
3735
3736 2009-04-16  Richard Guenther  <rguenther@suse.de>
3737
3738         * tree-cfg.c (verify_gimple_assign_binary):
3739         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
3740         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
3741         (create_general_new_stmt): Note that this function is broken.
3742
3743 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
3744
3745         * common.opt (fhelp): Add Var(help_flag).
3746         * gcc-plugin.h (plugin_info): Add help.
3747         * plugin.c (plugin_name_args): Add help.
3748         (register_plugin_info): Set plugin->help.
3749         (print_help_one_plugin): New.
3750         (print_plugins_help): New.
3751         * plugin.h (print_plugins_help): New.
3752         * toplev.c (toplev_main): Call print_plugins_help if needed.
3753
3754 2009-04-16  Richard Guenther  <rguenther@suse.de>
3755
3756         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
3757         (gimple_ior_addresses_taken_1): New function.
3758         (gimple_ior_addresses_taken): Likewise.
3759         * gimple.h (struct gimple_statement_with_ops_base): Remove
3760         addresses_taken member.
3761         (gimple_ior_addresses_taken): Declare.
3762         (gimple_addresses_taken, gimple_addresses_taken_ptr,
3763         gimple_set_addresses_taken): Remove.
3764         * ipa-reference.c (mark_address): New function.
3765         (scan_stmt_for_static_refs): Use it for marking addresses taken.
3766         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
3767         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
3768         (gimple_add_to_addresses_taken): Remove.
3769         (get_tmr_operands): Call mark_address_taken.
3770         (get_asm_expr_operands): Likewise.
3771         (get_expr_operands): Likewise.
3772         (build_ssa_operands): Do not clear the addresses_taken bitmap.
3773         (free_stmt_operands): Do not free it.
3774         * tree-ssa.c (delete_tree_ssa): Likewise.
3775         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
3776
3777 2009-04-16  Richard Guenther  <rguenther@suse.de>
3778
3779         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
3780         (walk_stmt_load_store_ops): Likewise.
3781         * gimple.c (get_base_loadstore): New function.
3782         (walk_stmt_load_store_addr_ops): Likewise.
3783         (walk_stmt_load_store_ops): Likewise.
3784         * ipa-pure-const.c (check_op): Simplify.
3785         (check_load, check_store): New functions.
3786         (check_stmt): Use walk_stmt_load_store_ops.
3787         * ipa-reference.c (mark_load): Adjust signature.
3788         (mark_store): Likewise.
3789         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
3790
3791 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
3792
3793         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
3794         (plugin_info): New.
3795         * opts.c (common_handle_option): Don't call print_version.
3796         * plugin.c (plugin_name_args): Add version.
3797         (register_plugin_info): New.
3798         (register_callback): Handle PLUGIN_INFO.
3799         (try_init_one_plugin): New.
3800         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
3801         if failed to init.
3802         (finalize_one_plugin): New.
3803         (finalize_plugins): New.
3804         (print_one_plugin): New.
3805         (print_plugins_versions): New.
3806         * plugin.h (print_plugins_versions): New.
3807         (finalize_plugins): New.
3808         * toplev.c (compile_file): Don't call initialize_plugins.
3809         (print_version): Call print_plugins_versions.
3810         (toplev_main): Call initialize_plugins. Print version if needed.
3811         Call finalize_plugins.
3812
3813 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
3814
3815         * common.opt (fversion): New.
3816         * gcc.c (print_version): New.
3817         (process_command): Don't print the version. Just set print_version.
3818         (main): Print version. Call subprocesses if print_version and
3819         verbose_flag are set.
3820         * opts.c (common_handle_option): Handle OPT_fversion.
3821
3822 2009-04-16  Richard Guenther  <rguenther@suse.de>
3823             Ira Rosen  <irar@il.ibm.com>
3824
3825         PR tree-optimization/39698
3826         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
3827         type of the reduction variable.  Only generate the def if
3828         it is needed.
3829
3830         * omp-low.c (expand_omp_for_generic): When converting to a pointer
3831         make sure to first convert to an integer of the same precision.
3832         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
3833         the type of the evolution correctly in computing the new
3834         induction variable base.
3835
3836 2009-04-16  Richard Guenther  <rguenther@suse.de>
3837
3838         PR middle-end/39625
3839         * tree-cfg.c (make_blocks): Split statements with to-be
3840         abnormal SSA names on the lhs.
3841
3842 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
3843
3844         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
3845         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
3846         * c-typeck.c (really_start_incremental_init): Likewise.
3847         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
3848         (TARGET_INITIALIZER): Remove it.
3849         * target.h (struct target): Remove vector_opaque_p.
3850         * tree.c (build_opaque_vector_type): New.
3851         * tree.h (TYPE_VECTOR_OPAQUE): New.
3852         (build_opaque_vector_type): Declare.
3853         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
3854         * config/rs6000/rs6000.c (build_opaque_vector_type,
3855         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
3856         (rs6000_init_builtins): Use build_opaque_vector_type for
3857         opaque_V4SI_type_node.
3858
3859 2009-04-15  Catherine Moore  <clm@codesourcery.com>
3860
3861         * debug.h (set_name):  Declare.
3862         * dwarf2out.c (dwarf2out_set_name): Declare.
3863         (dwarf2_debug_hooks): Add set_name.
3864         (find_AT_string): New.
3865         (add_AT_string): Call find_AT_string.
3866         (dwarf2out_set_name): New.
3867         * cp/decl.c (grokdeclarator): Call set_name.
3868         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
3869         * debug.c (do_nothing_debug_hooks):  Likewise.
3870         * dbxout.c (dbx_debug_hooks): Likewise.
3871         * sdbout.c (sdb_debug_hooks): Likewise.
3872
3873 2009-04-15  Michael Eager  <eager@eagercon.com>
3874
3875         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
3876         reg for single-precision FPU.
3877         * config/rs6000/rs6000.md (movsi_internal1): Only for
3878         !TARGET_SINGLE_FPU.
3879         (movsi_internal1_single): New. Add pattern to move SI values to/from
3880         single-precision FP regs.
3881
3882 2009-04-15  Richard Guenther  <rguenther@suse.de>
3883
3884         * omp-low.c (lower_rec_input_clauses): Build correct address
3885         expressions.
3886         (expand_omp_for_generic): Fix multiplication type.
3887         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
3888         (generate_memset_zero): Fix types.
3889         * tree-profile.c (prepare_instrumented_value): Correctly
3890         widen a pointer.
3891
3892 2009-04-15  Ian Lance Taylor  <iant@google.com>
3893
3894         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
3895         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
3896         for -Wall and for -Wc++-compat.
3897         (c_common_post_options): For C++, set warn_enum_compare if not
3898         already set.
3899         * c-tree.h (struct c_expr): Add field original_type.
3900         (build_external_ref): Update declaration.
3901         * c-parser.c (c_parser_braced_init): Set original_type.
3902         (c_parser_initelt): Likewise.
3903         (c_parser_expr_no_commas): Likewise.
3904         (c_parser_conditional_expression): Likewise.
3905         (c_parser_cast_expression): Likewise.
3906         (c_parser_unary_expression): Likewise.  Pull setting of
3907         original_code to top of function.
3908         (c_parser_sizeof_expression): Set original_type.
3909         (c_parser_alignof_expression): Likewise.
3910         (c_parser_postfix_expression): Likewise.  Pull setting of
3911         original_code to top of function.
3912         (c_parser_postfix_expression_after_paren_type): Set original_type.
3913         (c_parser_postfix_expression_after_primary): Likewise.
3914         (c_parser_expression): Likewise.
3915         * c-typeck.c (build_external_ref): Add type parameter.  Change all
3916         callers.
3917         (c_expr_sizeof_expr): Set original_type field.
3918         (parser_build_unary_op): Likewise.
3919         (parser_build_binary_op): Likewise.  Optionally warn about
3920         comparisons of enums of different types.
3921         (digest_init): Set original_type field.
3922         (really_start_incremental_init): Likewise.
3923         (push_init_level, pop_init_level): Likewise.
3924         * doc/invoke.texi (Warning Options): -Wenum-compare now
3925         supported in C.
3926
3927 2009-04-15  Richard Guenther  <rguenther@suse.de>
3928
3929         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
3930         out a necessary conversion.
3931         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
3932         names we didn't value number.
3933         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
3934
3935 2009-04-15  Richard Guenther  <rguenther@suse.de>
3936
3937         PR tree-optimization/39764
3938         * tree-ssa-ccp.c (get_value): Canonicalize value with
3939         canonicalize_float_value.
3940
3941 2009-04-15  Jan Hubicka  <jh@suse.cz>
3942
3943         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
3944         Wrong version of patch.
3945
3946 2009-04-15  Jan Hubicka  <jh@suse.cz>
3947
3948         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
3949
3950 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
3951
3952         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
3953         our distinct integral and vector types.
3954
3955 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
3956
3957         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
3958         * init.c (build_vtbl_address): Remove call to assemble_external.
3959
3960 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
3961
3962         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
3963         output for other floating point modes.
3964
3965 2009-04-14  Diego Novillo  <dnovillo@google.com>
3966
3967         * diagnostic.c (diagnostic_report_diagnostic): Do not
3968         warn about loaded plugins for DK_ERROR and DK_WARNING.
3969         * c-decl.c (declspecs_add_type): Move call to
3970         invoke_plugin_callbacks ...
3971         * c-parser.c (c_parser_declspecs): ... here.
3972         * plugin.c (dump_active_plugins): Tidy output.
3973
3974 2009-04-14  Diego Novillo  <dnovillo@google.com>
3975             Le-Chun Wu  <lcwu@google.com>
3976
3977         * configure.ac: Add --enable-plugin support.
3978         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
3979         * Makefile.in (PLUGIN_H): Define.
3980         Export ENABLE_PLUGIN and GMPINC to site.exp.
3981         Add PLUGINLIBS to link command.
3982         Add/modify dependencies for plugin.o and files including plugin.h.
3983         (plugin.o): New.
3984         * config.in: Regenerate.
3985
3986         * opts.c (common_handle_option): Handle OPT_fplugin_ and
3987         OPT_fplugin_arg_.
3988
3989 2009-04-14  Le-Chun Wu  <lcwu@google.com>
3990
3991         * tree-pass.h (register_one_dump_file): Add a prototype for
3992         register_one_dump_file.
3993         * toplev.c (compile_file): Call initialize_plugins.
3994         (do_compile): Call invoke_plugin_callbacks.
3995         (toplev_main): Call invoke_plugin_callbacks.
3996         * common.opt: Add -fplugin= and -fplugin-arg-.
3997         * gcc-plugin.h: New public header file for plugins to include.
3998         * plugin.c: New source file.
3999         * plugin.h: New internal header file.
4000         * passes.c (register_one_dump_file): Make it external.
4001
4002         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
4003
4004 2009-04-14  Diego Novillo  <dnovillo@google.com>
4005
4006         * doc/plugins.texi: New.
4007         * doc/gccint.texi: Add reference to Plugins chapter.
4008         * doc/invoke.texi: Document -fplugin and -fplugin-arg
4009         * diagnostic.c (diagnostic_report_diagnostic): Warn about
4010         loaded plugins, if any.
4011         * timevar.def (TV_PLUGIN_INIT): Define.
4012         (TV_PLUGIN_RUN): Define.
4013         * plugin.c: Include timevar.h
4014         (plugins_active_p): New.
4015         (dump_active_plugins): New.
4016         (debug_active_plugins): New.
4017
4018 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
4019
4020         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
4021         library paths.
4022         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
4023
4024 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
4025
4026         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
4027         the same as a minus without a shift.
4028
4029 2009-04-14  Nick Clifton  <nickc@redhat.com>
4030
4031         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
4032         comparisons with small integers will always produce a short
4033         branch.
4034
4035 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
4036
4037         Merge:
4038         2008-12-19  Diego Novillo  <dnovillo@google.com>
4039
4040         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
4041
4042 2009-04-14  Richard Guenther  <rguenther@suse.de>
4043
4044         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
4045         verification.
4046         (verify_gimple_assign_binary): Likewise.  Handle shifts and
4047         rotates correctly.
4048         (verify_gimple_phi): Print the mismatched argument position.
4049         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4050         Fix types.
4051         (vect_update_init_of_dr): Likewise.
4052         * matrix-reorg.c (transform_access_sites): Do what the
4053         comment suggests.
4054         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
4055
4056 2009-04-13  Michael Eager  <eager@eagercon.com>
4057
4058         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
4059         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
4060         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
4061         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
4062         remove duplicate config
4063
4064 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4065
4066         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
4067         file_name:line_number type locator of the call site.
4068
4069 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4070
4071         * genautomata.c: Put blank after comma.
4072         (automaton_decls): New.
4073         (struct unit_usage): Add comments to member next.
4074         (store_alt_unit_usage): Keep the list ordered.
4075         (unit_present_on_list_p, equal_alternatives_p): New.
4076         (check_regexp_units_distribution): Check units distribution
4077         correctness correctly.
4078         (main): Don't write automata if error is found.  Return correct
4079         exit code.
4080
4081         * config/m68k/cf.md (cfv4_ds): Remove.
4082         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
4083         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
4084
4085         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
4086         power4-load-ext, power4-store, power4-store-update,
4087         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
4088         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
4089         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
4090         power4-sqrt, power4-isync): Modify reservation to make correct
4091         unit distribution to automata.
4092
4093         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
4094         power5-store-update, power5-two, power5-three, power5-lmul,
4095         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
4096
4097 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
4098
4099         * except.c (pass_set_nothrow_function_flags): Set name and add
4100         TODO_dump_func.
4101         (set_nothrow_function_flags): Mention in the dump file when
4102         changing a function to nothrow.
4103
4104 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
4105
4106         PR/39066
4107         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
4108         instead of unsigned long.
4109
4110 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4111
4112         * config/arm/arm.c (return_used_this_function): Remove.
4113         (arm_output_function_prologue): Remove use of
4114         return_used_this_function.
4115         (output_return_instruction): Replace use of
4116         return_used_this_function
4117         by cfun->machine->return_used_this_function.
4118         (arm_output_epilogue): Likewise.
4119         (arm_output_function_epilogue): Likewise.
4120         (thumb_unexpanded_epilogue): Likewise.
4121         * config/arm/arm.h (struct machine_function):
4122         New member return_used_this_function.
4123
4124 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
4125
4126         * doc/install.texi: Correct description of default directory for
4127         --with-gxx-include-dir.
4128
4129 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4130
4131         * fold-const.c (build_range_check): Properly deal with enumeral and
4132         boolean base types.
4133
4134 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
4135
4136         * doc/invoke.texi (max_gcse_passes): Remove documentation.
4137         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
4138         * params.h (MAX_GCSE_PASSES): Remove.
4139         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
4140         in sequence.  Remove ability to run multiple passes.
4141         (bypass_jumps): Report run as third CPROP pass.
4142
4143 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
4144
4145         PR middle-end/39651
4146         * except.c (can_throw_external): Look at each insn in a SEQUENCE
4147         when deciding whether the whole SEQUENCE can throw.
4148
4149 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
4150
4151         PR target/39740
4152         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
4153         offseted label references.
4154
4155 2009-04-11  Jan Hubicka  <jh@suse.cz>
4156
4157         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
4158
4159 2009-04-11  Richard Guenther  <rguenther@suse.de>
4160
4161         PR middle-end/39732
4162         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
4163         return variables as TREE_ADDRESSABLE.
4164
4165 2009-04-11  Richard Guenther  <rguenther@suse.de>
4166
4167         PR tree-optimization/39713
4168         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
4169         reference trees have SSA_NAME operands.
4170
4171 2009-04-11  Richard Guenther  <rguenther@suse.de>
4172
4173         PR c/39712
4174         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
4175         address expressions.
4176
4177 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
4178
4179         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
4180         match changes in Cygwin 1.7
4181         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
4182         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
4183
4184 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
4185
4186         PR tree-optimization/39701
4187         * doc/invoke.texi (Optimization Options): Document change in
4188         meaning and initialization of -fdelete-null-pointer-checks.
4189
4190 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4191
4192         PR middle-end/39701
4193         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
4194
4195         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
4196         here.
4197
4198         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
4199
4200 2009-04-10  Chao-ying Fu  <fu@mips.com>
4201
4202         * doc/tm.texi (Instruction Output): Document
4203         TARGET_ASM_FINAL_POSTSCAN_INSN.
4204         * target.h (final_postscan_insn): New field in asm_out.
4205         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
4206         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
4207         * final.c (final_scan_insn): Call
4208         targetm.asm_out.final_postscan_insn after outputting
4209         an asm macro and a normal instruction.
4210
4211         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
4212         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
4213         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
4214         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
4215         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
4216
4217 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
4218
4219         PR middle-end/39701
4220         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
4221         variables as non-NULL even with -fdelete-null-pointer-checks.
4222
4223 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4224
4225         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
4226
4227 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
4228
4229         PR target/39678
4230         * config/i386/i386.c (classify_argument): Handle SCmode with
4231         (bit_offset % 64) != 0.
4232
4233 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
4234
4235         * doc/invoke.texi (Optimize Options): Add cross-reference to
4236         -Q --help=optimizers examples.
4237
4238 2009-04-10  Ben Elliston  <bje@au.ibm.com>
4239
4240         PR target/36800
4241         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
4242         regalign for the reg == fpr and TDmode case.
4243
4244 2009-04-09  David Ayers  <ayers@fsfe.org>
4245
4246         PR objc/29200
4247         * objc/objc-act.c (warn_with_method): Remove helper function.
4248         (check_duplicates): Call warning and inform directly.
4249         (really_start_method): Likewise.
4250
4251 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
4252
4253         * expmed.c (expand_divmod): Always use a comparison for a division
4254         by a large unsigned integer.
4255
4256         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
4257         for things others than variables or functions as nonzero.
4258
4259 2009-04-09  Nick Clifton  <nickc@redhat.com>
4260
4261         * unwind-compat.c: Change copyright header to refer to version
4262         3 of the GNU General Public License with version 3.1 of the
4263         GCC Runtime Library Exception and to point readers at the
4264         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
4265         * config/alpha/crtfastmath.c: Likewise.
4266         * config/alpha/linux-unwind.h: Likewise.
4267         * config/alpha/qrnnd.asm: Likewise.
4268         * config/alpha/vms-crt0-64.c: Likewise.
4269         * config/alpha/vms-crt0.c: Likewise.
4270         * config/alpha/vms-dwarf2.asm: Likewise.
4271         * config/alpha/vms-dwarf2eh.asm: Likewise.
4272         * config/alpha/vms-psxcrt0-64.c: Likewise.
4273         * config/alpha/vms-psxcrt0.c: Likewise.
4274         * config/alpha/vms_tramp.asm: Likewise.
4275         * config/arc/initfini.c: Likewise.
4276         * config/arc/lib1funcs.asm: Likewise.
4277         * config/arm/bpabi-v6m.S: Likewise.
4278         * config/arm/bpabi.S: Likewise.
4279         * config/arm/bpabi.c: Likewise.
4280         * config/arm/crti.asm: Likewise.
4281         * config/arm/crtn.asm: Likewise.
4282         * config/arm/ieee754-df.S: Likewise.
4283         * config/arm/ieee754-sf.S: Likewise.
4284         * config/arm/lib1funcs.asm: Likewise.
4285         * config/arm/libunwind.S: Likewise.
4286         * config/arm/linux-atomic.c: Likewise.
4287         * config/arm/mmintrin.h: Likewise.
4288         * config/arm/pr-support.c: Likewise.
4289         * config/arm/unaligned-funcs.c: Likewise.
4290         * config/arm/unwind-arm.c: Likewise.
4291         * config/arm/unwind-arm.h: Likewise.
4292         * config/avr/libgcc.S: Likewise.
4293         * config/bfin/crti.s: Likewise.
4294         * config/bfin/crtlibid.s: Likewise.
4295         * config/bfin/crtn.s: Likewise.
4296         * config/bfin/lib1funcs.asm: Likewise.
4297         * config/bfin/linux-unwind.h: Likewise.
4298         * config/cris/arit.c: Likewise.
4299         * config/cris/cris_abi_symbol.c: Likewise.
4300         * config/darwin-64.c: Likewise.
4301         * config/darwin-crt2.c: Likewise.
4302         * config/darwin-crt3.c: Likewise.
4303         * config/darwin.h: Likewise.
4304         * config/dbxelf.h: Likewise.
4305         * config/dfp-bit.c: Likewise.
4306         * config/dfp-bit.h: Likewise.
4307         * config/elfos.h: Likewise.
4308         * config/fixed-bit.c: Likewise.
4309         * config/fixed-bit.h: Likewise.
4310         * config/fp-bit.c: Likewise.
4311         * config/fp-bit.h: Likewise.
4312         * config/fr30/crti.asm: Likewise.
4313         * config/fr30/crtn.asm: Likewise.
4314         * config/fr30/lib1funcs.asm: Likewise.
4315         * config/freebsd-spec.h: Likewise.
4316         * config/frv/cmovd.c: Likewise.
4317         * config/frv/cmovh.c: Likewise.
4318         * config/frv/cmovw.c: Likewise.
4319         * config/frv/frvbegin.c: Likewise.
4320         * config/frv/frvend.c: Likewise.
4321         * config/frv/lib1funcs.asm: Likewise.
4322         * config/glibc-stdint.h: Likewise.
4323         * config/h8300/clzhi2.c: Likewise.
4324         * config/h8300/crti.asm: Likewise.
4325         * config/h8300/crtn.asm: Likewise.
4326         * config/h8300/ctzhi2.c: Likewise.
4327         * config/h8300/fixunssfsi.c: Likewise.
4328         * config/h8300/lib1funcs.asm: Likewise.
4329         * config/h8300/parityhi2.c: Likewise.
4330         * config/h8300/popcounthi2.c: Likewise.
4331         * config/i386/ammintrin.h: Likewise.
4332         * config/i386/att.h: Likewise.
4333         * config/i386/avxintrin.h: Likewise.
4334         * config/i386/biarch64.h: Likewise.
4335         * config/i386/bmmintrin.h: Likewise.
4336         * config/i386/cpuid.h: Likewise.
4337         * config/i386/cross-stdarg.h: Likewise.
4338         * config/i386/crtfastmath.c: Likewise.
4339         * config/i386/crtprec.c: Likewise.
4340         * config/i386/cygming-crtbegin.c: Likewise.
4341         * config/i386/cygming-crtend.c: Likewise.
4342         * config/i386/cygwin.asm: Likewise.
4343         * config/i386/emmintrin.h: Likewise.
4344         * config/i386/gmm_malloc.h: Likewise.
4345         * config/i386/gthr-win32.c: Likewise.
4346         * config/i386/i386.h: Likewise.
4347         * config/i386/immintrin.h: Likewise.
4348         * config/i386/linux-unwind.h: Likewise.
4349         * config/i386/linux64.h: Likewise.
4350         * config/i386/mm3dnow.h: Likewise.
4351         * config/i386/mmintrin-common.h: Likewise.
4352         * config/i386/mmintrin.h: Likewise.
4353         * config/i386/nmmintrin.h: Likewise.
4354         * config/i386/pmm_malloc.h: Likewise.
4355         * config/i386/pmmintrin.h: Likewise.
4356         * config/i386/smmintrin.h: Likewise.
4357         * config/i386/sol2-c1.asm: Likewise.
4358         * config/i386/sol2-ci.asm: Likewise.
4359         * config/i386/sol2-cn.asm: Likewise.
4360         * config/i386/sol2-gc1.asm: Likewise.
4361         * config/i386/tmmintrin.h: Likewise.
4362         * config/i386/unix.h: Likewise.
4363         * config/i386/w32-unwind.h: Likewise.
4364         * config/i386/wmmintrin.h: Likewise.
4365         * config/i386/x86-64.h: Likewise.
4366         * config/i386/x86intrin.h: Likewise.
4367         * config/i386/xmmintrin.h: Likewise.
4368         * config/ia64/crtbegin.asm: Likewise.
4369         * config/ia64/crtend.asm: Likewise.
4370         * config/ia64/crtfastmath.c: Likewise.
4371         * config/ia64/crti.asm: Likewise.
4372         * config/ia64/crtn.asm: Likewise.
4373         * config/ia64/fde-glibc.c: Likewise.
4374         * config/ia64/lib1funcs.asm: Likewise.
4375         * config/ia64/linux-unwind.h: Likewise.
4376         * config/ia64/quadlib.c: Likewise.
4377         * config/ia64/unwind-ia64.c: Likewise.
4378         * config/linux.h: Likewise.
4379         * config/m32c/m32c-lib1.S: Likewise.
4380         * config/m32c/m32c-lib2-trapv.c: Likewise.
4381         * config/m32c/m32c-lib2.c: Likewise.
4382         * config/m32r/initfini.c: Likewise.
4383         * config/m68hc11/larith.asm: Likewise.
4384         * config/m68hc11/m68hc11-crt0.S: Likewise.
4385         * config/m68k/cf.md: Likewise.
4386         * config/m68k/crti.s: Likewise.
4387         * config/m68k/crtn.s: Likewise.
4388         * config/m68k/lb1sf68.asm: Likewise.
4389         * config/m68k/linux-unwind.h: Likewise.
4390         * config/mcore/crti.asm: Likewise.
4391         * config/mcore/crtn.asm: Likewise.
4392         * config/mcore/lib1.asm: Likewise.
4393         * config/mips/linux-unwind.h: Likewise.
4394         * config/mips/loongson.h: Likewise.
4395         * config/mips/mips16.S: Likewise.
4396         * config/mmix/crti.asm: Likewise.
4397         * config/mmix/crtn.asm: Likewise.
4398         * config/pa/fptr.c: Likewise.
4399         * config/pa/hpux-unwind.h: Likewise.
4400         * config/pa/lib2funcs.asm: Likewise.
4401         * config/pa/linux-atomic.c: Likewise.
4402         * config/pa/linux-unwind.h: Likewise.
4403         * config/pa/milli64.S: Likewise.
4404         * config/pa/quadlib.c: Likewise.
4405         * config/pa/stublib.c: Likewise.
4406         * config/picochip/libgccExtras/adddi3.asm: Likewise.
4407         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
4408         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
4409         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
4410         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
4411         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
4412         * config/picochip/libgccExtras/divmod15.asm: Likewise.
4413         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
4414         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
4415         * config/picochip/libgccExtras/longjmp.asm: Likewise.
4416         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
4417         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
4418         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
4419         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
4420         * config/picochip/libgccExtras/setjmp.asm: Likewise.
4421         * config/picochip/libgccExtras/subdi3.asm: Likewise.
4422         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
4423         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
4424         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
4425         * config/rs6000/750cl.h: Likewise.
4426         * config/rs6000/altivec.h: Likewise.
4427         * config/rs6000/biarch64.h: Likewise.
4428         * config/rs6000/crtresfpr.asm: Likewise.
4429         * config/rs6000/crtresgpr.asm: Likewise.
4430         * config/rs6000/crtresxfpr.asm: Likewise.
4431         * config/rs6000/crtresxgpr.asm: Likewise.
4432         * config/rs6000/crtsavfpr.asm: Likewise.
4433         * config/rs6000/crtsavgpr.asm: Likewise.
4434         * config/rs6000/darwin-asm.h: Likewise.
4435         * config/rs6000/darwin-fallback.c: Likewise.
4436         * config/rs6000/darwin-fpsave.asm: Likewise.
4437         * config/rs6000/darwin-ldouble.c: Likewise.
4438         * config/rs6000/darwin-tramp.asm: Likewise.
4439         * config/rs6000/darwin-unwind.h: Likewise.
4440         * config/rs6000/darwin-vecsave.asm: Likewise.
4441         * config/rs6000/darwin-world.asm: Likewise.
4442         * config/rs6000/e500crtres32gpr.asm: Likewise.
4443         * config/rs6000/e500crtres64gpr.asm: Likewise.
4444         * config/rs6000/e500crtres64gprctr.asm: Likewise.
4445         * config/rs6000/e500crtrest32gpr.asm: Likewise.
4446         * config/rs6000/e500crtrest64gpr.asm: Likewise.
4447         * config/rs6000/e500crtresx32gpr.asm: Likewise.
4448         * config/rs6000/e500crtresx64gpr.asm: Likewise.
4449         * config/rs6000/e500crtsav32gpr.asm: Likewise.
4450         * config/rs6000/e500crtsav64gpr.asm: Likewise.
4451         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
4452         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
4453         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
4454         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
4455         * config/rs6000/eabi-ci.asm: Likewise.
4456         * config/rs6000/eabi-cn.asm: Likewise.
4457         * config/rs6000/eabi.asm: Likewise.
4458         * config/rs6000/linux-unwind.h: Likewise.
4459         * config/rs6000/linux64.h: Likewise.
4460         * config/rs6000/paired.h: Likewise.
4461         * config/rs6000/paired.md: Likewise.
4462         * config/rs6000/ppc64-fp.c: Likewise.
4463         * config/rs6000/ppu_intrinsics.h: Likewise.
4464         * config/rs6000/rs6000.h: Likewise.
4465         * config/rs6000/si2vmx.h: Likewise.
4466         * config/rs6000/sol-ci.asm: Likewise.
4467         * config/rs6000/sol-cn.asm: Likewise.
4468         * config/rs6000/spe.h: Likewise.
4469         * config/rs6000/spu2vmx.h: Likewise.
4470         * config/rs6000/sysv4.h: Likewise.
4471         * config/rs6000/tramp.asm: Likewise.
4472         * config/rs6000/vec_types.h: Likewise.
4473         * config/s390/linux-unwind.h: Likewise.
4474         * config/s390/tpf-unwind.h: Likewise.
4475         * config/score/crti.asm: Likewise.
4476         * config/score/crtn.asm: Likewise.
4477         * config/sh/crt1.asm: Likewise.
4478         * config/sh/crti.asm: Likewise.
4479         * config/sh/crtn.asm: Likewise.
4480         * config/sh/divtab-sh4-300.c: Likewise.
4481         * config/sh/divtab-sh4.c: Likewise.
4482         * config/sh/divtab.c: Likewise.
4483         * config/sh/lib1funcs-4-300.asm: Likewise.
4484         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
4485         * config/sh/lib1funcs.asm: Likewise.
4486         * config/sh/lib1funcs.h: Likewise.
4487         * config/sh/linux-atomic.asm: Likewise.
4488         * config/sh/linux-unwind.h: Likewise.
4489         * config/sh/shmedia.h: Likewise.
4490         * config/sh/sshmedia.h: Likewise.
4491         * config/sh/ushmedia.h: Likewise.
4492         * config/sparc/crtfastmath.c: Likewise.
4493         * config/sparc/linux-unwind.h: Likewise.
4494         * config/sparc/sol2-c1.asm: Likewise.
4495         * config/sparc/sol2-ci.asm: Likewise.
4496         * config/sparc/sol2-cn.asm: Likewise.
4497         * config/spu/divmodti4.c: Likewise.
4498         * config/spu/divv2df3.c: Likewise.
4499         * config/spu/float_disf.c: Likewise.
4500         * config/spu/float_unsdidf.c: Likewise.
4501         * config/spu/float_unsdisf.c: Likewise.
4502         * config/spu/float_unssidf.c: Likewise.
4503         * config/spu/mfc_multi_tag_release.c: Likewise.
4504         * config/spu/mfc_multi_tag_reserve.c: Likewise.
4505         * config/spu/mfc_tag_release.c: Likewise.
4506         * config/spu/mfc_tag_reserve.c: Likewise.
4507         * config/spu/mfc_tag_table.c: Likewise.
4508         * config/spu/multi3.c: Likewise.
4509         * config/spu/spu_internals.h: Likewise.
4510         * config/spu/spu_intrinsics.h: Likewise.
4511         * config/spu/spu_mfcio.h: Likewise.
4512         * config/spu/vec_types.h: Likewise.
4513         * config/spu/vmx2spu.h: Likewise.
4514         * config/stormy16/stormy16-lib2.c: Likewise.
4515         * config/svr4.h: Likewise.
4516         * config/sync.c: Likewise.
4517         * config/v850/lib1funcs.asm: Likewise.
4518         * config/vxlib-tls.c: Likewise.
4519         * config/vxlib.c: Likewise.
4520         * config/vxworks-dummy.h: Likewise.
4521         * config/xtensa/crti.asm: Likewise.
4522         * config/xtensa/crtn.asm: Likewise.
4523         * config/xtensa/ieee754-df.S: Likewise.
4524         * config/xtensa/ieee754-sf.S: Likewise.
4525         * config/xtensa/lib1funcs.asm: Likewise.
4526         * config/xtensa/lib2funcs.S: Likewise.
4527         * config/xtensa/linux-unwind.h: Likewise.
4528         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4529         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
4530         * coretypes.h: Likewise.
4531         * crtstuff.c: Likewise.
4532         * defaults.h: Likewise.
4533         * dwarf2.h: Likewise.
4534         * emutls.c: Likewise.
4535         * gbl-ctors.h: Likewise.
4536         * gcov-io.h: Likewise.
4537         * ginclude/float.h: Likewise.
4538         * ginclude/iso646.h: Likewise.
4539         * ginclude/stdarg.h: Likewise.
4540         * ginclude/stdbool.h: Likewise.
4541         * ginclude/stddef.h: Likewise.
4542         * ginclude/stdfix.h: Likewise.
4543         * ginclude/stdint-gcc.h: Likewise.
4544         * ginclude/tgmath.h: Likewise.
4545         * gthr-aix.h: Likewise.
4546         * gthr-dce.h: Likewise.
4547         * gthr-gnat.c: Likewise.
4548         * gthr-gnat.h: Likewise.
4549         * gthr-lynx.h: Likewise.
4550         * gthr-mipssde.h: Likewise.
4551         * gthr-nks.h: Likewise.
4552         * gthr-posix.c: Likewise.
4553         * gthr-posix.h: Likewise.
4554         * gthr-posix95.h: Likewise.
4555         * gthr-rtems.h: Likewise.
4556         * gthr-single.h: Likewise.
4557         * gthr-solaris.h: Likewise.
4558         * gthr-tpf.h: Likewise.
4559         * gthr-vxworks.h: Likewise.
4560         * gthr-win32.h: Likewise.
4561         * gthr.h: Likewise.
4562         * libgcc2.c: Likewise.
4563         * libgcc2.h: Likewise.
4564         * libgcov.c: Likewise.
4565         * tsystem.h: Likewise.
4566         * typeclass.h: Likewise.
4567         * unwind-c.c: Likewise.
4568         * unwind-compat.h: Likewise.
4569         * unwind-dw2-fde-compat.c: Likewise.
4570         * unwind-dw2-fde-darwin.c: Likewise.
4571         * unwind-dw2-fde-glibc.c: Likewise.
4572         * unwind-dw2-fde.c: Likewise.
4573         * unwind-dw2-fde.h: Likewise.
4574         * unwind-dw2.c: Likewise.
4575         * unwind-dw2.h: Likewise.
4576         * unwind-generic.h: Likewise.
4577         * unwind-pe.h: Likewise.
4578         * unwind-sjlj.c: Likewise.
4579         * unwind.inc: Likewise.
4580         * config/arm/neon-gen.ml: Change generated copyright header to
4581         refer to version 3 of the GNU General Public License with
4582         version 3.1 of the GCC Runtime Library Exception and to point
4583         readers at the COPYING3 and COPYING3.RUNTIME files and the
4584         FSF's license web page.
4585         * config/arm/arm_neon.h: Regenerate.
4586
4587 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
4588
4589         * config/cris/cris.md: Change copyright header to refer to version
4590         3 of the GNU General Public License.
4591         * doc/install.texi2html: Change copyright header to refer to version
4592         3 of the GNU General Public License and to point readers at the
4593         COPYING3 file and the FSF's license web page.
4594         * config/vax/linux.h: Likewise.
4595
4596 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
4597
4598         * config/i386/i386.md (cmpcc): New.
4599         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
4600         (sync_compare_and_swap_cc*): Delete.
4601
4602         * config/s390/s390.c (s390_compare_emitted): Remove.
4603         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
4604         s390_compare_emitted used to be handled.  Assert that modes match.
4605         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
4606         refer to sync_compare_and_swap_ccsi.
4607         * config/s390/s390.h (s390_compare_emitted): Remove.
4608         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
4609         instead of s390_compare_emitted.
4610         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
4611         instead of s390_compare_emitted.
4612         * config/s390/s390.md (cmpcc): New.
4613         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
4614         CC_REGNUM, do not pretend it's set.
4615         (sync_compare_and_swap_cc*): Delete.
4616         * config/s390/predicates.md (cc_reg_operand): New.
4617
4618         * expr.c (sync_compare_and_swap_cc): Delete.
4619         * optabs.h (sync_compare_and_swap_cc): Delete.
4620         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
4621         is being used with can_compare_p.
4622         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
4623         (find_cc_set): New.
4624         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
4625         look for a MODE_CC set instead.  Use emit_store_flag.
4626         (expand_compare_and_swap_loop): Likewise, with some additional
4627         complication to avoid a force_reg when useless.  Use
4628         emit_cmp_and_jump_insns.
4629         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
4630         * doc/md.texi (sync_compare_and_swap_cc): Merge with
4631         sync_compare_and_swap documentation.
4632
4633 2009-04-09  Jan Hubicka  <jh@suse.cz>
4634
4635         * except.c (find_prev_try): Break out from ....
4636         (duplicate_eh_regions): ... here; properly update prev_try pointers
4637         when duplication part of tree.
4638         (dump_eh_tree): Improve dumping.
4639         (verify_eh_region): New.
4640         (verify_eh_tree): Use it.
4641
4642 2009-04-06  Richard Guenther  <rguenther@suse.de>
4643
4644         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
4645         &ARRAY addresses by adjusting their types and prepending
4646         a conversion.
4647         * tree-cfg.c (verify_gimple_assign_single): Verify that
4648         addresses are correct.
4649
4650 2009-04-09  Richard Guenther  <rguenther@suse.de>
4651
4652         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
4653         indices into an array reference if possible.
4654         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
4655         Fold POINTER_PLUS_EXPR statements with invariant address.
4656
4657 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
4658
4659         PR target/39634
4660         * config.gcc (powerpc64-*-linux*): Always build biarch.
4661
4662 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
4663
4664         PR c/39613
4665         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
4666         it and pedwarn if this results in an INTEGER_CST.
4667
4668 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4669
4670         * doc/install.texi: Update minimum GMP version.  Remove obsolete
4671         text in MPFR section.
4672
4673 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
4674
4675         * dwarf2out.c (class_scope_p): New static inline.
4676         (class_or_namespace_scope_p): Use it.
4677         (gen_variable_die): Use DW_TAG_member tag for static data member
4678         declarations instead of DW_TAG_variable.
4679
4680         PR middle-end/39573
4681         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
4682         variables.
4683
4684 2009-04-08  Richard Guenther  <rguenther@suse.de>
4685
4686         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
4687         valueize random data.
4688
4689 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
4690
4691         * config.gcc (aix tm_file):  Add aix-stdint.h.
4692         (aix tm clause use_gcc_stdint):  Set to wrap.
4693         * config/rs6000/aix-stdint.h:  New file.
4694
4695 2009-04-08  Richard Guenther  <rguenther@suse.de>
4696
4697         PR middle-end/36291
4698         * tree-dfa.c (add_referenced_var): Do not recurse into
4699         global initializers.
4700         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
4701         exposed variables.
4702         (fold_const_aggregate_ref): Likewise.
4703
4704 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
4705
4706         * recog.c (ordered_comparison_operator): New.
4707         * gensupport.c (std_preds): Add it.
4708         * doc/md.texi (Machine-Independent Predicates): Document it.
4709
4710 2009-04-08  Jan Hubicka  <jh@suse.cz>
4711
4712         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
4713         * function.h (rtl_eh): Remove exception_handler_label_map.
4714         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
4715         remove_exception_handler_label, for_each_eh_label_1): Remove.
4716         (rtl_remove_unreachable_regions): Remove.
4717         (convert_from_eh_region_ranges): Do not remove unreachable regions.
4718         (find_exception_handler_labels): Don't build the hashtable.
4719         (maybe_remove_eh_handler): Remove.
4720         (for_each_eh_label): Rewrite to walk the tree.
4721         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
4722         * except.h (maybe_remove_eh_handler): Remove.
4723         * passes.c (init_optimization_passes): Schedule second EH cleanup
4724         before out-of-ssa.
4725         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
4726         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
4727
4728 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
4729
4730         * genoutput.c (validate_optab_operands): New.
4731         (gen_insn, gen_expand): Call it.
4732
4733         * genflags.c (gen_insn): Detect misused iterators.
4734         (main): Pass line_no to gen_insn, exit with status 1 on error.
4735
4736         * genextract.c (line_no): Make global.
4737         (VEC_safe_set_locstr): Change assertion to error message.
4738         (main): Exit with status 1 on error.
4739
4740 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
4741
4742         PR c/39614
4743         PR c/39673
4744         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
4745         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
4746         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
4747         * c-convert.c (convert): Do not call fold on results of conversion
4748         functions when the result is a C_MAYBE_CONST_EXPR.
4749         * c-parser.c (c_parser_postfix_expression): Do not fold condition
4750         of __builtin_choose_expr.
4751         * c-typeck.c (remove_c_maybe_const_expr): New.
4752         (build_unary_op, build_conditional_expr, build_compound_expr,
4753         build_binary_op, c_objc_common_truthvalue_conversion): Call
4754         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
4755         integer operands.
4756
4757 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
4758
4759         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
4760         CODE to produce a new one. Add a prototype to use fold_convert_const
4761
4762 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
4763
4764         PR bootstrap/39660
4765         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
4766         mix declarations and code.
4767
4768 2009-04-08  Ben Elliston  <bje@au.ibm.com>
4769
4770         * gcc.c: Replace `CC' with `GCC' throughout.
4771
4772 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
4773
4774         * doc/invoke.texi: Document Atom support.
4775
4776 2009-04-07  Jason Merrill  <jason@redhat.com>
4777
4778         PR c++/25185
4779         * c-common.h, c-common.c: Add flag_pretty_templates.
4780         * c-opts.c (c_common_handle_option): Set it.
4781         * c.opt: Add -fno-pretty-templates.
4782         * doc/invoke.texi (C++ Dialect Options): Likewise.
4783
4784 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
4785
4786         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
4787         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
4788         (ia64_expand_builtin): Likewise.
4789
4790 2009-04-07  Martin Jambor  <mjambor@suse.cz>
4791
4792         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
4793         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
4794         ADDR_EXPRS are include too.
4795
4796 2009-04-07  Richard Guenther  <rguenther@suse.de>
4797
4798         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
4799         decls are only used if passes as parameters or if they are
4800         local statics and the call is not to a builtin.
4801         (call_may_clobber_ref_p_1): Likewise.
4802
4803 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
4804
4805         * expr.c (do_store_flag): Remove last argument.  Simplify code
4806         to avoid duplication of tests already done by can_compare_p.
4807         (expand_expr_real_1): Adjust caller.
4808
4809 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
4810
4811         * optabs.c (can_compare_p): Test the predicate of a
4812         cbranch and cstore pattern.
4813
4814 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
4815
4816         * expr.c (convert_move): Use emit_store_flag instead of
4817         "emulating" it.
4818
4819 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
4820
4821         * config/i386/i386.c (ix86_compare_emitted): Remove.
4822         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
4823         ix86_compare_op0 like ix86_compare_emitted used to be handled.
4824         * config/i386/i386.h (ix86_compare_emitted): Remove.
4825         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
4826         instead of ix86_compare_emitted.
4827         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
4828
4829 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
4830
4831         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
4832         Add t-sysroot-suffix to tmake_file.
4833         * config/print-sysroot-suffix.sh: New file.
4834         * config/t-sysroot-suffix: New file.
4835
4836 2009-04-07  Ben Elliston  <bje@au.ibm.com>
4837
4838         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
4839         as the latter produces a warning when the target does not support
4840         infinity.
4841
4842 2009-04-07  Ben Elliston  <bje@au.ibm.com>
4843
4844         * dfp.c: Replace type punning assignments with memcpy throughout.
4845         * Makefile.in (dfp.o-warn): Remove.
4846
4847 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
4848
4849         PR target/39634
4850         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
4851         Include soft-fp/t-softfp after rs6000/t-linux64.
4852
4853 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
4854
4855         * stor-layout.c (set_sizetype): Use the full precision of their
4856         machine mode for bitsize types.
4857
4858 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
4859
4860         * config/i386/i386.md: Revert 2 accidental checkins.
4861
4862 2009-04-06  Joey Ye  <joey.ye@intel.com>
4863             Xuepeng Guo  <xuepeng.guo@intel.com>
4864             H.J. Lu  <hongjiu.lu@intel.com>
4865
4866         Atom pipeline model, tuning and insn selection.
4867         * config.gcc (atom): Add atom config options and target.
4868
4869         * config/i386/atom.md: New.
4870
4871         * config/i386/i386.c (atom_cost): New cost.
4872         (m_ATOM): New macro flag.
4873         (initial_ix86_tune_features): Set m_ATOM.
4874         (x86_accumulate_outgoing_args): Likewise.
4875         (x86_arch_always_fancy_math_387): Likewise.
4876         (processor_target): Add Atom cost.
4877         (cpu_names): Add Atom cpu name.
4878         (override_options): Set Atom ISA.
4879         (ix86_issue_rate): New case PROCESSOR_ATOM.
4880         (ix86_adjust_cost): Likewise.
4881
4882         * config/i386/i386.h (TARGET_ATOM): New target macro.
4883         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
4884         (TARGET_OPT_AGU): New target option.
4885         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
4886         (processor_type): Add PROCESSOR_ATOM.
4887
4888         * config/i386/i386.md (cpu): Add new value "atom".
4889         (use_carry, movu): New attr.
4890         (atom.md): Include atom.md.
4891         (adddi3_carry_rex64): Set attr "use_carry".
4892         (addqi3_carry): Likewise.
4893         (addhi3_carry): Likewise.
4894         (addsi3_carry): Likewise.
4895         (*addsi3_carry_zext): Likewise.
4896         (subdi3_carry_rex64): Likewise.
4897         (subqi3_carry): Likewise.
4898         (subhi3_carry): Likewise.
4899         (subsi3_carry): Likewise.
4900         (x86_movdicc_0_m1_rex64): Likewise.
4901         (*x86_movdicc_0_m1_se): Likewise.
4902         (x86_movsicc_0_m1): Likewise.
4903         (*x86_movsicc_0_m1_se): Likewise.
4904         (*adddi_1_rex64): Emit add insn as much as possible.
4905         (*addsi_1): Likewise.
4906         (return_internal): Set atom_unit.
4907         (return_internal_long): Likewise.
4908         (return_pop_internal): Likewise.
4909         (*rcpsf2_sse): Set atom_sse_attr attr.
4910         (*qrt<mode>2_sse): Likewise.
4911         (*prefetch_sse): Likewise.
4912
4913         * config/i386/i386-c.c (ix86_target_macros_internal): New case
4914         PROCESSOR_ATOM.
4915         (ix86_target_macros_internal): Likewise.
4916
4917         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
4918         (*prefetch_sse_rex): Likewise.
4919         (sse_rcpv4sf2): Likewise.
4920         (sse_vmrcpv4sf2): Likewise.
4921         (sse_sqrtv4sf2): Likewise.
4922         (<sse>_vmsqrt<mode>2): Likewise.
4923         (sse_ldmxcsr): Likewise.
4924         (sse_stmxcsr): Likewise.
4925         (*sse_sfence): Likewise.
4926         (sse2_clflush): Likewise.
4927         (*sse2_mfence): Likewise.
4928         (*sse2_lfence): Likewise.
4929         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
4930         (<sse>_movup<ssemodesuffixf2c>): Likewise.
4931         (avx_movdqu<avxmodesuffix>): Likewise.
4932         (avx_lddqu<avxmodesuffix>): Likewise.
4933         (sse2_movntv2di): Change attr "type" to "ssemov".
4934         (sse2_movntsi): Likewise.
4935         (rsqrtv8sf2): Change attr "type" to "sseadd".
4936         (sse3_addsubv2df3): Set attr "atom_unit".
4937         (sse3_h<plusminus_insn>v4sf3): Likewise.
4938         (*sse2_pmaddwd): Likewise.
4939         (*vec_extractv2di_1_rex64): Likewise.
4940         (*vec_extractv2di_1_avx): Likewise.
4941         (sse2_psadbw): Likewise.
4942         (ssse3_phaddwv8hi3): Likewise.
4943         (ssse3_phaddwv4hi3): Likewise.
4944         (ssse3_phadddv4si3): Likewise.
4945         (ssse3_phadddv2si3): Likewise.
4946         (ssse3_phaddswv8hi3): Likewise.
4947         (ssse3_phaddswv4hi3): Likewise.
4948         (ssse3_phsubwv8hi3): Likewise.
4949         (ssse3_phsubwv4hi3): Likewise.
4950         (ssse3_phsubdv4si3): Likewise.
4951         (ssse3_phsubdv2si3): Likewise.
4952         (ssse3_phsubswv8hi3): Likewise.
4953         (ssse3_phsubswv4hi3): Likewise.
4954         (ssse3_pmaddubsw128): Likewise.
4955         (sse3_pmaddubsw: Likewise.
4956         (ssse3_palignrti): Likewise.
4957         (ssse3_palignrdi): Likewise.
4958
4959 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
4960
4961         * doc/install.texi (Specific): Fix two cross-references to MinGW.
4962
4963 2009-04-06  Richard Guenther  <rguenther@suse.de>
4964
4965         PR tree-optimization/28868
4966         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
4967         of which PHI results we inserted.
4968         (insert_into_preds_of_block): Record inserted PHIs.
4969         (eliminate): Eliminate redundant PHI nodes.
4970         (init_pre): Init inserted_phi_names.
4971
4972 2009-04-06  Richard Guenther  <rguenther@suse.de>
4973
4974         PR tree-optimization/39643
4975         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
4976         IMAGPART_EXPRs of complex constants.
4977         (execute_fold_all_builtins): If we folded a call queue
4978         TODO_update_address_taken.
4979
4980 2009-04-06  Jan Hubicka  <jh@suse.cz>
4981
4982         PR middle-end/39659
4983         * except.c (remove_unreachable_regions): Propagate may_contain_throw
4984         flag.
4985
4986 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
4987
4988         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
4989         delay slot.
4990         (ic_invalidate_array): Likewise.
4991
4992 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
4993
4994         * calls.c (emit_library_call_value_1): Fix a problem with parameter
4995         alignment for library calls.
4996
4997 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
4998
4999         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
5000         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
5001         * config/i386/mingw-stdint.h:  New file.
5002
5003 2009-04-05  Richard Guenther  <rguenther@suse.de>
5004
5005         PR tree-optimization/39648
5006         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
5007         our &A vs. &A[0] IL deficiencies.
5008
5009 2009-04-04  Jan Hubicka  <jh@suse.cz>
5010
5011         * except.c (sjlj_find_directly_reachable_regions): Be ready for
5012         removed toplevel regions.
5013         (sjlj_mark_call_sites): Likewise.
5014
5015 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
5016
5017         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
5018         (cygwin tm clause use_gcc_stdint):  Set to wrap.
5019         * config/i386/cygwin-stdint.h:  New file.
5020
5021 2009-04-04  Richard Guenther  <rguenther@suse.de>
5022
5023         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
5024         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
5025         single-argument PHIs if we are in loop-closed SSA form.
5026         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
5027         for the pre-condition.
5028         (slpeel_tree_peel_loop_to_edge): Likewise.
5029         (vect_build_loop_niters): Take an optional sequence to append stmts.
5030         (vect_generate_tmps_on_preheader): Likewise.
5031         (vect_do_peeling_for_loop_bound): Take extra guards for the
5032         pre-condition.
5033         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
5034         the cost model check.
5035         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
5036         guards if we are going to peel.  Do not apply versioning in that case.
5037         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
5038         (vect_do_peeling_for_loop_bound): Likewise.
5039         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
5040         loop bound only record extra pre-conditions, do not apply loop
5041         versioning.
5042
5043 2009-04-04  Richard Guenther  <rguenther@suse.de>
5044
5045         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
5046         renaming code.
5047
5048 2009-04-04  Jan Hubicka  <jh@suse.cz>
5049
5050         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
5051         last_basic_block for size of bb->index indexed array.
5052         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
5053         compute_out, link_btr_uses, build_btr_def_use_webs,
5054         build_btr_def_use_webs, migrate_btr_defs): Likewise.
5055
5056 2009-04-04  Jan Hubicka  <jh@suse.cz>
5057
5058         * except.c (remove_eh_handler_and_replace): Break out from ...
5059         (remove_eh_handler): ... here.
5060         (bring_to_root): New function.
5061         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
5062         handled ones, bring others to root of tree.
5063
5064 2009-04-04  Jan Hubicka  <jh@suse.cz>
5065
5066         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
5067         (all_phis_safe_to_merge): New function.
5068         (update_info): New structure.
5069         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
5070         (cleanup_empty_eh): Update SSA if possible.
5071
5072 2009-04-04  Richard Guenther  <rguenther@suse.de>
5073
5074         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
5075         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
5076         (append_vuse): Likewise.
5077
5078 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
5079
5080         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
5081         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
5082         instead of REG_UNSAVED for DW_CFA_undefined.
5083         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
5084         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
5085         outermost frame.
5086
5087 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
5088
5089         PR target/39501
5090         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
5091         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
5092         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
5093
5094 2009-04-04  Richard Guenther  <rguenther@suse.de>
5095
5096         PR tree-optimization/8781
5097         PR tree-optimization/37892
5098         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
5099         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
5100         (valueize_refs): Call it for *& valueizations.
5101         (shared_reference_ops_from_ref): Rename to ...
5102         (valueize_shared_reference_ops_from_ref): ... this and valueize.
5103         (shared_reference_ops_from_call): Rename to ...
5104         (valueize_shared_reference_ops_from_call): ... this and valueize.
5105         (vn_reference_lookup): Update.
5106         (visit_reference_op_call): Likewise.
5107         * tree-ssa-pre.c (phi_translate_1): Fold *&.
5108         (eliminate): Value-replace the call address in call statements.
5109
5110 2009-04-04  Richard Guenther  <rguenther@suse.de>
5111
5112         PR tree-optimization/39636
5113         * tree-ssa-forwprop.c
5114         (forward_propagate_addr_into_variable_array_index): Check for
5115         GIMPLE_ASSIGN before accessing the rhs code.
5116
5117 2009-04-03  Jason Merrill  <jason@redhat.com>
5118
5119         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
5120
5121 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
5122
5123         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
5124         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
5125         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
5126         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
5127         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
5128         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
5129         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
5130         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
5131         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
5132         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
5133         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
5134         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
5135         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
5136         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
5137         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
5138         Use fr_reg_or_fp01_operand instead of fr_register_operand
5139
5140         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
5141         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
5142         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
5143
5144 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
5145
5146         PR rtl-optimization/39607
5147         PR rtl-optimization/39631
5148
5149         Revert:
5150
5151         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5152         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
5153         instead of DF_LR_OUT.
5154         * ira-lives.c (process_bb_node_lives): Ditto.
5155         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
5156         instead of DF_LR_{OUT,IN}.
5157         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
5158         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
5159
5160 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
5161
5162         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
5163         (execute_lower_omp): Always run but take the short way out if -fopenmp
5164         is not given.
5165         (gate_lower_omp): Remove, forcing the pass manager to always run the
5166         pass and always set PROP_gimple_lomp.
5167         (pass_lower_omp): Remove gate function.
5168         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
5169         PROP_trees.  Instead, require it.
5170         * ipa-cp.c (pass_ipa_cp): Likewise.
5171         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
5172         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
5173         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
5174         and PROP_gimple_leh.
5175
5176 2009-04-03  Richard Guenther  <rguenther@suse.de>
5177
5178         PR middle-end/13146
5179         PR tree-optimization/23940
5180         PR tree-optimization/33237
5181         PR middle-end/33974
5182         PR middle-end/34093
5183         PR tree-optimization/36201
5184         PR tree-optimization/36230
5185         PR tree-optimization/38049
5186         PR tree-optimization/38207
5187         PR tree-optimization/38230
5188         PR tree-optimization/38301
5189         PR tree-optimization/38585
5190         PR middle-end/38895
5191         PR tree-optimization/38985
5192         PR tree-optimization/39299
5193         * tree-ssa-structalias.h: Remove.
5194         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
5195         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
5196         (struct vuse_element_d): Remove.
5197         (struct vuse_vec_d): Likewise.
5198         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
5199         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
5200         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
5201         VUSE_ELEMENT_VAR): Likewise.
5202         (struct voptype_d): Likewise.
5203         (NUM_VOP_FREE_BUCKETS): Likewise.
5204         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
5205         (struct stmt_operands_d): Remove.
5206         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
5207         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
5208         VDEF_NUM, VDEF_VECT): Likewise.
5209         (copy_virtual_operands): Remove.
5210         (operand_build_cmp): Likewise.
5211         (create_ssa_artificial_load_stmt): Likewise.
5212         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
5213         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
5214         vuse_index and mayuse_index members.  Pack and move done and iter_type
5215         members to the front.
5216         (SSA_OP_VMAYUSE): Remove.
5217         (SSA_OP_VIRTUAL_USES): Adjust.
5218         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
5219         (unlink_stmt_vdef): Declare.
5220         (add_to_addressable_set): Remove.
5221         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
5222         (vrp_visit_stmt): Likewise.
5223         * doc/tree-ssa.texi (Alias analysis): Update.
5224         * doc/invoke.texi (max-aliased-vops): Remove docs.
5225         (avg-aliased-vops): Likewise.
5226         * tree-into-ssa.c (syms_to_rename): Remove.
5227         (need_to_update_vops_p): Likewise.
5228         (need_to_initialize_update_ssa_p): Rename to ...
5229         (update_ssa_initialized_fn): ... this.  Track function we are
5230         initialized for.
5231         (symbol_marked_for_renaming): Simplify.
5232         (add_new_name_mapping): Do not set need_to_update_vops_p.
5233         (dump_currdefs): Use SYMS_TO_RENAME.
5234         (rewrite_update_stmt): Always walk all uses/defs.
5235         (dump_update_ssa): Adjust.
5236         (init_update_ssa): Take function argument.  Track what we are
5237         initialized for.
5238         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
5239         (create_new_def_for): Initialize for cfun, assert we are initialized
5240         for cfun.
5241         (mark_sym_for_renaming): Simplify.
5242         (mark_set_for_renaming): Do not initialize update-ssa.
5243         (need_ssa_update_p): Simplify.  Take function argument.
5244         (name_mappings_registered_p): Assert we ask for the correct function.
5245         (name_registered_for_update_p): Likewise.
5246         (ssa_names_to_replace): Likewise.
5247         (release_ssa_name_after_update_ssa): Likewise.
5248         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
5249         (dump_decl_set): Do not print a newline.
5250         (debug_decl_set): Do it here.
5251         (dump_update_ssa): And here.
5252         * tree-ssa-loop-im.c (move_computations): Adjust.
5253         (movement_possibility): Likewise.
5254         (determine_max_movement): Likewise.
5255         (gather_mem_refs_stmt): Likewise.
5256         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
5257         or NAME_MEMORY_TAG.
5258         * tree-complex.c (update_all_vops): Remove.
5259         (expand_complex_move): Adjust.
5260         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
5261         Simplify test for memory referencing statement.  Exclude
5262         non-invariant ADDR_EXPRs.
5263         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
5264         * tree-loop-distribution.c (generate_memset_zero): Adjust.
5265         (rdg_flag_uses): Likewise.
5266         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
5267         related code.
5268         (tree_optimize_tail_calls_1): Also split the
5269         edge from the entry block if we have degenerate PHI nodes in
5270         the first basic block.
5271         * tree.c (init_ttree): Remove memory-tag related code.
5272         (tree_code_size): Likewise.
5273         (tree_node_structure): Likewise.
5274         (build7_stat): Re-write to be build6_stat.
5275         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
5276         (SSA_VAR_P): Adjust.
5277         (struct tree_memory_tag): Remove.
5278         (struct tree_memory_partition_tag): Likewise.
5279         (union tree_node): Adjust.
5280         (build7): Re-write to be build6.
5281         * tree-pass.h (pass_reset_cc_flags): Remove.
5282         (TODO_update_address_taken): New flag.
5283         (pass_simple_dse): Remove.
5284         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
5285         * params.h (MAX_ALIASED_VOPS): Remove.
5286         (AVG_ALIASED_VOPS): Likewise.
5287         * omp-low.c (expand_omp_taskreg): Update SSA form.
5288         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
5289         aliases the lhs in a copy stmt.
5290         * tree-ssa-dse.c (struct address_walk_data): Remove.
5291         (memory_ssa_name_same): Likewise.
5292         (memory_address_same): Likewise.
5293         (get_kill_of_stmt_lhs): Likewise.
5294         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
5295         unused stores.  Look through PHI nodes into post-dominated regions.
5296         (dse_optimize_stmt): Simplify.  Properly remove stores.
5297         (tree_ssa_dse): Compute dominators.
5298         (execute_simple_dse): Remove.
5299         (pass_simple_dse): Likewise.
5300         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
5301         gimple_loaded_syms and gimple_stored_syms computation.
5302         * toplev.c (dump_memory_report): Dump alias and pta stats.
5303         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
5304         (vn_reference_eq): Likewise.
5305         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
5306         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
5307         valueize_vuses): Remove.
5308         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
5309         (get_def_ref_stmt_vuse): ... this.
5310         (vn_reference_lookup_2): New function.
5311         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
5312         walking equivalent vuses.  Simplify.
5313         (vn_reference_lookup): Likewise.
5314         (vn_reference_insert): Likewise.
5315         (vn_reference_insert_pieces): Likewise.
5316         (visit_reference_op_call): Simplify.
5317         (visit_reference_op_load): Likewise.
5318         (visit_reference_op_store): Likewise.
5319         (init_scc_vn): Remove shared_lookup_vuses initialization.
5320         (free_scc_vn): Remove shared_lookup_vuses freeing.
5321         (sort_vuses, sort_vuses_heap): Remove.
5322         (get_ref_from_reference_ops): Export.
5323         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
5324         vector with single vuse pointer.
5325         (vn_reference_lookup_pieces, vn_reference_lookup,
5326         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
5327         (shared_vuses_from_stmt): Remove.
5328         (get_ref_from_reference_ops): Declare.
5329         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
5330         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
5331         memory-tag related code.
5332         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
5333         (likely_value): Add comment, skip static-chain of call statements.
5334         (surely_varying_stmt_p): Adjust.
5335         (gimplify_and_update_call_from_tree): Likewise.
5336         (execute_fold_all_builtins): Do not rebuild alias info.
5337         (gimplify_and_update_call_from_tree): Properly update VOPs.
5338         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
5339         (copy_ref_info): Remove memory-tag related code.
5340         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
5341         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
5342         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
5343         computation.
5344         * tree-ssa-dom.c (gimple_p): Remove typedef.
5345         (eliminate_redundant_computations): Adjust.
5346         (record_equivalences_from_stmt): Likewise.
5347         (avail_expr_hash): Likewise.
5348         (avail_expr_eq): Likewise.
5349         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
5350         (stmt_makes_single_load): Likewise.
5351         (stmt_makes_single_store): Likewise.
5352         * tree-ssa-alias.c: Rewrite completely.
5353         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
5354         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
5355         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
5356         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
5357         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
5358         Remove public functions.
5359         (pass_reset_cc_flags): Remove.
5360         (pass_build_alias): Move ...
5361         * tree-ssa-structalias.c (pass_build_alias): ... here.
5362         * tree-ssa-alias.c (may_be_aliased): Move ...
5363         * tree-flow-inline.h (may_be_aliased): ... here.
5364         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
5365         count_uses_and_derefs): Move ...
5366         * gimple.c: ... here.
5367         * gimple.h (count_uses_and_derefs): Declare.
5368         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
5369         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
5370         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
5371         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
5372         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
5373         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
5374         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
5375         New functions.
5376         * tree-dfa.c (refs_may_alias_p): Move ...
5377         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
5378         * tree-ssa-alias.h: New file.
5379         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
5380         (statement_sink_location): Likewise.
5381         * opts.c (decode_options): Do not adjust max-aliased-vops or
5382         avg-aliased-vops values.
5383         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
5384         (TV_CALL_CLOBBER): Likewise.
5385         (TV_FLOW_SENSITIVE): Likewise.
5386         (TV_FLOW_INSENSITIVE): Likewise.
5387         (TV_MEMORY_PARTITIONING): Likewise.
5388         (TV_ALIAS_STMT_WALK): New timevar.
5389         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
5390         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
5391         (get_address_description): Remove memory-tag related code.
5392         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
5393         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
5394         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
5395         and immediate uses in statements.  Document.
5396         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
5397         (dump_symbols): Remove.
5398         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
5399         * alias.c (get_deref_alias_set): New function split out from ...
5400         (get_alias_set): ... here.
5401         * alias.h (get_deref_alias_set): Declare.
5402         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
5403         type parameter.  Remove restrict pointer handling.  Create a
5404         ref-all pointer in case type-based alias sets do not conflict.
5405         (vect_analyze_data_refs): Remove SMT related code.
5406         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
5407         (vectorizable_load): Likewise.
5408         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
5409         (DR_SYMBOL_TAG, DR_VOPS): Remove.
5410         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
5411         Ignore vops and SMTs.
5412         (dr_analyze_alias): Likewise..
5413         (free_data_ref): Likewise.
5414         (create_data_ref): Likewise.
5415         (analyze_all_data_dependences): Likewise.
5416         (get_references_in_stmt): Adjust.
5417         * tree-flow-inline.h (gimple_aliases_computed_p,
5418         gimple_addressable_vars, gimple_call_clobbered_vars,
5419         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
5420         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
5421         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
5422         gimple_mem_ref_stats): Remove.
5423         (gimple_vop): New function.
5424         (op_iter_next_use): Remove vuses and mayuses cases.
5425         (op_iter_next_def): Remove vdefs case.
5426         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
5427         (clear_and_done_ssa_iter): Do not set removed fields.
5428         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
5429         Assert we are not iterating over vuses or vdefs if not also
5430         iterating over uses or defs.
5431         (op_iter_init_use): Likewise.
5432         (op_iter_init_def): Likewise.
5433         (op_iter_next_vdef): Remove.
5434         (op_iter_next_mustdef): Likewise.
5435         (op_iter_init_vdef): Likewise.
5436         (compare_ssa_operands_equal): Likewise.
5437         (link_use_stmts_after): Handle vuse operand.
5438         (is_call_used): Use is_call_clobbered.
5439         (is_call_clobbered): Global variables are always call clobbered,
5440         query the call-clobbers bitmap.
5441         (mark_call_clobbered): Ignore global variables.
5442         (clear_call_clobbered): Likewise.
5443         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
5444         virtual operands sanity check.
5445         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
5446         Remove.
5447         (TARGET_MEM_REF): Remove TMR_TAG operand.
5448         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
5449         Remove call-clobber related code.
5450         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
5451         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
5452         partitions or escape reason.
5453         (get_single_def_stmt, get_single_def_stmt_from_phi,
5454         get_single_def_stmt_with_phi): Remove.
5455         (dump_referenced_vars): Tidy.
5456         (get_ref_base_and_extent): Allow bare decls.
5457         (collect_dfa_stats): Adjust.
5458         * graphite.c (rename_variables_in_stmt): Adjust.
5459         (graphite_copy_stmts_from_block): Likewise.
5460         (translate_clast): Likewise.
5461         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
5462         (EXPR_DIES): New.
5463         (translate_vuse_through_block): Use the oracle.
5464         (phi_translate_1): Adjust.
5465         (value_dies_in_block_x): Use the oracle.  Cache the outcome
5466         in EXPR_DIES.
5467         (valid_in_sets): Check if the VUSE for
5468         a REFERENCE is available.
5469         (eliminate): Do not remove stmts during elimination,
5470         instead queue and remove them afterwards.
5471         (do_pre): Do not rebuild alias info.
5472         (pass_pre): Run TODO_rebuild_alias before PRE.
5473         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
5474         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
5475         (mark_all_v_defs_stmt): Remove.
5476         (mark_all_v_defs_seq): Adjust.
5477         (sra_replace): Likewise.
5478         (scalarize_use): Likewise.
5479         (scalarize_copy): Likewise.
5480         (scalarize_init): Likewise.
5481         (scalarize_ldst): Likewise.
5482         (todoflags): Remove.
5483         (tree_sra): Do not rebuild alias info.
5484         (tree_sra_early): Adjust.
5485         (pass_sra): Run TODO_update_address_taken before SRA.
5486         * tree-predcom.c (set_alias_info): Remove.
5487         (prepare_initializers_chain): Do not call it.
5488         (mark_virtual_ops_for_renaming): Adjust.
5489         (mark_virtual_ops_for_renaming_list): Remove.
5490         (initialize_root_vars): Adjust.
5491         (initialize_root_vars_lm): Likewise.
5492         (prepare_initializers_chain): Likewise.
5493         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
5494         (may_propagate_copy_into_stmt): Likewise.
5495         (merge_alias_info): Do nothing for now.
5496         (propagate_tree_value_into_stmt): Adjust.
5497         (stmt_may_generate_copy): Likewise.
5498         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
5499         not mark symbols for renaming.
5500         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
5501         with the same statement, make sure to update the new pointed-to one.
5502         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
5503         call statements, do not mark symbols for renaming.
5504         (mark_operand_necessary): Dump something.
5505         (ref_may_be_aliased): New function.
5506         (mark_aliased_reaching_defs_necessary_1): New helper function.
5507         (mark_aliased_reaching_defs_necessary): Likewise.
5508         (mark_all_reaching_defs_necessary_1): Likewise.
5509         (mark_all_reaching_defs_necessary): Likewise.
5510         (propagate_necessity): Do not process virtual PHIs.  For
5511         non-aliased loads mark all reaching definitions as necessary.
5512         For aliased loads and stores mark the immediate dominating
5513         aliased clobbers as necessary.
5514         (visited): New global static.
5515         (perform_tree_ssa_dce): Free visited bitmap after propagating
5516         necessity.
5517         (remove_dead_phis): Perform simple dead virtual PHI removal.
5518         (remove_dead_stmt): Properly unlink virtual operands when
5519         removing stores.
5520         (eliminate_unnecessary_stmts): Schedule PHI removal after
5521         stmt removal.
5522         * tree-ssa-ter.c (is_replaceable_p): Adjust.
5523         (process_replaceable): Likewise.
5524         (find_replaceable_in_bb): Likewise.
5525         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
5526         based on the single gimple vop.
5527         (verify_flow_insensitive_alias_info): Remove.
5528         (verify_flow_sensitive_alias_info): Likewise.
5529         (verify_call_clobbering): Likewise.
5530         (verify_memory_partitions): Likewise.
5531         (verify_alias_info): Likewise.
5532         (verify_ssa): Adjust..
5533         (execute_update_addresses_taken): Export.  Update SSA
5534         manually.  Optimize only when optimizing.  Use a local bitmap.
5535         (pass_update_address_taken): Remove TODO_update_ssa, add
5536         TODO_dump_func.
5537         (pass_update_address_taken): Just use TODO_update_address_taken.
5538         (init_tree_ssa): Do not initialize addressable_vars.
5539         (verify_ssa): Verify new VUSE / VDEF properties.
5540         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
5541         Do not call verify_alias_info.
5542         (delete_tree_ssa): Clear the VUSE, VDEF operands.
5543         Do not free the loaded and stored syms bitmaps.  Reset the escaped
5544         and callused solutions.  Do not free addressable_vars.
5545         Remove memory-tag related code.
5546         (warn_uninitialized_var): Aliases are always available.
5547         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
5548         * lambda-code.c (can_put_in_inner_loop): Adjust.
5549         (can_put_after_inner_loop): Likewise.
5550         (perfect_nestify): Likewise.
5551         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
5552         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
5553         (vectorizable_conversion): Do not mark symbols for renaming.
5554         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
5555         (expand_call_inline): Unlink the calls virtual operands before
5556         replacing it.
5557         (tree_function_versioning): Do not call update_ssa if we are not
5558         updating clones.  Simplify.
5559         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
5560         (propagate_with_phi): Likewise..
5561         * tree-outof-ssa.c (create_temp): Remove memory tag and call
5562         clobber code.  Assert we are not aliased or global.
5563         * tree-flow.h: Include tree-ssa-alias.h
5564         (enum escape_type): Remove.
5565         (struct mem_sym_stats_d): Likewise.
5566         (struct mem_ref_stats_d): Likewise.
5567         (struct gimple_df): Add vop member.  Remove global_var,
5568         call_clobbered_vars, call_used_vars, addressable_vars,
5569         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
5570         escaped and callused members.
5571         (struct ptr_info_def): Remove all members, add points-to solution
5572         member pt.
5573         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
5574         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
5575         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
5576         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
5577         (tree-ssa-alias.o): Likewise.
5578         (toplev.o): Add tree-ssa-alias.h
5579         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
5580         * gimple.c (gimple_set_bb): Fix off-by-one error.
5581         (is_gimple_reg): Do not handle memory tags.
5582         (gimple_copy): Also copy virtual operands.
5583         Delay updating the statement.  Do not reset loaded and stored syms.
5584         (gimple_set_stored_syms): Remove.
5585         (gimple_set_loaded_syms): Likewise.
5586         (gimple_call_copy_skip_args): Copy the virtual operands
5587         and mark the new statement modified.
5588         * tree-ssa-structalias.c (may_alias_p): Remove.
5589         (set_uids_in_ptset): Take the alias set to prune with as
5590         parameter.  Fold in the alias test of may_alias_p.
5591         (compute_points_to_sets): Compute whether a ptr is dereferenced
5592         in a local sbitmap.
5593         (process_constraint): Deal with &ANYTHING on the lhs, reject all
5594         other ADDRESSOF constraints on the lhs.
5595         (get_constraint_for_component_ref): Assert that we don't get
5596         ADDRESSOF constraints from the base of the reference.
5597         Properly generate UNKNOWN_OFFSET for DEREF if needed.
5598         (struct variable_info): Remove collapsed_to member.
5599         (get_varinfo_fc): Remove.
5600         (new_var_info): Do not set collapsed_to.
5601         (dump_constraint): Do not follow cycles.
5602         (dump_constraint_graph): Likewise.
5603         (build_pred_graph): Likewise.
5604         (build_succ_graph): Likewise.
5605         (rewrite_constraints): Likewise.
5606         (do_simple_structure_copy): Remove.
5607         (do_rhs_deref_structure_copy): Remove.
5608         (do_lhs_deref_structure_copy): Remove.
5609         (collapse_rest_of_var): Remove.
5610         (do_structure_copy): Re-implement.
5611         (pta_stats): New global variable.
5612         (dump_pta_stats): New function.
5613         (struct constraint_expr): Make offset signed.
5614         (UNKNOWN_OFFSET): Define special value.
5615         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
5616         (solution_set_expand): New helper function split out from ...
5617         (do_sd_constraint): ... here.
5618         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
5619         (do_ds_constraint): Likewise.
5620         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
5621         and CALLUSED = *CALLUSED.
5622         (set_union_with_increment): Make inc argument signed.
5623         (type_safe): Remove.
5624         (get_constraint_for_ptr_offset): Handle unknown and negative
5625         constant offsets.
5626         (first_vi_for_offset): Handle offsets before start.  Bail
5627         out early for offsets beyond the variable extent.
5628         (first_or_preceding_vi_for_offset): New function.
5629         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
5630         Together with ESCAPED = *ESCAPED this properly computes reachability.
5631         (find_what_var_points_to): New function.
5632         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
5633         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
5634         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
5635         pt_solutions_intersect): New functions.
5636         (compute_call_used_vars): Remove.
5637         (compute_may_aliases): New main entry into PTA computation.
5638         * gimple.h (gimple_p): New typedef.
5639         (struct gimple_statement_base): Remove references_memory_p.
5640         (struct gimple_statement_with_memory_ops_base): Remove
5641         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
5642         members.
5643         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
5644         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
5645         gimple_set_references_memory): Remove.
5646         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
5647         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
5648         New functions.
5649         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
5650         (verify_expr): Allow RESULT_DECL.
5651         (gimple_duplicate_bb): Do not copy virtual operands.
5652         (gimple_duplicate_sese_region): Adjust.
5653         (gimple_duplicate_sese_tail): Likewise.
5654         (mark_virtual_ops_in_region): Remove.
5655         (move_sese_region_to_fn): Do not call it.
5656         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
5657         and pass_simple_dse.
5658         (execute_function_todo): Handle TODO_update_address_taken,
5659         call execute_update_addresses_taken for TODO_rebuild_alias.
5660         (execute_todo): Adjust.
5661         (execute_one_pass): Init dump files early.
5662         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
5663         call-clobbered.
5664         (create_general_new_stmt): Clear vops.
5665         * tree-ssa-reassoc.c (get_rank): Adjust.
5666         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
5667         symbols for renaming.
5668         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
5669         (PARAM_AVG_ALIASED_VOPS): Likewise.
5670         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
5671         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
5672         * tree-ssa-operands.c: Simplify for new virtual operand representation.
5673         (operand_build_cmp, copy_virtual_operands,
5674         create_ssa_artificial_load_stmt, add_to_addressable_set,
5675         gimple_add_to_addresses_taken): Remove public functions.
5676         (unlink_stmt_vdef): New function.
5677
5678 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
5679
5680         * config.gcc (powerpc-*-linux*): Merge variants.
5681
5682 2009-04-02  Chao-ying Fu  <fu@mips.com>
5683             James Grosbach  <james.grosbach@microchip.com>
5684
5685         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
5686         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
5687         cop0_sp_offset.
5688         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
5689         keep_interrupts_masked_p, use_debug_exception_return_p.
5690         (mips_attribute_table): Add interrupt, use_shadow_register_set,
5691         keep_interrupts_masked, use_debug_exception_return.
5692         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
5693         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
5694         New functions.
5695         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
5696         (mips_print_operand): Process COP0 registers to print $0 .. $31
5697         correctly for GAS to process.
5698         (mips_interrupt_extra_call_saved_reg_p): New function.
5699         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
5700         extra registers.
5701         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
5702         (mips_compute_frame_info): Add supports for interrupt context that
5703         includes doubleword accumulators and COP0 registers.
5704         (mips_for_each_saved_acc): New function.
5705         (mips_for_each_saved_gpr_and_fpr): Change the function name from
5706         mips_for_each_saved_reg.
5707         (mips_save_reg): Save accumulators.
5708         (mips_kernel_reg_p): A new for_each_rtx callback.
5709         (mips_expand_prologue): Support interrupt handlers.
5710         (mips_restore_reg): Restore accumulators.
5711         (mips_expand_epilogue): Support interrupt handlers.
5712         (mips_can_use_return_insn): Return false for interrupt handlers.
5713         (mips_epilogue_uses): New function.
5714         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
5715         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
5716         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
5717         cop0_move): New instructions.
5718         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
5719         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
5720         defines.
5721         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
5722         New defines.
5723         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
5724         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
5725         interrupt handlers, we use K0 as the temporary register.
5726         (EPILOGUE_USES): Change to a function call.
5727         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
5728         handlers, we use K0 as the temporary register.
5729
5730         * doc/extend.texi (Function Attributes): Document interrupt,
5731         use_shadow_register_set, keep_interrupts_masked,
5732         use_debug_exception_return for MIPS attributes.
5733
5734 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
5735
5736         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
5737         Remove a number of t-files from tmake_file.
5738         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
5739         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
5740         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
5741         target_prototype, not TARGET_PROTOTYPE.
5742         (LINK_OS_GNU_SPEC): Define.
5743         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
5744         and darwin-ldoubdle.c.
5745
5746 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5747
5748         PR driver/39293
5749         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
5750         (cpp_options): Ditto.
5751         (default_compilers): Ditto.
5752         (display_help): Ditto.
5753         (process_command): Ditto.
5754         (do_spec_1): Ditto.
5755         (set_input): Use lbasename instead of duplicate code.
5756         (save_temps_prefix): New static for -save-temps=obj.
5757         (save_temps_length): Ditto.
5758
5759         * doc/invoke.texi (-save-temps=obj): Document new variant to
5760         -save-temps switch.
5761
5762 2009-04-02  Jeff Law  <law@redhat.com>
5763
5764         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
5765         variable.
5766
5767 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5768
5769         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
5770         * configure: Regenerated.
5771
5772 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
5773
5774         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
5775         share the argument list.
5776
5777 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
5778
5779         Merge
5780
5781         2009-02-12  Diego Novillo  <dnovillo@google.com>
5782
5783         * varpool.c (debug_varpool): New.
5784         * cgraph.h (debug_varpool): Declare.
5785
5786 2009-04-02  Jan Hubicka  <jh@suse.cz>
5787
5788         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
5789         pass.
5790
5791 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5792
5793         * config/i386/i386.c (ix86_abi): Move initialization to ...
5794         (override_options): Here.
5795
5796 2009-04-02  Christian Bruel  <christian.bruel@st.com>
5797
5798         * config/sh/sh.c (sh_dwarf_register_span): New function.
5799         (TARGET_DWARF_REGISTER_SPAN): Define.
5800         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
5801
5802 2009-04-02  Ira Rosen  <irar@il.ibm.com>
5803
5804         PR tree-optimization/39595
5805         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
5806         interleaved loads group is not  greater than the SLP group size.
5807
5808 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
5809
5810         * builtins.c (is_builtin_name): New.
5811         (called_as_built_in): Use is_builtin_name.
5812         * tree.h (is_builtin_name): New.
5813         * varasm.c (incorporeal_function_p): Use is_builtin_name
5814
5815 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
5816
5817         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
5818
5819 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
5820
5821         PR c++/26693
5822         * c-decl.c (clone_underlying_type): Move this ...
5823         * c-common.c (set_underlying_type): ... here.
5824         Also, make sure the function properly sets TYPE_STUB_DECL() on
5825         the newly created typedef variant type.
5826         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
5827         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
5828         points.
5829
5830 2009-04-02  Richard Guenther  <rguenther@suse.de>
5831
5832         PR tree-optimization/37221
5833         * tree-flow.h (degenerate_phi_result): Declare.
5834         * tree-ssa-dom.c (degenerate_phi_result): Export.
5835         * tree-scalar-evolution.c (analyze_initial_condition): If
5836         the initial condition is defined by a degenerate PHI node
5837         use the degenerate value.
5838
5839 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
5840
5841         PR rtl-optimization/39588
5842         * combine.c (merge_outer_ops): Do not set the constant when this
5843         is not necessary.
5844         (simplify_shift_const_1): Do not modify it either in this case.
5845
5846 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
5847
5848         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
5849         tuning is deprecated if -mtune value is set to an Itanium1 variant.
5850
5851 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
5852
5853         PR c/29027
5854         * c-lex.c (interpret_float): Default (no suffix) is double.
5855
5856 2009-04-1  Xinliang David Li  <davidxl@google.com>
5857
5858         * config/i386/i386.c (legitimate_constant_p): Recognize
5859         all one vector constant.
5860
5861 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
5862
5863         * config/vax/vax.c: Add #includes to silence warnings.
5864         Change #include order to silence two warnings.
5865
5866 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
5867
5868         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
5869         (ASM_SPEC): Pass -k to the assembler for PIC code.
5870
5871 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
5872
5873         * config.gcc: Add vax-*-linux* to the switch.
5874         * config/vax/linux.h: New file. (TARGET_VERSION,
5875         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
5876
5877 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
5878
5879         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
5880         Use predicate macros instead of GET_CODE() == foo.
5881         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
5882         ashlsi3, rotrsi3, <unnamed>): Likewise.
5883
5884 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
5885
5886         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
5887         jbbccihi, jbbccisi): Remova trailing whitespace.
5888         * config/vax/constraints.md: Likewise.
5889         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
5890         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
5891         * config/vax/predicates.md: Likewise.
5892         * config/vax/vax.c (print_operand_address, vax_output_int_move,
5893         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
5894         * config/vax/vax.h: Likewise.
5895         * config/vax/vax.md (nonlocal_goto): Likewise.
5896
5897 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
5898
5899         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
5900         (indirectable_address_p, adjacent_operands_p): Add spaces around
5901         braces.
5902         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
5903
5904 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
5905
5906         * config/vax/vax.c (legitimate_constant_address_p,
5907         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
5908         index_term_p, reg_plus_index_p, legitimate_address_p,
5909         vax_mode_dependent_address_p): Update comments to match functions
5910         modified by the recent int->bool conversion.
5911
5912 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
5913
5914         * config/vax/builtins.md: Update copyright message.
5915         * config/vax/constraints.md: Likewise.
5916         * config/vax/netbsd-elf.h: Likewise.
5917         * config/vax/predicates.md: Likewise.
5918         * config/vax/vax-protos.h: Likewise.
5919         * config/vax/vax.c: Likewise.
5920         * config/vax/vax.h: Likewise.
5921         * config/vax/vax.md: Likewise.
5922         * config/vax/vax.opt: Likewise.
5923
5924 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
5925
5926         * config/vax/builtins.md (ffssi2, ffssi2_internal,
5927         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
5928         * config/vax/constraints.md (B, R): Likewise.
5929         * config/vax/predicates.md (external_memory_operand,
5930         nonimmediate_addsub_di_operand): Likewise.
5931         * config/vax/vax.c (vax_output_int_add): Likewise.
5932         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
5933         untyped_call): Likewise.
5934
5935 2009-04-01  Matt Thomas  <matt@3am-software.com>
5936
5937         * config/vax/predicates.md: New file.
5938         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
5939         external_const_operand, nonsymbolic_operand, external_memory_operand,
5940         indirect_memory_operand, indexed_memory_operand,
5941         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
5942         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
5943         predicate.
5944         * config/vax/constraints.md: New file.
5945         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
5946         New constraint.
5947         * config/vax/builtins.md: New file.
5948         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
5949         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
5950         jbbccisi): Define.
5951         * config/vax/vax.opt (mqmath): Add option.
5952         * config/vax/vax.md (isfx): Extend with DI.
5953         (VAXintQH, VAXintQHSD): Define.
5954         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
5955         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
5956         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
5957         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
5958         (movdi): Update constraints and use vax_output_int_move().
5959         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
5960         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
5961         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
5962         nonlocal_goto): New.
5963         (mov<mode>): Extend accepted operand types.
5964         (subdi3_old): Rename from subdi3, change update constraints and use
5965         a new implementation.
5966         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
5967         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
5968         MOVE_RATIO, CLEAR_RATIO): Define.
5969         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
5970         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
5971         (PRINT_OPERAND): Redefine using a function instead of inlined code.
5972         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
5973         (split_quadword_operands): Make static and really allow variable
5974         splitting.
5975         (print_operand_address): Update for PIC generation.
5976         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
5977         indexable_address_p, fixup_mathdi_operand,
5978         vax_expand_addsub_di_operands, adjacent_operands_p): New.
5979         (vax_float_literal, legitimate_constant_p,
5980         indirectable_constant_address_p, index_term_p,
5981         reg_plus_index_p): Return bool instead of int.
5982         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
5983         where needed.
5984         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
5985         generation.
5986         (vax_output_conditional_branch): Indent.
5987         (legitimate_constant_address_p, indirectable_constant_address_p,
5988         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
5989         vax_mode_dependent_address_p): Return bool instead of int, update for
5990         PIC generation.
5991         * config/vax/vax-protos.h (legitimate_constant_address_p,
5992         legitimate_constant_p, legitimate_address_p,
5993         vax_mode_dependent_address_p): Change declaration to bool.
5994         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
5995         vax_expand_addsub_di_operands, vax_output_int_subtract,
5996         vax_output_movmemsi): Declare.
5997         (split_quadword_operands, vax_float_literal): Delete declaration.
5998         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
5999         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
6000         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
6001         ASM_OUTPUT_DWARF_PCREL): Define.
6002         (ASM_SPEC): Change definition to allow PIC generation.
6003
6004 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
6005
6006         * doc/sourcebuild.texi: Update front-end requirements.
6007
6008 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
6009
6010         PR target/39226
6011         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
6012         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
6013         (booldi3_internal3): Use boolean_or_operator instead of
6014         boolean_operator.
6015
6016 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
6017
6018         PR c/39605
6019         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
6020         declarator whose size is not an integer constant expression but
6021         folds to an integer constant, then treat it as a constant
6022         subsequently.
6023
6024 2009-04-01  Richard Guenther  <rguenther@suse.de>
6025
6026         * fold-const.c (fold_plusminus_mult_expr): Do not fold
6027         i * 4 + 2 to (i * 2 + 1) * 2.
6028
6029 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
6030
6031         PR c/37772
6032         * c-parser.c (c_parser_asm_statement): Skip until close paren and
6033         return if c_parser_asm_string_literal returned NULL.
6034
6035 2009-04-01  Nick Clifton  <nickc@redhat.com>
6036
6037         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
6038         already defined.
6039         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
6040         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
6041         other typedefs to avoid conflicts with libgcc2.c.  Define labels
6042         to gain 16-bit bit-manipulation functions from libgcc2.c and then
6043         include it.
6044         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
6045         to gain 16-bit trapping arithmetic functions from libgcc2.c and
6046         then include it.
6047
6048 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
6049
6050         * varasm.c (default_function_rodata_section): Declare DOT as
6051         const char*.
6052
6053 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
6054             Andrey Galkin  <agalkin@hypercom.com>
6055
6056         PR/39492
6057         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
6058         Make object_name unique for each process.
6059
6060 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
6061
6062         PR other/39591
6063         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
6064         addressable variables in the parallel that could go out of scope while
6065         running queued tasks.
6066
6067 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
6068
6069         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
6070         (CASE_VALUES_THRESHOLD): Redefine.
6071         * config/avr/avr.c (avr_override_options): Remove initialization of
6072         avr_case_values_threshold variable.
6073         (avr_case_values_threshold): Remove variable. Add new function.
6074         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
6075         * config/avr/avr.opt (mno-tablejump): Remove option.
6076         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
6077
6078 2009-04-01  DJ Delorie  <dj@redhat.com>
6079
6080         * varasm.c (default_function_rodata_section): Don't assume
6081         anything about where the first '.' in the section name is.
6082
6083 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
6084
6085         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
6086         rs6000_emit_stack_tie.
6087
6088 2009-03-31  Ian Lance Taylor  <iant@google.com>
6089
6090         * tree-eh.c (tree_remove_unreachable_handlers): Compare
6091         gimple_code with GIMPLE_RESX, not RESX.
6092
6093 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
6094
6095         * c-common.c (c_get_ident): New.
6096         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
6097
6098 2009-04-01  Ben Elliston  <bje@au.ibm.com>
6099
6100         * config/rs6000/sysv4.opt (msdata): Improve option description.
6101
6102 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
6103
6104         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
6105         (divdf3_internal_lat): Remove.
6106         (divxf3_internal_lat): Remove.
6107         (divxf3_internal_thr): Remove.
6108         (divxf): Use divxf3_internal.
6109         * config/ia64/div.md (divsf3_internal_lat): New.
6110         (divdf3_internal_lat): New.
6111         (divxf3_internal): New.
6112
6113 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
6114
6115         PR c/448
6116         * Makefile.in (USE_GCC_STDINT): Define.
6117         (stmp-int-hdrs): Install stdint.h if applicable.
6118         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
6119         if known.
6120         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
6121         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
6122         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
6123         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6124         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
6125         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
6126         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
6127         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6128         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
6129         (c_common_nodes_and_builtins): Initialize
6130         underlying_wchar_type_node.  Do not initialize
6131         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
6132         nodes for new types.
6133         (c_stddef_cpp_builtins): Define macros for new types.
6134         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
6135         Remove.
6136         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
6137         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
6138         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
6139         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
6140         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
6141         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
6142         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
6143         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
6144         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
6145         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
6146         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
6147         int16_type_node, int32_type_node, int64_type_node,
6148         uint8_type_node, uint16_type_node, c_uint32_type_node,
6149         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
6150         int_least32_type_node, int_least64_type_node,
6151         uint_least8_type_node, uint_least16_type_node,
6152         uint_least32_type_node, uint_least64_type_node,
6153         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
6154         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
6155         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
6156         uintptr_type_node): Define.
6157         * c-cppbuiltin.c (builtin_define_constants,
6158         builtin_define_type_minmax): New.
6159         (builtin_define_stdint_macros): Define more macros.
6160         (c_cpp_builtins): Define more limit macros.
6161         (type_suffix): New.
6162         (builtin_define_type_max): Define in terms of
6163         builtin_define_type_minmax.  Remove is_long parameter.  All
6164         callers changed.
6165         * config.gcc (use_gcc_stdint): Define.
6166         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
6167         Add newlib-stdint.h for generic targets.
6168         * config/glibc-stdint.h, config/newlib-stdint.h,
6169         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
6170         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
6171         * config/score/score.h (UINTPTR_TYPE): Define.
6172         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
6173         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
6174         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6175         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
6176         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
6177         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
6178         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6179         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
6180         * config/spu/spu.h (STDINT_LONG32): Define.
6181         * configure.ac (use_gcc_stdint): Substitute.
6182         * configure: Regenerate.
6183         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
6184         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
6185         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
6186         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
6187         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
6188         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
6189         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
6190         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
6191         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
6192         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
6193         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
6194         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
6195         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
6196         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
6197         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
6198         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
6199         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
6200         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
6201         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
6202         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
6203         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
6204         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
6205         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
6206         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6207         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
6208         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
6209         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
6210         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6211         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
6212
6213 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
6214
6215         * loop-iv.c (suitable_set_for_replacement): Renamed from
6216         simplify_using_assignment; changed to return bool and to accept new
6217         args DEST and SRC.  Return true iff we find a source/destination pair
6218         that can be used to make a replacement, and fill SRC and DEST if so.
6219         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
6220         changed.
6221         (simplify_using_initial_values): Deal with altered regs here and track
6222         more precisely the effect they have on the validity of our expression.
6223
6224         * loop-iv.c (simplify_using_condition): A condition of the form
6225         (EQ REG CONST) can be used to simply make a substitution.
6226         (simplify_using_initial_values): Keep track of conditions we have seen
6227         and keep using them to simplify new expressions, while applying the
6228         same substitutions to them as to the expression.
6229
6230         * simplify-rtx.c (simplify_relational_operation_1): Simplify
6231         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
6232         GEU/LTU reversed.
6233
6234         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
6235         changed.  Use this when trying to improve the upper bound.
6236         Generate the comparison by using simplify_gen_relational.
6237
6238         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
6239
6240         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
6241         functions.
6242         (simplify_using_assignment, simplify_using_initial_values): Call
6243         replace_in_expr to make replacements.  Call replace_single_def_regs
6244         once on the initial version of the expression.
6245
6246 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6247
6248         PR target/27237
6249         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
6250
6251 2009-03-31  Richard Guenther  <rguenther@suse.de>
6252
6253         PR middle-end/31029
6254         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
6255         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
6256
6257 2009-03-31  Richard Guenther  <rguenther@suse.de>
6258
6259         * tree.h (div_if_zero_remainder): Declare.
6260         * fold-const.c (div_if_zero_remainder): Export.
6261         * tree-ssa-forwprop.c
6262         (forward_propagate_addr_into_variable_array_index): Handle
6263         constant array index addition outside of the variable index.
6264
6265 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
6266
6267         PR target/39592
6268         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
6269         define_splits, floatunssi<mode>2): Require x87 conversions from
6270         DImode to be permitted.
6271
6272 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
6273
6274         PR preprocessor/15638
6275         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
6276
6277 2009-03-31  Richard Guenther  <rguenther@suse.de>
6278
6279         PR middle-end/23401
6280         PR middle-end/27810
6281         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
6282         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
6283         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
6284         a separate statement.
6285         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
6286         (lookup_tmp_var): Likewise.
6287         (is_gimple_formal_tmp_or_call_rhs): Remove.
6288         (is_gimple_reg_or_call_rhs): Rename to ...
6289         (is_gimple_reg_rhs_or_call): ... this.
6290         (is_gimple_mem_or_call_rhs): Rename to ...
6291         (is_gimple_mem_rhs_or_call): ... this.
6292         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
6293         DECL_GIMPLE_REG_P only if is_formal is true.
6294         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
6295         for non-proper post-modify expression gimplification.
6296         (gimplify_self_mod_expr): For post-modify expressions gimplify
6297         the lvalue to a minimal lvalue.
6298         (rhs_predicate_for): Remove formal temp case.
6299         (gimplify_modify_expr_rhs): Likewise.
6300         (gimplify_addr_expr): Use is_gimple_reg.
6301         (gimplify_expr): Remove formal temp cases.
6302         (gimple_regimplify_operands): Likewise.
6303         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
6304         and FILTER_EXPR like constants.
6305         * gimple.c (walk_gimple_op): Fix val_only initialization, use
6306         is_gimple_reg.
6307         (is_gimple_formal_tmp_rhs): Remove.
6308         (is_gimple_reg_rhs): Remove special casing.
6309         (is_gimple_mem_rhs): Fix.
6310         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
6311         (is_gimple_formal_tmp_var): Remove.
6312         (is_gimple_formal_tmp_reg): Likewise.
6313         (is_gimple_min_lval): Allow invariant component ref parts.
6314         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
6315         is_gimple_formal_tmp_reg): Remove declarations.
6316         * tree-cfg.c (verify_expr): Verify that variables with address
6317         taken do not have DECL_GIMPLE_REG_P set.
6318         * tree-mudflap.c (mf_build_check_statement_for): Use
6319         force_gimple_operand instead of gimplify_expr.
6320
6321 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
6322
6323         * modulo-sched.c (sms_schedule_by_order): Pass the actual
6324         schedulable rows to compute_split_row.
6325
6326 2009-03-31  Ben Elliston  <bje@au.ibm.com>
6327
6328         PR target/31635
6329         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
6330         OPT_mvrsave.
6331
6332 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
6333
6334         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
6335         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
6336         * configure: Regenerate.
6337         * config.in: Regenerate.
6338         * config/rs6000/rs6000.opt (mtls-markers): Add.
6339         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
6340         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
6341         (tls_ld_aix, tls_ld_sysv): Likewise.
6342         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
6343         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
6344
6345 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
6346
6347         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
6348
6349 2009-03-30  Jan Hubicka  <jh@suse.cz>
6350
6351         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
6352         out of RESX.
6353         (tree_remove_unreachable_handlers): Cleanup EH predecestor
6354         detection and label handling.
6355
6356 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6357
6358         * ira-int.h (ira_allocno): Rename left_conflicts_num to
6359         left_conflicts_size.
6360         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
6361         ALLOCNO_LEFT_CONFLICTS_SIZE.
6362
6363         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
6364         remove_allocno_from_bucket_and_push,
6365         allocno_spill_priority_compare, push_allocnos_to_stack,
6366         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
6367         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
6368         (setup_allocno_left_conflicts_num): Ditto.  Rename to
6369         setup_allocno_left_conflicts_size.
6370         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
6371         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
6372         setup_allocno_left_conflicts_size instead of
6373         setup_allocno_left_conflicts_num.
6374
6375         * ira-build.c (ira_create_allocno): Use
6376         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
6377         ALLOCNO_LEFT_CONFLICTS_NUM.
6378
6379 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
6380
6381         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
6382         instead of DF_LR_OUT.
6383
6384         * ira-lives.c (process_bb_node_lives): Ditto.
6385
6386         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
6387         instead of DF_LR_{OUT,IN}.
6388
6389         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
6390
6391         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
6392
6393 2009-03-30  Jan Hubicka  <jh@suse.cz>
6394
6395         * except.c (label_to_region_map): Fix thinko.
6396
6397 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
6398
6399         PR middle-end/38237
6400         * tree.h (tree_find_value): New declaration.
6401         * tree.c (tree_find_value): New function.
6402         * varasm.c (assemble_external): Avoid duplicate entries on lists.
6403
6404 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
6405
6406         PR debug/39563
6407         * c-decl.c (struct c_binding): Add locus field.
6408         (bind): Add locus argument, set locus field from it.
6409         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
6410         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
6411         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
6412         implicitly_declare, undeclared_variable, lookup_label,
6413         declare_label, c_make_fname_decl, c_builtin_function,
6414         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
6415         bind callers.
6416
6417 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
6418
6419         PR target/38781
6420         * config/i386/i386.c (classify_argument): Check total size of
6421         structure.
6422
6423 2009-03-30  Martin Jambor  <mjambor@suse.cz>
6424
6425         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
6426         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
6427         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
6428         respectively.
6429
6430         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
6431         seen_variable_array_ref while also traversing a union.
6432
6433         * tree-inline.c (optimize_inline_calls): Do not call
6434         cgraph_node_remove_callees.
6435         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
6436         (pass_remove_cgraph_callee_edges): New variable.
6437         * passes.c (init_optimization_passes): Add
6438         pass_remove_cgraph_callee_edges after early inlining and before all
6439         late intraprocedural passes.
6440
6441         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
6442
6443 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
6444
6445         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
6446         Fix typos in names.
6447
6448 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
6449
6450         * combine.c (simplify_comparison): Use have_insn_for.
6451         * dojump.c (do_jump): Likewise.
6452
6453 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
6454
6455         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
6456         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
6457         sparc_compare_op0 like sparc_compare_emitted used to be handled.
6458         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
6459         instead of sparc_compare_emitted.
6460         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
6461         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
6462         instead of sparc_compare_emitted.
6463
6464 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
6465
6466         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
6467         enter/exit cfglayout mode.
6468         (pass_partition_block): Require it.
6469         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
6470         (combine_instructions): Track basic blocks instead of labels.
6471         (update_cfg_for_uncondjump): New.
6472         (try_combine): Use it.  Update jumps after rescanning.
6473         (pass_combine): Require PROP_cfglayout.
6474         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
6475
6476 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
6477
6478         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
6479         Provide/destroy PROP_cfglayout respectively.
6480         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
6481         * tree-pass.h (PROP_cfglayout): New.
6482
6483 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
6484
6485         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
6486         fold_convert_const_fixed_from_fixed,
6487         fold_convert_const_fixed_from_int,
6488         fold_convert_const_fixed_from_real, fold_negate_const): Do not
6489         set TREE_CONSTANT_OVERFLOW.
6490         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
6491         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
6492
6493 2009-03-30  Ira Rosen  <irar@il.ibm.com>
6494
6495         * tree-vect-loop-manip.c: New file.
6496         * tree-vectorizer.c: Update documentation and included files.
6497         (vect_loop_location): Make extern.
6498         (rename_use_op): Move to tree-vect-loop-manip.c
6499         (rename_variables_in_bb, rename_variables_in_loop,
6500         slpeel_update_phis_for_duplicate_loop,
6501         slpeel_update_phi_nodes_for_guard1,
6502         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
6503         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
6504         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
6505         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
6506         find_loop_location): Likewise.
6507         (new_stmt_vec_info): Move to tree-vect-stmts.c.
6508         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
6509         get_vectype_for_scalar_type, vect_is_simple_use,
6510         supportable_widening_operation, supportable_narrowing_operation):
6511         Likewise.
6512         (bb_in_loop_p): Move to tree-vect-loop.c.
6513         (new_loop_vec_info, destroy_loop_vec_info,
6514         reduction_code_for_scalar_code, report_vect_op,
6515         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
6516         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
6517         (vect_supportable_dr_alignment): Likewise.
6518         * tree-vectorizer.h (tree-data-ref.h): Include.
6519         (vect_loop_location): Declare.
6520         Reorganize function declarations according to the new file structure.
6521         * tree-vect-loop.c: New file.
6522         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
6523         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
6524         * tree-vect-data-refs.c: New file.
6525         * tree-vect-patterns.c (timevar.h): Don't include.
6526         * tree-vect-stmts.c: New file.
6527         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
6528         tree-vect-slp.c, tree-vect-loop.c.
6529         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
6530         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
6531         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
6532         (tree-vect-analyze.o): Remove.
6533         (tree-vect-transform.o): Likewise.
6534         (tree-vect-data-refs.o): Add rule.
6535         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
6536         tree-vect-slp.o): Likewise.
6537         (tree-vect-patterns.o): Remove redundant dependencies.
6538         (tree-vectorizer.o): Likewise.
6539         * tree-vect-slp.c: New file.
6540
6541 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6542
6543         * optc-gen.awk: Warn if an option flag has multiple different
6544         help strings.
6545
6546 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
6547
6548         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
6549         -floop-block): Document dependences on PPL, CLooG and Graphite.
6550
6551 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
6552
6553         PR rtl-optimization/323
6554         * c-common.c (c_fully_fold, convert_and_check,
6555         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
6556         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
6557         * c-common.def (EXCESS_PRECISION_EXPR): New.
6558         * c-cppbuiltin.c (builtin_define_float_constants): Define
6559         constants with enough digits for long double.
6560         * c-lex.c (interpret_float): Interpret constant with excess
6561         precision where appropriate.
6562         * c-opts.c (c_common_post_options): Set
6563         flag_excess_precision_cmdline.  Give an error for
6564         -fexcess-precision=standard for C++ for processors where the
6565         option is significant.
6566         * c-parser.c (c_parser_conditional_expression): Handle excess
6567         precision in condition.
6568         * c-typeck.c (convert_arguments): Handle arguments with excess
6569         precision.
6570         (build_unary_op): Move excess precision outside operation.
6571         (build_conditional_expr): Likewise.
6572         (build_compound_expr): Likewise.
6573         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
6574         (build_modify_expr): Handle excess precision in RHS.
6575         (convert_for_assignment): Handle excess precision in converted
6576         value.
6577         (digest_init, output_init_element, process_init_element): Handle
6578         excess precision in initializer.
6579         (c_finish_return): Handle excess precision in return value.
6580         (build_binary_op): Handle excess precision in operands and add
6581         excess precision as needed for operation.
6582         * common.opt (-fexcess-precision=): New option.
6583         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
6584         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
6585         For standard excess precision, output explicit conversion to and
6586         truncation from XFmode.
6587         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
6588         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
6589         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
6590         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
6591         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
6592         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
6593         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
6594         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
6595         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
6596         define_splits, sqrt<mode>2): Disable where appropriate for
6597         standard excess precision.
6598         * convert.c (convert_to_real): Do not shorten arithmetic to type
6599         for which excess precision would be used.
6600         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
6601         * doc/invoke.texi (-fexcess-precision=): Document option.
6602         (-mfpmath=): Correct index entry.
6603         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
6604         flag_excess_precision): New.
6605         * langhooks.c (lhd_post_options): Set
6606         flag_excess_precision_cmdline.
6607         * opts.c (common_handle_option): Handle -fexcess-precision=.
6608         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
6609         init_excess_precision): New.
6610         (lang_dependent_init_target): Call init_excess_precision.
6611         * tree.c (excess_precision_type): New.
6612         * tree.h (excess_precision_type): Declare.
6613
6614 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
6615
6616         PR c/35235
6617         * c-typeck.c (build_component_ref): Do not copy qualifiers from
6618         non-lvalue to component.
6619
6620 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
6621
6622         PR preprocessor/34695
6623         * Makefile.in (c-opts.o): Depend on c-tree.h.
6624         * c-common.c: Move down include of diagnostic.h.
6625         (done_lexing, c_cpp_error): New.
6626         * c-common.h (done_lexing): Declare.
6627         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
6628         (parse_in).
6629         * c-opts.c: Include c-tree.h.
6630         (c_common_init_options): Set preprocessor error callback.
6631         (c_common_handle_option): Do not set preprocessor
6632         inhibit_warnings, warnings_are_errors, warn_system_headers,
6633         pedantic_errors or inhibit_warnings flags.
6634         (c_common_post_options): Do not check cpp_errors (parse_in).
6635         (c_common_finish): Do not output dependencies if there were
6636         errors.  Do not check return value of cpp_finish.
6637         * c-ppoutput.c (pp_file_change): Set input_location.
6638         * c-tree.h (c_cpp_error): Declare.
6639         * diagnostic.c (diagnostic_set_info_translated): Also initialize
6640         override_column.
6641         (diagnostic_build_prefix): Check override_column.
6642         * diagnostic.h (diagnostic_info): Add override_column field.
6643         (diagnostic_override_column): Define.
6644
6645 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
6646
6647         * c-common.c (c_expand_expr, c_staticp): Remove.
6648         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
6649         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
6650         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
6651         * c-gimplify.c (gimplify_compound_literal_expr,
6652         optimize_compound_literals_in_ctor): Remove.
6653         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
6654         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
6655         * c-semantics.c (emit_local_var): Remove.
6656
6657         * langhooks-def.h (lhd_expand_expr): Remove.
6658         * langhooks.c (lhd_expand_expr): Remove.
6659         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
6660
6661         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
6662         handling from c-semantics.c; don't call into langhook.
6663         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
6664         * gimplify.c (gimplify_compound_literal_expr,
6665         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
6666         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
6667         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
6668         as was done in c-gimplify.c.
6669         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
6670         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
6671         Move from c-common.h.
6672         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
6673
6674         * tree.c (staticp): Do not call langhook.
6675         * langhooks.c (lhd_staticp): Delete.
6676         * langhooks-def.h (lhd_staticp): Delete prototype.
6677         (LANG_HOOKS_STATICP): Delete.
6678         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
6679
6680         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
6681         instead of DECL_STMTs.
6682
6683 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
6684
6685         PR c/456
6686         PR c/5675
6687         PR c/19976
6688         PR c/29116
6689         PR c/31871
6690         PR c/35198
6691         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
6692         void_type_node.
6693         (fold_call_expr): Return a NOP_EXPR from folding rather than the
6694         contained expression.
6695         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
6696         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
6697         conditional expressions for C.
6698         (decl_constant_value_for_optimization): Move from
6699         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
6700         whether optimizing and that the expression is a VAR_DECL not of
6701         array type instead of doing such checks in the caller.  Do not
6702         check pedantic.  Call gcc_unreachable for C++.
6703         * c-common.def (C_MAYBE_CONST_EXPR): New.
6704         * c-common.h (c_fully_fold, c_save_expr,
6705         decl_constant_value_for_optimization): New prototypes.
6706         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
6707         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
6708         EXPR_INT_CONST_OPERANDS): Define.
6709         * c-convert.c (convert): Strip nops from expression.
6710         * c-decl.c (groktypename): Take extra parameters expr and
6711         expr_const_operands.  Update call to grokdeclarator.
6712         (start_decl): Update call to grokdeclarator.  Add statement for
6713         expressions used in type of decl.
6714         (grokparm): Update call to grokdeclarator.
6715         (push_parm_decl): Update call to grokdeclarator.
6716         (build_compound_literal): Add parameter non_const and build a
6717         C_MAYBE_COSNT_EXPR if applicable.
6718         (grokdeclarator): Take extra parameters expr and
6719         expr_const_operands.  Track expressions used in declaration
6720         specifiers and declarators.  Fold array sizes and track whether
6721         they are constant expressions and whether they are integer
6722         constant expressions.
6723         (parser_xref_tag): Set expr and expr_const_operands fields in
6724         return value.
6725         (grokfield): Update call to grokdeclarator.
6726         (start_function): Update call to grokdeclarator.
6727         (build_null_declspecs): Set expr and expr_const_operands fields in
6728         return value.
6729         (declspecs_add_type): Handle expressions in typeof specifiers.
6730         * c-parser.c (c_parser_declspecs): Set expr and
6731         expr_const_operands fields for declaration specifiers.
6732         (c_parser_enum_specifier): Likewise.
6733         (c_parser_struct_or_union_specifier): Likewise.
6734         (c_parser_typeof_specifier): Likewise.  Update call to
6735         groktypename.  Fold expression as needed.  Return expressions with
6736         type instead of adding statements.
6737         (c_parser_attributes): Update calls to c_parser_expr_list.
6738         (c_parser_statement_after_labels): Fold expression before passing
6739         to objc_build_throw_stmt.
6740         (c_parser_condition): Fold expression.
6741         (c_parser_asm_operands): Fold expression.
6742         (c_parser_conditional_expression): Use c_save_expr.  Update call
6743         to build_conditional_expr.
6744         (c_parser_alignof_expression): Update call to groktypename.
6745         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
6746         original_code.  Fold expression argument of va_arg.  Create
6747         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
6748         argument to va_arg.  Update calls to groktypename.  Fold array
6749         index for offsetof.  Verify that first argument to
6750         __builtin_choose_expr has integer type.
6751         (c_parser_postfix_expression_after_paren_type): Update calls to
6752         groktypename and build_compound_literal.  Handle expressions with
6753         side effects in type name.
6754         (c_parser_postfix_expression_after_primary): Update call to
6755         c_parser_expr_list.  Set original_code for calls to
6756         __builtin_constant_p.
6757         (c_parser_expr_list): Take extra parameter fold_p.  Fold
6758         expressions if requested.
6759         (c_parser_objc_type_name): Update call to groktypename.
6760         (c_parser_objc_synchronized_statement): Fold expression.
6761         (c_parser_objc_receiver): Fold expression.
6762         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
6763         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
6764         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
6765         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
6766         (struct c_typespec): Add elements expr and expr_const_operands.
6767         (struct c_declspecs): Add elements expr and expr_const_operands.
6768         (groktypename, build_conditional_expr, build_compound_literal):
6769         Update prototypes.
6770         (in_late_binary_op): Declare.
6771         * c-typeck.c (note_integer_operands): New function.
6772         (in_late_binary_op): New variable.
6773         (decl_constant_value_for_broken_optimization): Move to c-common.c
6774         and rename to decl_constant_value_for_optimization.
6775         (default_function_array_conversion): Do not strip nops.
6776         (default_conversion): Do not call
6777         decl_constant_value_for_broken_optimization.
6778         (build_array_ref): Do not fold result.
6779         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
6780         result when operand is a VLA.
6781         (c_expr_sizeof_type): Update call to groktypename.  Handle
6782         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
6783         result when operand names a VLA type.
6784         (build_function_call): Update call to build_compound_literal.
6785         Only fold result for calls to __builtin_* functions.  Strip
6786         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
6787         the function designator.
6788         (convert_arguments): Fold arguments.  Update call to
6789         convert_for_assignment.
6790         (build_unary_op): Handle increment and decrement of
6791         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
6792         decrement earlier.  Fold operand of increment and decrement.
6793         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
6794         built for integer operand.  Wrap returns that are INTEGER_CSTs
6795         without being integer constant expressions or that have integer
6796         constant operands without being INTEGER_CSTs.
6797         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
6798         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
6799         result is an integer constant expression or can be used in
6800         unevaluated parts of one and avoid folding and wrap as
6801         appropriate.  Fold operands before possibly doing -Wsign-compare
6802         warnings.
6803         (build_compound_expr): Wrap result for C99 if operands can be used
6804         in integer constant expressions.
6805         (build_c_cast): Update call to digest_init.  Do not ignore
6806         overflow from casting floating-point constants to integers.  Wrap
6807         results that could be confused with integer constant expressions,
6808         null pointer constants or floating-point constants.
6809         (c_cast_expr): Update call to groktypename.  Handle expressions
6810         included in type name.
6811         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
6812         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
6813         Update calls to convert_for_assignment.
6814         (convert_for_assignment): Take new parameter
6815         null_pointer_constant.  Do not strip nops or call
6816         decl_constant_value_for_broken_optimization.  Set
6817         in_late_binary_op for conversions to boolean.
6818         (store_init_value): Update call to digest_init.
6819         (digest_init): Take new parameter null_pointer_constant.  Do not
6820         call decl_constant_value_for_broken_optimization.  pedwarn for
6821         initializers not constant expressions.  Update calls to
6822         convert_for_assignment.
6823         (constructor_nonconst): New.
6824         (struct constructor_stack): Add nonconst element.
6825         (really_start_incremental_init, push_init_level, pop_init_level):
6826         Handle constructor_nonconst and nonconst element.
6827         (set_init_index): Call constant_expression_warning for array
6828         designators.
6829         (output_init_element): Fold value.  Set constructor_nonconst as
6830         applicable.  pedwarn for initializers not constant expressions.
6831         Update call to digest_init.  Call constant_expression_warning
6832         where constant initializers are required.
6833         (process_init_element): Use c_save_expr.
6834         (c_finish_goto_ptr): Fold expression.
6835         (c_finish_return): Fold return value.  Update call to
6836         convert_for_assignment.
6837         (c_start_case): Fold switch expression.
6838         (c_process_expr_stmt): Fold expression.
6839         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
6840         ensure statement expression is not evaluated in constant expression.
6841         (build_binary_op): Track whether results are integer constant
6842         expressions or may occur in such, disable folding and wrap results
6843         as applicable.  Fold operands for -Wsign-compare warnings unless
6844         in_late_binary_op.
6845         (c_objc_common_truthvalue_conversion): Handle results folded to
6846         integer constants that are not integer constant expressions.
6847         * doc/extend.texi: Document when typeof operands are evaluated,
6848         that condition of __builtin_choose_expr is an integer constant
6849         expression, and more about use of __builtin_constant_p in
6850         initializers.
6851
6852 2009-03-29  Richard Guenther  <rguenther@suse.de>
6853
6854         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
6855         propagate addresses of array references.
6856
6857 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
6858
6859         * regmove.c (perhaps_ends_bb_p): Remove.
6860         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
6861         from INSN and check that the main loop stays within that basic block.
6862         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
6863         (regmove_forward_pass): Split out from regmove_optimize.  Use
6864         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
6865         (regmove_backward_pass): Split out from regmove_optimize.  Use
6866         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
6867         (regmove_optimize): Simplify.
6868
6869 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
6870
6871         PR target/39545
6872         * config/i386/i386.c (classify_argument): Ignore flexible array
6873         member in struct and warn ABI change.
6874
6875 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
6876
6877         * config/i386/i386-protos.h (ix86_agi_dependent): New.
6878
6879         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
6880         (ix86_adjust_cost): Updated.
6881
6882 2009-03-29  Jan Hubicka  <jh@suse.cz>
6883
6884         PR middle-end/28850
6885         * tree-pass.h (pass_cleanup_eh): New function.
6886         (remove_unreachable_regions): Break code handling RTL
6887         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
6888         that can not be reached by runtime.
6889         (can_be_reached_by_runtime): New function.
6890         (label_to_region_map): New function.
6891         (num_eh_regions): New function.
6892         (rtl_remove_unreachable_regions): New function.
6893         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
6894         (remove_eh_region): New function.
6895         * except.h: Include sbitmap and vecprim.
6896         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
6897         num_eh_regions): Declare.
6898         * passes.c (init_optimization_passes): Schedule cleanup_eh.
6899         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
6900         * tree-eh.c (tree_remove_unreachable_handlers): New function.
6901         (tree_empty_eh_handler_p): New function.
6902         (cleanup_empty_eh): New function.
6903         (cleanup_eh): New function.
6904         (pass_cleanup_eh): New function.
6905
6906 2009-03-29  Jan Hubicka  <jh@suse.cz>
6907
6908         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
6909         for removed regions.
6910
6911 2009-03-29  Jan Hubicka  <jh@suse.cz>
6912
6913         * except.c (dump_eh_tree): Dump all datastructures.
6914
6915 2009-03-29  Jan Hubicka  <jh@suse.cz>
6916
6917         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
6918         (duplicate_eh_regions_1): Likewise.
6919         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
6920         vector; call EH verification.
6921         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
6922         Be ready for region being removed.
6923
6924 2009-03-29  Jan Hubicka  <jh@suse.cz>
6925
6926         * bitmap.c (bitmap_last_set_bit): New function.
6927         * bitmap.h (bitmap_last_set_bit): Declare.
6928
6929 2009-03-29  David Ayers  <ayers@fsfe.org>
6930
6931         PR objc/27377
6932         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
6933         by calling objc_compare_types and surpress warnings about
6934         incompatible C pointers that are compatible ObjC pointers.
6935
6936 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
6937
6938         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
6939         call initialize_inline_failed.
6940         (initialize_inline_failed): Move it from here ...
6941         * cgraph.c (initialize_inline_failed): ... to here.
6942         (cgraph_create_edge): Call initialize_inline_failed rather than
6943         setting inline_failed directly.
6944
6945 2009-03-29  Ben Elliston  <bje@au.ibm.com>
6946
6947         PR target/32542
6948         * sysv4.opt (msdata): Improve comment.
6949         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
6950         * sysv4.h (SVR4_ASM_SPEC): Likewise.
6951
6952 2009-03-29  Ben Elliston  <bje@au.ibm.com>
6953
6954         PR target/30451
6955         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
6956         load and store attributes.
6957
6958 2009-03-29  Ben Elliston  <bje@au.ibm.com>
6959
6960         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
6961         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
6962         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
6963         * doc/extend.texi (X86 Built-in Functions): Add index entries for
6964         __builtin_infq and __builtin_huge_valq.
6965
6966 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
6967
6968         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
6969         atmega8m1 devices.
6970         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
6971         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
6972
6973 2009-03-28  Xinliang David Li  <davidxl@google.com>
6974
6975         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
6976         (do_dbg_cnt): New function.
6977
6978 2009-03-28  Jan Hubicka  <jh@suse.cz>
6979
6980         Merge from pretty-ipa:
6981
6982         2009-03-27  Jan Hubicka  <jh@suse.cz>
6983
6984         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
6985         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
6986         * passes.c (function_called_by_processed_nodes_p): New.
6987         * ipa-pure-const.c (check_call): Fix handling of operands.
6988         (analyze_function): Dump debug output for skipped bodies.
6989         (local_pure_const): Use function_called_by_processed_nodes_p.
6990         * dwarf2out.c (reference_to_unused): Use output.
6991         * passes.c (do_per_function_toporder): Likewise.
6992
6993         2008-11-12  Jan Hubicka  <jh@suse.cz>
6994
6995         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
6996         * ipa-pure-const.c (funct_state_d): Add can throw field; make
6997         state_set_in_source enum
6998         (check_decl): Ignore memory tags; do not set fake looping flags;
6999         dump diagnostics.
7000         (check_operand, check_tree, check_rhs_var, check_lhs_var,
7001         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
7002         (check_call, analyze_function): Rewrite.
7003         (check_stmt): New.
7004         (add_new_function): Update call of analyze_function.
7005         (generate_summary): Add call of analyze_function.
7006         (propagate): Propagate can_throw; handle state_set_in_source correctly.
7007         (local_pure_const): New function.
7008         (pass_local_pure_const): New pass.
7009         * ipa-inline.c (inline_transform): Set after_inlining.
7010         * tree-eh.c (stmt_can_throw_external): New.
7011         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
7012         work with aliasing built.
7013         * tree-flow.h (stmt_can_throw_external): New.
7014         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
7015         and local pure/const pass in early and late optimization queue.
7016
7017 2009-03-28  Martin Jambor  <mjambor@suse.cz>
7018
7019         * fold-const.c (get_pointer_modulus_and_residue): New parameter
7020         allow_func_align.
7021         (fold_binary): Allow function decl aligment consideration is the
7022         second argument is integer constant one.
7023         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
7024         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
7025         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
7026
7027 2009-03-28  Jan Hubicka  <jh@suse.cz>
7028
7029         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
7030         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
7031         * function.h (rtl_data): Add nothrow flag.
7032         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
7033         set DECL_NOTHROW for AVAILABLE functions.
7034
7035 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
7036
7037         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
7038         following vector keyword has expansion starting with pixel or bool
7039         keyword, expand vector to __vector and pixel or bool to __pixel or
7040         __bool.
7041
7042         PR c++/39554
7043         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
7044         warn_if_disallowed_function_p): Removed.
7045         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
7046         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
7047         warning_if_disallowed_function_p.
7048         * flags.h (warn_if_disallowed_function_p,
7049         warn_disallowed_functions): Removed.
7050         * common.opt (Wdisallowed-function-list=): Removed.
7051         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
7052
7053 2009-03-28  Richard Guenther  <rguenther@suse.de>
7054
7055         PR tree-optimization/38723
7056         * tree-ssa-pre.c (compute_avail): Add all default definitions to
7057         the entry block.
7058
7059 2009-03-28  Jan Hubicka  <jh@suse.cz>
7060
7061         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
7062         test introduced by my previous patch.
7063
7064 2009-03-28  Richard Guenther  <rguenther@suse.de>
7065
7066         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
7067         the PHIs value undefined.
7068
7069 2009-03-28  Jan Hubicka  <jh@suse.cz>
7070
7071         * tree-pass.h (pass_fixup_cfg): New pass.
7072         * ipa-inline.c (inline_transform): Set
7073         always_inline_functions_inlined/after_inlining.
7074         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
7075         (pass_fixup_cfg): New pass.
7076         * passes.c (init_optimization_passes): Add fixup_cfg.
7077
7078 2009-03-28  Richard Guenther  <rguenther@suse.de>
7079
7080         PR tree-optimization/38458
7081         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
7082         argument use the arguments copy-of value.
7083
7084 2009-03-28  Richard Guenther  <rguenther@suse.de>
7085
7086         PR tree-optimization/38180
7087         * tree-ssa-ccp.c (get_default_value): Simplify.
7088         (likely_value): Likewise.
7089         (surely_varying_stmt_p): Properly handle VOP case.
7090         (ccp_initialize): Likewise.
7091         (ccp_fold): Handle propagating through *&.
7092         (fold_const_aggregate_ref): Also handle decls.
7093
7094 2009-03-28  Jan Hubicka  <jh@suse.cz>
7095
7096         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
7097         * cgraph.h (cgraph_node): Likewise.
7098         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
7099         (cgraph_reset_node): Use process flag.
7100         (cgraph_mark_functions_to_output): Likewise.
7101         (cgraph_expand_function): Likewise.
7102         (cgraph_expand_all_functions): Likewise.
7103         (cgraph_output_in_order): Likewise.
7104         * dwarf2out.c (reference_to_unused): Likewise.
7105         * passes.c do_per_function_toporder): Likewise.
7106
7107 2009-03-28  Jan Hubicka  <jh@suse.cz>
7108
7109         Bring from lto-branch:
7110
7111         2008-09-03  Doug Kwan  <dougkwan@google.com>
7112
7113         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
7114         enums instead of reason strings.
7115         * cgraph.c (cgraph_create_edge): Same.
7116         (cgraph_inline_failed_string): New function.
7117         * cgraph.h (cgraph_inline_failed_t): New enum type.
7118         (cgraph_inline_failed_string): New prototype.
7119         (struct cgraph_edge): Change type of INLINED_FAILED from constant
7120         char pointer to cgraph_inline_failed_t.
7121         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
7122         (cgraph_default_inline_p): Ditto.
7123         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
7124         to cgraph_inline_failed_t pointer.
7125         * cif-code.def: New file.
7126         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
7127         reason string.
7128         (cgraph_check_inline_limits): Change type of REASON to pointer to
7129         cgraph_inline_failed_t.  Replace reason strings with enums.
7130         (cgraph_default_inline_p): Ditto.
7131         (cgraph_recursive_inlining_p): Ditto.
7132         (update_caller_keys): Change type of FAILED_REASON to
7133         cgraph_inline_failed_t.
7134         (cgraph_set_inline_failed): Change type of REASON to pointer to
7135         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
7136         convert enums to strings for text output.
7137         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
7138         to be of type cgraph_inline_failed_t.  Replace reason strings with
7139         enums.  Call cgraph_inline_failed_string to covert enums
7140         to strings for text output.
7141         (cgraph_decide_inlining): Replace reason strings with enums.
7142         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
7143         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
7144         for text output.
7145         * tree-inline.c (expand_call_inline): Change type of REASON
7146         to cgraph_inline_failed_t.  Replace reason strings with enums.
7147         Call cgraph_inline_failed_string for text output.
7148         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
7149         (cgraph.o): Ditto.
7150
7151 2009-03-28  Jan Hubicka  <jh@suse.cz>
7152
7153         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
7154         cgraph_clone_node): Remove master clone handling.
7155         (cgraph_is_master_clone, cgraph_master_clone): Remove.
7156         * cgraph.h (master_clone): Remove.
7157         (cgraph_is_master_clone, cgraph_master_clone): Remove.
7158         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
7159         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7160
7161 2009-03-28  Jan Hubicka  <jh@suse.cz>
7162
7163         * cgraph.c (cgraph_function_body_availability): Functions declared
7164         inline are always safe to assume that it is not going to be replaced.
7165
7166 2009-03-28  Richard Guenther  <rguenther@suse.de>
7167
7168         PR tree-optimization/38513
7169         * tree-ssa-pre.c (eliminate): Remove redundant stores.
7170         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7171         EXC_PTR_EXPR and FILTER_EXPR.
7172         (get_ref_from_reference_ops): Likewise.
7173
7174 2009-03-28  Richard Guenther  <rguenther@suse.de>
7175
7176         PR tree-optimization/38968
7177         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
7178         Use FLOOR_MOD_EXPR to compute misalignment.
7179
7180 2009-03-28  Richard Guenther  <rguenther@suse.de>
7181
7182         PR tree-optimization/37795
7183         * tree.h (combine_comparisons): Declare.
7184         * fold-const.c (combine_comparisons): Export.
7185         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
7186         comparisons.
7187         (ifcombine_iforif): Use combine_comparisons.
7188
7189 2009-03-28  Jan Hubicka  <jh@suse.cz>
7190
7191         * tree-eh.c (inlinable_call_p): New function.
7192         (make_eh_edges): Use it.
7193         (verify_eh_edges): Use it.
7194         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
7195         * except.c (reachable_next_level): Add inlinable_function argument
7196         (sjlj_find_directly_reachable_regions): Update.
7197         (add_reachable_handler): Do not set saw_any_handlers.
7198         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
7199         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
7200         Add new inlinable call parameter.
7201         (can_throw_internal, can_throw_external): Update.
7202         * except.h (can_throw_internal_1, can_throw_external_1,
7203         foreach_reachable_handler): Update declaration.
7204
7205 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
7206
7207         * config/arm/t-arm-coff, config/h8300/coff.h,
7208         config/i386/i386-aout.h, config/i386/i386-coff.h,
7209         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
7210         config/pdp11/2bsd.h, config/rs6000/aix41.h,
7211         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
7212         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
7213         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
7214         sys-types.h: Remove.
7215         * Makefile.in: Remove protoize and fixproto support and references
7216         in comments.
7217         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
7218         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
7219         Remove.
7220         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
7221         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
7222         unprotoize$(exeext).
7223         (rest.encap): Don't depend on $(STMP_FIXPROTO)
7224         (.PHONY): Don't depend on proto.
7225         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
7226         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
7227         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
7228         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
7229         build/gen-protos.o, build/scan.o, xsys-protos.h,
7230         build/fix-header$(build_exeext), build/fix-header.o,
7231         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
7232         stmp-install-fixproto): Remove.
7233         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
7234         SYSCALLS.c or fixproto files.
7235         (install-common): Don't install protoize.
7236         (install-headers-tar, install-headers-cpio, install-headers-cp):
7237         Don't depend on $(STMP_FIXPROTO).
7238         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
7239         install fixproto files or write out fixproto settings.
7240         (uninstall): Don't uninstall protoize.
7241         * config.gcc (use_fixproto): Remove.
7242         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
7243         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
7244         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
7245         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
7246         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
7247         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
7248         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
7249         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
7250         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
7251         * config/t-vxworks (STMP_FIXPROTO): Remove.
7252         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
7253         STMP_FIXPROTO): Remove.
7254         * config.in, configure: Regenerate.
7255         * crtstuff.c (gid_t, uid_t): Don't undefine.
7256         * doc/install.texi: Change m68k-coff to m68k-elf in example.
7257         (arm-*-coff, arm-*-aout: Remove target entries.
7258         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
7259         Remove mention of AIX 4.1.
7260         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
7261         * doc/invoke.texi (Running Protoize): Remove.
7262         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
7263         (Protoize Caveats): Remove.
7264         * tsystem.h: Update comments on headers assumed to exist.
7265
7266 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
7267
7268         * genautomata.c: Add a new year to the copyright.  Add a new
7269         reference.
7270         (struct insn_reserv_decl): Add comments for member bypass_list.
7271         (find_bypass): Remove.
7272         (insert_bypass): New.
7273         (process_decls): Use insert_bypass.
7274         (output_internal_insn_latency_func): Output all bypasses with the
7275         same input insn in one switch case.
7276
7277         * rtl.def (define_bypass): Describe bypass choice.
7278         * doc/md.texi (define_bypass): Ditto.
7279
7280 2009-03-27  Richard Guenther  <rguenther@suse.de>
7281
7282         * gimplify.c (mark_addressable): Export.
7283         * tree-flow.h (mark_addressable): Declare.
7284         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
7285         * tree-ssa.c (verify_phi_args): Verify that address taken
7286         variables have TREE_ADDRESSABLE set.
7287
7288 2009-03-27  Richard Guenther  <rguenther@suse.de>
7289
7290         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
7291         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
7292         Do not mark decls TREE_ADDRESSABLE.
7293         (build_fold_addr_expr): Adjust.
7294         (fold_addr_expr): Remove.
7295         (fold_unary): Use build_fold_addr_expr.
7296         (fold_comparison): Likewise.
7297         (split_address_to_core_and_offset): Likewise.
7298         * coverage.c (tree_coverage_counter_addr): Mark the array decl
7299         TREE_ADDRESSABLE.
7300         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
7301         (gimplify_modify_expr_to_memcpy): Mark source and destination
7302         addressable.
7303         * omp-low.c (create_omp_child_function): Mark the object decl
7304         TREE_ADDRESSABLE.
7305         (lower_rec_input_clauses): Mark the var we take the address of
7306         TREE_ADDRESSABLE.
7307         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
7308
7309 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7310
7311         PR middle-end/39315
7312         * cfgexpand.c (expand_one_stack_var_at): Change alignment
7313         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
7314
7315 2009-03-27  Richard Guenther  <rguenther@suse.de>
7316
7317         PR tree-optimization/39120
7318         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
7319         constraints.
7320         (handle_lhs_call): Process return constraints.  Add escape
7321         constraints if necessary.
7322         (handle_const_call): Fill out return constraints.  Make nested
7323         case more precise.  Avoid consttmp if possible.
7324         (handle_pure_call): Fill out return constraints.  Avoid
7325         callused if possible.
7326         (find_func_aliases): Simplify call handling.
7327
7328 2009-03-27  Richard Guenther  <rguenther@suse.de>
7329
7330         PR tree-optimization/39120
7331         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
7332         as a representative.
7333         (solve_graph): Do propagate CALLUSED.
7334         (handle_pure_call): Use a scalar constraint from CALLUSED for
7335         the return value.
7336         (find_what_p_points_to): CALLUSED shall not appear in poins-to
7337         solutions.
7338
7339 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7340
7341         PR c/39323
7342         * c-common.c (handle_aligned_attribute): Properly check alignment
7343         overflow.  Use (1U << i) instead of (1 << i).
7344
7345         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
7346
7347         * expr.h (get_mem_align_offset): Updated.
7348
7349         * tree.h (tree_decl_common): Change align to "unsigned int" and
7350         move it before pointer_alias_set.
7351
7352 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7353             Jakub Jelinek  <jakub@redhat.com>
7354
7355         PR target/38034
7356         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
7357         gr_register_operand with gr_reg_or_0_operand.
7358         (cmpxchg_rel_di): Likewise.
7359         (sync_lock_test_and_set<mode>): Likewise.
7360
7361 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7362
7363         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
7364         (true_regnum): Likewise.
7365
7366         * rtlanal.c (subreg_info): Moved to ...
7367         * rtl.h (subreg_info): Here.  New.
7368         (subreg_get_info): New.
7369
7370         * rtlanal.c (subreg_get_info): Make it extern.
7371
7372 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7373
7374         PR target/39472
7375         * config/i386/i386.c (ix86_abi): New.
7376         (override_options): Handle -mabi=.
7377         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
7378         (ix86_call_abi_override): Likewise.
7379         (init_cumulative_args): Likewise.
7380         (function_arg_advance): Likewise.
7381         (function_arg_64): Likewise.
7382         (function_arg): Likewise.
7383         (ix86_pass_by_reference): Likewise.
7384         (ix86_function_value_regno_p): Likewise.
7385         (ix86_build_builtin_va_list_abi): Likewise.
7386         (setup_incoming_varargs_64): Likewise.
7387         (is_va_list_char_pointer): Likewise.
7388         (ix86_init_machine_status): Likewise.
7389         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
7390         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
7391         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
7392         (ix86_function_abi): Make it static and return enum calling_abi.
7393         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
7394         with ix86_abi.
7395         (ix86_fn_abi_va_list): Updated.
7396
7397         * config/i386/i386.h (ix86_abi): New.
7398         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
7399         (CONDITIONAL_REGISTER_USAGE): Likewise.
7400         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
7401         (machine_function): Likewise.
7402
7403         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
7404         with ix86_abi.
7405         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
7406         (STACK_BOUNDARY): Likewise.
7407         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
7408
7409         * config/i386/i386.opt (mabi=): New.
7410
7411         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
7412         return enum calling_abi.
7413         (ix86_function_type_abi): Likewise.
7414         (ix86_function_abi): Removed.
7415
7416         * doc/invoke.texi: Document -mabi= option for x86.
7417
7418 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7419
7420         * builtins.c (real_dconstp): Delete.
7421         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
7422
7423 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
7424             Jakub Jelinek  <jakub@redhat.com>
7425
7426         PR debug/37959
7427         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
7428         (gen_subprogram_die): When a function is explicit, generate the
7429         DW_AT_explicit attribute.
7430         * langhooks.h (struct lang_hooks_for_decls): Add
7431         function_decl_explicit_p langhook.
7432         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
7433         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
7434
7435 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
7436
7437         * builtins.c (fold_builtin_memory_op): Optimize memmove
7438         into memcpy if we can prove source and destination don't overlap.
7439
7440         * tree-inline.c: Include gt-tree-inline.h.
7441         (clone_fn_id_num): New variable.
7442         (clone_function_name): New function.
7443         (tree_function_versioning): Use it.
7444         * Makefile.in (GTFILES): Add tree-inline.c.
7445
7446 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
7447
7448         * BASE-VER: Change to 4.5.0.
7449
7450 2009-03-27  Xinliang David Li  <davidxl@google.com>
7451
7452         PR tree-optimization/39557
7453         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
7454
7455 2009-03-27  Xinliang David Li  <davidxl@google.com>
7456
7457         PR tree-optimization/39548
7458         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
7459         candidate check.
7460
7461 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7462
7463         * c-common.c (pointer_int_sum): Use %wd on return from
7464         tree_low_cst.
7465
7466 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
7467
7468         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
7469         on return from tree_low_cst.
7470
7471 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7472
7473         PR c++/36799
7474         * ginclude/stdarg.h (va_copy): Define also for
7475         __GXX_EXPERIMENTAL_CXX0X__.
7476
7477 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7478
7479         PR c++/35652
7480         * builtins.h (c_strlen): Do not warn here.
7481         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
7482         * c-common.c (pointer_int_sum): Take an explicit location.
7483         Warn about offsets out of bounds.
7484         * c-common.h (pointer_int_sum): Adjust declaration.
7485
7486 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7487
7488         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
7489         markup glitch.
7490
7491 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
7492
7493         PR c++/39554
7494         * opts.c (warn_if_disallowed_function_p): Don't assume
7495         get_callee_fndecl must return non-NULL.
7496
7497 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
7498
7499         PR rtl-optimization/39522
7500         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
7501         when reg_reloaded_valid is set.
7502
7503 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7504
7505         * config/spu/divv2df3.c: New file.
7506         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
7507         (DPBIT_FUNCS): Filter out _div_df.
7508
7509 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
7510
7511         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
7512         a jump insn, count that jump in the distance to the loop start.
7513
7514 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
7515
7516         PR target/39523
7517         * config/sh/sh.c (calc_live_regs): Fix condition for global
7518         registers except PIC_OFFSET_TABLE_REGNUM.
7519
7520 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
7521
7522         PR/39518
7523         * doc/invoke.texi (-mconsole): New.
7524         (-mcygwin): New.
7525         (-mno-cygwin): New.
7526         (-mdll): New.
7527         (-mnop-fun-dllimport): New.
7528         (-mthread): New.
7529         (-mwin32): New.
7530         (-mwindows): New.
7531         (sub section "i386 and x86-64 Windows Options"): New.
7532
7533 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
7534
7535         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
7536         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
7537
7538 2009-03-25  Richard Guenther  <rguenther@suse.de>
7539
7540         PR middle-end/39497
7541         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
7542         of -Wno-error.
7543
7544 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
7545
7546         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
7547         neither of haifa/selective schedulers are working.
7548
7549 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7550
7551         * doc/invoke.texi (Debugging Options): Fix description of
7552         -fno-merge-debug-strings.
7553
7554 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
7555
7556         * config/cris/libgcc.ver: New version-script.
7557         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
7558
7559         * configure.ac <GAS features, nop mnemonic>: Add pattern
7560         crisv32-*-* for "nop".
7561         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
7562         * configure: Regenerate.
7563
7564 2009-03-24  Ira Rosen  <irar@il.ibm.com>
7565
7566         PR tree-optimization/39529
7567         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
7568         mark_sym_for_renaming for the tag copied to the new vector
7569         pointer.
7570
7571 2009-03-24  Arthur Loiret  <aloiret@debian.org>
7572
7573         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
7574         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
7575         EXTRA_SPEC_FUNCTIONS.
7576         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
7577         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
7578         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
7579         -march and -mtune options.
7580
7581 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
7582
7583         * config/m68k/t-rtems: Add m5329 multilib.
7584
7585 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
7586             Jakub Jelinek  <jakub@redhat.com>
7587
7588         PR debug/39524
7589         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
7590         nodes.
7591
7592 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
7593
7594         PR c/39495
7595         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
7596         instead of c_parser_expression_conv, if original_code isn't one of the
7597         4 allowed comparison codes, fail.
7598
7599 2009-03-23  Richard Guenther  <rguenther@suse.de>
7600
7601         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
7602         * tree.h (struct tree_type): Likewise.
7603         * reload.h (struct insn_chain): Likewise.
7604         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
7605         * function.h (struct function): Likewise.
7606         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
7607
7608 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
7609
7610         PR tree-optimization/39516
7611         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
7612
7613 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
7614
7615         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
7616         should be set true if BITS_PER_WORD of target is bigger than 32
7617
7618 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
7619
7620         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
7621         Translate -B-options to -rpath-link.  Correct existing
7622         rpath-link and conditionalize on !nostdlib.
7623
7624 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7625
7626         * doc/extend.texi (Function Attributes, Variable Attributes):
7627         Fix typos.
7628         * doc/invoke.texi (Debugging Options, Optimize Options)
7629         (i386 and x86-64 Options, MCore Options): Likewise.
7630
7631 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
7632
7633         PR debug/37890
7634         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
7635         it for block local namespace aliases.
7636         (gen_decl_die): Pass context_die to gen_namespace_die.
7637
7638 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
7639
7640         PR c/39495
7641         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
7642         minimum or maximum value.
7643
7644 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
7645
7646         * reginfo.c (globalize_reg): Recompute derived reg sets.
7647
7648 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
7649
7650         PR target/39063
7651         * libgcc2.c (mprotect): Do not use signed arguments for
7652         VirtualProtect, use DWORD arguments.  Also fix the 'may
7653         be used uninitialized' warning for the np variable.
7654
7655 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
7656
7657         PR target/39496
7658         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
7659         functions using regparm calling conventions when not optimizing.
7660         (ix86_function_sseregparm): Similarly for sseregparm calling
7661         conventions.
7662
7663 2009-03-19  Li Feng  <nemokingdom@gmail.com>
7664
7665         PR middle-end/39500
7666         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
7667         dependence if the first conflict is after niter iterations.
7668
7669 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
7670
7671         PR middle-end/38609
7672         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
7673         functions with dynamic stack-pointer adjustments.
7674
7675 2009-03-19  Ben Elliston  <bje@au.ibm.com>
7676
7677         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
7678         option; change to -msdata=data.
7679
7680 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7681
7682         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
7683         and -fopenmp.
7684
7685 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
7686
7687         PR target/35180
7688         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
7689
7690 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
7691
7692         * doc/invoke.texi (Code Gen Options): Expand discussion of
7693         -fno-common.
7694
7695 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
7696
7697         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
7698         * matrix-reorg.c (struct matrix_info): Likewise.
7699         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
7700         * rtl.h (struct mem_attrs): Likewise.
7701         * df.h (struct df): Likewise.
7702         * tree-data-ref.h (struct data_dependence_relation): Likewise.
7703         * ira-int.h (struct ira_allocno): Likewise.
7704         * df-scan.c (struct df_collection_rec): Likewise.
7705         * ira.c (struct equivalence): Likewise.
7706         * function.c (struct temp_slot): Likewise.
7707         * cfgloop.h (struct loop): Likewise.
7708
7709         PR debug/39485
7710         * function.c (use_register_for_decl): When not optimizing, disregard
7711         register keyword for variables with types containing methods.
7712
7713 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
7714
7715         PR middle-end/39447
7716         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
7717         (is_simple_operand): Call contains_component_ref_p before calling data
7718         reference analysis that would fail on COMPONENT_REFs.
7719
7720         * tree-vrp.c (search_for_addr_array): Fix formatting.
7721
7722 2009-03-18  Richard Guenther  <rguenther@suse.de>
7723
7724         * tree-vect-transform.c (vect_loop_versioning): Fold the
7725         generated comparisons.
7726         * tree-vectorizer.c (set_prologue_iterations): Likewise.
7727         (slpeel_tree_peel_loop_to_edge): Likewise.
7728
7729 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7730
7731         PR middle-end/37805
7732         * opts.c (print_specific_help): In addition to `undocumented',
7733         accept `separate' and `joined' flags if passed alone.  Describe
7734         output by the first matched one of those.
7735         (common_handle_option): Skip over empty strings.
7736         * gcc.c (display_help): Fix help string for `--help='.
7737         * doc/invoke.texi (Option Summary, Overall Options): With
7738         `--help=', classes and qualifiers can both be repeated, but
7739         only the latter can be negated.  One should not pass only
7740         negated qualifiers.  Fix markup and examples.
7741
7742         Revert
7743         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
7744         PR middle-end/37805
7745         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
7746         and -fhelp=separate.
7747
7748 2009-03-17  Jing Yu  <jingyu@google.com>
7749
7750         PR middle-end/39378
7751         * function.h (struct rtl_data): Move is_thunk from here...
7752         (struct function): ...to here.
7753         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
7754         * varasm.c (assemble_start_function): Change is_thunk from crtl to
7755         cfun.
7756         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
7757         cfun.
7758         (alpha_does_function_need_gp, alpha_start_function): Likewise.
7759         (alpha_output_function_end_prologue): Likewise.
7760         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
7761         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
7762         (rs6000_output_function_epilogue): Likewise.
7763         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
7764
7765 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
7766
7767         PR target/39482
7768         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
7769         from different units in a single alternative.
7770         (*truncdfsf_i387): Ditto.
7771         (*truncxfsf2_mixed): Ditto.
7772         (*truncxfdf2_mixed): Ditto.
7773
7774 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
7775
7776         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
7777         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
7778
7779         PR debug/39474
7780         * tree-ssa-live.c (remove_unused_locals): Don't remove local
7781         unused non-artificial variables when not optimizing.
7782
7783         PR debug/39471
7784         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
7785         DW_TAG_imported_module even if decl is IMPORTED_DECL with
7786         NAMESPACE_DECL in its DECL_INITIAL.
7787
7788         PR middle-end/39443
7789         * optabs.c (set_user_assembler_libfunc): New function.
7790         * expr.h (set_user_assembler_libfunc): New prototype.
7791         * c-common.c: Include libfuncs.h.
7792         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
7793         for memcmp, memset, memcpy, memmove and abort.
7794         * Makefile.in (c-common.o): Depend on libfuncs.h.
7795
7796         PR debug/39412
7797         * dwarf2out.c (gen_inlined_enumeration_type_die,
7798         gen_inlined_structure_type_die, gen_inlined_union_type_die,
7799         gen_tagged_type_instantiation_die): Removed.
7800         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
7801         do nothing.
7802
7803 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
7804
7805         PR testsuite/38526
7806         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
7807         its use.
7808         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
7809         (check-parallel-%): Ditto.
7810         (check-consistency): Ditto.
7811
7812 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
7813
7814         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
7815         local variable rhs by NULL_TREE.
7816
7817 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7818
7819         PR target/39477
7820         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
7821
7822 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7823
7824         PR target/39476
7825         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
7826
7827 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
7828
7829         PR target/39473
7830         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
7831         for ms->sysv ABI calls only in 64bit mode.
7832
7833         * config/i386/i386.md (untyped_call): Support 32bit.
7834
7835 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
7836
7837         * doc/extend.texi: Replace x86_65 with x86_64.
7838
7839 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
7840
7841         PR tree-optimization/39455
7842         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
7843         mismatches for POINTER_TYPE_P (type).
7844         (number_of_iterations_le): Likewise.
7845
7846 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
7847
7848         * config/picochip/picochip.c: Removed profiling support.
7849         * config/picochip/picochip.md: Removed profiling instruction.
7850         * config/picochip/picochip.h: Removed profiling builtin.
7851
7852 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
7853
7854         * doc/install.texi (--with-host-libstdcxx): Document.
7855
7856 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
7857
7858         PR target/34299
7859         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
7860         generate a warning if the function name does not begin with
7861         "__vector" and the function has either the 'signal' or 'interrupt'
7862         attribute, from here to ...
7863         (avr_declare_function_name): ...here. New function.
7864         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
7865         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
7866
7867 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
7868
7869         PR bootstrap/39454
7870         * cse.c (fold_rtx): Don't modify original const_arg1 when
7871         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
7872         separate variable instead.
7873         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
7874         from out of range shift counts.
7875         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
7876
7877 2009-03-13  Catherine Moore  <clm@codesourcery.com>
7878
7879         * config/i386/x-mingw32 (host-mingw32.o): Replace
7880         diagnostic.h with $(DIAGNOSTIC_H).
7881
7882 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
7883
7884         PR target/39431
7885         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
7886         predicate.
7887         * config/i386/sync.md (sync_compare_and_swap<mode>,
7888         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
7889         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
7890         into a register.
7891         (sync_double_compare_and_swapdi_pic,
7892         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
7893         cmpxchg8b_pic_memory_operand instead of just memory_operand.
7894
7895 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
7896
7897         PR target/39445
7898         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
7899
7900 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
7901
7902         PR target/39327
7903         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
7904         (avx_addsubv4df3): Likewise.
7905         (*avx_addsubv4sf3): Likewise.
7906         (sse3_addsubv4sf3): Likewise.
7907
7908 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
7909
7910         PR target/38824
7911         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
7912
7913 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
7914
7915         PR debug/39432
7916         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
7917         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
7918         registers for allocnos created from user-defined variables.
7919
7920 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7921
7922         PR target/39181
7923         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
7924         of non-integer mode as well.
7925
7926 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
7927
7928         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
7929         for functions for which the parameter types are unknown.
7930
7931 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
7932
7933         PR target/39137
7934         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
7935         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
7936         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
7937         * config/i386/i386.c (ix86_local_alignment): For
7938         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
7939         long long variables on the stack to avoid dynamic realignment.
7940         Allow the first argument to be a decl rather than type.
7941         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
7942
7943 2009-03-11  Nick Clifton  <nickc@redhat.com>
7944
7945         PR target/5362
7946         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
7947         options.
7948         Add description to mno-lsim option.
7949         * config/mcore/mcore.h: Remove comment about deprecated m4align
7950         option.
7951         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
7952         * doc/invoke.texi: Add description of mno-lsim and
7953         mstack-increment options.
7954
7955         * config/fr30/fr30.opt: Document the -mno-lsim option.
7956         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
7957         and -mno-lsim options.
7958
7959 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7960
7961         * fold-const.c (fold_comparison): Only call fold_inf_compare
7962         if the mode supports infinities.
7963
7964 2009-03-11  Jason Merrill  <jason@redhat.com>
7965
7966         PR debug/39086
7967         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
7968         end already did.  Notice GIMPLE_CALL modifications of the result.
7969         Don't copy debug information from an ignored decl or a decl from
7970         another function.
7971
7972 2009-03-10  Richard Guenther  <rguenther@suse.de>
7973             Nathan Froyd  <froydnj@codesourcery.com>
7974
7975         PR middle-end/37850
7976         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
7977         (__divMODE3): Likewise.
7978
7979 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
7980
7981         PR tree-optimization/39394
7982         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
7983         DECL_SIZE_UNIT of variable length FIELD_DECLs.
7984
7985 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7986
7987         * recog.c (verfiy_changes): Disallow renaming of hard regs in
7988         inline asms for register asm ("") declarations.
7989
7990 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
7991
7992         * fold-const.c (fold_unary): Fix comment.
7993
7994 2009-03-07  Jan Hubicka  <jh@suse.cz>
7995
7996         PR target/39361
7997         * tree-inline.c (setup_one_parameter): Do replacement of const
7998         argument by constant in SSA form.
7999
8000 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8001
8002         PR middle-end/38028
8003         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
8004         determine alignment passed to assign_stack_local.
8005         (assign_parms_unsplit_complex): Likewise.
8006         * except.c (sjlj_build_landing_pads): Likewise.
8007
8008 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
8009
8010         PR middle-end/39360
8011         * tree-flow.h (add_referenced_var): Return bool instead of void.
8012         * tree-dfa.c (add_referenced_var): Return result of
8013         referenced_var_check_and_insert call.
8014         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
8015         of referenced_var_check_and_insert.
8016
8017         PR debug/39372
8018         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
8019         (gen_variable_die): Emit DW_AT_location on abstract static variable's
8020         DIE, don't emit it if abstract origin already has it.
8021         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
8022         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
8023
8024 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8025
8026         * genpreds.c (needs_variable): Fix parentheses at variable name
8027         detection.
8028         (write_tm_constrs_h): Indent generated code.
8029
8030 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8031
8032         * doc/extend.texi (Function Attributes): Add documentation
8033         for isr attributes.
8034
8035 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
8036
8037         PR debug/39387
8038         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
8039         take locus from its DECL_SOURCE_LOCATION instead of input_location.
8040
8041 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
8042
8043         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
8044         the loop as bad.
8045
8046 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
8047
8048         PR debug/39379
8049         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
8050         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
8051
8052 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
8053
8054         * config/i386/i386.md (R8_REG, R9_REG): New constants.
8055         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
8056         constants instead of magic numbers.
8057         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
8058         (QI_REG_P): Ditto.
8059         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
8060         (x86_64_ms_abi_int_parameter_registers): Ditto.
8061         (x86_64_int_return_registers): Ditto.
8062         (ix86_maybe_switch_abi): Ditto.
8063         (ix86_expand_call): Ditto for clobbered_registers array.
8064         (ix86_hard_regno_mode_ok): Ditto.
8065         (x86_extended_QIreg_mentioned_p): Ditto.
8066
8067 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
8068
8069         PR tree-optimization/39349
8070         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
8071
8072         * combine.c (gen_lowpart_for_combine): Use omode when generating
8073         clobber.
8074
8075 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
8076
8077         PR rtl-optimization/39235
8078         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
8079
8080 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
8081
8082         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
8083
8084 2009-03-04  Richard Guenther  <rguenther@suse.de>
8085
8086         PR tree-optimization/39362
8087         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
8088         that occur in abnormal PHIs should be varying.
8089
8090 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
8091
8092         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
8093         Extend comments.
8094         (simple_iv):  Take loop as an argument instead of statement.
8095         * tree-scalar-evolution.h (simple_iv): Declaration changed.
8096         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
8097         to simple_iv.
8098         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
8099         Ditto.
8100         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
8101         * matrix-reorg.c (analyze_transpose): Ditto.
8102         * tree-data-ref.c (dr_analyze_innermost): Ditto.
8103         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
8104         * tree-predcom.c (ref_at_iteration): Ditto.
8105         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
8106
8107 2009-03-04  Richard Guenther  <rguenther@suse.de>
8108
8109         PR tree-optimization/39358
8110         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
8111         escaped_id and callused_id.
8112         (solve_graph): Likewise.
8113
8114 2009-03-04  Richard Guenther  <rguenther@suse.de>
8115
8116         PR tree-optimization/39339
8117         * tree-sra.c (try_instantiate_multiple_fields): Make it
8118         no longer ICE on the above.
8119
8120 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
8121
8122         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
8123         that fits within Pmode.
8124
8125 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
8126
8127         PR middle-end/10109
8128         * tm.texi (LIBCALL_VALUE): Update description.
8129
8130 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
8131
8132         PR middle-end/34443
8133         * doc/extend.texi (section): Update description.
8134
8135 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
8136
8137         PR middle-end/39345
8138         * tree-inline.c (remapped_type): New.
8139         (can_be_nonlocal): Call remapped_type instead of remap_type.
8140
8141 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
8142
8143         PR fortran/39354
8144         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
8145         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
8146
8147 2009-03-03  Richard Guenther  <rguenther@suse.de>
8148
8149         PR middle-end/39272
8150         * tree.c (tree_nonartificial_location): New function.
8151         * tree.h (tree_nonartificial_location): Declare.
8152         * builtins.c (expand_builtin_memory_chk): Provide location
8153         of the call location for artificial function pieces.
8154         (maybe_emit_chk_warning): Likewise.
8155         (maybe_emit_sprintf_chk_warning): Likewise.
8156         (maybe_emit_free_warning): Likewise.
8157         * expr.c (expand_expr_real_1): Likewise.
8158
8159 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
8160
8161         PR tree-optimization/39343
8162         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
8163         COMPONENT_REF t has ARRAY_TYPE.
8164
8165 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
8166
8167         PR middle-end/39335
8168         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
8169         when the type precision of the induction variable should be
8170         larger than the type precision of nit.
8171         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
8172         * graphite.c (graphite_loop_normal_form): Same.
8173         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
8174
8175 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
8176
8177         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
8178         (*call_1_rex64_ms_sysv): Use named constants instead of magic
8179         numbers to describe clobbered registers.
8180         (*call_value_0_rex64_ms_sysv): Ditto.
8181         * config/i386/mmx.md (mmx_emms): Ditto.
8182         (mmx_femms): Ditto.
8183
8184 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
8185
8186         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
8187         of ABI_64.
8188
8189 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8190
8191         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
8192         (spu_section_type_flags): New function.
8193
8194 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
8195
8196         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
8197         reg_class_contents of FLOAT_REGS into a temporary.
8198
8199 2009-03-02  Richard Guenther  <rguenther@suse.de>
8200             Ira Rosen  <irar@il.ibm.com>
8201
8202         PR tree-optimization/39318
8203         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
8204         information to the vectorized statement.
8205
8206 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
8207
8208         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
8209         variable.  Use defined names instead of magic constants for REX SSE
8210         registers.
8211
8212 2009-03-01  Richard Guenther  <rguenther@suse.de>
8213
8214         PR tree-optimization/39331
8215         * omp-low.c (lower_send_shared_vars): Do not receive new
8216         values for the reference of DECL_BY_REFERENCE parms or results.
8217
8218 2009-03-01  Jan Hubicka  <jh@suse.cz>
8219
8220         PR debug/39267
8221         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
8222         BLOCK_NONLOCALIZED_VAR): New macros.
8223         (tree_block): Add nonlocalized_vars.
8224         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
8225         gen_decl_die): Add origin argument.  Allow generation of die with
8226         origin at hand only.
8227         (gen_member_die, gen_type_die_with_usage, force_decl_die,
8228         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
8229         of gen_*.
8230         (gen_block_die): Fix checking for unused blocks.
8231         (process_scope_var): Break out from .... ; work with origins only.
8232         (decls_for_scope) ... here; process nonlocalized list.
8233         (dwarf2out_ignore_block): Look for nonlocalized vars.
8234         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
8235         vars.
8236         (dump_scope_block): Dump them.
8237         * tree-inline.c (remap_decls): Handle nonlocalized vars.
8238         (remap_block): Likewise.
8239         (can_be_nonlocal): New predicate.
8240         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
8241
8242 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8243
8244         * configure: Regenerate.
8245
8246 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8247
8248         * optc-gen.awk: No need to duplicate option flags twice.
8249         Reuse help texts for duplicate options which do not have any.
8250
8251         * gcc.c (display_help): Document --version.
8252
8253         * gcc.c (main): If print_help_list and verbose_flag, ensure
8254         driver output comes before subprocess output.
8255
8256         * optc-gen.awk: Assign all remaining fields to help string,
8257         space-separated, for multi-line help in *.opt.
8258
8259         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
8260         -Wno-pedantic-ms-format is for MinGW targets only.
8261
8262         * doc/options.texi (Option file format): Fix bad indentation,
8263         restoring dropped sentence.
8264
8265 2009-02-28  Jan Hubicka  <jh@suse.cz>
8266
8267         * tree-inline.c (tree_function_versioning): Output debug info.
8268
8269 2009-02-28  Jan Hubicka  <jh@suse.cz>
8270
8271         PR debug/39267
8272         * tree-inline.c (setup_one_parameter): Do not copy propagate
8273         arguments when not optimizing.
8274
8275 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
8276
8277         PR target/39327
8278         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
8279         (avx_addsubv4df3): Likewise.
8280         (*avx_addsubv4sf3): Likewise.
8281         (sse3_addsubv4sf3): Likewise.
8282         (*avx_addsubv2df3): Likewise.
8283         (sse3_addsubv2df3): Likewise.
8284         (avx_unpckhps256): Correct item selectors.
8285         (avx_unpcklps256): Likewise.
8286         (avx_unpckhpd256): Likewise.
8287         (avx_unpcklpd256): Likewise.
8288
8289 2009-02-28  Jan Hubicka  <jh@suse.cz>
8290
8291         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
8292         static vars.
8293         (copy_arguments_for_versioning): If var is declared don't declare it.
8294         (tree_function_versioning): First setup substitutions and then copy
8295         args.
8296
8297 2009-02-27  Jan Hubicka  <jh@suse.cz>
8298
8299         PR debug/39267
8300         * cgraph.h (varpool_output_debug_info): Remove.
8301         * cgraphunit.c (varpool_output_debug_info): Remove.
8302         * dwarf2out.c (deferred_locations_struct): New struct
8303         (deferred_locations): New type.
8304         (deferred_locations_list): New static var.
8305         (deffer_location): New function.
8306         (gen_variable_die): Use it.
8307         (decls_for_scope): Output info on local static vars.
8308         (dwarf2out_finish): Process deferred locations.
8309         * varpool.c (varpool_output_debug_info): Remove.
8310
8311 2009-02-27  Jan Hubicka  <jh@suse.cz>
8312
8313         PR debug/39267
8314         * tree.h (TREE_PROTECTED): Fix comment.
8315         (BLOCK_HANDLER_BLOCK): Remove.
8316         (struct tree_block): Remove handler_block add body_block.
8317         (inlined_function_outer_scope_p): New.
8318         (is_body_block): Remove.
8319         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
8320         * dwarf2out.c (is_inlined_entry_point): Remove.
8321         (add_high_low_attributes): Use inlined_function_outer_scope_p.
8322         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
8323         code.
8324         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
8325         * gimplify.c (gimplify_expr): Gimplify body blocks.
8326         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
8327         block with multiple subblocks.
8328         (dump_scope_block): Prettier output; dump more flags and info.
8329         (dump_scope_blocks): New.
8330         (remove_unused_locals): Use dump_scope_blocks.
8331         * tree-flow.h (dump_scope_blocks): Declare.
8332         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
8333         * stmt.c (is_body_block): Remove.
8334         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
8335         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
8336
8337 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
8338
8339         PR middle-end/39308
8340         * graphite.c (graphite_loop_normal_form): Do not call
8341         number_of_iterations_exit from a gcc_assert.
8342
8343 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8344
8345         * config/s390/s390.c (s390_swap_cmp): Look for conditional
8346         jumps if COND is NULL.
8347         (find_cond_jump): New function.
8348         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
8349         * config/s390/s390.md: Remove z10_cobra attribute value.
8350
8351 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
8352
8353         * config/alpha/alpha.h (alpha_expand_mov): Return false if
8354         force_const_mem returns NULL_RTX.
8355
8356 2009-02-26  Jan Hubicka  <jh@suse.cz>
8357
8358         PR debug/39267
8359         * cgraph.h (varpool_output_debug_info): Remove.
8360         * cgraphunit.c (varpool_output_debug_info): Remove.
8361         * dwarf2out.c (deferred_locations_struct): New struct
8362         (deferred_locations): New type.
8363         (deferred_locations_list): New static var.
8364         (deffer_location): New function.
8365         (gen_variable_die): Use it.
8366         (decls_for_scope): Output info on local static vars.
8367         (dwarf2out_finish): Process deferred locations.
8368         * varpool.c (varpool_output_debug_info): Remove.
8369
8370 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
8371
8372         PR rtl-optimization/39241
8373         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
8374         to subreg_offset_representable_p.
8375
8376 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
8377
8378         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
8379         execute function prototype.  Get f and nregs from max_reg_num
8380         and get_insns.  Remove the first backward pass as it's dead,
8381         guard the forward pass by flag_expensive_optimizations.
8382         (rest_of_handle_regmove): Delete.
8383         (pass_regmove): Replace it with regmove_optimize.
8384
8385 2009-02-25  Martin Jambor  <mjambor@suse.cz>
8386
8387         PR tree-optimization/39259
8388         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
8389         calls_alloca function flags.
8390         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
8391         calls are detected.
8392
8393 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
8394
8395         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
8396         flags_set_1_rtx, flags_set_1_set): Delete.
8397         (regmove_optimize): Do not call mark_flags_life_zones.
8398
8399 2009-02-24  Julian Brown  <julian@codesourcery.com>
8400
8401         PR target/35965
8402         * config/arm/arm.c (require_pic_register): Only set
8403         cfun->machine->pic_reg once per function.
8404
8405 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
8406
8407         * doc/invoke.texi (Link Options): Document an easier way to pass
8408         options that take arguments to the GNU linker using -Xlinker and -Wl.
8409
8410 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
8411
8412         PR target/33785
8413         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
8414
8415 2009-02-24  Richard Guenther  <rguenther@suse.de>
8416
8417         PR debug/39285
8418         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
8419
8420 2009-02-24  Richard Guenther  <rguenther@suse.de>
8421             Zdenek Dvorak  <ook@ucw.cz>
8422
8423         PR tree-optimization/39233
8424         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
8425         from converting them to a generic type.
8426
8427 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
8428
8429         PR tree-optimization/39260
8430         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
8431         contains a condition with a real type.
8432         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
8433
8434 2009-02-23  Jason Merrill  <jason@redhat.com>
8435
8436         PR c++/38880
8437         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
8438         narrowing_initializer_constant_valid_p.
8439         (narrowing_initializer_constant_valid_p): Don't return
8440         null_pointer_node for adding a pointer to itself.
8441
8442 2009-02-23  Jan Hubicka  <jh@suse.cz>
8443
8444         PR c/12245
8445         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
8446         resizing.
8447
8448 2009-02-23  Jan Hubicka  <jh@suse.cz>
8449
8450         PR tree-optimization/37709
8451         * tree.c (block_ultimate_origin): Move here from dwarf2out.
8452         * tree.h (block_ultimate_origin): Declare.
8453         * dwarf2out.c (block_ultimate_origin): Move to tree.c
8454         * tree-ssa-live.c (remove_unused_scope_block_p):
8455         Eliminate blocks containig no instructions nor live variables nor
8456         nested blocks.
8457         (dump_scope_block): New function.
8458         (remove_unused_locals): Enable removal of dead blocks by default;
8459         enable dumping at TDF_DETAILS.
8460
8461 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
8462
8463         * config/i386/i386.c (classify_argument): Don't allow COImode
8464         and OImode.
8465         (function_arg_advance_32): Don't allow OImode.
8466         (function_arg_32): Likewise.
8467         (function_value_32): Likewise.
8468         (return_in_memory_32): Likewise.
8469         (function_arg_64): Remove OImode comment.
8470
8471 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
8472
8473         PR target/39261
8474         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
8475         ix86_expand_vector_set for V4DImode in 64bit mode only.
8476         (ix86_expand_vector_init_one_var): Likewise.
8477
8478 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
8479
8480         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
8481
8482 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
8483
8484         PR bootstrap/39257
8485         * loop-iv.c: Revert last change.
8486         * emit-rtl.c: Likewise.
8487
8488 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
8489
8490         PR target/39256
8491         * config/i386/i386.c (type_natural_mode): Remove an extra
8492         space in the warning message.
8493         (function_value_32): Handle 32-byte vector modes.
8494         (return_in_memory_32): Likewise.
8495
8496 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
8497
8498         * loop-iv.c (truncate_value): New function.
8499         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
8500         of lowpart_subreg.
8501         (lowpart_subreg): Move to...
8502         * emit-rtl.c: ...here.
8503
8504 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
8505
8506         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
8507         accidental and undocumented change at revision 140860.
8508
8509 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
8510
8511         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
8512         take gimple_seq * arguments.
8513         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
8514         types_compatible_p langhook.
8515
8516 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
8517             Joseph Myers  <joseph@codesourcery.com>
8518
8519         * config/arm/arm.c (arm_builtin_va_list): New function.
8520         (arm_expand_builtin_va_start): Likewise.
8521         (arm_gimplify_va_arg_expr): Likewise.
8522         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
8523         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
8524         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
8525         (va_list_type): New variable.
8526         (arm_mangle_type): Mangle va_list_type appropriately.
8527
8528 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
8529
8530         PR middle-end/39157
8531         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
8532         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
8533         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
8534         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
8535         parameter to 1000 for -O1 by default.
8536         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
8537         parameter.
8538         * loop-invariant.c: Include params.h.
8539         (move_loop_invariants): Don't call move_single_loop_invariants on
8540         very large loops.
8541
8542 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
8543
8544         * calls.c (emit_library_call_value_1): Use slot_offset instead of
8545         offset when calculating bounds for indexing stack_usage_map.  Fixes
8546         a buffer overflow with certain target setups.
8547
8548 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
8549
8550         PR target/39240
8551         * calls.c (expand_call): Clear try_tail_call if caller and callee
8552         disagree in promotion of function return value.
8553
8554 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
8555
8556         PR target/39175
8557         * c-common.c (c_determine_visibility): If visibility changed and
8558         DECL_RTL has been already set, call make_decl_rtl to update symbol
8559         flags.
8560
8561 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
8562
8563         PR c++/39188
8564         * varasm.c (assemble_variable): Don't check DECL_NAME when
8565         globalizing a variable.
8566
8567 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
8568
8569         PR c/38483
8570         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
8571         expression before any __builtin_trap call.
8572         * c-typeck.c (build_function_call): Convert and check function
8573         arguments before generating a call to a trap.  Evaluate the
8574         function arguments before the trap.
8575
8576 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
8577
8578         PR target/39228
8579         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
8580         (UNSPEC_FXAM_MEM): New unspec.
8581         (fxam<mode>2_i387_with_temp): New insn and split pattern.
8582         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
8583         memory using fxam<mode>2_i387_with_temp to remove excess precision.
8584
8585 2009-02-19  Richard Guenther  <rguenther@suse.de>
8586
8587         PR tree-optimization/39207
8588         PR tree-optimization/39074
8589         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
8590         storedanything_tree): New.
8591         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
8592         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
8593         (build_succ_graph): Add edges from STOREDANYTHING to all
8594         non-direct nodes.
8595         (init_base_vars): Initialize STOREDANYTHING.
8596         (compute_points_to_sets): Free substitution info after
8597         building the succ graph.
8598         (ipa_pta_execute): Likewise.
8599
8600         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
8601         field.
8602         (do_ds_constraint): Do not add to special var or non-pointer
8603         field solutions.
8604         (type_could_have_pointers): Split out from ...
8605         (could_have_pointers): ... here.  For arrays use the element type.
8606         (create_variable_info_for): Initialize may_have_pointers.
8607         (new_var_info): Likewise.
8608         (handle_lhs_call): Make the HEAP variable unknown-sized.
8609         (intra_create_variable_infos): Use a type with pointers for
8610         PARM_NOALIAS, make it unknown-sized.
8611
8612 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8613
8614         PR target/39224
8615         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
8616
8617 2009-02-18  Jason Merrill  <jason@redhat.com>
8618
8619         PR target/39179
8620         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
8621         value if DECL_EXTERNAL.
8622         * tree-sra.c (sra_walk_gimple_assign): Likewise.
8623         * target.h (gcc_target::binds_local_p): Clarify "module".
8624         * tree.h (TREE_PUBLIC): Clarify "module".
8625
8626 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
8627
8628         PR target/38891
8629         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
8630         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
8631
8632 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
8633
8634         PR target/39082
8635         * c.opt (Wabi): Support C and ObjC.
8636         (Wpsabi): New.
8637
8638         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
8639
8640         * config/i386/i386.c (classify_argument): Warn once about the ABI
8641         change when passing union with long double.
8642
8643         * doc/invoke.texi: Update -Wabi for warning psABI changes.
8644
8645 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
8646
8647         PR c/35447
8648         * c-parser.c (c_parser_compound_statement): Always enter and leave
8649         a scope.
8650
8651 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8652
8653         PR target/34587
8654         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
8655
8656 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
8657
8658         PR tree-optimization/36922
8659         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
8660         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
8661         Likewise.
8662
8663 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
8664
8665         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
8666         to 0 for EABI64.
8667
8668 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
8669
8670         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
8671
8672 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
8673
8674         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
8675         tree sharing.
8676
8677 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
8678             Richard Sandiford  <rdsandiford@googlemail.com>
8679
8680         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
8681         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
8682         (loongson_biadd): ...this.
8683
8684 2009-02-17  Richard Guenther  <rguenther@suse.de>
8685
8686         PR tree-optimization/39202
8687         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
8688         a var make sure to follow existing collapses.
8689
8690 2009-02-17  Richard Guenther  <rguenther@suse.de>
8691
8692         PR middle-end/39214
8693         * langhooks.c (lhd_print_error_function): Check for NULL block.
8694
8695 2009-02-17  Richard Guenther  <rguenther@suse.de>
8696
8697         PR tree-optimization/39204
8698         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
8699         of the PHI arg.
8700
8701 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
8702
8703         * config/soft-fp/double.h: Update from glibc CVS.
8704
8705 2009-02-17  Richard Guenther  <rguenther@suse.de>
8706
8707         PR tree-optimization/39207
8708         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
8709         strict-aliasing warnings for pointers pointing to NULL.
8710
8711 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
8712
8713         PR c/35446
8714         * c-parser.c (c_parser_braced_init): Call pop_init_level when
8715         skipping until next close brace.
8716
8717 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
8718
8719         PR target/37049
8720         * config/i386/i386.c (ix86_expand_push): Set memory alignment
8721         to function argument boundary.
8722
8723 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
8724
8725         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
8726         in the lea_add. Reload eventually constraints it properly.
8727         * config/picochip/constraints.md: Remove the target constraint
8728         "b", since it is not needed anymore.
8729
8730 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
8731
8732         * gthr-dce.h: Uglify function parameter and local variable names.
8733         * gthr-gnat.h: Likewise.
8734         * gthr-mipssde.h: Likewise.
8735         * gthr-nks.h: Likewise.
8736         * gthr-posix95.h: Likewise.
8737         * gthr-posix.h: Likewise.
8738         * gthr-rtems.h: Likewise.
8739         * gthr-single.h: Likewise.
8740         * gthr-solaris.h: Likewise.
8741         * gthr-tpf.h: Likewise.
8742         * gthr-vxworks.h: Likewise.
8743         * gthr-win32.h: Likewise.
8744
8745 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
8746
8747         PR target/39196
8748         * config/i386/i386.md: Restrict the new peephole2 to move
8749         between MMX/SSE registers.
8750
8751 2009-02-15  Richard Guenther  <rguenther@suse.de>
8752
8753         Revert
8754         2009-02-13  Richard Guenther  <rguenther@suse.de>
8755
8756         * configure.ac: Enable LFS.
8757         * configure: Re-generate.
8758         * config.in: Likewise.
8759
8760 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8761
8762         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
8763         spu_srqwbyte, spu_srqwbytebc): Define.
8764         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
8765         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
8766         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
8767         "shrqby_<mode>"): New insn-and-split patterns.
8768         * config/spu/spu.c (expand_builtin_args): Determine and return
8769         number of operands using spu_builtin_description data.
8770         (spu_expand_builtin_1): Use it.
8771
8772 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
8773
8774         PR target/38056
8775         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
8776         TARGET_CONST_GP.
8777
8778 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
8779
8780         PR target/39149
8781         * config/i386/i386.c (override_options): Correct warning
8782         messages for -malign-loops, -malign-jumps and -malign-functions.
8783
8784 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
8785
8786         PR target/39152
8787         * config/i386/i386.md: Restrict the new peephole2 to move
8788         between the general purpose registers.
8789
8790 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
8791
8792         PR target/39162
8793         * config/i386/i386.c (type_natural_mode): Add a new argument.
8794         Return the original mode and warn ABI change if vector size is 32byte.
8795         (function_arg_advance): Updated.
8796         (function_arg): Likewise.
8797         (ix86_function_value): Likewise.
8798         (ix86_return_in_memory): Likewise.
8799         (ix86_sol10_return_in_memory): Likewise.
8800         (ix86_gimplify_va_arg): Likewise.
8801         (function_arg_32): Don't warn ABX ABI change here.
8802         (function_arg_64): Likewise.
8803
8804 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
8805
8806         * loop-iv.c (implies_p): In the final case, test that operands 0
8807         of the two comparisons match.
8808
8809         * config/bfin/bfin.c (find_prev_insn_start): New function.
8810         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
8811         (find_next_insn_start): Move.
8812
8813 2009-02-13  Richard Guenther  <rguenther@suse.de>
8814
8815         * configure.ac: Enable LFS.
8816         * configure: Re-generate.
8817         * config.in: Likewise.
8818
8819 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
8820
8821         PR c/35444
8822         * c-parser.c (c_parser_parms_list_declarator): Discard pending
8823         sizes on syntax error after some arguments have been parsed.
8824
8825 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
8826
8827         * doc/invoke.texi (-fira): Remove.
8828
8829 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
8830
8831         * caller-save.c: Replace regclass.c with reginfo.c in comments.
8832         * recog.c: Likewise.
8833         * rtl.h: Likewise.
8834
8835 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
8836
8837         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
8838         (umul_ppmm): Likewise.
8839         (count_leading_zeros): Likewise.
8840         (count_trailing_zeros): Likewise.
8841         (UMUL_TIME): Likewise.
8842
8843 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
8844
8845         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
8846         soft-fp/t-softfp to tmake_file.
8847
8848         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
8849         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
8850         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
8851         IA64_BUILTIN_INFQ]: New.
8852         (ia64_init_builtins): Initialize __builtin_infq,
8853         __builtin_fabsq and __builtin_copysignq if not HPUX.
8854         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
8855         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
8856
8857         * config/ia64/lib1funcs.asm (__divtf3): Define only if
8858         SHARED is defined.
8859         (__fixtfti): Likewise.
8860         (__fixunstfti): Likewise.
8861         (__floattitf): Likewise.
8862
8863         * config/ia64/libgcc-glibc.ver: New.
8864         * config/ia64/t-fprules-softfp: Likewise.
8865         * config/ia64/sfp-machine.h: Likewise.
8866
8867         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
8868         (LIBGCC2_TF_CEXT): Likewise.
8869         (TF_SIZE): Likewise.
8870         (TARGET_INIT_LIBFUNCS): Likewise.
8871
8872         * config/ia64/t-glibc (SHLINB_MAPFILES):
8873         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
8874
8875 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
8876
8877         * config/i386/i386.c (construct_container): Rewrite processing
8878         BLKmode with X86_64_SSE_CLASS.
8879
8880 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
8881
8882         PR target/39152
8883         * config/i386/i386.md: Replace simplify_replace_rtx with
8884         replace_rtx in the new peephole2.
8885
8886 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
8887
8888         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
8889         loop unrolling do not happen at -O2.
8890
8891 2009-02-12  Michael Matz  <matz@suse.de>
8892
8893         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
8894
8895 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
8896
8897         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
8898         for -g3.
8899
8900 2009-02-12  Ben Elliston  <bje@au.ibm.com>
8901
8902         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
8903         patterns when updating the back chain.  Missed in the 2009-02-10
8904         change.
8905
8906 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
8907
8908         * doc/extend.texi (Decimal Floating Types): Update identifier of
8909         draft TR and list of missing support.
8910
8911 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
8912
8913         PR middle-end/39154
8914         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
8915         bit to variable length decl's flags, add it also to its
8916         pointer replacement variable.
8917
8918 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
8919             Jakub Jelinek  <jakub@redhat.com>
8920
8921         PR target/39118
8922         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
8923         (memory_blockage): New expander.
8924         (*memory_blockage): New insn pattern.
8925         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
8926         instead of general blockage at the end of function prologue when
8927         frame pointer is used to access red zone area.  Do not emit blockage
8928         when profiling, it is emitted in generic code.
8929         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
8930         function epilogue when frame pointer is used to access red zone area.
8931
8932 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
8933
8934         PR target/38824
8935         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
8936         by arithmetic with memory operands.
8937         * config/i386/predicates.md (commutative_operator): New.
8938
8939 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
8940
8941         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
8942         bulleted lists.
8943
8944 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
8945
8946         * alias.h (record_alias_subset): Declare.
8947         * alias.c (record_alias_subset): Make global.
8948
8949 2009-02-10  Nick Clifton  <nickc@redhat.com>
8950
8951         * tree-parloops.c: Change license to GPLv3.
8952         * ipa-struct-reorg.c: Change license to GPLv3.
8953         * ipa-struct-reorg.h: Change license to GPLv3.
8954
8955 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
8956
8957         PR c/39084
8958         * c-decl.c (start_struct): Return NULL on error.
8959
8960 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
8961
8962         PR middle-end/39124
8963         * cfgloopmanip.c (remove_path): Call remove_bbs after
8964         cancel_loop_tree, not before it.
8965
8966         PR target/39139
8967         * function.h (struct function): Add has_local_explicit_reg_vars bit.
8968         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
8969         VAR_DECLs were seen.
8970         * tree-ssa-live.c (remove_unused_locals): Recompute
8971         cfun->has_local_explicit_reg_vars.
8972         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
8973         copies or clearings if cfun->has_local_explicit_reg_vars.
8974
8975 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
8976
8977         PR target/39118
8978         * config/i386/i386.c (expand_prologue): Emit blockage at the end
8979         of function prologue when frame pointer is used to access
8980         red zone area.
8981
8982 2009-02-10  Richard Guenther  <rguenther@suse.de>
8983
8984         PR middle-end/39127
8985         * gimplify.c (gimple_regimplify_operands): Always look if
8986         we need to create a temporary.
8987
8988 2009-02-10  Richard Guenther  <rguenther@suse.de>
8989
8990         PR tree-optimization/39132
8991         * tree-loop-distribution.c (todo): New global var.
8992         (generate_memset_zero): Trigger TODO_rebuild_alias.
8993         (tree_loop_distribution): Return todo.
8994
8995 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
8996
8997         PR target/39119
8998         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
8999         (x86_64_reg_class_name): Removed.
9000         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
9001         first one isn't X86_64_SSE_CLASS or any other ones aren't
9002         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
9003         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
9004         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
9005         and 3 X86_64_SSEUP_CLASS.
9006         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
9007         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
9008
9009 2009-02-10  Ben Elliston  <bje@au.ibm.com>
9010
9011         * config/rs6000/rs6000.md (allocate_stack): Always use an update
9012         form instruction to update the stack back chain word, even if the
9013         user has disabled the generation of update instructions.
9014         (movdi_<mode>_update_stack): New.
9015         (movsi_update_stack): Likewise.
9016         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
9017         always use an update form instruction to update the stack back
9018         chain word.
9019
9020 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
9021
9022         PR middle-end/38953
9023         * graphite.c (if_region_set_false_region): After moving a region in
9024         the false branch of a condition, remove the empty dummy basic block.
9025         (gloog): Remove wrong fix for PR38953.
9026
9027 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9028
9029         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
9030         generation due to implicit sign extension.
9031
9032 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
9033
9034         PR middle-end/38981
9035         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
9036         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
9037
9038 2009-02-09  Richard Guenther  <rguenther@suse.de>
9039
9040         PR middle-end/35202
9041         * convert.c (convert_to_real): Disable (float)fn((double)x)
9042         to fnf(x) conversion if errno differences may occur and
9043         -fmath-errno is set.
9044
9045 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
9046
9047         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
9048         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
9049         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9050
9051 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
9052
9053         PR c/35434
9054         * c-common.c (handle_alias_attribute): Disallow attribute for
9055         anything not a FUNCTION_DECL or VAR_DECL.
9056
9057 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
9058
9059         PR c/39035
9060         * real.c (do_compare): Special-case compare of zero against
9061         decimal float value.
9062
9063 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
9064
9065         PR c/36432
9066         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
9067         as indicating flexible array members unless the field itself is
9068         being declarared as the incomplete array.
9069
9070 2009-02-06  Jan Hubicka  <jh@suse.cz>
9071
9072         PR tree-optimization/38844
9073         * ipa-inline.c (try_inline): Stop inlining recursion when edge
9074         is already inlined.
9075
9076 2009-02-06  Richard Guenther  <rguenther@suse.de>
9077
9078         PR middle-end/38977
9079         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
9080         fork because we may expand it as __gcov_fork.
9081
9082 2009-02-06  Nick Clifton  <nickc@redhat.com>
9083
9084         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
9085
9086 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
9087
9088         PR tree-optimization/35659
9089         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
9090         vn_phi_eq): Shortcut if hashcode does not match.
9091         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
9092         NULL operands.
9093         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
9094         and avoid iterative_hash_expr.
9095         (FOR_EACH_VALUE_ID_IN_SET): New.
9096         (value_id_compare): Remove.
9097         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
9098         sort expressions by value id.
9099
9100 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
9101
9102         PR target/38991
9103         * config/sh/predicates.md (general_movsrc_operand): Don't check
9104         the subreg of system registers here.
9105
9106 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
9107
9108         PR c++/39106
9109         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
9110         on the copied decl.
9111
9112 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
9113
9114         PR rtl-optimization/39110
9115         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
9116         addresses, not aligned ones.
9117
9118 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
9119             Richard Guenther  <rguenther@suse.de>
9120
9121         PR tree-optimization/39100
9122         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
9123         comment says and add edges.
9124
9125 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
9126
9127         PR c/35435
9128         * c-common.c (handle_tls_model_attribute): Ignore attribute for
9129         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
9130
9131 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
9132
9133         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
9134         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
9135         register_bb_in_sese, new_sese, free_sese): Moved.
9136         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
9137         outermost_loop_in_scop, build_scop_iteration_domain,
9138         expand_scalar_variables_ssa_name, get_vdef_before_scop,
9139         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
9140         Use loop_in_sese_p instead of loop_in_scop_p.
9141         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
9142         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
9143         (scopdet_basic_block_info): Fix bug in scop detection.
9144         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
9145         eq_loop_to_cloog_loop): Remove.
9146         (nb_loops_around_loop_in_scop, nb_loop
9147         ref_nb_loops): Moved here...
9148         * graphite.h (ref_nb_loops): ... from here.
9149         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
9150         (loop_domain_dim, loop_iteration_vector_dim): Remove.
9151         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
9152         * testsuite/gcc.dg/graphite/scop-19.c: New
9153
9154 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
9155             Hans-Peter Nilsson  <hp@axis.com>
9156
9157         PR rtl-optimization/37889
9158         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
9159         Move offset handling from PLUS to before the switch.  Use new
9160         arguments when considering SYMBOL_REFs too.
9161         (rtx_addr_can_trap_p): Pass dummy offset and size.
9162         (enum may_trap_p_flags): Remove.
9163         (may_trap_p_1): Pass size from MEM_SIZE.
9164
9165         PR rtl-optimization/38921
9166         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
9167         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
9168         * rtlanal.c (may_trap_after_code_motion_p): Delete.
9169         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
9170
9171 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
9172
9173         AVX Programming Reference (January, 2009)
9174         * config/i386/sse.md (*vpclmulqdq): New.
9175
9176 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
9177
9178         PR tree-optimization/38977
9179         PR gcov-profile/38292
9180         * calls.c (special_function_p): Disregard __builtin_ prefix.
9181
9182 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
9183
9184         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
9185         non-indexable addresses even before reload.
9186
9187 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
9188
9189         PR c/29129
9190         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
9191         as having variable size.  Do not give an error for unnamed
9192         parameters with [*] declarators.  Give a warning for type names
9193         with [*] declarators and mark them as variable size.
9194         * c-parser.c (c_parser_sizeof_expression): Do not give an error
9195         for sizeof applied to [*] type names.
9196
9197 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9198
9199         PR C++/36607
9200         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
9201
9202 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
9203
9204         * gcc.c (process_command): Update copyright notice dates.
9205         * gcov.c (print_version): Likewise.
9206         * gcov-dump.c (print_version): Likewise.
9207         * mips-tfile.c (main): Likewise.
9208         * mips-tdump.c (main): Likewise.
9209
9210 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
9211
9212         PR c/35433
9213         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
9214         for composite type involving a zero-length array type.
9215
9216 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
9217
9218         PR target/35318
9219         * function.c (match_asm_constraints_1): Skip over
9220         initial optional % in the constraint.
9221
9222         PR inline-asm/39059
9223         * c-parser.c (c_parser_postfix_expression): If fixed point is not
9224         supported, don't accept FIXED_CSTs.
9225         * c-decl.c (finish_declspecs): Error if fixed point is not supported
9226         and _Sat is used without _Fract/_Accum.  Set specs->type to
9227         integer_type_node for cts_fract/cts_accum if fixed point is not
9228         supported.
9229
9230 2009-02-02  Catherine Moore  <clm@codesourcery.com>
9231
9232         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
9233
9234 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
9235
9236         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
9237         (ABI_HAS_64BIT_SYMBOLS): Use it.
9238         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
9239
9240 2009-02-02  Paul Brook  <paul@codesourcery.com>
9241
9242         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
9243
9244 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
9245
9246         PR inline-asm/39058
9247         * recog.h (asm_operand_ok): Add constraints argument.
9248         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
9249         recurse on matching constraint.
9250         (check_asm_operands): Pass constraints as 3rd argument to
9251         asm_operand_ok.  Don't look up matching constraint here.
9252         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
9253         to asm_operand_ok.
9254
9255 2009-02-02  Ben Elliston  <bje@au.ibm.com>
9256
9257         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
9258         TARGET_NARROW_VOLATILE_BITFIELD macro names.
9259
9260 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9261
9262         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
9263         information.  Remove some obsolete information.  Reorganize.
9264
9265         * config/pa/fptr.c: Revert license to GPL 2.
9266         * config/pa/milli64.S: Likewise.
9267
9268 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
9269
9270         PR target/38904
9271         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
9272         LIBRARY name in, instead of hard-coding it.
9273         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
9274         extra target make frag to tmake_files according to EH model.
9275         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
9276         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
9277         frags that define makefile variable EH_MODEL appropriately.
9278         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
9279         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
9280         to "-sjlj" according to type of EH configured.
9281         (LIBGCC_SONAME):  Concatenate it to shared library base name.
9282         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
9283         to "_sjlj" according to type of EH configured.
9284         (LIBGCC_SONAME):  Concatenate it to shared library base name.
9285         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
9286         (SHLIB_LINK):  Add missing semicolon to if-else construct.
9287         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
9288         string value of "pe_dll" command-line option.
9289         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
9290         (SHLIB_SONAME):  Use it when overriding t-cygming default.
9291         (SHLIB_IMPLIB):  Override t-cygming default.
9292         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
9293         string value of "pe_dll" command-line option.
9294
9295 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
9296
9297         PR target/38952
9298         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
9299         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
9300
9301 2009-01-31  Richard Guenther  <rguenther@suse.de>
9302
9303         PR tree-optimization/38937
9304         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
9305         computing the transitive closure.
9306
9307 2009-01-30  Richard Guenther  <rguenther@suse.de>
9308
9309         PR tree-optimization/39041
9310         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
9311         Propagate variable indices only if the types match for this stmt.
9312
9313 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
9314
9315         PR target/39013
9316         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
9317         inline but never defined.
9318
9319 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
9320
9321         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
9322         (*insv_h_di_reg_extimm): New insn.
9323         (*insv_l<mode>_reg_extimm): New insn.
9324
9325 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
9326
9327         * config/picochip/picochip.c (flag_conserve_stack): set
9328         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
9329         fconserve-stack. Reduce call-overhead used by inliner.
9330
9331 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
9332
9333         PR/38157
9334         * common.opt (flag_conserve_stack): Initialised to zero.
9335
9336 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
9337
9338         PR/39002
9339         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
9340         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
9341         method.
9342
9343 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
9344
9345         * ira-color.c (allocno_reload_assign): Update comments.
9346         * regmove.c (regmove_optimize): Likewise.
9347
9348         * ra.h: Removed.
9349
9350 2009-01-29  Robert Millan  <rmh@aybabtu.com>
9351
9352         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
9353         * config/i386/kopensolaris-gnu.h: New file.  Undefine
9354         `MD_UNWIND_SUPPORT'.
9355         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
9356
9357 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
9358
9359         PR tree-optimization/39007
9360         * tree-loop-distribution.c (generate_builtin): Use
9361         recompute_dominator to compute the immediate dominator of the
9362         basic block just after the loop.
9363
9364 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9365
9366         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
9367         (ASM_OUTPUT_DWARF_PCREL): Define.
9368
9369 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
9370
9371         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
9372         * doc/passes.texi: Remove entries about regclass, local-alloc, and
9373         global.  Modify entries about regmove and IRA.
9374
9375         * ra-conflict.c: Remove the file.
9376
9377         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
9378
9379         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
9380         (pass_regclass_init): Rename to pass_reginfo_init.
9381
9382         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
9383
9384         * toplev.h (flag_ira): Remove.
9385
9386         * caller-save.c (setup_save_areas): Remove flag_ira.
9387
9388         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
9389
9390         * global.c: Remove the file.
9391
9392         * opts.c (decode_options): Remove flag_ira.
9393
9394         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
9395
9396         * regmove.c: Modify file description.
9397         (find_use_as_address, try_auto_increment): Define them only if
9398         AUTO_INC_DEC is defined.
9399         (replacement_quality, replace_in_call_usage, fixup_match_1,
9400         stable_and_no_regs_but_for_p): Remove.
9401         (reg_set_in_bb): Make it static.
9402         (regmove_optimize): Remove flag_ira and code which worked for
9403         !flag_ira.
9404
9405         * local-alloc.c: Remove the file.
9406
9407         * common.opt (fira): Remove.
9408
9409         * ira.c: Include except.h.
9410         (eliminable_regset): Move from global.c.
9411         (mark_elimination): Ditto.  Remove flag_ira.
9412         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
9413         equiv_mem_modified, validate_equiv_mem_from_store,
9414         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
9415         contains_replace_regs, memref_referenced_p, memref_used_between_p,
9416         no_equiv, recorded_label_ref): Move from local-alloc.c.
9417         (update_equiv_regs): Ditto.  Make it static.
9418         (print_insn_chain, print_insn_chains): Move it from global.c.
9419         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
9420         (build_insn_chain): Ditto.  Make it static.
9421         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
9422         Rename to init_live_subregs.
9423         (gate_ira): Remove flag_ira.
9424
9425         * regclass.c: Rename reginfo.c.  Change file description.
9426         (FORBIDDEN_INC_DEC_CLASSES): Remove.
9427         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
9428         (init_reg_sets_1): Remove code for evaluation of
9429         reg_class_superclasses and losing_caller_save_reg_set.
9430         (init_regs): Remove init_reg_autoinc.
9431         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
9432         ok_for_base_p_nonstrict): Remove.
9433         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
9434         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
9435         corresponding entries.
9436         (dump_regclass, record_operand_costs, scan_one_insn,
9437         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
9438         record_address_regs, auto_inc_dec_reg_p): Remove.
9439         (gt-regclass.h): Rename to gt-reginfo.h.
9440
9441         * rtl.h (dump_global_regs, retry_global_alloc,
9442         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
9443
9444         * Makefile.in (RA_H): Remove.
9445         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
9446         Rename regclass.o to reginfo.o.
9447         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
9448         gt-reginfo.h.
9449         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
9450         (GTFILES): Rename regclass.c to reginfo.c.
9451
9452         * passes.c (init_optimization_passes): Remove pass_local_alloc and
9453         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
9454
9455         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
9456         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
9457         Remove flag_ira.
9458         (finish_spills): Ditto.  Remove code for !flag_ira.
9459
9460 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
9461
9462         PR middle-end/35854
9463         * doc/invoke.texi (rtl debug options): Complete rewrite.
9464         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
9465         to auto_inc_dec".
9466         * mode-switching.c (pass_mode_switching): Rename pass from
9467         "mode-sw" to "mode_sw".
9468         * except.c (pass_convert_to_eh_ranges): Rename pass from
9469         "eh-ranges" to "eh_ranges".
9470         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
9471         to "subreg1".
9472
9473
9474 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
9475             Alexander Monakov  <amonakov@ispras.ru>
9476
9477         PR middle-end/38857
9478         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
9479         register.
9480         (move_exprs_to_boundary): Change return type and pass through
9481         should_move from move_op.  Relax assert.  Update usage ...
9482         (schedule_expr_on_boundary): ... here.  Use should_move instead of
9483         cant_move.
9484         (move_op_orig_expr_found): Indicate that insn was disconnected from
9485         stream.
9486         (code_motion_process_successors): Do not call after_merge_succs
9487         callback if original expression was not found when traversing any of
9488         the branches.
9489         (code_motion_path_driver): Change return type.  Update prototype.
9490         (move_op): Update comment.  Add a new parameter (should_move).  Update
9491         prototype.  Set *should_move based on indication provided by
9492         move_op_orig_expr_found.
9493
9494 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
9495
9496         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
9497         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
9498         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
9499         * config/rs6000/rs6000.c (rs6000_override_options): Default
9500         avoid-indexed-addresses on for Power6, off for everything else.
9501         (avoiding_indexed_address_p): New function.
9502         (rs6000_legitimize_address): Use it.
9503         (rs6000_legitimate_address): Likewise.
9504         * config/rs6000/rs6000.md (movXX_updateX): Likewise
9505
9506 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
9507
9508         PR tree-optimization/38997
9509         * tree-loop-distribution.c (generate_memset_zero): Use
9510         POINTER_PLUS_EXPR for a pointer addition.
9511
9512 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
9513
9514         * config/s390/s390.md (bswap<mode>2): New pattern added.
9515
9516 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
9517
9518         * config/s390/s390.md (*tls_load_31): Added type attribute.
9519
9520 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
9521
9522         * config/s390/s390.md: Fix a few comments.
9523
9524 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
9525
9526         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
9527         (*tm<mode>_full): Fixed z10prop attribute.
9528         (*tst<mode>_extimm): Fixed z10prop attribute.
9529         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
9530         (*tstqiCCT_cconly): Fixed z10prop attribute.
9531         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
9532         (*movsi_larl): Fixed z10prop attribute.
9533         (*movsi_zarch): Fixed z10prop attribute.
9534         (*movsi_eas): Fixed z10prop attribute.
9535         (*movhi): Fixed z10prop attribute.
9536         (*movqi): Fixed z10prop attribute.
9537         (*movstrictqi): Fixed z10prop attribute.
9538         (*mov<mode>): Fixed z10prop attribute.
9539         (*movcc): Fixed z10prop attribute.
9540         (*sethighpartdi_64): Fixed z10prop attribute.
9541         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
9542         (*negdi2_sign_cc): Fixed z10prop attribute.
9543         (*negdi2_sign): Fixed z10prop attribute.
9544         (*absdi2_sign_cc): Fixed z10prop attribute.
9545         (*absdi2_sign): Fixed z10prop attribute.
9546         (*negabsdi2_sign_cc): Fixed z10prop attribute.
9547         (*negabsdi2_sign): Fixed z10prop attribute.
9548         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
9549         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
9550         (doloop_si64): Fixed z10prop attribute.
9551         (doloop_si31): Fixed z10prop attribute.
9552         (doloop_long): Fixed z10prop attribute.
9553         (indirect_jump): Fixed z10prop attribute.
9554         (nop): Fixed z10prop attribute.
9555         (main_base_64): Fixed z10prop attribute.
9556         (reload_base_64): Fixed z10prop attribute.
9557
9558 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
9559
9560         PR rtl-optimization/38740
9561         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
9562         if !optimize.
9563         * config/mips/mips.c (mips_reorg): Likewise.
9564
9565 2009-01-28  Richard Guenther  <rguenther@suse.de>
9566
9567         PR tree-optimization/38926
9568         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
9569         with the correct value id to a value.
9570         (do_regular_insertion): Use the value number of edoubleprime
9571         for the value number of the expr.
9572
9573         Revert
9574         2008-08-21  Richard Guenther  <rguenther@suse.de>
9575
9576         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
9577         a PHI ask VN if it is already available.
9578         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
9579         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
9580
9581 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
9582
9583         PR middle-end/38934
9584         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
9585         set to varying whenever max has TREE_OVERFLOW set, similarly
9586         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
9587
9588 2009-01-28  Richard Guenther  <rguenther@suse.de>
9589
9590         PR middle-end/38908
9591         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
9592         uninitialized aggregate uses in call arguments.
9593
9594 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
9595
9596         PR tree-optimization/38984
9597         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
9598         the nothing_id variable if -fno-delete-null-pointer-checks.
9599
9600 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
9601
9602         PR target/38988
9603         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
9604         (set_got_offset_rex64): Ditto.
9605
9606 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
9607
9608         PR target/38941
9609         * doc/extend.texi: Improve local variable with asm reg.
9610
9611 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
9612
9613         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
9614         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
9615         was not supplied then set warn_packed_bitfield_compat to the
9616         default value of 1.
9617         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
9618         against 1.
9619
9620 2009-01-27  Richard Guenther  <rguenther@suse.de>
9621
9622         PR tree-optimization/38503
9623         * cfgexpand.c (expand_gimple_basic_block): Ignore
9624         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
9625         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
9626         variables that cannot have TBAA applied.
9627         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
9628         statements.
9629
9630 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
9631
9632         PR middle-end/38969
9633         * calls.c (initialize_argument_information): Do not wrap complex
9634         arguments in SAVE_EXPR.
9635
9636 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
9637
9638         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
9639         (INSTALL_LIBGCC): Revert typo commit.
9640
9641 2009-01-26  Richard Guenther  <rguenther@suse.de>
9642
9643         PR tree-optimization/38745
9644         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
9645         from special handling.
9646
9647 2009-01-26  Richard Guenther  <rguenther@suse.de>
9648
9649         PR tree-optimization/38745
9650         * tree-ssa.c (execute_update_addresses_taken): Do not include
9651         variables that cannot possibly be a register in not_reg_needs.
9652         Do not clear TREE_ADDRESSABLE on vars that may not become
9653         registers.
9654         * tree-ssa.c (update_alias_info_1): Include those in the set
9655         of addressable vars.
9656
9657 2009-01-26  Richard Guenther  <rguenther@suse.de>
9658
9659         PR middle-end/38851
9660         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
9661         * tree-ssa-dse.c: Include langhooks.h
9662         (execute_simple_dse): Remove stores with zero size.
9663
9664 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
9665
9666         PR c/38957
9667         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
9668         as PLUS_EXPR.
9669
9670 2009-01-24  Julian Brown  <julian@codesourcery.com>
9671
9672         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
9673         config/arm/linux-atomic.c.
9674         * config/arm/linux-atomic.c: New.
9675
9676 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
9677
9678         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
9679         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
9680         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
9681
9682 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9683
9684         PR c/38938
9685         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
9686         properly.
9687
9688 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
9689
9690         PR tree-optimization/38953
9691         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
9692         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
9693         (gloog): Split the exit of the scop when the scop exit is a loop exit.
9694         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
9695         changed the CFG.
9696
9697 2009-01-24  Paul Brook  <paul@codesourcery.com>
9698
9699         * config/arm/neon.md (neon_type): Move to arm.md.
9700         (neon_mov<VSTRUCT>): Add neon_type attribute.
9701         * config/arm/arm.md (neon_type): Move to here.
9702         (conds): Add "unconditioal" and use as default for NEON insns.
9703
9704 2009-01-24  Ben Elliston  <bje@au.ibm.com>
9705
9706         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
9707         void *' warning from -Wc++-compat.
9708         * Makefile.in (dominance.o-warn): Remove.
9709
9710 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
9711
9712         PR tree-optimization/38932
9713         * fold-const.c (fold_unary_ignore_overflow): New.
9714         * tree.h (fold_unary_ignore_overflow): Declare.
9715         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
9716         * tree-ssa-sccvn.c (visit_reference_op_load,
9717         simplify_unary_expression): Likewise.
9718
9719 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
9720
9721         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
9722         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
9723         regardless of their type.
9724         * c-common.c (handle_packed_attribute): Don't ignore packed on
9725         bitfields.
9726         * c.opt (Wpacked-bitfield-compat): New warning option.
9727         * stor-layout.c (place_field): Warn if offset of a field changed.
9728         * doc/extend.texi (packed): Mention the ABI change.
9729         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
9730         (Warning Options): Add it to the list.
9731
9732 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
9733
9734         * c-opts.c (c_common_post_options): Fix a typo in comments.
9735
9736 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
9737
9738         PR middle-end/38615
9739         * gimplify.c (gimplify_init_constructor): Fix promotion of const
9740         variables to static.
9741         * doc/invoke.texi (-fmerge-all-constants): Update description.
9742
9743 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
9744
9745         PR target/38931
9746         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
9747         (*movdi_1_rex64): Use type "mmx" for alternative 5.
9748
9749 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
9750
9751         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
9752         a word boundary.
9753         (LOCAL_ALIGNMENT): Similarly.
9754
9755 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
9756             Joseph Myers  <joseph@codesourcery.com>
9757
9758         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
9759         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
9760         * config/arm/arm-tune.md: Regenerate.
9761         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
9762         -march=iwmmxt2.
9763
9764 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
9765
9766         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
9767         version number to five.
9768
9769 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
9770
9771         PR c++/38930
9772         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
9773         * c-common.c (set_underlying_type): Likewise.
9774         (is_typedef_decl ): Likewise
9775         * tree.h: Likewise
9776         (set_underlying_type): Likewise.
9777         (is_typedef_type): Likewise.
9778
9779 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
9780
9781         PR middle-end/38587
9782         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
9783         crossing setjmps.
9784
9785 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
9786
9787         PR bootstrap/37660
9788         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
9789         (LIBGCC_SPEC):  Don't define.
9790         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
9791
9792 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
9793
9794         PR rtl-optimization/38879
9795         * alias.c (base_alias_check): Unaligned access via AND address can
9796         alias all surrounding object types except those with sizes equal
9797         or wider than the size of unaligned access.
9798
9799 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
9800
9801         PR c++/26693
9802         * c-decl.c (clone_underlying_type): Move this ...
9803         * c-common.c (set_underlying_type): ... here.
9804         Also, make sure the function properly sets TYPE_STUB_DECL() on
9805         the newly created typedef variant type.
9806         (is_typedef_decl ): New entry point.
9807         * tree.h: Added a new member member_types_needing_access_check to
9808         struct tree_decl_non_common.
9809         (set_underlying_type): New entry point.
9810         (is_typedef_type): Likewise.
9811
9812 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
9813
9814         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
9815         Check whether two instructions have memory references that
9816         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
9817         are helper functions for traversing.
9818         * alias.h (insn_alias_sets_confilict_p): New prototypes.
9819         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
9820         not to draw dependency edge for instructions with non-conflicting
9821         alias sets.
9822
9823 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
9824
9825         PR other/38758
9826         * longlong.h: Update copyright years.  Use soft-fp license notice.
9827         Sync __clz_tab declaration with glibc.
9828
9829 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
9830
9831         PR target/30687
9832         * doc/extend.texi (syscall_linkage): New.
9833         (version_id): Modify.
9834
9835 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9836             Richard Guenther  <rguenther@suse.de>
9837
9838         PR tree-optimization/38747
9839         PR tree-optimization/38748
9840         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
9841         conversion if the base address is an indirect reference and the
9842         aliasing sets could cause issues.
9843
9844 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
9845
9846         * common.opt (fgraphite, fgraphite-identity): Add comment for
9847         explaining why these options are not documented.
9848
9849 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
9850
9851         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
9852         gimple_call_lhs is NULL.
9853
9854 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
9855
9856         PR target/38868
9857         * emit-rtl.c (adjust_address_1): Make sure memref is never
9858         overwritten.
9859
9860 2009-01-20  Ben Elliston  <bje@au.ibm.com>
9861
9862         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
9863         const qualifier from arg parameter. Remove unnecessary cast to char *.
9864         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
9865         const qualifier from arg 2.
9866
9867 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
9868
9869         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
9870
9871 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
9872
9873         PR c/38869
9874         * rtl.h (reinit_regs): New prototype.
9875         * regclass.c: Include ira.h.
9876         (reinit_regs): New.
9877         * Makefile.in (regclass.o): Add ira.h.
9878         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
9879
9880 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
9881
9882         PR target/38736
9883         * c-common.c (handle_aligned_attribute): Use
9884         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
9885         default alignment value.
9886
9887         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
9888
9889         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
9890         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
9891
9892         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
9893         __BIGGEST_ALIGNMENT__.
9894
9895         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
9896
9897 2009-01-18  Richard Guenther  <rguenther@suse.de>
9898
9899         PR tree-optimization/38819
9900         * tree-flow.h (operation_could_trap_helper_p): Declare.
9901         * tree-eh.c (operation_could_trap_helper_p): Export.
9902         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
9903         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
9904         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
9905         are about to insert a possibly trapping instruction and fail
9906         in this case.
9907
9908 2009-01-18  Andreas Schwab  <schwab@suse.de>
9909
9910         * doc/install.texi (Configuration): Remove obsolete paragraph
9911         about use of --with-gnu-ld with --with-gnu-as.
9912
9913 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
9914
9915         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
9916         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
9917         Follow spelling conventions.
9918
9919 2009-01-18  Ben Elliston  <bje@au.ibm.com>
9920
9921         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
9922         C++ warning about implicit conversion from void * to struct
9923         bitmap_head_def *.
9924         (bitmap_obstack_free): Likewise for bitmap_element *.
9925         * Makefile.in (bitmap.o-warn): Remove.
9926
9927 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
9928
9929         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
9930
9931 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
9932             Tobias Grosser  <tobi.grosser@amd.com>
9933
9934         * graphite.c (graphite_trans_scop_block): Do not block single
9935         nested loops.
9936
9937 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
9938
9939         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
9940         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
9941         test with assertion.
9942
9943 2009-01-16  Richard Guenther  <rguenther@suse.de>
9944
9945         PR tree-optimization/38835
9946         PR middle-end/36227
9947         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
9948         and INT + PTR -> (INT)(PTR p+ INT) folding.
9949         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
9950
9951 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
9952
9953         PR target/38554
9954         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
9955         the subreg from a lowpart subreg if it is also casting the value.
9956
9957 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9958             Tobias Grosser  <tobi.grosser@amd.com>
9959
9960         * graphite.c (compare_prefix_loops): New.
9961         (build_scop_canonical_schedules): Rewritten.
9962         (graphite_transform_loops): Move build_scop_canonical_schedules
9963         after build_scop_iteration_domain.
9964
9965 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
9966             Tobias Grosser  <tobi.grosser@amd.com>
9967
9968         * graphite.c (add_conditions_to_domain): Add the loops to
9969         the dimension of the iteration domain.  Do copy the domain
9970         only when it exists.
9971         (build_scop_conditions_1): Do not call add_conditions_to_domain.
9972         (add_conditions_to_constraints): New.
9973         (can_generate_code_stmt, can_generate_code): Removed.
9974         (gloog): Do not call can_generate_code.
9975         (graphite_transform_loops): Call add_conditions_to_constraints
9976         after building the iteration domain.
9977
9978 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
9979
9980         PR tree-optimization/38789
9981         * tree-ssa-threadedge.c
9982         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9983         __builtin_constant_p.
9984
9985 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
9986
9987         * dce.c (delete_unmarked_insns): Reversed the order that insns are
9988         examined before deleting them.
9989
9990 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
9991
9992         * function.c (aggregate_value_p): Correctly extract the function
9993         type from CALL_EXPR_FN lookup.
9994
9995 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
9996
9997         * config/picochip/picochip.c (picochip_override_options): Revert
9998         CFI asm flag disable commited previously.
9999
10000 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
10001             Tobias Grosser  <tobi.grosser@amd.com>
10002             Jan Sjodin  <jan.sjodin@amd.com>
10003
10004         * graphite.c (scan_tree_for_params): On substractions negate
10005         all the coefficients of the term.
10006         (clast_to_gcc_expression_red): New.  Handle reduction expressions
10007         of more than two operands.
10008         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
10009         (get_vdef_before_scop): Handle also the case of default definitions.
10010
10011 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
10012
10013         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
10014         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
10015         Also use them when walking CALL_INSN_FUNCTION_USAGE.
10016
10017 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
10018             Joey Ye  <joey.ye@intel.com>
10019
10020         PR middle-end/37843
10021         * cfgexpand.c (expand_stack_alignment): Don't update stack
10022         boundary nor check incoming stack boundary here.
10023         (gimple_expand_cfg): Update stack boundary and check incoming
10024         stack boundary here.
10025
10026 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
10027
10028         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
10029
10030 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
10031
10032         PR rtl-optimization/38245
10033         * calls.c (expand_call): Add stack arguments to
10034         CALL_INSN_FUNCTION_USAGE even for pure calls (when
10035         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
10036         in regs and partially in memory or BLKmode arguments.
10037         (emit_library_call_value_1): Add stack arguments to
10038         CALL_INSN_FUNCTION_USAGE even for pure calls (when
10039         ACCUMULATE_OUTGOING_ARGS).
10040         * dce.c: Include tm_p.h.
10041         (find_call_stack_args): New function.
10042         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
10043         argument.
10044         (mark_insn): Call find_call_stack_args for CALL_Ps.
10045         (prescan_insns_for_dce): Walk insns backwards in bb rather than
10046         forwards.  Allocate and free arg_stores bitmap if needed, pass it
10047         down to deletable_insn_p, don't mark stores set in arg_stores
10048         bitmap, clear the bitmap at the beginning of each bb.
10049         * Makefile.in (dce.o): Depend on $(TM_P_H).
10050
10051 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
10052
10053         PR target/22599
10054         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
10055         to make sure the insn is a conditional test (bug 22599).  Reformat a
10056         few long lines.
10057
10058 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
10059
10060         PR middle-end/38431
10061         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
10062         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
10063         (gloog): Do not call cleanup_tree_cfg.
10064         (graphite_transform_loops): Call cleanup_tree_cfg after all
10065         scops have been code generated.
10066
10067 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
10068         * doc/gty.texi (Invoking the garbage collector): Added new node
10069         and section documenting ggc_collect.
10070
10071 2009-01-14  Richard Guenther  <rguenther@suse.de>
10072
10073         PR tree-optimization/38826
10074         PR middle-end/38477
10075         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
10076         initialization notes only if we actually emitted a warning.
10077         (intra_create_variable_infos): Add constraints for a result decl
10078         that is passed by hidden reference.
10079         (build_pred_graph): Mark all related variables non-direct on
10080         address-taking.
10081
10082 2009-01-14  Nick Clifton  <nickc@redhat.com>
10083
10084         * ira-conflicts.c: Include addresses.h for the definition of
10085         base_reg_class.
10086         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
10087         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
10088
10089 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
10090
10091         PR target/38811
10092         * Makefile.in (ira-lives.o): Add except.h.
10093
10094         * ira-lives.c: Include except.h.
10095         (process_bb_node_lives): Process can_throw_internal.
10096
10097 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
10098
10099         PR rtl-optimization/38774
10100         * combine.c (simplify_set): When undoing cc_use change, don't do
10101         PUT_CODE on the newly created comparison, but instead put back the
10102         old comparison.
10103
10104 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
10105
10106         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
10107         values.  Remove duplicate arm8 entry.
10108
10109 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
10110
10111         PR tree-optimization/38786
10112         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
10113         the SSA_NAME case of expand_scalar_variables_expr.
10114         Set the type of an expression to the type of its assign statement.
10115         (expand_scalar_variables_expr): Also gather the scalar computation
10116         used to index the memory access.  Do not pass loop_p.
10117         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
10118         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
10119         the gimple_stmt_iterator where it inserts new code.
10120         Do not pass loop_p.
10121         (copy_bb_and_scalar_dependences): Do not pass loop_p.
10122         (translate_clast): Update call to copy_bb_and_scalar_dependences.
10123
10124 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
10125
10126         * graphite.h (debug_value): Removed.
10127         * graphite.c (debug_value): Removed.
10128
10129 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
10130
10131         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
10132         ldrd/strd with two 32-bit instructions.
10133
10134 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
10135
10136         * config/arm/arm.c (struct processors): Pass for speed down into
10137         cost helper functions.
10138         (const_ok_for_op): Handle COMPARE and inequality nodes.
10139         (arm_rtx_costs_1): Rewrite.
10140         (arm_size_rtx_costs): Update prototype.
10141         (arm_rtx_costs): Pass speed down to helper functions.
10142         (arm_slowmul_rtx_costs): Rework cost calculations.
10143         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
10144         (arm_9e_rtx_costs): Likewise.
10145
10146 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
10147
10148         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
10149         relocations of local symbols wider than UNITS_PER_WORD are not valid.
10150         (alpha_legitimize_address): Do not split local symbols wider than
10151         UNITS_PER_WORD into HIGH/LO_SUM parts.
10152
10153 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
10154
10155         PR bootstrap/38580
10156         * gcc.c (process_command): Replace call to execvp with calls
10157         to pex_one and exit.
10158
10159 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
10160
10161         PR target/29141
10162         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
10163         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
10164         variant for devices with 3-byte PC.
10165         (__tablejump_elpm__): New.
10166
10167 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
10168
10169         PR c/32041
10170         * c-parser.c (c_parser_postfix_expression): Allow `->' in
10171         offsetof member-designator, handle it as `[0].'.
10172
10173 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10174
10175         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
10176         function when not using named sections on targets with named sections
10177         if branch distance is less than 262132.
10178
10179 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
10180
10181         * combine.c (combine_instructions):  Recompute
10182         optimize_this_for_speed_p  for each BB in the main combine loop.
10183
10184 2009-01-12  Tomas Bily  <tbily@suse.cz>
10185
10186         PR middlend/38385
10187         * tree-loop-distribution.c (prop_phis): New function.
10188         (generate_builtin): Call prop_phis.
10189         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
10190
10191 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
10192
10193         PR tree-optimization/38807
10194         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
10195         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
10196
10197 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
10198
10199         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
10200         subreg of op0 to the original op0.
10201
10202 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
10203
10204         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
10205
10206 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
10207
10208         PR debug/7055
10209         * mips-tfile.c (parse_def): Fix parsing of def strings
10210         starting with digits.
10211
10212 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
10213
10214         PR target/38695
10215         * config/arm/arm.c (arm_is_long_call_p): Don't call
10216         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
10217
10218 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
10219
10220         * regrename.c (regrename_optimize): Fix dumping.
10221         (find_oldest_value_reg): Preserve REG_POINTER.
10222         (copy_hardreg_forward_1): Likewise.
10223
10224 2009-01-09  Diego Novillo  <dnovillo@google.com>
10225
10226         * gimple.h (struct gimple_statement_base) <uid>: Document
10227         the restrictions on its use.
10228         (gimple_uid): Tidy.
10229         (gimple_set_uid): Tidy.
10230
10231 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
10232
10233         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
10234         zero guard even if align_bytes != 0 and count is smaller than
10235         size_needed.
10236
10237 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
10238
10239         PR rtl-optimization/38495
10240         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
10241         (add_range_and_copies_from_move_list): Print all added ranges.
10242         Add ranges to memory optimized destination.
10243
10244 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
10245
10246         PR target/38686
10247         PR target/38708
10248         * config/i386/i386.c (override_options): Reject
10249         -mstringop-strategy=rep_8byte with -m32.
10250         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
10251         to 1.  Do count comparison against epilogue_size_needed at compile
10252         time even when count_exp was constant forced into register.  For
10253         size_needed don't jump to epilogue, instead just avoid aligning
10254         and invoke the body algorithm.  If need_zero_guard, add zero guard
10255         even if count is non-zero, but smaller than size_needed + number of
10256         bytes that could be stored for alignment.
10257         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
10258         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
10259         but smaller than size_needed + number of bytes that could be stored
10260         for alignment.  Compare size_needed with epilogue_size_needed instead
10261         of desired_align - align, don't adjust size_needed, pass
10262         epilogue_size_needed to the epilogue expanders.
10263
10264         PR c/35742
10265         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
10266
10267 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10268
10269         * pa.c (last_address): Change to unsigned.
10270         (update_total_code_bytes): Change argument to unsigned.  Don't
10271         check if insn addresses are set.
10272         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
10273         addresses are not set.
10274         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
10275
10276 2009-01-09  Nick Clifton  <nickc@redhat.com>
10277
10278         * config/sh/symbian.c: Replace uses of DECL_INLINE with
10279         DECL_DECLARED_INLINE_P.
10280
10281 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
10282
10283         PR middle-end/38347
10284         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
10285         GET_MODE (op0) in operand_subword_force calls.
10286
10287         PR middle-end/38771
10288         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
10289         fold_convert arg0 operands to TREE_TYPE (op0) first.
10290
10291 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
10292
10293         * params.def (ira-max-conflict-table-size): Decrease default value
10294         to 1000.
10295
10296 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
10297
10298         PR tree-optimization/37031
10299         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
10300         on parameter_set.
10301         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
10302         allocate it using gc instead of heap, use VEC_quick_push instead of
10303         VEC_safe_push.
10304         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
10305         instead of heap, use VEC_quick_push instead of VEC_safe_push.
10306         * tree-data-ref.h (struct access_matrix): Change matrix to gc
10307         allocated vector from heap allocated.
10308         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
10309         * tree-loop-linear.c (linear_transform_loops): Allocate nest
10310         vector only after perfect_loop_nest_depth call.
10311
10312 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
10313             Jan Sjodin  <jan.sjodin@amd.com>
10314
10315         PR tree-optimization/38559
10316         * graphite.c (debug_value, copy_constraint,
10317         swap_constraint_variables, scale_constraint_variable, ): New.
10318         (get_lower_bound, get_upper_bound): Removed.
10319         (graphite_trans_bb_strip_mine): Clean up this code that works
10320         only for constant number of iterations.  Fully copy upper and
10321         lower bound constraints, not only the constant part of them.
10322         * graphite.h (debug_value): Declared.
10323
10324 2009-01-08  Ira Rosen  <irar@il.ibm.com>
10325
10326         PR tree-optimization/37194
10327         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
10328         Don't add the cost of cost model guard in prologue to scalar
10329         outside cost in case of known number of iterations.
10330
10331 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
10332             Alan Modra  <amodra@bigpond.net.au>
10333
10334         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
10335         non-word-aligned REG+CONST addressing.
10336
10337 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
10338
10339         PR target/38706
10340         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
10341         free_after_compilation when outputting a thunk.
10342         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
10343         Do not call free_after_compilation here.
10344
10345 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
10346
10347         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
10348         (ix86_valid_target_attribute_inner_p): Ditto.
10349
10350 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
10351
10352         PR tree-optimization/38492
10353         PR tree-optimization/38498
10354         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
10355         * tree-chrec.h (scev_is_linear_expression): Declared.
10356         * graphite.c (graphite_cannot_represent_loop_niter): New.
10357         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
10358         (graphite_loop_normal_form): Use gcc_assert.
10359         (scan_tree_for_params): Use CASE_CONVERT.
10360         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
10361         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
10362         Use gcc_assert.  Discard scops that contain unhandled cases.
10363         (build_scop_conditions): Return a boolean status for unhandled cases.
10364         (strip_mine_profitable_p): Print the loop number, not its depth.
10365         (is_interchange_valid): Pass the depth of the loop nest, don't
10366         recompute it wrongly.
10367         (graphite_trans_bb_block): Same.
10368         (graphite_trans_bb_block): Print tentative of loop blocking.
10369         (graphite_trans_scop_block): Do not print that the loop has been
10370         blocked.
10371         (graphite_transform_loops): Do not handle scops that contain condition
10372         scalar phi nodes.
10373
10374 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
10375
10376         AVX Programming Reference (December, 2008)
10377         * config/i386/avxintrin.h (_mm256_stream_si256): New.
10378         (_mm256_stream_pd): Likewise.
10379         (_mm256_stream_ps): Likewise.
10380
10381         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
10382         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
10383         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
10384         (bdesc_special_args): Add __builtin_ia32_movntdq256,
10385         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
10386         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
10387         (ix86_expand_special_args_builtin): Likewise.
10388
10389         * config/i386/sse.md (AVXMODEDI): New.
10390         (avx_movnt<mode>): Likewise.
10391         (avx_movnt<mode>): Likewise.
10392         (<sse>_movnt<mode>): Remove AVX support.
10393         (sse2_movntv2di): Likewise.
10394
10395 2009-01-07  Richard Guenther  <rguenther@suse.de>
10396
10397         PR middle-end/38751
10398         * fold-const.c (extract_muldiv): Remove obsolete comment.
10399         (fold_plusminus_mult_expr): Undo MINUS_EXPR
10400         to PLUS_EXPR canonicalization for the canonicalization.
10401
10402 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
10403
10404         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
10405         hosted cross-compilers generating less efficient code.
10406
10407 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
10408
10409         * function.h (rtl_data): Add a dbr_scheduled_p field.
10410         * reorg.c (dbr_schedule): Set it.
10411         (gate_handle_delay_slots): Check it.
10412         * config/mips/mips.c (mips_base_delayed_branch): Delete.
10413         (mips_reorg): Check flag_delayed_branch instead of
10414         mips_base_delayed_branch.
10415         (mips_override_options): Don't set mips_base_delayed_branch
10416         or flag_delayed_branch.
10417
10418 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
10419
10420         PR rtl-optimization/38426.
10421         * ira.c (ira): Set current_function_is_leaf earlier.
10422
10423 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
10424
10425         PR rtl-optimization/38722
10426         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
10427         too early, only set a flag and modify after last possible
10428         undo_all point.
10429
10430 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
10431
10432         PR c/34252
10433         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
10434         * real.c (decimal_single_format): Correct values of emin and emax.
10435         (decimal_double_format): Ditto.
10436         (decimal_quad_format): Ditto.
10437         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
10438         computation of DECnn_MIN and DECnn_MAX for corrected values of
10439         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
10440         __DECnn_MIN__, and adjust its computation for the corrected value
10441         of emin.
10442
10443 2009-01-06  Jan Hubicka  <jh@suse.cz>
10444
10445         PR target/38744
10446         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
10447
10448 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
10449
10450         * doc/contrib.texi (Contributors): Slightly adjust the end note.
10451         Add Robert Clark to the list of testers.
10452
10453 2009-01-06  Jan Hubicka  <jh@suse.cz>
10454             Kai Tietz  <kai.tietz@onevision.com>
10455
10456         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
10457         * config/i386/i386.c (ix86_expand_call): Add clobbers.
10458
10459 2009-01-06  Jan Hubicka  <jh@suse.cz>
10460             Kai Tietz  <kai.tietz@onevision.com>
10461
10462         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
10463         for w64 ABI.
10464         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
10465         (ix86_nsaved_regs): Count only general purpose regs.
10466         (ix86_nsaved_sseregs): New.
10467         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
10468         to 16 for w64; compute padding and size of sse reg save area.
10469         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
10470         general purpose regs.
10471         (ix86_emit_save_sse_regs_using_mov): New.
10472         (ix86_expand_prologue): Save SSE regs if needed.
10473         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
10474         (ix86_emit_restore_sse_regs_using_mov): New.
10475         (ix86_expand_epilogue): Save SSE regs if needed.
10476
10477 2009-01-06  Jan Hubicka  <jh@suse.cz>
10478             Kai Tietz  <kai.tietz@onevision.com>
10479
10480         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
10481         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
10482         functions when accumulate outgoing args is off.
10483
10484 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
10485
10486         PR bootstrap/38742
10487         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
10488         before using pseudos_have_intersected_live_ranges_p.
10489
10490         * ira-int.h (ira_assert): Always define.
10491
10492 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
10493
10494         AVX Programming Reference (December, 2008)
10495         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
10496         (_mm256_permute2_pd): Likewise.
10497         (_mm_permute2_ps): Likewise.
10498         (_mm256_permute2_ps): Likewise.
10499         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
10500         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
10501
10502         * config/i386/i386.c (ix86_builtins): Remove
10503         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
10504         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
10505         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
10506         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
10507         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
10508         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
10509         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
10510         __builtin_ia32_vpermil2ps256.
10511         (ix86_init_mmx_sse_builtins): Updated.
10512         (ix86_expand_args_builtin): Likewise.
10513
10514 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10515
10516         * pa.c (output_call): Relocate non-jump insns in the delay slot of
10517         long absolute calls when generating PA 2.0 code.
10518
10519 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
10520
10521         PR rtl-optimization/38583
10522         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
10523
10524         * params.def (ira-max-conflict-table-size): New.
10525
10526         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
10527
10528         * ira.h (ira_conflicts_p): New external definition.
10529
10530         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
10531         table.  Report this.  Return result of building.
10532         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
10533         building conflict table.
10534
10535         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
10536         (ira_color): Use ira_conflicts_p.
10537
10538         * global.c: Include ira.h.
10539         (pseudo_for_reload_consideration_p, build_insn_chain): Use
10540         ira_conflicts_p.
10541
10542         * Makefile.in (global.o): Add ira.h.
10543
10544         * ira-build.c (mark_all_loops_for_removal,
10545         propagate_some_info_from_allocno): New.
10546         (remove_unnecessary_allocnos): Call
10547         propagate_some_info_from_allocno.
10548         (remove_low_level_allocnos): New.
10549         (remove_unnecessary_regions): Add parameter.  Call
10550         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
10551         parameter to remove_unnecessary_regions.
10552         (ira_build): Remove all regions but root if the conflict table was
10553         not built.  Update conflict hard regs for allocnos crossing calls.
10554
10555         * ira.c (ira_conflicts_p): New global.
10556         (ira): Define and use ira_conflicts_p.
10557
10558         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
10559         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
10560         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
10561
10562 2009-01-06  Ben Elliston  <bje@au.ibm.com>
10563
10564         * gengtype-lex.l (YY_NO_INPUT): Define.
10565
10566 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10567
10568         PR c/34911
10569         * c-common.c (handle_vector_size_attribute): Also reject
10570         BOOLEAN_TYPE types.
10571
10572 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
10573
10574         PR tree-optimization/38492
10575         * graphite.c (rename_map_elt, debug_rename_elt,
10576         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
10577         rename_map_elt_info, eq_rename_map_elts,
10578         get_new_name_from_old_name, bb_in_sese_p): Moved around.
10579         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
10580         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
10581         (sese_build_livein_liveouts): New.
10582         (new_sese, free_sese): New.
10583         (new_scop): Call new_sese.
10584         (free_scop): Call free_sese.
10585         (rename_variables_from_edge, rename_phis_end_scop): Removed.
10586         (register_old_new_names): Renamed register_old_and_new_names.
10587         (register_scop_liveout_renames, add_loop_exit_phis,
10588         insert_loop_close_phis, struct igp,
10589         default_liveout_before_guard, add_guard_exit_phis,
10590         insert_guard_phis, copy_renames): New.
10591         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
10592         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
10593         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
10594         (scop_adjust_phis_for_liveouts): New.
10595         (gloog): Call scop_adjust_phis_for_liveouts.
10596
10597         * graphite.h (struct sese): Documented.  Added fields liveout,
10598         num_ver and livein.
10599         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
10600         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
10601         (struct scop): Added field liveout_renames.
10602         (SCOP_LIVEOUT_RENAMES): New.
10603
10604 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
10605
10606         PR tree-optimization/38510
10607         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
10608         (translate_clast): Call recompute_all_dominators before
10609         graphite_verify.
10610         (gloog): Call recompute_all_dominators before graphite_verify.
10611
10612 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
10613             Jan Sjodin  <jan.sjodin@amd.com>
10614
10615         PR tree-optimization/38500
10616         * graphite.c (create_sese_edges): Call fix_loop_structure after
10617         splitting blocks.
10618
10619 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
10620
10621         * config.gcc: Add m32r*-*-rtems*.
10622         * config/m32r/rtems.h: New file.
10623
10624 2009-01-05  Ben Elliston  <bje@au.ibm.com>
10625
10626         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
10627         (.po.pox): Likewise.
10628         (po/gcc.pot): Likewise.
10629
10630 2009-01-04  David S. Miller  <davem@davemloft.net>
10631
10632         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
10633         (STARTING_FRAME_OFFSET): Always set to zero.
10634
10635 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
10636
10637         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
10638         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
10639         fixed-point types, and vectors of the same.
10640
10641 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
10642
10643         * config/mips/sync.md (*mb_barrier): Rename to...
10644         (*memory_barrier): ...this.
10645
10646 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
10647
10648         * doc/extend.texi (Function Attributes): Move @cindex after @item
10649         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
10650         and put in alphabetical order. Fix 'target' name and put in order.
10651         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
10652         typos.
10653
10654 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
10655
10656         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
10657         (memory_barrier): Expand as unspec instead of unspec_volatile.
10658         Remove mem:BLK from insn operands.  Use Pmode scratch register.
10659         (*memory_barrier): Define as unspec instead of unspec_volatile.
10660         Use (match_dup 0) as input operand.
10661
10662         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
10663         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
10664         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
10665         scratch register.  Remove operand 1.
10666         (*stbar): Define as unspec instead of unspec_volatile.
10667         Use (match_dup 0) as input operand, remove (const_int 8).
10668         (*membar): Define as unspec instead of unspec_volatile.
10669         Use (match_dup 0) as input operand, remove input operand 2.
10670
10671         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
10672         (memory_barrier): Expand as unspec instead of unspec_volatile.
10673         Remove mem:BLK from insn operands.  Use Pmode scratch register.
10674         (*memory_barrier): Define as unspec instead of unspec_volatile.
10675         Use (match_dup 0) as input operand.
10676
10677         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
10678         Remove mem:BLK from insn operands.  Use Pmode scratch register.
10679         Set volatile flag on operand 0.
10680         (*memory_barrier): New insn pattern.
10681
10682         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
10683         insn operands.
10684         (*memory_barrier): Use (match_dup 0) as input operand.
10685
10686         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
10687         Remove mem:BLK from insn operands.  Use Pmode scratch register.
10688         Set volatile flag on operand 0.
10689         (*mb_internal): New insn pattern.
10690
10691         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
10692
10693 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
10694
10695         PR middle-end/38586
10696         * function.c (struct temp_slot): Move to the section of the file
10697         that deals with temp slots.  Remove field 'address'.
10698         (temp_slot_address_table): New hash table of address -> temp slot.
10699         (struct temp_slot_address_entry): New struct, items for the table.
10700         (temp_slot_address_compute_hash, temp_slot_address_hash,
10701         temp_slot_address_eq, insert_temp_slot_address): Support functions
10702         for the new table.
10703         (find_temp_slot_from_address): Rewrite to use the new hash table.
10704         (remove_unused_temp_slot_addresses): Remove addresses of temp
10705         slots that have been made available.
10706         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
10707         worker function for remove_unused_temp_slot_addresses.
10708         (assign_stack_temp_for_type): Don't clear the temp slot address list.
10709         Add the temp slot address to the address -> temp slot map.
10710         (update_temp_slot_address): Update via insert_temp_slot_address.
10711         (free_temp_slots): Call remove_unused_temp_slot_addresses.
10712         (pop_temp_slots): Likewise.
10713         (init_temp_slots): Allocate the address -> temp slot map, or empty
10714         the map if it is already allocated.
10715         (prepare_function_start): Initialize temp slot processing.
10716
10717 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
10718
10719         PR middle-end/38584
10720         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
10721         Calculate the size of all stack vars assuming no packing of stack
10722         vars will happen, replacing a quadratic algorithm with a linear one.
10723
10724 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
10725
10726         PR target/38707
10727         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
10728         can't be used.
10729
10730 2009-01-03  Diego Novillo  <dnovillo@google.com>
10731
10732         * doc/contrib.texi: Update contributions.
10733
10734 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
10735
10736         PR c++/38705
10737         * builtins.c (fold_builtin_memory_op): Give up if either operand
10738         is volatile.  Set srctype or desttype to non-qualified version
10739         of the other type.
10740
10741         PR c/38700
10742         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
10743         and FUNCTION_DECLs.
10744
10745 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
10746
10747         PR rtl-optimization/35805
10748         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
10749         problem if fast dce is able to remove any instructions.
10750         * dce.c (dce_process_block): Fix dump message.
10751
10752 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
10753
10754         PR 33649
10755         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
10756
10757 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
10758
10759         PR middle-end/38690
10760         * tree-flow.h (op_code_prio, op_prio): New prototypes.
10761         * tree-pretty-print.c (op_code_prio): New function.
10762         (op_prio): No longer static.  Use op_code_prio.
10763         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
10764         Use op_prio and op_code_prio to determine if () should be
10765         printed around operand(s) or not.
10766
10767         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
10768         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
10769         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
10770         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
10771         pp_character instead of pp_string for single letter printing.
10772
10773 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10774
10775         * doc/extend.texi: Fix '#pragma GCC option' typo.
10776
10777 2009-01-02  Richard Guenther  <rguenther@suse.de>
10778
10779         * doc/install.texi (--enable-checking): Mention different
10780         default for stage1.
10781         (--enable-stage1-checking): Document.
10782
10783 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
10784
10785         PR middle-end/30142
10786         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
10787         case to be an error.
10788
10789 2009-01-02  Ben Elliston  <bje@au.ibm.com>
10790
10791         * config/fp-bit.h (pack_d): Constify argument.
10792         * config/fp-bit.c (makenan): Constify return type. Remove casts.
10793         (isnan): Constify argument.
10794         (isinf): Likewise.
10795         (iszero): Likewise.
10796         (pack_d): Likewise.
10797         (_fpadd_parts): Constify return type.
10798         (_fpmul_parts): Likewise.
10799         (_fpdiv_parts): Likewise.
10800
10801 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
10802
10803         PR c/36489
10804         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
10805         warn about overwriting initializer with side-effects or
10806         -Woverride-init if !IMPLICIT.
10807         (output_init_element): Likewise.  Pass IMPLICIT down to
10808         add_pending_init.
10809         (process_init_element): Add IMPLICIT argument.  Pass it down
10810         to output_init_element.
10811         (push_init_element, pop_init_level, set_designator): Adjust
10812         process_init_element callers.
10813         (set_nonincremental_init, set_nonincremental_init_from_string):
10814         Adjust add_pending_init callers.
10815         (output_pending_init_elements): Adjust output_init_element callers.
10816         * c-tree.h (process_init_element): Adjust prototype.
10817         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
10818         process_init_element callers.
10819
10820 \f
10821 Copyright (C) 2009 Free Software Foundation, Inc.
10822
10823 Copying and distribution of this file, with or without modification,
10824 are permitted in any medium without royalty provided the copyright
10825 notice and this notice are preserved.