OSDN Git Service

* cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
2
3         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
4         comment typos.
5
6 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
7
8         PR target/17565
9         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
10
11 2004-09-20  Jan Hubicka  <jh@suse.cz>
12
13         * predict.c (estimate_probability): Remove unnecesary code.
14
15 2004-09-19  Ira Rosen  <irar@il.ibm.com>
16
17         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
18         (STMT_VINFO_VECT_DR_BASE): Declare.
19         (VECT_SMODULO): Declare.
20         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
21         (vect_compute_array_base_alignment): New function.
22         (vect_analyze_data_ref_access): Check array indices. Remove one
23         dimensional arrays restriction.
24         (vect_get_ptr_offset): New function.
25         (vect_get_symbl_and_dr): New function.
26         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
27         (former name vect_get_base_decl_and_bit_offset).
28         (vect_create_index_for_array_ref): Removed.
29         (vect_create_index_for_vector_ref): New function.
30         (vect_create_addr_base_for_vector_ref): New function.
31         (vect_create_data_ref): Handle additional data refs. Call
32         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
33         (vect_compute_data_ref_alignment): Support the changes. Call
34         vect_get_base_and_bit_offset.
35         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
36         data refs. Store vect_dr_base.
37         (vect_analyze_data_ref_accesses): Support nonconstant init.
38         (new_stmt_vec_info): Initialize vect_dr_base field.
39         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
40         (get_vectype_for_scalar_type): Check for BLKmode.
41         * tree-chrec.h (initial_condition_in_loop_num): Declare.
42         * tree-chrec.c (initial_condition_in_loop_num): New function.
43         (chrec_component_in_loop_num): New function.
44         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
45         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
46         to be pointer to varray_type.
47
48 2004-09-19  Jan Hubicka  <jh@suse.cz>
49
50         * basic-block.h (update_bb_profile_after_threading): Declare.
51         * cfg.c (update_bb_profile_after_threading): Break out from ...
52         * cfgcleanup.c (try_forward_edges): ... here; use it.
53         * tree-ssa-dom.c (thread_across_edge): Use it.
54         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
55         profile of the new BB.
56
57 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
58
59         * tree-ssa-pre.c (insert_into_set): Don't put
60         is_gimple_min_invariant values into the set.
61
62 2004-09-19  Andreas Jaeger  <aj@suse.de>
63
64         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
65         prototype.
66
67 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
68
69         * config/cris/cris.h: Preserve the original spelling in a
70         quote.
71
72 2004-09-18 Jeff Law  <law@redhat.com>
73
74         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
75         global varrays to replace the block local varrays.
76         (struct dom_walk_block_data): Remove, no longer used.
77         (get_eq_expr_value): No longer need to pass around pointers to local
78         varrays.  Callers updated.  Unused markers added to unused parameters.
79         (record_range, record_equivalences_from_stmt): Likewise.
80         (record_equivalences_from_incoming_edge): Likewise.
81         (record_var_is_nonzero): Likewise.  Update now that we have a
82         single global varray of SSA_NAMEs that need restoring.
83         (dom_opt_initialize_block_local_data): Kill, no longer used.
84         (tree_ssa_dominator_optimize): Initialize new global varrays.
85         Update callbacks in dominator walker structure.
86         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
87         VRP_VARIABLES_STACK.
88         (restore_nonzero_vars_to_original_value): Update now that we have
89         a single global varray of SSA_NAMEs that need restoring.
90         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
91         Remove unused variables.
92         (optimize_stmt): Remove unused variable.
93
94 2004-09-18  Jan Hubicka  <jh@suse.cz>
95
96         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
97
98         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
99         verify_cgraph call.
100
101 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
102
103         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
104         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
105         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
106         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
107         tree-ssa-operands.c, tree-ssa-phiopt.c,
108         tree-ssa-threadupdate.c: Fix comment typos.
109
110 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
111
112         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
113         config/arm/README-interworking, config/arm/arm-cores.def,
114         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
115         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
116         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
117         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
118         config/frv/frv.md, config/i386/winnt.c,
119         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
120         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
121         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
122         config/mcore/mcore.c, config/mips/mips.h,
123         config/mn10300/mn10300.md, config/pa/pa.c,
124         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
125         config/rs6000/rs6000.c, config/sh/symbian.c,
126         config/sparc/sparc.h: Fix comment typos.  Follow spelling
127         conventions.
128
129 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
130
131         PR c/17424
132         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
133
134 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
135
136         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
137         remove TREE_ADDRESSABLE from RESULT_DECL.
138
139 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
140
141         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
142
143 2004-09-18  Jan Hubicka  <jh@suse.cz>
144
145         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
146         NULL.
147         * tree-ssa-alias.c (init_alias_info): Likewise.
148         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
149         (verify_ssa): Likewise.
150         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
151
152 2004-09-18  Jan Hubicka  <jh@suse.cz>
153
154         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
155         huge offset.
156
157 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
158
159         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
160         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
161         DW_EH_PE_sdata* for data.
162         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
163
164 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
165
166         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
167         shared anyway.
168
169         PR pch/13361
170         * c-typeck.c (constructor_asmspec): Delete.
171         (struct initializer_stack): Delete field 'asmspec'.
172         (start_init): Delete saving of asmspec.
173         (finish_init): Don't update constructor_asmspec.
174         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
175         * stmt.c (expand_asm): Duplicate strings from tree.
176         (expand_asm_operands): Likewise.
177         * tree.c (tree_size): Update computation of size of STRING_CST.
178         (make_node): Don't make STRING_CST nodes.
179         (build_string): Allocate string with tree node.
180         (tree_code_size): Clean up assertions, don't allow requests
181         for "the size of a STRING_CST".
182         * tree.def (STRING_CST): Update comment.
183         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
184         (tree_string): Place contents of string in tree node.
185         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
186         from tree.
187
188 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
189
190         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
191         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
192
193 2004-09-17  Jones Desougi  <jones@ingate.com>
194
195         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
196         * configure, config.in: Regenerate.
197
198 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
199
200         * tree.c, tree.h (tree_class_strings): Make array const.
201         Reindent per coding convention.  Move asterisk to proper place
202         per coding convention.
203
204 2004-09-18  Andreas Schwab  <schwab@suse.de>
205
206         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
207         (tree-vectorizer.o): Likewise.
208         (targhooks.o): Likewise.
209
210 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
211             Zack Weinberg  <zack@codesourcery.com>
212
213         * alias.c (find_base_decl): Remove unreachable case '3' block.
214         * expr.c (safe_from_p): Abort if passed a type.
215         * tree-gimple.c (recalculate_side_effects): Abort if passed
216         anything other than an expression.
217         * tree-ssa-pre.c (phi_translate): Return expr immediately if
218         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
219         Abort on un-handled tree classes.
220         (valid_in_set): Likewise.
221         * tree.c (tree_code_class_strings): New static data.
222
223         * tree.h (enum tree_code_class): New.
224         (tree_code_class_strings): Declare.
225         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
226         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
227         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
228         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
229         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
230
231         * tree.def, c-common.def, objc/objc-tree.def: Use
232         tree_code_class enumeration constants instead of code letters.
233
234         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
235         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
236         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
237         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
238         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
239         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
240         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
241         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
242         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
243         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
244         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
245         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
246         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
247         Update to match.
248
249         * LANGUAGES: Add note about change.
250
251 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
252
253         PR tree-optimization/17319
254         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
255         examine pointers on the LHS of an assignment.
256         (collect_points_to_info_r): Handle RETURN_EXPR.
257
258 2004-09-17 Jeff Law  <law@redhat.com>
259
260         * tree-ssa-dom.c (const_and_copies_stack): New.
261         (dom_walk_block_data): Remove const_and_copies field.
262         (record_const_or_copy): No longer need to pass in varray_type *.
263         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
264         Callers updated.
265         (record_equality): Similarly.
266         (restore_vars_to_original_value): Similarly.  Revamp to use new
267         single global stack rather than per-block stacks.
268         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
269         (thread_across_edge): Remove now unused parameters.
270         (dom_opt_initialize_block_local_data): No longer test the block
271         local CONST_AND_COPIES.
272         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
273
274 2004-09-17  Jan Hubicka  <jh@suse.cz>
275
276         PR tree-optimization/17509
277         * tree-optimize.c (update_inlined_to_pointers): New function.
278         (tree_rest_of_compilation): Use it.
279
280 2004-09-17  Devang Patel  <dpatel@apple.com>
281
282         * dbxout.c (get_lang_number): New.
283         (dbxout_init): Include lang number in N_SO  stab.
284         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
285         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
286
287 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
288
289         PR tree-optimization/17273
290         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
291         replacement is a constant.
292
293 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
294
295         * c-tree.h (enum c_typespec_keyword): New.
296         (struct c_declspecs): Adjust description of "type".  Remove
297         specbits, explicit_int_p and explicit_char_p.  Rename
298         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
299         short_p, signed_p, unsigned_p and complex_p.
300         (finish_declspecs): New.
301         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
302         typename): Call finish_declspecs.
303         * c-decl.c (finish_declspecs): New.
304         (declspecs_add_type): Check for combinations which cannot occur in
305         valid specifier lists.  Update comments.
306         (shadow_tag_warned): Remove checks done in finish_declspecs.
307         Don't report useless type name if type defaulted to int.
308         (grokdeclarator): Remove checks and actions done in
309         finish_declspecs.  Don't allow for type being NULL.  Update for
310         datastructures changes.  Initialize decl_attr.
311         (build_null_declspecs, quals_from_declspecs): Update for
312         datastructures changes.
313
314 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
315
316         * doc/extend.texi: Fix duplicated word.
317
318 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
319
320         * doc/invoke.texi: Remove stray explanation on
321         -freduce-all-givs and -fmove-all-movables.
322
323 2004-09-17  James Morrison  <phython@gcc.gnu.org>
324
325         * doc/cfg.texi: Use @smallexample.
326         * doc/md.texi: Likewise.
327         * doc/tree-ssa.texi: Likewise.
328         * doc/extend.texi: Likewise.  Use @r{} in comments.
329         * doc/trouble.texi: Use @r{} in comments.
330
331 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
332
333         * configure.ac (gcc_cv_gld_version): Handle whitespace before
334         "VERSION=".
335         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
336         * configure: Regenerate.
337
338 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
339
340         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
341         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
342         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
343         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
344         slashes in substitutions.
345         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
346
347 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
348
349         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
350         gimplify.c, lambda-code.c, optabs.c, predict.c,
351         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
352         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
353         conventions.
354
355 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
356
357         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
358         doc/extend.texi, doc/install.texi, doc/invoke.texi,
359         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
360         doc/trouble.texi: Use @option around options.
361
362 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
363
364         * Makefile.in (gen-protos.o): Depend on errors.h.
365
366 2004-09-17  Steven Bosscher  <stevenb@suse.de>
367
368         PR tree-optimization/17513
369         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
370         for successors of the entry block.
371
372 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
373
374         PR rtl-optimization/15187
375         * ifcvt.c (noce_try_cmove_arith): Exit early if total
376         insn_rtx_cost of both branches > BRANCH_COST
377
378 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
379
380         PR tree-optimization/17528
381         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
382         erase the may-alias set for a tag when merging it with
383         another.
384
385 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
386
387         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
388         for 32-bit TARGET_SHMEDIA.
389         (call_value): Likewise.
390
391 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
392
393         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
394         test apply only to TREE_STATIC and DECL_EXTERNAL.
395
396 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
397
398         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
399         * basic-block.h (get_dominated_by_region): Declare.
400         * dominance.c (get_dominated_by_region): New function.
401         * tree-cfg.c: Include cfglayout.h.
402         (tree_duplicate_bb): Duplicate also phi nodes.
403         (struct ssa_name_map_entry): New type.
404         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
405         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
406         allocate_ssa_names, rewrite_to_new_ssa_names_def,
407         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
408         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
409         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
410         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
411         rewrite_to_new_ssa_names, allocate_ssa_names,
412         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
413         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
414         (copy_loop_headers): Use tree_duplicate_sese_region.
415
416 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
417
418         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
419
420 2004-09-16 Jeff Law  <law@redhat.com>
421
422         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
423         (rewrite_block_data): Remove, no longer used.
424         (rewrite_initialize_block_local_data): Remove, no longer used.
425         (rewrite_initialize_block): Mark parameters as unused as needed.
426         Change references to the block local block_defs to be block_defs_stack.
427         Push a marker onto the block_defs_stack.
428         (ssa_rewrite_initialize_block): Similarly.
429         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
430         (ssa_register_new_def): No longer needs varray argument.  Use
431         block_defs_stack instead.  No longer handle possibly null block_defs
432         varray.  Reverse order of items we push on the stack to make it
433         easier to identify our marker.
434         (register_new_def): No longer handle possibly null block_defs
435         varray.
436         (rewrite_finalize_block): Revamp to look for markers in the global
437         block_defs_stack varray rather than wiping a block local varray.
438         Mark arguments as unused as needed.
439         (ssa_rewrite_finalize_block): Similarly.
440         (rewrite_into_ssa): Update initialization of dom walker structure
441         to reflect that we don't need block local data anymore.  Initialize
442         the block_defs_stack varray.
443         (rewrite_ssa_into_ssa): Similarly.
444         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
445         (struct dom_walk_data): Kill block_defs field.
446         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
447         (thread_across_edge): Use the global block_defs_stack instead of
448         the old block_defs varray.
449         (dom_opt_initialize_block_local_data): Update now that we don't have
450         block_defs field to check anymore.
451         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
452         (restore_currdefs_to_original_value): Use the new block_defs_stack
453         instead of a block local varray.
454         (dom_opt_finalize_block): Similarly.
455         (record_equivalencs_from_phis): Similarly.
456         (optimize_stmt, register_definitions_for_stmt): Similarly.
457
458 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
459
460         PR tree-optimization/17517
461         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
462         coalesce same-root variables without checking for abnormal PHI usage.
463
464 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
465
466         * cfgloop.h (duplicate_loop):  Add prototype.
467         * cfgloopmanip.c (duplicate_loop): Make non-static.
468         * lambda-code.c (perfect_nestify): Factor out test whether
469         we can handle this loop into separate function.
470         Call it.
471         (can_convert_to_perfect_nest): New function.
472         (replace_uses_of_x_with_y): Add modify_stmt call.
473         * tree-loop-linear.c (linear_transform_loops): Call
474         rewrite_into_loop_closed_ssa and free_df.
475
476 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
477
478         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
479         loop invariant as well.
480         (perfect_nestify): new function.
481         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
482         upper bounds, and steps.
483         Set outerinductionvar properly.
484         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
485         parameters.
486         Return NULL if we need a perfect loop and can't make one.
487         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
488         (not_interesting_stmt): New function.
489         (phi_loop_edge_uses_def): Ditto.
490         (stmt_uses_phi_result): Ditto.
491         (stmt_is_bumper_for_loop): Ditto.
492         (perfect_nest_p): Ditto.
493         (nestify_update_pending_stmts): Ditto.
494         (replace_uses_of_x_with_y): Ditto.
495         (stmt_uses_op): Ditto.
496         (perfect_nestify): Ditto.
497         * lambda-mat.c (lambda_matrix_id_p): New function.
498         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
499         * lambda.h: Update prototypes.
500         * tree-loop-linear (linear_transform_loop): Use new
501         perfect_nest_p. Detect and ignore identity transform.
502         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
503
504 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
505
506         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
507         Gather also strides of accessed data.  Pass in the data references
508         array.
509         (try_interchange_loops): Add a new heuristic for handling the temporal
510         locality.  Pass in the data references array.
511         (linear_transform_loops): Pass the data references array to
512         try_interchange_loops.
513
514 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
515
516         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
517
518 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
519
520         * doc/c-tree.texi (Classes): Remove index entries for
521         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
522
523 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
524
525         * fold-const.c (fold): Fold difference of addresses.
526         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
527         get_inner_reference.
528         * tree-ssa-loop-ivopts.c (peel_address): Removed.
529         (ptr_difference_const): Moved to fold-const.c.
530         (split_address_cost): Use get_inner_reference instead of peel_address.
531         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
532         * tree.h (ptr_difference_const): Export.
533
534         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
535         variable type to the dump.  Fix indentation.
536         (idx_find_step): Handle nonconstant array_ref_element_size and
537         array_ref_low_bound.
538         (idx_record_use): Handle array_ref_element_size and
539         array_ref_low_bound.
540         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
541         statements correctly.
542         (get_computation_at, iv_value): Do not unshare expressions here.
543         (rewrite_use_outer): Unshare the expression before it is emitted
544         to code.
545         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
546         Moved to tree.c.
547         * tree.c (unsigned_type_for, signed_type_for): Moved from
548         tree-ssa-loop-niter.c.  Use langhooks.
549         * tree.h (signed_type_for): Export.
550
551 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
552
553         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
554         prototype.
555
556 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
557
558         PR target/11572
559         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
560         Add two parameters to extra_includes.
561         (C_INCPATH_INIT): Remove.
562         * c-incpath.c (register_include_chains): Call extra_pre_includes
563         before adding the standard include directory.
564         Update call to extra_includes.
565         (!defined TARGET_EXTRA_INCLUDES): Update
566         hook_void_charptr_charptr_int and add !define
567         TARGET_EXTRA_PRE_INCLUDES.
568         (!define TARGET_EXTRA_INCLUDES): Define as
569         hook_void_charptr_charptr_int.
570         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
571         (target_c_incpath): Always declare.
572         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
573         empty function.
574         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
575         * config/darwin.h: (darwin_register_frameworks): Update for
576         the two new parameters.
577         (darwin_register_objc_includes): Add prototype.
578         (TARGET_EXTRA_PRE_INCLUDES): Define.
579         * config/darwin-c.c (darwin_register_objc_includes): New function.
580         (darwin_register_frameworks): Update for the two new parameters.
581         (target_c_incpath): Remove.
582         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
583         the compile line.
584         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
585         parameters.
586         (TARGET_EXTRA_PRE_INCLUDES): Document.
587
588         * gcc.c (spec_function): Add replace-outfile.
589         (replace_outfile_spec_function): New function.
590         * config/darwin.h (LINK_SPEC): Add replace
591         -lobjc with -lobjc-gnu if -fgnu-runtime is
592         supplied.
593         * invoke.texi (replace-outfile): Document.
594
595 2004-09-13  Jan Hubicka  <jh@suse.cz>
596
597         * predict.c (expr_expected_value, strip_builtin_expect): New function.
598         (tree_predict_by_opcode): Use it.
599         (tree_estimate_probability): Add, for now disabled,
600         strip_builtin_expect call.
601
602 2004-09-15  James E Wilson  <wilson@specifixinc.com>
603
604         PR target/17455
605         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
606         if current_function_decl is a sibcall.
607
608 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
609
610         * varasm.c (default_function_rdodata_section): Make sure to pass
611         along a decl for a link-once section.
612
613 2004-09-15  Richard Henderson  <rth@redhat.com>
614
615         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
616         warning with code disable.  Fix formatting.
617
618 2004-09-15  Steven Bosscher  <stevenb@suse.de>
619
620         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
621         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
622         after propagating into an ADDR_EXPR.
623
624 2004-09-15  Andrew Pinski  <apinski@apple.com>
625
626         PR rtl-opt/17427
627         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
628         Move it out of gcc_assert.
629
630 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
631
632         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
633         except.c, fold-const.c, function.c, langhooks.c, params.c,
634         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
635         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
636         for quoting in diagnostics going through pretty-print.c.  Use ''
637         for quoting in other diagnostic text.
638         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
639         translation.
640         * Makefile.in (langhooks.o): Update dependencies.
641         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
642         formats.
643
644 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
645
646         * configure.ac: Check for COMDAT support.  Robustify check for
647         SHF_MERGE support.
648         * configure: Regenerated.
649         * config.in: Likewise.
650         * langhooks-def.h (lhd_comdat_group): New function.
651         (LANG_HOOKS_COMDAT_GROUP): New macro.
652         (LANG_HOOKS_DECLS): Use it.
653         * langhooks.c (lhd_comdat_group): Define.
654         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
655         * output.h (named_section_flags): Make it a macro.
656         (named_section_real): New function.
657         (default_no_named_section): Add decl parameter.
658         (default_elf_asm_named_section): Likewise.
659         (default_coff_asm_named_section): Likewise.
660         (default_pe_asm_named_section): Likewise.
661         * target.h (gcc_target): Adjust type of named_section.
662         * varasm.c (named_section_flags): Rename to named_section_real.
663         Add decl parameter.
664         (default_no_named_section): Add decl parameter.
665         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
666         with the case that ASM_COMMENT_START is "@".
667         (default_coff_asm_named_section): Add decl parameter.
668         (default_pe_asm_named_section): Likewise.
669         * config/alpha/alpha.c (vms_asm_named_section): Add decl
670         parameter.
671         (unicosmk_asm_named_section): Likewise.
672         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
673         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
674         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
675         * config/cris/cris-protos.h (cris_target_asm_named_section):
676         Likewise.
677         * config/cris/cris.c (cris_target_asm_named_section):
678         Likewise.
679         * config/darwin/darwin-protos.h (darwin_asm_named_section):
680         Likewise.
681         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
682         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
683         * config/i386/i386-protos.h (i386_pe_asm_named_section):
684         Likewise.
685         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
686         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
687         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
688         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
689         Likewise.
690         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
691         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
692         * cp/cp-tree.h (cxx_comdat_group): Declare.
693         * cp/decl.c (cxx_comdat_group): New function.
694
695 2004-09-15  Jan Hubicka  <jh@suse.cz>
696
697         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
698         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
699
700         * tree-cfg.c (remove_bb): Release SSA defs.
701
702 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
703
704         * doc/tm.texi: Follow spelling conventions.
705
706 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
707
708         * tree-ssa-dom.c: Fix comment typos.
709
710 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
711
712         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
713         include ccr.
714         (ppc_fallback_frame_state): Save location of CR.
715
716 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
717
718         * expr.c (string_constant): Handle also read-only variables
719         initialized to string literals.
720
721         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
722         into memcpy (x, y, 1) if memcpy can be expanded inline.
723
724 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
725
726         PR tree-optimization/17468
727         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
728         definition inside a block precede uses.
729         * tree-tailcall.c (adjust_return_value): Emit statements in the
730         correct order.
731
732 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
733
734         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
735
736 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
737
738         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
739
740 2004-09-14 Jeff Law  <law@redhat.com>
741
742         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
743         (struct dom_walk_block_data): Remove avail_exprs member.
744         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
745         (lookup_avail_expr): No longer need to pass in address of
746         the block local available exprs stack.  All callers changed.
747         (simplify_cond_and_lookup_avail_expr): Similarly.
748         (simplify_switch_and_lookup_avail_expr): Similarly.
749         (get_eq_expr_value, record_cond): Likewise.
750         (record_dominating_conditions): Likewise.
751         (update_rhs_and_lookup_avail_expr): Likewise.
752         (record_equivalences_from_stmt): Likewise.
753         (dom_opt_initialize_block_local_data): No longer test state of
754         block local avail_exprs.
755         (dom_opt_initialize_block): Mark unwind point in the global
756         avail_expr stack.
757         (remove_expressions_from_table): Update to unwind to the
758         most recent unwind marker in the global avail_expr stack.
759         All callers changed.
760         (dom_opt_finalize_block): Mark unwind point in the global
761         avail_expr stack as needed.
762         (record_cond): Push elements into the global avail_exprs stack.
763
764         * tree-dfa.c (free_df_for_stmt): No longer static.
765         (free_df): Update comments.
766         * tree-flow.h (free_df_for_stmt): Prototype.
767         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
768         call release_defs.
769
770 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
771
772         PR tree-optimization/17252
773         * tree-ssa-alias.c (may_alias_p): Don't assume that a
774         pointer may not point to itself when using relaxed
775         aliasing rules.
776
777 2004-09-14  Richard Henderson  <rth@redhat.com>
778
779         PR middle-end/17397
780         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
781         while folding <ADDR_EXPR <INDIRECT_REF X>>.
782
783 2004-09-14  Andrew Pinski  <apinski@apple.com>
784
785         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
786         sets of the pointers but the aliasing sets of what they point to.
787
788 2004-09-14  Roger Sayle  <roger@eyesopen.com>
789
790         PR rtl-optimization/9771
791         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
792         conditional compilation in init_reg_sets_1.
793         (init_reg_sets_1): Let global_regs[i] take priority over the frame
794         (but not stack) pointer exceptions to regs_invalidated_by_call.
795         (globalize_reg): Globalizing a fixed register may need to update
796         regs_invalidated_by_call.
797
798 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
799
800         PR tree-optimization/15262
801         * tree-dfa.c (dump_variable): Also print the type of the
802         variable.
803         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
804         memory tags are of conflicting alias sets but have no aliased
805         symbols in common, add one tag to the alias set of the other.
806         (setup_pointers_and_addressables): Remove hack to deal with
807         programs with no aliased symbols.
808         (may_alias_p): Don't special case aggregate types.
809
810 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
811
812         PR c/15498
813         * doc/invoke.texi (Environment Variables): Correct example locale.
814
815 2004-09-14  Jan Hubicka  <jh@suse.cz>
816
817         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
818
819 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
820
821         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
822
823 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
824
825         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
826         restrict_p.
827         (struct c_declarator): Change u.array.quals and pointer_quals to
828         int.  Add u.array.attrs.
829         (quals_from_declspecs): New.
830         * c-decl.c (quals_from_declspecs): New.
831         (shadow_tag_warned): Give more specific message for useless type
832         qualifiers.
833         (build_array_declarator, set_array_declarator_inner,
834         grokdeclarator, make_pointer_declarator, build_null_declspecs,
835         declspecs_add_qual): Update for changed structures.
836
837 2004-09-14  Jeff Law  <law@redhat.com>
838
839         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
840         to a global varray.
841         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
842         (dom_opt_initialize_block_local_data): No longer test state
843         of stmts_to_rescan.
844         (dom_opt_finalize_block): Update due to change in scope of
845         stmts_to_rescan.
846         (optimize_stmt): Similarly.
847
848 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
849
850         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
851         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
852         comment typos.  Follow spelling conventions.
853
854 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
855
856         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
857         config/i386/predicates.md, config/sparc/sparc.c: Follow
858         spelling conventions.
859
860 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
861             Steven Bosscher  <stevenb@suse.de>
862
863         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
864         * basic-block.h (struct reorder_block_def): Add copy_number field.
865         * cfgloop.h (biv_p): Declare.
866         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
867         * common.opt (fsplit-ivs-in-unroller): New flag.
868         * loop-iv.c (biv_p): New function.
869         * loop-unroll.c: Include hashtab.h and recog.h.
870         (struct iv_to_split, struct split_ivs_info): New types.
871         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
872         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
873         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
874         insert_base_initialization, split_iv): New functions.
875         (peel_loop_completely, unroll_loop_constant_iterations,
876         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
877         Use them.
878         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
879
880 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
881
882         * tree-cfg.c (thread_jumps): Update dominators correctly in
883         case destination of threaded edge dominates its source.
884
885 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
886
887         * unroll.c: Removed.
888         * loop.h: Removed.
889         * Makefile.in (LOOP_H, unroll.o): Removed.
890         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
891         dependency.
892         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
893         reference.
894         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
895         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
896         * loop.c: Do not include loop.h.
897         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
898         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
899         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
900         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
901         struct loop_regs, struct loop_movables, struct loop_info): Moved
902         from loop.h.
903         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
904         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
905         find_common_reg_term, loop_iterations, final_giv_value): Moved
906         from unroll.c.
907         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
908         loop_dump_stream, for_each_insn_in_loop, express_from,
909         extend_value_for_giv, loop_iv_add_mult_emit_before,
910         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
911         loop_insn_first_p, get_condition_for_loop,
912         loop_insn_emit_before, loop_insn_hoist,
913         loop_insn_sink): Made static.
914         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
915         reference.
916         (strength_reduce): Do not call unroller.
917         (record_giv): Do not initialize unrolled field.
918         (prescan_loop): Do not set loop_info->preconditioned.
919         * passes.c: Do not include loop.h.
920         (rest_of_handle_loop_optimize): Do not call unroller.
921         * predict.c: Do not include loop.h.
922         * rtl.h (NOTE_PRECONDITIONED): Removed.
923         * stmt.c: Do not include loop.h.
924         * toplev.c: Do not include loop.h.
925         (process_options): Do not handle flag_old_unroll_loops.
926
927         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
928         Documentation removed.
929         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
930
931 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
932
933         * Makefile.in (STAGE1_CHECKING): New variable.
934         (stage1_build): Use it.
935         * tree-ssa.c (verify_ssa): Preserve state of dominance
936         information.
937
938 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
939
940         * config/i386/i386.c (output_fp_compare): Add generation
941         of ftst instruction.
942         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
943         Use output_fp_compare () function.
944         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
945         (fix_truncdi_memory): Remove operands[5] copy.
946
947 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
948
949         * config/m32r/m32r.md, config/m68k/m68kelf.h,
950         config/mcore/mcore.md, config/rs6000/linux64.h,
951         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
952         typos.
953
954 2004-09-13  James E Wilson  <wilson@specifixinc.com>
955
956         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
957         * gen-protos.c: Include errors.h.
958         (progname): Delete.
959
960 2004-09-14  Jan Hubicka  <jh@suse.cz>
961
962         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
963         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
964         (predict_loops): Use number_of_iterations_exit to predict
965         number of iterations on trees.
966
967 2004-09-13  Dale Johannesen  <dalej@apple.com>
968
969         PR 17408
970         PR 17409
971         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
972         objects declared extern.
973
974 2004-09-14  Paul Brook  <paul@codesourcery.com>
975
976         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
977         HOST_WIDE_INT.
978
979 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
980
981         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
982         Only use TYPE_BINFO for aggregates.
983
984 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
985
986         * expmed.c (synth_mult): Initialize latency.  Check cost before
987         checking ops count.
988
989 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
990
991         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
992         add_call_clobber_ops and add_call_read_ops.
993         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
994         the number of vdefs and vuses inserted based on analysis of global
995         variables across calls.  * tree-dfa.c (find_referenced_vars):
996         Needed to reset static var maps before each function is compiled.
997         * cgraphunit.c:
998         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
999         static_vars_info,functions_to_static_vars_info,module_statics_escape,
1000         all_module_statics,searchc_env,dfs_info): New fields to support
1001         analysis of static global variables.
1002         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
1003         cgraph_reset_static_var_maps, get_global_static_vars_info,
1004         get_global_statics_not_read, get_global_statics_not_written,
1005         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
1006         check_rhs_var, check_lhs_var, get_asm_expr_operands,
1007         process_call_for_static_vars, scan_for_static_refs,
1008         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
1009         clear_static_vars_maps, cgraph_propagate_bits,
1010         cgraph_characterize_statics): New. Functions to support analysis
1011         of static global variables.
1012         (cgraph_mark_local_and_external_functions): Renamed from:
1013         (cgraph_mark_local_functions)
1014         (cgraph_expand_all_functions): Remove call to
1015         cgraph_mark_local_and_external_functions.
1016         (cgraph_optimize): Added driver to analyze static variables whose
1017         scope is within the compilation unit.  * cgraph.h (struct
1018         cgraph_local_info, GTY): Added statics_read, statics_written,
1019         local, calls_read_all, calls_write_all, for_functions_valid.
1020         (struct cgraph_node): Added next_cycle.  * cgraph.c
1021         (dump_cgraph_node): Added print routines for new fields.  *
1022         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
1023         list.
1024
1025 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
1026
1027         * c-decl.c (grokdeclarator): Correct comments about where storage
1028         class specifiers are rejected by grammar and add corresponding
1029         asserts.  Diagnose typedefs and parameters declared inline.
1030         Change warning for inline main to a pedwarn.  Only diagnose inline
1031         main if hosted.
1032         (declspecs_add_scspec): Allow duplicate "inline".
1033
1034 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
1035
1036         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
1037         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1038
1039 2004-09-13  Richard Henderson  <rth@redhat.com>
1040
1041         PR 17436
1042         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
1043         (tree_type): Replace spare with contains_placeholder_bits.
1044         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
1045         make static.  Remove seen_types list.
1046         (type_contains_placeholder_p): New.
1047
1048 2004-09-13  James E Wilson  <wilson@specifixinc.com>
1049
1050         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
1051         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
1052         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
1053         bdesc_arrays instead of mips_bdesc.
1054         (mips_init_builtins): Likewise.
1055         * config/mips/mips.h (TARGET_SB1): New.
1056         (HAVE_SQRT_P): Delete.
1057         * config/mips/mips.md (divide_condition): Support V2SF.
1058         (sqrt_condition, recip_condition): New.
1059         (div<mode>3): Use ANYF instead of SCALARF.
1060         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
1061         MODE.
1062         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
1063         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
1064         instead of MODE.
1065         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
1066         instead of SCALARF.  Use UNITMODE instead of MODE.
1067
1068 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
1069
1070         * config.in: Regenerate after removal of libbanshee.
1071
1072 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
1073
1074         PR tree-optimization/17400
1075         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
1076         coalesce partitions when one occurs in an abnormal PHI.
1077
1078 2004-09-13  Andrew Pinski  <apinski@apple.com>
1079
1080         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
1081         name to _new_size.
1082
1083 2004-09-13  Richard Henderson  <rth@redhat.com>
1084
1085         PR inline-asm/6806
1086         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
1087         (cselib_invalidate_rtx_note_stores): New.
1088         (cselib_record_sets, cselib_process_insn): Update to match.
1089         * cselib.h (cselib_invalidate_rtx): Declare.
1090         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
1091
1092 2004-09-13  Richard Henderson  <rth@redhat.com>
1093
1094         PR tree-opt/10528
1095         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
1096         after copying its argument.
1097
1098 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
1099
1100         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
1101         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
1102         in diagnostics.  Use %' for English apostrophes.
1103         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
1104         (pedwarn_c90, pedwarn_c99): Use it.
1105         * c-decl.c (lookup_label): Quote label name in diagnostic.
1106         * c-parse.in (yyprint): Use ' instead of ` for left quote.
1107         * c-typeck.c (warn_for_assignment): Likewise.
1108
1109 2004-09-13  Jan Hubicka  <jh@suse.cz>
1110
1111         * i386.c (x86_schedule): New global variable.
1112         (override_options): Disable scheduling when not supported.
1113         * i386.h (x86_schedule): Declare.
1114         (TARGET_SCHEDULE): New macro.
1115
1116 2004-09-12  Richard Henderson  <rth@redhat.com>
1117
1118         PR c++/16254
1119         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
1120         * tree.c, tree.h (has_cleanups): Remove.
1121
1122 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1123
1124         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
1125         arguments of the phi nodes correctly.
1126
1127 2004-09-12  Jan Hubicka  <jh@suse.cz>
1128
1129         * ggc-common.c (cmp_statistics): Fix sorting.
1130
1131 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
1132
1133         PR target/16795
1134         * expmed.c (expand_divmod): If cheap power of 2 divide is
1135         available, use it for negative constant as well.
1136
1137 2004-09-12  Andrew Pinski  <apinski@apple.com>
1138
1139         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
1140         size of 0.
1141
1142         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
1143
1144 2004-09-12  Richard Henderson  <rth@redhat.com>
1145
1146         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
1147         or minus one.
1148         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
1149         post-reload, and scratch NULL.
1150         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
1151         (x86_shift_adj_2): Use ix86_expand_clear.
1152         (ashldi3): Remove CMOVE expansion difference.
1153         (ashldi3_1): Remove.
1154         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
1155         add constraints for immediates.  New peephole for split-with-temp.
1156         Run splitter after peep2 pass.
1157         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
1158         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
1159         (setcc_2): Rename with *.
1160         * config/i386/predicates.md (reg_or_pm1_operand): New.
1161         (ashldi_input_operand): New.
1162
1163 2004-09-12  Richard Henderson  <rth@redhat.com
1164
1165         * print-rtl.c (print_decl_name): New.
1166         (print_mem_expr): Use it.
1167
1168 2004-09-12  Richard Henderson  <rth@redhat.com
1169
1170         PR 17186, part deux
1171         * except.c (sjlj_emit_function_exit): Fix logic locating
1172         sjlj_exit_after in final block.
1173
1174 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
1175
1176         * common.opt: Remove flags -fmove-all-movables and
1177         -freduce-all-givs.
1178         * loop-invariant.c (find_invariants_to_move):
1179         Remove all uses of flag_move_all_movables.
1180         * loop.c (move_movables): Remove all uses of
1181         flag_move_all_movables.
1182         (strength_reduce): Remove all uses of
1183         flag_reduce_all_givs.
1184         * doc/invoke.texi: Remove documentation of flags
1185         -fremove-all-movables and -freduce-all-givs.
1186
1187 2004-09-11  Roger Sayle  <roger@eyesopen.com>
1188
1189         PR middle-end/17411
1190         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
1191         change. elt->type may be a floating point type, so use fold_convert.
1192
1193 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
1194
1195         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
1196         the thing referenced as used, not the stub itself.
1197
1198 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1199
1200         * c-tree.h (enum c_storage_class): New.
1201         (struct c_declspecs): Add storage_class, inline_p and thread_p.
1202         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
1203         declarations and "auto" or "register" in file scope empty
1204         declarations.  Give more specific warnings for other cases of
1205         storage class specifiers in empty declarations.
1206         (grokdeclarator): Update for new structures.  Don't check for
1207         multiple storage classes.  Diagnose file-scope "register" if
1208         pedantic.
1209         (build_null_declspecs): Update.
1210         (declspecs_add_scspec): Update.  Diagnose multiple storage class
1211         specifiers and invalid uses of "__thread".
1212
1213 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
1214
1215         * tree.c (tree_code_size): New function, bulk of code from tree_size.
1216         (tree_size, make_node): Use it.
1217         * tree-ssa-pre.c (init_pre): Use it.
1218         * tree.h: Prototype it.
1219
1220 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1221
1222         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
1223         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
1224         redirect_immediate_use): Use PHI_DF.
1225         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
1226         (bb_for_stmt): Use PHI_BB.
1227         (get_immediate_uses): Use PHI_DF.
1228         * tree-ssa-dse.c (max_stmt_uid): New variable.
1229         (get_stmt_uid): New function.
1230         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
1231         node annotations.
1232         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
1233         (max_uid): Renamed to max_stmt_uid.
1234         (get_stmt_uid): New function.
1235         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
1236         phi node annotations.
1237         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
1238         * tree.h (PHI_BB, PHI_DF): New accessor functions.
1239         (struct tree_phi_node): Add bb and df fields.
1240
1241 2004-09-11  Richard Henderson  <rth@redhat.com>
1242
1243         PR middle-end/17416
1244         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
1245         in conflict loop.
1246
1247 2004-09-11  Jan Hubicka  <jh@suse.cz>
1248
1249         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
1250         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
1251         * i386.md (i387_cw): Add 'uninitialized' mode.
1252
1253         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
1254         (output_location): Break out from ....
1255         (branch_prob): ... here; handle gcov output on trees.
1256         * toplev.c (process_options): No longer be sorry about coverage for
1257         trees.
1258
1259 2004-09-11  Steven Bosscher  <stevenb@suse.de>
1260
1261         PR c++/17412
1262         * fold-const.c (fold): Do not try to fold the operand of a
1263         CLEANUP_POINT_EXPR if that operand does itself not have any
1264         operands.
1265
1266         PR middle-end/17417
1267         * langhooks.c (lhd_decl_printable_name): Make sure that this
1268         function is called with is a decl node that has an identifier.
1269         * tree-pretty-print.c (dump_function_name): New function to
1270         wrap PRINT_FUNCTION_NAME and dump_decl_name.
1271         (print_call_name): Use it.
1272
1273 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
1274
1275         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
1276         "config.h" if not.
1277
1278 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
1279
1280         * tree-ssa-alias.c (collect_points_to_info_r): Handle
1281         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
1282         to OFFSET.
1283
1284 2004-09-11  Richard Henderson  <rth@redhat.com>
1285
1286         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
1287         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
1288         operand of the ADDR_EXPR.
1289         (expand_expr_real_1): Update to match.
1290
1291 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
1292
1293         PR target/17277
1294         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
1295         choose 64-bit version.
1296
1297 2004-09-11  Richard Henderson  <rth@redhat.com>
1298
1299         PR c/17396
1300         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
1301
1302 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
1303
1304         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
1305         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
1306         Insert @: after i.e. or e.g.
1307
1308 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
1309
1310         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
1311         D.xxx rather than <Dxxx>.
1312
1313 2004-09-10  Adam Nemet  <anemet@lnxw.com>
1314
1315         * configure.ac (AC_MSG_CHECKING(what linker to use)):
1316         in_tree_ld_is_elf should be true for LynxOS.
1317         * configure: Regenerate.
1318
1319 2004-09-10  Adam Nemet  <anemet@lnxw.com>
1320
1321         * Makefile.in (all.cross): Add srcextra.
1322
1323 2004-09-10  Roger Sayle  <roger@eyesopen.com>
1324
1325         PR middle-end/17024
1326         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
1327         floating point comparison operators.  Change aborts to gcc_asserts.
1328
1329 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
1330
1331         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
1332
1333 2004-09-10  James E Wilson  <wilson@specifixinc.com>
1334
1335         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
1336         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
1337
1338         * convert.c (convert_to_vector): Replace recursive call with
1339         error_mark_node.
1340
1341         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
1342         Add integer argument named constant.  Use const_tiny_rtx instead of
1343         CONST0_RTX.
1344         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
1345         and CONST1_RTX.
1346         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
1347         vector types.
1348         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
1349         of gen_rtx_raw_CONST_VECTOR.
1350
1351 2004-09-10  Eric Christopher  <echristo@redhat.com>
1352
1353         PR c/16046
1354         * c-parse.in (attribute): Add NULL_TREE for error case
1355         for error recovery.
1356
1357 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
1358
1359         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
1360         (extract_interface_info): Delete prototype.
1361         * c-decl.c (extract_interface_info): Delete stub.
1362         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
1363         it's not already been done ...
1364         (init_c_lex): ... not here.
1365         (fe_file_change): Don't call extract_interface_info.
1366
1367 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1368
1369         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
1370         typedef_p and typedef_signed_p.
1371         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
1372         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
1373         Check typedef_p and typedef_signed_p, not typedef_decl.
1374         (grokfield): Check typedef_p, not typedef_decl.
1375         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
1376         not typedef_decl.
1377         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
1378         typedef_decl.
1379
1380 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1381
1382         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
1383
1384 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
1385
1386         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
1387         temporary variables.
1388
1389         * dbxout.c (dbxout_block): Update for
1390         current_function_func_begin_label a string.
1391         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
1392         * except.c (dw2_output_call_site_table): Likewise.
1393         * toplev.c (current_function_func_begin_label): Likewise.
1394         * tree.h (current_function_func_begin_label): Likewise.
1395         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
1396
1397         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
1398         loop.
1399
1400         * config/darwin.c: Include target.h.
1401         (struct machopic_indirection): Make ptr_name a string.
1402         (machopic_indirection_hash): Update for ptr_name a string.
1403         (machopic_indirection_eq): Likewise.
1404         (machopic_indirection_name): Likewise.
1405         (machopic_output_indirection): Likewise.
1406         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
1407         string.  Don't expect stub names to be in the identifier hash table.
1408         Do call strip_name_encoding before looking up entry in ID hash table.
1409         * config/t-darwin (darwin.o): Add target.h to dependencies.
1410
1411         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
1412         of fprintf for register names.
1413
1414         * output.h (unlikely_section_label): Delete declaration.
1415         (unlikely_text_section_name): Likewise.
1416         * varasm.c (unlikely_section_label_printed): Make static.
1417         (unlikely_section_label): Likewise.
1418         (unlikely_text_section_name): Likewise.
1419         (assemble_start_function): Use reconcat.
1420
1421         * rtl.def (REG): Add comment to describe third field.
1422
1423 2004-09-10  Andrew Pinski  <apinski@apple.com>
1424
1425         * config/darwin.c (machopic_mcount_stub_name): Call
1426         machopic_indirection_name instead of making the string
1427         ourselves.
1428
1429 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
1430
1431         Revert
1432
1433         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
1434
1435             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
1436             memory tag is call clobbered, so are its aliases.
1437             (group_aliases): When two memory tags being grouped, if one is
1438             call clobbered, so are the other and its aliases.
1439             (add_may_alias): Remove call-clobbering stuff.
1440             (replace_may_alias): Likewise.
1441             (merge_pointed_to_info): Merge pt_global_mem
1442
1443 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1444
1445         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
1446         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
1447         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
1448         tree-scalar-evolution.c, tree-ssa-copyrename.c,
1449         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
1450
1451 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
1452
1453         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
1454         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
1455         pair.  Remove match_dup from inputs.  Remove masaccs handling.
1456         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
1457         (masaccs, mdasaccs): Turn into define_insns.
1458
1459 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
1460
1461         * tree-tailcall.c (process_assignment): Only do accumulator transforms
1462         for floating-point types if flag_unsafe_math_optimizations.
1463
1464 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1465
1466         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
1467         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
1468         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
1469         config/h8300/h8300.md, config/i386/gmm_malloc.h,
1470         config/ia64/ia64.md, config/ip2k/libgcc.S,
1471         config/mips/mips-ps-3d.md, config/mips/mips.c,
1472         config/rs6000/rs6000.c, config/s390/s390.c,
1473         config/sh/symbian.c: Fix comment typos.
1474
1475 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
1476
1477         * config/s390/s390.c (s390_emit_prologue): Added missing
1478         "{}" brackets.
1479
1480 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1481
1482         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
1483         typos.  Follow spelling conventions.
1484
1485 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
1486
1487         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
1488         in diagnostic.  Don't dereference NULL TYPE_NAME.
1489
1490 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1491
1492         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
1493         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
1494         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
1495         value-prof.c: Fix comment typos.  Follow spelling conventions.
1496
1497 2004-09-10  Jan Hubicka  <jh@suse.cz>
1498
1499         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
1500         * tree-split_edge.c (tree_split_edge): Likewise.
1501         (thread_jumps): Likewise.
1502
1503 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1504
1505         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
1506         typos.
1507
1508 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
1509
1510         * cgraph.h (cgraph_dump_file): Do not declare.
1511         * cgraphunit.c (cgraph_dump_file): Declare as static.
1512         (init_cgraph): New.
1513         * toplev.c (cgraph_dump_file): Do not declare.
1514         (compile_file): Call init_cgraph.
1515         * tree-dump.c (dump_files): Add IPA dump file, remove
1516         XML dump of call graph.
1517         (get_dump_file_name): Support IPA dump file naming scheme.
1518         * tree.h (enum tree_dump_index): Add IPA dump file, remove
1519         XML dump of call graph.
1520         * doc/invoke.texi (Debugging Options): Document the new options.
1521
1522 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
1523
1524         * doc/extend.texi: Document the FR-V built-in functions.
1525
1526 2004-09-09  James E Wilson  <wilson@specifixinc.com>
1527
1528         * doc/sourcebuild.texi: Delete libbanshee reference.
1529
1530 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
1531
1532         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
1533
1534 2004-09-09  James E Wilson  <wilson@specifixinc.com>
1535
1536         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
1537         before calling vector_types_convertible_p.
1538         (digest_init): Check that inside_init has VECTOR_TYPE before calling
1539         vector_types_convertible_p.  Don't give another error if
1540         convert_for_assignment returns error_mark_node.
1541
1542 2004-09-09  Roger Sayle  <roger@eyesopen.com>
1543
1544         PR middle-end/17055
1545         * fold-const.c (build_zero_vector): New function to construct a
1546         vector (either floating point or integer) of zeros.
1547         (fold_convert): Internally, enable conversions of integer zero
1548         to arbitrary vector types, using the new build_zero_vector.
1549
1550 2004-09-09  Roger Sayle  <roger@eyesopen.com>
1551
1552         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
1553         expand a left shift by an immediate constant as either an ashl or
1554         a sequence of additions.
1555         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
1556         instead of calling gen_ashlsi3 with a constant directly.
1557
1558 2004-09-09  Roger Sayle  <roger@eyesopen.com>
1559
1560         * config/i386/i386.c (ix86_split_long_move): When optimizing for
1561         size, and the low and high parts of a DImode constant are equal,
1562         copy one register to another instead of loading the same immediate
1563         value twice.
1564
1565 2004-09-09  Richard Henderson  <rth@redhat.com>
1566
1567         PR middle-end/17367
1568         * function.c (assign_parm_setup_block): Only put PARALLELs into
1569         a register if use_register_for_decl.
1570
1571 2004-09-09  Eric Christopher  <echristo@redhat.com>
1572
1573         * ra-colorize.c (reset_lists): Move variable declaration inside
1574         ENABLE_CHECKING to avoid unused variable warnings when
1575         not --enable-checking.
1576         (check_colors): Ditto.
1577
1578 2004-09-09  Mike Stump  <mrs@apple.com>
1579
1580         * version.c (version_string): Bump to 4.0.0.
1581         * doc/include/gcc-common.texi (version-GCC): Likewise.
1582
1583 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
1584
1585         * doc/extend.texi (nothrow attribute): The attribute is not
1586         implemented in 3.2 and earlier.
1587
1588 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
1589
1590         * genrecog.c (compute_predicate_codes): Use op0_codes
1591         instead of codes.
1592
1593 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1594
1595         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
1596         implementation changes.
1597
1598 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1599
1600         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
1601         a PARALLEL instead of a SET due to added clobbers.
1602
1603 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1604
1605         * reload.c (find_reloads_address): Pass correct operand to
1606         maybe_memory_address_p.
1607
1608 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
1609
1610         * Makefile.in: Remove libbanshee, tree-alias-*.
1611         Remove tree-alias-common.h dependencies.
1612         * common.opt: Remove -ftree-points-to.
1613         * configure.ac: Remove libbanshee.
1614         * flags.h: Remove pta_type, flag_tree_points_to.
1615         * gengtype.c (open_base_files): Remove tree-alias-type.h.
1616         * opts.c (OPT_ftree_points_to): Remove.
1617         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
1618         * tree-dfa.c: Remove tree-alias-common.h
1619         * tree-into-ssa.c: Ditto.
1620         * tree-outof-ssa.c: Ditto.
1621         * tree-ssa-copyrename.c: Ditto.
1622         * tree-ssa-live.c: Ditto.
1623         * tree-optimize.c: Ditto.
1624         * tree-ssa.c: Ditto.
1625         Remove pass_build_pta, pass_del_pta.
1626         * tree-pass.h: Ditto.
1627         * tree-ssa-alias.c: Remove tree-alias-common.h.
1628         (struct alias_stats_d): Remove pta_queries, pta_resolved.
1629         (pass_may_alias): Remove PROP_pta requirement.
1630         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
1631         (get_tmt_for): Ditto.
1632         (dump_alias_stats): Ditto.
1633         * doc/passes.texi: Remove blurb about points-to analysis.
1634         * fortran/Make-lang.in: Remove tree-alias-*.o.
1635
1636 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
1637
1638         * genattrtab.c (write_insn_cases): New function, split out from
1639         write_attr_case.  Correctly handle define_peepholes when printing
1640         the instruction name.
1641         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
1642
1643 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
1644
1645         PR target/17377
1646         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
1647         * config/cris/cris.c (cris_return_address_on_stack): New function.
1648         * config/cris/cris.md ("return"): For location of return address,
1649         also check cris_return_address_on_stack.
1650
1651 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
1652
1653         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
1654         calling phi_ssa_name_p.
1655
1656 2004-09-09  Richard Henderson  <rth@redhat.com>
1657
1658         PR c/17322
1659         * c-typeck.c (valid_compound_expr_initializer): Use only
1660         initializer_constant_valid_p, and not TREE_CONSTANT.
1661         (digest_init): Likewise.
1662         (output_init_element): Likewise.
1663
1664 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
1665
1666         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
1667         live_out_1, prune_hardregs_for_mode, init_one_web_common,
1668         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
1669         record_conflict, compare_and_free_webs, init_webs_defs_uses,
1670         parts_to_webs_1, parts_to_webs, reset_conflicts,
1671         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
1672         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
1673         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
1674         put_move, remove_move, combine, select_spill, colorize_one_web,
1675         try_recolor_web, insert_coalesced_conflicts, check_colors,
1676         break_precolored_alias, restore_conflicts_from_coalesce,
1677         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
1678         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
1679         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
1680         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
1681         check_df): Likewise.
1682         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
1683         real_arithmetic, real_compare, real_exponent, real_ldexp,
1684         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
1685         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
1686         real_digit, real_nan, real_maxval, round_for_format, real_convert,
1687         real_to_target, real_from_target, real_hash, encode_ieee_single,
1688         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
1689         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
1690         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
1691         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
1692         extract_insn, peep2_next_insn, peep2_reg_dead_p,
1693         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
1694         if_test_bypass_p): Likewise.
1695         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
1696         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
1697         emit_swap_insn, swap_to_top, move_for_stack_reg,
1698         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
1699         compensate_edge, convert_regs_1): Likewise.
1700         * regclass.c (init_reg_sets, init_reg_sets_1,
1701         memory_move_secondary_cost): Likewise.
1702         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
1703         Likewise.
1704         * reload.c (push_secondary_reload, find_valid_class, push_reload,
1705         operands_match_p, decompose, immune_p, find_reloads,
1706         find_reloads_toplev, find_reloads_address_1, subst_reloads,
1707         copy_replacements, refers_to_regno_for_reload_p,
1708         reg_overlap_mentioned_for_reload_p): Likewise.
1709         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
1710         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
1711         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
1712         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
1713         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
1714         do_output_reload, fixup_abnormal_edges): Likewise.
1715         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
1716         fill_slots_from_thread, relax_delay_slots): Likewise.
1717         * resource.c (mark_referenced_resources, mark_set_resources):
1718         Likewise.
1719         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
1720         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
1721         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
1722         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
1723         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
1724         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
1725         * rtlhooks.c (gen_lowpart_general): Likewise.
1726         * sbitmap.c (sbitmap_difference): Likewise.
1727         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
1728         sched_analyze, add_forward_dependence): Likewise.
1729         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
1730         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
1731         schedule_insns): Likewise.
1732         * sched-vis.c (print_pattern): Likewise.
1733         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
1734         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
1735         simplify_const_relational_operation, simplify_ternary_operation,
1736         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
1737         Likewise.
1738         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
1739         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
1740         resolve_operand_name_1, expand_return, expand_decl,
1741         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
1742         * stor-layout.c (put_pending_size, smallest_mode_for_size,
1743         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
1744         set_sizetype, get_mode_bounds): Likewise.
1745
1746 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
1747
1748         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
1749         * config/arm/pecoff.h, config/i386/beos-elf.h
1750         * config/i386/cygming.h, config/i386/i386-interix.h:
1751         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
1752         comment cloned from manual.
1753         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
1754
1755 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
1756
1757         * builtins.c (build_va_arg_indirect_ref): New function.
1758         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
1759         build_fold_indirect_ref.
1760         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
1761         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
1762         * tree.h: Declare new function.
1763
1764 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
1765
1766         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
1767         dumping for development builds.
1768         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
1769         development builds only.
1770         * genattrtab.c (write_eligible_delay): Fix typo in previous
1771         commit.
1772         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
1773         gcc_assert.
1774
1775 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
1776
1777         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
1778         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
1779         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
1780         hoist_code, extract_mentioned_regs_helper, compute_store_table,
1781         insert_store): Use gcc_assert and gcc_unreachable.
1782         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
1783         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
1784         ggc_record_overhead): Likewise.
1785         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
1786         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
1787         ggc_pop_context, clear_marks, validate_free_objects,
1788         ggc_pch_read): Likewise.
1789         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
1790         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
1791         ggc_push_context, check_cookies, ggc_collect,
1792         ggc_print_statistics): Likewise.
1793         * gimple-low.c (lower_function_body, lower_stmt,
1794         lower_bind_expr): Likewise.
1795         * gimplify.c (gimple_tree_eq, push_gimplify_context,
1796         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
1797         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
1798         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
1799         gimplify_case_label_expr, gimplify_exit_block_expr,
1800         canonicalize_component_ref, gimplify_compound_lval,
1801         gimplify_self_mod_expr, gimplify_call_expr,
1802         gimplify_init_ctor_eval, gimplify_init_constructor,
1803         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
1804         gimplify_expr, check_pointer_types_r,
1805         force_gimple_operand): Likewise.
1806         * global.c (global_alloc, build_insn_chain): Likewise.
1807         * graph.c (clean_graph_dump_file,
1808         finish_graph_dump_file): Likewise.
1809         gcov-io.c (gcov_open): Use GCOV_CHECK.
1810
1811 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
1812
1813         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
1814
1815 2004-09-09  Jan Hubicka  <jh@suse.cz>
1816
1817         middle-end/17128
1818         * tree-inline.c (expand_call_inline): Make overactive sanity check
1819         happy.
1820
1821 2004-09-09  Jan Hubicka  <jh@suse.cz>
1822
1823         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
1824         VIEW_CONVERT_EXPR.
1825
1826 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
1827
1828         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
1829         (gengtype.o): Depend on errors.h.
1830         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
1831         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
1832         attr_alt_subset_p, attr_alt_subset_of_compl_p,
1833         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
1834         write_test_expr, write_attr_value, write_eligible_delay,
1835         make_internal_attr, make_numeric_value): Likewise.
1836         * genautomata.c (regexp_name, get_str_vect,
1837         gen_presence_absence_set, automaton_decl_hash,
1838         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
1839         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
1840         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
1841         test_unit_reserv, it_is_empty_reserv_sets,
1842         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
1843         reserv_sets_and, output_cycle_reservs, get_free_state,
1844         intersected_state_reservs_p, states_union, remove_arc,
1845         copy_insn_regexp, transform_1, transform_2, transform_3,
1846         regexp_transform_func, store_alt_unit_usage,
1847         check_regexp_units_distribution, process_seq_for_forming_states,
1848         process_alts_for_forming_states, make_automaton,
1849         form_arcs_marked_by_insn, create_composed_state,
1850         set_out_arc_insns_equiv_num, partition_equiv_class,
1851         process_insn_equiv_class, set_insn_equiv_classes,
1852         units_to_automata_heuristic_distr, form_regexp,
1853         longest_path_length, output_dfa_max_issue_rate, add_vect,
1854         out_state_arcs_num, add_vect_el, output_trans_table,
1855         output_state_alts_table, output_dead_lock_vect,
1856         output_max_insn_queue_index_def,
1857         output_min_insn_conflict_delay_func,
1858         output_internal_insn_latency_func, output_print_reservation_func,
1859         output_cpu_unit_reservation_p, output_state_arcs,
1860         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
1861         make_default_insn_latency_attr,
1862         form_important_insn_automata_lists): Likewise.
1863         * genemit.c (gen_exp, output_add_clobbers,
1864         output_added_clobbers_hard_reg_p): Likewise.
1865         * genextract.c (print_path, main): Likewise.
1866         * genflags.c (gen_macro): Likewise.
1867         * gengenrtl.c: Include errors.h
1868         (type_from_format, accessor_from_format): Likewise.
1869         * gengtype.c (get_file_basename, output_mangled_typename,
1870         walk_type, write_types_process_field,
1871         write_types_local_process_field): Likewise.
1872         * genmodes.c (complete_mode): Likewise.
1873         * genopinit.c (gen_insn): Likewise.
1874         * genoutput.c (output_insn_data, check_constraint_len,
1875         constraint_len): Likewise.
1876         * genpreds.c (add_mode_tests):Likewise.
1877         * gen-protos.c (add_hash): Likewise.
1878         * genrecog.c (find_operand, find_matching_operand,
1879         validate_pattern, add_to_sequence, maybe_both_true,
1880         nodes_identical_1, merge_trees, write_switch, write_cond,
1881         write_action, is_unconditional, make_insn_sequence,
1882         debug_decision_2): Likewise.
1883         * gensupport.c (is_predicable, collect_insn_data,
1884         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
1885
1886 2004-09-09  Jan Hubicka  <jh@suse.cz>
1887
1888         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
1889         * cfgbuild.c (compute_outgoing_frequencies): When probability is
1890         missing, guess it.
1891         (find_many_sub_basic_blocks): Do update profile only when it is
1892         present.
1893         * predict.c (set_even_probabilities): Break out from ...
1894         (combine_predictions_for_insn): ... here; deal with
1895         !can_predict_insn_p insns.
1896         (combine_predictions_for_bb): Use set_even_probabilities.
1897         (bb_estimate_probability_locally): Break out from ....
1898         (estimate_probability): ... here.
1899         (guess_outgoing_edge_probabilities): New entry point.
1900
1901 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
1902
1903         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
1904         handle_braces, process_brace_body, main, used_arg,
1905         set_multilib_dir, print_multilib_info): Use fatal, not abort.
1906
1907         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
1908
1909         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
1910         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
1911         Morgan's theorem in last checkin.
1912
1913 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
1914             Nathan Sidwell  <nathan@codesourcery.com>
1915
1916         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
1917         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
1918         * timevar.c (timevar_push, timevar_pop, timevar_start,
1919         timevar_stop): Likewise.
1920         * toplev.c (default_pch_valid_p): Likewise.
1921         * tracer.c (tail_duplicate): Likewise.
1922         * tree-alias-common.c (get_alias_var_decl,
1923         get_values_from_constructor, create_alias_var, delete_alias_vars,
1924         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
1925         Likewise.
1926         * tree.c (tree_size, make_node_stat, copy_node_stat,
1927         build_int_cst_wide, integer_all_onesp, list_length, chainon,
1928         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
1929         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
1930         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
1931         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
1932         build_method_type_directly, decl_type_context, get_callee_fndecl,
1933         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
1934         tree_fold_gcd): Likewise.
1935         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
1936         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
1937         cleanup_control_expr_graph, find_taken_edge,
1938         find_taken_edge_switch_expr, phi_alternatives_equal,
1939         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
1940         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
1941         tree_split_edge, tree_verify_flow_info, thread_jumps,
1942         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
1943         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
1944         chrec_fold_multiply_poly_poly): Likewise.
1945         * tree-complex.c (extract_component, expand_complex_division,
1946         expand_complex_comparison, expand_complex_operations_1,
1947         build_replicated_const, expand_vector_operations_1): Likewise.
1948         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
1949         build_classic_dir_vector): Likewise.
1950         * tree-dfa.c (compute_immediate_uses_for_phi,
1951         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
1952         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
1953         * tree-dump.c (dequeue_and_dump): Likewise.
1954         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
1955         record_in_finally_tree, replace_goto_queue_1,
1956         maybe_record_in_goto_queue, verify_norecord_switch_expr,
1957         do_return_redirection): Likewise.
1958         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
1959         add_to_dst_predicate_list, find_phi_replacement_condition,
1960         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
1961         Likewise.
1962         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
1963         initialize_inlined_parameters, declare_return_variable,
1964         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
1965         optimize_inline_calls, copy_tree_r): Likewise.
1966         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
1967         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
1968         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
1969         tsi_split_statement_list_after, tsi_split_statement_list_before):
1970         Likewise.
1971         * tree-mudflap.c (mf_varname_tree): Likewise.
1972         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
1973         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
1974         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1975         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
1976         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
1977         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
1978         Likewise.
1979         * tree-phinodes.c (resize_phi_node, add_phi_arg,
1980         remove_all_phi_nodes_for): Likewise.
1981         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
1982         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
1983         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
1984         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
1985         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
1986         generate_one_element_ref, generate_element_copy,
1987         generate_element_zero, scalarize_copy, scalarize_init,
1988         scalarize_ldst): Likewise.
1989         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
1990         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
1991         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
1992         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
1993         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
1994         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
1995         widen_bitfield, ccp_fold_builtin): Likewise.
1996         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
1997         replace_exp_1, propagate_tree_value): Likewise.
1998         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
1999         * tree-ssa-dce.c (set_control_dependence_map_bit,
2000         find_control_dependence, find_pdom, mark_operand_necessary,
2001         mark_stmt_if_obviously_necessary,
2002         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
2003         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
2004         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
2005         eliminate_redundant_computations, avail_expr_eq): Likewise.
2006         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
2007         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
2008         duplicate_blocks): Likewise.
2009         * tree-ssa-loop-im.c (for_each_index, set_level,
2010         is_call_clobbered_ref): Likewise.
2011         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
2012         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
2013         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
2014         peel_address, ptr_difference_cost, may_replace_final_value,
2015         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
2016         rewrite_use, rewrite_uses): Likewise.
2017         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
2018         check_loop_closed_ssa_use): Likewise.
2019         * tree-ssanames.c (make_ssa_name): Likewise.
2020         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
2021         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
2022         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
2023         get_indirect_ref_operands, add_stmt_operand): Likewise.
2024         * tree-ssa-pre.c (value_exists_in_set_bitmap,
2025         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
2026         phi_translate, valid_in_set, compute_antic,
2027         find_or_generate_expression, create_expression_by_pieces, insert_aux,
2028         create_value_expr_from, eliminate): Likewise.
2029         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
2030         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
2031         Likewise.
2032         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
2033         eliminate_tail_call): Likewise.
2034         * tree-vectorizer.c (vect_create_index_for_array_ref,
2035         vect_align_data_ref, vect_create_data_ref,
2036         vect_create_destination_var, vect_get_vec_def_for_operand,
2037         vect_finish_stmt_generation, vect_transform_stmt,
2038         vect_transform_loop_bound, vect_transform_loop,
2039         vect_analyze_operations): Likewise.
2040         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
2041         Likewise.
2042         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
2043         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
2044         bsi_after_labels, bsi_last): Likewise.
2045         * tree-ssa-live.c (var_union, change_partition_var,
2046         create_ssa_var_map, calculate_live_on_entry, root_var_init,
2047         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
2048         Likewise.
2049         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
2050         tpa_find_tree): Likewise.
2051         (register_ssa_partition_check): Declare.
2052         (register_ssa_partition): use it.
2053         * tree-ssa-live.c: Include errors.h.
2054         (register_ssa_partition_check): New.
2055         * tree-ssa-operands.c: Include errors.h.
2056         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
2057
2058 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
2059             Catherine Moore  <clm@redhat.com>
2060
2061         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
2062         (FRV_CPU_FR405): New processor enums.
2063         (frv_issue_rate, frv_acc_group): Declare.
2064         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
2065         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
2066         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
2067         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
2068         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
2069         handled by CPP_SPEC.
2070         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
2071         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
2072         (ACC_MASK): New macro.
2073         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
2074         (TARGET_MEDIA_FR450): New macro.
2075         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
2076         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
2077         (LABEL_ALIGN_AFTER_BARRIER): Define.
2078         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
2079         (IACC_FIRST, IACC_LAST): New pair of SPRs.
2080         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
2081         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
2082         (REGISTER_NAMES): Add entries for new registers.
2083         (REG_CLASS_CONTENTS): Update for new register ranges.
2084         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
2085         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
2086         (PACKING_FLAG_USED_P): Delete.
2087         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
2088         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
2089         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
2090         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
2091         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
2092         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
2093         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
2094         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
2095         (CPU_UNITS_QUERY): Define to 1.
2096         * config/frv/frv.c: Include gt-frv.h
2097         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
2098         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
2099         (frv_insn_group): New enumeration.
2100         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
2101         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
2102         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
2103         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
2104         gap left by REGSTATE_LIVE.
2105         (regstate_t): New typedef.
2106         (TARGET_MACHINE_DEPENDENT_REORG): Define.
2107         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
2108         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
2109         Initialize frv_unit_codes[] and frv_type_to_unit[].
2110         (frv_conditional_register_usage): Remove redundant fixing of
2111         accumulator registers.
2112         (frv_insn_packing_flag): Update specification.
2113         (frv_function_prologue): Don't set frv_insn_packing_flag here.
2114         Zero out frv_nops[].
2115         (frv_expand_epilogue): Remove comments about the no-longer-present
2116         SIBCALL_P argument.
2117         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
2118         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
2119         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
2120         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
2121         packing is disabled and if INSN can only issue to M1.
2122         (call_operand): Check TARGET_LONG_CALLS.
2123         (acc_operand, even_acc_operand, quad_acc_operand)
2124         (accg_operand): Simplify.  Don't accept pseudo registers.
2125         (output_move_single): Handle SPR<-zero moves.
2126         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
2127         (frv_registers_update, frv_registers_used_p): Delete.
2128         (frv_registers_set_p): Delete.
2129         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
2130         (frv_issues_to_branch_unit_p): New function.
2131         (frv_packet): New structure.
2132         (frv_cond_flags, frv_regstate_conflict_p): New functions.
2133         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
2134         (frv_registers_update_1, frv_registers_update): New functions.
2135         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
2136         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
2137         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
2138         (frv_sort_insn_group, frv_reorder_packet): New functions.
2139         (frv_pack_insns): Use frv_reorder_packet.
2140         (frv_packet_address): New variable.
2141         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
2142         (frv_register_nop, frv_reorg): New functions.
2143         (bdesc_1arg): Add __SCUTSS.
2144         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
2145         __SUBSS, __SLASS and __SCAN.
2146         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
2147         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
2148         (frv_init_builtins): Register the above builtins.
2149         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
2150         registers.  Turn the referenced accumulators into global registers.
2151         (frv_read_iacc_argument): New function.
2152         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
2153         (frv_split_iacc_move): New function.
2154         (frv_expand_builtin): Handle the new builtins.
2155         * config/frv/frv.md: Replace old schedulers with new order-independent
2156         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
2157         packing algorithm.
2158         (cpu): Add fr550, fr450 and fr405.
2159         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
2160         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
2161         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
2162         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
2163         (fnop, mnop): New patterns.
2164         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
2165         New constants.
2166         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
2167         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
2168         registers.
2169         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
2170         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
2171         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
2172         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
2173         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
2174         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
2175         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
2176         (frv_prefetch0, frv_prefetch): New patterns.
2177         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
2178         -mcpu=simple.  Add -mcpu=fr550.
2179         (MULTILIB_DIRNAMES): Update accordingly.
2180         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
2181         -mcpu=fr450.
2182         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
2183         -mlong-calls and -malign-labels options for FR-V.
2184
2185 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
2186
2187         PR c/8420
2188         * c-tree.h (struct c_declspecs): New.
2189         (struct c_declarator, struct c_type_name, struct c_parm): Update
2190         element types.
2191         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
2192         start_function, start_decl, build_c_parm,
2193         make_pointer_declarator): Update prototypes.
2194         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
2195         declspecs_add_scspec, declspecs_add_attrs): New.
2196         (split_specs_attrs): Remove.
2197         * c-parse.in (%union): Add dsptype.
2198         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
2199         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
2200         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
2201         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
2202         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
2203         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
2204         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
2205         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
2206         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
2207         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
2208         maybe_type_quals_attrs): Change to dsptype.
2209         (struct c_declspec_stack): New.
2210         (current_declspecs, declspec_stack): Change type.
2211         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
2212         structures.
2213         (extdefs): Likewise.
2214         (setspecs): Likewise.
2215         (fndef): Use current_declspecs for empty declspecs list.
2216         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
2217         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
2218         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
2219         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
2220         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
2221         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
2222         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
2223         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
2224         structures and helper functions.  Update comments.
2225         (typespec_nonattr): Correct comment.
2226         (maybe_type_quals_attrs, typename): Update to new structures.
2227         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
2228         shadow_tag, shadow_tag_warned, start_function, start_decl,
2229         build_c_parm, make_pointer_declarator,
2230         set_array_declarator_inner, groktypename): Update to new
2231         structures.
2232         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
2233         declspecs_add_scspec, declspecs_add_attrs): New.
2234         (split_specs_attrs): Remove.
2235         (shadow_tag_warned): Make warning for useless type names a
2236         pedwarn.  Give hard error for long, short, signed, unsigned or
2237         _Complex used with struct, union or enum in empty declaration.
2238         Make found_tag a bool.
2239         (grokdeclarator): Remove checks now done at parse time.
2240
2241 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
2242
2243         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
2244         c_declarator, struct c_type_name, struct c_parm): New.
2245         (build_array_declarator, set_array_declarator_inner,
2246         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
2247         start_function, start_decl, build_c_parm, build_attrs_declarator,
2248         build_function_declarator, make_pointer_declarator, c_cast_expr,
2249         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
2250         (build_id_declarator): New.
2251         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
2252         structures.
2253         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
2254         ARG_INFO_OTHERS): Remove.
2255         (build_id_declarator): New.
2256         (build_array_declarator, set_array_declarator_inner, groktypename,
2257         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
2258         grokfield, start_function, store_parm_decls_newstyle,
2259         store_parm_decls_oldstyle, store_parm_decls,
2260         build_c_parm, build_attrs_declarator, build_function_declarator,
2261         make_pointer_declarator, grokdeclarator): Update to new
2262         structures.
2263         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
2264         parmtype.
2265         (declarator, notype_declarator, after_type_declarator,
2266         parm_declarator, parm_declarator_starttypename,
2267         parm_declarator_nostarttypename, array_declarator, typename,
2268         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
2269         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
2270         parmlist_1, parmlist_2, parmlist_or_identifiers,
2271         parmlist_or_identifiers_1): Use these types.
2272         (primary, after_type_declarator, parm_declarator_starttypename,
2273         notype_declarator, component_decl, component_declarator,
2274         component_notype_declarator, typename, absdcl,
2275         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
2276         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
2277
2278 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
2279
2280         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
2281         in_typeof, record_maybe_used_decl, pop_maybe_used,
2282         c_expr_sizeof_expr, c_expr_sizeof_type): New.
2283         * c-decl.c (parser_obstack): New.
2284         (c_init_decl_processing): Initialize parser_obstack.
2285         (c_write_global_declarations_1): Check for used but undefined
2286         static functions.
2287         * c-parse.in (%union): Add otype.
2288         (save_obstack_position): New.
2289         (extdefs): Use it.
2290         (unary_expr): Update in_sizeof and in_alignof.  Use
2291         c_expr_sizeof_expr and c_expr_sizeof_type.
2292         (sizeof): Update in_sizeof.
2293         (alignof): Update in_alignof.
2294         (typeof): Update in_typeof.
2295         (typespec_nonreserved_nonattr): Call pop_maybe_used.
2296         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
2297         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
2298         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
2299         (build_external_ref): Set C_DECL_USED or call
2300         record_maybe_used_decl if appropriate.
2301         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
2302
2303 2004-09-08  Eric Christopher  <echristo@redhat.com>
2304
2305         * builtins.c: Fix prototype for fold_builtin_atan.
2306
2307 2004-09-08  Eric Christopher  <echristo@redhat.com>
2308
2309         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
2310         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
2311         fold_builtin_atan): New functions. Migrate function bodies...
2312         (fold_builtin_1): ... from here.
2313
2314 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
2315
2316         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
2317         save_size.
2318
2319 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
2320
2321         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
2322         * config/rs6000/power5.md (power5-lmul): Same.
2323
2324 2004-09-08  Richard Henderson  <rth@redhat.com>
2325
2326         PR rtl-opt/17186
2327         * function.c (expand_function_end): Have fall-off-the-end
2328         return path jump around return register setup.
2329
2330 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2331
2332         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
2333         (output_return): Do not test for the presence of the 'unimp' insn.
2334         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
2335         as predicates instead of custom ones.  Return raw strings when
2336         possible.
2337         (output_sibcall): Likewise.  Concatenate strings.
2338         (output_ubranch): Remove kludge for TurboSPARC.
2339         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
2340         (output_v9branch): Likewise.
2341         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
2342         <#>: Set sparc_indent_opcode if the delay slot is filled.
2343         <(>: Likewise.
2344         <)>: New operand to emit the displacement from the saved PC on return.
2345         <@>: Remove.
2346         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
2347         (ASM_OUTPUT_OPCODE): New macro.
2348         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
2349         * config/sparc/sparc.md (normal_branch, inverted_branch,
2350         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
2351         inverted_fpe_branch): Adjust call to output_cbranch.
2352         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
2353         call to output_v9branch.
2354         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
2355         (output_v9branch): Likewise.
2356
2357 2004-09-08  Devang Patel  <dpatel@apple.com>
2358
2359         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
2360         -segs_read_only_addr and -segs_read_write_addr.
2361         (WORD_SWITCH_TAKES_ARG): Same.
2362         (LINK_SPEC): Same.
2363         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
2364         -segs_read_write_addr.
2365
2366 2004-09-08  Richard Henderson  <rth@redhat.com>
2367
2368         * function.c (reference_callee_copied): New.
2369         (assign_parm_setup_reg): Use it.
2370         * calls.c (initialize_argument_information): Likewise.
2371         (emit_library_call_value_1): Likewise.
2372         * function.h (reference_callee_copied): Declare.
2373
2374         * target.h (struct gcc_target): Add callee_copies.
2375         * target-def.h (TARGET_CALLEE_COPIES): New.
2376         (TARGET_PASS_BY_REFERENCE): Update default.
2377         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2378         * targhooks.c (hook_callee_copies_named): New.
2379         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
2380         hook_pass_by_reference_false.
2381         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
2382         * targhooks.h: Update decls.
2383         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
2384         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2385         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
2386         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
2387         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2388         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
2389         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2390         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
2391         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2392         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
2393         (mips_callee_copies): New.
2394         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2395         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
2396         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2397         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
2398         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2399         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
2400         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2401         * config/sh/sh.c (sh_callee_copies): New.
2402         (TARGET_CALLEE_COPIES): New.
2403         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2404         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
2405         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2406         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
2407         for FUNCTION_ARG_CALLEE_COPIES.
2408         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
2409
2410 2004-09-08  Devang Patel  <dpatel@apple.com>
2411
2412         * tree-if-conv.c (find_phi_replacement_condition): Return true
2413         edge block.
2414         (replace_phi_with_cond_modify_expr): Select conditional expr args
2415         based on true edge basic block.
2416
2417 2004-09-08  Jan Hubicka  <jh@suse.cz>
2418
2419         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
2420         variables being alias set.
2421
2422 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
2423
2424         * final.c (shorten_branches, final, get_insn_template,
2425         output_alternate_entry_point, final_scan_insn, alter_subreg,
2426         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
2427         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
2428         * fix-header.c (lookup_std_proto): Likewise.
2429         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
2430         verify_local_live_at_start, update_life_info, mark_reg,
2431         calculate_global_regs_live, allocate_reg_life_data,
2432         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
2433         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
2434         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
2435         * fold-const.c (force_fit_type, div_and_round_double,
2436         may_negate_without_overflow_p, int_const_binop, const_binop,
2437         size_binop, size_diffop, fold_convert_const, fold_convert,
2438         invert_tree_comparison, swap_tree_comparison,
2439         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
2440         range_binop, make_range, fold_cond_expr_with_comparison,
2441         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
2442         fold_abs_const, fold_not_const, fold_relational_const, round_up,
2443         round_down): Likewise.
2444         * function.c (find_function_data, assign_stack_temp_for_type,
2445         instantiate_virtual_regs_lossage, aggregate_value_p,
2446         assign_parm_find_entry_rtl, assign_parm_setup_block,
2447         expand_function_start, expand_function_end, keep_stack_depressed,
2448         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
2449
2450 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
2451
2452         * Makefile.in (tree-loop-linear.o): Added.
2453         (OBJS-common): Add tree-loop-linear.o
2454         * common.opt: New flag, ftree-loop-linear.
2455         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
2456         * tree-flow.h: Add prototype for linear_transform_loops.
2457         * tree-optimize.c: Add linear transform after vectorization.
2458         * tree-pass.h: Add struct pass_linear_transform.
2459         * tree-ssa-loop.c: Add pass_linear_transform.
2460         * tree-loop-linear.c: New file.
2461         * lambda-code.c: gcc_assertify.
2462         (gcc_loop_to_lambda_loop): Handle all exit tests.
2463         Handle case where we have (invariant >= induction var).
2464         (find_induction_var_from_exit_cond): Ditto.
2465
2466 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
2467
2468         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
2469         memory tag is call clobbered, so are its aliases.
2470         (group_aliases): When two memory tags being grouped, if one is
2471         call clobbered, so are the other and its aliases.
2472         (add_may_alias): Remove call-clobbering stuff.
2473         (replace_may_alias): Likewise.
2474         (merge_pointed_to_info): Merge pt_global_mem
2475
2476 2004-09-08  Jan Hubicka  <jh@suse.cz>
2477
2478         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
2479         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
2480         (cgraph_expand_function): Remove stale cgraph edges of currently
2481         compiled function; fix non-unit-at-a-time code copying function
2482         node for later reuse.
2483
2484 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
2485
2486         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
2487         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
2488         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
2489         (vec_gc_free, vec_heap_free): New.
2490         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
2491         (DEF_VEC_P): Add allocator argument. Adjust.
2492         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
2493         (DEF_VEC_O): Add allocator argument. Adjust.
2494         (VEC(free)): New.
2495
2496         * tree.h (tree): Define a GC'd vector.
2497         * lamba-code.c (lambda_loop): Likewise.
2498         * value-prof.h (histogram_value): Likewise.
2499
2500 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
2501
2502         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
2503         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
2504         gen_lowpart_common, gen_highpart, gen_highpart_mode,
2505         subreg_highpart_offset, operand_subword, operand_subword_force,
2506         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
2507         set_mem_alias_set, change_address_1, verify_rtx_sharing,
2508         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
2509         try_split, add_insn_after, add_insn_before, remove_insn,
2510         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
2511         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
2512         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
2513         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
2514         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
2515         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
2516         record_path_before_1, check_path_after_1, check_path_after): Likewise.
2517         * except.c (gen_eh_region, resolve_one_fixup_region,
2518         remove_unreachable_regions, convert_from_eh_region_ranges_1,
2519         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
2520         connect_post_landing_pads, sjlj_emit_function_exit,
2521         remove_exception_handler_label, remove_eh_handler,
2522         reachable_next_level, collect_one_action_chain,
2523         output_function_exception_table): Likewise.
2524         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
2525         optimize_save_area_alloca, allocate_dynamic_stack_space,
2526         probe_stack_range, hard_function_value): Likewise.
2527         * expmed.c (mode_for_extraction, store_bit_field,
2528         store_fixed_bit_field, extract_bit_field, expand_shift,
2529         expand_mult_const, expand_mult, choose_multiplier,
2530         expand_mult_highpart, expand_divmod, emit_store_flag,
2531         do_cmp_and_jump): Likewise.
2532         * expr.c (convert_move, convert_modes, move_by_pieces,
2533         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
2534         move_block_from_reg, gen_group_rtx, emit_group_load,
2535         emit_group_move, emit_group_store, use_reg, use_regs,
2536         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
2537         emit_move_insn, emit_move_insn_1, emit_push_insn,
2538         expand_assignment, store_expr, count_type_elements,
2539         store_constructor, store_field, safe_from_p, expand_var,
2540         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
2541
2542 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
2543
2544         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
2545         gcc_assert and gcc_unreachable.
2546         * ddg.c (create_ddg_dependence, add_deps_for_def,
2547         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
2548         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
2549         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
2550         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
2551         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
2552         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
2553         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
2554         dataflow_set_copy, hybrid_search, diagnostic.c,
2555         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
2556         * dojump.c (do_jump): Likewise.
2557         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
2558         compute_dom_fast_query, calculate_dominance_info,
2559         free_dominance_info, get_immediate_dominator,
2560         set_immediate_dominator, get_dominated_by,
2561         redirect_immediate_dominators, nearest_common_dominator,
2562         dominated_by_p, verify_dominators, recount_dominator,
2563         iterate_fix_dominators, add_to_dominance_info,
2564         delete_from_dominance_info): Likewise.
2565         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
2566         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
2567         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
2568         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
2569         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
2570         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
2571         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
2572         output_call_frame_info, output_loc_operands, build_cfa_loc,
2573         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
2574         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
2575         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
2576         splice_child_die, attr_checksum, same_dw_val_p,
2577         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
2578         unmark_dies, value_format, output_loc_list, output_die,
2579         output_pubnames, output_aranges, base_type_die, is_base_type,
2580         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
2581         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
2582         field_byte_offset, add_data_member_location_attribute,
2583         add_const_value_attribute, rtl_for_decl_location,
2584         add_location_or_const_value_attribute, add_byte_size_attribute,
2585         add_bit_offset_attribute, add_bit_size_attribute,
2586         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
2587         decl_start_label, gen_formal_parameter_die,
2588         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
2589         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
2590         force_decl_die, force_type_die, gen_decl_die,
2591         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
2592         dwarf2out_finish): Likewise.
2593
2594 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
2595
2596         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
2597         * builtins.c: Include tree-mudflap.h.
2598
2599 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
2600
2601         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
2602         force operand 0.0 into register in XFmode. Also do not force
2603         operand 0.0 into register if !TARGET_CMOVE.
2604         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
2605         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
2606         implement ftst x87 instruction.
2607         (*fp_jcc_7): New insn pattern. Change corresponding split
2608         pattern to handle "general_operand" instead of
2609         "nonimmediate_operand".
2610
2611 2004-09-08  Ben Elliston  <bje@au.ibm.com>
2612
2613         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
2614
2615 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
2616
2617         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
2618         generated from standard va_arg expansion.
2619         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
2620         marked nodes.
2621         (mf_varname_tree, mf_file_function_line_tree): Add some support
2622         for column numbers if compiled with USE_MAPPED_LOCATION.
2623
2624 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
2625
2626         * c-decl.c (groktypename_in_parm_context): Remove function.
2627         * c-tree.h (groktypename_in_parm_context): Remove prototype.
2628
2629 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
2630
2631         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
2632         * c-parse.in: Include c-common.h instead of objc-act.h.
2633         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
2634         myparms, myparm): Remove %type declarations.
2635         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
2636         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
2637         declarations.
2638         (objc_inherit_code, objc_public_flag): Remove.
2639         (typespec_nonreserved_nonattr): Call
2640         objc_get_protocol_qualified_type() instead of get_static_reference()
2641         and get_protocol_reference().
2642         (stmt_nocomp): Call grokparm() on @catch parameter.
2643         (objcdef): Move semantic action to objc_finish_implementation().
2644         (classdef): Move semantic action to objc_start_class_interface(),
2645         objc_continue_interface(), objc_finish_interface(),
2646         objc_start_class_implementation(), objc_continue_implementation(),
2647         objc_start_category_interface() and
2648         objc_start_category_implementation().
2649         (protocoldef): Move semantic actions to objc_start_protocol() and
2650         objc_finish_interface().
2651         (ivar_decl_list): Remove nonterminal.
2652         (visibility_spec): Move semantic actions to objc_set_visibility().
2653         (ivar_decls): Remove assignment to $$.
2654         (ivar_decl): Rephrase in terms of component_decl; call
2655         objc_add_instance_variable().
2656         (ivars, ivar_declarator): Remove nonterminals.
2657         (opt_semi): New nonterminal.
2658         (methodtype): Remove semantic actions.
2659         (methoddef): Move semantic actions to objc_set_method_type(),
2660         objc_start_method_definition() and objc_finish_method_definition().
2661         (methodproto): Move semantic actions to objc_set_method_type() and
2662         objc_add_method_declaration().
2663         (methoddecl): Use objc_typename instead of typename; move semantic
2664         actions to objc_build_method_signature().
2665         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
2666         (optparmlist): Express in terms of optparms and optellipsis.
2667         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
2668         nonterminals.
2669         (keyworddecl): Use objc_typename instead of typename.
2670         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
2671         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
2672
2673 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
2674
2675         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
2676         (MD_FALLBACK_FRAME_STATE_FOR): Update.
2677         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
2678         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
2679         (MD_FROB_UPDATE_CONTEXT): Remove default.
2680         (uw_update_context_1): Instead #ifdef invocation.
2681         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
2682         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
2683         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
2684         (MD_UNWIND_SUPPORT): Undefine this instead.
2685         * config/i386/gnu.h: Likewise.
2686         * config/alpha/linux-unwind.h: New file, macro converted to
2687         function, extracted from..
2688         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
2689         (MD_UNWIND_SUPPORT): Define.
2690         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
2691         * config/i386/linux-unwind.h, config/i386/linux.h,
2692         config/i386/linux64.h: Likewise.
2693         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
2694         MD_HANDLE_UNWABI too.
2695         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
2696         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
2697         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
2698         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
2699         * config/sparc/linux-unwind.h, config/sparc/linux.h,
2700         config/sparc/linux64.h: Likewise.
2701         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
2702         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
2703         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
2704         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
2705         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
2706
2707 2004-09-07  Jan Hubicka  <jh@suse.cz>
2708
2709         * cse.c (fold_rtx):  Avoid building of
2710         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
2711
2712         * tree-ssa-pre.c (grand_bitmap_obstack): New.
2713         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
2714         (init_pre): Initialize obstack.
2715         (fini_pre): Free obstack.
2716
2717 2004-09-07  David Daney  <ddaney@avtrex.com>
2718
2719         * config.gcc: Added support for --with-divide=[breaks|traps] for
2720         mips targets.
2721         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
2722         (TARGET_DIVIDE_TRAPS): New macro.
2723         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
2724         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
2725         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
2726         GENERATE_DIVIDE_TRAPS.
2727         (mips_output_division): Emit conditional trap if
2728         GENERATE_DIVIDE_TRAPS is set.
2729         * doc/install.texi: Document --with-divide.
2730         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
2731
2732 2004-09-07  Caroline Tice  <ctice@apple.com>
2733
2734         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
2735         EDGE_CROSSING, to flags test case.
2736
2737 2004-09-07  Jan Hubicka  <jh@suse.cz>
2738
2739         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
2740         class too.
2741
2742 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
2743
2744         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
2745         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
2746         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
2747         or gcc_unreachable.
2748         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
2749         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
2750         alloc_aux_for_edges, free_aux_for_edges): Likewise.
2751         * cfgcleanup.c (try_forward_edges,
2752         merge_blocks_move_predecessor_nojumps,
2753         merge_blocks_move_successor_nojumps): Likewise.
2754         * cfgexpand.c (expand_gimple_cond_expr,
2755         expand_gimple_tailcall): Likewise.
2756         * cfghooks.c (duplicate_block): Likewise.
2757         * cfglayout.c (record_effective_endpoints,
2758         insn_locators_initialize, change_scope, fixup_reorder_chain,
2759         verify_insn_chain, fixup_fallthru_exit_predecessor,
2760         duplicate_insn_chain, cfg_layout_finalize): Likewise.
2761         * cfgloopanal.c (check_irred): Likewise.
2762         * cfgloop.c (superloop_at_depth, flow_loops_free,
2763         flow_loop_entry_edges_find, flow_loops_find,
2764         flow_loop_outside_edge_p, get_loop_body,
2765         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
2766         get_loop_exit_edges, num_loop_branches, cancel_loop,
2767         verify_loop_structure): Likewise.
2768         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
2769         duplicate_loop_to_header_edge, create_preheader,
2770         create_loop_notes): Likewise.
2771         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
2772         edirect_branch_edge, force_nonfallthru_and_redirect,
2773         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
2774         commit_edge_insertions, commit_edge_insertions_watch_calls,
2775         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
2776         cfg_layout_redirect_edge_and_branch_force,
2777         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
2778         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
2779         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
2780         cgraph_varpool_node): Likewise.
2781         * cgraphunit.c (cgraph_finalize_function,
2782         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
2783         cgraph_expand_function, cgraph_remove_unreachable_nodes,
2784         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
2785         cgraph_mark_inline, cgraph_expand_all_functions,
2786         cgraph_build_static_cdtor): Likewise.
2787         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
2788         simplify_logical, distribute_notes, insn_cuid): Likewise.
2789         * conflict.c (conflict_graph_add, print_conflict): Likewise.
2790         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
2791         coverage_checksum_string): Likewise.
2792         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
2793         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
2794         cse_cc_succs, cse_condition_code_reg): Likewise.
2795         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
2796         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
2797         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
2798         cselib_record_set): Likewise.
2799
2800 2004-09-07  Jan Hubicka  <jh@suse.cz>
2801
2802         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
2803
2804 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
2805
2806         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
2807         fold_convert.
2808         (fold_builtin_strpbrk): Likewise.
2809         * expr.c (array_ref_low_bound): Likewise.
2810         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
2811         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
2812         * tree-sra.c (generate_element_zero): Likewise.
2813         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2814         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
2815         add_old_iv_candidates, add_iv_candidates): Likewise.
2816         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
2817
2818 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
2819
2820         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
2821         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
2822         c_expand_expr, boolean_increment, nonnull_check_p,
2823         check_function_arguments_recurse, fold_offsetof_1): Likewise.
2824         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
2825         builtin_define_type_max): Likewise.
2826         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
2827         implicit_decl_warning, builtin_function, build_compound_literal,
2828         complete_array_type, grokdeclarator, get_parm_info,
2829         start_function, store_parm_decls_oldstyle,
2830         c_write_global_declarations): Likewise.
2831         * c-format.c (get_constant, decode_format_attr,
2832         maybe_read_dollar_number, get_flag_spec, check_format_arg,
2833         check_format_types, format_type_warning,
2834         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
2835         init_dynamic_diag_info, handle_format_attribute): Likewise.
2836         * c-gimplify.c (push_context, pop_context, finish_bc_block):
2837         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
2838         * c-objc-common.c (c_tree_printer): Likewise.
2839         * c-pch.c (pch_init): Likewise.
2840         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
2841         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
2842         * c-typeck.c (c_incomplete_type_error, composite_type,
2843         common_pointer_type, common_type, same_translation_unit_p,
2844         tagged_types_tu_compatible_p, finish_init, pop_init_level,
2845         set_designator, set_nonincremental_init_from_string,
2846         process_init_element, c_finish_if_stmt): Likewise.
2847         * caller-save.c (init_caller_save, save_call_clobbered_regs,
2848         insert_restore, insert_save, insert_one_insn): Likewise.
2849         * calls.c (emit_call_1, compute_argument_block_size,
2850         precompute_arguments, expand_call, emit_library_call_value_1,
2851         store_one_arg): Likewise.
2852
2853 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
2854
2855         * configure.ac (enable-checking): Add release option. Reorganize
2856         to avoid repetition.
2857         * configure: Rebuilt.
2858         * doc/install.texi (enable-checking): Amend documentation.
2859
2860 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
2861
2862         PR bootstrap/17313
2863         * Makefile.in (specs.ready): Depend on cc1$(exeext).
2864
2865 2004-09-06  James E Wilson  <wilson@specifixinc.com>
2866
2867         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
2868         movdf_hardfloat_32bit): Split fG into two alternatives.
2869         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
2870
2871         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
2872
2873 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
2874
2875         * final.c (output_in_slot): Delete.
2876         (final_scan_insn): Revert 2004-09-03 change.
2877         (output_asm_insn): Likewise.
2878         * config/sparc/sparc.c (output_return): Likewise.
2879         (output_sibcall): Likewise.
2880
2881 2004-09-06  Jan Hubicka  <jh@suse.cz>
2882
2883         * loop.c (loop_dump_aux): Do not print RTL when not available.
2884         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
2885         frontend specific type nodes.
2886         (produce_memory_decl_rtl): Break out from ...
2887         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
2888         (get_computation_at): Avoid random tree sharing.
2889         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
2890
2891 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
2892
2893         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
2894         unnecessary commands.
2895
2896 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
2897
2898         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
2899         (bitmap.o): Likewise.
2900
2901 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
2902
2903         Unify the management of RTL and tree-level dump files.
2904
2905         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
2906         Don't print function name to the dump file, the pass manager
2907         would do this for us. Add code from the top of
2908         rest_of_compilation, up to the initial RTL dump.
2909         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
2910         close the DFI_sibling dump file.
2911         (rest_of_compilation): Don't do that here.  Remove code up to the
2912         initial RTL dump.
2913         (init_optimization_passes): Remove.
2914         (pass_rest_of_compilation): Change pass name to NULL.
2915         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
2916         Do not call init_optimization_passes.
2917         * toplev.h (init_optimization_passes): Remove.
2918
2919         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
2920         finish_graph_dump_file): Remove SUFFIX parameter.
2921         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
2922         finish_graph_dump_file): Likewise.
2923
2924         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
2925         * cfgexpand.c (pass_expand): Adjust.
2926         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
2927         * passes.c (pass_rest_of_compilation): Adjust.
2928         * predict.c (pass_profile): Adjust.
2929         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
2930         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
2931         pass_split_crit_edges, pass_warn_function_return): Adjust.
2932         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
2933         * tree-dfa.c (pass_referenced_vars): Adjust.
2934         * tree-eh.c (pass_lower_eh): Adjust.
2935         * tree-if-conv.c (pass_build_ssa): Adjust.
2936         * tree-into-ssa.c (pass_build_ssa): Adjust.
2937         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
2938         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
2939         * tree-nrv.c (pass_nrv): Adjust.
2940         * tree-optimize.c (pass_gimple, pass_all_optimizations,
2941         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
2942         pass_init_datastructures): Adjust.
2943         * tree-outof-ssa.c (pass_del_ssa): Adjust.
2944         * tree-profile.c (pass_tree_profile): Adjust.
2945         * tree-sra.c (pass_sra): Adjust.
2946         * tree-ssa-alias.c (pass_may_alias): Adjust.
2947         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
2948         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
2949         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
2950         * tree-ssa-dom.c (pass_dominator): Adjust.
2951         * tree-ssa-dse.c (pass_dse): Adjust.
2952         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
2953         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
2954         * tree-ssa-loop-ch.c (pass_ch): Adjust.
2955         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
2956         pass_loop_done, pass_complete_unroll, pass_iv_canon,
2957         pass_iv_optimize, pass_vectorize): Adjust.
2958         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
2959         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
2960         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
2961         pass_late_warn_uninnitialized): Adjust.
2962         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
2963
2964         * Makefile.in (tree-dump.o): Add new dependencies.
2965         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
2966         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
2967         Likewise.
2968         * toplev.c (dump_file_name): New.
2969         * tree-dump.c (dump_enable_all): Add LETTER parameter.
2970         (struct dump_file_info): Add NUM and LETTER fields.
2971         (dump_files): Adjust and add RTL dump files.
2972         (dump_register): Add NUM and LETTER fields.
2973         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
2974         (dump_begin): Use get_dump_file_name.
2975         (dump_switch_p_1): Adjust call to dump_enable_all.
2976         * tree-dump.h (dump_register): Adjust prototype.
2977         * tree-optimize.c (register_one_dump_file): Take dump file index.
2978         Support flags for RTL dumps.
2979         (register_dump_files): Fill in NUM field of struct dump_file_info.
2980         Track properties both when the gate is executed and when it is not.
2981         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
2982         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
2983         dumps of RTL.
2984         * tree-pass.h (dump_file_name): New.
2985         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
2986         New.
2987
2988         * Makefile.in (passes.o): Add new dependencies.
2989         * passes.c (struct dump_file_info, enum dump_file_index,
2990         dump_file_tbl, init_optimization_passes): Remove.
2991         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
2992         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
2993         dump_enabled_p.
2994         (finish_optimization_passes): Update finish_graph_dump_file loop.
2995         (enable_rtl_dump_file): Remove.
2996         * tree-dump.c (dump_files): Adjust and add RTL dump files.
2997         (enable_rtl_dump_file): Add here.
2998         * tree.h (enum tree_dump_index): Add RTL dump file indices.
2999         * doc/invoke.texi (Debugging options): Document new RTL debugging
3000         options.  Update.
3001
3002 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
3003
3004         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
3005         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
3006         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
3007         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
3008         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
3009         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
3010         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
3011         vec.h: Fix comment formatting.
3012
3013 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
3014
3015         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
3016         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
3017         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
3018         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
3019         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
3020         tree-ssa-loop-niter.c, tree-ssa-operands.c,
3021         tree-ssa-operands.h, tree-ssa-propagate.c,
3022         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
3023         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
3024
3025 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
3026
3027         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
3028         vectorizer is enabled.
3029
3030 2004-09-05  Andreas Jaeger  <aj@suse.de>
3031
3032         * tree-if-conv.c: Spell check comments and clean up whitespace.
3033
3034 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3035
3036         * tree-ssa-loop-ivopts.c: New file.
3037         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
3038         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
3039         target_pres_cost, target_spill_cost): Declare.
3040         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
3041         spill_cost): Renamed to ...
3042         (target_avail_regs, target_res_regs, target_small_cost,
3043         target_pres_cost, target_spill_cost): ... and exported.
3044         (init_set_costs, global_cost_for_size): Work with renamed variables.
3045         * common.opt (flag_ivopts): New flag.
3046         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
3047         REF_ORIGINAL.
3048         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
3049         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
3050         generating SSA form.
3051         (force_gimple_operand): New function.
3052         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
3053         * tree-cfg.c (stmt_bsi): New function.
3054         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
3055         PARAM_IV_MAX_CONSIDERED_USES): New.
3056         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
3057         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
3058         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
3059         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
3060         * tree-nested.c (build_addr): Export.
3061         * tree-optimize.c (init_tree_optimization_passes): Add
3062         pass_iv_optimize.
3063         * tree-pass.h (pass_iv_optimize): Declare.
3064         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
3065         IMAGPART_EXPR.
3066         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
3067         as a phi node argument.
3068         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
3069         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
3070         functions.
3071         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
3072         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
3073         pass_iv_optimize): New pass.
3074         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
3075         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
3076         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
3077         * tree.h (REF_ORIGINAL): New macro.
3078         (build_int_cst_type, unsigned_type_for, zero_p,
3079         cst_and_fits_in_hwi, build_addr): Declare.
3080         * doc/invoke.texi (-fivopts): Document.
3081         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
3082         PARAM_IV_MAX_CONSIDERED_USES): Document.
3083         * doc/passes.texi: Document induction variable optimizations pass.
3084
3085 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3086
3087         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
3088         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
3089         * c-common.c (c_common_attribute_table): Accept parameters to
3090         sentinel attribute.
3091         (check_function_sentinel, handle_sentinel_attribute): Likewise.
3092         * doc/extend.texi: Update accordingly.
3093
3094 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3095
3096         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
3097         New.
3098         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
3099         attribute.
3100         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
3101         New functions.
3102         (c_common_attribute_table): Add `sentinel' attribute.
3103         (check_function_arguments): Handle `sentinel' attribute.
3104         * doc/extend.texi: Document `sentinel' attribute.
3105
3106 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
3107
3108         * configure: Regenerated.
3109
3110 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3111
3112         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
3113
3114         * tree.c (save_expr): No longer TREE_READONLY.
3115
3116 2004-09-04  Jan Hubicka  <jh@suse.cz>
3117
3118         * passes.c (rest_of_clean_state):  Fix merge conflict made during
3119         commiting the patch.
3120
3121 2004-09-04  Jan Hubicka  <jh@suse.cz>
3122
3123         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
3124
3125 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
3126
3127         * doc/md.texi (shift patterns): New anchor.  Add reference to
3128         TARGET_SHIFT_TRUNCATION_MASK.
3129         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
3130         * target.h (shift_truncation_mask): New target hook.
3131         * targhook.h (default_shift_truncation_mask): Declare.
3132         * targhook.c (default_shift_truncation_mask): Define.
3133         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
3134         (TARGET_INITIALIZER): Include it.
3135         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
3136         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
3137         reject all out-of-range values.  Fix sign-extension code for modes
3138         whose width is smaller than HOST_BITS_PER_WIDE_INT.
3139         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
3140         (expand_superword_shift, expand_subword_shift): Likewise.
3141         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
3142         (expand_binop): Use them to implement double-word shifts.
3143         * config/arm/arm.c (arm_shift_truncation_mask): New function.
3144         (TARGET_SHIFT_TRUNCATION_MASK): Define.
3145
3146 2004-09-04  Jan Hubicka  <jh@suse.cz>
3147
3148         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
3149         (mix): New macro copied from hashtab.c
3150         (iterative_hash_hashval_t, iterative_hash_pointer,
3151         iterative_hash_host_wide_int): New functions based on hashtab.c
3152         implementation.
3153
3154 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
3155
3156         * config/mips/mips.md (mask): New mode attribute.
3157         (zero_extendsidi2): Add memory alternative.
3158         (*zero_extendsidi2_mem): Delete.
3159         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
3160         memory_operand in the TARGET_MIPS16 check.
3161         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
3162         Redefine using :GPR and :SHORT.
3163         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
3164
3165 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
3166
3167         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
3168         using rint_optab.
3169         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
3170         expand_builtin_mathfn.
3171         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
3172         btrunc?f patterns for btrunc_optab. Implement rint_optab using
3173         rint?f patterns.
3174         * optabs.c (init_optabs): Initialize rint_optab.
3175         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
3176         Add new OTI_rint.
3177         (btrunc_optab): Rename macro from trunc_optab.
3178         (rint_optab): Define corresponding macro.
3179
3180         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
3181         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
3182
3183         * config/i386/i386-protos.h (emit_i387_cw_initialization):
3184         Change prototype. Add new int parameter.
3185         * config/i386/i386.c (emit_i387_cw_initialization):
3186         Handle new rounding modes.
3187
3188         * config/i386/i386.h (enum fp_cw_mode): Delete.
3189         (MODE_NEEDED): Handle new rounding modes.
3190         (EMIT_MODE_SET): Change condition to handle new rounding modes.
3191
3192         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
3193         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
3194         represent different rounding modes of frndint insn.
3195         (type): Add frndint type.
3196         (i387, length, memory): Handle this type.
3197         (i387_cw): New attribute definition.
3198         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
3199         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
3200         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
3201         Add "i387_cw" attribute defined to "trunc".
3202         (x86_fnstcw_1): Remove comment.
3203         (*frndintxf2): Rename insn definition to frndintxf2. Move
3204         insn definition near rint?f2 expanders.
3205         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
3206         rintf and rintl built-ins as inline x87 intrinsics.
3207         (frndintxf2_floor): New pattern to implement floor rounding
3208         mode with frndint x87 instruction.
3209         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
3210         floorf and floorl built-ins as inline x87 intrinsics.
3211         (frndintxf2_ceil): New pattern to implement ceil rounding
3212         mode with frndint x87 instruction.
3213         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
3214         ceilf and ceill built-ins as inline x87 intrinsics.
3215         (frndintxf2_trunc): New pattern to implement trunc rounding
3216         mode with frndint x87 instruction.
3217         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
3218         truncf and truncl built-ins as inline x87 intrinsics.
3219         (frndintxf2_mask_pm): New pattern to implement rounding
3220         mode with exceptions with frndint x87 instruction.
3221         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
3222         implement nearbyint, nearbyintf and nearbyintl built-ins as
3223         inline x87 intrinsics.
3224
3225 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
3226
3227         * config/mips/mips.md (SHORT): New mode macro.
3228         (size): New mode attribute.
3229         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
3230         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
3231         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
3232         !ISA_HAS_SEB_SEH.
3233         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
3234         *extend[qh]isi2_hw patterns and extending them to di.
3235         (extendqihi2): Implement as define_insn_and_split that produces
3236         extendqisi2 after reload.
3237
3238 2004-09-03  Devang Patel  <dpatel@apple.com>
3239
3240         * Makefile.in (OBJS-common): Add tree-if-conv.o
3241         (tree-if-conv.o): New rule.
3242         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
3243         (get_loop_body_in_bfs_order): New.
3244         * cfgloop.h (get_loop_body_in_bfs_order): New.
3245         * tree-flow.h (enum move_pos): Move here from ..
3246         * tree-ssa-loop-im.c (enum move_pos): here.
3247         (movement_possibility): Make externally visible.
3248         * tree-optimize.c (init_tree_optimization_passes): New entry for
3249         if conversion pass.
3250         * tree-pass.h (pass_if_conversion): New.
3251         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
3252         * tree-if-conv.c: New file.
3253         * doc/passes.texi: Document tree if-conversion pass.
3254         * doc/tree-ssa.texi: Same.
3255
3256 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
3257
3258         PR target/14925:
3259         Makefile.in (LIB2ADDEHSTATIC): New.
3260         (LIB2ADDEHSHARED): New.
3261         (LIBUNWIND): New.
3262         (LIBUNWINDDEP): New.
3263         (SHLIBUNWIND_LINK): New.
3264         (SHLIBUNWIND_INSTALL): New.
3265         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
3266         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
3267         (clean): Remove libunwind*
3268         (stage1-start): Remove and copy stage1/libunwind*.
3269         (stage2-start): Remove and copy stage2/libunwind*.
3270         (stage3-start): Remove and copy stage3/libunwind*.
3271         (stage4-start): Remove and copy stage4/libunwind*.
3272         (stageprofile-start): Remove and copy stageprofile/libunwind*.
3273         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
3274
3275         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
3276         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
3277         tmake_file if --with-system-libunwind isn't used.
3278
3279         * config/ia64/t-glibc-libunwind: New file.
3280         * config/t-libunwind-elf: Likewise.
3281         * unwind-compat.c: Likewise.
3282         * unwind-compat.h: Likewise.
3283         * unwind-dw2-fde-compat.c: Likewise.
3284
3285         * config/ia64/t-glibc (LIB2ADDEH): Updated.
3286         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
3287
3288         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
3289         aliases if needed.
3290         * unwind-dw2-fde-glibc.c: Likewise.
3291         * unwind-dw2.c: Likewise.
3292
3293         * config/t-libunwind (LIB2ADDEH): Updated.
3294         (LIB2ADDEHSTATIC): New.
3295         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
3296         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
3297
3298         * configure.ac: Change --enable-libunwind-exceptions to
3299         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
3300         * configure: Regenerated.
3301         * config.in: Updated.
3302
3303         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
3304         above and mention --with-system-libunwind.
3305         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
3306         removed in gcc 3.4.3 and later.
3307
3308         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
3309         USE_LIBUNWIND_EXCEPTIONS is defined.
3310
3311         * mklibgcc.in: Support libunwind.
3312
3313 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
3314
3315         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
3316         m_NOCONA.
3317
3318 2004-09-03  Richard Henderson  <rth@redhat.com>
3319
3320         PR middle-end/9997
3321         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
3322         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
3323         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
3324         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
3325         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
3326         resize_stack_vars_conflict, add_stack_var_conflict,
3327         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
3328         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
3329         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
3330         expand_one_static_var, expand_one_hard_reg_var,
3331         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
3332         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
3333         (expand_used_vars): Rewrite.
3334         * Makefile.in (cfgexpand.o): Update dependencies.
3335
3336 2004-09-04  Jan Hubicka  <jh@suse.cz>
3337
3338         * cfg.c (free_edge): Use ggc_free.
3339         (expunge_block): Use ggc_free.
3340         * passes.c (rest_of_clean_state): Free after compilation.
3341         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
3342         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
3343
3344 2004-09-03  James E Wilson  <wilson@specifixinc.com>
3345
3346         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
3347         DECL_EXTERNAL check.
3348
3349 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3350
3351         * final.c (output_in_slot): New global variable.
3352         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
3353         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
3354         'output_in_slot' before invoking output_asm_insn.
3355         (output_asm_insn): Add a space after the tab if 'output_in_slot'
3356         is set.
3357         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
3358         final_scan_insn.
3359         (output_sibcall): Likewise.
3360
3361 2004-09-03  Jan Hubicka  <jh@suse.cz>
3362
3363         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
3364         * tree-ssanames (init_ssanames): Likewise.
3365
3366 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
3367
3368         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
3369         objc_declare_protocols, objc_start_protocol,
3370         objc_start_class_interface, objc_start_category_interface,
3371         objc_continue_interface, objc_finish_interface,
3372         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
3373         objc_start_class_implementation, objc_start_category_implementation,
3374         objc_continue_implementation, objc_finish_implementation,
3375         objc_add_method_declaration, objc_start_method_definition,
3376         objc_finish_method_definition, objc_build_keyword_decl,
3377         objc_build_method_signature, objc_build_encode_expr,
3378         objc_build_protocol_expr, objc_build_selector_expr,
3379         objc_build_message_expr, objc_build_string_object,
3380         objc_get_class_reference, objc_get_protocol_qualified_type,
3381         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
3382
3383 2004-09-03  James E Wilson  <wilson@specifixinc.com>
3384
3385         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
3386
3387         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
3388         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
3389         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
3390         (mips_recip1_<fmt>): Use frdiv1 type.
3391         (mips_recip2_<fmt>): Use frdiv2 type.
3392         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
3393         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
3394         and frsqrt1.
3395         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
3396
3397 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
3398
3399         * reload.c (find_reloads): Swap operand_loc pointers for
3400         find_dummy_reload if we have swapped two operands.
3401
3402 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
3403
3404         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
3405         to get the tablejump-insn before the jump-table label.
3406
3407 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
3408
3409         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
3410         objc_declare_protocols, objc_build_message_expr,
3411         objc_finish_message_expr, objc_build_selector_expr,
3412         objc_build_protocol_expr, objc_build_encode_expr,
3413         objc_build_string_object, objc_get_protocol_qualified_type,
3414         objc_get_class_reference, objc_get_class_ivars,
3415         objc_start_class_interface, objc_start_category_interface,
3416         objc_start_protocol, objc_continue_interface, objc_finish_interface,
3417         objc_start_class_implementation, objc_start_category_implementation,
3418         objc_continue_implementation, objc_finish_implementation,
3419         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
3420         objc_add_method_declaration, objc_start_method_definition,
3421         objc_finish_method_definition, objc_add_instance_variable,
3422         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
3423         objc_finish_try_stmt, objc_begin_catch_clause,
3424         objc_finish_catch_clause, objc_build_finally_clause,
3425         objc_build_synchronized, objc_static_init_needed_p,
3426         objc_generate_static_init_call): New prototypes.
3427
3428 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
3429
3430         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
3431         is only one reg.
3432         (ia64_function_value): Ditto.
3433
3434 2004-09-03  Jan Beulich  <jbeulich@novell.com>
3435
3436         * config.gcc: Resurrect NetWare as a target. Handle special case of
3437         Novell linker to be used (specified through --with-ld=) and threading
3438         model of either Posix (default) or NKS.
3439         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
3440         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
3441         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
3442         * config/i386/netware.c, config/i386/netware.h: New.
3443         * config/i386/nwld.c, config/i386/nwld.h: New.
3444         * config/i386/netware-crt0.c: New.
3445         * config/i386/netware-libgcc.c: New.
3446         * config/i386/netware-libgcc.def: New.
3447         * config/i386/netware-libgcc.exp: New.
3448         * config/i386/t-netware, config/i386/t-nwld: New.
3449         * gthr-nks.h: New.
3450         * doc/install.texi: Document NKS threading model.
3451
3452 2004-09-03  Jan Beulich  <jbeulich@novell.com>
3453
3454         PR c/7054
3455         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
3456         * tree.h (initial_max_fld_align): Declare
3457         * stor-layout.c (initial_max_fld_align): Define and initialize.
3458         (maximum_field_alignment): Initialize to the same value.
3459         * common.opt: Add -fpack-struct= variant of switch.
3460         * opts.c: Handle -fpack-struct= variant of switch.
3461         * c-pragma.c: Change #pragma pack() handling so that it becomes
3462         compatible to other compilers: accept individual 'push' argument,
3463         make final pop restore (command line) default, correct interaction
3464         of push/pop and sole specification of a new alignment (so that the
3465         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
3466         to #pragma pack(push, <n>).
3467         * doc/extend.texi: New node "Structure-Packing Pragmas" under
3468         "Pragmas", describing #pragma pack.
3469         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
3470         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
3471         Document new TARGET_DEFAULT_PACK_STRUCT.
3472
3473 2004-09-03  Devang Patel  <dpatel@apple.com>
3474
3475         * dwarf2out.c (gen_field_die). Equate decl number to die.
3476
3477 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
3478
3479         PR target/15832
3480         * global.c (modify_reg_pav): New function.
3481         (make_accurate_live_analysis): Call the new function.  Move pavin
3482         modification by earlyclobber set into the new function.
3483
3484 2004-09-03  Andreas Schwab  <schwab@suse.de>
3485
3486         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
3487         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
3488         extended.
3489
3490 2004-09-02  Jan Beulich  <jbeulich@novell.com>
3491
3492         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
3493         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
3494         not unwind code specific ones.
3495         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
3496         Remove unwind code specific dependencies.
3497         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
3498         Remove gbl-ctors.h.
3499         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
3500         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
3501         * tsystem.h: Declare memcpy and memset when inhibit_libc.
3502
3503 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
3504
3505         * combine.c (try_combine): Delay modifying of insns which cannot
3506         be easily undone.
3507
3508 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
3509
3510         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
3511         tree-loop-im.
3512         * gcc/tree-ssa-loop.c: Ditto
3513         * gcc/tree-ssa-loop-ivcanon.c: Ditto
3514         * gcc/doc/invoke.texi: Ditto.
3515
3516 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
3517
3518         * c-decl.c (store_parm_decls_newstyle): Make static.
3519         (store_parm_decls_from): New function.
3520         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
3521         (store_parm_decls_from): New prototype.
3522
3523 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
3524
3525         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
3526         HImode with STRICT_ALIGNMENT.
3527
3528 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
3529
3530         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
3531         (TARGET_OS_CPP_BUILTINS): Likewise.
3532         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
3533         TARGET_BPABI_CPP_BUILTINS.
3534
3535 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
3536
3537         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
3538
3539 2004-09-02  Eric Christopher  <echristo@redhat.com>
3540
3541         * builtins.c (expand_builtin_cabs): Delete.
3542         (expand_builtin): If unable to fold the values do a normal
3543         library call for builtin_cab*.
3544         (fold_builtin_cabs): Depend on optimize and optimize_size.
3545         * optabs.c (expand_cmplxdiv_straight): Delete.
3546         (expand_cmplxdiv_wide): Ditto.
3547         (expand_vector_binop): Ditto.
3548         (expand_vector_unop): Ditto.
3549         (expand_complex_abs): Delete.
3550         (expand_binop): Remove calls to above functions.
3551         Remove open coding of complex arithmetic.
3552         (expand_unop): Ditto.
3553         * optabs.h: Remove prototypes.
3554
3555 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
3556
3557         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
3558         * c-tree.h (store_parm_decls_newstyle): New prototype.
3559
3560 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
3561
3562         * config/rs6000/rs6000.c (expand_block_clear): Use vector
3563         instructions if available.
3564         (expand_block_move): Likewise.
3565
3566 2004-09-03  Jan Hubicka  <jh@suse.cz>
3567
3568         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
3569
3570 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
3571
3572         * config/arm/symbian.h (LIB_SPEC): Define to empty.
3573         * config/arm/t-symbian (SHLIB_LC): Likewise.
3574
3575 2004-09-02  Paul Brook  <paul@codesourcery.com>
3576
3577         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
3578
3579 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
3580
3581         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
3582         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
3583         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
3584         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
3585         (mips_issue_rate): Remove unreachable abort.
3586         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
3587         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
3588         (mips_block_move_straight, print_operand_address, mips_file_start)
3589         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
3590         (mips_output_conditional_branch, mips_expand_builtin_direct)
3591         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
3592         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
3593         with gcc_assert.
3594
3595 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
3596
3597         * config/mips/mips.md (*lea_high64): Change split condition to
3598         flow2_completed.  Add a peephole2 to generate a more parallel version.
3599
3600 2004-09-02  Jan Hubicka  <jh@suse.cz>
3601
3602         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
3603         GGC.
3604
3605         * ggc-page.c: include tree-flow.h.
3606         (extra_order_size_table): Add stmt_ann_d.
3607         (STAT_LABEL): Rename from ....
3608         (LABEL): ... this one.
3609         * Makefile.in (ggc-page.o): Add dependency.
3610
3611         * ggc-common.c (ggc_force_collect): New global variable.
3612         (loc_description): Add fields "freed", "collected"
3613         (ptr_hash): New static hash
3614         (ptr_hash_entry): New structure.
3615         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
3616         (ggc_record_overhead): Take ptr argument, record it
3617         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
3618         (cmp_statistics): Imrove sorting.
3619         (dump_ggc_loc_statistics): Output newly collected statistics
3620         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
3621         (ggc_free): Call ggc_free_overhead.
3622         (ggc_collect): Force collection when asked to be forced.
3623         (ggc_collect): Call ggc_prune_overhead_list.
3624         * ggc.h (ggc_force_collect): Declare
3625         (ggc_record_overhead): Update prototype.
3626         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
3627
3628 2004-09-02  James E Wilson  <wilson@specifixinc.com>
3629
3630         * common.opt (ftrapping-math): Default to on.
3631
3632 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
3633
3634         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
3635
3636 2004-09-02  Denis Chertykov  <denisc@overta.ru>
3637
3638         PR target/16884
3639         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
3640         match_scratch.
3641         (*movmemqi_insn): Likewise.
3642         (*movmemhi): Likewise.
3643         (clrmemhi): Likewise.
3644         (*clrmemqi): Likewise.
3645         (*clrmemhi): Likewise.
3646
3647 2004-09-02  Paul Brook  <paul@codesourcery.com>
3648
3649         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
3650         default_use_cxa_atexit=yes.
3651
3652 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
3653
3654         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
3655         (struct kernel_old_ucontext): Delete.
3656         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
3657         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
3658         when IN_LIGGCC2.
3659
3660 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
3661
3662         * toplev.c (process_options): Fix typo.
3663
3664 2004-09-01  Richard Henderson  <rth@redhat.com>
3665
3666         PR middle-end/17258
3667         * calls.c (initialize_argument_information): Tighten pass-through
3668         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
3669         Use build_fold_addr_expr.
3670         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
3671         that assumes ADDR_EXPR allocates stack space.
3672         * fold-const.c (build_fold_addr_expr_with_type): Look through
3673         WITH_SIZE_EXPR.
3674
3675 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
3676
3677         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
3678         * ggc.h (ggc_alloc_rtx): Delete.
3679
3680 2004-09-01  Roger Sayle  <roger@eyesopen.com>
3681
3682         * expmed.c (enum alg_code): Remove long unused enumeration values.
3683         (struct mult_cost): New structure to hold the "score" of a synthetic
3684         multiply sequence, including both a rtx_cost and a latency field.
3685         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
3686         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
3687         (struct algorithm): Change type of cost field to be mult_cost.
3688         (synth_mult): Change type of cost_limit argument to be a
3689         pointer to a mult_cost.  Update all cost comparisons to use the
3690         new mult_cost infrastructure.  For alg_add_factor and
3691         alg_sub_factor operations, latency is lower than the rtx_cost.
3692         (choose_mult_variant):  Update calls to synth_mult.  Perform
3693         cost comparisons using the new mult_cost infrastructure.
3694         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
3695         to optain the total rtx_cost of a synth_mult "algorithm".
3696
3697 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
3698
3699         * config/rs6000/power4.md: Increase store latency to 12.
3700         * config/rs6000/power5.md: Same.
3701
3702 2004-09-01  James E Wilson  <wilson@specifixinc.com>
3703
3704         PR target/14064
3705         * config/avr/avr.c (avr_unique_section): Delete prototype and
3706         definition.
3707         (TARGET_ASM_UNIQUE_SECTION): Delete.
3708
3709 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
3710
3711         * c-parse.in (primary): Call objc_build_message_expr(),
3712         objc_build_selector_expr(), objc_build_protocol_expr(),
3713         objc_build_encode_expr() and objc_build_string_object() instead of
3714         build_message_expr(), build_selector_expr(), build_protocol_expr(),
3715         build_encode_expr() and build_objc_string_object(), respectively.
3716         (component_decl_list2): Call objc_get_class_ivars() instead of
3717         get_class_ivars_from_name().
3718         (keyworddecl): Call objc_build_keyword_decl() instead of
3719         build_keyword_decl().
3720         (receiver): Call objc_get_class_reference() instead of
3721         get_class_reference().
3722         (reswords): Add blank line before @@ifobjc section, for clarity.
3723
3724 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
3725
3726         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
3727         to Altivec vetors.
3728
3729 2004-09-01  Wu Yongwei  <adah@sh163.net>
3730             Danny Smith  <dannysmith@users.sourceforge.net>
3731
3732         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
3733         not Windows 'DWORD'.
3734         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
3735         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
3736         (__gthr_win32_recursive_mutex_init_function): Add prototype for
3737         __GTHREAD_HIDE_WIN32API case..
3738         (__gthr_win32_recursive_mutex_lock): Likewise.
3739         (__gthr_win32_recursive_mutex_trylock): Likewise.
3740         (__gthr_win32_recursive_mutex_unlock): Likewise.
3741         (__gthread_recursive_mutex_init_function); Add definition for
3742         __GTHREAD_HIDE_WIN32API case.
3743         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
3744         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
3745         call to InterlockedDecrement.
3746
3747 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3748
3749         * tree-tailcall.c (find_tail_calls): Also fail is statement has
3750         volatile operands.
3751
3752         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
3753
3754         * doc/c-tree.texi: Document new operands for ARRAY_REF and
3755         COMPONENT_REF.
3756
3757 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3758
3759         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
3760         * common.opt (fspeculative-prefetching): New.
3761         * flags.h (flag_speculative_prefetching_set): Declare.
3762         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
3763         values.
3764         * opts.c (flag_sepculative_prefetching_set): New variable.
3765         (common_handle_option): Handle -fspeculative-prefetching.
3766         * passes.c (rest_of_compilation): Ditto.
3767         * profile.c (instrument_values, compute_value_histograms, branch_prob):
3768         Use vectors instead of arrays.
3769         * toplev.c (process_options): Handle -fspeculative-prefetching.
3770         * rtl-profile.c: Include ggc.h.
3771         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
3772         rtl_gen_one_value_profiler_no_edge_manipulation,
3773         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
3774         argument changed.
3775         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
3776         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
3777         argument changed.
3778         * value-prof.c: Include ggc.h.
3779         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
3780         macros.
3781         (insn_prefetch_values_to_profile, find_mem_reference_1,
3782         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
3783         speculative_prefetching_transform): New.
3784         (value_profile_transformations): Call speculative_prefetching_transform.
3785         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
3786         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
3787         tree_find_values_to_profile, find_values to profile): Use vectors
3788         instead of arrays.
3789         (free_profiled_values): Removed.
3790         * value-prof.h (struct histogram_value): Renamed to
3791         struct histogram_value_t.
3792         (histogram_value, histogram_values): New types.
3793         (find_values_to_profile): Declaration changed.
3794         (free_profiled_values): Removed.
3795         (struct profile_hooks): Type of argument of the hooks changed to
3796         histogram_value.
3797         * doc/invoke.texi (-fspeculative-prefetching): Document.
3798
3799 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3800
3801         PR rtl-optimization/16408
3802         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
3803
3804 2004-09-01  Richard Henderson  <rth@redhat.com>
3805
3806         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
3807         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
3808
3809 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
3810
3811         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
3812
3813 2004-09-01  Mike Stump  <mrs@apple.com>
3814
3815         * config/darwin.c (machopic_symbol_defined_p): In addition to
3816         being SYMBOL_REF_LOCAL_P, a symbol must also be
3817         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
3818         defined in this output file, or translation unit in the case
3819         of IMA not being used.
3820         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
3821         never need .indirect_symbol when indirecting.
3822
3823 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
3824
3825         * Makefile.in (bb-reorder.o): Add several dependencies.
3826
3827 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
3828
3829         * fold-const.c (operand_equal_p): Require equal sign also for
3830         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
3831
3832 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
3833
3834         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
3835         for use in configargs.h.  Put the cname in a separate variable.  Use
3836         that to set target_cpu_default2.
3837
3838 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
3839             Nick Clifton  <nickc@redhat.com>
3840
3841         * config/sh/sh.md ("length"): Increase branch length when
3842         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
3843         constant, 2 byte for aligning the constant.
3844
3845 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
3846
3847         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
3848         CPU.
3849         (arm7tdmi-s): New CPU name.
3850         * arm/arm.c (ARM_CORE): Update for new format.
3851         * arm/arm.h (ARM_CORE): Likewise.
3852         * arm/gentune.sh: Update for extra field.
3853         * config.gcc: Likewise.
3854         * arm/arm-tune.md: Regenerate.
3855         * doc/invoke.texi: Document the real processor names for ARM cpus.
3856
3857 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
3858
3859         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
3860         (floatdidf): New functions.
3861         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
3862         (floatdisf): New functions.
3863         * t-arm-elf: Use them.
3864
3865 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
3866
3867         * c-common.h (lookup_interface): Remove prototype.
3868         (is_class_name): Rename to objc_is_class_name.
3869         (lookup_objc_ivar): Rename to objc_lookup_ivar.
3870         (get_current_scope): Rename to objc_get_current_scope.
3871         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
3872         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
3873         (yylexname): Call objc_is_class_name() instead of is_class_name().
3874         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
3875         instead of lookup_objc_ivar().
3876         * stub-objc.c (lookup_interface): Remove stub.
3877         (is_class_name): Rename to objc_is_class_name.
3878         (lookup_objc_ivar): Rename to objc_lookup_ivar.
3879
3880 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
3881
3882         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
3883         * config/arm/lib1funcs.asm: Do not include supplemental .S files
3884         when compiling for Symbian.
3885         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
3886         (TARGET_OS_CPP_BUILTINS): Likewise.
3887         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
3888
3889 2004-08-31  Stan Shebs  <shebs@apple.com>
3890
3891         * toplev.c (process_options): Ensure debug_hooks is initialized.
3892
3893 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
3894
3895         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
3896         * target.h (cxx): Add export_class_data.
3897         * config/arm/arm.c (arm_cxx_export_class_data): New function.
3898         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
3899         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
3900
3901 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3902
3903         * config/sh/sh.c (output_branch): Check the insn length possibly
3904         in the delayed slot.
3905
3906 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3907
3908         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
3909         blank after ')'.
3910         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
3911
3912         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
3913         (c_sizeof_of_alignof_type): Likewise.
3914         * expr.c (array_ref_element_size): Likewise.
3915         (highest_pow2_factor_for_target): Likewise.
3916         * gimplify.c (canonicalize_addr_expr): Likewise.
3917         (gimplify_compound_lval): Likewise.
3918         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
3919         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
3920         * varasm.c (assemble_variable): Likewise.
3921         (output_constant_def_contents): Alignments are unsigned.
3922
3923 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3924             Jeff Law  <law@redhat.com>
3925
3926         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
3927         gets modified.
3928
3929 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
3930
3931         * hooks.c (hook_bool_void_true): New function.
3932         * hooks.h (hook_bool_void_true): Declare.
3933         * target-def.h (TARGET_CXX): Add
3934         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
3935         * target.h (struct cxx): Add key_method_may_be_inline.
3936         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
3937         function.
3938         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
3939         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
3940         __THUMB_INTERWORK.
3941
3942 2004-08-31  Denis Chertykov  <denisc@overta.ru>
3943
3944         PR target/15417
3945         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
3946         frame pointer register only in Pmode while reload in progress.
3947
3948 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
3949
3950         PR target/15334
3951         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
3952         because it breaks the 32-bit shift patterns that rely on a match_dup.
3953
3954 2004-08-31  Matt Austern  <austern@apple.com>
3955
3956         * config/darwin.c (darwin_make_decl_one_only): Allocate section
3957         names once per compilation, instead of once per symbol.
3958
3959 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
3960
3961         * Makefile.in (build_subdir): New substitution.
3962         (fixinc.sh): Simplify heavily since fixincludes is already built.
3963         (stmp-fixinc): Depend on specs.ready.
3964         (install-mkheaders): Use new location of fixincludes.
3965         (clean): Do not descend into fixinc.
3966         (FORBUILD): Replace with ../$(build_subdir).
3967         * configure.ac (build_subdir): Substitute.
3968         (FORBUILD): Do not set.
3969         (all_outputs): Remove fixinc/Makefile.
3970         (default commands): Do not create links in fixinc.
3971         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
3972         the fixincludes configuration steps and substituting
3973         @FIXINCL@ in fixinc.in.
3974         * fixinc.in: New, from fixinc/fixincl.sh.
3975
3976         * fixinc/*: Removed.
3977
3978 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
3979
3980         * attribs.c (strip_attrs): Remove.
3981         (split_specs_attrs): Move ...
3982         * c-decl.c: ... to here.
3983         * tree.h (split_specs_attrs, strip_attrs): Remove.
3984         * c-tree.h (split_specs_attrs): Declare.
3985
3986 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
3987
3988         * read-rtl.c: Disable RTL checking.
3989         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
3990
3991 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
3992
3993         * config/mips/mips.md (fcond): New code macro and attribute.
3994         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
3995         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
3996         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
3997
3998 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
3999
4000         Revert:
4001         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
4002         PR rtl-optimization/16590
4003         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
4004
4005 2004-08-30  Andrew Pinski  <apinski@apple.com>
4006
4007         * hard-reg-set.h:
4008         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
4009         * ChangeLog: Fix previous ChangeLog entry.
4010
4011         PR rtl-opt/13987
4012         * config.host (use_long_long_for_widest_fast_int): New, default is
4013         off.
4014         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
4015         * configure.ac: If use_long_long_for_widest_fast_int, then
4016         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
4017         * configure: Regenerate.
4018         * config.in: Regenerate.
4019         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
4020         New: widest integer type supported efficiently in hardware for the
4021         host.
4022         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
4023         HOST_BITS_PER_WIDEST_FAST_INT.
4024         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
4025         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
4026         HOST_WIDEST_FAST_INT
4027         instead of HOST_WIDE_INT.
4028         (HARD_REG_SET_LONGS): Likewise.
4029         (UHOST_BITS_PER_WIDE_INT): Likewise.
4030         Change the checks for the fast cases to be based on
4031         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
4032
4033 2004-08-30  Steven Bosscher  <stevenb@suse.de>
4034
4035         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
4036         not the pointers.
4037
4038 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
4039
4040         PR 12738
4041         PR 17205
4042         Radar 3460526
4043         Radar 3775729
4044         * c-decl.c (grokdeclarator): Produce error for 'static' on local
4045         function declaration.
4046
4047 2004-08-30  Richard Henderson  <rth@redhat.com>
4048
4049         * expr.c (array_ref_element_size): Force aligned_size back to
4050         sizetype.
4051         (component_ref_field_offset): Similarly for aligned_offset.
4052         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
4053         low-bound, element-size, field-offset fields rather than
4054         computed values.
4055
4056 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
4057
4058         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
4059         redundant code.
4060
4061 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
4062
4063         * c-tree.h (struct language_function): Add arg_info element.
4064         * c-decl.c (current_function_arg_info): New.
4065         (grokdeclarator, store_parm_decls): Use it instead of
4066         DECL_ARGUMENTS.
4067         (c_push_function_context, c_pop_function_context): Save and
4068         restore it.
4069
4070 2004-08-30  Richard Henderson  <rth@redhat.com>
4071
4072         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
4073         COMPONENT_REF to pointer arithmetic.
4074         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
4075         constant "c" as a valid constant initializer.  Allow narrowing of
4076         differences against the same base object, for any base object.
4077
4078 2004-08-30  Richard Henderson  <rth@redhat.com>
4079
4080         * expr.c (expand_expr_addr_expr): New.
4081         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
4082
4083 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
4084
4085         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
4086         (mips_fp_condition): New enum.
4087         (mips_fp_conditions): New array.
4088         (print_fcc_operand): Delete.
4089         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
4090         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
4091         (builtin_description): Add "cond" field.
4092         (DIRECT_BUILTIN): Initialize it.
4093         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
4094         into INSN and CODE.  Initialize the "cond" field.
4095         (CMP_BUILTINS): Update accordingly.
4096         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
4097         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
4098         mips_fp_condition as argument.  Make it the final operand of the
4099         comparison instruction.
4100         (mips_expand_builtin): Update accordingly.
4101         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
4102         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
4103         the gaps.
4104         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
4105         Don't use the 'Q' operand prefix; just print the operand normally.
4106         (mips_cabs_*, mips_c_*): Delete, replacing with...
4107         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
4108         patterns.  Split the 4s versions into 2 ps patterns after reload.
4109
4110 2004-08-30  Richard Henderson  <rth@redhat.com>
4111
4112         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
4113         assuming an ADDR_EXPR is non-null.
4114
4115 2004-08-30  Jason Merrill  <jason@redhat.com>
4116
4117         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
4118
4119 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
4120
4121         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
4122         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
4123         gcc_assert and gcc_unreachable instead of abort.
4124         * alloc-pool.c (abort, fancy_abort): Remove.
4125         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
4126         gcc_assert or gcc_unreachable.
4127         * attribs.c (init_attributes, decl_attributes): Likewise.
4128         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
4129         mark_bb_for_unlikely_executed_section,
4130         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
4131         fix_crossing_unconditional_branches):  Likewise.
4132         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
4133         bitmap_operation):  Likewise.
4134         * bt-load.c (insn_sets_btr_p, augment_live_range,
4135         move_btr_def):  Likewise.
4136         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
4137         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
4138         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
4139         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
4140         expand_builtin_memcmp, expand_builtin_args_info,
4141         std_gimplify_va_arg_expr, expand_builtin_unop,
4142         expand_builtin_fputs, expand_builtin_profile_func,
4143         expand_builtin_fork_or_exec, fold_builtin_bitop,
4144         fold_builtin_classify, fold_builtin_fputs): Likewise.
4145
4146 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
4147
4148         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
4149         * gcov.c (abort): Remove undef.
4150
4151         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
4152         (struct tree_binfo): Remove primary field.
4153
4154 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
4155
4156         * fixinc/Makefile.in (machname.h): Remove.
4157         (fixincl.x): Do not pass $@ to genfixes.
4158         * fixinc/genfixes: Remove code to produce machname.h.
4159         * fixinc/fixincl.sh: Move it here instead.
4160         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
4161         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
4162         return a bool indicating whether pz_mn_name_pat is NULL.
4163         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
4164         Declare extern C variables for the ENV_TABLE.
4165         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
4166         instead use the result of mn_get_regexps.
4167         * fixinc/fixtests.c: Likewise.
4168
4169 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
4170
4171         * configure.ac: Do not run fixincludes after stage1 during
4172         toplevel bootstrap.
4173         * configure: Regenerate.
4174
4175 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
4176
4177         * sched-deps.c (get_condition): Partially revert previous, by never
4178         trying to extract the condition from a condjump.
4179
4180 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
4181
4182         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
4183         (handle_visibility_attribute, c_determine_visibility): Likewise.
4184         * c-common.h (my_friendly_assert): Remove.
4185
4186 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
4187
4188         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
4189         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
4190         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
4191         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
4192         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
4193
4194 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
4195
4196         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
4197         in COMPONENT_REF nodes.
4198
4199 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4200
4201         PR c++/15378
4202         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
4203         global_dc->warning_as_error_requested.
4204         * diagnostic.c (diagnostic_initialize): Tidy.
4205         * diagnostic.h (diagnostic_context::x_data): Remove
4206         (diagnostic_context::issue_warnings_are_errors_message): Rename
4207         from warnings_are_errors_message.
4208         (diagnostic_context::warning_as_error_requested): New.
4209
4210 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
4211
4212         * sched-deps.c (get_condition): Fix breakage in previous patch.
4213
4214 2004-08-30  Paul Brook  <paul@codesourcery.com>
4215
4216         * doc/install.texi: Fix broken mpfr link.
4217
4218 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
4219
4220         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
4221         other FreeBSD platforms.
4222
4223 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
4224
4225         * arm.h (REVERSE_CONDITION): Define.
4226         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
4227
4228 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
4229
4230         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
4231         just the codes, call reversed_comparison_code ().
4232         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
4233         (not_reg_cond): Use reversed_comparison_code.
4234         (and_reg_cond): Likewise.
4235         * ifcvt.c (cond_exec_process_if_block): Likewise.
4236         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
4237
4238 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
4239
4240         * sched-deps.c (get_condition): Rewrite using jump support functions.
4241         Use reversed_comparison_code.
4242         (conditions_mutex_p): Use reversed_comparison_code.
4243
4244 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4245
4246         * config/mips/mips.c (override_options): Disable hot/cold partitioning
4247         for MIPS16.
4248
4249 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4250
4251         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
4252         (mips_function_type): Move to mips.c.
4253         * config/mips/mips.c (mips_builtin_type): New enum.
4254         (builtin_description): Replace code and ftype with builtin_type
4255         and function_type.
4256         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
4257         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
4258         (CODE_FOR_mips_abs_ps): Define.
4259         (mips_bdesc): Use new macros.
4260         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
4261         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
4262         (mips_expand_builtin_direct): New function.
4263         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
4264         builtin.  Replace boolean parameter with builtin_type.
4265         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
4266         (mips_expand_4s_compare_builtin): Delete, replacing with...
4267         (mips_expand_builtin_compare): ...this new function.
4268
4269 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
4270
4271         PR rtl-optimization/16590
4272         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
4273
4274 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
4275
4276         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
4277         * tree-ssa-propagate.c: Fix documentation.
4278
4279 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4280
4281         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
4282         (mov[sd]fcc): Likewise.
4283
4284 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4285
4286         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
4287
4288 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4289
4290         * config/mips/mips.md (divide_condition): New mode attribute.
4291         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
4292         (sqrt[sd]f3): Redefine using SCALARF.
4293         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
4294         patterns.
4295
4296 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4297
4298         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
4299         (loadx, storex, fmt, UNITMODE): New mode attributes.
4300         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
4301         (mul[sd]f3): Redefine using :SCALARF.
4302         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
4303         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
4304         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
4305         Check TARGET_FUSED_MADD for V2SF too.
4306         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
4307         were already named.
4308         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
4309         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
4310
4311 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4312
4313         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
4314         V2SF_type_node if it will be needed.
4315
4316 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4317
4318         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
4319         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
4320         (mips_prepare_builtin_target): New function.
4321         (mips_expand_builtin): Use them.  Update calls to subroutines.
4322         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
4323         cmp_choice with a boolean argument to select between movt and movf.
4324         Take the comparison's icode as an argument, not the function's fcode.
4325         (mips_expand_compare_builtin): New function.  Rename existing function
4326         to mips_expand_scalar_compare_builtin.
4327         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
4328         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
4329         comparison's icode as an argument, not the builtin's fcode.
4330
4331 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4332
4333         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
4334         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
4335         registers are false and -1 if all registers are true.
4336         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
4337         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
4338         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
4339         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
4340         (bc1any2t, bc1any2f): Likewise CCV2.
4341         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
4342
4343 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4344
4345         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
4346         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
4347         UNSPEC rather than an IF_THEN_ELSE.
4348         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
4349         mips_cond_move_tf_ps by name.
4350
4351 2004-08-29  Chao-ying Fu  <fu@mips.com>
4352             James E Wilson  <wilson@specifixinc.com>
4353
4354         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
4355         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
4356         * config/mips/mips-ps-3d.md: New file.
4357         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
4358         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4359         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
4360         (mips_output_move): Emit "mov.ps" for V2SFmode.
4361         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
4362         MODE_VECTOR_FLOAT.
4363         (override_options): Check if TARGET_MIPS3D and there was an explicit
4364         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
4365         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
4366         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
4367         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
4368         and allow CCV2 and CCV4 to occupy two and four CC registers.
4369         (print_fcc_operand): New function.
4370         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
4371         %Z to call print_fcc_operand.
4372         (mips_function_value): Handle MODE_VECTOR_FLOAT.
4373         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
4374         (mips_vector_mode_supported_p): New function.
4375         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
4376         (builtin_description): New struct.
4377         (mips_bdesc): New array of struct builtin_description.
4378         (mips_expand_builtin, mips_init_builtins,
4379         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
4380         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
4381         functions.
4382         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
4383         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
4384         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
4385         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
4386         "-mips3d", and "-mno-mips3d".
4387         (ASM_SPEC): Map -mips3d to -mips3d in gas.
4388         (EXTRA_CONSTRAINT_Y): New macro.
4389         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
4390         multi-letter constraint 'Y'.
4391         (CONSTRAINT_LEN): New macro.
4392         (enum mips_builtins): New for MIPS builtin functions.
4393         (enum mips_function_type): New for the types of MIPS builtin functions.
4394         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
4395         * config/mips/mips.md: New constants for paired single and MIPS-3D
4396         instructions.  Include the new mips-ps-3d.md file.
4397         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
4398         movv2sf_hardfloat_64bit): New named patterns.
4399         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
4400         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
4401         sdxc1_v2sf_di): New unnamed patterns.
4402         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
4403         const_vector support.
4404         (const_0_or_1_operand): New predicate.
4405         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
4406
4407 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
4408
4409         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
4410         (tree-ssa-propagate.o): New rule.
4411         (GTFILES): Add tree-ssa-propagate.c.
4412         * tree-flow.h (struct stmt_ann_d): Remove field
4413         in_ccp_worklist.
4414         * tree-ssa-propagate.c: New file.
4415         * tree-ssa-propagate.h: New file.
4416         * tree-ssa-ccp.c: Re-write to use the routines from
4417         tree-ssa-propagate.c.
4418
4419 2004-08-28  Andrew Pinski  <apinski@apple.com>
4420
4421         * tree-ssa-loop.c: Remove extra include of basic-block.h.
4422
4423 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
4424
4425         * c-common.h: Update comments about ObjC/ObjC++ entry points.
4426         (objc_is_reserved_word): New prototype.
4427         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
4428         separate section; these are call-backs.
4429         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
4430         ObjC/ObjC++ "@" keywords.
4431         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
4432         prototypes; they already live in c-common.h.
4433         * stub-objc.c: Update copyright notice.
4434         (objc_is_reserved_word): New stub.
4435
4436 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
4437
4438         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
4439         even when not checking.
4440
4441 2004-08-27  Jason Merrill  <jason@redhat.com>
4442
4443         PR c++/13684
4444         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
4445         (gimple_push_cleanup): Add eh_only parm.
4446         (gimplify_target_expr): Pass it.
4447         * c.opt (-fno-threadsafe-statics): New option.
4448         * c-opts.c (c_common_handle_option): Handle it.
4449         * c-common.h (flag_threadsafe_statics): Declare it.
4450         * c-common.c (flag_threadsafe_statics): Record it.
4451         * doc/invoke.texi: Document it.
4452         * tsystem.h (_GNU_SOURCE): Define.
4453         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
4454         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
4455         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
4456         (__gthread_recursive_mutex_init_function): New fn.
4457         (__gthread_recursive_mutex_lock): New fn.
4458         (__gthread_recursive_mutex_trylock): New fn.
4459         (__gthread_recursive_mutex_unlock): New fn.
4460         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
4461         * gthr-win32.h, gthr-vxworks.h: Likewise.
4462         * gthr.h: Document.
4463
4464 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
4465
4466         * config/rs6000/rs6000.c (rs6000_override_options): Increase
4467         maximum skip to 15.  Set function alignment, jump alignment, and
4468         loop alignment to 16 for processors that form dispatch groups.
4469         (rs6000_rtx_costs): outer_code is used.
4470
4471 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
4472
4473         * stor-layout.c (sizetype_set): Remove.
4474         (set_sizetype): Don't test or set it.
4475
4476         * tree.h (size_int_type): Remove.
4477         * fold-const.c: Do not #include gt-fold-const.h.
4478         (size_htab_hash, size_htab_eq): Remove.
4479         (size_int_kind): Use build_int_cst.
4480         (new_const, size_htab): Remove.
4481         (size_int_type): Remove.
4482         (round_up): Use build_int_cst.
4483         (round_down): Likewise. Remove spurious constant build.
4484
4485 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
4486
4487         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
4488         Add is_release variable, use it for --enable-werror and
4489         --enable-checking defaults.
4490         * system.h (gcc_assert, gcc_unreachable): New.
4491         * doc/install.texi (--enable-checking): Update.
4492         * configure, config.in: Rebuilt.
4493
4494 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
4495
4496         * rtl.h (read_rtx): Change prototype.
4497         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
4498         line number.  Return true on success.
4499         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
4500         callers accordingly.
4501
4502 2004-08-26  Richard Henderson  <rth@redhat.com>
4503
4504         * c-typeck.c (build_offsetof): Remove.
4505         * c-tree.h (build_offsetof): Remove.
4506         * c-common.c (fold_offsetof_1, fold_offsetof): New.
4507         * c-common.h (fold_offsetof): Declare.
4508         * c-parse.in (offsetof_base): New.
4509         (offsetof_member_designator): Use it.  Build references, not just
4510         a tree list.
4511         (primary): Use fold_offsetof, not build_offsetof.
4512
4513 2004-08-26  Richard Henderson  <rth@redhat.com>
4514
4515         * tree.c (staticp): Return the static object.
4516         * tree.h (staticp): Update decl.
4517         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
4518         * langhooks.c (lhd_staticp): Return NULL_TREE.
4519         * langhooks-def.h (lhd_staticp): Update decl.
4520         * c-common.c (c_staticp): Return the static object.
4521         * c-common.h (c_staticp): Update decl.
4522
4523 2004-08-26  Richard Henderson  <rth@redhat.com>
4524
4525         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
4526         modes.
4527
4528 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
4529
4530         PR c/13801
4531         * c-decl.c (struct c_binding): Add type and inner_comp fields.
4532         (bind): Set type and inner_comp fields.
4533         (pop_scope): Restore type of decl to the correct type from an
4534         outer scope.  Give error when popping file scope for incomplete
4535         arrays completed incompatibly with default initialization in an
4536         inner scope.
4537         (diagnose_mismatched_decls): Handle externs with initializers at
4538         block scope.
4539         (pushdecl): Set type of external declaration at block scope based
4540         only on the visible declarations.  Save type when changing the
4541         type of a declaration.  Merge an external declaration at block
4542         scope with a visible static declaration at file scope.
4543         (implicitly_declare): Give recycled old declaration the new type
4544         except for incompatible declarations of built-in functions, saving
4545         the old type.
4546
4547 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
4548
4549         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
4550
4551 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
4552
4553         * tree-alias-common.c (gate_pta): New function.
4554         (pass_build_pta): Use it.
4555         (pass_del_pta): Use it.
4556         (delete_alias_vars): Don't check flag_tree_points_to.
4557
4558 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
4559
4560         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
4561         TFmode as additional register mode cloberred by call.
4562
4563 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
4564
4565         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
4566         parallel pattern for library call returning DImode in
4567         mixed mode.
4568
4569 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
4570
4571         * config/rs6000/rs6000.c (function_arg): Generate parallel
4572         pattern for more split args.
4573
4574 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
4575
4576         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
4577         either gen_movdi_di_update or gen_movdi_si_update depending on
4578         target mode.
4579         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
4580         to generate two versions.
4581
4582 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
4583
4584         * Makefile.in (lambda-code.o): New.
4585         (lambda-trans.o): Ditto.
4586         (TREE_DATA_REF_H): Ditto.
4587         (LAMBDA_H): Ditto.
4588         (lambda-mat.o): Use LAMBDA_H.
4589         (tree-data-ref.o): Ditto.
4590         * lambda-code.c: New file.  Lambda code generation algorithm.
4591         * lambda-trans.c: Ditto. Lambda transformation matrix support.
4592         * lambda.h: Add lambda loop structures.
4593         Add lambda loopnest structures.
4594         Add lambda body vector structure.
4595         Add lambda linear expression structures.
4596         Add prototypes for functions in new files.
4597         * lambda-mat.c: Include tree.h
4598
4599 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
4600             Sebastian Pop  <pop@cri.ensmp.fr>
4601
4602         * tree-data-ref.h: Include lambda.h
4603         (free_dependence_relation): Declared here.
4604         (free_dependence_relations): Ditto.
4605         (free_data_refs): Ditto.
4606         * tree-data-ref.c (free_dependence_relation): New function.
4607         (free_dependence_relations): Ditto.
4608         (free_data_refs): Ditot.
4609         (analyze_all_data_dependences): Free datarefs and dependence_relations.
4610         (build_classic_dist_vector): Store in the dependence_relations the
4611         information. Each arc in the dependence_relations graph is labelled
4612         with the distance and direction vectors.
4613         (build_classic_dir_vector): Ditto.
4614         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
4615         Now computes again the whole dependence graph including read-read
4616         relations.
4617         (compute_data_dependences_for_loop): Now dependence_relations contains
4618         all the data, and thus it doesn't need to initialize the classic_dir
4619         and classic_dist vectors.
4620         (analyze_all_data_dependences): Adjusted for using the new interface of
4621         compute_data_dependences_for_loop.  Remove the statistics dump.
4622
4623 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
4624
4625         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
4626         (xtensa_expand_block_move): Update comment.
4627         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
4628
4629 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
4630
4631         PR target/13506
4632         * toplev.c (crash_signal): If we crashed while emitting
4633         a user asm, then die more gracefully.
4634
4635 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
4636
4637         PR target/17119.
4638         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
4639         checking for a valid constant, regardless of sign.
4640
4641 2004-08-25  Richard Henderson  <rth@redhat.com>
4642
4643         PR target/16974
4644         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
4645         if the constant satisfies add_operand.
4646
4647 2004-08-25  Richard Henderson  <rth@redhat.com>
4648
4649         PR debug/10695
4650         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
4651         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
4652         unwind info for >16-bit frames.
4653
4654 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
4655
4656         PR target/17171
4657         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
4658
4659 2004-08-25  Richard Henderson  <rth@redhat.com>
4660
4661         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
4662         (TARGET_CANNOT_FORCE_CONST_MEM): New.
4663
4664 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
4665
4666         * doc/tree-ssa.texi: Document new operand iterator.
4667
4668 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
4669
4670         PR target/16480
4671         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
4672         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
4673         as PLUS base regs.
4674
4675 2005-08-28  Paul Brook  <paul@codesourcery.com>
4676
4677         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
4678         -mfpu=vfp -march=armv5t
4679         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
4680
4681 2004-08-25  Richard Henderson  <rth@redhat.com>
4682
4683         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
4684         * target.h (struct gcc_target): Add scalar_mode_supported_p.
4685         * targhooks.c (default_scalar_mode_supported_p): New.
4686         * targhooks.h (default_scalar_mode_supported_p): Declare.
4687         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
4688
4689         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
4690         before attempting to create types.  Tidy.
4691         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
4692
4693         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
4694         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
4695
4696 2004-08-25  Richard Henderson  <rth@redhat.com>
4697
4698         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
4699         set REAL_MODE_FORMAT for TFmode.
4700
4701 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
4702
4703         * c-decl.c (grokparm): New function.
4704         * c-tree.h (grokparm): New prototype.
4705
4706 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
4707
4708         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
4709         iterator controlling structure.
4710         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
4711         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
4712         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
4713         iterator flags.
4714         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
4715         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
4716         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
4717         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
4718         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
4719         Empty operand pointers.
4720         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
4721         (op_iter_next_use): New.  Return next use_operand_p.
4722         (op_iter_next_def): New.  Return next def_operand_p.
4723         (op_iter_next_tree): New.  Return next operands as a tree.
4724         (op_iter_init): New.  Initialize an iterator structure.
4725         (op_iter_init_use): New.  Initialize structure and get the first use.
4726         (op_iter_init_def): New.  Initialize structure and get the first def.
4727         (op_iter_init_tree): New.  Initialize structure and get the first tree.
4728         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
4729         (op_iter_init_maydef): New.  Initialize structure and get the first
4730         V_MAY_DEF operands.
4731         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
4732         * tree-dfa.c (compute_immediate_uses_for_stmt,
4733         redirect_immediate_uses): Use new operand iterator.
4734         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
4735         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
4736         operands instead of using *_disappeared_p routines.
4737         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
4738         ssa_rewrite_stmt): Use new operand iterator.
4739         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
4740         rewrite_trees): Use new operand iterator.
4741         * tree-pretty-print.c (dump_vops): Use new operand iterator.
4742         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
4743         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
4744         dump_points_to_info): Use new operand iterator.
4745         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
4746         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
4747         operand iterator.
4748         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
4749         propagate_necessity): Use new operand iterator.
4750         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
4751         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
4752         a parameter instead of a stmt_ann_t.
4753         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
4754         build_tree_conflict_graph): Use new operand iterator.
4755         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
4756         rewrite_mem_refs): Use new operand iterator.
4757         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
4758         check_loop_closed_ssa_use): Use new operand iterator.
4759         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
4760         * tree-ssanames.c (release_defs): Use new operand iterator.
4761         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
4762
4763 2004-08-25  Adam Nemet  <anemet@lnxw.com>
4764
4765         * tlink.c (initial_cwd): New variable.
4766         (tlink_init): Initialize it.
4767         (recompile_files): Use tlink_execute() instead of system().  Don't
4768         duplicate verbose output of collect_execute.  Restore initial_cwd.
4769         Update comment before the function.
4770
4771 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
4772
4773         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
4774         accept) a cast from one Objective-C pointer type to another.
4775
4776 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
4777
4778         * doc/install.texi: Document that libstdc++-v3 requires
4779         now automake 1.9.1.
4780
4781 2004-08-25  Caroline Tice  <ctice@apple.com>
4782
4783         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
4784         to comments at start of function.
4785         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
4786         comment.
4787         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
4788         merge_blocks_move_predecessor_nojumps,
4789         merge_blocks_move_successor_nojumps, merge_blocks_move,
4790         try_crossjump_to_edge, try_crossjump_bb): Likewise.
4791         * cfglayout.c (fixup_reorder_chain): Likewise.
4792         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
4793         cfg_layout_can_merge_blocks_p):  Likewise.
4794         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
4795         * passes.c (rest_of_compilation): Update comments for calling
4796         optimization that partitions hot/cold basic blocks.
4797         * doc/invoke.texi:  Update documentation of
4798         freorder-blocks-and-partition flag.
4799
4800 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
4801
4802         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
4803         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
4804
4805 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
4806
4807         * config/mips/mips.md (any_shift): New code macro.
4808         (optab, insn): New code attributes.
4809         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
4810         Use the standard rather than internal patterns for the MIPS16
4811         double-shift optimization.
4812         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
4813         Redefine using :GPR and any_shift.
4814         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
4815         to cover all three shifts.
4816         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
4817         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
4818         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
4819
4820 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
4821
4822         * gimplify.c (lookup_tmp_var): Separate temporaries when not
4823         optimizing.
4824
4825 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4826
4827         PR libstdc++/17005 (fix for HP-UX 11.11)
4828         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
4829         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
4830         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
4831         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
4832         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
4833         (LINK_SPEC): Handle march=1.0 option.
4834         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
4835         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
4836         (SUBTARGET_OPTIONS): New define.
4837         (LINK_SPEC): Handle march=1.0 option.
4838         (STARTFILE_SPEC): New define.
4839         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
4840         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
4841         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
4842         (SUBTARGET_OPTIONS): New define.
4843         (LINK_SPEC): Handle march=1.0 option.
4844         (STARTFILE_SPEC): New define.
4845         * config/pa/pa.c (override_options): Add code to process -munix= option.
4846         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
4847         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
4848         defines.
4849         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
4850         (SUBTARGET_OPTIONS): Provide default define.
4851         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
4852         STANDARD_STARTFILE_PREFIX_2): New defines.
4853         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
4854         (ENDFILE_SPEC): Use %O.
4855         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
4856         Mention issue caused by changing namespace and runtime to UNIX 95/98.
4857         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
4858         Document -munix=std option.
4859
4860 2004-08-25  Steven Bosscher  <stevenb@suse.de>
4861
4862         * cse.c (cse_around_loop, cse_check_loop_start,
4863         cse_set_around_loop): Remove.
4864         (cse_basic_block): Remove the around_loop argument.
4865         (cse_end_of_basic_block): Remove the after_loop argument.
4866         (cse_main): Likewise.
4867         * rtl.h (cse_main): Update prototype.
4868         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
4869         rest_of_handle_gcse): Update cse_main calls.
4870
4871 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
4872
4873         * tree.h  (build_int_cst): New, sign extended constant.
4874         (build_int_cstu): New, zero extended constant.
4875         (build_int_cst_wide): Renamed from build_int_cst.
4876         * tree.c (build_int_cst, build_int_cstu): New.
4877         (build_int_cst_wide): Renamed from build_int_cst.
4878         (make_vector_type, build_common_tree_nodes,
4879         build_common_tree_nodes_2): Adjust build_int_cst calls.
4880         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
4881         expand_builtin_strpbrk, expand_builtin_fputs,
4882         build_string_literal, expand_builtin_printf,
4883         expand_builtin_sprintf, fold_builtin_classify_type,
4884         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
4885         fold_builtin_toascii, fold_builtin_isdigit,
4886         simplify_builtin_strstr, simplify_builtin_strpbrk,
4887         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
4888         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
4889         DEF_ATTR_INT): Likewise.
4890         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
4891         Likewise.
4892         * c-lex.c (interpret_integer, lex_charconst): Likewise.
4893         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
4894         * c-pretty-print.c (pp_c_integer_constant): Likewise.
4895         * c-typeck.c (really_start_incremental_init, push_init_level,
4896         set_nonincremental_init_from_string): Likewise.
4897         * calls.c (load_register_parameters): Likewise.
4898         convert.c (convert_to_pointer): Likewise.
4899         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
4900         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
4901         build_gcov_info): Likewise.
4902         * except.c (init_eh, assign_filter_values): Likewise.
4903         * expmed.c (store_fixed_bit_field, extract_bit_field,
4904         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
4905         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
4906         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
4907         * expr.c (convert_move, emit_group_load, emit_group_store,
4908         expand_assignment, store_constructor, store_field,
4909         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
4910         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
4911         invert_truthvalue, optimize_bit_field_compare,
4912         decode_field_reference, all_ones_mask_p, constant_boolean_node,
4913         fold_div_compare, fold, fold_read_from_constant_string,
4914         fold_negate_const, fold_abs_const, fold_not_const, round_up,
4915         round_down): Likewise.
4916         * function.c (assign_parm_setup_block): Likewise.
4917         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
4918         Likewise.
4919         * stor-layout.c (layout_type, initialize_sizetypes,
4920         set_min_and_max_values_for_integral_type): Likewise.
4921         * tree-chrec.c (chrec_fold_multiply_poly_poly,
4922         reset_evolution_in_loop): Likewise.
4923         * tree-chrec.h (build_polynomial_chrec): Likewise.
4924         * tree-complex.c (build_replicated_const): Likewise.
4925         * tree-eh.c (honor_protect_cleanup_actions,
4926         lower_try_finally_onedest, lower_try_finally_copy,
4927         lower_try_finally_switch): Likewise.
4928         * tree-mudflap.c (mf_build_string, mx_register_decls,
4929         mudflap_register_call, mudflap_enqueue_constant): Likewise.
4930         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
4931         * tree-pretty-print.c (dump_generic_node): Likewise.
4932         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
4933         Likewise.
4934         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
4935         * tree-ssa-loop-niter.c (number_of_iterations_cond,
4936         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
4937         Likewise.
4938         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
4939         canonicalize_loop_induction_variables): Likewise.
4940         * tree-vectorizer.c (vect_create_index_for_array_ref,
4941         vect_transform_loop_bound, vect_compute_data_ref_alignment):
4942         Likewise.
4943
4944         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
4945         alpha_gimplify_va_arg_1): Likewise.
4946         * config/arm/arm.c (arm_get_cookie_size): Likewise.
4947         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
4948         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
4949         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4950         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
4951         mips_gimplify_va_arg_expr): Likewise.
4952         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4953         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
4954         add_compiler_branch_island): Likewise.
4955         * config/s390/s390.c (s390_va_start): Likewise.
4956         * config/sh/sh.c (sh_va_start): Likewise.
4957         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4958         Likewise.
4959         * config/xtensa/xtensa.c (xtensa_va_start,
4960         xtensa_gimplify_va_arg_expr): Likewise.
4961
4962         * objc/objc-act.c (build_objc_string_object,
4963         build_objc_symtab_template, init_def_list, init_objc_symtab,
4964         init_module_descriptor, generate_static_references,
4965         build_selector_translation_table, get_proto_encoding,
4966         build_typed_selector_reference, build_selector_reference,
4967         build_next_objc_exception_stuff,
4968         build_method_prototype_list_template, generate_descriptor_table,
4969         generate_protocols, build_protocol_initializer,
4970         build_ivar_list_template, build_method_list_template,
4971         build_ivar_list_initializer, generate_ivars_list,
4972         generate_dispatch_table, generate_protocol_list,
4973         build_category_initializer, build_shared_structure_initializer,
4974         generate_shared_structures, handle_impent,
4975         generate_objc_image_info): Likewise.
4976
4977 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
4978
4979         * cfglayout.c (duplicate_insn_chain): Remove references to
4980         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
4981         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
4982         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
4983         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
4984         and NOTE_INSN_LOOP_CONT.
4985         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
4986         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
4987         and NOTE_INSN_LOOP_CONT.
4988         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
4989         check_dbra_loop, loop_dump_aux): Remove references to removed notes
4990         and fields.
4991         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
4992         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
4993         references to removed notes and fields.
4994         (subtract_reg_term, ujump_to_loop_cont): Remove.
4995
4996 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
4997
4998         * doc/install.texi: Document that libcpp does not require
4999         Automake any longer.  Document that Automake 1.9.1 should
5000         work everywhere.
5001
5002 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
5003
5004         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
5005         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
5006         DWARF_DEBUGGING_INFO from choice-of-definition chain;
5007         restructure using C89 features (#elif, #error).
5008         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
5009         * config/sh/sh.h: Remove references to DWARF_DEBUG.
5010         * doc/invoke.texi: Remove references to DWARF version 1;
5011         clarify why -gdwarf-2<n> doesn't work.
5012
5013 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
5014
5015         * basic-block.h (BB_SET_PARTITION): Clear old value first.
5016         * cfg.c (clear_bb_flags): Don't clear partition setting.
5017         * ifcvt.c (find_if_case_1): Remove ??? comment.
5018
5019 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
5020
5021         PR target/17052
5022         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
5023         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
5024         current_function_stdarg in place of sysv_varargs_p.
5025         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
5026         sysv_varargs_p.
5027
5028 2004-08-24  Richard Henderson  <rth@redhat.com>
5029
5030         PR target/16298
5031         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
5032         random codes within CONST.
5033
5034 2004-08-24  James E Wilson  <wilson@specifixinc.com>
5035
5036         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
5037         -freorder-blocks-and-partition.
5038
5039 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5040
5041         PR middle-end/17044
5042         * tree-ssa-threadupdate.c (redirection_data): Make static.
5043         (thread_block): Use ggc_alloc_cleared to allocate struct
5044         redirection_data.  Don't free elements in redirection_data.
5045
5046 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5047
5048         * config/mips/predicates.md (small_data_pattern): Match prefetches.
5049
5050 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5051
5052         PR tree-optimization/17016
5053         * tree-ssa-loop-niter.c (number_of_iterations_cond,
5054         number_of_iterations_exit): Use POINTER_TYPE_P instead
5055         of testing for POINTER_TYPE.
5056
5057 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5058
5059         * tree-ssa-loop-ivcanon.c: New file.
5060         * tree-ssa-loop-manip.c (create_iv): New function.
5061         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
5062         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
5063         * cfgloop.c (mark_single_exit_loops): New function.
5064         (verify_loop_structure): Verify single-exit loops.
5065         * cfgloop.h (struct loop): Add single_exit field.
5066         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
5067         (mark_single_exit_loops): Declare.
5068         (tree_num_loop_insns): Declare.
5069         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
5070         (duplicate_loop_to_header_edge): Use it.
5071         * common.opt (fivcanon): New flag.
5072         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
5073         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
5074         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
5075         (bsi_insert_on_edge_immediate): New function.
5076         * tree-flow.h (bsi_insert_on_edge_immediate,
5077         canonicalize_induction_variables, tree_unroll_loops_completely,
5078         create_iv): Declare.
5079         * tree-optimize.c (init_tree_optimization_passes): Add
5080         pass_iv_canon and pass_complete_unroll.
5081         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
5082         * tree-scalar-evolution.c (get_loop_exit_condition,
5083         get_exit_conditions_rec, number_of_iterations_in_loop,
5084         scev_initialize): Use single_exit information.
5085         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
5086         missing assumptions.
5087         (loop_niter_by_eval):  Return number of iterations as unsigned
5088         int.
5089         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
5090         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
5091         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
5092         New passes.
5093         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
5094         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
5095         the defining statement is ready.
5096         * tree-vectorizer.c (vect_create_iv_simple): Removed.
5097         (vect_create_index_for_array_ref, vect_transform_loop_bound):
5098         Use create_iv.
5099         (vect_transform_loop_bound): Use single_exit information.
5100         (vect_analyze_loop_form): Cleanup bogus tests.
5101         (vectorize_loops): Do not call flow_loop_scan.
5102         * tree.h (may_negate_without_overflow_p): Declare.
5103         * fold-const.c (may_negate_without_overflow_p): Split out from ...
5104         (negate_expr_p): ... this function.
5105         (tree_expr_nonzero_p): Handle overflowed constants correctly.
5106         * doc/invoke.texi (-fivcanon): Document.
5107         * doc/passes.texi: Document canonical induction variable creation.
5108
5109 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5110
5111         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
5112         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
5113         using the mode of the operand to decide between them.
5114         * config/mips/mips.md (MOVECC): New mode macro.
5115         (ccreg): New mode attribute.
5116         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
5117         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
5118         (mov[sd]icc): Redefine using :GPR.
5119
5120 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5121
5122         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
5123         (mips_prefetch_cookie): New function.
5124         * config/mips/mips.c (print_operand_address): Fix handling of
5125         ADDRESS_CONST_INT.
5126         (mips_emit_prefetch): Delete.
5127         (mips_prefetch_cookie): New function.
5128         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
5129         mode of QImode for the address_operand.  Use mips_prefetch_cookie
5130         to calculate the first "pref" operand.
5131         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
5132         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
5133
5134 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
5135
5136         * arm.md: Include predicates.md.
5137         * predicates.md: New file.
5138         * arm.c (s_register_operand, arm_hard_register_operand)
5139         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
5140         (arm_immediate_operand, arm_neg_immediate_operand)
5141         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
5142         (arm_add_operand, arm_addimm_operand, arm_not_operand)
5143         (offsettable_memory_operand, alignable_memory_operand)
5144         (arm_reload_memory_operand, arm_float_rhs_operand)
5145         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
5146         (index_operand, shiftable_operator, logical_binary_operator)
5147         (shift_operator, equality_operator, arm_comparison_operator)
5148         (minmax_operator, cc_register, dominant_cc_register)
5149         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
5150         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
5151         (const_shift_operand, load_multiple_operation)
5152         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
5153         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
5154         (cirrus_register_operand, cirrus_fp_register)
5155         (cirrus_shift_const): Delete, replaced with equivalents in
5156         predicates.md.
5157         (shift_op): Handle ROTATE.
5158         * arm-protos.h: Delete declarations for above.
5159         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
5160         * t-arm (MD_INCLUDES): Add predicates.md.
5161         (s-preds): Depends on MD_INCLUDES.
5162
5163 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5164
5165         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
5166         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
5167         patterns.  Redefine using :GPR.  Give the match_operator a mode.
5168         Use '%2' rather than '%z2' for operand 2.
5169
5170 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5171
5172         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
5173         attribute.
5174
5175 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5176
5177         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
5178         of internal patterns.
5179         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
5180         Redefine using :P.
5181         (tablejump): Use expand_binop to calculate address.  Adjust names
5182         of internal patterns.
5183         (tablejump[sd]i): Renamed from tablejump_internal[12].
5184         Redefine using :P.
5185         (tablejump_mips16[12]): Delete.
5186
5187 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5188
5189         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
5190         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
5191         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
5192         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
5193         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
5194
5195 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5196
5197         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
5198         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
5199         using :GPR.
5200         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
5201         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
5202         (*branch_equality[sd]i_inverted): Likewise
5203         branch_equality{,_di}_inverted.
5204         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
5205         Redefine using :GPR.
5206
5207 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
5208
5209         * rtl.def: Reorganize, placing all codes used only in machine
5210         descriptions at the end.
5211
5212         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
5213         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
5214         rtx_name, rtx_format arrays by direct reference to rtl.def,
5215         first undefining GENERATOR_FILE.  Define enum insn_note and
5216         note_insn_name array by direct reference to insn-notes.def.
5217         (adjust_field_rtx_def): Remove local definition of rtx_name.
5218         Use symbolic names for insn notes.
5219         * Makefile.in (gengtype.o): Update dependencies.
5220
5221 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
5222
5223         * basic-block.h (struct basic_block_def): Reorder fields to
5224         eliminate interior padding.  Remove 'partition' field.
5225         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
5226         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
5227         (BB_COPY_PARTITION): New macros.
5228         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
5229         Replace all references to the 'partition' field of a basic
5230         block with new macros.
5231
5232         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
5233         * final.c (final_scan_insn): Don't handle it.
5234         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
5235         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
5236         * sched-rgn.c (sched_is_disabled_for_current_region_p):
5237         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
5238
5239 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
5240
5241         * c-decl.c (c_init_decl_processing): Adjust
5242         build_common_tree_nodes call.
5243         * expmed.c (const_mult_add_overflow_p): Use
5244         build_distinct_type_copy.
5245         * stor-layout.c (early_type_list): Remove.
5246         (layout_type): Don't append to early_type_list.
5247         (initialize_sizetypes): Add signed_p argument.
5248         (set_sizetype): Overwrite the stub type nodes directly.
5249         * tree.c (copy_node_stat): Clear a type's value cache here ...
5250         (build_distinct_type): ... not here.
5251         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
5252         * tree.h (initialize_sizetypes): Add signed_p argument.
5253         (build_common_tree_nodes): Likewise.
5254
5255         * objc/objc-act.c (get_static_reference): Use
5256         build_variant_type_copy.
5257         (get_protocol_reference): Likewise.
5258         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
5259
5260 2004-08-24  Richard Henderson  <rth@redhat.com>
5261             Andrew Pinski  <apinski@apple.com>
5262
5263         * gimplify.c (gimplify_array_ref_to_plus): Delete.
5264         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
5265         for ARRAY_REF.
5266
5267         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
5268         ARRAY_REF also to get to the STRING_CST.
5269
5270 2004-08-24  Paul Brook  <paul@codesourcery.com>
5271
5272         * config/arm/arm.c (arm_override_options): Update error message.
5273         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
5274         TARGET_HARD_FLOAT_ABI.
5275         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
5276         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
5277
5278 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5279
5280         PR target/17093
5281         * config/m32r.md (movsi_sda): Add SI mode specification to
5282         UNSPEC.
5283
5284 2004-08-24  Nick Clifton  <nickc@redhat.com>
5285
5286         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
5287         of seth_add3_operand.
5288
5289 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
5290
5291         * Makefile.in (PROTO_OBJS): Add errors.o.
5292         * protoize.c (fancy_abort): Remove.
5293         * mips-tfile.c (fancy_abort): Add parameters.
5294
5295 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
5296
5297         * doc/trouble.texi (C++ misunderstandings): Fix example code.
5298
5299 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
5300
5301         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
5302         (host-default.o): Add dependency on HOOKS_H.
5303         * config/x-linux: Likewise.
5304         * config/x-solaris: Likewise.
5305         * config/i386/x-mingw32: Likewise.
5306         * config/rs6000/x-darwin: Likewise.
5307
5308 2004-08-23  James E Wilson  <wilson@specifixinc.com>
5309
5310         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
5311         DEF_REG_NOTE.
5312
5313 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
5314
5315         PR c/14492
5316         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
5317
5318 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
5319
5320         * cfg.c (check_bb_profile): Fix typos.
5321         * function.c (assign_parm_is_stack_parm): Likewise.
5322         * tree-nested.c: Likewise.
5323
5324 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
5325
5326         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
5327         Remove TYPECODE.
5328         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
5329
5330 2004-08-23  Eric Christopher  <echristo@redhat.com>
5331
5332         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
5333         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
5334         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
5335         * target.h: Ditto.
5336         * hooks.h: Include machmode.h.
5337         (hook_bool_mode_false): Declare.
5338         * hooks.c (hook_bool_mode_false): Define.
5339         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
5340         * stor-layout.c (layout_type): Ditto.
5341         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
5342         Define to target macro.
5343         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
5344         * config/arm/arm.c: Ditto. Use.
5345         * config/arm/arm.h: Ditto.
5346         * config/arm/arm-protos.h: Ditto.
5347         * config/i386/i386.c: Ditto.
5348         * config/i386/i386.h: Ditto.
5349         * config/rs6000/rs6000.c: Ditto.
5350         * config/rs6000/rs6000.h: Ditto.
5351         * config/sh/sh.c: Ditto.
5352         * config/sh/sh.h: Ditto.
5353         * config/sh/sh-protos.h: Ditto.
5354         * config/sh/sh.md: Use.
5355         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
5356         to TARGET_VECTOR_MODE_SUPPORTED_P.
5357
5358 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
5359
5360         * Makefile.in (BUILD_ERRORS): Set to build-errors.
5361         (errors.o): New target for host.
5362         (build-errors.o): New target for build.
5363         (genobjs): Replace errors.o with build-errors.
5364         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
5365         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
5366         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
5367         (fix-header.o): Add errors.h
5368         * collect2.c (fancy_abort): Add parameters.
5369         * collect2.h (fancy_abort): Don't declare.
5370         * errors.h (fancy_abort): Don't declare.
5371         * errors.c: Include either bconfig.h or config.h.
5372         (fancy_abort): Trim filename.
5373         * fix-header.c (v_fatal, fatal): Remove.
5374         (progname): Remove definition.
5375         (main): Set progname here.
5376         * gcc.c (fancy_abort): Add parameters.
5377         * gcc.h (fancy_abort): Remove declaration.
5378         * gcov.c (fancy_abort): Remove.
5379         * rtl.h (fancy_abort): Don't declare.
5380         (abort): Don't define.
5381         * tree.h (fancy_abort): Don't declare.
5382         (abort): Don't define.
5383         * system.h (fancy_abort): Declare.
5384         (abort): Define to fancy_abort.
5385         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
5386
5387         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
5388         (usize_type, ubitsizetype): Remove.
5389         * stor-layout.c (set_sizetype): Don't initialize usizetype,
5390         ubitsizetype.
5391         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
5392
5393         * tree.h (build_distinct_type_copy): New.
5394         (build_type_copy): ... here.  Rename to ...
5395         (build_variant_type_copy): ... here.
5396         * tree.c (build_qualified_type): Rename build_type_copy call.
5397         (build_distinct_type_copy): New, broken out of ...
5398         (build_type_copy): ... here.  Rename to ...
5399         (build_variant_type_copy): ... here.  Use
5400         build_distinct_type_copy.
5401         (build_common_tree_nodes_2): Rename build_type_copy call.
5402         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
5403         call.
5404         (handle_packed_attribute, handle_unused_attribute,
5405         handle_transparanet_union_attribute, handle_aligned_attribute,
5406         handle_deprecated_attribute): Likewise.
5407         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
5408         Likewise.
5409         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
5410         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
5411         build_distinct_type_copy.
5412
5413 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5414
5415         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
5416         attribute.
5417
5418 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5419
5420         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
5421         loads and stores.
5422         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
5423         formerly unnamed patterns.  Redefine using :P for the address.  Remove
5424         explicit length attributes.
5425
5426 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5427
5428         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
5429         New functions.
5430         (single_reachable_address): Use them.
5431         (schedule_sm): Add dump.
5432         (is_call_clobbered_ref): New function.
5433         (determine_lsm_reg): Check whether the reference is call clobbered.
5434         Only work for gimple_reg_type values.
5435
5436 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5437
5438         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
5439         $31 store insns.  Redefine using :GPR.
5440
5441 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5442
5443         * config/mips/mips.md (P): New mode macro.
5444         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
5445         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
5446         Add mode attributes.
5447
5448 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5449
5450         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
5451         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
5452         later constants to cover the gap.
5453         (load, store): New mode attributes.
5454         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
5455         Use new unspec constants.
5456
5457 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5458
5459         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
5460         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
5461         to use register_operand rather than uns_arith_operand as the predicate
5462         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
5463         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
5464         Redefine using :GPR.  Make same predicate change here.  Extend the
5465         commutativity of operands 1 and 2 from the SImode version to the
5466         DImode one.
5467         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
5468         but with no predicate changes.
5469         (*nor[sd]i3): Redefine using :GPR.
5470
5471 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5472
5473         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
5474         noreturn functions.
5475
5476 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5477
5478         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
5479         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
5480         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
5481         rather than "%z2" (with a fake const0_rtx for operand 2).
5482         (ffs[sd]i2): Redefine using :GPR.
5483         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
5484
5485 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5486
5487         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
5488
5489 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5490
5491         * config/mips/mips.md (any_extend): New code macro.
5492         (u, su): New code attributes.
5493         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
5494         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
5495         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
5496         (*{s,u}mul_acc_di): Redefine using any_extend.
5497         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
5498         to reflect real insn names.
5499         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
5500         with an any_extend template.
5501         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
5502         Add '*' to name.
5503
5504 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5505
5506         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
5507         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
5508         (mul[sd]i3_r4000): Redefine using :GPR.
5509         (mulsi3_mult3): Don't check TARGET_MAD separately.
5510         (muldi3_mult3): Moved after mulsi_mult3.
5511
5512 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5513
5514         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
5515         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
5516         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
5517         (TARGET_GAS, TARGET_MIPS_AS): Delete.
5518         (TARGET_GPWORD): Define to true for n32 on IRIX.
5519         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
5520         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
5521         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
5522         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
5523         (MDEBUG_ASM_SPEC): Delete, folding into...
5524         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
5525         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
5526         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
5527         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
5528         to define asm_abi_default_spec.
5529         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
5530         (TARGET_ASM_SELECT_SECTION): Delete.
5531         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
5532         for non-mips16 code, removing previous workaround for SGI assemblers.
5533         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
5534         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
5535         (override_options): Remove !TARGET_GAS and !have_named_sections code.
5536         (print_operand): Fold TARGET_GAS conditionals into asm strings.
5537         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
5538         ASM_STABS_OP and ASM_STABN_OP.
5539         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
5540         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
5541         (mips_output_function_prologue): Remove !TARGET_GAS code.
5542         (mips_select_rtx_section): Remove !have_named_sections code.
5543         (mips_select_section): Delete.
5544         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
5545         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
5546         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
5547         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
5548         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
5549         * config/mips/windiss.h (ASM_SPEC): Likewise.
5550
5551 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5552
5553         * read-rtl.c (map_value, mapping, macro_group): New structures.
5554         (BELLWETHER_CODE): New macro.
5555         (modes, codes, bellwether_codes): New variables.
5556         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
5557         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
5558         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
5559         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
5560         (add_map_value, initialize_macros): New functions.
5561         (def_hash, def_hash_eq_p): Generalize to anything that points to,
5562         or starts with, a char * field.
5563         (find_macro, read_mapping, check_code_macro): New functions.
5564         (read_rtx_1): New, split out from read_rtx.  Handle the new
5565         define_{mode,code}_{macro,attr} constructs.  Use find_macro
5566         to parse the name of a code or mode.  Use BELLWETHER_CODE to
5567         extract the format and to choose a suitable code for rtx_alloc.
5568         Modify recursive invocations to use read_rtx_1.
5569         (read_rtx): Call initialize_macros.  Apply code and mode macros
5570         to the rtx returned by read_rtx_1.  Cache everything after the
5571         first macro expansion for subsequent read_rtx calls.
5572         * doc/md.texi: Document new .md constructs.
5573         * config/mips/mips.md (GPR): New mode macro.
5574         (d, si8_di5): New mode attributes.
5575         (any_cond): New code macro.
5576         (add[sd]i3): Redefine using :GPR.
5577         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
5578         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
5579         previously unnamed MIPS16 patterns.
5580         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
5581         lines.  Don't match (plus (const_int 0) ...).
5582         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
5583         Use a define_split to generate the addition.
5584         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
5585         (subsi3_internal): Delete.
5586         (*subsi3_extended): Renamed from subsi3_internal_2.
5587         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
5588         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
5589         using an any_cond template.
5590
5591 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5592
5593         * read-rtl.c (read_rtx): Tidy use of format_ptr.
5594
5595 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5596
5597         * read-rtl.c (string_obstack): New file-scope variable.
5598         (read_string, read_quoted_string, read_braced_string)
5599         (read_escape): Remove obstack parameter and use string_obstack instead.
5600         (read_rtx): Remove function-local rtl_obstack and initialize
5601         string_obstack instead.  Update call to read_string.
5602
5603 2004-08-22  Andrew Pinski  <apinski@apple.com>
5604
5605         PR c/15262
5606         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
5607         expression is not constant.
5608         (c_finish_return): Do not go through INDIRECT_REF when looking
5609         for the inner expression of an ADDR_EXPR for warning about.
5610
5611 2004-08-22  Richard Henderson  <rth@redhat.com>
5612
5613         PR 17075
5614         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
5615         create new blocks and fall through.
5616         (expand_gimple_basic_block): Update to match.
5617
5618 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
5619
5620         * reload.c (find_reloads_address): Make return value tri-state.
5621         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
5622         (find_reloads): Assume that reloaded addresses match 'o' or
5623         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
5624         returned 1 (not -1).  Omit optional reloads for address operands
5625         only if find_reloads_address returned 1 (not -1).
5626
5627         * config/s390/s390.c (legitimize_reload_address): New function.
5628         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
5629         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
5630         legitimize_reload_address.
5631
5632 2004-08-22  Richard Hendersion  <rth@redhat.com>
5633
5634         * tree.h (SAVE_EXPR_RESOLVED_P): New.
5635         * gimplify.c (gimplify_save_expr): Use it.
5636         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
5637         on the temporary variable.
5638
5639 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
5640
5641         * fold-const.c (rtl_expr_nonnegative_p): Delete.
5642         * tree.h (rtl_expr_nonnegative_p): Remove.
5643
5644 2004-08-22  Steven Bosscher  <stevenb@suse.de>
5645
5646         * config/i386/ppro.md (ppro_complex_insn): Add missing check
5647         for cpu==pentiumpro.
5648
5649         * combine.c (struct reg_stat): Fix comment typo.
5650
5651 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
5652
5653         * c-tree.h (c_sizeof_nowarn): Remove.
5654
5655 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
5656
5657         * c-decl.c (set_array_declarator_type): Rename to
5658         set_array_declarator_inner.
5659         (build_c_parm, build_attrs_declarator, build_function_declarator):
5660         New functions.
5661         (make_pointer_declarator): Call build_attrs_declarator.
5662         * c-tree.h (set_array_declarator_type): Rename to
5663         set_array_declarator_inner.
5664         (build_c_parm, build_attrs_declarator, build_function_declarator):
5665         New prototypes.
5666         * c-parse.in (after_type_declarator,
5667         parm_declarator_starttypename, parm_declarator_nostarttypename,
5668         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
5669         firstparm): Use these functions
5670
5671 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
5672
5673         * c-decl.c (build_array_declarator, set_array_declarator_type,
5674         start_decl, grokdeclarator, grokparms): Change boolean parameters
5675         to type bool.
5676         * c-tree.h (build_array_declarator, set_array_declarator_type,
5677         start_decl): Update prototypes.
5678         * c-decl.c, c-parse.in: All callers changed.
5679
5680 2004-08-21  Mike Stump  <mrs@apple.com>
5681
5682         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
5683         (darwin_fix_and_continue): Likewise.
5684         (darwin_fix_and_continue_switch): Likewise.
5685         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
5686         (darwin_fix_and_continue): Likewise.
5687         (darwin_fix_and_continue_switch): Likewise.
5688
5689 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
5690
5691         PR  c++/16030
5692         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
5693         Remove, merging into ...
5694         (gen_stdcall_or_fastcall_suffix): New function, returning tree
5695         rather than const char*, and accepting additional parameter.
5696         Don't add suffix to '*'-prefixed symbols or variadic functions.
5697         (i386_pe_encode_section_info): Adjust for call to new function.
5698         Call change_decl_assembler_name.
5699
5700 2004-08-20  Mike Stump  <mrs@apple.com>
5701
5702         * config/darwin.c (machopic_indirect_data_reference): Mark
5703         stubs as defined.
5704         * config/386/386.c (darwin_local_data_pic): Add.
5705         (legitimate_constant_p): Reorder so that PLUS handling runs
5706         before darwin_local_data_pic to match the ordering in
5707         legitimate_pic_address_disp_p and so that MINUS runs after
5708         darwin_local_data_pic as otherwise the darwin_local_data_pic
5709         logic can be skipped, which would be very bad.
5710         (legitimate_pic_address_disp_p): Move from from here to
5711         darwin_local_data_pic so it can be reused.
5712
5713 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
5714
5715         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
5716         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
5717         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
5718         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
5719         (RS6000_ABI_NAME): Define as "linux".
5720         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
5721         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
5722         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
5723         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
5724         * config/rs6000/rs6000.c (dot_symbols): New global var.
5725         (rs6000_output_function_entry): New function, modified for
5726         !DOT_SYMBOLS..
5727         (print_operand <case 'z'>): ..extracted from here.
5728         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
5729         (rs6000_output_function_epilogue): Likewise.
5730         (rs6000_elf_declare_function_name): Likewise.
5731         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
5732         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
5733         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
5734         * configure: Regenerate.
5735         * config.in: Regenerate.
5736
5737 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
5738
5739         * reload.c (find_reloads_address): Fix thinko in previous change.
5740
5741         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
5742         a CONST_INT.
5743
5744 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
5745
5746         PR rtl-optimization/17099
5747         * combine.c (force_to_mode): Check if inner_mask has any bits set
5748         outside of GET_MODE (x) instead of op_mode.
5749
5750 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
5751
5752         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
5753         fragment.
5754         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
5755         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
5756         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
5757         architecture.
5758         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
5759         configurations.
5760         * config/arm/t-symbian: New file.
5761
5762 2004-08-20  Andrew Pinski  <apinski@apple.com>
5763
5764         * regrename.c (kill_value_regno): ANSIfy.
5765
5766 2004-08-20  Dale Johannesen  <dalej@apple.com>
5767
5768         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
5769
5770 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
5771
5772         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
5773         (kill_value_regno): New function, derived from kill_value.
5774         (kill_value): Update.
5775         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
5776
5777 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
5778
5779         Fix PR tree-optimization/17111
5780         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
5781         of non-value_handles.
5782         (bitmap_set_contains): All constants are in every set.
5783
5784 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
5785
5786         * fold-const.c (round_up, round_down): Use build_int_cst.
5787         Optimize common case.
5788
5789 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
5790             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5791
5792         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
5793         one_only_data_section): Rename to som_readonly_data_section,
5794         som_one_only_readonly_data_section and som_one_only_data_section.
5795         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
5796         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
5797         conditional defines.
5798         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
5799         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
5800         string values.
5801         (pa_select_section): Use renamed section functions.
5802         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
5803         SOM_READONLY_DATA_SECTION_FUNCTION,
5804         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
5805         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
5806         Define here ...
5807         * config/pa/som.h: ... not here.
5808         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
5809         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
5810         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
5811         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
5812         (READONLY_DATA_SECTION): Use som_readonly_data_section.
5813
5814 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
5815
5816         * fold-const.c (int_const_binop): Don't generate non-overflowing
5817         size-types specially.
5818         (fold_convert_const): Likewise.
5819
5820         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
5821         clear cache on copied sizetype.
5822
5823 2004-08-20  Ben Elliston  <bje@au.ibm.com>
5824
5825         * configure.ac: Don't escape apostrophe in --enable-coverage help.
5826         * configure: Regenerate.
5827
5828 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
5829
5830         PR 5620
5831         * gcc.c (struct stat input_stat): Don't define if
5832         HOST_LACKS_INODE_NUMBERS
5833         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
5834         than stat to determine if temp file is same as input file.
5835         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
5836         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
5837
5838 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
5839
5840         * configure.ac (mips*-*-*): Print an error if not using GAS.
5841         * configure: Regenerated.
5842         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
5843         comments about buggy MIPSpro assemblers.
5844         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
5845         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
5846         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
5847         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
5848         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
5849         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
5850         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
5851         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
5852         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
5853         of more general IRIX 6 definitions.
5854         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
5855         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
5856         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
5857         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
5858         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
5859         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
5860         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
5861         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
5862         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
5863         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
5864         (LINK_SPEC): Move most of definition to iris.h.
5865         (SUBTARGET_LINK_SPEC): New macro.
5866         (IRIX_STARTFILE_SPEC): Fold into...
5867         (STARTFILE_SPEC): ...here.
5868         (IRIX_ENDFILE_SPEC): Fold into...
5869         (ENDFILE_SPEC): ...here.
5870         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
5871         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
5872         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
5873         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
5874         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
5875         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
5876         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
5877         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
5878         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
5879         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
5880         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
5881         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
5882         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
5883         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
5884         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
5885         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
5886         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
5887         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
5888         (TARGET_IRIX6): Define to 1.
5889         (DRIVER_SELF_SPECS): Define.
5890         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
5891         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
5892         (SUBTARGET_LINK_SPEC): New macro.
5893         (IRIX_STARTFILE_SPEC): Fold into...
5894         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
5895         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
5896         (LIB_SPEC, LIBGCC_SPEC): Use them.
5897         (LIB_SPEC): Remove !mabi=* case.
5898         (IRIX_ENDFILE_SPEC): Fold into...
5899         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
5900         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
5901         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
5902         (TARGET_IRIX6): New macro.
5903         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
5904         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
5905         (LABEL_AFTER_LOC): Delete.
5906         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
5907         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
5908         (mips_build_builtin_va_list): Check TARGET_IRIX6.
5909         (override_options): Remove TARGET_SGI_O32_AS-related code.
5910         (irix_output_external_libcall): Make static.
5911         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
5912         LABEL_AFTER_LOC.
5913         (mips_file_start): Tidy guard for ABI sections.  Remove use of
5914         ABICALLS_ASM_OP; use .abicalls instead.
5915         (mips_output_aligned_decl_common, mips_declare_object_name)
5916         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
5917         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
5918         .globl foo .text directives.
5919         (irix_asm_named_section_1, irix_asm_named_section)
5920         (irix_section_align_entry, irix_section_align_htab)
5921         (irix_orig_asm_out_file, irix_section_align_entry_eq)
5922         (irix_section_align_entry_hash, irix_asm_output_align)
5923         (irix_file_start, irix_section_align_1, copy_file_data)
5924         (irix_file_end, irix_section_type_flags): Delete.
5925         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
5926         Use standard section syntax.  Remove protective "jr $31".
5927         (__gcc_fini): Likewise .gcc_fini.
5928         * config/mips/irix-crtn.asm: Adjust sections accordingly.
5929         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
5930         iris5gas.h.
5931         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
5932         from t-irix-gld.
5933         (EXTRA_MULTILIB_PARTS): Define.
5934         * config/mips/t-iris6: Remove bogus comment.
5935         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
5936         * config/mips/iris5gas.h, config/mips/iris5gld.h,
5937         config/mips/iris6gas.h, config/mips/iris6gld.h,
5938         config/mips/t-iris5-as, config/mips/t-iris5-gas
5939         config/mips/t-irix-gld: Delete.
5940         * config/mips/iris.h: New file.
5941         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
5942
5943 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
5944
5945         * postreload.c (reload_cse_move2add): Allow any condjump, but check
5946         that the implicit set isn't clobbered in the jump insn.
5947
5948 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
5949
5950         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
5951         * optabs.c (init_optabs): Don't check it.
5952         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
5953         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
5954
5955 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
5956
5957         * config/s390/s390.md (s390_warn_framesize_string)
5958         (s390_warn_dynamic_string, s390_stack_size_string)
5959         (s390_stack_guard_string): New global string variables.
5960         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
5961         (s390_stack_guard): New global variables.
5962         (override_options): Added checks for the new options.
5963         (s390_emit_prologue): Emit stack check and trap code and perform
5964         compile time stack size checking.
5965
5966         * config/s390/s390.h (TARGET_OPTIONS): Added new options
5967         "warn-framesize", "warn-dynamicstack", "stack-size" and
5968         "stack-guard".
5969
5970         * doc/invoke.texi: Added documentation for the new options.
5971
5972 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
5973
5974         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
5975         to eliminate warning.
5976         (linear_search_fdes): Declare p as unsigned.
5977         (binary_search_mixed_encoding_fdes): Likewise.
5978         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
5979         to eliminate warning.
5980         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
5981         type cast.
5982
5983 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
5984
5985         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
5986         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
5987         instead of one.  Check for strictly legitimate address.
5988         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
5989         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
5990
5991 2004-08-19  Eric Christopher  <echristo@redhat.com>
5992
5993         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
5994         * langhooks.h (unsave_expr_now): Ditto.
5995         * tree.h (unsave_expr_1): Remove prototype.
5996         (lhd_unsave_expr_now): Rename to unsave_expr_now.
5997         * tree-inline.c (unsave_expr_1): Move here
5998         from tree.c. Make static.
5999         (unsave_expr_now): Rename from lhd_unsave_expr_now.
6000         * tree-sra.c: Fix up for rename.
6001         * tree-ssa-copy.c: Ditto.
6002         * tree-eh.c: Ditto.
6003         * tree.c (unsave_expr_1): Move to tree-inline.c.
6004
6005 2004-08-19  Caroline Tice  <ctice@apple.com>
6006
6007         * config/i386/cygming.h (switch_to_section):  Fix typo (change
6008         in_unlikely_text_section to in_unlikely_executed_text).
6009
6010 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
6011
6012         * vec.h (VEC_lower_bound): New macro.
6013
6014 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
6015
6016         PR target/16446
6017         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
6018         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
6019         treat each ABI separately.  Deal with n32/n64 complex float arguments.
6020         (function_arg): Add associated complex handling here.
6021
6022 2004-08-19  Richard Henderson  <rth@redhat.com>
6023
6024         * config/arm/arm.c (arm_gen_load_multiple): Use
6025         adjust_automodify_address.  Take base memory and offset instead
6026         of unchanging/struct/scalar bits.
6027         (arm_gen_store_multiple): Likewise.
6028         (arm_gen_movmemqi): Use adjust_automodify_address.
6029         * config/arm/arm-protos.h: Update decls.
6030         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
6031         (store_multiple): Similarly.
6032
6033 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
6034
6035         * regclass.c (globalize_reg): Update call_really_used_regs.
6036
6037 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
6038
6039         * doc/invoke.texi (integer-share-limit): Document.
6040
6041         * tree.h (TYPE_CACHED_VALUES_P): New.
6042         (TYPE_CACHED_VALUES): New.
6043         (TYPE_ORIG_SIZE_TYPE): Adjust.
6044         * tree.def (INTEGER_CST): Update documentation.
6045         * tree.c: Inlcude params.h.
6046         (build_int_cst): Cache small values.
6047         (build_type_copy): Do not copy the value cache.
6048         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
6049         unneeded zeroing.
6050         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
6051         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
6052         cache.
6053         * fold-const.c (force_fit_type): Copy value when setting
6054         overflows.
6055         (int_const_binop): Likewise.
6056         * stor-layout.c: Include params.h
6057         (set_sizetype): Create values cache.
6058         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
6059         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
6060         * params.h (INTEGER_SHARE_LIMIT): New.
6061         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
6062
6063 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
6064
6065         * gimplify.c (gimplify_minimax_expr): Remove.
6066         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
6067
6068 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
6069
6070         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
6071         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
6072
6073 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
6074
6075         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
6076
6077 2004-08-18  Andrew Pinski  <apinski@apple.com>
6078
6079         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
6080
6081 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
6082
6083         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
6084         (__aeabi_ul2f): Likewise.
6085
6086 2004-08-18  Richard Henderson  <rth@redhat.com>
6087
6088         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
6089         move to rtl completely.
6090         (struct meminsnbuf, xtensa_emit_block_move): Remove.
6091         (xtensa_find_mode_for_size): Remove.
6092         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
6093         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
6094
6095 2004-08-18  Richard Henderson  <rth@redhat.com>
6096
6097         * config/mcore/mcore.c (mode_from_align): Remove DImode.
6098         (block_move_sequence): Rewrite to use adjust_address.
6099         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
6100         Return boolean indicating success/failure.
6101         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
6102         * config/mcore/mcore.md (movmemsi): Update to match.
6103
6104 2004-08-18  Mike Stump  <mrs@apple.com>
6105
6106         * doc/invoke.texi (-mfix-and-continue): Add support for
6107         fast turn around debugging.
6108         (-ffix-and-continue): Likewise.
6109         (-mindirect-data): Likewise.
6110         (-findirect-data): Likewise.
6111         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
6112         (indirect_data): Likewise.
6113         (machopic_data_defined_p): Likewise.
6114         (machopic_output_indirection): Likewise.
6115         (darwin_encode_section_info): Likewise.
6116         (darwin_fix_and_continue): Likewise.
6117         (darwin_fix_and_continue_switch): Likewise.
6118         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
6119         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6120         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
6121         (SUBTARGET_OPTIONS): Likewise.
6122         (darwin_fix_and_continue): Likewise.
6123         (darwin_fix_and_continue_switch): Likewise.
6124         (TARGET_FIX_AND_CONTINUE): Likewise.
6125         * config/rs6000.c (rs6000_emit_prologue): Likewise.
6126
6127 2004-08-19  Steven Bosscher  <stevenb@suse.de>
6128
6129         * basic-block.h (struct edge_def): Remove crossing_edge.
6130         (EDGE_CROSSING): New define.
6131         (EDGE_ALL_FLAGS): Update.
6132         * bb-reorder.c (find_traces_1_round, better_edge_p,
6133         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
6134         find_jump_block, fix_crossing_conditional_branches,
6135         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
6136         Replace all occurences of crossing_edge with an edge flag check
6137         or set/reset.
6138         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6139         try_crossjump_bb): Likewise.
6140         * cfglayout.c (fixup_reorder_chain): Likewise.
6141         * cfgrtl.c (force_nonfallthru_and_redirect,
6142         commit_one_edge_insertion): Likewise.
6143
6144         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
6145         * tree-flow.h (compute_dominance_frontiers): Move prototype...
6146         * basic-block.h:  ...here.
6147         * tree-cfg.c (compute_dominance_frontiers_1,
6148         compute_dominance_frontiers): Move from here...
6149         * cfganal.c: ...to here.  Include timevar.h.
6150
6151 2004-08-18  James E Wilson  <wilson@specifixinc.com>
6152
6153         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
6154         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
6155
6156         * config/mips/mips.md (type): Add frdiv.
6157         (divsf3+1, divsf3+2): Change type to frdiv.
6158         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
6159         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
6160
6161         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
6162         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
6163         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
6164         * config/mips/5000.md (r5k_fdiv_single): Likewise.
6165         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
6166         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
6167         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
6168         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
6169         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
6170         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
6171         Likewise.
6172         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
6173
6174 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
6175
6176         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
6177         get regression tester working again.
6178
6179 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
6180
6181         * insn-notes.def, reg-notes.def: New files.
6182         * rtl.h: Use them to define enum insn_note and enum reg_note.
6183         * rtl.c: Use them to define note_insn_name and reg_note_name.
6184         * Makefile.in (RTL_BASE_H): Update.
6185
6186         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
6187         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
6188
6189 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
6190
6191         * arm.c (arm_size_rtx_costs): New function.
6192         (arm_override_options): Use it if optimizing for space.
6193
6194 2004-08-18  Richard Henderson  <rth@redhat.com>
6195
6196         * emit-rtl.c (gen_const_mem): New.
6197         * rtl.h (gen_const_mem): Declare.
6198         * expr.c (do_tablejump): Use it.
6199         * varasm.c (force_const_mem): Likewise.
6200         * config/darwin.c (machopic_indirect_data_reference): Likewise.
6201         (machopic_legitimize_pic_address): Likewise.
6202         * config/arm/arm.c (legitimize_pic_address): Likewise.
6203         * config/i386/i386.c (legitimize_pic_address): Likewise.
6204         (legitimize_tls_address): Likewise.
6205         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
6206         * config/ia64/ia64.md (load_fptr): Likewise.
6207         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
6208         * config/pa/pa.c (legitimize_pic_address): Likewise.
6209         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
6210         (rs6000_emit_move): Likewise.
6211         * config/s390/s390.c (legitimize_pic_address): Likewise.
6212         (legitimize_tls_address): Likewise.
6213         * config/s390/s390.md (casesi): Likewise.
6214         * config/sh/sh.c (sh_reorg): Likewise.
6215         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
6216         * config/v850/v850.md (casesi): Likewise.
6217
6218         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
6219         * config/sh/sh.c (prepare_move_operands): Remove incorrect
6220         use of MEM_READONLY_P.
6221
6222 2004-08-18  Steven Bosscher  <stevenb@suse.de>
6223
6224         * Makefile.in (OBJS-common): Add postreload-gcse.c.
6225         Add new postreload-gcse.o.
6226         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
6227         (lookup_as_function, insert, rehash_using_reg, use_related_value,
6228         equiv_constant): Use SAFE_HASH instead of safe_hash.
6229         (exp_equiv_p): Export.  Add for_gcse argument when comparing
6230         for GCSE.
6231         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
6232         find_comparison_args, fold_rtx, cse_insn): Update callers.
6233         (hash_rtx): New function derived from old canon_hash and bits
6234         from gcse.c hash_expr_1.
6235         (canon_hash_string): Rename to hash_rtx_string.
6236         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
6237         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
6238         (cselib_lookup): Update this caller.
6239         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
6240         Make static.
6241         (hash_expr): Call hash_rtx.
6242         (ldst_entry): Likewise.
6243         (expr_equiv_p): Call exp_equiv_p.
6244         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
6245         reg_used_on_edge, reg_set_between_after_reload_p,
6246         reg_used_between_after_reload_p, get_avail_load_store_reg,
6247         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
6248         get_bb_avail_insn, hash_scan_set_after_reload,
6249         compute_hash_table_after_reload,
6250         eliminate_partially_redundant_loads, gcse_after_reload,
6251         get_bb_avail_insn, gcse_after_reload_main): Remove.
6252         * postreload-gcse.c: New file, reincarnating most of the above.
6253         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
6254         (gcse_after_reload_main): Update prototype.
6255         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
6256         * passes.c (rest_of_handle_gcse2): Use it.
6257
6258 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
6259
6260         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
6261         (pass_loop_done): Likewise.
6262
6263 2004-08-18  Andrew Pinski  <apinski@apple.com>
6264
6265         * config/rs6000/darwin.md: Delete the altivec patterns which are
6266         handled differently now.
6267         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
6268         (macho_correct_pic_di): Likewise.
6269         (call_indirect_nonlocal_darwin64): Likewise.
6270         Delete the save world/saveFP/saveVec patterns.
6271
6272         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
6273         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
6274         * config/rs6000/rs6000.md: Include darwin.md.
6275         (builtin_setjmp_receiver): Add DImode case.
6276         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
6277         Darwin bits.
6278
6279 2004-08-18  Matt Austern  <austern@apple.com>
6280
6281         Dead code stripping
6282         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
6283         * darwin.c (darwin_file_end): Mark file as potentially strippable.
6284
6285 2004-08-18  Richard Henderson  <rth@redhat.com>
6286
6287         * alias.c (readonly_fields_p): Remove.
6288         (objects_must_conflict_p): Don't call it.
6289         * tree.h (readonly_fields_p): Remove.
6290         * langhooks.h (struct lang_hooks): Remove honor_readonly.
6291         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
6292
6293 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
6294
6295         * tree-dfa.c (add_referenced_var): Only global variables are
6296         call-clobbered.
6297         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
6298         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
6299         all pointers dereferenced if the statement dereferences them.
6300         (create_name_tags): Do not create memory tags for pointers
6301         that have PT_ANYTHING set.
6302         Also check if PT_VARS is not empty before creating a name tag.
6303         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
6304         variables that share the same alias set with a pointer that
6305         may point anywhere.
6306         (add_may_alias): Add FIXME comment to remove clobbering
6307         aliased variables and tags.
6308         (replace_may_alias): Likewise.
6309         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
6310         (merge_pointed_to_info): If the original variable has not
6311         points-to information, call set_pt_anything.
6312         (add_pointed_to_var): Do not prevent adding a pointed-to
6313         variable if the pointers is PT_ANYTHING.
6314         If the variable is a global, set PT_GLOBAL_MEM.
6315         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
6316         pointer type only come in PTR+OFFSET flavours.
6317         Always call merge_pointed_to_info on PHI arguments that are
6318         SSA_NAMEs.
6319         (get_nmt_for): Mark call-clobbered tags whose pointer points
6320         to global memory.
6321         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
6322         values.
6323         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
6324         FLAGS.
6325         (add_stmt_operand): Abort if the caller tried to add a killing
6326         definition for a memory tag.
6327         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
6328         unnecessary checks.
6329
6330 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
6331
6332         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
6333         from call_used_regs.  Update call_really_used_regs.
6334         (CALL_REALLY_USED_REGISTERS): Define.
6335         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
6336         Replace call_used_regs with call_really_used_regs.
6337         (calc_live_regs, sh_media_register_for_return): Likewise.
6338         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
6339         * sh.md (return_media): Likewise.
6340
6341 2004-08-18  Andrew Pinski  <apinski@apple.com>
6342
6343         * config/darwin.c (machopic_legitimize_pic_address): Only set
6344         MEM_READONLY_P in the non TARGET_TOC case.
6345
6346 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
6347
6348         * rtl.def (NIL): Delete.
6349         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
6350         Tighten the syntax a little.
6351
6352         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
6353         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
6354         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
6355         * config/i386/predicates.md, config/m32r/m32r.h
6356         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
6357         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
6358         * config/sparc/sparc.h, doc/tm.texi:
6359         Replace all occurrences of NIL with UNKNOWN.
6360
6361 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
6362
6363         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
6364         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
6365         sequence inline.  Move drop_through_label code into this
6366         block, being the only place it is used.  Adjust comments.
6367
6368 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
6369
6370         * config/rs6000/altivec.md: Add new patterns for calls to
6371         save_world/rest_world functions.
6372
6373         * config/rs6000/rs6000-protos.h: (save_world_operation,
6374         restore_world_operation) new declarations.
6375
6376         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
6377         field added.
6378         (rs6000_stack_info): Set world_save_p field.
6379         (save_world_operation): New function.
6380         (restore_world_operation): New function.
6381         (compute_save_world_info): New function.
6382         (rs6000_stack_info): Call compute_save_world_info.
6383         (rs6000_emit_prologue): Check for world_save_p and generate
6384         pattern to call save_world for saving all non-volatile and
6385         special registers.
6386         (rs6000_emit_epilogue): Check for world_save_p and generate
6387         pattern to call rest_world to restore saved registers.
6388
6389         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
6390         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
6391         (rs6000_reg_names): New entries added for save_world_operation and
6392         restore_world_operation.
6393
6394 2004-08-18  Caroline Tice  <ctice@apple.com>
6395
6396         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
6397         "-freorder-blocks-and-partition" to the flags used in second
6398         stage of profiledbootstrap.
6399         * bb-reorder.c (push_to_next_round_p): Add new variable,
6400         next_round_is_last; set and use variable to make sure, when
6401         partitioning, that the last trace construction round consists
6402         of all (and only) cold basic blocks.
6403         (rotate_loop): Don't copy blocks that end in a section
6404         crossing jump.
6405         (copy_bb): Correctly initialize "partition" of duplicated bb.
6406         (add_unlikely_executed_notes): Add a comment.
6407         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
6408         to make sure, if function contains hot blocks, that the
6409         successors of ENTRY_BLOCK_PTR are hot; also, only look for
6410         crossing edges if the architecture supports named sections.
6411         (mark_bb_for_unlikely_executed_section): Modify to always
6412         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
6413         the basic block note insn.
6414         (fix_crossing_unconditional_branches): Remove extra space.
6415         (fix_edges_for_rarely_executed_code): Modify to only do
6416         partitioning work if the architecture supports named sections.
6417         (reorder_basic_blocks): Modify to only add
6418         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
6419         supports named sections.
6420         * c-common.c (handle_section_attribute): Initialize new global
6421         variable, user_defined_section_attribute, to true if user has
6422         specified one.
6423         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
6424         forward edges that cross section boundaries.
6425         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
6426         partitioning information if the architecture supports named
6427         sections.
6428         * cfgrtl.c (target.h): Add statement to include this.
6429         (rtl_split_block): Make sure newly created bb gets correct
6430         partition.
6431         (try_redirect_by_replacing_jump): Make sure redirection isn't
6432         attempting to cross section boundaries.
6433         (force_nonfallthru_and_redirect): Only do partition fix up if
6434         architecture supports named sections.
6435         (rtl_split_edge): Make sure newly created bb ends up in
6436         correct partition.
6437         (commit_one_edge_insertion): Remove code that incorrectly
6438         updated basic block partition; Make sure partition fix up only
6439         happens if architecture supports named sections and it's not
6440         already done.
6441         (rtl_verify_flow_info_1): Fix if-condition on test/error
6442         condition that fallthru edges are not allowed to cross section
6443         boundaries.
6444         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
6445         * final.c (final_scan_insn): Remove redundant test from if-statement;
6446         change calls to text_section into calls to function_section; add code
6447         to only to partitioning fix up if architecture supports named
6448         sections.
6449         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
6450         partition.
6451         (if_convert): Add targetm.have_named_sections to test.
6452         * output.h (unlikely_section_label): Extern declaration for new global
6453         variable.
6454         (unlikely_text_section_name): Likewise.
6455         * opts.c (decode_options): If both partitioning and DWARF debugging
6456         are turned on, issue a warning that this doesn't work, and change
6457         partitiong to basic block reordering (without hot/cold partitions).
6458         * passes.c (rest_of_handle_final): Re-set new global variable,
6459         user_defined_section_attribute, to false.
6460         (rest_of_compilation): Change options for calling partitioning
6461         function: Don't call if the user defined the section attribute, and
6462         don't call if DECL_ONE_ONLY is true for the current function.
6463         * predict.c (choose_function_section): Return immediately if we
6464         are doing hot/cold partitioning (i.e. let the basic block partitioning
6465         determine where the function belongs).
6466         * reg-stack.c (emit_swap_insn): Add condition to step over
6467         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
6468         * toplev.c (user_defined_section_attribute): New global variable.
6469         * toplev.h (user_defined_section_attribute): Extern declaration
6470         for new global variable.
6471         * varasm.c (unlikely_section_label): New global variable.
6472         (unlikely_text_section_name): New global variable.
6473         (unlikely_text_section): Add code to initialize
6474         unlikely_text_section_name if necessary; modify to use
6475         unlikely_text_section_name and unlikely_section_label; also to use
6476         named_section properly.
6477         (in_unlikely_text_section):  Modify to work correctly with
6478         named_section and to use unlikely_text_section_name.
6479         (named_section):  Add code to work properly with cold section.
6480         (function_section): Clean up if-statement.
6481         * config/darwin.c (darwin_asm_named_section): Return to original
6482         code, removing use of SECTION_FORMAT_STRING.
6483         * config/arm/pe.h (switch_to_section):  Add case for
6484         in_unlikely_executed_text to switch statement.
6485         * config/i386/cygming.h (switch_to_section): Likewise.
6486         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
6487         (SECTION_FORMAT_STRING): Likewise.
6488         * config/mcore/mcore.h (switch_to_section): Likewise.
6489         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
6490         (SECTION_FORMAT_STRING): Remove.
6491
6492 2004-08-18  Roger Sayle  <roger@eyesopen.com>
6493
6494         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
6495         -ffixed-reg safe, by preserving the meanings of zero and one.
6496         (CALL_USED_REGISTERS): Likewise.
6497         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
6498
6499 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6500
6501         * config/sh/sh.c (split_branches): Check the result of
6502         next_active_insn.
6503         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
6504         Call rtl_register_cfg_hooks.
6505
6506 2004-08-18  Richard Henderson  <rth@redhat.com>
6507
6508         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
6509         * alias.c (true_dependence): Update to match new semantics.
6510         (canon_true_dependence, write_dependence_p): Likewise.
6511         (anti_dependence, output_dependence): Update write_dependence_p args.
6512         (unchanging_anti_dependence): Remove.
6513         * calls.c (purge_mem_unchanging_flag): Remove.
6514         (fixup_tail_calls): Don't call it.
6515         (expand_call): Don't add unchanging memory to function usage.
6516         * expr.c (emit_block_move_via_libcall): Likewise.
6517         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
6518         (get_subtarget): Don't use RTX_UNCHANGING_P.
6519         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
6520         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
6521         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
6522         * cse.c (insert): Don't use RTX_UNCHANGING_P.
6523         (cse_insn, canon_hash): Use MEM_READONLY_P.
6524         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
6525         instead of RTX_UNCHANGING_P.
6526         * explow.c (maybe_set_unchanging): Remove.
6527         * expr.h (maybe_set_unchanging): Remove.
6528         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
6529         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
6530         (assign_parm_setup_reg, expand_function_start): Likewise.
6531         * integrate.c (copy_rtx_and_substitute): Likewise.
6532         * ra-rewrite.c (emit_colors): Likewise.
6533         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
6534         (fixup_match_1): Likewise.
6535         * reload1.c (reload, alter_reg): Likewise.
6536         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
6537         not RTX_UNCHANGING_P.
6538         (equiv_init_varies_p): Likewise.
6539         * loop-invariant.c (check_maybe_invariant): Likewise.
6540         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
6541         * loop.c (note_addr_stored): Likewise.
6542         (prescan_loop): Likewise. Don't check function usage for clobbered
6543         unchanging memory.
6544         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
6545         not RTX_UNCHANGING_P.
6546         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
6547         * varasm.c (force_const_mem): Likewise.
6548         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
6549         * web.c (entry_register): Likewise.
6550         * tree-gimple.h (get_base_address): Move decl ...
6551         * tree.h: ... here.
6552         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
6553
6554         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
6555         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
6556         (alpha_set_memflags): Update to match.
6557
6558         * config/darwin.c (machopic_indirect_data_reference): Set
6559         MEM_READONLY_P instead of RTX_UNCHANGING_P.
6560         (machopic_indirect_call_target): Likewise.
6561         (machopic_legitimize_pic_address): Likewise.
6562         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
6563         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
6564         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
6565         * config/frv/frv.md (symGOT2reg): Likewise.
6566         * config/i386/i386.c (legitimize_pic_address,
6567         legitimize_tls_address, ix86_split_to_parts): Likewise.
6568         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
6569         * config/ia64/ia64.md (load_fptr): Likewise.
6570         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
6571         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
6572         * config/mcore/mcore.c (block_move_sequence): Likewise.
6573         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
6574         * config/pa/pa.c (legitimize_pic_address): Likewise.
6575         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
6576         (rs6000_emit_move): Likewise.
6577         * config/s390/s390.c (legitimize_pic_address): Likewise.
6578         (legitimize_tls_address): Likewise.
6579         * config/s390/s390.md (casesi): Likewise.
6580         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
6581         * config/sh/sh.md (symGOT2reg): Likewise.
6582         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
6583         * config/v850/v850.md (casesi): Likewise.
6584
6585         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
6586         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
6587         * config/mips/mips.c (mips_restore_gp): Likewise.
6588         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
6589         * config/sh/sh.c (sh_reorg): Likewise.
6590
6591 2004-08-18  Richard Henderson  <rth@redhat.com>
6592
6593         * tree.h (struct tree_decl): Add gimple_formal_temp.
6594         (DECL_GIMPLE_FORMAL_TEMP_P): New.
6595         * gimplify.c (pop_gimplify_context): Clear it.
6596         (lookup_tmp_var): Set it, if is_formal.
6597         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
6598         Use is_gimple_val for VECTOR.  Simplify return value.
6599         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
6600         (gimplify_expr): Likewise.
6601         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
6602         is_gimple_tmp_rhs for clarity.  Update all callers.
6603         (is_gimple_reg_rhs): Simplify logic.
6604         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
6605         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
6606         (is_gimple_formal_tmp_reg): Similarly.
6607         * tree-gimple.h: Update decls.
6608         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
6609         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
6610         * tree-ssa-live.c (var_union, type_var_init): Likewise.
6611
6612 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
6613
6614         * c4x.c (legitimize_operands): Remove calls to
6615         preserve_subexpressions_p.
6616
6617 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
6618
6619         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
6620         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
6621
6622 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
6623
6624         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
6625         Objective-C++ extensions.
6626         * gengtype.c (get_file_basename): Match entire subdirectory name
6627         ('cp', 'objc', 'objcp') rather than just its suffix.
6628         (get_base_file_bitmap): Allow for files to belong to more than one
6629         language.
6630         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
6631         used by more than one front-end.
6632
6633 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
6634
6635         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
6636         avoid use of preserve_subexpressions_p.
6637
6638 2004-08-17  Richard Henderson  <rth@redhat.com>
6639
6640         PR 17051
6641         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
6642
6643 2004-08-17  DJ Delorie  <dj@redhat.com>
6644
6645         * doc/extend.texi: Document new xstormy16 attribute.
6646
6647         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
6648         (xstormy16_splittable_below100_or_register): New.
6649         (combine_bnp): New.
6650         (xstormy16_reorg): New.
6651         (TARGET_MACHINE_DEPENDENT_REORG): Define.
6652
6653         * config/stormy16/stormy16.md (movqi_internal): Make name public.
6654         (movhi_internal): Likewise.
6655         (cbhranchhi): Likewise.
6656         (cbhranchhi_neg): Likewise.
6657         (andhi3): Only allow splittable below100 operands.
6658         (iorhi3): Likewise.
6659         (peephole2): New and/zero_extend->and peephole.
6660         (peephole2): New load/ior/save->set1 peephole.
6661         (peephole2): New load/and/save->clr1 peephole.
6662         (bclrx, bclrx2, bclr7, bclr15): New.
6663         (bsetx, bsetx2, bset7, bset15): New.
6664
6665         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
6666         liberal about acceptable 'B' masks.
6667
6668         * config/stormy16/stormy16-protos.h
6669         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
6670         xstormy16_below100_operand, xstormy16_below100_or_register,
6671         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
6672         (PREDICATE_CODES): Add new predicates.
6673
6674         * config/stormy16/stormy16.c
6675         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
6676         xstormy16_below100_operand, xstormy16_below100_or_register,
6677         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
6678         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
6679         (xstormy16_legitimate_address_p): Allow below100 symbols.
6680         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
6681         (xstormy16_expand_move): Leave below100 operands as-is.
6682         (xstormy16_encode_section_info): Encode below100 symbols.
6683         (xstormy16_strip_name_encoding): New.
6684         (xstormy16_print_operand): Print 'b' as shift mask.
6685         (xstormy16_attribute_table): Add below100 attributes.
6686         (xstormy16_handle_below100_attribute): New.
6687
6688         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
6689         (XSTORMY16_SECTION_FUNCTION): New.
6690         (EXTRA_SECTION_FUNCTIONS): Define using the above.
6691         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
6692         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
6693         (ASM_OUTPUT_LABELREF): Define.
6694
6695         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
6696         (movhi_internal): Add below100 support.
6697         (andhi3): Add below100 support.
6698         (iorhi3): Add below100 support.
6699         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
6700
6701 2004-08-17  James E Wilson  <wilson@specifixinc.com>
6702
6703         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
6704         of VOIDmode for comparison code mode.
6705         * config/mips/mips.md: For conditional move patterns, use mode of
6706         first compare operand for comparison mode, instead of VOIDmode.
6707
6708         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
6709         normal and -ffast-math code.
6710
6711 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
6712
6713         PR c++/15871
6714         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
6715
6716 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
6717
6718         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
6719
6720 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
6721
6722         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
6723         for non Darwin targets.
6724         (*call_value_nonlocal_darwin64): Likewise.
6725
6726 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
6727
6728         * config/rs6000/rs6000.c (rs6000_function_value): Check for
6729         altivec mode for altivec return register.
6730
6731 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
6732
6733         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
6734         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
6735         * config/rs6000/rs6000.md: Include darwin.md.
6736         (builtin_setjmp_receiver): Add DImode case.
6737         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
6738         Darwin bits.
6739
6740 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
6741
6742         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
6743         trees.
6744         * tree-vectorizer.h: New File: Same.
6745         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
6746         * common.opt (ftree-vectorize): New flag to enable vectorization.
6747         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
6748         vectorization pass.
6749         * tree-data-ref.h (init_data_ref): Additional argument.
6750         (array_base_name_differ_p): Moved to tree-data-ref.c.
6751         * tree-data-ref.c (array_base_name_differ_p): Revised.
6752         (initialize_data_dependence_relation): Call array_base_name_differ_p
6753         with an extra argument.
6754         (analyze_all_data_dependences): Same.
6755         (init_data_ref): Additional argument is_read to set DR_IS_READ.
6756         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
6757         file.
6758         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
6759         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
6760         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
6761         vectorization pass.
6762         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
6763         (tree_ssa_loop_done): Call scev_finalize.
6764         (tree_vectorize): Define the new vectorization pass.
6765         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
6766         size of the vector they support (until support for multiple vector
6767         sizes is added to the vectorizer).
6768         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
6769         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
6770         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
6771         documentation.
6772
6773 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
6774
6775         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
6776         usage.
6777         (generate_protocol_list, handle_impent): Likewise.
6778
6779 2004-08-17  Roger Sayle  <roger@eyesopen.com>
6780
6781         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
6782         ensure that call_used_regs is a superset of both fixed_regs and
6783         call_really_used_regs.
6784
6785 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
6786
6787         PR target/17019
6788         * arm.md (addsi3_cbranch_scratch): Correct case labels.
6789
6790 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
6791
6792         PR middle-end/17036
6793         * fold-const.c (fold): Check for integer operand when
6794         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
6795         Pinski  <pinskia@physics.uc.edu>.
6796
6797 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
6798
6799         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
6800         No need to check if in a cross configuration.
6801         * configure: Regenerate.
6802
6803         * calls.c (precompute_register_parameters):
6804         Inline preserve_subexpressions_p ().
6805         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
6806         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
6807         Likewise.
6808         * expr.c (get_subtarget): Likewise.
6809         * rtl.h (preserve_subexpressions_p): Remove.
6810         * stmt.c (preserve_subexpressions_p): Remove.
6811
6812         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
6813         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
6814         Abort on gimplified cases.
6815
6816 2004-08-16  James E Wilson  <wilson@specifixinc.com>
6817
6818         * tree.h (VECTOR_FLOAT_TYPE_P): New.
6819         (FLOAT_TYPE_P): Use it.
6820         * c-typeck.c (build_binary_op): After convert calls, check for
6821         check for ERROR_MARK operands.
6822
6823 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
6824
6825         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
6826         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
6827         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
6828         (genobjs static pattern rule): Remove %.c dependency.
6829         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
6830         Rename rules; delete commands; fix dependencies.
6831         (mostlyclean): Do not delete temporary source copies.
6832         * configure.ac: Delete all references to BUILD_PREFIX and
6833         BUILD_PREFIX_1.
6834         * configure: Regenerate.
6835
6836         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
6837         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
6838         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
6839         with #ifndef GENERATOR_FILE so that nothing from those headers
6840         is used.
6841
6842         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
6843
6844 2004-08-16  Adam Nemet  <anemet@lnxw.com>
6845
6846         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
6847
6848 2004-08-16  Andrew Pinski  <apinski@apple.com>
6849
6850         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
6851         extraneous semicolon.
6852
6853 2004-08-16  Devang Patel  <dpatel@apple.com>
6854
6855         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
6856         * print-tree.c (print_node): Print DECL_PRESERVE_P.
6857         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
6858         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
6859         * target.h (struct gcc_target): New member, mark_decl_preserved.
6860         * hooks.c (hook_void_charptr): Rename to ...
6861         (hook_void_constcharptr): ... new name.
6862         * hooks.h (hook_void_charptr): Rename to ..
6863         (hook_void_constcharptr): ... new name.
6864         * tree.h (DECL_PRESERVE_P): New #define.
6865         (struct tree_decl): New member, preserve_flag.
6866         * varasm.c (assemble_start_function): Mark decl preserved.
6867         (assemble_variable): Same.
6868         * darwin.c (darwin_mark_decl_preserved): New function.
6869         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
6870         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
6871         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
6872
6873 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
6874
6875         * c-decl.c (grokdeclarator): Allow for function definition where
6876         innermost declarator has attributes.
6877
6878 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
6879
6880         * except.c (get_exception_filter, build_post_landing_pads,
6881         dw2_build_landing_pads): Use target-specific mode for 'filter'.
6882         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
6883         * target.h (eh_return_filter_mode): New field added.
6884         * targhooks.c (default_eh_return_filter_mode): Defined.
6885         * targhooks.h (default_eh_return_filter_mode): Declared.
6886         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
6887
6888 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
6889
6890         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
6891         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
6892         * configure: Regenerate.
6893
6894 2004-08-16  Stan Shebs  <shebs@apple.com>
6895
6896         Basic support for 64-bit Darwin.
6897         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
6898         (machopic_legitimize_pic_address): Similarly, plus use Pmode
6899         instead of SImode.
6900         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
6901         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
6902         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
6903         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
6904         (PROCESSOR_DEFAULT64): Define.
6905         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
6906         Darwin.
6907         * config/rs6000/rs6000.md: Include darwin.md.
6908         (builtin_setjmp_receiver): Add DImode case.
6909         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
6910         Darwin.
6911         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
6912         (rs6000_emit_move): Add DImode case to Darwin bits.
6913         (machopic_output_stub): Use .quad if 64-bit.
6914         * invoke.texi: Document -m32 and -m64.
6915
6916 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
6917
6918         * doc/extend.texi (AltiVec builtins): Document additional differences
6919         from the Motorola AltiVec PIM.
6920
6921 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
6922
6923         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
6924         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
6925         (struct tree_common): Update public_flag documentation.
6926
6927 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
6928
6929         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6930         Check for artificial variables, not is_gimple_tmp_var.
6931         * tree-ssa-live.c (var_union): Likewise.
6932
6933 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
6934
6935         * calls.c (load_register_parameters): Remove spurious FIXME token.
6936
6937 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
6938
6939         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
6940         (c-lang.o): Depend on c-objc-common.h.
6941         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
6942         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
6943         * c-lang.c: Include c-objc-common.h.
6944         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
6945         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
6946         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
6947         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
6948         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
6949         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
6950         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
6951         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
6952         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
6953         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6954         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
6955         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
6956         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
6957         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
6958         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
6959         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
6960         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
6961         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
6962         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
6963         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
6964         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
6965         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
6966         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
6967         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
6968         Move to c-objc-common.h.
6969         * c-objc-common.c: Include c-objc-common.h.
6970         * c-objc-common.h: New file.
6971
6972 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
6973             Andrew Pinski  <pinskia@physics.uc.edu>
6974
6975         PR target/14931
6976         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
6977         style.
6978
6979 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
6980
6981         * tree.h (build_int_cst): New.
6982         (build_int_2): Remove.
6983         * tree.c (build_int_2): Remove.
6984         (build_int_cst): New.
6985         (make_vector_type, build_common_tree_nodes,
6986         build_common_tree_nodes_2): Use build_int_cst.
6987         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
6988         expand_builtin_strpbrk, expand_builtin_fputs,
6989         build_string_literal, expand_builtin_printf,
6990         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
6991         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
6992         fold_builtin_isdigit, simplify_builtin_strstr,
6993         simplify_builtin_strpbrk, fold_builtin_fputs,
6994         simplify_builtin_sprintf): Use build_int_cst.
6995         * c-common.c (start_fname_decls, fix_string_type,
6996         c_common_nodes_and_builtins, c_init_attributes,
6997         shorten_compare): Likewise.
6998         * c-decl.c (complete_array_type,
6999         check_bitfield_type_and_width): Likewise.
7000         * c-lex.c (interpret_integer, lex_charconst): Likewise.
7001         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
7002         * c-pretty-print.c (pp_c_integer_constant): Likewise.
7003         * c-typeck.c (really_start_incremental_init, push_init_level,
7004         set_nonincremental_init_from_string): Likewise.
7005         * calls.c (load_register_parameters): Likewise.
7006         * convert.c (convert_to_pointer): Likewise.
7007         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
7008         build_fn_info_type, build_ctr_info_value, build_gcov_info):
7009         Likewise.
7010         * except.c (init_eh, assign_filter_values, assign_filter_values):
7011         Likewise.
7012         * expmed.c (store_fixed_bit_field, extract_bit_field,
7013         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
7014         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
7015         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
7016         * expr.c (convert_move, emit_group_load, emit_group_store,
7017         expand_assignment, store_constructor, store_field,
7018         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7019         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
7020         invert_truthvalue, optimize_bit_field_compare,
7021         decode_field_reference, all_ones_mask_p, constant_boolean_node,
7022         fold_div_compare, fold, fold_read_from_constant_string,
7023         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
7024         * function.c (assign_parm_setup_block): Likewise.
7025         * stmt.c (shift_return_value, expand_end_case_type,
7026         estimate_case_costs): Likewise.
7027         * stor-layout.c (layout_type, initialize_sizetypes,
7028         set_min_and_max_values_for_integral_type): Likewise.
7029         * tree-chrec.c (chrec_fold_multiply_poly_poly,
7030         reset_evolution_in_loop): Likewise.
7031         * tree-chrec.h (build_polynomial_chrec): Likewise.
7032         * tree-complex.c (build_replicated_const): Likewise.
7033         * tree-eh.c (honor_protect_cleanup_actions,
7034         lower_try_finally_onedest, lower_try_finally_copy,
7035         lower_try_finally_switch): Likewise.
7036         * tree-mudflap.c (mf_build_string, mx_register_decls,
7037         mudflap_register_call, mudflap_enqueue_constant): Likewise.
7038         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
7039         * tree-pretty-print.c (dump_generic_node): Likewise.
7040         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
7041         Likewise.
7042         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
7043         * tree-ssa-loop-niter.c (number_of_iterations_cond,
7044         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
7045         Likewise.
7046
7047         * config/alpha/alpha.c (alpha_initialize_trampoline,
7048         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
7049         * config/arm/arm.c (arm_get_cookie_size): Likewise.
7050         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
7051         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
7052         * config/i860/i860.c (i860_va_start): Likewise.
7053         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7054         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
7055         mips_gimplify_va_arg_expr): Likewise.
7056         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7057         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
7058         add_compiler_branch_island): Likewise.
7059         * config/s390/s390.c (s390_va_start): Likewise.
7060         * config/sh/sh.c (sh_va_start): Likewise.
7061         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
7062         Likewise.
7063         * config/xtensa/xtensa.c (xtensa_va_start,
7064         xtensa_gimplify_va_arg_expr): Likewise.
7065
7066         * objc/objc-act.c (build_objc_string_object,
7067         build_objc_symtab_template, init_def_list, init_objc_symtab,
7068         init_module_descriptor, generate_static_references,
7069         build_selector_translation_table, get_proto_encoding,
7070         build_typed_selector_reference, build_selector_reference,
7071         build_next_objc_exception_stuff,
7072         build_method_prototype_list_template, generate_descriptor_table,
7073         generate_protocols, build_protocol_initializer,
7074         build_ivar_list_template, build_method_list_template,
7075         build_ivar_list_initializer, generate_ivars_list,
7076         generate_dispatch_table, generate_protocol_list,
7077         build_category_initializer, build_shared_structure_initializer,
7078         generate_shared_structures, handle_impent,
7079         generate_objc_image_info): Use build_int_cst.
7080
7081 2004-08-15  Ben Elliston  <bje@au.ibm.com>
7082
7083         * vec.h: Comment improvements.
7084
7085 2004-08-14  Roger Sayle  <roger@eyesopen.com>
7086
7087         * c-common.c (shorten_compare, pointer_int_sum,
7088         c_common_truthvalue_conversion, boolean_increment): Replace calls
7089         to build with calls to buildN.
7090         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
7091         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
7092         gimplify_switch_stmt): Likewise.
7093         * c-typeck.c (default_function_array_conversion,
7094         build_component_ref, build_array_ref, build_function_call,
7095         pointer_diff, build_unary_op, build_conditional_expr,
7096         build_compound_expr, build_modify_expr, c_finish_goto_label,
7097         c_finish_goto_ptr, c_finish_return, c_finish_loop,
7098         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
7099         build_binary_op): Likewise.
7100
7101 2004-08-15  Steven Bosscher  <stevenb@suse.de>
7102
7103         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
7104
7105 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7106
7107         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
7108         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
7109         * fixinc/fixincl.x: Rebuilt.
7110
7111 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
7112
7113         * config/mips/mips-protos.h (mips_symbolic_constant_p)
7114         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
7115         (mips_small_data_pattern_p): Declare.
7116         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
7117         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
7118         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
7119         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
7120         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
7121         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
7122         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
7123         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
7124         (pc_or_label_operand, call_insn_operand, move_operand)
7125         (consttable_operand, symbolic_operand, general_symbolic_operand)
7126         (global_got_operand, local_got_operand, stack_operand)
7127         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
7128         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
7129         (mips_small_data_pattern_p): Replace previous small_data_pattern
7130         predicate.  Turn into a bool () (rtx) function.
7131         * config/mips/predicates.md: New file.
7132         * config/mips/mips.md: Include it.  Use the target-independent
7133         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
7134         trap_comparison_operator and equality_op to equality_operator.
7135         Replace uses of small_int with the equivalent const_arith_operand.
7136         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
7137         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
7138         to fcc_reload_operand.
7139         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
7140
7141 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7142
7143         PR libstdc++/17005 partial fix.
7144         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
7145         except when generating ANSI/C89 code.
7146
7147 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
7148
7149         * c-common.c (shorten_compare): Use force_fit_type directly.
7150
7151 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
7152             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
7153             Dave Korn  <dk@artimi.com>
7154
7155         * doc/install.texi (Building): Avoid duplicate reference to GNU
7156         make requirement.
7157         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
7158
7159 2004-08-14  Richard Henderson  <rth@redhat.com>
7160
7161         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
7162         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
7163
7164 2004-08-13  Richard Henderson  <rth@redhat.com>
7165
7166         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
7167         for constant_call_address_operand.
7168         (call_value_pop_1, call_value_1): Likewise.
7169         (sibcall_value_1, call_value_1_rex64): Likewise.
7170
7171 2004-08-13  James E Wilson  <wilson@specifixinc.com>
7172
7173         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
7174         Correct mode from SFmode to DFmode.
7175
7176 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
7177
7178         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
7179         __cstring_object and __image_info sections with the no_dead_strip
7180         attribute.
7181
7182 2004-08-13  Roger Sayle  <roger@eyesopen.com>
7183             David Billinghurst  <David.Billinghurst@riotinto.com>
7184
7185         PR libgfortran/15930
7186         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
7187         * fixinc/fixincl.x: Regenerate.
7188         * fixinc/tests/base/internal/math_core.h: New file.
7189
7190 2004-08-13  Richard Henderson  <rth@redhat.com>
7191
7192         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
7193         (dbxout_function_end): Remove ifdefs for it.
7194         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
7195
7196 2004-08-13  Richard Henderson  <rth@redhat.com>
7197
7198         * Makefile.in (insn-preds.o): Depend on TREE_H.
7199         * genpreds.c (write_insn_preds_c): Include tree.h.
7200         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
7201         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
7202         const48_operand, and_operand, or_operand, mode_width_operand,
7203         mode_mask_operand, mul8_operand, const0_operand,
7204         hard_fp_register_operand, hard_int_register_operand,
7205         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
7206         samegp_function_operand, direct_call_operand, small_symbolic_operand,
7207         global_symbolic_operand, call_operand, symbolic_operand,
7208         dtp16_symbolic_operand, dtp32_symbolic_operand,
7209         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
7210         gottp_symbolic_operand, alpha_comparison_operator,
7211         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
7212         signed_comparison_operator, alpha_fp_comparison_operator,
7213         divmod_operator, fix_operator, aligned_memory_operand,
7214         unaligned_memory_operand, reg_or_unaligned_mem_operand,
7215         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
7216         reg_no_subreg_operand, addition_operation): Move to predicates.md.
7217         (reg_or_const_int_operand): Remove.  Replace all users with
7218         reg_or_cint_operand.
7219         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
7220         (resolve_reload_operand): Split out of aligned_memory_operand.
7221         * config/alpha/alpha-protos.h: Update for exports.
7222         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
7223         * config/alpha/alpha.md: Include predicates.md.
7224         * config/alpha/predicates.md: New file.
7225
7226 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
7227
7228         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
7229         fields with a pointer to the instruction definition.
7230         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
7231         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
7232         (write_attr_case, write_const_num_delay_slots): Update accordingly.
7233         (write_attr_case, write_const_num_delay_slots): Write the name of
7234         an insn next to its case statement.
7235         * genoutput.c (data): Add a filename field.
7236         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
7237         (output_insn_data): Print the location of each insn definition.
7238         * genrecog.c (write_action): Print the name of an insn above
7239         the statement that returns its code.
7240
7241 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
7242
7243         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
7244         * config/libgloss.h: Likewise.
7245         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
7246         * c4x/c4x-modes.def: Likewise.
7247         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
7248         (c4x_rptb_nop_p): Likewise.
7249         (c4x_rptb_valid_p): Likewise.
7250         (c4x_rptb_insert): Likewise.
7251         (c4x_address_conflict): Likewise.
7252         * config/c4x/c4x.md: Likewise.
7253         * config/frv/frv.md: Likewise.
7254         * config/i386/athlon.md: Likewise.
7255         * config/i386/i386.md: Likewise.
7256         * config/i386/predicates.md: Likewise.
7257         * config/ia64/ia64.c: Likewise.
7258         * config/ia64/itanium1.md: Likewise.
7259         * config/ia64/itanium2.md: Likewise.
7260         * config/iq2000/iq2000.md: Likewise.
7261         * config/mcore/mcore.c: Likewise.
7262         * config/mips/mips.c: Likewise.
7263         * config/mips/r3900.h: Likewise.
7264         * config/mips/sb1.md: Likewise.
7265         * config/pa/milli64.S: Likewise.
7266         * config/pa/pa.c: Likewise.
7267         * config/pa/pa.h: Likewise.
7268         * config/rs6000/8540.md: Likewise.
7269
7270 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
7271
7272         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
7273
7274 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
7275
7276         * sh.md (cbranch define_delay) Use cond_delay_slot for
7277         non-anulled condition too.
7278
7279 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
7280
7281         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
7282         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7283         any_parallel_operand, lmw_operation, stmw_operation,
7284         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
7285         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
7286         any_parallel_operand.
7287         (return_and_restore_fpregs_{si,di}): Same.
7288
7289 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
7290
7291         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
7292         if pred->singleton != PARALLEL, issue a warning and pretend it was.
7293         Also issue a warning for any predicate we don't know about.
7294
7295 2004-08-12  Richard Henderson  <rth@redhat.com>
7296
7297         * config/i386/i386.c (internal_label_prefix): Export.
7298         (internal_label_prefix_len, struct ix86_address,
7299         ix86_decompose_address, maybe_get_pool_constant,
7300         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
7301         memory_address_length): Export.
7302         (any_fp_register_operand, fp_register_operand,
7303         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
7304         x86_64_general_operand, x86_64_szext_general_operand,
7305         x86_64_nonmemory_operand, x86_64_movabs_operand,
7306         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
7307         x86_64_zext_immediate_operand, const_int_1_31_operand,
7308         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
7309         tls_symbolic_operand, global_dynamic_symbolic_operand,
7310         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
7311         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
7312         constant_call_address_operand, const0_operand, const1_operand,
7313         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
7314         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
7315         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
7316         general_no_elim_operand, nonmemory_no_elim_operand,
7317         index_register_operand, q_regs_operand, flags_reg_operand,
7318         non_q_regs_operand, zero_extended_scalar_load_operand,
7319         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
7320         ix86_comparison_operator, ix86_carry_flag_operator,
7321         fcmov_comparison_operator, promotable_binary_operator,
7322         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
7323         mult_operator, div_operator, arith_or_logical_operator,
7324         memory_displacement_operand, cmpsi_operand, long_memory_operand,
7325         aligned_operand): Move to predicates.md as define_predicates.
7326         (tls_symbolic_operand_1): Remove.
7327         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
7328         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
7329         (legitimize_address): Merge tls_symbolic_operand contents.
7330         (ix86_expand_move): Likewise.
7331         * config/i386/i386-protos.h: Update for exports.
7332         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
7333         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
7334         * config/i386/i386.md: Include predicates.md.
7335         * config/i386/predicates.md: New file.
7336
7337 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
7338
7339         PR c++/16924
7340         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
7341         SYMBOL_REF_DECL.
7342         (i386_pe_mark_dllimport): Likewise.
7343         (i386_pe_encode_section_info): Likewise, when overriding
7344         dllimport attribute.
7345
7346 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
7347
7348         * configure.ac: When testing for flex, nm, ar, and bison, check
7349         that they will actually be built.
7350         * configure: Regenerate.
7351
7352 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
7353
7354         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
7355         (MOVE_MAX_PIECES): Define.
7356
7357 2004-08-12  Devang patel  <dpatel@apple.com>
7358
7359         * dbxout.c (dbxout_begin_prologue): New function.
7360         (dbx_debug_hooks): Use new begin prologue hook.
7361         (dbxout_function_end): Emit N_ENSYM.
7362         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
7363
7364 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
7365
7366         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
7367         argument is float*.
7368
7369         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
7370         for vec_dss.
7371
7372         * doc/extend.texi (AltiVec builtins): Fix description for recent
7373         changes.  Update operation list to match current support.
7374
7375 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7376
7377         * config/s390/s390.c (struct s390_frame_layout): New struct as element
7378         of struct machine_function.
7379         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
7380         changed all uses.
7381         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
7382         changed all uses.
7383         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
7384         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
7385         (s390_frame_area, s390_register_info): New functions.
7386         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
7387         for base register.
7388         (s390_return_addr_rtx, s390_return_address_offset)
7389         (s390_va_start, s390_gimplify_va_arg)
7390         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
7391         layouts.
7392         (s390_frame_info): Functionality partly moved to s390_register_info.
7393         Made adaptions for new stack layout.
7394         (save_gprs, restore_gprs): Changed meaning of second parameter and
7395         adapted all callers.
7396
7397         * config/s390/s390.h (s390_backchain_string): New global variable.
7398         (MASK_BACKCHAIN): Removed definition.
7399         (TARGET_BACKCHAIN): Changed check.
7400         (TARGET_KERNEL_BACKCHAIN): New macro.
7401         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
7402         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
7403         "kernel-backchain".
7404         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
7405
7406         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
7407         as condition.  Adjusted for new stack layout.
7408
7409         * doc/invoke.texi: Added documentation for new option
7410         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
7411         "-mno-backchain".
7412
7413 2004-08-12  Paul Brook  <paul@codesourcery.com>
7414
7415         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
7416         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
7417
7418 2004-08-12  David Daney  <ddaney@avtrex.com>
7419
7420         * java/gcj.texi:  Add subsection on signal usage.
7421
7422 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
7423
7424         * expr.c (move_by_pieces): Set alignment for move to minimum of
7425         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
7426         alignment, but not less than the original alignment.
7427         (move_by_pieces_ninsns): Same.
7428         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
7429         (store_by_pieces_1): Same.
7430
7431 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
7432
7433         PR tree-optimization/16867
7434         * tree.c (is_global_var): New function.
7435         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
7436         Call is_global_var.
7437         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
7438         Update all users.
7439         (is_global_var): Declare.
7440         * tree-dfa.c (dump_variable): Display global and addressable
7441         attributes.
7442         (add_referenced_var): Clarify documentation when marking
7443         variables call-clobbered.
7444         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
7445         instead of needs_to_live_in_memory.
7446         (mark_call_clobbered): If the variable is a tag, mark it
7447         DECL_EXTERNAL.
7448         * tree-gimple.c (is_gimple_reg): Don't check for
7449         TREE_ADDRESSABLE.
7450         (is_gimple_non_addressable): Likewise.
7451         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
7452         needs to be marked call-clobbered.
7453         (setup_pointers_and_addressables): Call is_global_var instead
7454         of needs_to_live_in_memory.
7455         * tree-ssa-dce.c (need_to_preserve_store): Remove.
7456         Update all users with is_global_var.
7457         (mark_stmt_if_obviously_necessary): Fix processing of aliased
7458         stores.  Don't check the virtual definitions.  Rather, check
7459         whether the store is going into global memory.
7460         (find_obviously_necessary_stmts): Get the symbol from the PHI
7461         result.
7462         * tree-ssa-operands.c (get_call_expr_operands): Do not add
7463         clobbering may-defs if the call does not have side effects.
7464
7465 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
7466
7467         PR c++/16276
7468         * output.h (default_function_rodata_section,
7469         default_no_function_rodata_section): New prototypes.
7470         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
7471         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
7472         (TARGET_ASM_OUT): Add it.
7473         * varasm.c (default_function_rodata_section,
7474         default_no_function_rodata_section): New functions.
7475         * final.c (final_scan_insn): Call
7476         targetm.asm_out.function_rodata_section instead of
7477         readonly_data_section.
7478         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
7479         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7480         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7481         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
7482         Likewise.
7483         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7484         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
7485         Likewise.
7486         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
7487         Likewise.
7488         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7489         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7490         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
7491
7492 2004-08-12  Paul Brook  <paul@codesourcery.com>
7493
7494         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
7495         frame info.
7496         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
7497         DWARF2_UNWIND_INFO.
7498
7499 2004-08-12  Ben Elliston  <bje@au.ibm.com>
7500
7501         PR target/16286
7502         * config/rs6000/altivec.h: Change vector to __vector throughout.
7503         (Except for the `vector' macro itself).
7504
7505 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
7506
7507         * genpreds.c: Add capability to generate predicate bodies as
7508         well as function prototypes.  Write function prototypes for
7509         the generic predicates too.
7510         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
7511         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
7512         (write_match_code, write_predicate_expr, write_one_predicate_function)
7513         (parse_option): New functions.
7514         (output_predicate_decls): Delete.
7515         (main): Read the machine description, process DEFINE_PREDICATE or
7516         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
7517         as appropriate.
7518
7519         * genrecog.c (struct decision_test): Replace index with
7520         struct pred_data pointer.
7521         (next_index): Remove, unused.
7522         (pred_table, preds, special_mode_pred_table): Delete.
7523         (compute_predicate_codes, process_define_predicate): New functions.
7524         (validate_pattern, add_to_sequence, write_switch): Update for
7525         new data structures.
7526         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
7527         Check both error_count and have_error.
7528
7529         * gensupport.c (in_fname, first_predicate): New globals.
7530         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
7531         (predicate_table, last_predicate, old_pred_table)
7532         (old_special_pred_table): New statics.
7533         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
7534         (add_predicate, init_predicate_table): New functions.
7535         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
7536         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
7537         it or max_include_len.  Call init_predicate_table.
7538         (read_rtx): Run the predicate queue after the attribute queue
7539         but before all the others.
7540         * gensupport.h (in_fname, struct pred_data, first_predicate)
7541         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
7542         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
7543         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
7544         * dummy-conditions.c: Don't include bconfig.h, system.h,
7545         coretypes.h, tm.h, or system.h.  Do include stddef.h.
7546         Duplicate declaration of struct c_test from gensupport.h.
7547
7548         * Makefile.in (OBJS-common): Add insn-preds.o.
7549         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
7550         (insn-preds.c, insn-preds.o): New rules.
7551         (s-preds): Also generate insn-preds.c.
7552         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
7553         Update dependencies.
7554         (print-rtl.o, print-rtl1.o): Correct dependencies.
7555
7556         * recog.h: Delete prototypes of predicate functions.
7557
7558         * doc/md.texi (Predicates): New section with complete
7559         documentation of operand/operator predicates.  Remove some
7560         incomplete documentation of predicates from other places.
7561         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
7562         PREDICATE_CODES; indicate that both are deprecated in favor
7563         of define_predicate/define_special_predicate.
7564
7565         * config/ia64/ia64.c: All predicate function definitions moved
7566         to ia64.md, except
7567         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
7568         (ia64_expand_load_address, ia64_expand_move):
7569         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
7570
7571         * config/ia64/ia64.md: All predicates now defined here.
7572         (symbolic_operand): Is now a special predicate.
7573
7574         * config/ia64/ia64.h: Declare ia64_section_threshold.
7575         (PREDICATE_CODES): Delete.
7576
7577 2004-08-12  Richard Henderson  <rth@redhat.com>
7578
7579         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
7580         * c-semantics.c (add_stmt): Set it.
7581         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
7582         before instantiating a variable sized type.
7583
7584 2004-08-12  Richard Henderson  <rth@redhat.com>
7585
7586         * stor-layout.c (round_up, round_down): Move ...
7587         * fold-const.c (round_up, round_down): ... here.  Use
7588         multiple_of_p to avoid any arithmetic at all.
7589
7590 2004-08-12  Richard Henderson  <rth@redhat.com>
7591
7592         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
7593         (gimplify_init_ctor_preeval_1): New.
7594         (gimplify_init_ctor_preeval): New.
7595         (gimplify_init_ctor_eval): New.
7596         (gimplify_init_constructor): Use them.  Always gimplify the LHS
7597         object first.
7598
7599 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
7600
7601         (This patch is part of merge of objc-improvements-branch
7602         into mainline.)
7603
7604         * doc/frontends.texi: Mention Objective-C++ in addition to
7605         Objective-C.
7606         * doc/install.texi: Add 'obj-c++' to list of configurable
7607         languages.
7608         * doc/invoke.texi: Rename Objective-C option headings to
7609         indicate they also apply to Objective-C++.  List file
7610         extensions for Objective-C++ sources.  Mention that
7611         ObjC and ObjC++ compilations may also use C and C++ options,
7612         respectively.  Point users to doc/standards.texi for
7613         further info on ObjC and ObjC++.
7614         * doc/sourcebuild.texi: Mention the objcp/ directory and
7615         the Objective-C++ sources it contains.
7616         * doc/standards.texi: Update link to Apple ObjC site;
7617         add link to gcc readings.html WWW doc.
7618
7619 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
7620
7621         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
7622         and 2004-07-14 changes.
7623
7624 2004-08-12  Paul Brook  <paul@codesourcery.com>
7625
7626         * doc/invoke.texi: Fix typo.
7627
7628 2004-08-11 Devang Patel  <dpatel@apple.com>
7629
7630         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
7631         and -no_dead_strip_inits_and_terms.
7632         (LINK_SPEC): Same.
7633         * doc/invoke.texi (Darwin Options): Document -dead_strip and
7634         -no_dead_strip_inits_and_terms.
7635
7636 2004-08-11  Paul Brook  <paul@codesourcery.com>
7637
7638         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
7639         (arm_load_pic_register): ... to this.
7640         * config/arm/arm.c (arm_finalize_pic): Rename ...
7641         (arm_load_pic_register): ... to this.  Always output insns at the
7642         current location.  Load via low reg in thumb mode.
7643         (arm_expand_prologue): Call arm_load_pic_register.
7644         (thumb_expand_prologue): Ditto.
7645         * config/arm/arm.h (FINALIZE_PIC): Remove.
7646         * config/arm/arm.md (builtin_setjmp_receiver): Call
7647         arm_load_pic_register.
7648
7649 2004-08-11  Paul Brook  <paul@codesourcery.com>
7650
7651         * arm.c (thumb_force_lr_save): Add prototype.
7652         (thumb_compute_save_reg_mask): New function.
7653         (thumb_find_work_register): New function.
7654         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
7655         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
7656         Don't clobber r3 when removing pretend args.
7657         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
7658         (thumb_output_function_prologue): Use new functions.
7659         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
7660         * arm.h (THUMB_REG_PUSHED_P): Remove.
7661
7662 2004-08-11  James E Wilson  <wilson@specifixinc.com>
7663
7664         PR rtl-optimization/16490
7665         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
7666         global_live_at_end for new basic block if already set for other blocks.
7667
7668 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
7669
7670         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
7671
7672         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
7673         (mfcr rlwinm rlwinm patterns): Set length to 12.
7674
7675 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
7676
7677         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
7678         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
7679         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
7680         (start_ssa_stmt_operands): Delete.
7681         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
7682         struct stmt_operands_d.
7683         (build_ssa_operands): New extern entry point.
7684         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
7685         building code, replace with create_ssa_artficial_load_stmt().
7686         * tree-ssa-operands.c (struct voperands_d): Delete.
7687         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
7688         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
7689         (free_uses, free_defs, free_vuses, free_v_may_defs,
7690         free_v_must_defs): Remove dealloc parameter.
7691         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
7692         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
7693         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
7694         vector comparisons, ssa_name reuse, and allocations here.
7695         (verify_start_operands): Delete.
7696         (finalize_ssa_stmt_operands): Set new operands by calling finalize
7697         routines.
7698         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
7699         (append_def, append_usei): Simplify to simple accumulation.
7700         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
7701         duplicates and simple accumulation.
7702         (free_ssa_operands): Free vectors in a stmt_operand structure.
7703         (build_ssa_operands): New. Create a new stmt_operand structure from
7704         a stmt and an old set of stmt_operands.
7705         (get_stmt_operands): Simplify and call build_ssa_operands.
7706         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
7707         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
7708         add_call_read_ops): Don't pass prev_vops around anymore.
7709         (note_addressable): Return if no stmt annotation.
7710         (copy_virtual_operands): Access v_may_def operands through a struct.
7711         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
7712         hash tables without treating the stmt as a real stmt.
7713         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
7714         v_may_def def and use through a struct instead of 2 array elements.
7715         (struct v_may_def_optype_d): Use v_may_def_operand_type.
7716         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
7717
7718 2004-08-11  Nick Clifton  <nickc@redhat.com>
7719
7720         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
7721         this funciton's behaviour.  Return true when the current function
7722         has a section attribute and -mlong-calls is in effect.
7723         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
7724         short-call marker when -mlong-calls is in effect and the function
7725         has a section attribute.
7726
7727 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
7728
7729         * stmt.c (expand_return): If asked to return the RESULT_DECL,
7730         just call expand_value_return on result_rtl.
7731
7732 2004-08-10  Richard Henderson  <rth@redhat.com>
7733
7734         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
7735         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
7736         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
7737         (add_location_or_const_value_attribute): ... not here.  Use
7738         loc_descriptor_from_tree if possible.
7739         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
7740         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
7741         values specially.
7742         (loc_descriptor_from_tree): New.  Update callers.
7743         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
7744         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
7745         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
7746         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
7747         and BUILT_IN_STACK_RESTORE.
7748         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
7749         * stmt.c (expand_stack_alloc): Remove.
7750         * tree-mudflap.c (mx_register_decls): Don't look for
7751         BUILT_IN_STACK_ALLOC.
7752         * tree-nested.c (convert_local_reference): Likewise.
7753         * tree.h (DECL_VALUE_EXPR): New.
7754
7755 2004-08-10  Richard Henderson  <rth@redhat.com>
7756
7757         * stor-layout.c (round_up): Check for 0/1 before dividing.
7758         (round_down): Likewise.
7759
7760         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
7761
7762 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
7763
7764         * config.gcc (arm*-*-eabi*): New target.
7765         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
7766         (TARGET_LIB_INT_CMP_BIASED): Likewise.
7767         * expmed.c (expand_divmod): Try a two-valued divmod function as a
7768         last resort.
7769         * gthr.h: Remove bogus tokens at end of #pragma.
7770         * optabs.c (expand_twoval_binop_libfunc): New function.
7771         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
7772         (prepare_float_lib_cmp): Try reversing the condition.
7773         (debug_optab_libfuncs): New function.
7774         * optabs.h (expand_twoval_binop_libfunc): Declare.
7775         * config/arm/arm.c (arm_init_libfuncs): New function.
7776         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
7777         (TARGET_INIT_LIBFUNCS): Define it.
7778         * config/arm/arm.h (TARGET_BPABI): New macro.
7779         * config/arm/arm-protos.h
7780         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
7781         * config/arm/bpabi.S: New file.
7782         * config/arm/bpabi.c: Likewise.
7783         * config/arm/bpabi.h: Likewise.
7784         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
7785         (__aeabi_drsub): Likewise.
7786         (__aeabi_dsub): Likewise.
7787         (__aeabi_dadd): Likewise.
7788         (__aeabi_ui2d): Likewise.
7789         (__aeabi_i2d): Likewise.
7790         (__aeabi_f2d): Likewise.
7791         (__aeabi_dmul): Likewise.
7792         (__aeabi_ddiv): Likewise.
7793         (__aeabi_cdrcmple): Likewise.
7794         (__aeabi_cdcmpeq): Likewise.
7795         (__aeabi_cdcmple): Likewise.
7796         (__aeabi_dcmpeq): Likewise.
7797         (__aeabi_dcmplt): Likewise.
7798         (__aeabi_dcmple): Likewise.
7799         (__aeabi_dcmpge): Likewise.
7800         (__aeabi_dcmpgt): Likewise.
7801         (__aeabi_dcmpun): Likewise.
7802         (__aeabi_d2iz): Likewise.
7803         (__aeabi_d2uiz): Likewise.
7804         (__aeabi_d2f): Likewise.
7805         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
7806         (__aeabi_frsub): Likewise.
7807         (__aeabi_fsub): Likewise.
7808         (__aeabi_fadd): Likewise.
7809         (__aeabi_ui2f): Likewise.
7810         (__aeabi_i2f): Likewise.
7811         (__aeabi_fmul): Likewise.
7812         (__aeabi_fdiv): Likewise.
7813         (__aeabi_cfrcmple): Likewise.
7814         (__aeabi_cfcmpeq): Likewise.
7815         (__aeabi_cfcmple): Likewise.
7816         (__aeabi_fcmpeq): Likewise.
7817         (__aeabi_fcmplt): Likewise.
7818         (__aeabi_fcmple): Likewise.
7819         (__aeabi_fcmpge): Likewise.
7820         (__aeabi_fcmpgt): Likewise.
7821         (__aeabi_fcmpun): Likewise.
7822         (__aeabi_f2iz): Likewise.
7823         (__aeabi_f2uiz): Likewise.
7824         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
7825         (__aeabi_uidivmod): New function or alias.
7826         (__aeabi_idivmod): Likewise.
7827         (__aeabi_idiv0): Likewise.
7828         (__aeabi_ldiv0): Likewise.
7829         (__aeabi_llsr): Likewise.
7830         (__aeabi_lasr): Likewise.
7831         (__aeabi_llsl): Likewise.
7832         (bpabi.S): Include it.
7833         * config/arm/libgcc-bpabi.ver: New file.
7834         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
7835         (LINK_SPEC): Remove.
7836         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
7837         __aeabi_ulcmp.
7838         * config/arm/t-bpabi: New file.
7839         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
7840         (TARGET_LIB_INT_CMP_BIASED): Likewise.
7841
7842 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
7843
7844         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
7845         * config/rs6000/rs6000.md (clrmemsi): New pattern.
7846         * config/rs6000/rs6000.c (expand_block_clear): New function.
7847         (expand_block_move): Convert alignment to bits.  Use SImode and
7848         HImode for unaligned addresses if not STRICT_ALIGNMENT.
7849
7850 2004-08-10  Caroline Tice  <ctice@apple.com>
7851
7852         * varasm.c (unlikely_section_label): New global variable.
7853         (unlikely_text_section_name): New global variable.
7854         (text_section):  Remove alignment statement.
7855         (unlikely_text_section): Remove alignment statement; use
7856         unlikely_section_label rather than hard-coded string.
7857         (assemble_start_function): Initialize unlikely_section_label and
7858         unlikely_text_section_name;  make sure cold section is properly
7859         aligned at start of function; output unlikely_section_label if
7860         appropriate.
7861
7862 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
7863
7864         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
7865         * config/s390/s390.c (s390_canonicalize_comparison): New function.
7866         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
7867         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
7868         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
7869         ("*tmqi_mem"): Remove SUBREG from pattern.
7870         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
7871         ("*andsi3_cconly"): Likewise.
7872
7873 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
7874
7875         PR target/16909
7876         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
7877
7878 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
7879
7880         * doc/sourcebuild.texi (compat testing): Document available test
7881         framework commands.  Use the preferred spelling of DejaGnu.
7882
7883 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
7884
7885         * lambda.h: Add matrix type, and prototypes for remainder of
7886         matrix and vector functions.
7887         (lambda_vector_mult_const): New function.
7888         (lambda_vector_negate): Ditto.
7889         (lambda_vector_add): Ditto.
7890         (lambda_vector_add_mc): Ditto.
7891         (lambda_vector_copy): Ditto.
7892         (lambda_vector_zerop): Ditto.
7893         (lambda_vector_equal): Ditto.
7894         (lambda_vector_min_nz): Ditto.
7895         (lambda_vector_first_nz): Ditto.
7896         (lambda_vector_matrix_mult): Ditto.
7897         * lambda-mat.c: New file.
7898         * Makefile.in (lambda-mat.o): New.
7899
7900 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
7901
7902         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
7903         after linking stmt into the program.
7904         (bsi_remove): Don't call modify_stmt.
7905         * tree-complex.c (update_complex_assignment,
7906         expand_complex_comparison): Call modify_stmt after changing the stmt.
7907         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
7908         removing the stmt.
7909         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
7910         the stmt, and only if needed.
7911         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
7912         expression.
7913         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
7914         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
7915         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
7916         (eliminate_redundant_computations): Don't pass an annotation. Call
7917         modify_stmt rather than setting the annotation directly.
7918         (record_equivalences_from_stmt): Remove unused local 'j'.
7919         (cprop_operand): Take a stmt rather than an annotation as a parameter.
7920         Call modify_stmt.
7921         (cprop_into_stmt): Pass stmt rather than annotation.
7922         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
7923         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
7924         modify_stmt.
7925         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
7926
7927 2004-08-10  Jason Merrill  <jason@redhat.com>
7928
7929         PR middle-end/16948
7930         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
7931         the RESULT_DECL.
7932
7933 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
7934
7935         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
7936         hash function.
7937
7938 2004-08-10  Roger Sayle  <roger@eyesopen.com>
7939
7940         * config/mips/mips.md: New reciprocal square root patterns that
7941         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
7942
7943 2004-08-10  Paul Brook  <paul@codesourcery.com>
7944
7945         * config/arm/arm-protos.h (arm_set_return_address,
7946         thumb_set_return_address): Add prototypes.
7947         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
7948         * config/arm/arm.c (arm_compute_func_type,
7949         use_return_insn, arm_compute_save_reg0_reg12_mask,
7950         arm_compute_save_reg_mask, arm_output_function_prologue,
7951         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
7952         current_function_calls_eh_return.
7953         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
7954         old eh code.
7955         (arm_set_return_address, thumb_set_return_address): New functions.
7956         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
7957         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
7958         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
7959         (epilogue): Use the stackadj register.
7960         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
7961
7962 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
7963
7964         PR target/3144
7965         * expr.c (move_by_pieces_ninsns): Add max_size argument.
7966         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
7967         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
7968         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
7969         but using MOVE_RATIO.
7970         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
7971         (can_store_by_pieces): Change max_size type to unsigned int.
7972         (store_by_pieces_1): Likewise.  Pass max_size to
7973         move_by_pieces_ninsns.
7974         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
7975         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
7976         to move_by_pieces_ninsns.
7977         (STORE_BY_PIECES_P): Define.
7978         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
7979         to move_by_pieces_ninsns.
7980         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
7981
7982         * config/i386/i386.h (CLEAR_RATIO): Define.
7983
7984 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
7985
7986         * expr.c (expand_expr_real_1): Add back code that was not dead.
7987
7988 2004-08-09  Andrew Pinski  <apinski@apple.com>
7989
7990         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
7991         which is found to be compatible before returning the aliasing set.
7992
7993 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
7994
7995         * ggc-zone.c (struct alloc_zone): Add statistics counters.
7996         (always_collect): New flag.
7997         (ggc_alloc_zone_1): Update statistics support.  Don't include
7998         overhead in allocated counter.
7999         (sweep_pages): Update allocated counter for large pages.  Don'y
8000         include overhead.
8001         (ggc_collect_1): Always collect.
8002         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
8003         whether to collect.
8004         (SCALE, LABEL): New macros.
8005         (ggc_print_statistics): Add statistics support.
8006
8007 2004-08-09  Roger Sayle  <roger@eyesopen.com>
8008
8009         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
8010         (init_expmed): Fix potential overrun problem with "all.reg".
8011         (expand_sdiv2_pow2): Add an alternate implementation for signed
8012         division, if the target provides a suitable conditional move insn.
8013
8014 2004-08-09  Paul Brook  <paul@codesourcery.com>
8015         Richard Henderson  <rth@redhat.com>
8016
8017         * unwind-dw2.c (uw_install_context_1): Update target saved stack
8018         pointer.
8019
8020 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
8021
8022         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
8023         Check DATA limit only if there's no AS limit.  Ignore insanely
8024         low DATA limits.
8025         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
8026         but take care that the AS limit isn't overrun.
8027         * doc/invoke.texi: Update documentation of min-heapsize parameter.
8028
8029 2004-08-09  Jeff Law  <law@redhat.com>
8030
8031         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
8032         (tree-ssa-threadupdate.o): Add dependencies.
8033         * tree-ssa-threadupdate.c: New file.
8034         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
8035         (rewrite_vars_out_of_ssa): Remove prototype.
8036         (cleanup_tree_cfg): Returns a bool.
8037         * tree.h (thread_through_all_blocks): Prototype.
8038         * tree-outof-ssa.c  (SSANORM_*): Move into here.
8039         (remove_ssa_form): Now static.
8040         (rewrite_vars_out_of_ssa): Kill.
8041         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
8042         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
8043         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
8044         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
8045         anything was changed.
8046         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
8047         from the PHI's annotation rather than the edge associated with
8048         the new argument.
8049         * tree-ssa-dom.c (redirection_edges): Kill.
8050         (redirect_edges_and_update_ssa_graph): Kill.
8051         (tree_ssa_dominator_optimize): Do not reset forwardable flag
8052         for blocks anymore.  Do not initialize redirection_edges.
8053         Call thread_through_all_blocks.  Simplify code for cleanup
8054         of the CFG and iterating.  No longer call cleanup_tree_cfg
8055         outside the iteration loop.
8056         (thread_across_edge): No longer mess with forwardable blocks.
8057
8058 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
8059
8060         * explow.c (memory_address): Use memory_address_p.
8061         * recog.c (general_operand): Likewise.
8062         * regrename.c: No need to define REG_OK_STRICT.
8063
8064 2004-08-09  Steven Bosscher  <stevenb@suse.de>
8065
8066         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
8067         New timers.
8068         * gcse.c: Include timevar.h.
8069         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
8070         and global_copy_prop_count.
8071         (local_const_prop_count, local_copy_prop_count): New static globals.
8072         (gcse_main): Set the right timevar for each pass.
8073         (cprop_jump): Increment global_const_prop_count when a constant is
8074         propagated.  Add "GLOBAL" to dump output.
8075         (cprop_insn): Increment global_const_prop_count when a constant is
8076         propagated, or global_copy_prop_count when a copy is propagated.
8077         (do_local_cprop): Likewise for local_const_prop_count and
8078         local_copy_prop_count.
8079         (one_cprop_pass): Initialize const/cprop counters to zero.
8080         Print out results of local and global const/cprop separately.
8081         (bypass_block): Break over-length line.
8082         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
8083         for bb-reorder.o and tracer.o.
8084
8085 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8086
8087         * Makefile.in (GTFILES): Remove stmt.c
8088         (stmt.o): Do not depend on gt-stmt.h.
8089         * emit-rtl.c (emit_line_note): Do not call
8090         set_file_and_line_for_stmt.
8091         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
8092         do everything.
8093         * function.c (free_after_parsing): Do not free STMT field.
8094         (allocate_struct_function): Do not call init_stmt_for_function.
8095         (assign_stack_temp_for_type): Do not accept values of keep
8096         other than 0 or 1.
8097         (init_temp_slots): Do not initialize removed variables.
8098         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
8099         and X_VAR_TEMP_SLOT_LEVEL fields.
8100         * rtl.h (set_file_and_line_for_stmt): Remove.
8101         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
8102         struct stmt_status, cond_stack, case_stack, nesting_stack,
8103         nesting_depth, emit_locus, set_file_and_line_for_stmt,
8104         same_case_target_p, init_stmt_for_function, emit_nop,
8105         expand_start_cond, expand_start_elseif, expand_start_else,
8106         expand_elseif, expand_end_cond): Remove.
8107         (preserve_subexpressions_p): Remove references to CFUN->STMT.
8108         (expand_start_case, expand_end_case_type): Remove, merge into...
8109         (expand_case): ... this one, including other bits from
8110         expand_expr_real_1.  Inline same_case_target_p.  Turn members
8111         of CASE_STACK into local variables.
8112         (emit_case_bit_tests): Inline same_case_target_p.
8113         (add_case_node): Add HEAD argument, return new head of the list,
8114         do not handle default label here.
8115         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
8116         expand_start_elseif, current_nesting_level, expand_start_case,
8117         expand_end_case_type, expand_end_case, add_case_node,
8118         init_stmt_for_function, expand_elseif): Remove prototypes.
8119         (expand_case): Add prototype.
8120
8121 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8122
8123         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
8124
8125 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8126
8127         * expr.c (var_rtx): Remove.
8128         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
8129         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
8130         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
8131         Abort.
8132         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
8133         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
8134         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
8135
8136 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
8137         Ayal Zaks <zaks@il.ibm.com>
8138
8139         * common.opt (freschedule-modulo-scheduled-loops): New flag.
8140         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
8141         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
8142         when -freschedule-modulo-scheduled-loops flag is not specified.
8143         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
8144         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
8145         More accurate placing of insn in row of partial schedule.
8146         (ps_insn_find_column): New function.
8147         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
8148         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
8149         (schedule_region): Use sched_is_disabled_for_current_region_p.
8150         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
8151
8152 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8153
8154         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
8155         change.
8156
8157 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8158
8159         * config/i386/i386.c (ix86_expand_clrmem): Properly call
8160         gen_strset for 64bit target.
8161
8162 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
8163
8164         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
8165
8166 2004-08-07  Jason Merrill  <jason@redhat.com>
8167
8168         Make return in memory explicit.
8169         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
8170         (assign_parm_find_data_types): Remove code for old front end
8171         invisible reference handling.
8172         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
8173         (expand_function_end): Likewise.
8174         * gimplify.c (gimplify_return_expr): Handle a dereferenced
8175         RESULT_DECL.
8176         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
8177         (declare_return_variable): Handle DECL_BY_REFERENCE.
8178         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
8179         (cp_genericize_r): Use convert_from_reference.
8180         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
8181         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
8182
8183         * c-common.c (c_warn_unused_result): Check TREE_USED before
8184         warning about a CALL_EXPR with an unused value.
8185
8186 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
8187
8188         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
8189         to the compiler.  Use -fshort-wchar by default.
8190
8191 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
8192
8193         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
8194         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
8195         threshhold.
8196         * doc/invoke.texi (param): Document min-crossjump-insns.
8197
8198 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
8199
8200         PR c/13282
8201         * c.opt (Wmissing-field-initializers): New option.
8202         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
8203         * c-typeck.c (pop_init_level): Guard the missing field warning with
8204         warn_missing_field_initializers rather than extra_warnings.
8205         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
8206         some of the explanation from...
8207         (-Wextra): ...here.  Say that the missing field warning can be
8208         seperately controlled by -Wmissing-field-initializers.
8209
8210 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
8211
8212         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
8213         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
8214         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
8215         * tree.def (ENTRY_VALUE_EXPR): Remove.
8216
8217 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
8218
8219         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
8220         the places where it is actually needed.  Don't use repz; stosb
8221         for -Os with sufficiently small constant sizes.
8222         For sufficiently small repz; stos{l,q} repeat counts use a sequence
8223         of stos{l,q} instructions instead.
8224
8225 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8226
8227         PR tree-optimization/16807
8228         * loop-iv.c (dump_iv_info): Dump invariants correctly.
8229         (iv_subreg, iv_extend): Express value of invariant purely in
8230         base field.
8231
8232 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
8233
8234         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
8235         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
8236
8237 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
8238
8239         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
8240         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
8241         pre_dec_operand.
8242         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
8243         pattern until reload is finished to allow better code generation
8244         and split them completely into separate instrunctions.
8245         (*andsi3_split): New pattern.
8246
8247 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
8248
8249         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
8250         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
8251         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
8252         * tree.h (handle_dll_attribute): Declare.  Test
8253         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
8254         * c-common.h (c_determine_visibility): Declare.
8255         * c-common.c (c_determine_visibility): New function.
8256         * c-decl.c (finish_decl): Use it.
8257         (finish_function): Likewise.
8258         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
8259         zero, by default.  Use #if, not #ifdef, to test it.
8260         * config/arm/arm.c (arm_attribute_table): Use
8261         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
8262         #if.
8263         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
8264         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
8265         to 1.
8266         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
8267         * config/i386/i386.c (ix86_attribute_table): Use
8268         handle_dll_attribute for dllimport/dllexport.  Test
8269         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
8270         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
8271         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
8272         it to 1.
8273         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
8274         with #if.
8275         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
8276         it to 1.
8277         * doc/extend.texi (dllexport): Clarify and correct documentation.
8278         (dllimport): Likewise.
8279         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
8280         handle_dll_attribute.
8281
8282 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8283
8284         * tree-ssa-loop-manip.c: New file.
8285         * Makefile.in (tree-ssa-loop-manip.o): Add.
8286         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
8287         Declare.
8288         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
8289         form.
8290         (tree_ssa_loop_done): Verify loop closed ssa form.
8291         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
8292
8293 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8294
8295         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
8296         pa_asm_output_aligned_local): New functions.
8297         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
8298         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
8299         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
8300         pa_asm_output_aligned_common.
8301         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
8302         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
8303         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
8304         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
8305         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
8306         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
8307         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
8308         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
8309         common data.
8310
8311 2004-08-05  Andrew Pinski  <apinski@apple.com>
8312
8313         * objc/objc-act.c (build_objc_string_object): Mark the address
8314         expression as constant.
8315
8316 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
8317
8318         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
8319         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
8320         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
8321
8322 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
8323
8324         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
8325         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
8326         out, and associated obsolete comments.
8327
8328 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
8329
8330         * tree.h (force_fit_type): Return a tree, take three flags.
8331         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
8332         TREE_CONSTANT_OVERFLOW here.
8333         (int_const_binop, const_binop): Adjust.
8334         (size_int_type): Do sign extension here.
8335         (fold_convert_const, optimize_bit_field_compare,
8336         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
8337         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
8338         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
8339
8340 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8341
8342         PR tree-optimization/16864
8343         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
8344         for ssa names without default_def.
8345
8346 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
8347
8348         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
8349         frame pointer, restore eax with an ebp-relative address.
8350
8351 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
8352
8353         PR 14516
8354         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
8355         * c-common.h (make_rtl_for_local_static): Delete.
8356         * c-decl.c (shadow_tag_warned): Clean up comment.
8357         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
8358         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
8359         * c-semantics.c (make_rtl_for_local_static): Delete.
8360         * expr.c (init_block_move_fn): Use set_user_assembler_name.
8361         (init_block_clear_fn): Likewise.
8362         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
8363         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
8364         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
8365         * tree.h (make_decl_rtl): Remove second parameter.
8366         (set_user_assembler_name): New.
8367         * varasm.c (set_user_assembler_name): New.
8368         (make_decl_rtl): Remove second parameter.  Update callers in many
8369         files.
8370
8371 2004-08-05  Adam Nemet  <anemet@lnxw.com>
8372
8373         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
8374         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
8375         to LynxOS 4.0.
8376         * gthr-lynx.h: New file.
8377         * config/lynx-ng.h: Remove file.
8378         * config/lynx.h: Update to LynxOS 4.0.
8379         * config/t-lynx: New file.
8380         * config/i386/lynx-ng.h: Remove file.
8381         * config/i386/lynx.h: Update to LynxOS 4.0.
8382         * config/rs6000/lynxbase.h: Remove file.
8383         * config/rs6000/lynx.h: Update to LynxOS 4.0.
8384         * config/rs6000/t-lynx: New file.
8385         * doc/install.texi (Options specification): Remove reference to
8386         LynxOS from systems where --with-gnu-as makes a difference.
8387
8388 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
8389
8390         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
8391         __UINTMAX_TYPE__.
8392         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
8393         __INTMAX_MAX__.
8394         (c_cpp_builtins): Call it.
8395         * doc/cpp.texi: Update.
8396
8397 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
8398
8399         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
8400         cost.
8401
8402 2004-08-04  Jan Hubicka  <jh@suse.cz>
8403
8404         * basic-block.h (profile_staus): New global variable.
8405         * cfg.c (profile_status): Declare.
8406         (check_bb_profile): Break out from ....; use profile_status
8407         (dump_flow_info): ... here.
8408         * cfgbuild.c (find_basic_blocks): Set profile_status.
8409         * cfgexpand.c (tree_expand_cfg): Likewise.
8410         * predict.c (estimate_probability): Likewise.
8411         * profile.c (branch_prob): Likewise.
8412         * tree-cfg.c (build_tree_cfg): Likewise.
8413         (dump_function_to_file): Use check_bb_profile.
8414         * tree-pretty-print (dump_bb_header): Likewise.
8415         * tree-profile.c (do_tree_profiling): Cleanup.
8416
8417 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
8418
8419         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
8420         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
8421         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
8422         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
8423         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
8424         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
8425         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
8426         (ggc-none.o, errors.o): Move rule to generators section;
8427         correct dependencies.
8428         (min-insn-modes.o): Move rule to generators section; remove
8429         unnecessary explicit command; correct dependencies.
8430         (print-rtl.o, print-rtl1.o): Correct dependencies.
8431         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
8432         (mostlyclean): Update.
8433
8434         * errors.c: Include bconfig.h not config.h.  Correct comment.
8435         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
8436         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
8437         * print-rtl.c: Don't include tm_p.h.
8438
8439         * rtl.h: Move forward-decl of struct function down where it's
8440         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
8441         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
8442
8443 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8444             Jeff Law  <law@redhat.com>
8445
8446         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
8447         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
8448         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
8449         manipulate the duplicated ssa names.
8450         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
8451         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
8452         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
8453         New functions.
8454         (release_ssa_name): Do not release ssa names that may have multiple
8455         definitions.
8456         * tree.h (release_ssa_name_force, mark_for_rewrite,
8457         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
8458         marked_ssa_names): Declare.
8459         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
8460         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
8461         Update call to rewrite_ssa_into_ssa.
8462
8463 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
8464
8465         * defaults.h (TARGET_DECLSPEC): New macro.
8466         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
8467         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
8468         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
8469         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
8470         __declspec support.
8471         (TARGET_DECLSPEC): Define.
8472         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
8473         __declspec support.
8474         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
8475         __declspec support.
8476         (TARGET_DECLSPEC): Define.
8477         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
8478         __declspec support.
8479         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
8480         support.
8481         * doc/tm.texi (TARGET_DECLSPEC): Document.
8482
8483         * doc/extend.texi: Fix typo in comment.
8484
8485 2004-08-04  Paul Brook  <paul@codesourcery.com>
8486
8487         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
8488         (TARGET_CXX): Use it.
8489         * target.h (struct gcc_target): Add cdtor_returns_this.
8490         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
8491         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
8492         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
8493
8494 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
8495
8496         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
8497         low/high pair. Do range checking directly.
8498         (interpret_integer): Adjust.
8499
8500 2004-08-04  Nick Clifton  <nickc@redhat.com>
8501
8502         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
8503         GCC ABI.
8504         * doc/invoke.texi: Document this new switch and also the -mrenesas
8505         switch.
8506
8507 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
8508
8509         * cfglayout.c (insn_locators_initialize): Update the current
8510         location before initializing a location.
8511
8512 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
8513
8514         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
8515         (dbxout_function_end): Return after emitting the "Lscope" symbol
8516         under the same conditions that this function formerly wasn't called.
8517         Add explanatory comments.
8518
8519         PR 14860
8520         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
8521         on the new decl.
8522
8523         PR 13956
8524         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
8525         functions, broken out of dbxout_block.
8526         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
8527         stabs too, if it contains symbols.  Use the begin_label and
8528         the Lscope label (emitted by dbxout_function_end) for the
8529         range of this block.
8530
8531 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
8532
8533         * doc/install.texi: Update autoconf version requirements.
8534
8535 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
8536
8537         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
8538         * recog.c (general_operand, immediate_operand, nonmemory_operand)
8539         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
8540         * regclass.c (record_reg_classes): Likewise.
8541         * reload.c (find_reloads): Likewise.
8542         * reload1.c (reload): Likewise.
8543
8544 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
8545
8546         * gensupport.c (init_md_reader_args_cb): Renamed from
8547         init_md_reader_args.  Add third option, callback function for
8548         parsing program-specific options.  Add diagnosis of incorrect
8549         number of input files.
8550         (init_md_reader): Fold into init_md_reader_args_cb.
8551         (init_md_reader_args): Now a thin wrapper around
8552         init_md_reader_args_cb.
8553         * gensupport.h: Update prototypes.
8554
8555         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
8556         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
8557         * genrecog.c: No need to diagnose lack of an input file;
8558         init_md_reader_args will handle it.
8559         * genconditions.c: Likewise, and use init_md_reader_args.
8560         * genconstants.c: Likewise, and no need to call read_md_rtx.
8561
8562 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
8563
8564         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
8565         declarations.
8566
8567 2004-08-03  Mike Stump  <mrs@apple.com>
8568
8569         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
8570         for frameworks.
8571         * doc/invoke.texi (Darwin Options): Update to reflect above.
8572
8573 2004-08-03  Roger Sayle  <roger@eyesopen.com>
8574
8575         PR middle-end/16790
8576         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
8577         truncations, not just global truncations.
8578
8579 2004-08-03  Andrew Pinski  <apinski@apple.com>
8580
8581         PR bootstrap/16865
8582         * loop-iv.c (simplify_using_assignment): Initialize lhs.
8583
8584 2004-08-03  Paul Brook  <paul@codesourcery.com>
8585
8586         * gcc/doc/install.texi: Document MPFR requirement.
8587
8588 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
8589
8590         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
8591         and mmap() explicitly instead of relying on preset autoconf cache
8592         variables.
8593         * configure: Regenerate.
8594
8595 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
8596
8597         PR target/16570
8598         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
8599         to tmake_file.
8600         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
8601         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
8602         to tmake_file.
8603
8604         * config/i386/t-gmm_malloc: New file.
8605         * config/i386/t-pmm_malloc: Likewise.
8606
8607         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
8608
8609 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
8610             Tanguy Fautrà <tfautre@pandora.be>
8611
8612         * config/i386/pmm_malloc.h: New file.
8613
8614 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
8615
8616         * config/i386/gmm_malloc.h: New file.
8617
8618 2004-08-03  Dale Johannesen  <dalej@apple.com>
8619
8620         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
8621         * c-common.c: Include opts.h.
8622         (c_common_get_alias_set): Fix check for a single input file.
8623         * toplev.c: Remove current_file_decl.
8624         * tree.h: Ditto.
8625
8626 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
8627
8628         * config.gcc (arm*-*-symbianelf*): New target.
8629         * config/arm/symbian.h: New file.
8630
8631         * gthr-gnat.c: Add visibility #pragmas.
8632         * gthr-gnat.h : Likewise.
8633         * gthr.h: Likewise.
8634         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
8635         (__ffsDI2): Likewise.
8636         (__clzSI2): Likewise.
8637         (__ctzSI2): Likewise.
8638         (__ctzDI2): Likewise.
8639         (__popcountSI2): Likewise.
8640         (__popcountDI2): Likewise.
8641         (__paritySI2): Likewise.
8642         (__parityDI2): Likewise.
8643         * libgcc2.h: Add visibility #pragmas.
8644         (__clzDI2): Add prototype.
8645         (__clzSI2): Likewise.
8646         (__ctzSI2): Likewise.
8647         (__ffsDI2): Likewise.
8648         (__ffsSI2): Likewise.
8649         (__ctzDI2): Likewise.
8650         (__popcountSI2): Likewise.
8651         (__popcountDI2): Likewise.
8652         (__paritySI2): Likewise.
8653         (__parityDI2): Likewise.
8654         * unwind-dw2-fde.h: Add visibility #pragmas.
8655         * unwind.h: Likewise.
8656
8657 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
8658             Dale Johannesen  <dalej@apple.com>
8659             Roger Sayle  <roger@eyesopen.com>
8660
8661         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
8662         constants more accurately.  Adjust costs for FMA instructions.
8663         Add cases for most logical and float operations.  Recurse into
8664         most operands.
8665
8666 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
8667
8668         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
8669
8670 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
8671
8672         * ra-build.c (conflicts_between_webs): For webs that cross a call add
8673         conflicts to regs_invalidated_by_call.
8674
8675 2004-08-03  Paul Brook  <paul@codesourcery.com>
8676
8677         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
8678
8679 2004-08-03  Jan Hubicka  <jh@suse.cz>
8680
8681         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
8682         ARRAY_REF argument.
8683
8684 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
8685
8686         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
8687         arm968es, arm10e, arm1020e, arm1022e.
8688         * invoke.texi: Update list of ARM cores.
8689         * arm-tune.md: Regenerate.
8690
8691 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
8692
8693         * arm/gentune.sh: New file.
8694         * arm/t-arm: New file.
8695         * arm/arm-tune.md: New file (autogenerated).
8696         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
8697         * arm.md (attribute tune): Delete.  Include arm-tune.md.
8698
8699 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
8700
8701         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
8702         penultimate parameter.  All callers adjusted.
8703         (struct prefix_list): Remove used_flag_ptr.
8704         (find_a_file): Do not set *pl->used_flag_ptr.
8705         (warn_B, warn_std_ptr): Remove.
8706
8707 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
8708             Mostafa Hagog <mustafa@il.ibm.com>
8709
8710         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
8711
8712 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
8713
8714         * dwarf2out.c (output_call_frame_info): Don't change data format
8715         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
8716         label.  Use 'true' not '1'.
8717         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
8718         required.
8719
8720 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8721
8722         * gdbinit.in: Reflect previous changes to rtunion_def.
8723
8724 2004-08-02  Roger Sayle  <roger@eyesopen.com>
8725
8726         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
8727         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
8728
8729 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8730
8731         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
8732         vec_p_reserve.
8733         * langhooks.h (lang_hooks::builtin_function): Rename parameter
8734         from "class" to "bt_class".
8735
8736 2004-08-02  Paul Brook  <paul@codesourcery.com>
8737
8738         PR rtl-optimization/15068
8739         * flow.c (init_propagate_block_info): Check condition is reversible.
8740
8741 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8742
8743         * gengtype.h (options::info): Change type to const char *.
8744         (enum gc_used_enum): Move out of struct type scope.
8745         * gengtype.c (create_option): Convert initializer for option::info to
8746         appropiate type.
8747         (adjust_field_type, walk_type, write_func_for_structure,
8748         write_root, write_roots): Remove pointless cast.
8749
8750 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
8751
8752         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
8753
8754 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8755
8756         * rtl.h (union rtunion_def): Have all members  start with the
8757         prefix "rt_".
8758         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
8759         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
8760         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
8761         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
8762         access.
8763         * gengtype.c (adjust_field_rtx_def): Likewise.
8764         * rtlanal.c (loc_mentioned_in_p): Likewise.
8765
8766 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
8767
8768         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
8769         Replace uses of mips/elf64.h with mips/elf.h
8770         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
8771         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
8772         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
8773         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
8774         (HANDLE_SYSV_PRAGMA): Delete.
8775         (ASM_OUTPUT_DEF): Fix formatting.
8776         * config/mips/elf64.h: Delete.
8777
8778 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
8779
8780         * config/ia64/ia64.c (got_symbolic_operand): Do require a
8781         symbol+offset operand to have its offset be zero mod 0x3fff
8782         when GOT entries are in use.  Clarify logic in SYMBOL_REF
8783         case.  Clarify comments.
8784         (ia64_expand_load_address): Split a symbol+offset load when
8785         the offset is nonzero mod 0x3fff, not 0x1fff.
8786
8787 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
8788
8789         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
8790         if trying to *store* to a non-offsettable address.
8791         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
8792         a nonoffsettable address.
8793         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
8794         Clean up.
8795         (movti_string): Don't move GPRs to a nonoffsettable address.
8796         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
8797
8798 2004-08-02  Ben Elliston  <bje@au.ibm.com>
8799
8800         PR target/16155
8801         * config/rs6000/altivec.h: Replace typeof with __typeof__.
8802
8803 2004-08-01  Richard Henderson  <rth@redhat.com>
8804
8805         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
8806         variable sized types.
8807
8808 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
8809
8810         * doc/invoke.texi: In the MIPS options section, remove the passage
8811         saying that -mexplicit-relocs is usually disabled for -mabicalls
8812         -fno-unit-at-a-time.
8813         * config/mips/mips.c (override_options): Remove the code that enforced
8814         this rule.
8815
8816 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
8817
8818         * config/mips/mips.md (cprestore): Provide two alternatives, one for
8819         an in-range offset and one for an out-of-range offset.  Wrap the latter
8820         in .set macro/.set nomacro if it's inside a .set nomacro block.
8821
8822 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
8823
8824         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
8825         (mips_restore_gp): Declare.
8826         * config/mips/mips.c (mips_add_offset): Add a scratch register
8827         argument.  Reimplement in rtl only, reusing MIPS16 logic from
8828         mips_output_mi_thunk.
8829         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
8830         to mips_add_offset.
8831         (mips_gp_save_slot): Delete.
8832         (mips_restore_gp): New function.
8833         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
8834         * config/mips/mips.md (exception_receiver): Turn into a
8835         define_insn_and_split.  Use mips_restore_gp to do the split.
8836         (call_internal, call_value_internal, call_value_multiple_internal): Use
8837         mips_restore_gp to restore $gp.
8838
8839 2004-07-31  Andrew Pinski  <apinski@apple.com>
8840
8841         PR other/16842
8842         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
8843
8844 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
8845
8846         * c-decl.c (diagnose_mismatched_decls): Give error for external
8847         redeclaration of identifier declared with no linkage, not just
8848         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
8849         error for redeclaration with no linkage.
8850
8851 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
8852             Fariborz Jahanian <fjahanian@apple.com>
8853
8854         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
8855         non-offsettable addresses even for DImode.
8856         (rs6000_split_multireg_move): Cope with non-offsettable addresses
8857         being moved into multiple GPRs.
8858
8859         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
8860         to 64.
8861         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
8862         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
8863         to 128.
8864         * config/rs6000/darwin-ldouble.c (isless): New macro.
8865         (inf): New macro.
8866         (nonfinite): New macro.
8867         (FPKINF): Delete.
8868         (_xlqadd): Completely rewrite.
8869         (_xlqmul): Correct overflow handling.
8870         (_xlqdiv): Correct overflow handling.
8871         * config/rs6000/darwin-ldouble-format: New file.
8872
8873 2004-07-30  Roger Sayle  <roger@eyesopen.com>
8874             Richard Henderson  <rth@redhat.com>
8875
8876         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
8877         9 into the equivalent lea instruction.
8878
8879 2004-07-30  Richard Henderson  <rth@redhat.com>
8880
8881         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
8882         with DECL_INITIAL if fb_lvalue.
8883         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
8884         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
8885         with <Cxxx>.
8886         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
8887
8888 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
8889
8890         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
8891         pointer escapes through a function call, assume that the
8892         callee will dereference it.
8893         (add_pointed_to_var): Assume that VALUE is always an
8894         ADDR_EXPR.
8895         (collect_points_to_info_r): Only call add_pointed_to_var if
8896         the value is an ADDR_EXPR.
8897
8898 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
8899
8900         * tree-ssa-alias.c (create_alias_map_for): Do not get the
8901         alias set of the inner type of ARRAY_TYPEs.
8902
8903 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
8904
8905         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
8906         setting a non-register to UNDEFINED right before the call to
8907         set_lattice_value.
8908
8909 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8910
8911         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
8912
8913 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
8914
8915         * tree-ssa.c (verify_flow_sensitive_alias_info): When
8916         comparing points-to sets of different pointers, make sure the
8917         second pointer is actually referenced in the code.
8918
8919 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
8920
8921         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
8922         (got_symbolic_operand): Remove unreachable code.
8923         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
8924         setjmp_operand; add entry for tls_symbolic_operand.
8925         * config/ia64/ia64-protos.h: Remove all prototypes of
8926         predicate functions.
8927
8928 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
8929
8930         * c-common.h (lang_post_pch_load): New variable.
8931         * c-pch.c (lang_post_pch_load): Define it.
8932         (c_common_read_pch): Use it.
8933         * cgraphunit.c (record_call_1): Give the front end a chance to
8934         record additional needed entities when a variable is marked as
8935         needed.
8936         * tlink.c (recompile_files): Robustify.
8937         (scan_linker_output): If a symbol is assigned to a file,
8938         but after recompilation is not present there, issue an error
8939         message.
8940
8941 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8942
8943         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
8944         Take orig_loop argument and pass it to set_level.
8945         (schedule_sm): Pass the correct orig_loop to force_move_till.
8946
8947 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8948
8949         * cfgloop.c (update_latch_info): Update dominator of the new block.
8950         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
8951         info.
8952         * dominance.c (verify_dominators): Check that the dominance tree is
8953         connected.
8954         (recount_dominator): Ignore unreachable blocks.
8955         (iterate_fix_dominators): Cleanup old dominance information before
8956         recomputing it.
8957
8958 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
8959
8960         * tree-ssa-operands.c (get_expr_operands): Revert changes
8961         to ADDR_EXPR processing introduced by:
8962             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8963             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
8964
8965 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
8966
8967         * doc/implement-c.texi: Add C90 subclause references.  Point to
8968         preprocessor documentation instead of duplicating it.  Add points
8969         only present in C90.  Fill in documentation for all points.
8970
8971 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8972
8973         * pa.c (output_movb): Correct typo.
8974
8975 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
8976
8977         * ra.h (single_reg_in_regclass): Declare.
8978         * ra.c (single_reg_in_regclass): Define.
8979         (first_hard_reg): New.
8980         (init_ra): Initialize single_reg_in_regclass.
8981         * ra-colorize.c (ok_class): New.
8982         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
8983
8984 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
8985
8986         * gcov-io.h: Allow zero tag as EOF indicator.
8987         (gcov_is_eof): Remove.
8988         (gcov_truncate): Remove.
8989         * gcov-io.c (gcov_seek): Always SEEK_SET.
8990         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
8991         EOF tag.
8992         * coverage.c (read_counts_file): Don't use gcov_is_eof.
8993         * gcov-dump.c (dump_file): Likewise.
8994         * gcov.c (read_graph_file, read_count_file): Likewise.
8995
8996         * c-decl.c (complete_array_type): Don't gratuitously copy
8997         maxindex.  Check it always has a type.
8998
8999 2004-07-29  Steven Bosscher  <stevenb@suse.de>
9000
9001         * rtl.c (currently_expanding_to_rtl): New.
9002         * rtl.h (currently_expanding_to_rtl): Export it.
9003         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
9004
9005         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
9006         inliner hack.
9007         * config/sh/sh.c: Replace rtx_equal_function_value_matters
9008         with currently_expanding_to_rtl.
9009         * config/sh/sh.md: Likewise.
9010         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
9011
9012 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
9013
9014         Introduce sh2a support.
9015         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
9016         * config.gcc: Build multilibs for sh2a and sh2a-single by
9017         default.
9018         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
9019         default.  Split their tests out of the corresponding SH4
9020         multilibs.
9021         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
9022         multilibs for SH2a.
9023         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
9024         * config.gcc: Handle sh2a multilibs and cpu selection.
9025         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
9026         * config/sh/t-mlib-sh2a: New.
9027         * config/sh/t-mlib-sh2a-nofpu: New.
9028         * config/sh/t-mlib-sh2a-single: New.
9029         * config/sh/t-mlib-sh2a-single-only: New.
9030         2004-07-09  Nick Clifton  <nickc@redhat.com>
9031         Issue 43400
9032         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
9033         -ml and -m2a are used together.
9034         2004-03-23  DJ Delorie  <dj@redhat.com>
9035         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
9036         when we have a double-sized FPU.
9037         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
9038         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
9039         is set.
9040         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
9041         -msh2a-single and -msh2a-single-only
9042         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
9043         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
9044         is set.
9045         2004-02-20  DJ Delorie  <dj@delorie.com>
9046         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
9047         2004-02-20  Fred Fish <fnf@redhat.com>,
9048         Corinna Vinschen <vinschen@redhat.com>
9049         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
9050         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
9051         2004-02-18  DJ Delorie  <dj@redhat.com>
9052         * config/sh/sh.c (broken_move): Add support for movi20.
9053         * config/sh/sh.h: Likewise.
9054         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
9055         * config/sh/sh.md (udivsi3_sh2a): New.
9056         (udivsi3): Call it.
9057         (divsi3_sh2a): New.
9058         (divsi3): Call it.
9059         (mul_r): New.
9060         (ashlsi3_sh2a): New.
9061         (ashrsi3_sh2a): New.
9062         (lshrsi3_sh2a): New.
9063         (movsi_i): Disable for sh2a.
9064         (movsi_ie): Add movi20.
9065         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
9066         sh2a, for -m2a-nofpu mode.
9067         2004-02-13  DJ Delorie  <dj@redhat.com>
9068         * config/sh/lib1funcs.asm: Handle double vs single better.
9069         * config/sh/sh.h: Likewise.
9070         2004-02-09  DJ Delorie  <dj@redhat.com>
9071         * config/sh/crt1.asm: Add support for sh2a.
9072         * config/sh/elf.h: Likewise.
9073         * config/sh/lib1funcs.asm: Likewise.
9074         * config/sh/sh.c: Likewise.
9075         * config/sh/sh.md: Likewise.
9076         * config/sh/sh.h: Likewise.
9077         * config/sh/t-sh: Likewise.
9078
9079 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
9080
9081         * config/frv/frv.md (movqi_internal, movhi_internal,
9082         movsi_internal): Add backup alternatives for memory inputs.
9083
9084 2004-07-28  Matt Austern  <austern@apple.com>
9085
9086         * config/darwin.c (darwin_one_byte_bool): New global variable.
9087         * config/darwin.h (darwin_one_byte_bool): Declare.
9088         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
9089         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
9090         value of darwin_one_byte_bool.
9091         * doc/invoke.texi: Document -mone-byte-bool flag.
9092
9093 2004-07-28  Eric Christopher  <echristo@redhat.com>
9094
9095         * c-common.c (c_common_unsafe_for_reeval): Delete.
9096         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
9097         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
9098         * calls.c (fix_unsafe_tree): Delete.
9099         (expand_call): Delete code which used above.
9100         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
9101         * expr.c (expand_expr_real_1): Ditto.
9102         * fold-const.c (non_lvalue): Ditto.
9103         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
9104         (lhd_unsafe_for_reeval): Ditto.
9105         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
9106         * langhooks.h (unsafe_for_reeval): Ditto.
9107         (unsave_expr_now): Adjust comment.
9108         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
9109         (estimate_num_insns_1): Ditto.
9110         * tree-pretty-print.c (dump_generic_node): Ditto.
9111         * tree.c (expr_align): Ditto.
9112         (unsave_expr): Delete.
9113         (unsafe_for_reeval): Ditto.
9114         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
9115         * tree.def (UNSAVE_EXPR): Delete.
9116         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
9117
9118 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
9119
9120         * tree.h (enum tls_model): Move ...
9121         * coretypes.h: ... here.
9122
9123 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
9124
9125         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
9126
9127 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
9128
9129         * cse.c (validate_canon_reg): New function, split out from...
9130         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
9131
9132 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9133
9134         * tree-ssa-alias.c (maybe_create_global_var): Don't just
9135         return if .GLOBAL_VAR has been created.
9136
9137 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9138
9139         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
9140         every variable that may have aliases, not just tags.
9141
9142 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
9143
9144         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
9145         move_from_CR_eq_bit.
9146         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
9147
9148
9149         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
9150         e500_flip_eq_bit.
9151
9152         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
9153         output_e500_flip_eq_bit.
9154
9155         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
9156         output_e500_flip_eq_bit.
9157         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
9158         output_e500_flip_eq_bit.
9159         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
9160         (print_operand): case D.  Get to EQ bit.
9161
9162 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
9163
9164         * gcov.c (function_summary): Add missing \n.
9165
9166 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
9167
9168         Introduce sh4a support.
9169         * config.gcc: Handle sh4a multilibs and cpu selection.
9170         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
9171         * config/sh/t-mlib-sh4a: New.
9172         * config/sh/t-mlib-sh4al: New.
9173         * config/sh/t-mlib-sh4a-nofpu: New.
9174         * config/sh/t-mlib-sh4a-single: New.
9175         * config/sh/t-mlib-sh4a-single-only: New.
9176         2004-02-20  DJ Delorie  <dj@redhat.com>
9177         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
9178         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
9179         2003-08-22  Eric Christopher  <echristo@redhat.com>
9180         * config/sh/sh4a.md: Update for chip errata.
9181         2003-08-07  Eric Christopher  <echristo@redhat.com>
9182         * config/sh/sh4a.md: New file. sh4a processor description.
9183         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
9184         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
9185         of -m4a-nofpu.
9186         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
9187         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
9188         * doc/invoke.texi (SH Options): Document -m4al.
9189         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
9190         * config/sh/sh.c (expand_block_move): Remove commented-out code
9191         checked in by mistake.
9192         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
9193         single elements from SFmode vectors.
9194         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
9195         register.
9196         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
9197         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
9198         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
9199         sh_fsca_int2sf): Remove variable declarations.
9200         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
9201         sh_fsca_int2sf): New functions.
9202         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
9203         sh_fsca_int2sf_rtx): New static variables.
9204         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
9205         sh_fsca_int2sf): Declare.
9206         * config/sh/sh.md: Adjust.
9207         * doc/invoke.texi (SH Options): Document new options.
9208         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
9209         compatibility from SH4 code.
9210         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
9211         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
9212         early.
9213         (memory_movsrc_operand): Renamed to...
9214         (unaligned_load_operand): ... this.  Simplified.
9215         * config/sh/sh.h (PREDICATE_CODES): Adjust.
9216         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
9217         input operand to SImode, and adjust the others.  Introduce
9218         post-increment by peephole.
9219         * config/sh/sh.c (expand_block_move): Give the target address the
9220         same mode as the temp reg.
9221         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
9222         copying.
9223         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
9224         Introduce support for SH4a.
9225         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
9226         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
9227         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
9228         sh_fsca_int2sf): New.
9229         (sh_init_builtins): Initialize them.
9230         (print_operand): Support `d'.
9231         (expand_block_move): Use movua if src is misaligned.
9232         (memory_movsrc_operand): New.
9233         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
9234         and one of the SH4 macros.
9235         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
9236         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
9237         SELECT_SH4A_SINGLE): New.
9238         (TARGET_NONE): Add SH4A_BIT.
9239         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
9240         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
9241         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
9242         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
9243         (enum processor_type): Added PROCESSOR_SH4A.
9244         (PREDICATE_CODES): Add memory_movsrc_operand.
9245         * config/sh/sh.md: Removed unused variables.
9246         (attr cpu): Add sh4a.
9247         (attr type): Add movua, fsrra and fsca.
9248         (prefetch): New, for SH4.
9249         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
9250         (toggle_sz): Set type to fp.
9251         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
9252         (movua, extv, extzv): New.
9253         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
9254         and 4a-single-only.
9255
9256 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9257
9258         * tree-optimize.c (init_tree_optimization_passes): Schedule
9259         pass_may_alias right after the program is renamed into SSA.
9260         * tree-pass.h (PROP_alias): Define.
9261         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
9262         * tree-sra.c (pass_sra): Likewise.
9263         * tree-ssa-ccp.c (pass_ccp): Likewise.
9264         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
9265         * tree-ssa-dce.c (pass_dce): Likewise.
9266         * tree-ssa-dom.c (pass_dominator): Likewise.
9267         * tree-ssa-dse.c (pass_dse): Likewise.
9268         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
9269         * tree-ssa-loop-ch.c (pass_ch): Likewise.
9270         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
9271         * tree-ssa-pre.c (pass_pre): Likewise.
9272         * tree-tailcall.c (pass_tail_recursion): Likewise.
9273         * tree-ssa.c (pass_redundant_phi): Likewise.
9274         * tree-ssa-alias.c (aliases_computed_p): Remove.
9275         Update all users.
9276         (init_alias_info): Do not mark all type tags for renaming
9277         unconditionally.
9278         Clear may_aliases from every symbol.
9279         (setup_pointers_and_addressables): If a pointer has not been
9280         dereferenced and it had a type tag, clear it and mark the old
9281         tag for renaming.
9282
9283 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9284
9285         PR tree-optimization/16705
9286         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
9287         .GLOBAL_VAR.
9288
9289 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9290
9291         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
9292         check.
9293
9294         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
9295         don't make another one.
9296
9297         PR optimization/15077
9298         * function.h (struct function): Add field saved_static_chain_decl.
9299         Fix comment for static_chain_decl.
9300         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
9301         * tree-inline.h (save_body): Add new arg.
9302         * tree-optimize.c (tree_rest_of_compilation): Handle saving
9303         static_chain_decl.
9304
9305 2004-07-27  Richard Henderson  <rth@redhat.com>
9306
9307         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
9308         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
9309         is_gimple_addressable.
9310         * tree-gimple.c (is_gimple_addressable): Rename from
9311         is_gimple_addr_expr_arg; accept INDIRECT_REF.
9312         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
9313         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
9314         rename to is_gimple_addressable.
9315
9316 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
9317
9318         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
9319
9320 2004-07-27  Richard Henderson  <rth@redhat.com>
9321
9322         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
9323         before rounding.
9324
9325 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
9326
9327         * libgcc2.c: Change all conditionals testing
9328         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
9329         * libgcc2.h: Likewise.
9330         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
9331         TYPE_PRECISION of float80_type to 80.
9332         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
9333         of fpreg_type and float80_type to 80.
9334         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
9335         * config/m68k/netbsd-elf.h:
9336         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
9337         to evaluate to 80 whenever they would formerly have evaluated to 96.
9338         * config/i386/sco5.h: Remove unnecessary redefinition of
9339         LONG_DOUBLE_TYPE_SIZE.
9340         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
9341         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
9342         XFmode, with a bitsize of 80.  Update commentary.
9343         * config/ia64/ia64-modes.def: Likewise.
9344         * config/m68k/m68k-modes.def: Likewise.
9345
9346 2004-07-27  Steven Bosscher  <stevenb@suse.de>
9347
9348         * cfgexpand.c (tree_expand_cfg): Fix comment.
9349
9350         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
9351         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
9352         Remove.
9353         (prepare_function_start): Don't set rtx_equal_function_value_matters.
9354         * integrate.c (copy_rtx_and_substitute): Don't test for it.
9355         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
9356         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
9357         here again.  Update leading comment.
9358         * rtl.c (rtx_equal_function_value_matters): Remove.
9359         (rtx_equal_p): Don't test for it.
9360         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
9361         Likewise.
9362
9363         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
9364         * rtl.c (note_insn_name): Likewise.
9365         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
9366         * final.c (final_scan_insn): Likewise.
9367
9368         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
9369         * passes.c (rest_of_handle_eh): Do it here.
9370
9371         * stmt.c (struct nesting): Remove struct nesting block member.
9372         (struct stmt_status): Remove x_block_start_count field.
9373         (current_block_start_count): Remove.
9374
9375 2004-07-27  Brian Booth  <bbooth@redhat.com>
9376
9377         * tree-optimize.c (register_one_dump_file): Update condition that uses
9378         static_pass_number.
9379         (dup_pass_1): Replace with...
9380         (next_pass_1): This.
9381         (NEXT_PASS): Call next_pass_1.
9382         (DUP_PASS): Remove.
9383         (init_tree_optimization_passes): Remove uses of DUP_PASS.
9384         (execute_one_pass): Update condition that uses
9385         static_pass_number.
9386         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
9387         integer.
9388
9389 2004-07-27  Nick Clifton  <nickc@redhat.com>
9390
9391         * config/m32r/m32r.c: Include integrate.h in order to get the
9392         prototype for get_hard_reg_initial_val().
9393
9394         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
9395         and tidy up indentation.
9396         (final_presence_set): Use absence_set instead, so that if there is
9397         nothing in the "o" pipe the "s" pipe can be scheduled.
9398
9399 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
9400
9401         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
9402         don't have PT_VARS nor PT_MALLOC set.
9403         Clear name tag from pointers that have not been dereferenced.
9404         (set_pt_anything, set_pt_malloc): Forward declare.
9405         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
9406         not type compatibility when determining if a pointer can be
9407         copy propagated.
9408
9409 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
9410
9411         * expr.h (canonicalize_condition, get_condition): Add an int argument.
9412         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
9413         it to check whether the condition is still valid at the jump insn.
9414         * ifcvt.c (noce_get_condition): Likewise.
9415         (noce_get_alt_condition): Update call to canonicalize_condition.
9416         * loop-iv.c (simplify_using_initial_values): Update call to
9417         get_condition.  Remove FIXME.
9418         (check_simple_exit): Update call to get_condition.
9419         * loop-unswitch.c (may_unswitch_on): Likewise.
9420         * loop.c (check_dbra_loop): Likewise.
9421         (canonicalize_condition, get_condition): Add an argument to say whether
9422         the condition must still be valid at INSN.
9423         (get_condition_for_loop): Update call to get_condition.  Require that
9424         the condition be valid at INSN.
9425         * predict.c (estimate_probability): Update call to get_condition.
9426         Remove unused earliest parameter.
9427         (expected_value_to_br_prob): Update call to canonicalize_condition.
9428
9429 2004-07-26  Eric Christopher  <echristo@redhat.com>
9430
9431         * tree-dfa.c (add_referenced_var): Register initializers of global
9432         variables.
9433
9434 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
9435
9436         * config/i386/i386.c (function_arg): Always treat 8-
9437         and 16-byte wide vectors the same, even if MMX/SSE
9438         are disabled.
9439         (contains_128bit_aligned_vector_p): Add comment.
9440
9441 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
9442
9443         * ra.h (enum node_type): Rename to:
9444         (enum ra_node_type).
9445         * ra-colorize.c: Likewise.
9446
9447 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
9448
9449         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
9450         after simplifying the jump.
9451
9452 2004-06-26  Richard Henderson  <rth@redhat.com>
9453
9454         * calls.c (combine_pending_stack_adjustment_and_call): Make
9455         preferred_unit_stack_boundary argument unsigned.  Make
9456         unadjusted_alignment unsigned.
9457         (expand_call): Make preferred_stack_boundary and
9458         preferred_unit_stack_boundary variables unsigned.
9459         * function.c (assign_stack_local_1): Make alignment unsigned.
9460         * function.h (struct function): Make stack_alignment_needed,
9461         preferred_stack_boundary unsigned.
9462         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
9463         (ix86_compute_frame_layout): Make stack_alignment_needed,
9464         preferred_alignment variables unsigned.
9465         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
9466
9467 2004-07-26  Tom Tromey  <tromey@redhat.com>
9468
9469         * tree.h: Fix typo in comment.
9470
9471 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
9472
9473         PR bootstrap/12804
9474         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
9475         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
9476         (ggc_free): Remove incorrect freeing.
9477         (sweep_pages): Advance PP for large pages.  Fix indentation.
9478
9479 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
9480
9481         PR rtl-optimization/16643
9482         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
9483         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
9484         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
9485         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
9486         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
9487         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9488         * rtl.h (tracer): Add a flags parameter.
9489         * tracer.c (tracer): Pass it to cfg_layout_initialise.
9490         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
9491         (rest_of_handle_reorder_blocks): Update calls to tracer and
9492         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
9493         (rest_of_handle_tracer): Pass 0 to tracer.
9494         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
9495
9496 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
9497
9498         PR target/16239
9499         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
9500         f->f.
9501
9502 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
9503
9504         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
9505         (BINFO_BASE_ACCESS): Adjust.
9506         (BINFO_BASE_ACCESS_APPEND): New.
9507         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
9508         * dbxout.c (dbxout_type): Adjust binfo access accessing.
9509         * dwarf2out.c (gen_member_die): Likewise.
9510         * tree-dump.c (deque_and_dump): Likewise.
9511
9512 2004-07-26  Falk Hueffner  <falk@debian.org>
9513
9514         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
9515         costs.
9516
9517 2004-07-25  Roger Sayle  <roger@eyesopen.com>
9518
9519         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
9520         value off of the stack if TARGET_USE_FFREEP.
9521
9522 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
9523
9524         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
9525         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
9526         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
9527         check on invocation of XRESIZEVEC ().
9528
9529 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
9530
9531         * c-common.c (disable_builtin_function): Rename variable n to
9532         new_disabled_builtin.
9533         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
9534         Rename local variable old to old_decl.
9535         * gensupport.c (shift_output_template): Rename parameter old to src.
9536         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
9537         old_rtx and newx to new_rtx.
9538
9539 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
9540
9541         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
9542         of c-pragma.h.
9543         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
9544         enum cpp_ttype.
9545         * c-lex.c: Likewise.
9546
9547 2004-07-25  Roger Sayle  <roger@eyesopen.com>
9548
9549         * fold-const.c (constant_boolean_node): Make extern.
9550         (make_range): Wrap long lines.
9551         (fold_cond_expr_with_comparison): Remove unnecessary call to
9552         pedantic_non_lvalue.  Add missing calls to fold_convert.
9553         (fold_truthop): Add missing calls to fold_convert.
9554         (fold): Likewise.
9555         * tree.h (constant_boolean_node): Add prototype here.
9556         * builtins.c (expand_builtin_strncmp): Add missing calls to
9557         fold_convert.
9558         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
9559         Call fold_convert and constant_boolean_node to correct types.
9560         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
9561         missing call to fold_convert to correct types.
9562
9563 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
9564             Brian Ryner  <bryner@brianryner.com>
9565
9566         PR c++/9283
9567         PR c++/15000
9568         * c-common.c (c_common_attribute_table): Allow
9569         handle_visibility_attribute to be called for types.
9570         (handle_visibility_attribute) When given a type, set the visibility
9571         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
9572         so that we can check later whether the attribute was present. Added
9573         warning if attribute applied to non class type.
9574         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
9575         decls and checking that they are consistent.
9576         * common.opt: Added -fvisibility.
9577         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
9578         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
9579         * flags.h, tree.h: Added assorted support defines for overall patch
9580         * opts.c: Added parsing support for -fvisibility.
9581         * tree.c (build_decl): Set visibility for all decls to be whatever
9582         is in force at that time.
9583         * varasm.c (default_binds_local_p_1): Reworked logic determining
9584         when to make a symbol locally bound.
9585         * doc/invoke.texi: Added documentation for -fvisibility and
9586         -fvisibility-inlines-hidden.
9587
9588 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9589
9590         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
9591         * c-common.c: Add missing casts from void * to other types.
9592         * c-decl.c: Likewise.
9593         * c-format.c: Likewise.
9594         * c-lex.c: Likewise.
9595         * c-pragma.c: Likewise.
9596         * c-typeck.c: Likewise.
9597         * defaults.h: Likewise.
9598         * genconstants.c: Likewise.
9599         * gengtype-lex.l: Likewise.
9600         * genmodes.c: Likewise.
9601         * read-rtl.c: Likewise.
9602         * rtl.c: Likewise.
9603
9604 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9605
9606         * bitmap.c: Use type-safe memory allocation macros from libiberty.
9607         * c-common.c: Likewise.
9608         * c-decl.c: Likewise.
9609         * c-lang.c: Likewise.
9610         * c-lex.c: Likewise.
9611         * c-opts.c: Likewise.
9612         * c-parse.in: Likewise.
9613         * c-typeck.c: Likewise.
9614         * genconditions.c: Likewise.
9615         * gengtype-lex.l: Likewise.
9616         * gengtype-yacc.y: Likewise.
9617         * gengtype.c: Likewise.
9618         * genmodes.c: Likewise.
9619         * gensupport.c: Likewise.
9620         * read-rtl.c: Likewise.
9621         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
9622         htab_find_slot().
9623
9624 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9625
9626         * c-decl.c (groktypename, groktypename_in_param_context): Rename
9627         variable typename to type_name.
9628         * c-lex.c (interpret_float): Likewise.
9629
9630 2004-07-25  Roger Sayle  <roger@eyesopen.com>
9631
9632         * convert.c (convert_to_real, convert_to_integer,
9633         convert_to_complex): Replace calls to build with calls to buildN.
9634         * coverage.c (tree_coverage_counter_ref): Likewise.
9635         * dojump.c (do_jump): Likewise.
9636         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
9637         * emit-rtl.c (component_ref_for_mem_expr,
9638         set_mem_attributes_minus_bitpos): Likewise.
9639         * explow.c (update_nonlocal_goto_save_area): Likewise.
9640         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
9641         expand_mult_add): Likewise.
9642         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
9643         store_constructor, get_inner_reference, expand_expr_real_1,
9644         try_casesi, try_tablejump): Likewise.
9645         * function.c (expand_function_start): Likewise.
9646         * stmt.c (emit_case_bit_tests, expand_end_case_type,
9647         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
9648         * stor-layout.c (place_union_field, layout_type): Likewise.
9649         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
9650         * varasm.c (copy_constant): Likewise.
9651
9652 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9653
9654         * c-common.c: Rename all identifiers named `new'.
9655         * c-decl.c: Likewise.
9656         * gensupport.c: Likewise.
9657         * simplify-rtx.c: Likewise.
9658         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
9659         with XNEW().
9660         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
9661         with XNEWVEC().
9662
9663 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
9664
9665         PR c/15360
9666         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
9667         declarations until after calling pushdecl.
9668         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
9669         "extern" and not on whether the declaration is initialized.
9670
9671 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
9672
9673         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
9674         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
9675         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
9676         "cpplib.h", "c-pragma.h", "c-common.h".
9677         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
9678         (solaris_register_pragmas): New functions.
9679         * config/sol2-protos.h: New file.
9680         * config/sol2.c: New file.
9681         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
9682         (REGISTER_TARGET_PRAGMAS): New macros.
9683         (solaris_pending_aligns, solaris_pending_inits)
9684         (solaris_pending_finis): New variables.
9685         * config/t-sol2 (sol2-c.o): Update dependencies.
9686         (sol2.o): New rule.
9687         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
9688         SUBTARGET_INSERT_ATTRIBUTES.
9689         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
9690         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
9691         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
9692         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
9693         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
9694         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
9695         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
9696         * config/sparc/sparc.c (sparc_attribute_table): New.
9697         (TARGET_INSERT_ATTRIBUTES): Define in terms of
9698         SUBTARGET_INSERT_ATTRIBUTES.
9699         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
9700         is defined.
9701         * doc/extend.texi (Solaris Pragmas): New section.
9702
9703 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9704
9705         * c-common.c: Rename all identifiers named `class' to `cl'.
9706         * c-common.h: Likewise.
9707         * c-parse.in: Likewise.
9708         * c-typeck.c: Likewise.
9709         * genmodes.c: Likewise.
9710         * real.c: Likewise.
9711         * real.h: Likewise.
9712         * recog.c: Likewise.
9713         * recog.h: Likewise.
9714         * regrename.c: Likewise.
9715         * tree.h: Likewise.
9716         * c-common.c (builtin_function_2): Change type of 5th parameter from
9717         int to enum built_in_function. Change type of 8th parameter from int
9718         to bool.
9719         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
9720         with GGC_CNEW().
9721         * c-typeck.c (convert_arguments): Change type of formal_prec from
9722         int to unsigned int.
9723         * genmodes.c (blank_mode): Make a few negative constants unsigned.
9724         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
9725         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
9726         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
9727         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
9728         iterator to for_all_modes () instead of an enum because enums can't
9729         be incremented in C++.
9730
9731
9732 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
9733
9734         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
9735         hard registers.
9736
9737 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9738
9739         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
9740         Handle ARRAY_RANGE_REF like ARRAY_REF.
9741
9742 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
9743
9744         * c-typeck.c (digest_init): Don't allow arrays of signed or
9745         unsigned variants of wchar_t to be initialized by wide string
9746         constants.  Do allow arrays of enumerated types compatible with
9747         wchar_t to be initialized by wide string constants.  Refine tests
9748         distinguishing wide and narrow strings and arrays.  Give specific
9749         error for arrays of other integer types initialized by string
9750         constants.
9751         (output_init_element, process_init_element): Check for
9752         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
9753         initializing with string constants.
9754
9755 2004-07-25  Richard Henderson  <rth@redhat.com>
9756
9757         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
9758         on the RESULT_DECL.
9759         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9760         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
9761         DECL_IGNORED_P to new decl.
9762
9763 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
9764
9765         * config/ia64/ia64.c (general_xfmode_operand)
9766         (destination_xfmode_operand): Delete.
9767         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
9768         * config/ia64/ia64.md (*movxf_internal): Use general_operand
9769         and destination_operand.
9770
9771 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
9772
9773         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
9774         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
9775
9776 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
9777             Zack Weinberg  <zack@codesourcery.com
9778
9779         PR 16684
9780         * c-decl.c (diagnose_mismatched_decls): Don't issue a
9781         redundant-declaration warning the first time a builtin is
9782         declared explicitly.
9783
9784 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9785
9786         * tree.h (staticp): Change return type to bool.
9787
9788 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9789
9790         * c-common.c (c_staticp): Last episode of the staticp saga.
9791
9792 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9793
9794         * c-common.h (c_staticp): Change return type from int to bool.
9795         * tree.c (staticp): Likewise.
9796         * langhooks.h (staticp): Likewise.
9797
9798 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9799
9800         * langhooks-def.h (lhd_staticp): Change return type from int to
9801         bool in prototype to match definition.
9802
9803 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9804
9805         * system.h (bool, true, false): Don't redefine as preprocessor macros
9806         in C++.
9807
9808 2004-07-24  Roger Sayle  <roger@eyesopen.com>
9809
9810         * expmed.c (init_expmed): A signed modulus by a power of two is
9811         considered cheap if its less than or equal to four instructions.
9812
9813 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9814
9815         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
9816         GGC_CNEWVAR): New macros.
9817
9818 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9819
9820         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
9821         lists.
9822         * c-decl.c: Likewise.
9823         * c-format.c: Likewise.
9824         * c-lex.c: Likewise.
9825         * c-opts.c: Likewise.
9826         * c-pragma.c: Likewise.
9827         * c-typeck.c: Likewise.
9828         * gencheck.c: Likewise.
9829         * genconditions.c: Likewise.
9830         * genconfig.c: Likewise.
9831         * genflags.c: Likewise.
9832         * gengtype.c: Likewise.
9833         * gensupport.c: Likewise.
9834         * ggc-none.c: Likewise.
9835         * langhooks.c: Likewise.
9836         * statistics.h: Likewise.
9837         * stub-objc.c: Likewise.
9838         * java/decl.c: Likewise.
9839
9840 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
9841
9842         * config/m68k/m68k.c (output_scc_di): Fix coding style.
9843         (symbolic_operand): Fix prototype.
9844         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
9845         * config/m68k/m68k.md: Add constants for registers a0 and sp and
9846         use them, change from the "{...}" syntax to the simpler {...}
9847         syntax.
9848         (*cfv4_extendqisi2): Fix destination predicate.
9849         * config/m68k/m68k-protos.h: Remove various declarations also
9850         generated via PREDICATE_CODES.
9851
9852 2004-07-23  Mike Stump  <mrs@apple.com>
9853
9854         * c-typeck.c (convert_for_assignment): Tightened up pointer
9855         converstions that differ in signedness.
9856
9857 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
9858
9859         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
9860
9861 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9862
9863         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
9864         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
9865
9866         * gimplify.c (gimplify_compound_lval): Check for no handled
9867         operations, rather than checking for explicit list of nodes.
9868         (is_gimple_addr_expr_arg_or_indirect): New function.
9869         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
9870         redundant setting of TREE_INVARIANT.
9871         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
9872         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
9873
9874 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
9875
9876         PR tree-optimization/16688
9877         PR tree-optimization/16689
9878         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
9879         unnecessary initialization of 'tag'.
9880         (get_tmt_for): Check that the new type tag has the same alias
9881         set as the pointed-to type.
9882         (group_aliases): Only regular variables need to be removed
9883         from the alias set of a name tag.
9884         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
9885         propagation if the two types are not compatible.
9886         (merge_alias_info): Rename from replace_ssa_names_ann.
9887         Add more checking.
9888         (replace_exp_1): If both arguments are SSA_NAMEs, check that
9889         the propagation can be done.
9890         Only call merge_alias_info on pointers.
9891         (propagate_value): Likewise.
9892         * tree-ssa-copyrename.c: Include langhooks.h.
9893         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
9894         to do the merging.
9895         Do not coalesce variables with incompatible types.
9896         (rename_ssa_copies): Call replace_ssa_name_symbol.
9897         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
9898         the same type as the underlying _DECL.
9899         * tree-ssanames.c (replace_ssa_name_symbol): New function.
9900         * tree.h (replace_ssa_name_symbol): Declare.
9901
9902 2004-07-23  Richard Henderson  <rth@redhat.com>
9903
9904         PR c++/16277
9905         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
9906         unshare it properly.
9907         (gimplify_modify_expr_rhs): Push assignment from a conditional into
9908         the conditional for all non-register types.
9909
9910 2004-07-23  Richard Henderson  <rth@redhat.com>
9911
9912         * expr.c (expand_expr_real_1): Don't handle non-local variables.
9913         * expr.h (fix_lexical_addr): Remove.
9914         * function.c (NEED_SEPARATE_AP): Remove.
9915         (fix_lexical_addr): Remove.
9916         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
9917         not null decl_function_context.
9918         (create_alias_vars): Likewise.
9919         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
9920         (simple_goto_p): Likewise.
9921         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
9922         * tree-ssa-ccp.c (get_default_value): Likewise.
9923         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
9924         * tree.c (needs_to_live_in_memory): Likewise.
9925         * tree-flow-inline.h (may_be_aliased): Move...
9926         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
9927         when TREE_STATIC variables may be addressable.
9928
9929 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
9930
9931         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
9932
9933 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
9934
9935         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
9936         bitmap contents if GENERATOR_FILE is defined.
9937         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
9938         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
9939
9940 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
9941
9942         * c-decl.c (start_function): Form composite type of function types
9943         rather than copying type from previous prototype declaration.
9944
9945 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
9946
9947         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
9948         the const qualifier for the second argument in the C++ functions.
9949
9950         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
9951         specific pointer types.
9952
9953         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
9954         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
9955         for vector bool and/or vector pixel, add C++ and C missing support.
9956         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
9957         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
9958         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
9959         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
9960         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
9961         missing C++ and C support for vector bool and/or vector pixel.
9962         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
9963         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
9964         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
9965         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
9966         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
9967         C++ and C types used for vector bool and/or vector pixel.
9968         (vec_st, vec_stl): Add C++ support for vector pixel.
9969         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
9970         (vec_all_ne): Add C++ support for vector pixel.
9971
9972         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
9973         (vec_vmulesb): Add missing C++ function.
9974         (vec_perm): Fix type of third argument in C++ function.
9975         (vec_vsum4shs): Fix C++ function name.
9976         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
9977         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
9978         argument passed to the error handler in C macro.
9979         (vec_nmsub): Remove extra parens around argument names in C macro.
9980         (vec_packpx): Add missing parens in C macro.
9981
9982 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
9983
9984         * machmode.def: Remove vector modes.
9985         * config/alpha/alpha-modes.def: Add supported vector modes.
9986         * config/arm/arm-modes.def: Likewise.
9987         * config/frv/frv-modes.def: Likewise.
9988         * config/i386/i386-modes.def: Likewise.
9989         * config/rs6000/rs6000-modes.def: Likewise.
9990         * config/sh/sh-modes.def: Likewise.
9991
9992 2004-07-23  Matthias Klose  <doko@debian.org>
9993
9994         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
9995         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
9996         * config.h: Regenerate.
9997         * configure: Likewise.
9998
9999 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
10000
10001         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
10002         generated SYMBOL_REFs for labels.
10003         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
10004         Change prototype.
10005         (machopic_stub_name): Remove.
10006         (machopic_indirection_name): New function.
10007         (machopic_mcount_stub_name): Likewise.
10008         (machopic_classify_name): Remove.
10009         (machopic_function_base_sym): New function.
10010         (machpoic_classify_symbol): Likewise.
10011         (machopic_classify_ident): Remove.
10012         (machopic_define_ident): Likewise.
10013         (machopic_define_name): Likewise.
10014         (machopic_name_defined_p): Likewise.
10015         (machopic_ident_defined_p): Likewise.
10016         (darwin_strip_name_encoding): Likewise.
10017         (machopic_define_symbol): New function.
10018         * config/darwin.c (hashtab.h): Include.
10019         (machopic_defined_list): Remove.
10020         (machopic_classify_ident): Likewise.
10021         (machopic_classify_name): Likewise.
10022         (machopic_ident_defined_p): Likewise.
10023         (machopic_define_ident): Likewise.
10024         (machopic_define_name): Likewise.
10025         (machopic_symbol_defined_p): New function.
10026         (machopic_classify_symbol): Likewise.
10027         (machopic_data_defined_p): Use machopic_classify_symbol.
10028         (machopic_define_symbol): New function.
10029         (machopic_function_base_sym): New function.
10030         (machopic_non_lazy_pointers): Remove.
10031         (machopic_non_lazy_ptr_name): Likewise.
10032         (machopic_stubs): Likewise.
10033         (machopic_stub_name): Likewise.
10034         (NON_LAZY_POINTER_SUFFIX): New macro.
10035         (STUB_SUFFIX): Likewise.
10036         (machopic_indirection): New structure.
10037         (machopic_indirections): New variable.
10038         (machopic_indirection_hash): New function.
10039         (machopic_indirection_eq): Likewise.
10040         (machopic_indirection_name): Likewise.
10041         (machopic_mcount_stub_name): New function.
10042         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
10043         hash table.
10044         (machopic_indirect_data_reference): Rework to use new functions.
10045         (machopic_indirect_call_target): Likewise.
10046         (machopic_legitimize_pic_address): Likewise.
10047         (machopic_output_indirection): New function.
10048         (machopic_finish): Use it.
10049         (machopic_operand_p): Rework to use new functions.
10050         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
10051         (darwin_strip_name_encoding): Remove.
10052         (update_non_lazy_ptrs): Remove.
10053         (update_stubs): Likewise.
10054         (darwin_non_lazy_pcrel): Use new functions.
10055         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10056         (ASM_OUTPUT_LABELREF): Likewise.
10057         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10058         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
10059         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
10060         (TARGET_STRIP_NAME_ENCODING): Do not use
10061         darwin_strip_name_encoding.
10062         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
10063         darwin_strip_name_encoding.
10064         * config/i386/darwin.h (FUNCTION_PROFILER): Use
10065         machopic_mcount_stub_name.
10066         * config/i386/i386.c (x86_output_mi_thunk): Use
10067         machopic_indirection_name, not machopic_stub_name.
10068         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
10069         machopic_function_base_sym.
10070         (print_operand): Use machopic_classify_symbol.
10071         (rs6000_emit_prologue): Use machopic_function_base_sym.
10072         (output_profile_hook): Do not use machopic_stub_name.
10073         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
10074
10075 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10076
10077         PR c/7284
10078         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
10079         as multiplication.
10080
10081 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10082
10083         * doc/implement-c.texi: New file.
10084         * doc/extend.texi (C Implementation): Move to there.
10085         * doc/gcc.texi: Include implement-c.texi.
10086         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
10087
10088 2004-07-22  Jason Merrill  <jason@redhat.com>
10089
10090         * integrate.c (copy_decl_for_inlining): Remove invisible reference
10091         handling.
10092         * tree-inline.c (setup_one_parameter): Likewise.
10093
10094 2004-07-22  Brian Booth  <bbooth@redhat.com>
10095
10096         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
10097         (substitute_and_fold): Propigate into VUSE operands when possible.
10098         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
10099         (cp_lattice_meet): Handle merging of latticevalues when
10100         UNKNOWN_VAL is present.
10101         (visit_stmt): Visit assignments with V_MUST_DEFs.
10102         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
10103         (ccp_fold): Deal with RHS' that are constant and virtual.
10104         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
10105         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
10106         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
10107         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
10108         computing immediate uses.
10109         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
10110         transition.
10111         (replace_vuse_in): New function.
10112         (likely_value): Add check of vuse operands.
10113         (get_default_value): Set the default value of virtually defined
10114         variables to UKNOWN_VAL instead of VARYING.
10115
10116 2004-07-22  Richard Henderson  <rth@redhat.com>
10117
10118         * expr.c (emit_push_insn): Don't use set_mem_attributes.
10119
10120 2004-07-22  Richard Henderson  <rth@redhat.com>
10121
10122         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
10123         variables due to conditional compilation.
10124
10125 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
10126
10127         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
10128         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
10129         Release SSA names that have been re-renamed.
10130         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
10131         variable.
10132         * tree-ssa-alias.c (init_alias_info): If aliases have been
10133         computed before, clear existing alias information.
10134         (create_name_tags): Do no fixup PT_ANYTHING pointers.
10135         If the new name tag for a pointer is different than the one it
10136         had before, mark the old tag for renaming.
10137         (replace_may_alias): New function.
10138         (group_aliases): Call it.
10139         (setup_pointers_and_addressables): Always call get_tmt_for.
10140         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
10141         once.
10142         (set_pt_anything): New local function.
10143         (set_pt_malloc): New local function.
10144         (merge_pointed_to_info): Don't merge pointed-to variables from
10145         the original pointer if the destination is pointing to an
10146         unknown location.
10147         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
10148         (add_pointed_to_var): Do not add a variable to the points-to
10149         set if the pointer is already pointing to anywhere.
10150         (collect_points_to_info_r): If the defining statement is a PHI
10151         node, only merge pointed-to information if the argument has
10152         already been visited.
10153         (get_tmt_for): Only create a new tag if the pointer didn't
10154         have one already.
10155         (dump_alias_info): Emit more information.
10156         (dump_points_to_info_for): Likewise.
10157         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
10158         try to get the annotation of an SSA_NAME.
10159         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
10160         alias sets when checking is enabled.
10161         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
10162         (eliminate): Mark basic blocks that will need
10163         EH information cleaned up.
10164         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
10165         predecessor.
10166         Initialize need_eh_cleanup.
10167         (fini_pre): Call tree_purge_all_dead_eh_edges and
10168         cleanup_tree_cfg if needed.
10169         Free need_eh_cleanup.
10170         * tree-ssa.c (verify_ssa_name): New function.
10171         (verify_def): Call it.
10172         Re-arrange to avoid printing too many error messages.
10173         (verify_use): Likewise.
10174         (verify_phi_args): Likewise.
10175         (verify_flow_insensitive_alias_info): New function.
10176         (verify_flow_sensitive_alias_info): New function.
10177         (verify_alias_info): New function.
10178         (verify_ssa): Call verify_alias_info.
10179         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
10180         program.
10181         Re-arrange to avoid printing too many error messages.
10182         * tree-ssanames.c (make_ssa_name): Clear
10183         SSA_NAME_IN_FREE_LIST.
10184         (release_ssa_name): Never release a default definition.
10185         (release_defs): New function.
10186         * tree.h: Declare it.
10187         * tree-ssa-dce.c (remove_dead_stmt): Call it.
10188
10189 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
10190
10191         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
10192         If true, do a depth-first search.  Do a breadht-first search,
10193         otherwise.
10194         (walk_use_def_chains): Add new argument IS_DFS.
10195         Update all users.
10196         * tree-flow.h (walk_use_def_chains): Update prototype.
10197
10198 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
10199
10200         * config/cris/cris.md: Tweak formatting.
10201         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
10202         (mover2side, moverside, movemside, movei, op3, andu): Replace
10203         live define_peephole:s with define_peephole2 near-equivalents.
10204         Delete the rest.
10205         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
10206         word-size modes.
10207         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
10208         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
10209         "*mov_sidesi_mem" respectively.
10210
10211 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
10212
10213         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
10214         (gimplify_build1): Move from tree-complex.c do_unop.
10215         (gimplify_build2): Move from tree-complex.c do_binop.
10216         (gimplify_build3): New.
10217         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
10218         Adjust throughout to call the functions above.
10219         * tree-flow.h: Declare the functions above.
10220         * tree-nested.c (gimplify_val): Rename to...
10221         (tsi_gimplify_val): ... this.
10222
10223         * Makefile.in (tree_complex.o): Update dependencies.
10224         (stor-layout.o): Depend on regs.h.
10225         * c-common.c (handle_vector_size_attribute): Update for
10226         vector types without corresponding vector modes.
10227         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
10228         a corresponding vector mode is not available.
10229         * print-tree.c (print_node): Print nunits for vector types
10230         * regclass.c (have_regs_of_mode): New.
10231         (init_reg_sets_1): Initialize it and use it instead
10232         of allocatable_regs_of_mode.
10233         * regs.h (have_regs_of_mode): Declare it.
10234         * stor-layout.c (layout_type): Pick a mode for vector types.
10235         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
10236         build_replicated_const, do_unop, do_binop, do_plus_minus,
10237         do_negate, expand_vector_piecewise, expand_vector_parallel,
10238         expand_vector_addition, expand_vector_operations_1,
10239         expand_vector_operations, tree_lower_operations,
10240         pass_lower_vector_ssa, pass_pre_expand): New.
10241         (expand_complex_operations, pass_lower_complex): Remove.
10242         * tree-optimize.c (init_tree_optimization_passes): Adjust
10243         pass ordering for changes in tree-complex.c.
10244         * tree-pass.h: Declare new passes.
10245         * tree.c (finish_vector_type): Remove.
10246         (make_vector_type): New.
10247         (build_vector_type_for_mode, build_vector_type): Rewritten.
10248         * tree.def (VECTOR_TYPE): Document where the number of
10249         subparts is stored.
10250         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
10251         (make_vector): Remove declaration.
10252
10253 2004-07-21  Richard Henderson  <rth@redhat.com>
10254
10255         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
10256         TREE_THIS_VOLATILE, may_aliases, or optimization level.
10257         (remove_useless_vars): Dump debugging info.
10258         (expand_used_vars): Move ...
10259         * cfgexpand.c (expand_used_vars): ... here.  Make static.
10260         * tree-flow-inline.h (set_is_used): New.
10261         (set_default_def): Use get_var_ann.
10262         * tree-flow.h: Update decls.
10263         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
10264         (create_ssa_var_map): Use it.
10265         * tree-ssa.c (set_is_used): Remove.
10266
10267 2004-07-22  Ben Elliston  <bje@au.ibm.com>
10268
10269         * gdbinit.in: Set a breakpoint on internal_error.
10270
10271 2004-07-21  Richard Henderson  <rth@redhat.com>
10272
10273         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
10274         to create a new basic block.
10275
10276 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10277
10278         PR c/15052
10279         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
10280         return type on function definitions.  Move other warnings for
10281         qualified return type to -Wreturn-type.  Do not condition any such
10282         warnings on -pedantic.  Update comments.
10283         (start_function): Only copy function type from previous prototype
10284         declaration if return types are compatible.
10285         * c-typeck.c (function_types_compatible_p): Don't condition
10286         warning for incompatibility of volatile qualifiers on the return
10287         type on -pedantic.  Update comment.
10288         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
10289
10290 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10291
10292         * c-typeck.c (set_init_index): Require designator to be of integer
10293         type.
10294
10295 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10296
10297         PR c/11250
10298         * c-parse.in (init): Change to exprtype.
10299         (primary): Set original_code for STRING to STRING_CST.
10300         Call maybe_warn_string_init for compound literals.
10301         (initdcl, notype_initdcl): Call maybe_warn_string_init.
10302         (initval): Update.
10303         * c-tree.h (maybe_warn_string_init): New.
10304         (pop_init_level, process_init_element): Use struct c_expr.
10305         (struct c_expr): Update comment.
10306         * c-typeck.c (maybe_warn_string_init): New function.
10307         (digest_init): Call it.  Additional parameter strict_string.  All
10308         callers changed.
10309         (output_init_element): Likewise.
10310         (struct constructor_stack): Use struct c_expr for
10311         replacement_value.
10312         (really_start_incremental_init, push_init_level): Update.
10313         (pop_init_level): Update.  Return struct c_expr.
10314         (process_init_level): Update.  Take struct c_expr argument.
10315
10316 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
10317
10318         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
10319         commit.
10320
10321 2004-07-21  Eric Christopher  <echristo@redhat.com>
10322
10323         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
10324         removal.
10325         * c-decl.c (pop_scope): Ditto.
10326         * calls.c (expand_call): Remove call to current_nesting_level,
10327         update comment accordingly. Remove calls to expand_start_target_temps
10328         and expand_end_target_temps.
10329         * cfgexpand.c (construct_init_block): Remove call to
10330         expand_start_bindings_and_block.
10331         (construct_exit_block): Remove call to expand_end_bindings.
10332         * expr.c (safe_from_p): Remove BIND_EXPR handling.
10333         (expand_expr_real_1): Ditto. Fix formatting.
10334         (expand_vars): Delete.
10335         * stmt.c (POPSTACK): Remove block_stack.
10336         (stmt_status): Remove x_block_stack.
10337         (block_stack): Delete.
10338         (expand_start_bindings_and_block): Ditto.
10339         (expand_start_target_temps): Ditto.
10340         (expand_end_target_temps): Ditto.
10341         (current_nesting_level): Ditto.
10342         (warn_about_unused_variables): Ditto.
10343         (expand_end_bindings): Ditto.
10344         * tree.h: Remove declarations for above.
10345
10346 2004-07-21  Steven Bosscher  <stevenb@suse.de>
10347
10348         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
10349         * rtl.c (note_insn_name): Likewise.
10350         * print-rtl.c (print_rtx): Don't print it.
10351         * cfgrtl.h (can_delete_note_p): Don't handle it.
10352         (rtl_delete_block): Likewise.
10353         * passes.c (rest_of_handle_guess_branch_prob): Remove.
10354         (rest_of_compilation): Don't call it.
10355         * predict.c (process_note_predictions, process_note_prediction,
10356         note_prediction_to_br_prob): Remove.
10357         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
10358         * stmt.c (return_prediction): Remove.
10359         (expand_value_return): Don't call it.  Don't add prediction
10360         notes for return statements.
10361
10362 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
10363
10364         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
10365         once.
10366
10367 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
10368
10369         * c-common.c (vector_types_convertible_p): Use vector types'
10370         TYPE_SIZE and TREE_TYPE instead of their mode.
10371         * convert.c (convert_to_integer): Likewise.
10372         (convert_to_vector): Likewise.
10373         * fold-const.c (fold_convert): Likewise.
10374         * varasm.c (output_constant): Likewise.
10375         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
10376         Allow a VECTOR_TYPE initializer to be made of several vectors.
10377         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
10378         of cleared and need_to_clear, and use fold_convert.
10379         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
10380         integer vectors.
10381
10382 2004-07-20  Richard Henderson  <rth@redhat.com>
10383
10384         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
10385         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
10386
10387 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
10388
10389         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
10390         enormous cost if not TARGET_HARD_MUL.
10391
10392 2004-07-20  Andrew Pinski  <apinski@apple.com>
10393
10394         PR target/16557
10395         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
10396         (ASM_SPEC): here.
10397
10398 2004-07-21  Paul brook  <paul@codesourcery.com>
10399
10400         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
10401
10402 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10403
10404         * fold-const.c (operand_equal_p): Temporarily support NULL args.
10405         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
10406         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
10407
10408 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
10409
10410         * rtl.h (plus_constant): Delete.
10411         (plus_constant_wide): Rename to plus_constant.
10412         (plus_constant_for_output_wide): Delete vestigial prototype.
10413         (GEN_INT): Remove unnecessary cast.
10414         * tree.h (build_int_2, size_int_type): Delete.
10415         (build_int_2_wide): Rename to build_int_2.
10416         (size_int_wide): Rename to size_int_kind.
10417         (size_int_type_wide): Rename to size_int_type.
10418         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
10419         Remove unnecessary cast.
10420         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
10421         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
10422         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
10423         (size_int_type_wide): Rename size_int_type.
10424         (int_const_binop): Use size_int_type.
10425         * c-lex.c (interpret_integer): Use build_int_2.
10426         * final.c (split_double): Remove unnecessary casts.
10427         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
10428
10429 2004-07-20  Richard Henderson  <rth@redhat.com>
10430
10431         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
10432         (gimplify_compound_lval): Use is_gimple_tmp_reg.
10433         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
10434         (is_gimple_tmp_reg): New.
10435         * tree-gimple.h (is_gimple_tmp_reg): Declare.
10436
10437 2004-07-20  Richard Henderson  <rth@redhat.com>
10438
10439         * tree-pretty-print.c (dump_generic_node): Dump
10440         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
10441
10442 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
10443
10444         * tree-mudflap.c (mf_set_options_fndecl): New tree.
10445         (mudflap_init): Set it.
10446         (mudflap_register_call): Remove __mf_init call.
10447         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
10448         to pass "-ignore-reads" option to libmudflap if needed.
10449
10450 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
10451
10452         PR c++/14607
10453         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
10454         (MAKE_DECL_ONE_ONLY): Undefine.
10455         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
10456         readonly_data, one_only_data_section, forget_section): New prototypes.
10457         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
10458         functions.
10459         (pa_select_section): Add one-only (COMDAT) support.
10460         * pa.h (struct machine_function): Define.
10461         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
10462         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
10463         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
10464         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
10465         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
10466         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
10467         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
10468         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
10469         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
10470         for EXTRA_SECTION_FUNCTIONS.
10471         * doc/install.texi: Update binutils requirements.
10472
10473 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10474
10475         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
10476         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
10477         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
10478         size_t.
10479         (struct VEC): Use unsigned for num and alloc.
10480         * vec.c (struct vec_prefix): Likewise.
10481         (vec_o_reserve): Adjust.
10482
10483         * dbxout.c (dbxout_type): Fix printf format.
10484
10485         * tree.h (binfo_member): Remove.
10486         * tree.c (binfo_member): Remove.
10487
10488 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10489
10490         * tree.h: Include vec.h
10491         (DEF_VEC_P(tree)): New type.
10492         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
10493         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
10494         (BINFO_LANG_SLOT): Remove.
10495         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
10496         (struct tree_binfo): Turn base_binfos into a trailing
10497         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
10498         (binfo_lang_slots): Remove.
10499         * tree.c (binfo_lang_slots): Remove.
10500         (make_tree_binfo_stat): Take a base binfo count, not a
10501         lang slot count.  Adjust.
10502         * Makefile.in (TREE_H): Add vec.h
10503         * alias.c (record_component_aliases): Adjust BINFO access.
10504         * dbxout.c (dbxout_type): Likewise.
10505         * dwarf2out.c (gen_member_die): Likewise.
10506         * sdbout.c (sdbout_one_type): Likewise.
10507         * tree-dump.c (deque_and_dump): Likewise.
10508         * config/i386/i386.c (classify_argument,
10509         contains_128bit_aligned_vector_p): Likewise.
10510         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
10511         * doc/c-tree.texi (Classes): Update BINFO documentation.
10512
10513 2004-07-20  Steven Bosscher  <stevenb@suse.de>
10514
10515         * c-common.h (check_case_value): Remove prototype.
10516         (c_add_case_label): Adjust prototype.
10517         * c-common.c (check_case_value): Make static.
10518         (check_case_bounds): New function.
10519         (c_add_case_label): Use it.  Take new argument orig_type.
10520         * c-typeck.c (struct c_switch): New orig_type field.
10521         (c_start_case): Set it.
10522         (do_case): Pass it to c_add_case_label.
10523         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
10524         cases from here.  Add the labels in reverse order.
10525         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
10526         (add_case_node): Return nothing, don't check for duplicate cases.
10527         Insert new case nodes in a list, not in an AVL tree.
10528         (expand_end_case_type): Don't turn a case tree into a case list.
10529         (case_tree2list): Remove.
10530         * tree.h (add_case_node): Adjust prototype.
10531
10532 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
10533
10534         * genattr.c (struct range, struct function_unit,
10535         write_units, extend_range, init_range): Remove them.
10536         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
10537         Output "#define INSN_SCHEDULING" here.
10538         * genattrtab.c (struct range, struct function_unit_op,
10539         struct function_unit, struct dimension, enum operator,
10540         operate_exp, expand_units, simplify_knowing,
10541         encode_units_mask, simplify_by_exploding,
10542         find_and_mark_used_attributes, unmark_used_attributes,
10543         add_values_to_cover, increment_current_value,
10544         test_for_current_value, simplify_with_current_value,
10545         simplify_with_current_value_aux, gen_unit,
10546         write_unit_name, write_function_unit_info,
10547         write_complex_function, write_toplevel_expr,
10548         find_single_value, extend_range): Remove.
10549         (write_attr_get): Do not handle common_av->value
10550         being an FFS.
10551         (struct attr_desc): Remove func_units_p and blockage_p.
10552         (write_attr_valueq): Do not handle them.
10553         (find_attr): Do not clear them.
10554         (make_internal_attr): Do not initialize them.
10555         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
10556         * sched-vis.c (init_target_units, insn_print_units,
10557         init_block_visualization, print_block_visualization,
10558         visualize_scheduled_insns, visualize_no_unit,
10559         visualize_stall_cycles, visualize_alloc,
10560         visualize_free, target_units, get_visual_tbl_length,
10561         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
10562         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
10563         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
10564         * haifa-sched.c (blockage_range, clear_units,
10565         schedule_unit, actual_hazard, potential_hazard,
10566         insn_unit, unit_last_insn, unit_tick,
10567         actual_hazard_this_instance, potential_hazard,
10568         schedule_unit, max_insn_queue_index_value): Remove.
10569         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
10570         max_insn_queue_index.
10571         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
10572         * doc/md.texi (Processor pipeline description): Remove
10573         references to old pipeline descriptions.
10574         (Automaton pipeline description): Merge with the above.
10575         (Old pipeline description, Comparison of the two descriptions):
10576         Remove.
10577
10578         * bt-load.c (migrate_btr_def): Remove references to
10579         use_pipeline_interface.
10580         * haifa-sched.c (insn_cost, schedule_insn,
10581         schedule_block, advance_one_cycle, sched_init,
10582         queue_to_ready, sched_finish): Likewise.
10583         * modulo-sched.c (sms_schedule, advance_one_cycle,
10584         ps_has_conflicts): Likewise.
10585         * sched-rgn.c (init_ready): Likewise.
10586         (debug_dependencies): Likewise, and remove an "if (1)".
10587         * target.h (use_dfa_pipeline_interface): Remove.
10588         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10589         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10590         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10591         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10592         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10593         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10594         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10595         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10596         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10597         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10598         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10599         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10600         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10601         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10602         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10603         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10604         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10605         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10606         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10607
10608 2004-07-19  Roger Sayle  <roger@eyesopen.com>
10609
10610         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
10611
10612 2004-07-19  Jeff Law  <law@redhat.com>
10613
10614         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
10615         (get_eq_expr_value): Use it.  Simplify slightly.
10616
10617 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
10618
10619         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
10620         (umulsidi3_32bit_r4000): Likewise.
10621
10622 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
10623
10624         * vec.h: Propagate location information properly.
10625         (VEC_T_iterate): Add result pointer parameter.
10626         (VEC_T_space): New.
10627         (VEC_T_reserve): Use it.
10628
10629 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
10630
10631         * Makefile.in (c-format.o): Depend on c-format.h.
10632         * c-format.h: New file.
10633         (struct format_char_info): Add CHAIN member.
10634         * c-format.c: Move some types and constants to c-format.h.
10635         (format_type_error): Set to -1.
10636         (struct function_format_info): Use an int for format_type.
10637         (decode_format_type): Return an int.  Return format_type_error
10638         on error.
10639         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
10640         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
10641         (scan_char_table, time_char_table, monetary_char_table): Initialize
10642         CHAIN to NULL.
10643         (n_format_types): New variable.
10644         (check_format_info_main): Handle CHAIN in format_char_info.
10645         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
10646         TARGET_N_FORMAT_TYPES.
10647         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
10648         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
10649         * config/sol2-c.c: New file.
10650         * config/t-sol2: New file.
10651         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
10652         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
10653         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
10654
10655         * doc/extend.texi (Target Format Checks): New section.
10656         (Function Attributes): Mention it.
10657         * doc/invoke.texi: Mention target format checks.
10658         * doc/sourcebuild.texi: Mention target format checks.
10659         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
10660         TARGET_FORMAT_TYPES.
10661
10662 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
10663
10664         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
10665         added.
10666         * config/s390/s390.c (regclass_map initializer): Register 35 added to
10667         ADDR_REGS.
10668         (load_multiple_operation, store_multiple_operation): Removed
10669         pointless sanity check.
10670         (s390_decompose_address): Added check for return_address_pointer_rtx.
10671         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
10672         (s390_return_address_offset): New function.
10673         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
10674         (FRAME_REGNO_P): Added check for register 35.
10675         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
10676         REG_ALLOC_ORDER): Appended entry for register 35.
10677         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
10678         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
10679         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
10680         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
10681         is eliminable using stack pointer or hard frame pointer.
10682         (REGISTER_NAMES): Added name for register 35.
10683         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
10684         pointless sanity check.
10685
10686 2004-07-19  Roger Sayle  <roger@eyesopen.com>
10687
10688         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
10689         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
10690         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
10691         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
10692         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
10693         (fold_relational_const): Tidy up handling of floating point
10694         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
10695         transformation; fold_relational_const assumes constant operands.
10696
10697 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
10698
10699         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
10700         directory.
10701
10702 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
10703
10704         * c-tree.h (struct c_expr): Define.
10705         (C_SET_EXP_ORIGINAL_CODE): Remove.
10706         (parser_build_binary_op, build_compound_expr): Update prototypes.
10707         * c-parse.in (%union): Add exprtype.
10708         (FUNC_NAME): Mark as ttype.
10709         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
10710         exprtype.
10711         (expr): Update.  Define directly in terms of expr_no_commas
10712         instead of using nonnull_exprlist.
10713         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
10714         offsetof_member_designator, typespec_nonreserved_nonattr, init,
10715         initval, designator, component_declarator,
10716         component_notype_declarator, enumerator, array_declarator,
10717         condition, exexpr, switch_statement, stmt_nocomp, stmt,
10718         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
10719         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
10720         where appropriate.
10721         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
10722         * c-common.c (c_common_truthvalue_conversion): Don't check
10723         C_EXP_ORIGINAL_CODE.
10724         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
10725         Don't use C_EXP_ORIGINAL_CODE.
10726         (default_conversion, default_function_array_conversion): Don't use
10727         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
10728         (internal_build_compound_expr): Merge into build_compound_expr.
10729         (build_compound_expr): Take two operands instead of a TREE_LIST.
10730         * objc/objc-act.c (get_super_receiver): Update calls to
10731         build_compound_expr.
10732
10733 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
10734
10735         * config/sh/sh.c (sh_use_dfa_interface): Remove.
10736         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
10737         hook_int_void_1.
10738         * config/sh/sh.md: Extract pipeline descriptions
10739         into separate files.
10740         * config/sh/sh1.md: New file, extracted from sh.md.
10741         * config/sh/sh4.md: New file, extracted from sh.md.
10742         * config/sh/shmedia.md: New file, extracted from sh.md
10743         and rewritten using new-style pipeline description.
10744
10745 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
10746
10747         * config/pa/pa.md: Delete the two remaining define_peephole
10748         patterns.
10749
10750 2004-07-18  Steven Bosscher  <stevenb@suse.de>
10751             Joseph S. Myers  <jsm@polyomino.org.uk>
10752
10753         * c-common.c (c_common_truthvalue_conversion): Don't warn if
10754         TREE_NO_WARNING is set.
10755
10756 2004-07-18  Roger Sayle  <roger@eyesopen.com>
10757
10758         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
10759         simplify_builtin_strncmp): Delete.
10760         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
10761         Change argument to accept an arglist instead of an "exp".  Assume
10762         that the return type is always integer_type_node.  Copy missing
10763         transformations from their now obsolete simplify_builtin_*
10764         equivalents.
10765         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
10766         fold_builtin_strcmp and fold_builtin_strncmp.
10767         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
10768         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
10769         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
10770
10771 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
10772
10773         * Makefile.in (tree-alias-common.o): Update dependencies.
10774
10775 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
10776
10777         * cfgloop.c (flow_loop_nested_p): Fix comment.
10778
10779 2004-07-17  Jason Merrill  <jason@redhat.com>
10780
10781         PR c++/16115
10782         * stor-layout.c (relayout_decl): New fn.
10783         * tree.h: Declare it.
10784         (DECL_BY_REFERENCE): New macro.
10785
10786 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
10787
10788         * libgcc2.c (__enable_execute_stack): New symbol.
10789         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
10790         and declare __enable_execute_stack.
10791         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
10792         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
10793         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
10794         ENABLE_EXECUTE_STACK.
10795         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
10796         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
10797         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
10798         ENABLE_EXECUTE_STACK.
10799         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10800         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
10801         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
10802         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
10803         ENABLE_EXECUTE_STACK.
10804         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10805         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10806         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10807         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
10808         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
10809         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
10810         (sparc64_initialize_trampoline): Likewise.
10811         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
10812
10813 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
10814
10815         * langhooks.h (builtin_function): New langhook.
10816         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
10817         (LANG_HOOKS_INITIALIZER): Update.
10818         * tree.h (builtin_function): Remove.
10819         * doc/tm.texi: Update.
10820         * c-tree.h (builtin_function): Declare.
10821         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
10822         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
10823         config/ia64/ia64.c, config/iq2000/iq2000.c,
10824         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
10825         config/stormy16/stormy16.c: All callers of builtin_function
10826         changed.
10827
10828 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
10829
10830         PR target/16556
10831         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
10832         Remove white space after the backslash.
10833
10834 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
10835
10836         PR rtl-optimization/16294
10837         * resource.c (return_insn_p): New predicate.
10838         (mark_target_live_regs): Use it.  Special-case return insns.
10839         (init_resource_info): Use it.  Don't scan the epilogue past
10840         a return.
10841
10842 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10843
10844         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
10845         destroy dominance information.
10846         * passes.c (rest_of_handle_loop2):  Free dominance information.
10847         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
10848         jump threading.
10849         (thread_jumps): Update dominance information and remove unreachable
10850         blocks.
10851         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
10852         information and remove the unreachable block.
10853
10854 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
10855
10856         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
10857
10858 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
10859
10860         * doc/sourcebuild.texi: Remove libf2c entry.
10861
10862 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
10863
10864         * config/i386/i386.md (movv16qi_internal): Fix typo.
10865
10866 2004-07-17  Steven Bosscher  <stevenb@suse.de>
10867
10868         * final.c (final_scan_insn): Fix broken commit from previous
10869         patch.
10870
10871 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
10872
10873         * c-typeck.c (parser_build_binary_op): Condition warnings for
10874         X<=Y<=Z on -Wparentheses instead of -Wextra.
10875         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
10876         supported for C only.
10877
10878 2004-07-17  Steven Bosscher  <stevenb@suse.de>
10879
10880         * cfgcleanup.c (try_simplify_condjump): Don't remove line
10881         notes to avoid unreachable code warnings.
10882         * toplev.c (backend_init): Don't emit line notes for
10883         unreachable code warnings.
10884
10885         * combine.c (distribute_notes): Don't distribute a
10886         REG_VTABLE_REF note.
10887         * final.c (final_scan_insn): Don't handle it.
10888         * rtl.c (reg_note_name): Remove it.
10889         * rtl.h (enum reg_node): Dito.
10890
10891         * emit-rtl.c (force_line_numbers, restore_line_number_status):
10892         Remove.
10893         * rtl.h (force_line_numbers, restore_line_number_status):
10894         Remove prototypes.
10895
10896         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
10897         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
10898         (using_eh_for_cleanups): Also moved here.
10899
10900         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
10901         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
10902         to expand_start_case and add_case_node.
10903         * stmt.c (struct nesting): Cleanup unused fields condition_code,
10904         last_unconditional_cleanup, nominal_type, printname, and
10905         line_number_status.
10906         (struct fixup_goto): Remove.
10907         (struct stmt_status): Remove x_goto_fixup_chain field.
10908         (goto_fixup_chain): Remove.
10909         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
10910         pushcase, pushcase_range): Remove.
10911         (expand_start_bindings_and_block): Don't set unused fields in
10912         the nesting stack.
10913         (expand_start_case, add_case_node): Cleanup unused formal arguments.
10914         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
10915         instead of emit_jump_if_reachable.
10916         (emit_case_nodes): Likewise.
10917         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
10918         static.
10919         (update_eh_label): Work around left-over exception handing regions.
10920         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
10921         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
10922         (pass_cleanup_cfg_post_optimizing): New pass.
10923         (init_tree_optimization_passes): Run the new pass after all
10924         optimizations.
10925         * tree.h (pushcase, pushcase_range): Remove prototypes.
10926         (expand_start_case, add_case_node): Update prototypes.
10927
10928 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
10929
10930         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
10931
10932 2004-07-16  Richard Henderson  <rth@redhat.com>
10933
10934         * builtins.c (std_expand_builtin_va_arg): Remove.
10935         (expand_builtin_va_arg): Remove.
10936         * expr.h: Don't declare them.
10937         * gimplify.c (mark_decls_volatile_r): Remove.
10938         (copy_if_shared_r): Don't call it.
10939         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
10940         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
10941         * gimple-low.c (lower_stmt): Likewise.
10942         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
10943         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
10944         * tree-ssa-operands.c (get_expr_operands): Likewise.
10945         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
10946         EXPAND_BUILTIN_VA_ARG.
10947         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
10948         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
10949         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
10950         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
10951
10952 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
10953
10954         * tree-ssa-pre.c (insert_aux): Break out if we hit
10955         a critical edge.
10956
10957 2004-07-16  Richard Henderson  <rth@redhat.com>
10958
10959         * basic-block.h (remove_fake_exit_edges): Declare.
10960         * cfganal.c (remove_fake_predecessors): Rename from
10961         remove_fake_successors; iterate over predecessors.
10962         (remove_fake_exit_edges): New.
10963         * cfgcleanup.c (try_optimize_cfg): Use it.
10964         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
10965         * predict.c (estimate_probability): Likewise.
10966         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
10967         * tree-cfg.c (make_edges): Likewise.
10968         * tree-ssa-pre.c (fini_pre): Likewise.
10969         * profile.c (instrument_edges): Don't remove_fake_edges.
10970         (branch_prob): Do it earlier here.
10971
10972 2004-07-16  Richard Henderson  <rth@redhat.com>
10973
10974         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
10975         switchification wrt CONSTRUCTOR.  Document the reason.
10976
10977 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
10978
10979         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
10980         that prevented descriptive __mf_check source location strings.
10981
10982 2004-07-16  Richard Henderson  <rth@redhat.com>
10983
10984         * tree-def (WITH_SIZE_EXPR): New.
10985         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
10986         * expr.c (expand_expr_real_1): Likewise.
10987         * gimplify.c (maybe_with_size_expr): New.
10988         (gimplify_arg, gimplify_modify_expr): Use it.
10989         (gimplify_modify_expr_to_memcpy): Take size parameter.
10990         (gimplify_modify_expr_to_memset): Likewise.
10991         (gimplify_expr): Handle WITH_SIZE_EXPR.
10992         * tree-alias-common.c (find_func_aliases): Likewise.
10993         * tree-eh.c (tree_could_trap_p): Likewise.
10994         (tree_could_throw_p): Likewise.
10995         * tree-gimple.c (is_gimple_lvalue): Likewise.
10996         (get_call_expr_in): Likewise.
10997         * tree-inline.c (estimate_num_insns_1): Likewise.
10998         (expand_calls_inline): Likewise.
10999         * tree-nested.c (convert_call_expr): Likewise.
11000         * tree-pretty-print.c (dump_generic_node): Likewise.
11001         * tree-sra.c (sra_walk_expr): Likewise.
11002         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
11003         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
11004         * tree-ssa-operands.c (get_expr_operands): Likewise.
11005         * tree-tailcall.c (find_tail_calls): Likewise.
11006
11007         * calls.c (expand_call): Reset old_stack_allocated after
11008         calling emit_stack_restore.
11009
11010 2004-07-16  Richard Henderson  <rth@redhat.com>
11011
11012         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
11013         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
11014         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
11015         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
11016         copy_res_decl_for_inlining.
11017
11018         * tree-inline.c (declare_return_variable): New modify_dest argument.
11019         Use it as the return value, when possible or manditory.  Handle
11020         TREE_ADDRESSABLE types.
11021         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
11022         replacement of CALL_EXPR.
11023
11024 2004-07-16  Richard Henderson  <rth@redhat.com>
11025
11026         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
11027         * gimple-low.c (expand_var_p): Don't check it.
11028         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
11029         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
11030         * tree-ssa-operands.c (add_stmt_operand): Likewise.
11031         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
11032         (find_referenced_vars): Don't call them.
11033         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
11034
11035 2004-07-16  Richard Henderson  <rth@redhat.com>
11036
11037         * function.c (pass_by_reference): True for all variable sized types.
11038
11039 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
11040
11041         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
11042         * tree-pretty-print.c: Include tree-chrec.h.
11043         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
11044         and POLYNOMIAL_CHREC nodes.
11045
11046 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
11047
11048         * builtins.c (expand_builtin_stpcpy): Do not create temporary
11049         reg with VOIDmode.
11050
11051 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
11052
11053         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
11054
11055 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
11056
11057         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
11058         to BASE_REGNUM.
11059         * config/s390/s390.c: Likewise.
11060         * config/s390/s390.h: Likewise.
11061
11062 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11063
11064         * config/mips/mips.md (addsi3, adddi3): Remove special handling
11065         of $sp adds.  Remove REGNO checks from mips16 patterns.
11066
11067 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11068
11069         * config/mips/mips.md: Delete outdated comment.
11070
11071 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11072
11073         * config/mips/mips.c (get_float_compare_codes): Delete.
11074         (mips_emit_compare): New function, mostly extracted from
11075         get_float_compare_codes and gen_conditional_branch.
11076         (gen_conditional_branch, gen_conditional_move): Use it.
11077
11078 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
11079
11080         * genautomata.c (add_vect): Speedup by using integers as
11081         bit-vectors for walking through the comb_vect and finding
11082         a match.
11083
11084 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11085
11086         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
11087         operand is an uns_arith_operand; use subtraction otherwise.
11088         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
11089         not just arith_operands.
11090
11091 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11092
11093         * config/mips/mips-protos.h (gen_int_relational): Delete.
11094         (mips_emit_scc): Declare.
11095         * config/mips/mips.c (internal_test): Delete.
11096         (sle_operand, sleu_operand): New functions.
11097         (map_test_to_internal_test, gen_int_relational): Delete.
11098         (mips_emit_binary, mips_relational_operand_ok_p)
11099         (mips_emit_int_relational, mips_zero_if_equal)
11100         (mips_emit_scc): New functions.
11101         (gen_conditional_branch): Rework to use mips_emit_int_relational.
11102         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
11103         sleu_operand.
11104         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
11105         (sltu, sleu): Use mips_emit_scc.
11106         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
11107         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
11108         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
11109
11110 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11111
11112         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
11113
11114 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11115
11116         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
11117         (*sne_[sd]i): Likewise sne_[sd]i_zero.
11118         (*sgt_[sd]i): ...and sgt_[sd]i.
11119         (*slt_[sd]i): ...and slt_[sd]i.
11120         (*sgtu_[sd]i): ...and sgtu_[sd]i.
11121         (*sltu_[sd]i): ...and sltu_[sd]i.
11122         (*sleu_[sd]i): ...and sleu_[sd]i_const.
11123         Name previously unnamed mips16 patterns.  Formatting fixes.
11124
11125 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11126
11127         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
11128         (branch_type): Delete.
11129         (gen_conditional_branch, gen_conditional_move)
11130         (mips_gen_conditional_trap): Update after name change.  Get the
11131         comparison mode from cmp_operands[0].
11132         * config/mips/mips.h (cmp_type, branch_type): Delete.
11133         (cmp_operands): Renamed from branch_cmp.
11134         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
11135         name change.  Don't set branch_type.
11136         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
11137         mode class of cmp_operands[0] rather than branch_type.  Update after
11138         name change.
11139
11140 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11141
11142         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
11143         of 0...255 to 0 when inside a SET.
11144
11145 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11146
11147         * config/mips/mips.md: Remove mips16 define_peepholes.
11148
11149 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
11150
11151         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
11152         (fini_pre): Remove fake edges.
11153
11154 2004-07-15  Richard Henderson  <rth@redhat.com>
11155
11156         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
11157         (get_indirect_ref_operands, get_call_expr_operands): ... these.
11158
11159 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
11160
11161         * vec.h (VEC_address): New function.
11162
11163 2004-07-14  Jason Merrill  <jason@redhat.com>
11164
11165         PR middle-end/15885
11166         * gimplify.c (gimplify_arg): New fn, split out from...
11167         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
11168
11169 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
11170
11171         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
11172         generate code which is generated by pushqi1 now
11173         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
11174
11175 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
11176
11177         * combine.c (simplify_set): match the mode of the constant 0 with
11178         the tested operand to match the compare behaviour and the
11179         simplify_relational_operation() expectation.
11180
11181 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
11182
11183         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
11184         ("bordered"): Same.
11185
11186 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
11187
11188         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
11189         unconditionally.
11190         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
11191
11192 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
11193
11194         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
11195         calls in mips16 code.
11196
11197 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
11198
11199         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
11200         the destination of the li as well as for the neg.
11201
11202 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
11203
11204         g++/15861
11205         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
11206         * cgraph.h: Update declaration.
11207         * c-decl.c (build_cdtor): Update call with default priority.
11208         * coverage.c (create_coverage): Ditto.
11209         * tree-mudflap.c (mf_init_fndecl): New tree.
11210         (mudflap_init): Set it.
11211         (mudflap_register_call): Arrange to call __mf_init before the first
11212         __mf_register call.
11213         (mudflap_finish_file): Mark the mudflap static initializer as extra
11214         high priority, to beat all C++ static constructors.
11215
11216 2004-07-15  Jeff Law  <law@redhat.com>
11217
11218         * loop.c (check_insn_for_givs): Restore check for code labels that was
11219         accidentally deleted by a recent checkin.
11220
11221 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
11222
11223         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
11224         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
11225
11226 2004-07-14  Richard Henderson  <rth@redhat.com>
11227
11228         * print-tree.c (print_node): Fix casts last change.
11229
11230 2004-07-15  Paul Brook  <paul@codesourcery.com>
11231
11232         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
11233         to TARGET_UNWIND_INFO.
11234         * except.c (output_function_exception_table): Ditto.
11235         * except.h: Ditto.
11236         * opts.c (decode_options): Ditto.
11237         * passes.c (rest_of_handle_final): Ditto.
11238         * final.c (final_start_function): Ditto.
11239         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
11240         target hook.
11241         * targhooks.h (default_unwind_emit): Declare.
11242         * targhooks.c (default_unwind_emit): New function.
11243         * target-def.h: Define and use TARGET_UNWIND_EMIT.
11244         * target.h (struct gcc_target): Add unwind_emit.
11245         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
11246         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
11247         Remove IA64_UNWIND_EMIT.
11248         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
11249
11250 2004-07-14  Richard Henderson  <rth@redhat.com>
11251
11252         * print-tree.c (print_node): Handle SSA_NAME.
11253
11254 2004-07-14  James E Wilson  <wilson@specifixinc.com>
11255
11256         PR target/16325
11257         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
11258         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
11259
11260 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
11261
11262         * expr.c (expand_assignment): Reenable bitfield += optimizations.
11263         Use alias set 0 for memory, do proper mode calculations and adjust
11264         address for memories.
11265
11266 2004-07-14  Per Bothner  <per@bothner.com>
11267
11268         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
11269         structure with extra column field.
11270         * tree.c (expand_location):  Also fill in column field.
11271         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
11272         gets confused by the two conditionally-compiled definitions.
11273
11274 2004-07-14  Eric Christopher  <echristo@redhat.com>
11275
11276         * calls.c (expand_call): Fix typo in comment.
11277
11278 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
11279
11280         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
11281         comparision of TFmode.
11282
11283 2004-07-14  Richard Henderson  <rth@redhat.com>
11284
11285         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
11286         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
11287         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
11288         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11289         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
11290         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
11291         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11292         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
11293         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11294
11295 2004-07-14  Mike Stump  <mrs@apple.com>
11296
11297         * config/darwin.h (WINT_TYPE): Define to be int to match
11298         system header files.
11299
11300 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
11301
11302         * config/xtensa/xtensa.c (function_arg_advance): Check for args
11303         that must be passed in the stack.
11304         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
11305         arguments if the size is not a constant.
11306
11307 2004-07-14  Per Bothner  <per@bothner.com>
11308
11309         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
11310         instead of EXPR_LOCUS in a boolean context, which is always true
11311         if --enable-mapped-location.
11312         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
11313
11314 2004-07-14  Richard Henderson  <rth@redhat.com>
11315
11316         * dominance.c (struct dom_info): Add fake_exit_edge.
11317         (init_dom_info): Allocate it.
11318         (free_dom_info): Free it.
11319         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
11320         in two passes.
11321         (calc_idoms): Honor fake_exit_edge.
11322
11323 2004-07-13  Jason Merrill  <jason@redhat.com>
11324
11325         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
11326         (rhs_test_for): New fn.
11327         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
11328         * tree-gimple.h: Declare them.
11329         * gimplify.c (gimplify_modify_expr): Use the new fns.
11330
11331 2004-07-14  Richard Henderson  <rth@redhat.com>
11332
11333         * config/arm/arm-protos.h (arm_va_arg): Remove.
11334         * config/arm/arm.c (arm_va_arg): Remove.
11335         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
11336         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
11337
11338 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11339
11340         * pa.c (fix_range): New function to mark a range(s) of registers as
11341         fixed registers.
11342         (override_options): Call fix_range if the -mfixed-range option string
11343         is not empty.
11344         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
11345         * doc/invoke.texi (-mfixed-range): Document new option.
11346
11347 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
11348
11349         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
11350         for TARGET_64BIT.
11351         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
11352
11353 2004-07-14  Roger Sayle  <roger@eyesopen.com>
11354
11355         * expmed.c (expand_sdiv_pow2): New function to expand signed division
11356         by a positive power of two, split out from expand_divmod.  Provide
11357         an alternate implementation when shifts are expensive.  Lower the
11358         threshold for using a branchless implementation to BRANCH_COST >= 2.
11359         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
11360
11361 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
11362
11363         * tree-dfa.c (make_rename_temp): *Really* work just
11364         like create_tmp_var if called while outside SSA form.
11365
11366 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
11367
11368         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
11369         for division by zero.
11370         ("umodsi3"): Likewise.
11371
11372 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
11373
11374         * config/mips/mips.c (mips_output_move): When generating mips16 code,
11375         force loads of negative constants to be split.
11376         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
11377         Generalize SImode li/neg splitter to cope with other modes.
11378
11379 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
11380
11381         * expmed.c: Remove more references to QUEUED in the comments.
11382         * expr.c: Likewise.
11383
11384 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
11385
11386         Revert:
11387         2004-07-13  Richard Henderson  <rth@redhat.com>
11388         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
11389         correctly.
11390
11391 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
11392
11393         * tree-dfa.c (make_rename_temp): Work just like
11394         create_tmp_var if called while outside SSA form.
11395
11396 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
11397
11398         * expr.c (enqueue_insn, finish_expr_for_function,
11399         protect_from_queue, queued_subexp_p, mark_queue,
11400         emit_insns_enqueued_after_mark, emit_queue,
11401         expand_increment): Remove.
11402         (store_constructor): Expand increment as an assignment.
11403         (expand_expr_real_1 <case PREINCREMENT_EXPR,
11404         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
11405         case POSTDECREMENT_EXPR>): Abort.
11406         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
11407         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
11408         protect_from_queue, emit_queue, queued_subexp_p): Remove.
11409         * function.h (pending_chain, x_pending_chain): Remove.
11410         * rtl.def (QUEUED): Remove.
11411
11412         * emit-rtl.c (copy_insn_1, copy_most_rtx,
11413         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
11414         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
11415         encode_units_mask): Likewise.
11416         * local-alloc.c (equiv_init_varies_p): Likewise.
11417         * rtl.c (copy_rtx): Likewise.
11418         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
11419         * simplify-rtx.c (simplify_gen_subreg): Likewise.
11420         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
11421
11422         * builtins.c (expand_builtin, expand_builtin_apply,
11423         expand_builtin_mathfn, expand_builtin_mathfn_2,
11424         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
11425         Remove calls to emit_queue and protect_from_queue.
11426         * calls.c (expand_call, precompute_arguments,
11427         precompute_register_parameters, rtx_for_function_call,
11428         store_one_arg): Likewise.
11429         * dojump.c (do_compare_and_jump, do_jump): Likewise.
11430         * explow.c (memory_address): Likewise.
11431         * expmed.c (clear_by_pieces_1, clear_storage,
11432         clear_storage_via_libcall, emit_group_load,
11433         emit_group_store, emit_store_flag,
11434         expand_expr_real_1, store_by_pieces,
11435         store_constructor, store_expr, try_casesi,
11436         try_tablejump): Likewise.
11437         * function.c (expand_pending_sizes): Likewise.
11438         * optabs.c (emit_cmp_and_jump_insns,
11439         emit_conditional_add, emit_conditional_move,
11440         expand_fix, expand_float, prepare_cmp_insn): Likewise.
11441         * stmt.c (emit_case_bit_tests,
11442         expand_asm_expr, expand_computed_goto,
11443         expand_decl_init, expand_end_case_type,
11444         expand_end_stmt_expr, expand_expr_stmt_value,
11445         expand_return, expand_start_case,
11446         optimize_tail_recursion): Likewise.
11447         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
11448         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
11449
11450 2004-07-14  Ben Elliston  <bje@au.ibm.com>
11451
11452         * vec.h: Comment fix.
11453
11454 2004-07-13  Richard Henderson  <rth@redhat.com>
11455
11456         * target.h (struct gcc_target): Add calls.pass_by_reference.
11457         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
11458         * function.c (pass_by_reference): Use the hook.
11459         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
11460         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
11461         (hook_pass_by_reference_must_pass_in_stack): New.
11462         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
11463         (alpha_pass_by_reference): New.
11464         (TARGET_PASS_BY_REFERENCE): New.
11465         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11466         * config/arc/arc.c (arc_pass_by_reference): New.
11467         (TARGET_PASS_BY_REFERENCE): New.
11468         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11469         (FUNCTION_ARG_CALLEE_COPIES): True.
11470         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
11471         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
11472         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
11473         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11474         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11475         * config/cris/cris.c (cris_pass_by_reference): New.
11476         (TARGET_PASS_BY_REFERENCE): New.
11477         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
11478         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
11479         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11480         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
11481         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11482         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
11483         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
11484         (frv_function_arg_pass_by_reference): Remove.
11485         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11486         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
11487         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
11488         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
11489         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11490         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
11491         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
11492         (ia64_pass_by_reference): Rename from
11493         ia64_function_arg_pass_by_reference.
11494         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11495         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11496         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
11497         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
11498         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
11499         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11500         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
11501         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
11502         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
11503         (m32r_pass_by_reference): Adjust prototype.  Make static.
11504         Handle mode sizes correctly.
11505         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11506         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
11507         (m68hc11_function_arg_pass_by_reference): Remove.
11508         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11509         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
11510         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
11511         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11512         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
11513         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
11514         (mips_va_arg): Use pass_by_reference.
11515         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
11516         Handle mode sizes correctly.
11517         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11518         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
11519         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
11520         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
11521         (mmix_pass_by_reference): Rename from
11522         mmix_function_arg_pass_by_reference.
11523         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11524         (FUNCTION_ARG_CALLEE_COPIES): True.
11525         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
11526         (mn10300_pass_by_reference): New.
11527         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11528         (FUNCTION_ARG_CALLEE_COPIES): True.
11529         * config/pa/pa.c (pa_pass_by_reference): New.
11530         (TARGET_PASS_BY_REFERENCE): New.
11531         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11532         (FUNCTION_ARG_CALLEE_COPIES): True.
11533         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
11534         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
11535         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
11536         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11537         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
11538         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
11539         (s390_pass_by_reference): Rename from
11540         s390_function_arg_pass_by_reference.
11541         (s390_function_arg_advance): Don't query pass-by-ref.
11542         (s390_function_arg): Likewise.
11543         (s390_gimplify_va_arg): Use pass_by_reference.
11544         (s390_call_saved_register_used): Likewise.
11545         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11546         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
11547         (shcompact_byref, sh_pass_by_reference): New.
11548         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11549         (SHCOMPACT_BYREF): Remove.
11550         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
11551         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
11552         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
11553         (sparc_gimplify_va_arg): Use pass_by_reference.
11554         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11555         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11556         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
11557         (v850_pass_by_reference): New.
11558         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11559         (FUNCTION_ARG_CALLEE_COPIES): True.
11560         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
11561         FUNCTION_ARG_PASS_BY_REFERENCE docs.
11562
11563 2004-07-14  Richard Henderson  <rth@redhat.com>
11564             Richard Sandiford  <rsandifo@redhat.com>
11565
11566         * config/mips/mips-protos.h (mips_va_arg): Delete.
11567         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
11568         * config/mips/mips.c: Include tree-gimple.h.
11569         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
11570         (mips_arg_info): Remove special handling of must_pass_in_stck args.
11571         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
11572         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
11573
11574 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
11575
11576         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
11577         arguments for COND_EXPR in big-endian adjustment code.
11578
11579 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11580
11581         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
11582         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
11583         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
11584         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
11585
11586 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
11587
11588         PR tree-optimization/16443
11589         * tree-ssa-alias.c: Add more description for
11590         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
11591         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
11592         clobbering of call-clobbered and addressable variables.  If
11593         there are any before aliases have been computed, add them.
11594
11595 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
11596
11597         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
11598         verification.
11599
11600 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
11601
11602         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
11603         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
11604         to the same type.
11605
11606 2004-07-13  Per Bothner  <per@bothner.com>
11607
11608         * collect2.c (main):  Handle --no-demangle and --demangle flags.
11609
11610 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
11611
11612         * Makefile.in (OBJS-common): Add tree-data-ref.o.
11613         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
11614         (tree-data-ref.o): New rule.
11615         * lambda.h: New file.
11616         * tree-data-ref.c: New file.
11617         * tree-data-ref.h: New file.
11618         * tree.c (int_cst_value, tree_fold_gcd): New functions.
11619         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
11620
11621 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11622
11623         PR target/13926
11624         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
11625         * config/sparc/sparc.c (output_ubranch): New function.
11626         * config/sparc/sparc.md (jump pattern): Use it.
11627
11628 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11629
11630         PR target/16494
11631         * config/sparc/sparc.c (output_cbranch): Properly guard
11632         the code handling far branches with TARGET_V9.
11633         * config/sparc/sparc.md (length attribute): Document the
11634         side-effect of having a length greater or equal to 3.
11635
11636 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11637             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
11638
11639         PR target/15186
11640         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
11641         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
11642
11643 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11644             Martin Sebor  <sebor@roguewave.com>
11645
11646         PR target/12602
11647         * doc/invoke.texi (SPARC options): Document -threads
11648         and -pthreads on Solaris.
11649
11650 2004-07-13  Richard Henderson  <rth@redhat.com>
11651
11652         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
11653         by reference.
11654         (ind_gimplify_va_arg_expr): Remove.
11655         * tree.h (ind_gimplify_va_arg_expr): Remove.
11656         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
11657         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
11658         argsp to be null.
11659
11660         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
11661         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
11662         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
11663         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
11664         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
11665
11666 2004-07-13  Richard Henderson  <rth@redhat.com>
11667
11668         * function.c (pass_by_reference): New.
11669         (assign_parm_find_data_types): Use it.
11670         * calls.c (initialize_argument_information): Likewise.
11671         (emit_library_call_value_1): Likewise.
11672         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11673         * function.h (pass_by_reference): Declare.
11674
11675 2004-07-13  Richard Henderson  <rth@redhat.com>
11676
11677         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
11678         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
11679         * expr.h (MUST_PASS_IN_STACK): Remove.
11680         * system.h (MUST_PASS_IN_STACK): Poison.
11681         * tree.h (must_pass_in_stack_var_size): Declare.
11682         (must_pass_in_stack_var_size_or_pad): Declare.
11683         * calls.c (must_pass_in_stack_var_size): New.
11684         (must_pass_in_stack_var_size_or_pad): Rename from
11685         default_must_pass_in_stack.
11686         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
11687         (TARGET_MUST_PASS_IN_STACK): New.
11688         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
11689         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
11690         (TARGET_MUST_PASS_IN_STACK): New.
11691         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
11692         * config/frv/frv.c (frv_must_pass_in_stack): New.
11693         (TARGET_MUST_PASS_IN_STACK): New.
11694         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
11695         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
11696         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
11697         (ix86_must_pass_in_stack): Make static.
11698         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
11699         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
11700         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
11701         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
11702         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
11703         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
11704         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
11705         (mcore_must_pass_on_stack): Remove.
11706         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
11707         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
11708         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
11709         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
11710         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
11711         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
11712         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
11713         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
11714         (TARGET_MUST_PASS_IN_STACK): New.
11715         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
11716         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
11717         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
11718         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
11719         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
11720         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
11721         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
11722         MUST_PASS_IN_STACK.
11723
11724         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
11725         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
11726         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
11727         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
11728         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
11729         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
11730         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
11731         config/xtensa/xtensa.c: Use target hook.
11732
11733 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
11734
11735         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
11736         * configure: Rebuilt.
11737
11738 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
11739
11740         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
11741         * config/mips/mips.h (mips_reg_names): Don't declare.
11742         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
11743         (TARGET_NAME_REGS): Delete.
11744         (TARGET_SWITCHES): Remove -mrnames.
11745         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
11746         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
11747         in REGISTER_NAMES.
11748         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
11749         (override_options): Remove handling of TARGET_NAME_REGS.
11750
11751 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
11752
11753         * config/mips/mips.h (TARGET_*): Boolify.
11754
11755 2004-07-12  Nick Clifton  <nickc@redhat.com>
11756
11757         * config.gcc: Add sh-*-symbianelf target.
11758         * config/sh/sh.c: Add new target macros:
11759         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
11760         TARGET_CXX_IMPORT_EXPORT_CLASS.
11761         (sh_file_start): Create a definition of the .directive section.
11762         (sh_attribute): Add dllimport and dllexport attributes.
11763         * config/sh/symbian-pre.h: New file.
11764         * config/sh/symbian-post.h: New file.
11765         * config/sh/symbian.c: New file. Contains Symbian specific
11766         functions.
11767         * config/sh/sh-protos.h: Add prototypes for new functions
11768         provided by symbian.c.
11769         * config/sh/t-symbian: New file.
11770         * doc/extend.texi: Document support for dllimport and dllexport
11771         attributes by the sh-symbianelf target.
11772
11773 2004-07-12  James E Wilson  <wilson@specifixinc.com>
11774
11775         * Makefile.in (AR): Use @AR@ not ar.
11776         (NM): New.
11777         (AR_FOR_TARGET): Use $(AR) not ar for native.
11778         (NM_FOR_TARGET): Use $(NM) not nm for native.
11779         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
11780         * configure: Regenerate.
11781
11782 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
11783
11784         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
11785         special case.
11786         (ashldi3_sp64): Likewise.
11787
11788 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11789
11790         PR target/16477
11791         * pa.c (function_arg): Update comment.
11792         * pa.h (BLOCK_REG_PADDING): Define.
11793
11794 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11795
11796         PR tree-optimization/16461
11797         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
11798         arguments of phi nodes.
11799
11800 2004-07-12  Devang Patel  <dpatel@apple.com>
11801
11802         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
11803
11804 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
11805
11806         * function.c (expand_function_start): Ensure r_save is in Pmode.
11807         * calls.c (prepare_call_address): Ensure static_chain_value is
11808         in Pmode.
11809         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
11810         r_save_area are in Pmode.
11811         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
11812         fnaddr, and static_chain are in Pmode.
11813
11814 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
11815
11816         PR target/16445
11817         * config/ia64/ia64.c (bundling): Don't count ignored insns.
11818
11819 2004-07-12  Richard Henderson  <rth@redhat.com>
11820
11821         * target.h (struct gcc_target): Move gimplify_va_arg_expr
11822         next to build_builtin_va_list.
11823         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
11824         * builtins.c (gimplify_va_arg_expr): Likewise.
11825         * gimplify.c (copy_if_shared_r): Likewise.
11826
11827 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
11828
11829         * passes.c (rest_of_decl_compilation): Don't defer call of
11830         assemble_variable if its DECL_RTL is already set.
11831
11832 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
11833
11834         * cfgloop.h (struct loop): Add nb_iterations field.
11835         (current_loops): Declare.
11836         * tree-chrec.c (chrec_not_analyzed_yet,
11837         chrec_dont_know, chrec_known, count_ev_in_wider_type,
11838         chrec_contains_symbols_defined_in_loop): Remove the temporary
11839         hooks.
11840         * tree-flow-inline.h (loop_containing_stmt): New function.
11841         * tree-scalar-evolution.c: Add implementation.
11842         * tree-scalar-evolution.h: Add declarations.
11843
11844 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
11845
11846         PR rtl-optimization/15921
11847         * Makefile.in (global.o): Add recog.h.
11848
11849         * global.c (recog.h): Add the include-clause.
11850         (bb_info): New member earlyclobber.
11851         (allocate_bb_info, free_bb_info): Initialize/finish the new
11852         member.
11853         (earlyclobber_regclass, earlyclobber_regclass_length): The new
11854         global variables.
11855         (check_earlyclobber, regclass_intersect,
11856         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
11857         New functions.
11858         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
11859         (make_accurate_live_analysis): Modify pavin.
11860
11861 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
11862
11863         * tree-cfg.c (find_taken_edge): Statically compute the truth
11864         value of a predicate comparing an SSA_NAME to itself.
11865
11866 2004-07-12  Roger Sayle  <roger@eyesopen.com>
11867
11868         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
11869         rs6000 doesn't have shift-and-add or shift-and-sub instructions
11870         by returning the cost of a multiplication plus an addition.
11871
11872 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
11873
11874         PR tree-optimization/14107
11875         * gimplify.c (gimplify_return_expr): Accept a
11876         RETURN_EXPR with an error argument.
11877         * tree-optimize.c (init_tree_optimization_passes):
11878         Run pass_warn_function_return at -O0.
11879
11880 2004-07-12  Roger Sayle  <roger@eyesopen.com>
11881
11882         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
11883         index entry.
11884
11885 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
11886
11887         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
11888         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
11889         * config/mips/3000.md: Add copyright notice.  Remove automota and
11890         function units; use generic ones instead.  Only define reservations
11891         for things that are different from generic.md.  Extend each clause
11892         to include r3900.
11893         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
11894         * config/mips/mips.md: Include them. Remove define_function_units.
11895         (alu, imuldiv): New automata and units.
11896
11897 2004-07-12  Ben Elliston  <bje@au.ibm.com>
11898
11899         * doc/invoke.texi (Optimize Options): Document -frename-registers
11900         not being enabled by default at -O3.
11901
11902 2004-07-11  Roger Sayle  <roger@eyesopen.com>
11903
11904         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
11905         floating point additions, to keep real immediate constant positive.
11906         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
11907         into X + C, and leave positive real constants as X - C.
11908
11909 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11910
11911         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
11912
11913 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11914
11915         PR tree-optimization/15654
11916         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
11917
11918 2004-07-11  Roger Sayle  <roger@eyesopen.com>
11919
11920         * builtins.c (fold_builtin_fputs): Don't bother converting the
11921         return type to integer_type_node, as we've already checked that
11922         the result will be ignored.
11923
11924         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
11925         that signed addition, subtraction, multiplication, division,
11926         remainder, negation and absolute value may potentially trap.
11927
11928         * fold-const.c (fold_ignored_result): New function to strip
11929         non-side-effecting tree nodes from an expression whose result
11930         is ignored.
11931         (fold_convert): Call fold_ignored_result when casting a value
11932         to VOID_TYPE.
11933         (omit_one_operand):  Call fold_ignored_result on the "omitted"
11934         operand when building a COMPOUND_EXPR.
11935         (pedantic_omit_one_operand): Likewise.
11936         * tree.h (fold_ignored_result): Prototype here.
11937         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
11938         when we're going to ignore the result.
11939
11940 2004-07-11  Richard Henderson  <rth@redhat.com>
11941
11942         PR tree-opt/16383
11943         * tree-ssa-ccp.c (fold_stmt_r): Split out...
11944         * tree.c (fields_compatible_p, find_compatible_field): ... new.
11945         * tree.h (fields_compatible_p, find_compatible_field): Declare.
11946         * tree-sra.c (sra_hash_tree): Hash fields by offset.
11947         (sra_elt_eq): Use fields_compatible_p.
11948         (generate_one_element_ref): Use find_compatible_field.
11949
11950 2004-07-11  Richard Henderson  <rth@redhat.com>
11951
11952         PR tree-opt/16422
11953         * tree-sra.c (generate_one_element_init): New.
11954         (generate_element_init): Use it.
11955         (scalarize_init): Push/pop gimplify context around it.
11956         (find_new_referenced_vars_1, find_new_referenced_vars): New.
11957         * gimplify.c (gimplify_expr): Allow SSA_NAME.
11958
11959 2004-07-11  Roger Sayle  <roger@eyesopen.com>
11960
11961         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
11962         combine.c's combine_insn_cost.
11963         * rtl.h (insn_rtx_cost): Prototype here.
11964         * combine.c (combine_insn_cost): Delete function.
11965         (combine_validate_cost): Update callers of combine_insn_cost to
11966         call insn_rtx_cost instead.
11967         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
11968         requesting the rtx_cost of call and/or jump instructions.
11969
11970         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
11971         rtx_cost directly.  Don't request/use the cost of call or jump
11972         instructions.  Return -1 if the cost of any instruction can't be
11973         determined (or the BB contains a function call).
11974         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
11975         -1 (i.e. can't determine the cost of any instruction or the basic
11976         block contains a subroutine call).
11977         (find_if_case_2): Likewise.
11978
11979 2004-07-11  Roger Sayle  <roger@eyesopen.com>
11980
11981         * rs6000.c (struct processor_costs): Change semantics of fields to
11982         include the COST_N_INSNS scaling, and update all initializers.
11983         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
11984         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
11985         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
11986         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
11987
11988 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
11989
11990         * LANGUAGES: Remove obsolete information.
11991
11992 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
11993
11994         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
11995         SIGBUS signal frames, the PSW address points *to* the faulting
11996         instruction, not after it.
11997
11998 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
11999
12000         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
12001         added to TLS symbol addresses.
12002
12003 2004-07-11  Richard Henderson  <rth@redhat.com>
12004
12005         * expmed.c (init_expmed): Use stack-local structures for
12006         temporary rtl.  Don't recognize shifts.
12007
12008 2004-07-11  Richard Henderson  <rth@redhat.com>
12009
12010         * expr.c (store_expr): Don't fiddle subreg promotion for types
12011         with precision smaller than the mode.
12012
12013 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12014
12015         * tree.h (all_types_permanent): Remove.
12016
12017 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12018
12019         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
12020         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
12021         * langhooks.c (lhd_clear_binding_stack): Remove.
12022         * langhooks-def.h (lhd_clear_binding_stack,
12023         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
12024         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
12025         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
12026         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
12027         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
12028         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
12029         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
12030         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
12031         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
12032         * tree.h (poplevel): Don't declare.
12033         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
12034         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
12035         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
12036         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
12037         Remove.
12038
12039 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12040
12041         PR tree-optimization/16437
12042         * c-common.c (shorten_compare): Don't mark result of conversion to
12043         narrower signed type as overflowing.
12044         * fold-const.c (decode_field_reference): Determine whether
12045         signedness comes from outer type using precision rather than size.
12046
12047 2004-07-11  Phil Edwards  <phil@codesourcery.com>
12048
12049         * configure.ac:  Alphabetize --enable-checking list, add
12050         missing valgrind entry.
12051         * configure:  Regenerate.
12052
12053 2004-07-11  Phil Edwards  <phil@codesourcery.com>
12054
12055         * doc/install.texi (Testing):  Fix syntax in "make check" example.
12056
12057 2004-07-10  James E Wilson  <wilson@specifixinc.com>
12058
12059         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
12060
12061 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12062
12063         PR rtl-optimization/16001
12064         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
12065         niter_expr.
12066
12067 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
12068
12069         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
12070
12071 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
12072             James Morrison  <phython@gcc.gnu.org>
12073
12074         * doc/contrib.texi (Contributors): Add gfortran contributors and
12075         fix a couple of typos.
12076
12077 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12078
12079         PR rtl-optimization/15387
12080         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
12081         to incoming args space correctly.
12082
12083 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12084
12085         * pa.c (output_indirect_call): Only use %r2 as the link register in
12086         indirect calls with the long PA 2.0 pc-relative branch.
12087
12088 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
12089
12090         * config/i386/i386.c (override_options): Pick a 64-bit CPU
12091         for the default tuning if TARGET_64BIT.
12092
12093 2004-07-10  Richard Henderson  <rth@redhat.com>
12094
12095         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
12096         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
12097
12098 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
12099
12100         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
12101         * expmed.c (store_bit_field, extract_bit_field): Remove last
12102         argument.
12103         * builtins.c (expand_builtin_signbit): Adjust callers.
12104         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
12105         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
12106         * ifcvt.c (noce_emit_move_insn): Likewise.
12107         * stmt.c (expand_return): Likewise.
12108         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
12109         store_field, expand_expr_real_1): Likewise.
12110
12111 2004-07-10  Richard Henderson  <rth@redhat.com>
12112
12113         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
12114
12115 2004-07-09  Mike Stump  <mrs@apple.com>
12116
12117         * config/darwin.c (no_dead_strip): Add.
12118         (HAVE_DEAD_STRIP): Add.
12119         (darwin_emit_unwind_label): Ensure that we don't dead code strip
12120         the .eh label.
12121
12122 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12123
12124         * tree-ssa-loop-im.c: New file.
12125         * Makefile.in (tree-ssa-loop-im.o): Add.
12126         * cfgloop.c (superloop_at_depth): New function.
12127         * cfgloop.h (superloop_at_depth): Declare.
12128         * common.opt (ftree-lim): New flag.
12129         * expr.c (array_ref_up_bound): New function.
12130         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
12131         * timevar.def (TV_LIM): New timevar.
12132         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
12133         computing immediate uses of a phi node.
12134         * tree-flow.h (struct tree_ann_common_d): Add aux field.
12135         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
12136         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
12137         * tree-pass.h (pass_lim): Declare.
12138         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
12139         functions.
12140         (pass_lim): New pass structure.
12141         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
12142         * tree.c (in_array_bounds_p): New function.
12143         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
12144         (in_array_bounds_p, array_ref_up_bound): Declare.
12145         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
12146         * doc/passes.texi (tree-ssa-loop-im.c): Document.
12147
12148 2004-07-09  Richard Henderson  <rth@redhat.com>
12149
12150         * builtins.c (expand_builtin_stpcpy): Don't modify len.
12151
12152         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
12153         with prejudice.
12154
12155 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
12156
12157         * flags.h: Delete redundant prototypes that are being generated
12158         in options.h from common.opt.
12159         * common.opt: Add in the expository comments formerly in flags.h.
12160
12161 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12162
12163         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
12164         available for use only when TARGET_MMX/_SSE is set, and check for
12165         variable argument function if any register count is non-zero.
12166         (function_arg): Correctly suppress repeated warnings for passing SSE
12167         vectors are arguments without SSE enabled.
12168         (ix86_function_arg_boundary): Without SSE enabled, the use of what
12169         would be SSE register modes does no longer influence the alignment.
12170
12171 2004-07-09  Richard Henderson  <rth@redhat.com>
12172
12173         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
12174         Always align upward to arg boundary.  Use size_in_bytes/round_up.
12175         Maintain type-correctness of constants.
12176         * stor-layout.c (round_up, round_down): Special-case powers of 2.
12177
12178 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
12179
12180         * config/sparc/sparc.c (*_costs): Scale instruction costs
12181         by COSTS_N_INSNS.
12182         (sparc_rtx_costs): Adjust as appropriate.
12183
12184 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12185
12186         * config/i386/mm3dnow.h: New.
12187         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
12188
12189 2004-07-09  Richard Henderson  <rth@redhat.com>
12190
12191         * simplify-rtx.c (simplify_const_relational_operation): Only
12192         look at bounds of scalar integers.
12193
12194 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12195
12196         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
12197
12198 2004-07-09  Andrew Pinski  <apinski@apple.com>
12199
12200         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
12201         always referenced.
12202         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
12203         UOBJC_METACLASS_decl.
12204
12205 2004-07-09  James E Wilson  <wilson@specifixinc.com>
12206
12207         PR target/16364
12208         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
12209         do return a parallel if hfa_mode == XFmode and mode == TImode.
12210
12211 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12212
12213         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
12214         permissible for unary plus.
12215
12216 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12217
12218         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
12219         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
12220         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
12221         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
12222         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
12223         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
12224         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
12225         (BUILTIN_xxxIMAX): New.
12226         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
12227         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
12228         BUILT_IN_PARITYIMAX.
12229
12230 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
12231
12232         * config/sparc/sparc.h (processor_costs): Define.
12233         (sparc_costs): Declare.
12234         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
12235         hypersparc_costs, sparclet_costs, ultrasparc_costs,
12236         ultrasparc3_costs): New.
12237         (sparc_override_options): Set sparc_costs as appropriate.
12238         (sparc_rtx_costs): Use sparc_costs instead of messy
12239         conditionals.
12240
12241 2004-07-09  Steven Bosscher  <stevenb@suse.de>
12242
12243         * doc/md.texi (Processor pipeline description): Mention that
12244         the old pipeline description is deprecated.
12245
12246         * config/rs6000/7450.md (automaton ppc7450): Split up, move
12247         mciu_7450 function unit to...
12248         (automaton ppc7450mciu): ...new automaton.
12249
12250         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
12251         (schedule_block): Don't consider inserting bubbles.
12252         (sched_init): Don't initialize DFA bubbles.
12253         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
12254         TARGET_SCHED_DFA_BUBBLE): Remove.
12255         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
12256         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
12257         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
12258
12259         * stmt.c (conditional_context): Remove prototype.
12260         * tree.h (conditional_context): Remove.
12261         * tree-cfg.c (pre_insert_on_edge): Remove.
12262
12263         * c-common.h (c_expand_asm_operands): Remove prototype.
12264         * c-typeck.c (c_expand_asm_operands): Remove.
12265
12266 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12267
12268         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
12269         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
12270         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
12271         and V8QI are class SSE. All sufficiently small remaining vector modes
12272         must be passed in one or two integer registers.
12273         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
12274         returned in memory.
12275         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
12276         __builtin_ia32_pmuludq128 have non-uniform argument and return types
12277         and must thus be handled explicitly.
12278         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
12279         MMX and XMM regs.
12280         (movv8qi_internal, movv4hi_internal, movv2si_internal,
12281         movv2sf_internal): Permit moving between MMX and XMM registers (since
12282         MMX areguments and return values are passed in XMM registers).
12283         (sse2_umulsidi3): Correct type and mode.
12284
12285 2004-07-09  Richard Henderson  <rth@redhat.com>
12286
12287         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
12288
12289 2004-07-09  Eric Christopher  <echristo@redhat.com>
12290
12291         * config/rs6000/40x.md: Split into two automatons.
12292
12293 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
12294             Andrew Pinski  <apinski@apple.com>
12295
12296         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
12297         on when we have more than one input file.
12298         (c_common_parse_file): Restore loop over all input files.
12299         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
12300
12301         * c-decl.c (set_type_context): New function.
12302         (pop_scope): Use it to set context of types.  When we
12303         encounter a TYPE_DECL, set the context of the attached type too.
12304         (pop_file_scope): Don't call cpp_undef_all here.
12305         (diagnose_mismatched_decls): Do not complain about a second
12306         definition of an 'extern inline' function if it's not in the
12307         same translation unit.  Do not complain about inline
12308         declaration after use if the use was in a different
12309         translation unit.
12310         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
12311         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
12312         the external scope.
12313         (pushdecl_top_level): Likewise.
12314         (grokdeclarator): Clarify what is going on with setting
12315         DECL_EXTERNAL on function types, a little.
12316         (c_write_global_declarations): Don't do anything if
12317         -fsyntax-only or errors have been encountered.
12318
12319 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
12320
12321         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
12322
12323 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12324
12325         PR target/16459
12326         * pa.c (output_indirect_call): Use %r2 as the link register when
12327         calling $$dyncall with a pc-relative branch.
12328
12329 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
12330
12331         * doc/install.texi (Binaries): Mention OpenPKG.
12332
12333 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
12334
12335         Fix PR tree-optimization/15555
12336         * tree-dfa.c (dump_variable): If the variable is a pointer
12337         SSA_NAME, also dump its points-to information.
12338         * tree-flow.h (struct ptr_info_def): Add field
12339         is_dereferenced.
12340         (dump_points_to_info_for): Declare.
12341         (debug_points_to_info_for): Declare.
12342         * tree-optimize.c (init_tree_optimization_passes): Add a
12343         second alias analysis pass after DOM2.
12344         Move pass_del_pta to a later spot.
12345         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
12346         create a name tags when we find a dereferenced pointer.  Just
12347         mark the pointer dereferenced.
12348         (collect_points_to_info_for): Move code to clear points-to
12349         information to create_name_tags.
12350         (create_name_tags): New function.
12351         (compute_flow_sensitive_aliasing): Call it.
12352         (setup_pointers_and_addressables): Mark type tags for renaming
12353         here instead of ...
12354         (create_memory_tag): ... here.
12355         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
12356         (dump_points_to_info_for): Declare extern.
12357         (debug_points_to_info_for): New function.
12358
12359 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
12360
12361         * config/arc/arc.md: Switch to DFA-based scheduler description.
12362         * config/arc/arc.c: Switch to DFA-based scheduler description.
12363
12364 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
12365
12366         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
12367         pointer.
12368
12369 2004-07-09  Richard Henderson  <rth@redhat.com>
12370
12371         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
12372         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12373         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
12374         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
12375
12376         * config/v850/v850-protos.h (v850_va_arg): Remove.
12377         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12378         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
12379         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
12380         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
12381         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
12382
12383 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
12384
12385         PR target/12133
12386         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
12387         and DImode to use +/-4k offset.
12388
12389 2004-07-09  Richard Henderson  <rth@redhat.com>
12390
12391         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
12392         Remove.
12393         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12394         (xstormy16_gimplify_va_arg_expr): Rewrite from
12395         xstormy16_expand_builtin_va_arg.
12396         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
12397
12398         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
12399         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
12400
12401         * config/sh/sh-protos.h (sh_va_arg): Remove.
12402         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12403         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
12404         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
12405
12406         * config/pa/pa-protos.h (hppa_va_arg): Remove.
12407         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12408         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
12409         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
12410
12411         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
12412         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12413         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
12414         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
12415
12416 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
12417
12418         * config/sparc/sparc.md (return): Rewrite length formula.
12419         * config/sparc/sparc.c (output_return): Pass 1 as 5th
12420         argument to final_scan_insn when in a delay slot.
12421         (output_sibcall): Likewise.
12422
12423 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
12424
12425         * arm.c (arm_cpp_interwork): New variable.
12426         (arm_override_options): Set it if TARGET_INTERWORK was on the command
12427         line.
12428         * arm.h (arm_cpp_interwork): Declare it.
12429         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
12430         __THUMB_INTERWORK__ in the preprocessor.
12431
12432 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
12433
12434         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
12435
12436 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
12437
12438         PR target/16416
12439         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
12440         Override default settings to account for -m32 and -m64.
12441
12442 2004-07-08  Randolph Chung  <tausq@debian.org>
12443
12444         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
12445
12446 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
12447
12448         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
12449         before comparing it as such.
12450
12451 2004-07-08  Richard Henderson  <rth@redhat.com>
12452
12453         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
12454         temporary.  Use bit arithmetic to align.
12455
12456 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
12457
12458         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
12459         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
12460         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
12461         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
12462         add_labels_and_missing_jumps, find_jump_block,
12463         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
12464         Likewise.
12465         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
12466         link_btr_uses, move_btr_def): Likewise.
12467         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
12468         expand_builtin_expect_jump): Likewise.
12469         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
12470         * calls.c (expand_call, emit_library_call_value_1): Likewise.
12471         * cfganal.c (forwarder_block_p): Likewise.
12472         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
12473         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
12474         find_bb_boundaries): Likewise.
12475         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12476         merge_blocks_move_predecessor_nojumps,
12477         merge_blocks_move_successor_nojumps, insns_match_p,
12478         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
12479         try_optimize_cfg): Likewise.
12480         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
12481         * cfglayout.c (skip_insns_after_block, label_for_bb,
12482         record_effective_endpoints, insn_locators_initialize,
12483         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
12484         * cfgmainloop.c (create_loop_notes): Likewise.
12485         * cfgrtl.c (delete_insn, delete_insn_chain,
12486         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
12487         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
12488         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
12489         redirect_branch_edge, force_nonfallthru_and_redirect,
12490         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
12491         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
12492         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
12493         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
12494         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
12495         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
12496         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
12497         * combine.c (combine_instructions, can_combine_p, try_combine,
12498         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
12499         distribute_notes, distribute_links, insn_cuid): Likewise.
12500         * cse.c (fold_rtx, cse_insn, cse_around_loop,
12501         invalidate_skipped_block, cse_set_around_loop,
12502         cse_end_of_basic_block, cse_main, cse_basic_block,
12503         cse_condition_code_reg): Likewise.
12504         * cselib.c (cselib_process_insn): Likewise.
12505         * ddg.c (create_ddg): Likewise.
12506         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
12507         Likewise.
12508         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
12509         gen_label_die, dwarf2out_var_location): Likewise.
12510         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
12511         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
12512         last_call_insn, active_insn_p, next_label, prev_label,
12513         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
12514         add_insn_before, remove_insn, add_function_usage_to,
12515         reorder_insns, find_line_note, remove_unnecessary_notes,
12516         emit_insn_after_1, classify_insn): Likewise.
12517         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
12518         connect_post_landing_pads, sjlj_mark_call_sites,
12519         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
12520         can_throw_internal, can_throw_external, set_nothrow_function_flags,
12521         convert_to_eh_region_ranges): Likewise.
12522         * explow.c (optimize_save_area_alloca): Likewise.
12523         * expr.c (expand_expr_real): Likewise.
12524         * final.c (insn_current_reference_address, compute_alignments,
12525         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
12526         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
12527         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
12528         propagate_block_delete_insn, propagate_one_insn,
12529         init_propagate_block_info, propagate_block, libcall_dead_p,
12530         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
12531         Likewise.
12532         * function.c (instantiate_virtual_regs, reorder_blocks_1,
12533         expand_function_start, expand_function_end, contains,
12534         thread_prologue_and_epilogue_insns,
12535         reposition_prologue_and_epilogue_notes): Likewise.
12536         * gcse.c (constprop_register, bypass_conditional_jumps,
12537         insert_insn_end_bb, gcse_after_reload): Likewise.
12538         * genemit.c (gen_expand, gen_split): Likewise.
12539         * genpeep.c (gen_peephole, main): Likewise.
12540         * global.c (build_insn_chain): Likewise.
12541         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
12542         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
12543         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
12544         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
12545         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
12546         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
12547         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
12548         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
12549         dead_or_predicable): Likewise.
12550         * integrate.c (try_constants): Likewise.
12551         * jump.c (rebuild_jump_labels, cleanup_barriers,
12552         purge_line_number_notes, init_label_info, mark_all_labels,
12553         squeeze_notes, get_label_before, get_label_after,
12554         reversed_comparison_code_parts, simplejump_p, pc_set,
12555         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
12556         delete_barrier, delete_prior_computation, delete_computation,
12557         delete_related_insns, delete_for_peephole, redirect_jump):
12558         Likewise.
12559         * lcm.c (optimize_mode_switching): Likewise.
12560         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
12561         Likewise.
12562         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
12563         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
12564         * loop-iv.c (simplify_using_assignment): Likewise.
12565         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
12566         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
12567         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
12568         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
12569         check_insn_for_givs, check_final_value, update_giv_derive,
12570         basic_induction_var, product_cheap_p, check_dbra_loop,
12571         loop_insn_first_p, last_use_this_basic_block,
12572         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
12573         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
12574         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
12575         sms_schedule_by_order): Likewise.
12576         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
12577         * postreload.c (reload_cse_simplify_operands, reload_combine,
12578         reload_cse_move2add): Likewise.
12579         * predict.c (can_predict_insn_p, estimate_probability,
12580         expected_value_to_br_prob, process_note_predictions): Likewise.
12581         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
12582         * profile.c (branch_prob): Likewise.
12583         * ra-build.c (live_out_1, livethrough_conflicts_bb,
12584         detect_webs_set_in_cond_jump): Likewise.
12585         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
12586         ra_print_rtl_with_bb): Likewise.
12587         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
12588         * recog.c (next_insn_tests_no_inequality, find_single_use,
12589         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
12590         * reg-stack.c (next_flags_user, record_label_references,
12591         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
12592         compensate_edge, convert_regs_1): Likewise.
12593         * regclass.c (scan_one_insn): Likewise.
12594         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
12595         regmove_optimize, fixup_match_1, single_set_for_csa,
12596         combine_stack_adjustments_for_block): Likewise.
12597         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
12598         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
12599         find_equiv_reg): Likewise.
12600         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
12601         reload_as_needed, emit_input_reload_insns, do_output_reload,
12602         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
12603         Likewise.
12604         * reorg.c (find_end_label, emit_delay_sequence,
12605         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
12606         get_jump_flags, rare_destination, mostly_true_jump,
12607         try_merge_delay_insns, redundant_insn, own_thread_p,
12608         fill_simple_delay_slots, fill_slots_from_thread,
12609         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
12610         dbr_schedule): Likewise.
12611         * resource.c (find_basic_block, next_insn_no_annul,
12612         find_dead_or_set_registers, mark_target_live_regs): Likewise.
12613         * rtl.h (RTX_PREV): Likewise.
12614         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
12615         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
12616         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
12617         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
12618         tablejump_p, computed_jump_p, insns_safe_to_move_p,
12619         find_first_parameter_load, can_hoist_insn_p): Likewise.
12620         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
12621         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
12622         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
12623         schedule_ebbs): Likewise.
12624         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
12625         is_conditionally_protected, can_schedule_ready_p,
12626         add_branch_dependences, debug_dependencies): Likewise.
12627         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
12628         Likewise.
12629         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
12630         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
12631         set_dominates_use, ujump_to_loop_cont): Likewise.
12632         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
12633         * varasm.c (output_constant_pool_1): Likewise.
12634
12635 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12636
12637         * tree-scalar-evolution.c: New file.
12638         * tree-scalar-evolution.h: New file.
12639         * tree-ssa-loop-niter.c: New file.
12640         * Makefile.in (SCEV_H): New.
12641         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
12642         * cfgloop.h (struct loop): Add bounds field.
12643         * tree-flow.h (struct tree_niter_desc): New type.
12644         (number_of_iterations_cond, number_of_iterations_exit,
12645         loop_niter_by_eval, find_loop_niter_by_eval,
12646         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
12647         free_numbers_of_iterations_estimates): Declare.
12648         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
12649         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
12650         * doc/invoke.texi (max-iterations-to-track): Document.
12651
12652 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12653
12654         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
12655         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
12656         (MODE_AFTER): Add cast appropriately.
12657         * config/sh/sh.md (movdi splitter): Likewise.
12658         (casesi_worker_2): Add const qualifier appropriately.
12659         (eh_return): Remove unused variable.
12660         (insv): Initialize v;
12661
12662 2004-07-08  Richard Henderson  <rth@redhat.com>
12663
12664         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
12665         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12666         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
12667         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
12668         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
12669
12670         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
12671         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12672         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
12673         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
12674
12675         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
12676         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12677         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
12678         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
12679
12680         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
12681         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12682         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
12683         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
12684
12685         * config/i860/i860-protos.h (i860_va_arg): Remove.
12686         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12687         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
12688         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
12689
12690 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
12691
12692         * system.h: Prototype getpagesize if missing.
12693         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
12694         * configure: Regenerate.
12695         * config.in: Regenerate.
12696
12697 2004-07-08  Richard Henderson  <rth@redhat.com>
12698
12699         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
12700         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12701         (fr30_gimplify_va_arg_expr): New.
12702         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
12703         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
12704
12705 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
12706
12707         PR target/16414
12708         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
12709         of asm_noperands result.
12710
12711 2004-07-08  Richard Henderson  <rth@redhat.com>
12712
12713         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
12714         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12715         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
12716         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
12717
12718 2004-07-08  Richard Henderson  <rth@redhat.com>
12719
12720         * builtins.c (ind_gimplify_va_arg_expr): New.
12721         * tree.h (ind_gimplify_va_arg_expr): Declare.
12722         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
12723
12724 2004-07-08  Jan Beulich  <jbeulich@novell.com>
12725
12726         * expmed.c (extract_bit_field): Correct condition to use vec_extract
12727         patterns also on vector elements other than the first one.
12728         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
12729         break statements.
12730
12731 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
12732
12733         * config/rs6000/darwin-ldouble.c: Correct reference
12734         to the Linnainmaa paper.
12735
12736 2004-07-08  Richard Henderson  <rth@redhat.com>
12737
12738         * config/arc/arc-protos.h (arc_va_arg): Remove.
12739         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12740         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
12741         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
12742
12743         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
12744         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12745         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
12746         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
12747
12748 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12749
12750         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
12751
12752 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
12753
12754         * c-decl.c (static_ctors, static_dtors): Make static.
12755         (pop_file_scope): Call c_common_write_pch and
12756         cgraph_finalize_compilation_unit here.
12757         (build_cdtor): Moved here from c-objc-common.c; simplify.
12758         (c_write_global_declarations_1): Clarify comment.
12759         (c_write_global_declarations): Close the external scope before
12760         doing anything else.  Call build_cdtor, cgraph_optimize, and
12761         mudflap_finish_file here.
12762         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
12763         Clarify comment.
12764         * c-objc-common.c: No need to include cgraph.h.
12765         (build_cdtor): Moved to c-decl.c.
12766         (c_objc_common_finish_file): Delete.
12767         * c-tree.h: Update to match.
12768         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
12769         (generate_static_references): Set TREE_USED before calling finish_decl.
12770         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
12771         on the static_instances_decl.
12772
12773 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
12774
12775         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
12776         decls when there is only one input translation unit.
12777         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
12778         change of 2004-07-05; do not treat declarations with
12779         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
12780         * opts.c (cur_in_fname): Delete.
12781         * opts.h: Likewise.
12782         * tree.c: Revert changes of 2004-07-05; no special treatment
12783         for TRANSLATION_UNIT_DECLs.
12784         * Makefile.in (tree.o): Update dependencies.
12785
12786 2004-07-08  Roger Sayle  <roger@eyesopen.com>
12787
12788         * builtins.c (fold_builtin_strcpy): Merge functionality from
12789         simplify_builtin_strcpy.  Add additional len argument.  No longer
12790         static.  Remove function prototype.
12791         (fold_builtin_strncpy): Likewise integrate functionality from
12792         simplify_builtin_strncpy.  Add additional slen argument.  No
12793         longer static.  Remove function prototype.
12794         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
12795         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
12796         types of "ignore" and "unlocked" parameters to bool.
12797         (fold_builtin_1):  Add additional ignore argument.  Call renamed
12798         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
12799         builtins.  Update arguments to fold_builtin_strncpy and
12800         fold_builtin_strcpy.  Add function prototype.
12801         (fold_builtin): Add additional Boolean ignore argument to pass
12802         to fold_builtin_1.
12803         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
12804         and fold_builtin_strncpy instead of simplify_builtin_fputs,
12805         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
12806
12807         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
12808         simplify_builtin_strncpy): Delete function prototypes.
12809         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
12810         fold_builtin_strncpy): Add function prototypes here.
12811         (fold_builtin): Update function prototype with new "bool ignore".
12812
12813         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
12814         (ccp_fold_builtin):  Update call to fold_builtin.  Call
12815         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
12816         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
12817         simplify_builtin_strncpy respectively.
12818         * fold-const.c (fold): Update call to fold_builtin.
12819
12820 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
12821
12822         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
12823         to strcpy.
12824
12825         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
12826         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
12827         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
12828         * calls.c: Remove ifdefs of macros above.
12829         * functions.c: Likewise.
12830         * expr.c: Likewise.
12831
12832 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
12833
12834         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
12835         (arch attribute): Delete.
12836         (current_function_calls_alloca attribute): Rename into calls_alloca.
12837         (calls_eh_return): New attribute.
12838         (leaf_function): Likewise.
12839         (length attribute): Fix formula for sibcalls.
12840         (return insn): Correctly compute the 'length' attribute.
12841         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
12842
12843 2004-07-08  Richard Henderson  <rth@redhat.com>
12844
12845         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
12846         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
12847         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
12848         * tree-eh.c (lower_eh_constructs_1): Likewise.
12849         * tree-sra.c (sra_walk_modify_expr): Likewise.
12850         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
12851         (eliminate_unnecessary_stmts): Likewise.
12852         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
12853         * tree-tailcall.c (optimize_tail_call): Likewise.
12854         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
12855
12856 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
12857             Jakub Jelinek  <jakub@redhat.com>
12858
12859         * config/i386/i386.c (override_options): Enable
12860         SSE prefetches with -mtune, as long as we are
12861         compiling for i686 or higher.  All i686 processors
12862         accept SSE prefetches as NOPS, some i586's don't.
12863
12864 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
12865
12866         PR target/10567
12867         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
12868
12869 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
12870
12871         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
12872         the handling of clobbering ASM_EXPRs.
12873
12874 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
12875
12876         PR target/16430
12877         * config/sparc/sparc.c (function_value): In 64-bit mode,
12878         return the aggregates larger than 16 bytes like unions.
12879
12880 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
12881
12882         PR target/16199
12883         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
12884         'temp' is zero, generate new pseudos as needed and emit the
12885         sequence of insns in single-assignment form.  Resync comments
12886         with code.
12887         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
12888         function before reload.
12889
12890 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
12891
12892         * vec.c (vec_assert_fail): Remove duplicate 'function'.
12893
12894         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
12895
12896         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
12897         Allocation is signed.
12898         (VEC_reserve): Return flag, allocation is signed.
12899
12900 2004-07-08  Richard Henderson  <rth@redhat.com>
12901
12902         * tree-ssa-ccp.c (fold_stmt): Get type directly from
12903         OBJ_TYPE_REF_OBJECT.
12904
12905 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
12906             Neil Booth  <neil@daikokuya.co.uk>
12907
12908         PR c/2511
12909         PR c/3325
12910         * c-decl.c (finish_struct): Ensure bit-fields are given the
12911         correct type.
12912         * c-common.c (c_common_signed_or_unsigned_type): For C, require
12913         the precision to match as well as the mode.
12914         * expr.c (reduce_to_bit_field_precision): New function.
12915         (expand_expr_real_1): Reduce expressions of bit-field type to
12916         proper precision.
12917         * langhooks.h (reduce_bit_field_operations): New hook.
12918         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
12919         Define.
12920         * c-lang.c, objc/objc-lang.c
12921         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
12922         * objc/objc-act.c (check_ivars): Convert types to bit-field types
12923         before checking.
12924         * tree.c (build_nonstandard_integer_type): New function.
12925         * tree.h (build_nonstandard_integer_type): New prototype.
12926         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
12927         conversions between integer and boolean types as useless.
12928
12929 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
12930
12931         * c-common.c (c_common_nodes_and_builtins): Do not
12932         create __builtin_ptrdiff_t and __builtin_size_t.
12933
12934 2004-07-08  Andrew Pinski  <apinski@apple.com>
12935
12936         * Makefile.in (libbackend.o): Add -combine to the gcc
12937         command line.
12938
12939 2004-07-08  Nick Clifton  <nickc@redhat.com>
12940
12941         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
12942         Set to -Os.
12943
12944 2004-07-08  Richard Henderson  <rth@redhat.com>
12945
12946         * except.c (expand_eh_region_start, expand_eh_region_end,
12947         expand_eh_handler, expand_eh_region_end_cleanup,
12948         expand_start_all_catch, expand_start_catch, expand_end_catch,
12949         expand_end_all_catch, expand_eh_region_end_allowed,
12950         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
12951         expand_eh_region_end_fixup): Remove.
12952         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
12953         cleanups, outer_cleanups, label_chain, exception_region.
12954         (struct goto_fixup): Remove stack_level, cleanup_list_list.
12955         (struct label_chain): Remove.
12956         (struct stmt_status): Remove x_stack_block_stack.
12957         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
12958         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
12959         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
12960         end_cleanup_deferral, last_cleanup_this_contour,
12961         containing_blocks_have_cleanups_or_stack_level,
12962         any_pending_cleanups): Remove.
12963         (expand_null_return_1): Take no arguments.
12964         (expand_label, expand_naked_return, expand_return,
12965         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
12966         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
12967         expand_end_case_type): Don't use any of them.
12968         * calls.c (expand_call): Likewise.
12969         * dojump.c (do_jump): Likewise.
12970         * function.c (expand_function_end): Likewise.
12971         * expr.c (store_expr, expand_expr_real_1): Likewise.
12972         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
12973         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
12974         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
12975         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
12976         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
12977         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
12978         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
12979         for WITH_CLEANUP_EXPR.
12980         (gimple_push_cleanup): Likewise.
12981         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
12982         * print-tree.c (print_node): Likewise.
12983         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
12984         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
12985         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
12986         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
12987         (GOTO_SUBROUTINE_EXPR): Remove.
12988         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
12989         (DECL_TOO_LATE): Remove.
12990         * except.h, tree.h: Update decls.
12991
12992 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
12993
12994         * explow.c (optimize_save_area_alloca): Do not accept parameters.
12995         * passes.c (rest_of_handle_final): Handle symout.
12996         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
12997         Push timevar here.
12998         (rest_of_handle_sched): Break out SMS.  Remove ifs for
12999         flag_schedule_insns and flag_modulo_sched.
13000         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
13001         collect at the end.
13002         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
13003         (rest_of_handle_partition_blocks, rest_of_handle_sms,
13004         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
13005         rest_of_handle_mode_switching, rest_of_handle_jump,
13006         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
13007         rest_of_handle_jump2, rest_of_handle_postreload,
13008         rest_of_handle_flow2, rest_of_clean_state,
13009         rest_of_handle_shorten_branches,
13010         rest_of_handle_prologue_epilogue,
13011         rest_of_handle_branch_target_load_optimize): New.
13012         (rest_of_compilation): Call the above.  Remove ggc_collect
13013         calls moved to rest_of_handle_*.
13014         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
13015
13016         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
13017         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
13018         * except.h (set_nothrow_function_flags): Update comment.
13019         * function.c (current_function_nothrow): Remove.
13020         * output.h (current_function_nothrow): Remove.
13021         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
13022         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
13023
13024 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13025
13026         PR bootstrap/16326
13027         * reorg.c: Revert 2004-06-30 change.
13028         (find_end_label): If HAVE_epilogue and !HAVE_return,
13029         return 0 instead of creating a label at the end of the insn chain.
13030         (optimize_skip): Account for the failure mode of find_end_label.
13031         (fill_simple_delay_slots): Likewise.
13032         (fill_slots_from_thread): Likewise.
13033         (relax_delay_slots): Likewise.
13034
13035 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
13036
13037         * tree-flow.h (addressable_vars): Declare.
13038         * tree-ssa-alias.c (addressable_vars): Define.
13039         (setup_pointers_and_addressables): Add addressable variables
13040         to addressable_vars.
13041         * tree-ssa-operands.c (get_stmt_operands): Move
13042         handling of ASM_EXPRs ...
13043         (get_asm_expr_operands): ... here.
13044         When the ASM_EXPR clobbers memory, also clobber addressable
13045         variables.
13046         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
13047         (delete_tree_ssa): Reset addressable_vars.
13048
13049 2004-07-07  Jan Beulich  <jbeulich@novell.com>
13050             Richard Henderson  <rth@redhat.com>
13051
13052         * varasm.c (assemble_variable): Use assemble_zeros for
13053         zero-initialized variables.
13054         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
13055         for SECCAT_BSS and SECCAT_TBSS.
13056
13057 2004-07-07  Jan Beulich  <jbeulich@novell.com>
13058
13059         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
13060
13061         * expmed.c (emit_store_flag): Also special-case double-word
13062         (in-)equality comparison against -1.
13063
13064         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
13065         passing arguments the containers for which are registers.
13066
13067         * calls.c (emit_library_call_value_1): Use mode of function parameter
13068         rather than that of argument since constants have none.
13069
13070 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
13071
13072         Introduce H8SX support.
13073         * expr.c (expand_strcpy): Renamed and moved to...
13074         * builtins.c (expand_movstr): ... here.  Tweak.
13075         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
13076         computed or has side effects.
13077         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
13078         unused, or if mempcpy fails.  Adjust the return value in the
13079         latter case.  Use movstr if everything else fails.
13080         * doc/md.texi (movstr): Document.
13081         (movmemM, clrmemM): Fix explanation of memory block operands.
13082         * config/h8300/h8300.md (stpcpy): Renamed to...
13083         (movstr): ... this.  Adjust.
13084         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
13085         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
13086         movmem* and clrstr* to clrmem*.
13087         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
13088         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
13089         GENERAL_REGS, always.
13090         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
13091         getting the stack pointer as addr.
13092         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
13093         from general_operand_dst.
13094         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
13095         variant of...
13096         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
13097         instead of requiring it to match only before reload.
13098         (stpcpy_internal_normal): New, normal-mode variant of...
13099         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
13100         `D' instead of requiring it to match only before reload.
13101         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
13102         mode argument.
13103         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
13104         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
13105         h8300_get_index.
13106         * config/h8300/h8300.md (attr type): Add call.
13107         (attr can_delay): If type is call, set it no.
13108         (call, call_value): Set type to call.
13109         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
13110         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
13111         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
13112         * tree.c (get_narrower): Don't narrow integral types into
13113         non-integral types.
13114         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
13115         frame_size *before* the first use.
13116         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
13117         on input.
13118         (peephole2): Don't widen instructions that push SP.  Move
13119         decrement of SP to the end of all stm-generating peepholes.
13120         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
13121         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
13122         and OR to set it to all ones.
13123         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
13124         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
13125         (call, call_value): Set can_delay to "no".
13126         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
13127         * config/h8300/h8300.md (extzv): Make subreg check more robust.
13128         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13129         * config/h8300/h8300.md (*brabit): Remove.
13130         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
13131         zero_extract.  Use bit_memory_operand as the predicate for
13132         operand 1 and 'WU' as the constraint.  Check the difference
13133         between the base length and the final one when deciding which
13134         type of branch to use.
13135         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13136         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
13137         Use convert_move to extend the result for TARGET_H8300SX.  Check
13138         for QImode memory references.  Optimize the case where the
13139         destination is a paradoxical subreg.
13140         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13141         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
13142         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
13143         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13144         * config/h8300/h8300.md: Include mova.md
13145         (length_table): Add mova and mova_zero.
13146         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
13147         after all constant addresses for '%R', '%X', '%T' and '%S'.
13148         (h8300_mova_length): New function.
13149         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
13150         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
13151         dependencies for s-config, etc.
13152         * config/h8300/gemova.sh: New file.
13153         * config/h8300/mova.md: Generated.
13154         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
13155         * config/h8300/h8300.c (h8300_bitfield_length): New.
13156         (nibble_operand): Adjust.
13157         (h8300_binary_length): Handle conditional binary op.
13158         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
13159         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
13160         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
13161         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
13162         constraints.  WU is introduced as a variant of U that requires a
13163         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
13164         * config/h8300/h8300.md (attr type): Added bitbranch.
13165         (attr length_table): Added bitfield and bitbranch.
13166         (attr length): Compute bitbranch length.
13167         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
13168         least-significant bit of a byte.
13169         (brabit, brabc, brabs): New.
13170         (insv, extzv): Emit bfst and bfld on H8300SX.
13171         (bfld, bfst, seq, sne): New.
13172         (bstzhireg, cmpstz, bstz, bistz): New.
13173         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
13174         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
13175         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
13176         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
13177         (h8sx_unary_memory_operator): New function.
13178         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
13179         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
13180         * config/h8300/h8300.md: Add peepholes to combine reloads and
13181         arithmetic insns.
13182         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
13183         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
13184         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
13185         (and?i, ior?i, xor?i): Likewise.
13186         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
13187         * config/h8300/h8300.c: Move enums and prototypes to head of file.
13188         Various whitespace fixes.
13189         (h8300_constant_length): New function, split out from...
13190         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
13191         (h8300_classify_operand): Use IN_RANGE.
13192         (h8300_classify_operand): Use h8300_constant_length.
13193         (h8300_short_move_mem_p): Tighten size check.
13194         (h8sx_mergeable_memrefs_p): Tighten equality check.
13195         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
13196         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
13197         for -msx.
13198         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
13199         * config/h8300/crtn.asm: Likewise.
13200         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
13201         if __H8300SX__ is defined.
13202         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
13203         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
13204         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
13205         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
13206         addresses as mode-dependent.
13207         * config/h8300/h8300.c (print_operand_address): Update call to
13208         h8300_get_index.
13209         (h8300_get_index): Take a mode argument.  Rework to fix an
13210         earlier misunderstanding.
13211         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
13212         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
13213         into a register if TARGET_H8300SX.
13214         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
13215         TARGET_H8300SX.  Also disable related define_splits.
13216         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
13217         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
13218         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
13219         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
13220         * config/h8300/h8300.h (OK_FOR_Z): New macro.
13221         (EXTRA_CONSTRAINT_STR): Check it.
13222         * config/h8300/h8300.c (h8300_classify_operand): Accept null
13223         class arguments.
13224         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
13225         * config/h8300/h8300.md (length_table): Add mov_imm4.
13226         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
13227         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
13228         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
13229         be a label.
13230         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
13231         * config/h8300/h8300.c (h8300_reorg): New function.
13232         (TARGET_MACHINE_DEPENDENT_REORG): Define.
13233         * config/h8300/h8300.md (length): Subtract the length of the
13234         delay slot from (pc) when checking the range of forward branches.
13235         (delay_slot, can_delay): New attributes.
13236         (define_delay): Add bra/s handling.
13237         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
13238         (jump): Add delayed-branch handling.
13239         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
13240         * expr.c (expand_strcpy): New function.
13241         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
13242         (expand_builtin_stpcpy): Likewise.
13243         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
13244         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
13245         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
13246         handling to improve register allocation for -fno-omit-frame-pointer.
13247         (h8sx_split_movmd): Delete, moving er6 handling into...
13248         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
13249         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
13250         (movmd): Add calls to copy_rtx.
13251         (movmd_internal): In the second alternative, allow the initial and
13252         final destination registers to be different .  Update the splitter
13253         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
13254         instead of h8sx_split_movmd.
13255         (stpcpy, movsd): New expanders.
13256         (movsd_internal): New define_insn.
13257         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
13258         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
13259         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
13260         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
13261         and DESTINATION_REGS.
13262         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
13263         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
13264         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
13265         (h8300_move_ratio): Declare.
13266         (MOVE_RATIO): Use it.
13267         * config/h8300/h8300.c (h8300_move_ratio): New variable.
13268         (h8300_init_once): Initialize it.
13269         (h8300_reg_class_from_letter): New function.
13270         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
13271         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
13272         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
13273         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
13274         (movstrsi, movmd): New expanders.
13275         (movmd_internal): New insn.
13276         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
13277         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
13278         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
13279         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
13280         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
13281         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
13282         * config/h8300/h8300.c (nibble_operand): Fix warning.
13283         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
13284         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
13285         (movsf_h8300h): Disable for TARGET_H8300SX.
13286         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
13287         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
13288         h8300_stm_parallel and h8300_return_parallel.
13289         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
13290         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
13291         h8300_stm_parallel, h8300_return_parallel): New functions.
13292         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
13293         if TARGET_H8300SX.  Use h8300_push_pop.
13294         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
13295         and final pop when generating h8sx code.  Always emit some form
13296         of return insn.
13297         * config/h8300/h8300.md: Don't enforce register alignment in
13298         stm peepholes if TARGET_H8300SX.
13299         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
13300         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
13301         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
13302         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
13303         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
13304         (MULTILIB_DIRNAMES): Add a directory for it.
13305         (MULTILIB_MATCHES): Delete.
13306         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
13307         * final.c (walk_alter_subreg): Handle addresses with subregs
13308         inside a ZERO_EXTEND or AND.
13309         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
13310         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
13311         if TARGET_H8300SX.
13312         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
13313         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
13314         @(dd,Rn.w) and @(dd,ERn.L).
13315         (h8300_displacement_size): Take the whole address as argument.
13316         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
13317         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
13318         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
13319         (h8sx_mergeable_memrefs_p): Declare.
13320         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
13321         (HAVE_PRE_INCREMENT): Likewise.
13322         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
13323         addresses for TARGET_H8300SX,
13324         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
13325         and POST_DEC.
13326         (movb_length_table, movl_length_table): New tables.
13327         (movw_length_table): Define to movb_length_table.
13328         (h8300_displacement_size): New, split out from...
13329         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
13330         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
13331         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
13332         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
13333         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
13334         (compute_plussi_length, compute_plussi_cc): Update accordingly.
13335         (h8sx_unary_shift_operator): Get the mode from the operator.
13336         (binary_shift_operator): Likewise.
13337         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
13338         a memory reference, check whether the reference is offsettable.
13339         (length_table): Add movb, movw and movl.
13340         (movqi): Add new h8sx pattern.  Don't force one operand to be a
13341         register when generating h8sx code.
13342         (movhi, movsi, movsf): Likewise.
13343         (movstrictqi): Use the length_table attribute.
13344         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
13345         (addqi3): Split into a define_expand and define_insn.  Don't accept
13346         memory operands in the expander.  Use h8300_operands_match_p to
13347         check for matching operands in the define_insn.
13348         (subqi3, negqi2, one_cmplqi2): Likewise.
13349         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
13350         in any patterns that are unused in h8sx code.  In the h8sx patterns,
13351         use h8300_operands_match_p to check whether operands match.
13352         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
13353         one_cmpl[hs]i3): Likewise.
13354         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
13355         in the expander.
13356         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
13357         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
13358         (h8300_insn_length_from_table): Add a second parameter.
13359         (output_h8sx_shift): Declare.
13360         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
13361         (EXTRA_CONSTRAINT): Replace with...
13362         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
13363         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
13364         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
13365         and h8sx_binary_shift_operator.
13366         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
13367         for TARGET_H8300SX.
13368         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
13369         (bit_memory_operand, fix_bit_operand): Likewise.
13370         (h8300_length_table_for_insn): Remove.
13371         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
13372         instructions.
13373         (h8300_short_immediate_length, h8300_binary_length): New functions.
13374         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
13375         (output_plussi): Use sub to add negative constants.
13376         (compute_plussi_length): Adjust accordingly.
13377         (h8sx_single_shift_type): New enum.
13378         (h8sx_single_shift, h8sx_unary_shift_operator,
13379         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
13380         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
13381         single h8sx instruction.  Return false in this case.
13382         * config/h8300/h8300.md (length_table): Add short_immediate.
13383         (length): Pass the operand array to h8300_insn_length_from_table.
13384         (adjust_length): Assume "no" for insns with a length_table attribute.
13385         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
13386         (*addhi3_h8300hs): Don't use for h8sx.
13387         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
13388         and sub.w #xx:3.
13389         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
13390         1's predicate to nonimmediate_operand.  Only skip default expansion
13391         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
13392         for single h8sx shift instructions.
13393         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
13394         * config/h8300/h8300.c (nibble_operand): Split out of...
13395         (reg_or_nibble_operand): ... this.
13396         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
13397         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
13398         umulhisi3): Introduce expand, and introduce separate insns for
13399         sign- or zero-extended REG and already-extended CONST_INT.
13400         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
13401         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
13402         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
13403         (subhi3): Likewise.  Don't accept immediates for operand 1.
13404         Remove the early clobber from second alternative of the h8300s pattern.
13405         (subsi3): Generalize for h8sx.  Force operand 2 into a register
13406         on plain h8300 targets.
13407         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
13408         (subsi3_h8300h): Generalize for h8sx.
13409         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
13410         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
13411         * config/h8300/h8300.c (reg_or_nibble_operand): New.
13412         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
13413         (TARGET_H8300SXMUL): New.
13414         (CONST_OK_FOR_P): New.
13415         (CONST_OK_FOR_LETTER_P): Adjust.
13416         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
13417         umulhisi3): Accept 4-bit immediate on H8SX.
13418         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
13419         (udivsi3, divhi3, udivsi3, divsi3): New.
13420         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
13421         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
13422         * config/h8300/h8300.h (OK_FOR_Q): New macro.
13423         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
13424         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
13425         Add ADDRESSOF to the bit_operand entry.
13426         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
13427         (h8300_src_operand): Likewise.
13428         (bit_operand): Check nonimmediate_operand rather than general_operand.
13429         Accept any nonimmediate_operand in h8sx code.
13430         (h8300_and_costs): Initialize operands[1].
13431         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
13432         (h8300_operand_class): New enum.
13433         (h8300_length_table): New typedef.
13434         (addb_length_table, addw_length_table, addl_length_table,
13435         logicl_length_table): New tables.
13436         (logicb_length_table, logicw_length_table): New macros.
13437         (h8300_classify_operand, h8300_length_from_table,
13438         h8300_length_table_for_insn, h8300_unary_length,
13439         h8300_insn_length_from_table): New functions.
13440         (output_plussi): Only use adds and subs for register destinations.
13441         Disable redundant clause.
13442         (compute_plussi_cc): Likewise.
13443         (compute_plussi_length): Likewise.  Use h8300_length_from_table
13444         to work out the length of an insn.
13445         (output_logical_op): Only use narrower immediate instructions
13446         if the destination is a register.
13447         (compute_logical_op_cc): Likewise.
13448         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
13449         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
13450         * config/h8300/h8300.md (length_table): New attribute.
13451         (length): When an instruction has a length_table attribute, use
13452         h8300_insn_length_from_table to calculate its default length.
13453         (cmpqi): Use h8300_dst_operand for the first operand and
13454         h8300_src_operand for the second.
13455         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
13456         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
13457         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
13458         iorsi3, xorhi3, xorsi3): Likewise.
13459         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
13460         so that it allows any combination of operands for TARGET_H8300SX.
13461         (iorqi3, xorqi3): Likewise.
13462         (cmpqi): Use the length_table attribute.
13463         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
13464         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
13465         (cmpqi): Add 'Q' constraint.
13466         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
13467         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
13468         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
13469         * config/h8300/h8300.h (MASK_H8300SX): New macro.
13470         (TARGET_H8300S): True for both -ms and -msx.
13471         (TARGET_H8300SX): New macro.
13472         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
13473         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
13474         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
13475         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
13476         [Temporary change.]
13477         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
13478         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
13479         16-bit pointers and 32-bit ints.
13480         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
13481         CONST_DOUBLE with mode no wider than SImode.
13482         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
13483         output operand.
13484         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
13485         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
13486         or SUBREG thereof.
13487         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
13488         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
13489         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
13490
13491 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
13492
13493         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
13494
13495 2004-07-07  Per Bothner  <per@bothner.com>
13496
13497         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
13498
13499 2004-07-07  Mike Stump  <mrs@apple.com>
13500
13501         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
13502         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
13503         (machopic_finish): Likewise.
13504
13505 2004-07-07  Richard Henderson  <rth@redhat.com>
13506
13507         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
13508         through any value-preserving cast.
13509
13510 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
13511
13512         * function.c (assign_parm_find_data_types): Call
13513         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
13514
13515 2004-07-07  Steven Bosscher  <stevenb@suse.de>
13516
13517         * tree-cfg.c (group_case_labels): Remove case labels that have
13518         the same target as the default case.
13519
13520 2004-07-07  Steven Bosscher  <stevenb@suse.de>
13521
13522         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
13523         regardless of DECL_LANG_SPECIFIC being present or not.
13524         * tree.h (DECL_NUM_STMTS): Purge.
13525
13526 2004-07-07  Andrew Pinski  <apinski@apple.com>
13527
13528         * configure: Regenerate with the right autoconf.
13529
13530 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
13531
13532         * ifcvt.c (total_bb_rtx_cost): New function.
13533         (find_if_case_1): Compare rtx_cost of basic block to cost of
13534         BRANCH_COST insns.
13535         (find_if_case_2): Same.
13536
13537 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13538
13539         PR target/10567
13540         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
13541         (output_return): Likewise.
13542         (output_sibcall): Abort if !flag_delayed_branch.
13543         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
13544         (emit_and_preserve): New function.
13545         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
13546         indirect jump to the thunked-to function if !flag_delayed_branch.
13547         * config/sparc/sparc.md (delayed_branch): New attribute.
13548         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
13549         attribute to compute the length of the insn.
13550         (goto_handler_and_restore): Likewise.
13551
13552 2004-07-07  Andrew Pinski  <apinski@apple.com>
13553
13554         PR tree-optimization/15777
13555         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
13556
13557         * expr.c (expand_expr_real_1): Fix formating.
13558         BUFFER_REF and IN_EXPR are dead.
13559         * fold-const.c (non_lvalue): BUFFER_REF is dead.
13560         * tree-inline.c (estimate_num_insns_1): Likewise.
13561         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
13562         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
13563         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
13564
13565 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
13566
13567         * collect2.c (dump_file): Don't call cplus_demangle if
13568         HAVE_LD_DEMANGLE is defined.
13569         (main): Pass "--demangle" to ld if no_demangle is not 0 and
13570         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
13571         if HAVE_LD_DEMANGLE is defined.
13572
13573         * configure.ac (--with-demangler-in-ld): Added
13574         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
13575         --with-demangler-in-ld is used.
13576         * config.in: Regenerated.
13577         * configure: Likewise.
13578
13579 2004-07-07  Roger Sayle  <roger@eyesopen.com>
13580
13581         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
13582         for simple floating point operations "fp", double precision
13583         multiplication "dmul", and single and double precision division
13584         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
13585         (ppc630_cost): New table split from ppc620_cost, to distinguish
13586         differences in floating point latencies.
13587         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
13588         (rs6000_rtx_costs): Add support for single and double precision
13589         floating point addition, subtraction, multiplication, division,
13590         fused-multiply-add, fused-multiply-sub, negation, absolute value
13591         and negative absolute value.  Tweak MEM case to use prefered idiom.
13592
13593 2004-07-07  Richard Henderson  <rth@redhat.com>
13594
13595         * tree-flow-inline.h (may_propagate_copy): Move...
13596         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
13597         attempt to copy between types requiring conversion.
13598         * tree-flow.h (may_propagate_copy): Update decl.
13599         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
13600
13601 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
13602
13603         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
13604         from -mtune= option.
13605
13606 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
13607
13608         * builtins.c: Rename movstr*, except for movstrict*, to
13609         movmem* and clrstr* to clrmem*.
13610         * expr.c: Likewise.
13611         * expr.h: Likewise.
13612         * genopinit.c: Likewise.
13613         * integrate.c: Likewise.
13614         * local-alloc.c: Likewise.
13615         * optabs.c: Likewise.
13616         * optabs.h: Likewise.
13617         * config/alpha/alpha.h: Likewise.
13618         * config/alpha/alpha.md: Likewise.
13619         * config/arm/arm-protos.h: Likewise.
13620         * config/arm/arm.c: Likewise.
13621         * config/arm/arm.md: Likewise.
13622         * config/avr/avr.md: Likewise.
13623         * config/c4x/c4x.c: Likewise.
13624         * config/c4x/c4x.md: Likewise.
13625         * config/frv/frv.md: Likewise.
13626         * config/i386/i386-protos.h: Likewise.
13627         * config/i386/i386.c: Likewise.
13628         * config/i386/i386.h: Likewise.
13629         * config/i386/i386.md: Likewise.
13630         * config/i860/i860.c: Likewise.
13631         * config/i860/i860.md: Likewise.
13632         * config/ip2k/ip2k.md: Likewise.
13633         * config/ip2k/libgcc.S: Likewise.
13634         * config/ip2k/t-ip2k: Likewise.
13635         * config/m32r/m32r.c: Likewise.
13636         * config/m32r/m32r.md: Likewise.
13637         * config/mcore/mcore.md: Likewise.
13638         * config/mips/mips.c: Likewise.
13639         * config/mips/mips.md: Likewise.
13640         * config/ns32k/ns32k.c: Likewise.
13641         * config/ns32k/ns32k.h: Likewise.
13642         * config/ns32k/ns32k.md: Likewise.
13643         * config/pa/pa.c: Likewise.
13644         * config/pa/pa.md: Likewise.
13645         * config/pdp11/pdp11.h: Likewise.
13646         * config/pdp11/pdp11.md: Likewise.
13647         * config/rs6000/rs6000.c: Likewise.
13648         * config/rs6000/rs6000.md: Likewise.
13649         * config/s390/s390-protos.h: Likewise.
13650         * config/s390/s390.c: Likewise.
13651         * config/s390/s390.md: Likewise.
13652         * config/sh/lib1funcs.asm: Likewise.
13653         * config/sh/sh.c: Likewise.
13654         * config/sh/sh.md: Likewise.
13655         * config/sh/t-sh: Likewise.
13656         * config/sparc/sparc.h: Likewise.
13657         * config/vax/vax.md: Likewise.
13658         * config/xtensa/xtensa.c: Likewise.
13659         * config/xtensa/xtensa.md: Likewise.
13660         * doc/invoke.texi: Likewise.
13661         * doc/md.texi: Likewise.
13662         * doc/rtl.texi: Likewise.
13663
13664 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
13665
13666         PR target/16407
13667         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
13668         * config/mips/mips.c (mips_declare_common_object): New function,
13669         mostly split out from...
13670         (mips_output_aligned_decl_common): ...here.
13671         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
13672         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
13673         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
13674         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
13675
13676 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13677
13678         PR c/16392
13679         * function.c (assign_parms): Fix typo from previous change.
13680
13681 2004-07-07  Jason Merrill  <jason@redhat.com>
13682
13683         PR c++/15815
13684         * doc/extend.texi (C++ Interface): Correct information and
13685         discourage use.
13686
13687 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
13688
13689         PR target/16130
13690         PR target/16142
13691         PR target/16143
13692         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
13693         insn.
13694
13695 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
13696
13697         PR target/1679.
13698         * config/m32r/m32r.c (m32r_function_symbol): New function:
13699         Generate a symbol name RTX with the correct m32r specific flags
13700         set.
13701         (block_move_call): Use new function to generate correct symbol.
13702         * config/m32r/m32r-protos.h: Add prototype for new funcion.
13703         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
13704         function.
13705
13706 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13707
13708         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
13709         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
13710         TYPE_BINFO_BASETYPE): Remove.
13711         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
13712         to ...
13713         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
13714         here.
13715         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
13716         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
13717         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
13718         (struct tree_binfo): Rename base_types to base_binfos.
13719         * alias.c (record_component_aliases): Adjust BINFO macros.
13720         * dbxout.c (dbxout_type): Likewise.
13721         * dwarf2out.c (gen_member_die): Likewise.
13722         * sdbout.c (sdbout_one_type): Likewise.
13723         * tree-dump.c (deque_and_dump): Likewise.
13724         * config/i386/i386.c (classify_argument,
13725         contains_128bit_aligned_vector_p): Likewise.
13726
13727 2004-07-07  Nick Clifton  <nickc@redhat.com>
13728
13729         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
13730         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
13731
13732 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13733
13734         * vec.h: Fix the example use.
13735
13736 2004-07-06  Richard Henderson  <rth@redhat.com>
13737
13738         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
13739         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
13740         * tree-inline.c (copy_body_r, setup_one_parameter,
13741         initialize_inlined_parameters, expand_call_inline,
13742         declare_inline_vars): Don't check it.
13743         (expand_calls_inline): Remove old version, rename new version
13744         from gimple_expand_calls_inline.
13745         * tree-optimize.c (execute_gimple): Remove.
13746         (pass_gimple): Don't run anything.
13747
13748 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
13749
13750         * doc/sourcebuild.texi: Use semicolons instead of commas in
13751         section title.
13752
13753 2004-07-06  Richard Henderson  <rth@redhat.com>
13754
13755         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
13756         (sra_walk_modify_expr, scan_init): Likewise.
13757         (generate_element_zero): Check visited before scanning children.
13758         (generate_element_init): Set visited on error.
13759         (scalarize_init): Handle generate_element_init failure similar
13760         to use_block_copy.
13761
13762 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
13763
13764         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
13765         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
13766
13767 2004-07-06  Richard Henderson  <rth@redhat.com>
13768
13769         * config/i386/i386.c (legitimize_pic_address): Make static.
13770         (legitimize_address): Handle CONST with TLS operand.
13771         (ix86_expand_move): Don't call legitimize_pic_address directly.
13772         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
13773
13774 2004-07-06  Roger Sayle  <roger@eyesopen.com>
13775
13776         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
13777         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
13778         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
13779         is currently executed unconditionally, i.e. not in "else_bb".
13780
13781 2004-07-06  Steven Bosscher  <stevenb@suse.de>
13782
13783         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
13784         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13785         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
13786         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13787         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
13788         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13789         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
13790         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13791         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
13792         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13793         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
13794         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13795         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
13796         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13797         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
13798         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
13799
13800 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
13801
13802         * dojump.c (do_jump): REFERENCE_EXPR is dead.
13803         * expr.c (expand_expr_real_1): Ditto.
13804         * tree-inline.c (estimate_num_insns_1): Ditto.
13805         * tree-pretty-print.c (dump_generic_node): Ditto.
13806         (op_symbol): Ditto.
13807         * tree.def: Ditto.
13808
13809 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
13810
13811         * tree-ssa-pre.c (reference_node_pool): New pool.
13812         (find_or_generate_expression): Class 'r' is okay too.
13813         (create_value_expr_from): Ditto.
13814         (add_to_sets): LHS should not include vuses.
13815         (eliminate): Ditto.
13816         (compute_avail): Reverse ordering of tests.
13817         Valuize INDIRECT_REF as well.
13818
13819 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
13820
13821         PR rtl-optimization/16380
13822         * loop.c (check_dbra_loop): Sink comparison instructions if they
13823         do something other than set cc0.
13824
13825 2004-07-06  James E Wilson  <wilson@specifixinc.com>
13826
13827         * doc/interface.texi (longjmp and automatic variables): Delete
13828         paragraph recommending taking the address of a variable.
13829
13830 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13831
13832         * vec.h (VEC_embedded_alloc): Remove.
13833         (VEC_embedded_size, VEC_embedded_init): New.
13834         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
13835         MEM_STAT_INFO.
13836         (VEC_truncate): New.
13837         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
13838         (vec_embedded_alloc): Remove.
13839         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
13840         (vec_embedded_alloc): Remove.
13841
13842 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
13843
13844         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
13845         (gt-langhooks.h): Remove.
13846
13847 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
13848
13849         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
13850
13851 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
13852
13853         * config/sparc/sparc.c (get_pc_symbol): Rename into
13854         add_pc_to_pic_symbol.
13855         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
13856         (load_pic_register): Account for previous changes.
13857         Use reg_names.  Don't create the label twice.
13858         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
13859         UNSPEC_LOAD_PCREL_SYM.
13860         (get_pc): Rename into load_pcrel_sym.  Add predicate to
13861         operands.  Remove condition.
13862
13863 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13864
13865         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
13866         RECORD, UNION & QUAL_UNION is actually a binfo.
13867
13868         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
13869         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
13870         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
13871         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
13872         * dwarf2out.c (add_data_member_location_attribute): Likewise.
13873         (gen_inheritance_die): Likewise.
13874         * tree-dump.c (deque_and_dump): Likewise.
13875         * doc/c-tree.texi (Binfos): Add under reconstruction note.
13876
13877 2004-07-06  Steven Bosscher  <stevenb@suse.de>
13878
13879         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
13880         Define.
13881         * config/mcore/mcore.md: Model memory latency with a simple DFA
13882         pipeline description instead of a define_function_unit.
13883
13884 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13885
13886         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
13887         * langhooks.h (var_mod_type_p): Likewise.
13888         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
13889         * expr.c (count_type_elements): Properly handle return from
13890         array_type_nelts and properly test for overflow.
13891         * gimplify.c (gimplify_init_constructor): Properly handle return
13892         from array_type_nelts.
13893         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
13894         * integrate.c (copy_decl_for_inlining): Correct comments.
13895         * tree-inline.c (remap_decl): Update comments, remove dead code,
13896         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
13897         (remap_type): Only remap if variably modified by vars in function
13898         being inlined.
13899         (copy_body_r): Use compatible_type langhooks to see when can fold.
13900         (setup_one_parameter): Don't remap type.
13901         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
13902         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
13903         compute TREE_INVARIANT for decl case.
13904         (find_var_from_fn): New function.
13905         (variably_modified_type_p): Add arg and call new function.
13906         * tree.h (variably_modified_type_p): Add extra arg.
13907
13908 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
13909
13910         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
13911         (goto_handler_and_restore_v9): Delete disabled insn.
13912         (goto_handler_and_restore_v9_sp64): Likewise.
13913
13914 2004-07-05  Roger Sayle  <roger@eyesopen.com>
13915
13916         * calls.c (load_register_parameters): Call expand_shift instead
13917         of expand_binop with ashl_optab (or other shift optab) directly.
13918         * expr.c (emit_group_load, emit_group_store): Likewise.
13919         * function.c (assign_parm_setup_block): Likewise.
13920         * stmt.c (shift_return_value): Likewise.
13921
13922 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
13923
13924         * expr.c (expand_assignment): Disable the bitfield += optimizations.
13925
13926 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
13927
13928         * doc/sourcebuild.texi: Revert previous patch.
13929
13930 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
13931
13932         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
13933         TARGET_MEM_FUNCTIONS.
13934         * system.h: Poison TARGET_MEM_FUNCTIONS.
13935         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
13936         bcmp_libfunc, bzero_libfunc): Remove.
13937         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
13938         bzero_libfunc.
13939         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
13940         * doc/standards.texi: Don't mention calling BSD string functions.
13941         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
13942         * config/vax/t-memfuncs: New.
13943         * config/memcmp.c, config/memcpy.c, config/memmove.c,
13944         config/memset.c: New.
13945         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
13946         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
13947         vax/t-memfuncs.
13948         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
13949         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
13950         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
13951         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
13952         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
13953         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
13954         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
13955         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
13956         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
13957         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
13958
13959 2004-07-05  Richard Henderson  <rth@redhat.com>
13960
13961         * function.c (assign_parm_setup_reg): Properly rename variables in
13962         FUNCTION_ARG_CALLEE_COPIES section.
13963
13964 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
13965
13966         * tree-mudflap.c: Include cgraph.h.
13967         (mf_init_extern_trees): Rename to mudflap_init.  Export.
13968         Rewrite to create synthetic declarations instead of looking
13969         up declarations from mf-runtime.h.
13970         (mf_make_builtin, mf_make_cache_struct_type): New functions.
13971         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
13972         Correct commentary.
13973         (execute_mudflap_function_decls, mudflap_register_call):
13974         Don't call mf_init_extern_trees.
13975         (mudflap_finish_file): Use cgraph_build_static_cdtor.
13976
13977         * tree-mudflap.h: Update prototypes.
13978         * c-mudflap.c: Delete file.
13979         * c-common.c: Include tree-mudflap.h.
13980         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
13981         * Makefile.in: Remove all references to c-mudflap.o.
13982         Update dependencies.
13983
13984 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13985
13986         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
13987         displacements with the spatial-locality cache-control completer.
13988
13989 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
13990
13991         * langhooks.c: Don't include gt-langhooks.h.
13992         (var_labelno): Delete.
13993         (lhd_set_decl_assembler_name): Do not append a distinguishing
13994         number to file-scope internal-linkage declarations for the first
13995         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
13996         the declaration itself (if at block scope), or its containing
13997         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
13998         number.
13999
14000         * opts.c (cur_in_fname): New global.
14001         * opts.h: Declare it.
14002         * tree.c: Include opts.h.
14003         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
14004         DECL_UID equal to cur_in_fname.
14005         (copy_node_stat): Do not change DECL_UID when copying a
14006         TRANSLATION_UNIT_DECL.
14007         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
14008         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
14009
14010         * c-decl.c (c_static_assembler_name): Delete.
14011         * c-tree.h (c_static_assembler_name): Delete prototype.
14012         * c-lang.c, objc/objc-lang.c: Don't override
14013         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
14014
14015         * Makefile.in (tree.o): Update dependencies.
14016         (GTFILES): Remove langhooks.c.
14017
14018 2004-07-05  Roger Sayle  <roger@eyesopen.com>
14019
14020         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
14021         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
14022         Normalize "X % C" as "X % -C" for signed modulus and negative C.
14023         Optimize "X % -Y" as "X % Y" for signed modulus.
14024         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
14025         into "((unsigned) X % Y) == 0".
14026
14027 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
14028
14029         * sourcebuild.texi (Config Fragments): Use @comma{} in
14030         cross-reference to section title.
14031
14032 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14033
14034         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
14035         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
14036         (gimplify_target_expr, gimplify_expr): Likewise.
14037         (copy_if_shared_r): No longer need special case for BIND_EXPR.
14038         (unshare_body, unvisit_body): Only look at nested if BODY_P is
14039         whole function.
14040         (gimplify_compound_lval): See if we can strip any useless conversion.
14041         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
14042         from RHS, not LHS.
14043         (gimplify_modify_expr_to_memset): Likewise.
14044         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
14045         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
14046         (declare_inline_vars): Likewise.
14047         (walk_type_fields): New function.
14048         (walk_tree): Use it.
14049         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
14050
14051         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
14052         (sra_walk_modify_expr): Allow init function to fail.
14053         (scan_init): Now returns bool.
14054         (generate_element_init): If can't understand INIT, return false.
14055         (scalarize_init): Return false if generate_element_init does.
14056
14057         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
14058         print bounds.
14059
14060         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
14061         bounds if bounds aren't constant.
14062
14063         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
14064
14065         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
14066         to type hooks; remove bogus PARAMS.
14067
14068 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
14069
14070         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
14071         * dwarf2out.c (add_data_member_location_attribute): Check for
14072         TREE_BINFO.
14073         * tree.c (tree_node_kinds): Add "binfos".
14074         (binfo_lang_slots): New.
14075         (make_node_stat): Add TREE_BINFO.
14076         (make_tree_binfo_stat): New.
14077         (tree_node_structure): Add TREE_BINFO.
14078         * tree.def (TREE_BINFO): New.
14079         * tree.h (REC_OR_UNION_CHECK): Rename to ...
14080         (RECORD_OR_UNION_CHECK): ... here.
14081         (NOT_RECORD_OR_UNION_CHECK): New.
14082         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
14083         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
14084         RECORD_OR_UNION_CHECK.
14085         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
14086         (TYPE_LANG_SLOT_1): New.
14087         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
14088         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
14089         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
14090         (BINFO_ELTS): Remove.
14091         (BINFO_LANG_SLOT): New.
14092         (struct tree_binfo): New.
14093         (binfo_lang_slots): Declare.
14094         (enum tree_node_structure_enum): Add TS_BINFO.
14095         (union tree_node): Add binfo.
14096         (make_tree_binfo_stat): Declare.
14097         (make_tree_binfo): New.
14098         (enum tree_node_kind): Add binfo_kind.
14099
14100         * objc/objc-act.c (start_class, objc_declare_protocols,
14101         start_protocols): Use TYPE_LANG_SLOT_1.
14102         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
14103         to ...
14104         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
14105         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
14106         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
14107         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
14108
14109 2004-07-05  Steven Bosscher  <stevenb@suse.de>
14110
14111         * rtl.h (struct rtx_def): Remove the integrated flag.
14112         Use the return_val flag for MEM_SCALAR_P.
14113         Reshuffle and update flags in CLEAR_RTX_FLAGS.
14114
14115 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
14116
14117         PR target/16357
14118         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
14119         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
14120         move_by_pieces.
14121
14122 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
14123
14124         * var-tracking.c: Fix some comments.
14125         (frame_stack_adjust): New.
14126         (vt_stack_adjustments): Init stack_adjust of entry block to
14127         minus stack adjustment of function prologue.
14128         (adjust_stack_reference): Do not adjust if adjustment == 0.
14129         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
14130         (emit_notes_in_bb): Likewise.
14131         (vt_add_function_parameters): Do not adjust locations of
14132         function arguments.
14133         (vt_initialize): Compute the stack adjustment of function
14134         prologue and offset the initial "location" of frame_base_decl
14135         from the stack pointer after prologue.
14136
14137 2004-07-04  Richard Henderson  <rth@redhat.com>
14138
14139         * function.c (struct assign_parm_data_all): New.
14140         (struct assign_parm_data_one): New.
14141         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
14142         assign_parm_find_data_types, assign_parms_setup_varargs,
14143         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
14144         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
14145         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
14146         assign_parm_setup_block, assign_parm_setup_reg,
14147         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
14148         (assign_parms): ... here.
14149
14150 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
14151
14152         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
14153         now are bitmap_set_t's.
14154         (bitmap_insert_into_set): No point in inserting the value if
14155         it's invariant.
14156         (bitmap_set_contains): New function.
14157         (bitmap_set_replace_value): Add comment on why we do it
14158         this way.
14159         (set_contains): Removed.
14160         (bitmap_set_subtract_from_value_set): New name of
14161         set_subtract now that it's arguments are two different
14162         types of sets.
14163         Update callers.
14164         (bitmap_find_leader): Change algorithm used.
14165         (find_or_generate_expression): Update use of functions for new
14166         bitmap sets.
14167         (create_expression_by_pieces): Ditto.
14168         (insert_aux): Ditto.
14169         (insert): Ditto.
14170         (add_to_sets): Ditto.
14171         (init_pre): Ditto.
14172         (execute_pre): Ditto.
14173         (compute_avail): Ditto.
14174         Also ignore virtual phis.
14175
14176 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
14177
14178         * combine.c (simplify_comparison): Fix comment typo.
14179
14180 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
14181
14182         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
14183         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
14184         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
14185         (output_restore): Change parameter from 'insn' to 'pat'.
14186         (output_return): Adjust call to output_restore.
14187         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
14188         Adjust call to output_restore.
14189
14190 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
14191
14192         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
14193         and assert system is bsd.
14194
14195 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
14196
14197         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
14198         (TARGET_SWITCHES): Remove -mdebugc.
14199         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
14200         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
14201         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
14202         (sle_[sd]i_reg): Delete.
14203
14204 2004-07-04  Steven Bosscher  <stevenb@suse.de>
14205
14206         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
14207         Define.
14208         * config/iq2000/iq2000.md: Translate old pipeline description to an
14209         equivalent new one.
14210
14211 2004-07-04  Roger Sayle  <roger@eyesopen.com>
14212
14213         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
14214         Ensure the replacement rhs is valid gimple before performing
14215         the substitution.  Return false if these sanity checks fail.
14216         (fold_stmt): Only set changed to true, if set_rhs returns true.
14217         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
14218         succeeds.
14219
14220 2004-07-04  Richard Henderson  <rth@redhat.com>
14221
14222         PR c/16348
14223         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
14224
14225 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
14226
14227         * configure.ac (ranlib_flags): New variable.
14228         * Makefile.in (RANLIB_FLAGS): New variable.
14229         (libbackend.a): Use it.
14230         * configure: Regenerated.
14231
14232 2004-07-04  Roger Sayle  <roger@eyesopen.com>
14233
14234         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
14235         a "sign mask" instead of using ashr_optab directly.
14236
14237 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
14238
14239         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
14240         * doc/cppopts.texi: Clarify processing of command-line defines.
14241
14242 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
14243
14244         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
14245
14246 2004-07-04  Richard Henderson  <rth@redhat.com>
14247
14248         * rtl.def (ADDRESSOF): Remove.
14249         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
14250         (find_base_term, memrefs_conflict_p): Likewise.
14251         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
14252         (fold_rtx, cse_insn, set_live_p): Likewise.
14253         * dwarf2out.c (mem_loc_descriptor): Likewise.
14254         (add_location_or_const_value_attribute): Likewise.
14255         * emit-rtl.c (copy_insn_1): Likewise.
14256         * explow.c (memory_address): Likewise.
14257         * expmed.c (store_split_bit_field): Likewise.
14258         * expr.c (expand_expr_real_1): Likewise.
14259         * function.c (instantiate_decl
14260         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
14261         * genrecog.c (preds, validate_pattern): Likewise.
14262         * integrate.c (copy_rtx_and_substitute): Likewise.
14263         * recog.c (general_operand, register_operand): Likewise.
14264         (memory_address_p): Likwise.
14265         * reload1.c (eliminate_regs, elimination_effects): Likewise.
14266         * rtl.c (copy_rtx): Likewise.
14267         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
14268         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
14269         * rtlhooks.c (gen_lowpart_general): Likewise.
14270         * stmt.c (expand_asm_operands): Likewise.
14271         * web.c (entry_register, replace_ref, web_main): Likewise.
14272         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
14273         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
14274         * config/arm/arm.c (thumb_rtx_costs): Likewise.
14275         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
14276         * config/frv/frv.c (move_destination_operand, move_source_operand,
14277         condexec_dest_operand, condexec_source_operand,
14278         condexec_memory_operand): Likewise.
14279         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
14280         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
14281         (destination_xfmode_operand): Likewise.
14282         * config/mips/mips.h (PREDICATE_CODES): Likewise.
14283         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
14284         * config/s390/s390.c (general_s_operand): Likewise.
14285         * config/s390/s390.md (mov*): Likewise.
14286         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
14287
14288         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
14289         * expr.c (expand_expr_real_1): Likewise.
14290         * stmt.c (expand_decl): Likewise.
14291         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
14292
14293         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
14294         postponed_insns, put_var_into_stack, put_reg_into_stack,
14295         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
14296         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
14297         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
14298         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
14299         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
14300         purge_bitfield_addressof_replacements, purge_addressof_replacements,
14301         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
14302         struct insns_for_mem_walk_info, insns_for_mem_walk,
14303         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
14304         setjmp_protect_args): Remove.
14305         (push_function_context_to): Don't handle var_refs_queue.
14306         (pop_function_context_from, free_after_compilation): Likewise.
14307         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
14308         (assign_parms, allocate_struct_function): Likewise.
14309         (use_register_for_decl): New.
14310         (expand_function_end): Don't setjmp_protect.
14311         * function.h (struct emit_status): Update commentary.
14312         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
14313         (max_parm_reg, parm_reg_stack_loc): Remove.
14314         * passes.c (DFI_addressof): Remove.
14315         (dump_file_info): Remove addressof.
14316         (rest_of_handle_addressof): Remove.
14317         (rest_of_compilation): Don't call it.
14318         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
14319         * stmt.c (expand_decl): Use use_register_for_decl.
14320         * tree.h: Update decls.
14321         * web.c (mark_addressof): Remove.
14322         * doc/invoke.texi (-dF): Remove.
14323
14324 2004-07-03  Richard Henderson  <rth@redhat.com>
14325
14326         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
14327         instead of gen_mem_addressof.
14328         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
14329         TImode output register.
14330
14331 2004-07-03  Richard Henderson  <rth@redhat.com>
14332
14333         PR tree-optimization/16341
14334         * tree-sra.c (sra_walk_function): Increment to next stmt before
14335         processing the current stmt.
14336         (sra_insert_after): Always use BSI_SAME_STMT.
14337
14338 2004-07-03  Richard Henderson  <rth@redhat.com>
14339
14340         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
14341         fp plus with minus.
14342
14343 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
14344
14345         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
14346         with tree_int_cst_equal.
14347
14348 2004-07-03  Andreas Schwab  <schwab@suse.de>
14349
14350         * config/ia64/ia64.md: Define new attribute "empty".
14351         (prologue_use, nop_x, insn_group_barrier): Set it.
14352
14353         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
14354         skip over "empty" insns.
14355
14356 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14357
14358         * tree-inline.c (initialize_inlined_parameters): Pass proper function
14359         context to gimplify_body.
14360         (walk_tree): Don't walk into types twice.
14361         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
14362
14363         * tree-sra.c (generate_element_init): Remove any useless conversions.
14364
14365         * gimplify.c (gimplify_conversion): Remove stripping useless
14366         conversions from here.
14367         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
14368         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
14369         Unshare before substituting PLACEHOLDER_EXPR.
14370         (gimplify_modify_expr_to_memset): Likewise.
14371         Pass address of TO to memset, not TO itself.
14372         (gimplify_init_constructor): Make copy of OBJECT so we have it each
14373         time we make an expression (to match a PLACEHOLDER_EXPR).
14374
14375         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
14376         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
14377         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
14378         * tree-ssa-dom.c (local_fold): Likewise.
14379
14380         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
14381         * langhooks.h (strct lang_hooks): New field type_max_size.
14382         * function.c (assign_temp): Call it.
14383
14384 2004-07-03  Steven Bosscher  <stevenb@suse.de>
14385
14386         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
14387         * config/sh/sh.md: Convert the SH1 pipeline description to
14388         a DFA model.
14389
14390 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
14391
14392         * c-decl.c (struct c_binding): Remove contour field; add
14393         depth, invisible, nested fields.
14394         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
14395         (B_IN_EXTERNAL_SCOPE): New convenience macros.
14396         (bind): Add invisible and nested arguments. Initialize
14397         new fields of struct c_binding; adjust loop scanning for
14398         insertion point.
14399         (free_binding_and_advance): Clear structure with memset.
14400         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
14401         in file scope, even if it's in external scope too.
14402         (pushdecl): Adjust to match.  Create invisible file-scope
14403         declarations for block-scope forward declarations of static functions.
14404         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
14405         (undeclared_variable, lookup_label, declare_label, define_label)
14406         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
14407         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
14408         (store_parm_decls_oldstyle): Adjust to match.
14409         (diagnose_mismatched_decls): Correct handling of linkage clashes.
14410         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
14411
14412         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
14413         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
14414
14415 2004-07-02  Richard Henderson  <rth@redhat.com>
14416
14417         * c-decl.c (grokdeclarator): Don't frob current_function_decl
14418         around variable_size.
14419         (set_decl_nonlocal): Remove.
14420         (store_parm_decls): Add stmts for pending sizes.
14421         * calls.c (calls_function, calls_function_1): Remove.
14422         (precompute_arguments): Don't call it.
14423         * cfgexpand.c (set_save_expr_context): Remove.
14424         (tree_expand_cfg): Don't call it.
14425         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
14426         (dwarf2out_finish): Likewise.
14427         * expr.c (emit_block_move): Adjust addresses to BLKmode.
14428         (store_constructor): Don't pre-evaluate SAVE_EXPR.
14429         (safe_from_p): Don't queue SAVE_EXPRs.
14430         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
14431         or build plain VAR_DECLs.
14432         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
14433         (fold): Likewise.
14434         (fold_checksum_tree): Don't special-case SAVE_EXPR.
14435         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
14436         (put_var_into_stack): Don't handle SAVE_EXPR.
14437         (gen_mem_addressof): Likewise.
14438         * function.h (struct function): Remove x_save_expr_regs.
14439         (save_expr_regs): Remove.
14440         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
14441         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
14442         * stor-layout.c (variable_size): Don't set it.
14443         (force_type_save_exprs, force_type_save_exprs_1): Remove.
14444         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
14445         all callers.  Don't set SAVE_EXPR_CONTEXT.
14446         * tree-inline.h (remap_save_expr): Update decl.
14447         * tree.c (save_expr): Update build size.
14448         (first_rtl_op): Don't handle SAVE_EXPR.
14449         (unsave_expr_1, contains_placeholder_p): Likewise.
14450         (decl_function_context): Likewise.
14451         * tree.def (SAVE_EXPR): Remove args 1 and 2.
14452         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
14453         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
14454
14455 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
14456
14457         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
14458         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
14459         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
14460         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
14461         some first-person references and patronizing comments.  Based on
14462         printed manual.
14463         * doc/invoke.texi: Don't reference fortran@gnu.org.
14464         * doc/trouble.texi (Warning when a non-void function value is
14465         ignored): Rewrite.  From Russ Allbery and Chris Devers.
14466
14467 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
14468
14469         * tree-ssa-pre.c (bitmap_set_t): New.
14470         (bb_value_sets): avail_out is now a bitmap_set_t.
14471         (bitmap_find_leader): New function.
14472         (bitmap_value_insert_into_set): Ditto.
14473         (bitmap_set_copy): Ditto.
14474         (bitmap_value_replace_in_set): Ditto.
14475         (bitmap_set_contains_value): Ditto.
14476         (bitmap_set_new): Ditto.
14477         (bitmap_set_pool): New pool.
14478         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
14479         (insert_aux): Ditto.
14480         (add_to_sets): Ditto.
14481         (compute_avail): Ditto
14482         (eliminate): Ditto.
14483         (init_pre): Ditto.
14484         (fini_pre): Ditto.
14485         (execute_pre): Ditto.
14486
14487 2004-07-02  Roger Sayle  <roger@eyesopen.com>
14488
14489         * config/rs6000/rs6000.c (struct processor_costs): New structure
14490         used to hold instruction latencies/sizes for processor types.
14491         (rs6000_cost): New global variable pointing to current CPU's costs.
14492         (rs6000_override_options): Initialize rs6000_cost to point to the
14493         appropriate cost table based upon rs6000_cpu and optimize_size.
14494         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
14495         timings inline.
14496
14497 2004-07-02  Richard Henderson  <rth@redhat.com>
14498
14499         * expmed.c (make_tree): Don't use SET_DECL_RTL.
14500
14501 2004-07-02  Steven Bosscher  <stevenb@suse.de>
14502
14503         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
14504
14505 2004-07-01  Richard Henderson  <rth@redhat.com>
14506
14507         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
14508         (alpha_gp_save_rtx): Use assign_stack_local instead of
14509         gen_mem_addressof.
14510
14511 2004-07-01  Richard Henderson  <rth@redhat.com>
14512
14513         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
14514         (alpha_rtx_cost_data): Update to match.
14515         (alpha_rtx_cost_size): New.
14516         (alpha_rtx_costs): Honor optimize_size.
14517
14518 2004-07-01  Richard Henderson  <rth@redhat.com>
14519
14520         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
14521         * cfgexpand.c (tree_expand_cfg): Do it here.
14522         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
14523         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
14524         * config/mips/mips.c (mips_output_mi_thunk): And here.
14525         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
14526         * config/sh/sh.c (sh_output_mi_thunk): And here.
14527         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
14528
14529 2004-07-01  Richard Henderson  <rth@redhat.com>
14530
14531         * tree.def (RTL_EXPR): Remove.
14532         * c-typeck.c (lvalue_p): Don't handle it.
14533         * expr.c (safe_from_p): Likewise.
14534         (expand_expr_real_1): Likewise.
14535         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
14536         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
14537         * gengtype.c (adjust_field_tree_exp): Likewise.
14538         * stmt.c (warn_if_unused_value): Likewise.
14539         * tree-gimple.c (recalculate_side_effects): Likewise.
14540         * tree-pretty-print.c (dump_generic_node): Likewise.
14541         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
14542         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
14543         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
14544
14545         * stmt.c (struct stmt_status): Remove x_last_expr_type,
14546         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
14547         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
14548         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
14549         all the bits that tracked last_expr.
14550         (expand_end_bindings): Don't track last_expr.
14551         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
14552         (clear_last_expr): Remove.
14553         (expand_asm): Don't call it.
14554         (expand_asm_operands, expand_end_cond): Likewise.
14555         (expand_naked_return, expand_null_return_1): Likewise.
14556         * c-typeck.c (c_begin_compound_stmt): Likewise.
14557         * cfgexpand.c (expand_block): Use expand_expr_stmt.
14558         * expr.c (expand_expr_real_1): Likewise.
14559         * tree.h: Update prototypes.
14560
14561         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
14562         (struct emit_status): Remove sequence_rtl_expr.
14563         (struct function): Remove x_rtl_expr_chain.
14564         (seq_rtl_expr, rtl_expr_chain): Remove.
14565         * function.c (struct temp_slot): Remove rtl_expr.
14566         (assign_stack_temp_for_type): Don't set it.
14567         (free_temp_slots, pop_temp_slots): Don't check it.
14568         (free_after_compilation): Don't clear x_rtl_expr_chain.
14569         (fixup_var_refs): Don't search it.
14570         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
14571         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
14572         or seq_rtl_expr.
14573         (push_topmost_sequence): Likewise.
14574         (end_sequence, init_emit): Likewise.
14575         (start_sequence_for_rtl_expr): Remove.
14576         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
14577         * rtl.h (preserve_rtl_expr_result): Remove.
14578
14579 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14580
14581         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
14582         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
14583         typos.
14584
14585 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
14586
14587         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
14588         (STANDARD_STARTFILE_PREFIX_2): Define.
14589         (standard_startfile_prefix_1): Initialize to
14590         STANDARD_STARTFILE_PREFIX_1.
14591         (standard_startfile_prefix_2): Initialize to
14592         STANDARD_STARTFILE_PREFIX_2.
14593         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
14594         (STANDARD_STARTFILE_PREFIX_1): Define.
14595         (STANDARD_STARTFILE_PREFIX_2): Define.
14596         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
14597         (STANDARD_STARTFILE_PREFIX_2): Document.
14598
14599 2004-07-01  Richard Henderson  <rth@redhat.com>
14600
14601         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
14602         in order to disable scalarization.  Instead set a flag and wait
14603         for a candidate decl.
14604
14605 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
14606
14607         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
14608         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
14609         Use terminology "testsuite" and "enumerated".
14610
14611 2004-07-01  Richard Henderson  <rth@redhat.com>
14612
14613         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
14614         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
14615         (initial_return_save): Likewise.
14616         (flush_queued_reg_saves): Remap register numbers.
14617         (dwarf2out_return_reg): Likewise.
14618
14619 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14620
14621         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
14622
14623         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
14624         access functions for lower bound and element size and only output
14625         if lower bound nonzero or element size not same as that of type.
14626         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
14627
14628 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
14629
14630         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
14631
14632 2004-07-01  Per Bothner  <per@bothner.com>
14633
14634         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
14635
14636 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
14637
14638         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
14639         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
14640         first operand.  Don't optimize if the bitfield is volatile.
14641
14642 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
14643
14644         * c-pretty-print.c (pp_c_postfix_expression): Handle
14645         floating-point comparison operators.
14646         (pp_c_expression): Pass floating-point comparison
14647         operators to pp_c_postfix_expression.
14648
14649 2004-07-01  Roger Sayle  <roger@eyesopen.com>
14650
14651         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
14652         rtx_cost instead of "had_mult" to determine whether the transformed
14653         expression is cheaper than the original.
14654
14655 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
14656
14657         * alias.c (get_alias_set, canon_rtx, get_addr,
14658         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
14659         Use MEM_P.
14660         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
14661         expand_builtin): Likewise.
14662         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
14663         Likewise.
14664         * combine.c (can_combine_p, combinable_i3pat, try_combine,
14665         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
14666         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
14667         record_dead_and_set_regs_1, get_last_value_validate,
14668         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
14669         * cse.c (check_dependence, canon_hash, equiv_constant,
14670         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
14671         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
14672         count_reg_usage): Likewise.
14673         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
14674         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
14675         cselib_record_sets): Likewise.
14676         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
14677         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
14678         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
14679         * df.c (df_uses_record): Likewise.
14680         * dojump (do_jump): Likewise.
14681         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
14682         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
14683         decl_start_label): Likewise.
14684         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
14685         operand_subword, change_address_1, make_safe_from): Likewise.
14686         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
14687         stabilize, force_not_mem): Likewise.
14688         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
14689         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
14690         * expr.c (convert_move, convert_modes, emit_block_move,
14691         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
14692         emit_move_insn_1, expand_assignment, store_expr,
14693         store_constructor_field, store_constructor, store_field,
14694         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
14695         Likewise.
14696         * final.c (cleanup_subreg_operands, alter_subreg,
14697         get_mem_expr_from_op): Likewise.
14698         * flow.c (notice_stack_pointer_modification_1,
14699         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
14700         Likewise.
14701         * function.c (mark_temp_addr_taken, preserve_temp_slots,
14702         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
14703         optimize_bit_field, flush_addressof, purge_addressof_1,
14704         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
14705         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
14706         keep_stack_depressed): Likewise.
14707         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
14708         noce_process_if_block, find_memory): Likewise.
14709         * integrate.c (subst_constants, allocate_initial_values): Likewise.
14710         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
14711         update_equiv_regs): Likewise.
14712         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
14713         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
14714         * optabs.c (expand_abs, emit_unop_insn): Likewise.
14715         * passes.c (rest_of_handle_final): Likewise.
14716         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
14717         move2add_note_store): Likewise.
14718         * ra-build.c (detect_remat_webs): Likewise.
14719         * ra-debug.c (dump_static_insn_cost): Likewise.
14720         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
14721         * recog.c (validate_change, apply_change_group, cancel_changes,
14722         validate_replace_rtx_1, general_operand, register_operand,
14723         nonmemory_operand, push_operand, pop_operand, memory_operand,
14724         indirect_operand, asm_operand_ok, offsettable_memref_p,
14725         offsettable_nonstrict_memref_p, constrain_operands,
14726         store_data_bypass_p): Likewise.
14727         * reg-stack.c (subst_stack_regs_pat): Likewise.
14728         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
14729         copy_cost, reg_scan_mark_refs): Likewise.
14730         * regmove.c (optimize_reg_copy_3, stack_memref_p,
14731         combine_stack_adjustments_for_block): Likewise.
14732         * regrename.c (copyprop_hardreg_forward_1): Likewise.
14733         * reload.c (can_reload_into, push_reload, decompose, immune_p,
14734         find_reloads, find_reloads_address, find_reloads_address_1,
14735         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
14736         find_equiv_reg): Likewise.
14737         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
14738         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
14739         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
14740         delete_address_reloads): Likewise.
14741         * resource.c (mark_referenced_resources): Likewise.
14742         * rtlanal.c (get_jump_table_offset, count_occurrences,
14743         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
14744         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
14745         num_sign_bit_copies1): Likewise.
14746         * rtlhooks.c (gen_lowpart_general): Likewise.
14747         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
14748         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
14749         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
14750         sdbout_global_decl): Likewise.
14751         * simplify-rtx.c (simplify_subreg): Likewise.
14752         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
14753         expand_anon_union_decl, expand_end_case_type): Likewise.
14754         * unroll.c (calculate_giv_inc): Likewise.
14755         * var-tracking.c (stack_adjust_offset_pre_post,
14756         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
14757         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
14758         vt_add_function_parameters): Likewise.
14759         * varasm.c (make_var_volatile, notice_global_symbol,
14760         assemble_external, decode_addr_const, mark_weak,
14761         default_encode_section_info): Likewise.
14762
14763 2004-07-01  Steven Bosscher  <stevenb@suse.de>
14764
14765         * stmt.c (check_seenlabel): Remove.
14766         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
14767
14768 2004-07-01  Richard Henderson  <rth@redhat.com>
14769
14770         * function.h (struct function): Remove x_function_call_count.
14771         (function_call_count): Remove.
14772         * calls.c (expand_call): Don't set it.
14773         * integrate.c (copy_rtx_and_substitute): Likewise.
14774
14775         * function.h (struct function): Remove x_cleanup_label.
14776         (cleanup_label): Remove.
14777         * stmt.c (expand_value_return): Don't use it.
14778         * function.c (free_after_compilation): Don't set it.
14779         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
14780         * cfgexpand.c (tree_expand_cfg): Update call.
14781         * tree.h (expand_function_start): Update decl.
14782
14783 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
14784
14785         PR c/1027
14786         * c-lang.c (c_initialize_diagnostics): Move from here ...
14787         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
14788         (c_tree_printer): Use pretty-printer to format %T.
14789         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
14790         before '*' if not C++.
14791         (pp_c_direct_abstract_declarator): Don't try to print array upper
14792         bound for flexible array members.
14793         * c-tree.h: Include "diagnostic.h".
14794         (c_initialize_diagnostics): Declare.
14795         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
14796         * c-format.c (format_type_warning): New function.  Improve
14797         diagnostics for incorrect format argument types.
14798         (check_format_types): Use it.  Add two parameters.  Use the
14799         TYPE_MAIN_VARIANT of wanted_type.
14800         (check_format_info_main): Pass new parameters to
14801         check_format_types.
14802         (struct format_wanted_type): Update comment.
14803
14804 2004-07-01  Nick Clifton  <nickc@redhat.com>
14805
14806         * target.h (struct gcc_target): Add new field to struct cxx:
14807         import_export_class.
14808         * target-def.h (TARGET_CXX): Initialise the new field.
14809         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
14810         the new field.
14811         * doc/tm.texi: Document the new target hook.
14812
14813 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
14814
14815         * builtins.c (fold_builtin_classify): Fix typo.
14816
14817 2004-07-01  Richard Henderson  <rth@redhat.com>
14818
14819         * function.c (identify_blocks, identify_blocks_1): Remove.
14820         * function.h (identify_blocks): Remove.
14821         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
14822
14823 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
14824
14825         * builtins.c (fold_builtin_classify): New.
14826         (fold_builtin_unordered_cmp): Fix commentary.
14827         (fold_builtin): Use it.
14828         * builtins.def: Define builtins for isnan,
14829         isnanf, isnanl, finite, finitef, finitel,
14830         isinf, isinff, isinfl.
14831
14832 2004-07-01  Richard Henderson  <rth@redhat.com>
14833
14834         * function.h (struct function): Remove dont_emit_block_notes.
14835         * gimple-low.c (lower_function_body): Don't set it.
14836         * cfgexpand.c (expand_block): Don't check it.
14837         * cfglayout.c (insn_locators_initialize): Likewise.
14838         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
14839         * passes.c (rest_of_compilation): Likewise.
14840         * stmt.c (expand_start_bindings_and_block): Likewise.
14841         (expand_end_bindings): Likewise.
14842
14843 2004-07-01  Richard Henderson  <rth@redhat.com>
14844
14845         * cgraph.h (cgraph_build_static_cdtor): Declare.
14846         * cgraphunit.c (cgraph_build_static_cdtor): New.
14847         * c-objc-common.c (build_cdtor): Use it.
14848         * coverage.c (create_coverage): Likewise.
14849         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
14850         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
14851
14852 See ChangeLog.11 for earlier changes.