OSDN Git Service

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