OSDN Git Service

* tree-ssa-loop-unswitch.c: Fix a comment typo.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2
3         * tree-ssa-loop-unswitch.c: Fix a comment typo.
4
5 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
6
7         * doc/passes.texi: Fix a typo.
8
9 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10
11         * tree-optimize.c (init_tree_optimization_passes): Add
12         pass_record_bounds.
13         * tree-pass.h (pass_record_bounds): Declare.
14         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
15         New pass.
16
17 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18
19         PR tree-optimization/17474
20         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
21         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
22
23 2004-09-25  Jan Hubicka  <jh@suse.cz>
24
25         * predict.c (counts_to_freqs): Make global.
26         * predict.h (counts_to_freqa): Declare.
27         * profile.c (compute_branch_probabilities): Compute frequencies
28         * tree-profile.c (do_tree_profiling): Refine conditional on when
29         tree profiling pass is needed.
30
31         * passes.c (rest_of_handle_cfg): Disable const/pure function
32         detection when doing tree based profiling.
33
34         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
35         conditional.
36
37 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
38
39         * config/mips/mips.h (struct mips_args): Clarify comments.
40         * config/mips/mips.c (struct mips_arg_info): Likewise.
41         (mips_arg_info): Don't allow fpr_p to affect the register or
42         stack alignment.  Remove o64 silliness.
43         (function_arg): Deal with the o32 float,float case specially.
44
45 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
46
47         * config/mips/mips.md (loadx, storex): Define for V2SF.
48
49 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
50
51         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
52         * config/s390/s390.c (s390_back_chain_rtx): New function.
53         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
54         Call anti_adjust_stack.
55         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
56         only if compiling with back chain.
57         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
58         back chain only if back chain enabled.  Use s390_back_chain_rtx.
59         
60 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
61
62         * doc/trouble.texi: Remove obsolete information.  Update
63         information on how to regenerate fixincluded headers.
64
65 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
66
67         PR c/12951
68         * doc/invoke.texi: Document that
69         -Wno-error-implicit-function-declaration is not accepted.
70
71 2004-09-24  Richard Henderson  <rth@redhat.com>
72
73         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
74         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
75         on TARGET_MAX.
76         (alpha_expand_mov): Allow unaligned vectors.
77         (alpha_expand_unaligned_store): Use CONST0_RTX.
78         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
79
80 2004-09-24 Jeff Law  <law@redhat.com>
81
82         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
83         aliasing rules.
84         (simplify_cond_and_lookup_avail_expr): Likewise.
85
86 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
87
88         PR c/12802
89         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
90         title.  Document interaction with -fms-extensions.
91         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
92         section.
93
94 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
95
96         PR c/12713
97         * doc/extend.texi: Document interaction of attribute noreturn and
98         longjmp.
99
100 2004-09-24  Richard Henderson  <rth@redhat.com>
101
102         PR rtl-opt/17503
103         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
104         (som_hash, som_eq): New.
105         (init_subregs_of_mode, record_subregs_of_mode): New.
106         (cannot_change_mode_set_regs): Rewrite for htab implementation.
107         (invalid_mode_change_p): Likewise.
108         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
109         * flow.c (mark_used_regs): Likewise.
110         (life_analysis): Use init_subregs_of_mode.
111         * regs.h (subregs_of_mode): Remove.
112         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
113
114 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
115
116         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
117         type with the copy of the conditional.
118
119 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
120
121         PR tree-opt/16954
122         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
123         Prevent renaming if the aliasing sets of the type which the
124         pointer points to are different.
125
126 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
127
128         PR c/17188
129         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
130         declarations of enumerators.
131         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
132         for redefinition.  Check for nested redefinition.
133         (finish_struct): Don't check for nested redefinition.
134         (start_enum): Check for nested redefinition.
135
136 2004-09-24  Devang Patel  <dpatel@apple.com>
137
138         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
139         only when necesssary.
140         (combine_blocks): Combine loop header and exit block.
141         
142 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
143
144         * hooks.c (hook_tree_tree_bool_null): New.
145         * hooks.h (hook_tree_tree_bool_null): Declare it.
146         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
147         * targhooks.c (default_fold_builtin): Remove.
148         * targhooks.h (default_fold_builtin): Remove.
149
150 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
151
152         PR rtl-optimization/17625
153         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
154
155 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
156
157         PR tree-opt/17624
158         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
159         Reject if any of the operands occur in an abnormal PHI.
160
161 2004-09-24  Andreas Schwab  <schwab@suse.de>
162
163         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
164         rules.
165
166 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
167
168         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
169         if the GNU assembler is used.
170         (sparc-*-solaris2*): Likewise.
171         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
172         (dbxout_function_end): Protect N_ENSYM with it.
173         (dbxout_begin_prologue): Protect N_BNSYM with it.
174         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
175         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
176         * config/sparc/sol2-gas.h: New file.
177
178 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
179
180         PR bootstrap/17369
181         * Makefile.in (@set_gcc_lib_path@): Added.
182
183         * configure.ac: Include ../config/gcc-lib-path.m4. Use
184         TL_AC_GNU_MAKE_GCC_LIB_PATH.
185         * configure: Regenerated.
186
187 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
188
189         PR c/6980
190         * c-typeck.c (build_c_cast): Improve wording of
191         -Wbad-function-cast diagnostic.
192
193 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
194
195         PR target/17626
196         * config/cris/cris.md (moverside, movemside): Rename variable
197         "reg" to "otherop".  To generate canonical RTX, check that otherop
198         isn't constant instead of checking that operand 1 is a register.
199
200 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
201
202         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
203
204 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
205             Jakub Jelinek  <jakub@redhat.com>
206
207         * tree-flow.h (find_new_referenced_vars): Add prototype.
208         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
209         Move to...
210         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
211         ... here.
212         (mark_new_vars_to_rename): Walk through all operands.
213         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
214         (execute_fold_all_builtins): Use it.
215         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
216
217 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
218
219         * gthr-tpf.h: New file.
220         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
221         * gthr.h: Use gthr-tpf.h on TPF OS.
222
223 2004-09-23 Jeff Law  <law@redhat.com>
224
225         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
226         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
227         (substitute_and_fold):  Likewise.
228         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
229         except invariants from SSA_NAME_VALUE.
230         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
231         and SET_SSA_NAME_EQUIV.
232         (restore_vars_to_original_value, record_const_or_copy): Likewise.
233         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
234         (record_equality, cprop_into_successor_phis): Likewise.
235         (record_equivalences_from_stmt, cprop_operand): Likewise.
236         (lookup_avail_expr): Likewise.
237         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
238         from SSA_NAME_VALUE.
239         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
240         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
241         annotation from the VALUE_HANDLE field.
242
243 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
244
245         PR c++/13989
246         PR c++/9844
247         * tree.c (reconstruct_complex_type): Remove extra "this".
248         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): 
249         Add V4SFmode to case statement.
250
251 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
252
253         PR c/16833
254         * doc/extend.texi, doc/invoke.texi: Document interaction of
255         -fno-builtin with format checks.  Note that built-in functions
256         have effects beyond generating code that avoids calls to those
257         functions.
258
259 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
260
261         PR tree-optimization/17533
262         * dominance.c (verify_dominators): Tolerate even more incorrect
263         dominance data during error message printing.
264         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
265         and edges more correctly.
266         
267 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
268
269         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
270         New tree-codes.
271         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
272         MISALIGNED_INDIRECT_REF.
273         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
274         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
275         Likewise.
276         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
277         (find_interesting_uses_address): Likewise.
278         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
279         (build_fold_addr_expr_with_type): Likewise.
280         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
281         * print-rtl.c (print_mem_expr): Likewise.
282         * tree-dump.c (dequeue_and_dump): Likewise.
283         * tree-eh.c (tree_could_trap_p): Likewise.
284         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
285         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
286         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
287         Likewise.
288         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
289         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
290         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
291         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
292         (add_address_candidates, rewrite_address_base): Likewise.
293         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
294         Likewise.
295         * tree.c (staticp, build1_stat): Likewise.
296
297         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
298         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
299         * tree-ssa-operands.c (get_expr_operands): Likewise.
300         * expr.c (expand_expr_real_1): Likewise.
301
302         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
303         optabs.
304         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
305         for the new optabs.
306         (expand_ternary_op): New function.
307         * genopinit.c (optabs): Handle the new optabs.
308         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
309         (init_optabs): Initialize vec_realign_load_optab.
310         (expand_ternary_op): New functions.
311
312         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
313         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
314         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
315         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
316         * target.h (struct vectorize): New member for struct gcc_target.
317         (misaligned_mem_ok): New member for targetm.vectorize.
318         (builtin_mask_for_load): Likewise.
319         (builtin_mask_for_store): Likewise.
320         * targethooks.c (default_vect_misaligned_mem_ok): New function.
321         * targethooks.h (default_vect_misaligned_mem_ok): New function.
322
323         * config/rs6000/altivec.md (build_vector_mask_for_load): New
324         define_expand.
325         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
326         (vec_realign_load_v16qi): New define_insn.
327         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
328         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
329         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
330         (altivec_builtin_mask_for_store): New variables.
331         (rs6000_builtin_mask_for_load): New function. Implements
332         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
333         (rs6000_builtin_mask_for_store): New function. Implements
334         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
335         (rs6000_expand_builtin): Expand the target builtins
336         builtin_mask_for_load and builtin_mask_for_store.
337         (altivec_init_builtins): Initialize the new target builtins.
338         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
339         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
340
341         * tree-vectorizer.c (vect_create_data_ref): Renamed to
342         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
343         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
344         (vectorizable_store): Call vect_create_data_ref_ptr with additional
345         arguments, and create an indirect_ref with its return value data_ref.
346         Check aligned_access_p.
347         (vectorizable_load): Handle misaligned loads, using software-pipelined
348         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
349         vec_realign_load_optab is supported, or using a scheme without
350         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
351         misaligned_mem_ok is supported.
352
353         (vect_finish_stmt_generation): Typo.
354         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
355         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
356         presence of misaligned loads.
357         (vect_analyze_data_ref_access): Add check for constant init.
358         (vect_get_symbl_and_dr): Remove duplicate line.
359         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
360
361 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
362
363         * builtins.c: Fix a comment typo.
364
365 2004-09-23  Jan Hubicka  <jh@suse.cz>
366
367         * profile.c (branch_prob): Do not verify flow info in the middle of the
368         pass.
369
370 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
371
372         * cfgloop.h (update_single_exits_after_duplication): Declare.
373         (loopify, split_loop_bb): Declaration changed.
374         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
375         of rtx.
376         (loopify): Added redirect_all_edges argument.
377         (update_single_exits_after_duplication): Export.
378         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
379         * tree-flow.h (tree_duplicate_loop_to_header_edge,
380         tree_ssa_loop_version): Declare.
381         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
382         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
383         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
384         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
385
386         * tree-ssa-loop-unswitch.c: New file.
387         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
388         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
389         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
390         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
391         * tree-pass.h (pass_unswitch): Declare.
392         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
393         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
394         * doc/passes.texi: Documen tree level loop unswitching.
395
396 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
397
398         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
399
400 2004-09-22  Eric Christopher  <echristo@redhat.com>
401
402         * builtins.c (simplify_builtin_va_start): Remove.
403         (simplify_builtin): Ditto.
404         (fold_builtin_strchr): Ditto.
405         (simplify_builtin_*): Rename remainders to fold_builtin_*.
406         (expand_builtin): Fix up for above changes.
407         (fold_builtin_1): Add new folders. Change for above.
408         (expand_builtin_va_start): Call fold_builtin_next_arg.
409         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
410         * tree.h: Remove prototype for simplify_builtin.
411
412 2004-09-23  Jan Hubicka  <jh@suse.cz>
413
414         PR debug/17389
415         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
416         of fully inlined functions.
417         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
418         inlined.
419
420         * cfgexpand.c (add_reg_br_prob_note): New function.
421         (expand_gimple_cond_expr): Use it.
422         (tree_expand_cfg): No longer kill the profile.
423         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
424         only if it is present.
425         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
426         * predict.c (combine_predictions_for_insn): Set the probabilities
427         based on REG_BR_PROB note if present.
428         * predict.c (branch_prob): Profile is read only with
429         flag_branch_probabilities.
430
431 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
432
433         * aclocal.m4: Add in gettext's m4 includes.
434         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
435         * configure.ac: Add in check for iconv.h
436         * configure: Regenerate.
437
438 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
439
440         * aclocal.m4: Update for rename of gettext-sister.m4.
441
442 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
443
444         Fix PR tree-optimization/17587
445         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
446         (insert_aux): Instead of here.
447
448 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
449
450         PR tree-optimization/16721
451         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
452         * tree-ssa-alias.c (create_memory_tag): Move setting of
453         TREE_THIS_VOLATILE ...
454         (get_tmt_for): ... here.
455
456 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
457
458         * config/sparc/sparc.md (cmove splitter): Fix formatting.
459         (conditional_trap expander): Reject inappropriate CCmodes.
460         (conditional trap insn): Use V9 syntax if possible.
461
462 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
463
464         PR c/16566
465         * c-typeck.c (build_component_ref): Don't special-case
466         COMPOUND_EXPR.
467
468 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
469
470         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
471         returns NULL.
472
473 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
474
475         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
476         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
477         TRUTH_XOR_EXPR): Mention the restriction on types.
478
479 2004-09-22  Matt Austern  <austern@apple.com>
480
481         * config/darwin.c (darwin_make_decl_one_only):
482         Allow coalesced symbol to appear in static archive's table of contents
483
484 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
485
486         PR tree-optimization/17512
487         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
488         special cases.
489
490 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
491
492         * dbxout.c (get_lang_number): Do not define if
493         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
494
495 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
496
497         PR target/15583
498         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
499         builtin_define ("__USE_INIT_FINI__").
500
501 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
502
503         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
504         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
505         * config/s390/s390.h (TARGET_TPF): New macro.
506         * config/s390/s390.md ("eh_return"): New expander.
507         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
508         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
509         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
510         * config/s390/tpf.h (TARGET_TPF): Define to 1.
511         (STACK_POINTER_OFFSET): Increase to 448.
512         (TARGET_DEFAULT): Set -mtpf-trace on as default.
513         (TPF_LOC_DIFF_OFFSET): New macro.
514         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
515         encoding.
516         (__isPATrange): Add prototype.
517         (MD_FALLBACK_FRAME_STATE_FOR): Define.
518         * config/s390/tpf-eh.c: New file.
519
520 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
521
522         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
523         operands in an integer comparison.
524         * tree-cfg.c (find_taken_edge): Call fold() to determine
525         whether the predicate is known.
526
527 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
528
529         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
530         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
531         Create build and doc directories along with the language directories.
532         Don't create doc directory separately.
533         * configure: Regenerate.
534         * Makefile.in: Create all object and executables files built
535         with the build compiler in a build/ directory.
536         (genobjnames): Add missing build objects.
537         (STAGESTUFF): Don't stage the gen* programs.
538         (ggc-none.o): Define dependencies for the target compiler.
539         (build-print-rtl.o): Rename to build/print-rtl.o.
540         (build-errors.o): Rename to build/errors.o.
541         (build-varray.o): Rename to build/varray.o.
542         (maintainerclean): Delete the contents of the build directory.
543         ($(genobjs): %.o): Explicitly use -o.
544         (build/insn-conditions.o): Delete specfic rule to use generic rule.
545         (build/gengtype-lex.o): Likewise.
546         (build/gengtype-yacc.o): Likewise.
547         (build/gcov-iov.o): Likewise.
548
549 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
550
551         * vec.h (VEC_space): Return true if there _is_ space.
552         (VEC_reserve): Adjust.
553
554 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
555
556         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
557         use FPRs for scalar, complex and vector types only.
558
559 2004-09-21 Jeff Law  <law@redhat.com>
560
561         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
562         the opt_stats_d structure.
563         (vrp_data): Change from a varray into a hash table.
564         (vrp_hash_elt): New structure for elements in the vrp hash table.
565         (vrp_hash, vrp_eq):New functions for hashing and testing equality
566         in the vrp hash table.
567         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
568         initialization slightly to make it easier to read.  No longer need
569         to grow/clear the varray.  Instead empty and delete the hash table.
570         (dom_opt_finalize_block): Update due to change of VRP_DATA from
571         a varray to a hash table.
572         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
573
574         * tree-ssa-ccp.c (get_default_value): If we have a constant
575         value recorded for an SSA_NAME, then use that constant as
576         the initial lattice value.
577         (substitute_and_fold): Transfer equivalences discovered into
578         SSA_NAME_EQUIV.
579
580         * tree.h (SSA_NAME_EQUIV): Add comments.
581         (SET_SSA_NAME_EQUIV): Similarly.
582
583 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
584
585         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
586
587         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
588
589 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
590
591         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
592         (finish_decl): Likewise.
593
594 2004-09-21  Devang Patel  <dpatel@apple.com>
595
596         * tree.def (VEC_COND_EXPR): New tree node.
597         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
598
599 2004-09-21  Stan Shebs  <shebs@apple.com>
600
601         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
602         * config/rs6000/darwin-world.asm: Likewise.
603
604 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
605
606         * tree-ssa.c (verify_def): Use print_generic_stmt,
607         not debug_generic_stmt.
608         (verify_use): Ditto.
609         (verify_phi_args): Ditto.
610         (verify_ssa): Ditto.
611
612 2004-09-21  Paul Brook  <paul@codesourcery.com>
613
614         * varasm.c (default_assemble_integer): Return false for values wider
615         than the target word size.  Works around GAS bug.
616
617 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
618
619         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
620         gets value 0.
621         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
622         if it has value 0.
623
624 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
625
626         * c-typeck.c (build_function_call): Give name of object
627         we are attempting to call in error message.
628         * c-objc-common.c (c_tree_printer): Call pp_expression,
629         not return false, for 'E' case.
630
631 2004-09-21  Steven Bosscher  <stevenb@suse.de>
632
633         PR rtl-optimization/17482
634         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
635         load_killed_in_block_p): Clarify comments.
636         (record_last_reg_set_info): Make static inline.
637         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
638         (record_opr_changes): New function to replace the above.
639         (compute_hash_table): Clarify comments.  Use record_opr_changes.
640         (reg_set_between_after_reload_p): Clean up.
641         (reg_used_between_after_reload_p): Likewise.
642         (eliminate_partially_redundant_load): Clarify comments.
643
644 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
645
646         PR rtl-optimization/17266
647         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
648
649 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
650
651         PR rtl-optimization/14851
652         * rtlanal.c (commutative_operand_precedence): Calculate
653         precedence of stripped constant.
654
655 2004-09-20 Jeff Law  <law@redhat.com>
656            Jan Hubicka  <jh@suse.cz>
657
658         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
659         initialize key elements here.
660         (release_ssa_name): Zero the released SSA_NAME here.
661         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
662         (struct tree_ssa_name): Add new "equiv" field.
663         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
664         (tree_ssa_dominator_optimize): No longer allocate, resize or
665         clear CONST_AND_COPIES.
666         (get_value_for, set_value_for): Kill.
667         (thread_across_edge): Get/set the equivalency using
668         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
669         (restore_vars_to_original_value): Likewise.
670         (record_equivalences_from_phis): Likewise.
671         (record_dominating_conditions): Likewise.
672         (record_const_or_copy, record_equality): Likewise.
673         (lookup_avail_expr): Likewise.
674         (record_equivalences_from_stmt, cprop_operand): Likewise.
675         (cprop_into_successor_phis): No longer need to pass around
676         CONST_AND_COPIES.  Callers updated. Get equivalences via
677         SSA_NAME_EQUIV.
678         (cprop_into_phis): Likewise.
679
680 2004-09-20  Matt Austern <austern@apple.com>
681             Zack Weinberg  <zack@codesourcery.com>
682
683         * c-common.c (fix_string_type): Build the unqualified array
684         type unconditionally, then use c_build_qualified_type to get
685         the proper const-qualified variant, and set its
686         TYPE_MAIN_VARIANT to refer to the unqualified type.
687         * c-lex.c (c_lex_return_raw_string): New global.
688         (c_lex_with_flags): Honor it.
689         * c-pragma.h: Declare it.
690
691 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
692
693         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
694
695 2004-09-21  Jan Hubicka  <jh@suse.cz>
696
697         PR middle-end/17126
698         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
699         (tree_rest_of_compilation): Cleanup.
700
701 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
702
703         * config/s390/s390.c (s390_select_rtx_section): Remove.
704         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
705
706 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
707
708         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
709         note to pretend a direct save from the original register when an
710         intermediate register is used for the save.
711
712 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
713
714         * tsystem.h (alloca): Provide a default definition.
715
716         Revert:
717         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
718             * unwind-dw2.c: Call __builtin_alloca, not alloca.
719
720 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
721
722         PR tree-opt/17558
723         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
724         aliasing sets are the same rather than just conflicting.
725
726 2004-09-20  Jan Hubicka  <jh@suse.cz>
727
728         PR middle-end/16460
729
730         * cgraph.c (cgraph_unnest_node): New function.
731         (c_finalize): Rename to ....
732         (c_warn_unused_result_recursivly): ... this one; do only the warning
733         (finish_function): Finalize the toplevel function; do not lower nested tree.
734         * cgraph.h (cgraph_unnest_node): Declare.
735         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
736         nestedness datastructure.
737         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
738         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
739         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
740
741 2004-09-20  Richard Henderson  <rth@redhat.com>
742
743         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
744         from some_small_symbolic_operand_1; export.
745         (some_small_symbolic_operand): Remove.
746         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
747         extra C check.
748         * config/alpha/predicates.md (some_small_symbolic_operand): New.
749
750 2004-09-20  Jan Hubicka  <jh@suse.cz>
751
752         * predict.c (return_prediction): New function.
753         (apply_return_prediction): Likewise.
754         (tree_bb_level_predictions): Likewise.
755         (tree_estimate_probability): Add noreturn exit edges; call
756         bb_level_predictions; fix logic of return heuristics.
757         (predict_paths_leading_to):  Rescuesce from old CVS version of
758         process_note_prediction function.
759         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
760
761 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
762
763         * config/s390/s390.c (s390_frame_info): Added alignment statement for
764         floating point register area on stack.
765
766 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
767
768         * predict.c (expr_expected_value): Use *_CLASS_P macros.
769
770 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
771
772         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
773         generating useless garbage.
774
775 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
776
777         * builtins.c (fold_builtin): Call the new omonymous
778         target hook for machine-dependent built-ins.
779         * target-def.h (TARGET_FOLD_BUILTIN): New.
780         * target.h (struct gcc_target): Add the fold_builtin hook.
781         * targhooks.c (default_fold_builtin): New.
782         * targhooks.h (default_fold_builtin): Declare it.
783
784 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
785
786         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
787         comment typos.
788
789 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
790
791         PR target/17565
792         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
793
794 2004-09-20  Jan Hubicka  <jh@suse.cz>
795
796         * predict.c (estimate_probability): Remove unnecesary code.
797
798 2004-09-19  Ira Rosen  <irar@il.ibm.com>
799
800         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
801         (STMT_VINFO_VECT_DR_BASE): Declare.
802         (VECT_SMODULO): Declare.
803         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
804         (vect_compute_array_base_alignment): New function.
805         (vect_analyze_data_ref_access): Check array indices. Remove one
806         dimensional arrays restriction.
807         (vect_get_ptr_offset): New function.
808         (vect_get_symbl_and_dr): New function.
809         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
810         (former name vect_get_base_decl_and_bit_offset).
811         (vect_create_index_for_array_ref): Removed.
812         (vect_create_index_for_vector_ref): New function.
813         (vect_create_addr_base_for_vector_ref): New function.
814         (vect_create_data_ref): Handle additional data refs. Call
815         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
816         (vect_compute_data_ref_alignment): Support the changes. Call
817         vect_get_base_and_bit_offset.
818         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
819         data refs. Store vect_dr_base.
820         (vect_analyze_data_ref_accesses): Support nonconstant init.
821         (new_stmt_vec_info): Initialize vect_dr_base field.
822         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
823         (get_vectype_for_scalar_type): Check for BLKmode.
824         * tree-chrec.h (initial_condition_in_loop_num): Declare.
825         * tree-chrec.c (initial_condition_in_loop_num): New function.
826         (chrec_component_in_loop_num): New function.
827         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
828         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
829         to be pointer to varray_type.
830
831 2004-09-19  Jan Hubicka  <jh@suse.cz>
832
833         * basic-block.h (update_bb_profile_after_threading): Declare.
834         * cfg.c (update_bb_profile_after_threading): Break out from ...
835         * cfgcleanup.c (try_forward_edges): ... here; use it.
836         * tree-ssa-dom.c (thread_across_edge): Use it.
837         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
838         profile of the new BB.
839
840 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
841
842         * tree-ssa-pre.c (insert_into_set): Don't put
843         is_gimple_min_invariant values into the set.
844
845 2004-09-19  Andreas Jaeger  <aj@suse.de>
846
847         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
848         prototype.
849
850 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
851
852         * config/cris/cris.h: Preserve the original spelling in a
853         quote.
854
855 2004-09-18 Jeff Law  <law@redhat.com>
856
857         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
858         global varrays to replace the block local varrays.
859         (struct dom_walk_block_data): Remove, no longer used.
860         (get_eq_expr_value): No longer need to pass around pointers to local
861         varrays.  Callers updated.  Unused markers added to unused parameters.
862         (record_range, record_equivalences_from_stmt): Likewise.
863         (record_equivalences_from_incoming_edge): Likewise.
864         (record_var_is_nonzero): Likewise.  Update now that we have a
865         single global varray of SSA_NAMEs that need restoring.
866         (dom_opt_initialize_block_local_data): Kill, no longer used.
867         (tree_ssa_dominator_optimize): Initialize new global varrays.
868         Update callbacks in dominator walker structure.
869         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
870         VRP_VARIABLES_STACK.
871         (restore_nonzero_vars_to_original_value): Update now that we have
872         a single global varray of SSA_NAMEs that need restoring.
873         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
874         Remove unused variables.
875         (optimize_stmt): Remove unused variable.
876
877 2004-09-18  Jan Hubicka  <jh@suse.cz>
878
879         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
880
881         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
882         verify_cgraph call.
883
884 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
885
886         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
887         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
888         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
889         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
890         tree-ssa-operands.c, tree-ssa-phiopt.c,
891         tree-ssa-threadupdate.c: Fix comment typos.
892
893 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
894
895         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
896         config/arm/README-interworking, config/arm/arm-cores.def,
897         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
898         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
899         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
900         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
901         config/frv/frv.md, config/i386/winnt.c,
902         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
903         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
904         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
905         config/mcore/mcore.c, config/mips/mips.h,
906         config/mn10300/mn10300.md, config/pa/pa.c,
907         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
908         config/rs6000/rs6000.c, config/sh/symbian.c,
909         config/sparc/sparc.h: Fix comment typos.  Follow spelling
910         conventions.
911
912 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
913
914         PR c/17424
915         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
916
917 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
918
919         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
920         remove TREE_ADDRESSABLE from RESULT_DECL.
921
922 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
923
924         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
925
926 2004-09-18  Jan Hubicka  <jh@suse.cz>
927
928         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
929         NULL.
930         * tree-ssa-alias.c (init_alias_info): Likewise.
931         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
932         (verify_ssa): Likewise.
933         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
934
935 2004-09-18  Jan Hubicka  <jh@suse.cz>
936
937         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
938         huge offset.
939
940 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
941
942         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
943         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
944         DW_EH_PE_sdata* for data.
945         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
946
947 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
948
949         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
950         shared anyway.
951
952         PR pch/13361
953         * c-typeck.c (constructor_asmspec): Delete.
954         (struct initializer_stack): Delete field 'asmspec'.
955         (start_init): Delete saving of asmspec.
956         (finish_init): Don't update constructor_asmspec.
957         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
958         * stmt.c (expand_asm): Duplicate strings from tree.
959         (expand_asm_operands): Likewise.
960         * tree.c (tree_size): Update computation of size of STRING_CST.
961         (make_node): Don't make STRING_CST nodes.
962         (build_string): Allocate string with tree node.
963         (tree_code_size): Clean up assertions, don't allow requests
964         for "the size of a STRING_CST".
965         * tree.def (STRING_CST): Update comment.
966         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
967         (tree_string): Place contents of string in tree node.
968         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
969         from tree.
970
971 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
972
973         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
974         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
975
976 2004-09-17  Jones Desougi  <jones@ingate.com>
977
978         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
979         * configure, config.in: Regenerate.
980
981 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
982
983         * tree.c, tree.h (tree_class_strings): Make array const.
984         Reindent per coding convention.  Move asterisk to proper place
985         per coding convention.
986
987 2004-09-18  Andreas Schwab  <schwab@suse.de>
988
989         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
990         (tree-vectorizer.o): Likewise.
991         (targhooks.o): Likewise.
992
993 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
994             Zack Weinberg  <zack@codesourcery.com>
995
996         * alias.c (find_base_decl): Remove unreachable case '3' block.
997         * expr.c (safe_from_p): Abort if passed a type.
998         * tree-gimple.c (recalculate_side_effects): Abort if passed
999         anything other than an expression.
1000         * tree-ssa-pre.c (phi_translate): Return expr immediately if
1001         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
1002         Abort on un-handled tree classes.
1003         (valid_in_set): Likewise.
1004         * tree.c (tree_code_class_strings): New static data.
1005
1006         * tree.h (enum tree_code_class): New.
1007         (tree_code_class_strings): Declare.
1008         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
1009         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
1010         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
1011         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
1012         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
1013
1014         * tree.def, c-common.def, objc/objc-tree.def: Use
1015         tree_code_class enumeration constants instead of code letters.
1016
1017         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
1018         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
1019         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
1020         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
1021         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
1022         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
1023         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
1024         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
1025         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
1026         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
1027         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
1028         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
1029         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
1030         Update to match.
1031
1032         * LANGUAGES: Add note about change.
1033
1034 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
1035
1036         PR tree-optimization/17319
1037         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
1038         examine pointers on the LHS of an assignment.
1039         (collect_points_to_info_r): Handle RETURN_EXPR.
1040
1041 2004-09-17 Jeff Law  <law@redhat.com>
1042
1043         * tree-ssa-dom.c (const_and_copies_stack): New.
1044         (dom_walk_block_data): Remove const_and_copies field.
1045         (record_const_or_copy): No longer need to pass in varray_type *.
1046         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
1047         Callers updated.
1048         (record_equality): Similarly.
1049         (restore_vars_to_original_value): Similarly.  Revamp to use new
1050         single global stack rather than per-block stacks.
1051         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
1052         (thread_across_edge): Remove now unused parameters.
1053         (dom_opt_initialize_block_local_data): No longer test the block
1054         local CONST_AND_COPIES.
1055         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
1056
1057 2004-09-17  Jan Hubicka  <jh@suse.cz>
1058
1059         PR tree-optimization/17509
1060         * tree-optimize.c (update_inlined_to_pointers): New function.
1061         (tree_rest_of_compilation): Use it.
1062
1063 2004-09-17  Devang Patel  <dpatel@apple.com>
1064
1065         * dbxout.c (get_lang_number): New.
1066         (dbxout_init): Include lang number in N_SO  stab.
1067         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
1068         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
1069
1070 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
1071
1072         PR tree-optimization/17273
1073         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
1074         replacement is a constant.
1075
1076 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
1077
1078         * c-tree.h (enum c_typespec_keyword): New.
1079         (struct c_declspecs): Adjust description of "type".  Remove
1080         specbits, explicit_int_p and explicit_char_p.  Rename
1081         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
1082         short_p, signed_p, unsigned_p and complex_p.
1083         (finish_declspecs): New.
1084         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
1085         typename): Call finish_declspecs.
1086         * c-decl.c (finish_declspecs): New.
1087         (declspecs_add_type): Check for combinations which cannot occur in
1088         valid specifier lists.  Update comments.
1089         (shadow_tag_warned): Remove checks done in finish_declspecs.
1090         Don't report useless type name if type defaulted to int.
1091         (grokdeclarator): Remove checks and actions done in
1092         finish_declspecs.  Don't allow for type being NULL.  Update for
1093         datastructures changes.  Initialize decl_attr.
1094         (build_null_declspecs, quals_from_declspecs): Update for
1095         datastructures changes.
1096
1097 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
1098
1099         * doc/extend.texi: Fix duplicated word.
1100
1101 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
1102
1103         * doc/invoke.texi: Remove stray explanation on
1104         -freduce-all-givs and -fmove-all-movables.
1105
1106 2004-09-17  James Morrison  <phython@gcc.gnu.org>
1107
1108         * doc/cfg.texi: Use @smallexample.
1109         * doc/md.texi: Likewise.
1110         * doc/tree-ssa.texi: Likewise.
1111         * doc/extend.texi: Likewise.  Use @r{} in comments.
1112         * doc/trouble.texi: Use @r{} in comments.
1113
1114 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
1115
1116         * configure.ac (gcc_cv_gld_version): Handle whitespace before
1117         "VERSION=".
1118         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
1119         * configure: Regenerate.
1120
1121 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
1122
1123         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
1124         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
1125         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
1126         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
1127         slashes in substitutions.
1128         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
1129
1130 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
1131
1132         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
1133         gimplify.c, lambda-code.c, optabs.c, predict.c,
1134         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
1135         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
1136         conventions.
1137
1138 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
1139
1140         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
1141         doc/extend.texi, doc/install.texi, doc/invoke.texi,
1142         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
1143         doc/trouble.texi: Use @option around options.
1144
1145 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
1146
1147         * Makefile.in (gen-protos.o): Depend on errors.h.
1148
1149 2004-09-17  Steven Bosscher  <stevenb@suse.de>
1150
1151         PR tree-optimization/17513
1152         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
1153         for successors of the entry block.
1154
1155 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
1156
1157         PR rtl-optimization/15187
1158         * ifcvt.c (noce_try_cmove_arith): Exit early if total
1159         insn_rtx_cost of both branches > BRANCH_COST
1160
1161 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
1162
1163         PR tree-optimization/17528
1164         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
1165         erase the may-alias set for a tag when merging it with
1166         another.
1167
1168 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
1169
1170         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
1171         for 32-bit TARGET_SHMEDIA.
1172         (call_value): Likewise.
1173
1174 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
1175
1176         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
1177         test apply only to TREE_STATIC and DECL_EXTERNAL.
1178
1179 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1180
1181         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
1182         * basic-block.h (get_dominated_by_region): Declare.
1183         * dominance.c (get_dominated_by_region): New function.
1184         * tree-cfg.c: Include cfglayout.h.
1185         (tree_duplicate_bb): Duplicate also phi nodes.
1186         (struct ssa_name_map_entry): New type.
1187         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
1188         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
1189         allocate_ssa_names, rewrite_to_new_ssa_names_def,
1190         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
1191         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
1192         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
1193         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
1194         rewrite_to_new_ssa_names, allocate_ssa_names,
1195         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
1196         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
1197         (copy_loop_headers): Use tree_duplicate_sese_region.
1198
1199 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
1200
1201         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
1202
1203 2004-09-16 Jeff Law  <law@redhat.com>
1204
1205         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
1206         (rewrite_block_data): Remove, no longer used.
1207         (rewrite_initialize_block_local_data): Remove, no longer used.
1208         (rewrite_initialize_block): Mark parameters as unused as needed.
1209         Change references to the block local block_defs to be block_defs_stack.
1210         Push a marker onto the block_defs_stack.
1211         (ssa_rewrite_initialize_block): Similarly.
1212         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
1213         (ssa_register_new_def): No longer needs varray argument.  Use
1214         block_defs_stack instead.  No longer handle possibly null block_defs
1215         varray.  Reverse order of items we push on the stack to make it
1216         easier to identify our marker.
1217         (register_new_def): No longer handle possibly null block_defs
1218         varray.
1219         (rewrite_finalize_block): Revamp to look for markers in the global
1220         block_defs_stack varray rather than wiping a block local varray.
1221         Mark arguments as unused as needed.
1222         (ssa_rewrite_finalize_block): Similarly.
1223         (rewrite_into_ssa): Update initialization of dom walker structure
1224         to reflect that we don't need block local data anymore.  Initialize
1225         the block_defs_stack varray.
1226         (rewrite_ssa_into_ssa): Similarly.
1227         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
1228         (struct dom_walk_data): Kill block_defs field.
1229         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
1230         (thread_across_edge): Use the global block_defs_stack instead of
1231         the old block_defs varray.
1232         (dom_opt_initialize_block_local_data): Update now that we don't have
1233         block_defs field to check anymore.
1234         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
1235         (restore_currdefs_to_original_value): Use the new block_defs_stack
1236         instead of a block local varray.
1237         (dom_opt_finalize_block): Similarly.
1238         (record_equivalencs_from_phis): Similarly.
1239         (optimize_stmt, register_definitions_for_stmt): Similarly.
1240
1241 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
1242
1243         PR tree-optimization/17517
1244         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
1245         coalesce same-root variables without checking for abnormal PHI usage.
1246
1247 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
1248
1249         * cfgloop.h (duplicate_loop):  Add prototype.
1250         * cfgloopmanip.c (duplicate_loop): Make non-static.
1251         * lambda-code.c (perfect_nestify): Factor out test whether
1252         we can handle this loop into separate function.
1253         Call it.
1254         (can_convert_to_perfect_nest): New function.
1255         (replace_uses_of_x_with_y): Add modify_stmt call.
1256         * tree-loop-linear.c (linear_transform_loops): Call
1257         rewrite_into_loop_closed_ssa and free_df.
1258
1259 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
1260
1261         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
1262         loop invariant as well.
1263         (perfect_nestify): new function.
1264         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
1265         upper bounds, and steps.
1266         Set outerinductionvar properly.
1267         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
1268         parameters.
1269         Return NULL if we need a perfect loop and can't make one.
1270         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
1271         (not_interesting_stmt): New function.
1272         (phi_loop_edge_uses_def): Ditto.
1273         (stmt_uses_phi_result): Ditto.
1274         (stmt_is_bumper_for_loop): Ditto.
1275         (perfect_nest_p): Ditto.
1276         (nestify_update_pending_stmts): Ditto.
1277         (replace_uses_of_x_with_y): Ditto.
1278         (stmt_uses_op): Ditto.
1279         (perfect_nestify): Ditto.
1280         * lambda-mat.c (lambda_matrix_id_p): New function.
1281         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
1282         * lambda.h: Update prototypes.
1283         * tree-loop-linear (linear_transform_loop): Use new
1284         perfect_nest_p. Detect and ignore identity transform.
1285         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
1286
1287 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
1288
1289         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
1290         Gather also strides of accessed data.  Pass in the data references
1291         array.
1292         (try_interchange_loops): Add a new heuristic for handling the temporal
1293         locality.  Pass in the data references array.
1294         (linear_transform_loops): Pass the data references array to
1295         try_interchange_loops.
1296
1297 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
1298
1299         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
1300
1301 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
1302
1303         * doc/c-tree.texi (Classes): Remove index entries for
1304         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
1305
1306 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1307
1308         * fold-const.c (fold): Fold difference of addresses.
1309         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
1310         get_inner_reference.
1311         * tree-ssa-loop-ivopts.c (peel_address): Removed.
1312         (ptr_difference_const): Moved to fold-const.c.
1313         (split_address_cost): Use get_inner_reference instead of peel_address.
1314         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
1315         * tree.h (ptr_difference_const): Export.
1316
1317         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
1318         variable type to the dump.  Fix indentation.
1319         (idx_find_step): Handle nonconstant array_ref_element_size and
1320         array_ref_low_bound.
1321         (idx_record_use): Handle array_ref_element_size and
1322         array_ref_low_bound.
1323         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
1324         statements correctly.
1325         (get_computation_at, iv_value): Do not unshare expressions here.
1326         (rewrite_use_outer): Unshare the expression before it is emitted
1327         to code.
1328         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
1329         Moved to tree.c.
1330         * tree.c (unsigned_type_for, signed_type_for): Moved from
1331         tree-ssa-loop-niter.c.  Use langhooks.
1332         * tree.h (signed_type_for): Export.
1333
1334 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
1335
1336         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
1337         prototype.
1338
1339 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
1340
1341         PR target/11572
1342         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
1343         Add two parameters to extra_includes.
1344         (C_INCPATH_INIT): Remove.
1345         * c-incpath.c (register_include_chains): Call extra_pre_includes
1346         before adding the standard include directory.
1347         Update call to extra_includes.
1348         (!defined TARGET_EXTRA_INCLUDES): Update
1349         hook_void_charptr_charptr_int and add !define
1350         TARGET_EXTRA_PRE_INCLUDES.
1351         (!define TARGET_EXTRA_INCLUDES): Define as
1352         hook_void_charptr_charptr_int.
1353         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
1354         (target_c_incpath): Always declare.
1355         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
1356         empty function.
1357         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
1358         * config/darwin.h: (darwin_register_frameworks): Update for
1359         the two new parameters.
1360         (darwin_register_objc_includes): Add prototype.
1361         (TARGET_EXTRA_PRE_INCLUDES): Define.
1362         * config/darwin-c.c (darwin_register_objc_includes): New function.
1363         (darwin_register_frameworks): Update for the two new parameters.
1364         (target_c_incpath): Remove.
1365         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
1366         the compile line.
1367         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
1368         parameters.
1369         (TARGET_EXTRA_PRE_INCLUDES): Document.
1370
1371         * gcc.c (spec_function): Add replace-outfile.
1372         (replace_outfile_spec_function): New function.
1373         * config/darwin.h (LINK_SPEC): Add replace
1374         -lobjc with -lobjc-gnu if -fgnu-runtime is
1375         supplied.
1376         * invoke.texi (replace-outfile): Document.
1377
1378 2004-09-13  Jan Hubicka  <jh@suse.cz>
1379
1380         * predict.c (expr_expected_value, strip_builtin_expect): New function.
1381         (tree_predict_by_opcode): Use it.
1382         (tree_estimate_probability): Add, for now disabled,
1383         strip_builtin_expect call.
1384
1385 2004-09-15  James E Wilson  <wilson@specifixinc.com>
1386
1387         PR target/17455
1388         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
1389         if current_function_decl is a sibcall.
1390
1391 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
1392
1393         * varasm.c (default_function_rdodata_section): Make sure to pass
1394         along a decl for a link-once section.
1395
1396 2004-09-15  Richard Henderson  <rth@redhat.com>
1397
1398         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
1399         warning with code disable.  Fix formatting.
1400
1401 2004-09-15  Steven Bosscher  <stevenb@suse.de>
1402
1403         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
1404         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
1405         after propagating into an ADDR_EXPR.
1406
1407 2004-09-15  Andrew Pinski  <apinski@apple.com>
1408
1409         PR rtl-opt/17427
1410         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
1411         Move it out of gcc_assert.
1412
1413 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
1414
1415         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
1416         except.c, fold-const.c, function.c, langhooks.c, params.c,
1417         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
1418         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
1419         for quoting in diagnostics going through pretty-print.c.  Use ''
1420         for quoting in other diagnostic text.
1421         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
1422         translation.
1423         * Makefile.in (langhooks.o): Update dependencies.
1424         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
1425         formats.
1426
1427 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
1428
1429         * configure.ac: Check for COMDAT support.  Robustify check for
1430         SHF_MERGE support.
1431         * configure: Regenerated.
1432         * config.in: Likewise.
1433         * langhooks-def.h (lhd_comdat_group): New function.
1434         (LANG_HOOKS_COMDAT_GROUP): New macro.
1435         (LANG_HOOKS_DECLS): Use it.
1436         * langhooks.c (lhd_comdat_group): Define.
1437         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
1438         * output.h (named_section_flags): Make it a macro.
1439         (named_section_real): New function.
1440         (default_no_named_section): Add decl parameter.
1441         (default_elf_asm_named_section): Likewise.
1442         (default_coff_asm_named_section): Likewise.
1443         (default_pe_asm_named_section): Likewise.
1444         * target.h (gcc_target): Adjust type of named_section.
1445         * varasm.c (named_section_flags): Rename to named_section_real.
1446         Add decl parameter.
1447         (default_no_named_section): Add decl parameter.
1448         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
1449         with the case that ASM_COMMENT_START is "@".
1450         (default_coff_asm_named_section): Add decl parameter.
1451         (default_pe_asm_named_section): Likewise.
1452         * config/alpha/alpha.c (vms_asm_named_section): Add decl
1453         parameter.
1454         (unicosmk_asm_named_section): Likewise.
1455         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
1456         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
1457         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
1458         * config/cris/cris-protos.h (cris_target_asm_named_section):
1459         Likewise.
1460         * config/cris/cris.c (cris_target_asm_named_section):
1461         Likewise.
1462         * config/darwin/darwin-protos.h (darwin_asm_named_section):
1463         Likewise.
1464         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
1465         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
1466         * config/i386/i386-protos.h (i386_pe_asm_named_section):
1467         Likewise.
1468         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
1469         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
1470         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
1471         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
1472         Likewise.
1473         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
1474         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
1475         * cp/cp-tree.h (cxx_comdat_group): Declare.
1476         * cp/decl.c (cxx_comdat_group): New function.
1477
1478 2004-09-15  Jan Hubicka  <jh@suse.cz>
1479
1480         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
1481         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
1482
1483         * tree-cfg.c (remove_bb): Release SSA defs.
1484
1485 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1486
1487         * doc/tm.texi: Follow spelling conventions.
1488
1489 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1490
1491         * tree-ssa-dom.c: Fix comment typos.
1492
1493 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
1494
1495         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
1496         include ccr.
1497         (ppc_fallback_frame_state): Save location of CR.
1498
1499 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
1500
1501         * expr.c (string_constant): Handle also read-only variables
1502         initialized to string literals.
1503
1504         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
1505         into memcpy (x, y, 1) if memcpy can be expanded inline.
1506
1507 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1508
1509         PR tree-optimization/17468
1510         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
1511         definition inside a block precede uses.
1512         * tree-tailcall.c (adjust_return_value): Emit statements in the
1513         correct order.
1514
1515 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
1516
1517         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
1518
1519 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
1520
1521         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
1522
1523 2004-09-14 Jeff Law  <law@redhat.com>
1524
1525         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
1526         (struct dom_walk_block_data): Remove avail_exprs member.
1527         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
1528         (lookup_avail_expr): No longer need to pass in address of
1529         the block local available exprs stack.  All callers changed.
1530         (simplify_cond_and_lookup_avail_expr): Similarly.
1531         (simplify_switch_and_lookup_avail_expr): Similarly.
1532         (get_eq_expr_value, record_cond): Likewise.
1533         (record_dominating_conditions): Likewise.
1534         (update_rhs_and_lookup_avail_expr): Likewise.
1535         (record_equivalences_from_stmt): Likewise.
1536         (dom_opt_initialize_block_local_data): No longer test state of
1537         block local avail_exprs.
1538         (dom_opt_initialize_block): Mark unwind point in the global
1539         avail_expr stack.
1540         (remove_expressions_from_table): Update to unwind to the
1541         most recent unwind marker in the global avail_expr stack.
1542         All callers changed.
1543         (dom_opt_finalize_block): Mark unwind point in the global
1544         avail_expr stack as needed.
1545         (record_cond): Push elements into the global avail_exprs stack.
1546
1547         * tree-dfa.c (free_df_for_stmt): No longer static.
1548         (free_df): Update comments.
1549         * tree-flow.h (free_df_for_stmt): Prototype.
1550         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
1551         call release_defs.
1552
1553 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
1554
1555         PR tree-optimization/17252
1556         * tree-ssa-alias.c (may_alias_p): Don't assume that a
1557         pointer may not point to itself when using relaxed
1558         aliasing rules.
1559
1560 2004-09-14  Richard Henderson  <rth@redhat.com>
1561
1562         PR middle-end/17397
1563         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
1564         while folding <ADDR_EXPR <INDIRECT_REF X>>.
1565
1566 2004-09-14  Andrew Pinski  <apinski@apple.com>
1567
1568         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
1569         sets of the pointers but the aliasing sets of what they point to.
1570
1571 2004-09-14  Roger Sayle  <roger@eyesopen.com>
1572
1573         PR rtl-optimization/9771
1574         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
1575         conditional compilation in init_reg_sets_1.
1576         (init_reg_sets_1): Let global_regs[i] take priority over the frame
1577         (but not stack) pointer exceptions to regs_invalidated_by_call.
1578         (globalize_reg): Globalizing a fixed register may need to update
1579         regs_invalidated_by_call.
1580
1581 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
1582
1583         PR tree-optimization/15262
1584         * tree-dfa.c (dump_variable): Also print the type of the
1585         variable.
1586         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
1587         memory tags are of conflicting alias sets but have no aliased
1588         symbols in common, add one tag to the alias set of the other.
1589         (setup_pointers_and_addressables): Remove hack to deal with
1590         programs with no aliased symbols.
1591         (may_alias_p): Don't special case aggregate types.
1592
1593 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1594
1595         PR c/15498
1596         * doc/invoke.texi (Environment Variables): Correct example locale.
1597
1598 2004-09-14  Jan Hubicka  <jh@suse.cz>
1599
1600         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
1601
1602 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
1603
1604         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
1605
1606 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1607
1608         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
1609         restrict_p.
1610         (struct c_declarator): Change u.array.quals and pointer_quals to
1611         int.  Add u.array.attrs.
1612         (quals_from_declspecs): New.
1613         * c-decl.c (quals_from_declspecs): New.
1614         (shadow_tag_warned): Give more specific message for useless type
1615         qualifiers.
1616         (build_array_declarator, set_array_declarator_inner,
1617         grokdeclarator, make_pointer_declarator, build_null_declspecs,
1618         declspecs_add_qual): Update for changed structures.
1619
1620 2004-09-14  Jeff Law  <law@redhat.com>
1621
1622         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
1623         to a global varray.
1624         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
1625         (dom_opt_initialize_block_local_data): No longer test state
1626         of stmts_to_rescan.
1627         (dom_opt_finalize_block): Update due to change in scope of
1628         stmts_to_rescan.
1629         (optimize_stmt): Similarly.
1630
1631 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1632
1633         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
1634         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
1635         comment typos.  Follow spelling conventions.
1636
1637 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1638
1639         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
1640         config/i386/predicates.md, config/sparc/sparc.c: Follow
1641         spelling conventions.
1642
1643 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1644             Steven Bosscher  <stevenb@suse.de>
1645
1646         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
1647         * basic-block.h (struct reorder_block_def): Add copy_number field.
1648         * cfgloop.h (biv_p): Declare.
1649         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
1650         * common.opt (fsplit-ivs-in-unroller): New flag.
1651         * loop-iv.c (biv_p): New function.
1652         * loop-unroll.c: Include hashtab.h and recog.h.
1653         (struct iv_to_split, struct split_ivs_info): New types.
1654         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
1655         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
1656         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
1657         insert_base_initialization, split_iv): New functions.
1658         (peel_loop_completely, unroll_loop_constant_iterations,
1659         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
1660         Use them.
1661         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
1662
1663 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1664
1665         * tree-cfg.c (thread_jumps): Update dominators correctly in
1666         case destination of threaded edge dominates its source.
1667
1668 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1669
1670         * unroll.c: Removed.
1671         * loop.h: Removed.
1672         * Makefile.in (LOOP_H, unroll.o): Removed.
1673         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
1674         dependency.
1675         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
1676         reference.
1677         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
1678         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
1679         * loop.c: Do not include loop.h.
1680         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
1681         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
1682         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
1683         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
1684         struct loop_regs, struct loop_movables, struct loop_info): Moved
1685         from loop.h.
1686         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
1687         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
1688         find_common_reg_term, loop_iterations, final_giv_value): Moved
1689         from unroll.c.
1690         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
1691         loop_dump_stream, for_each_insn_in_loop, express_from,
1692         extend_value_for_giv, loop_iv_add_mult_emit_before,
1693         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
1694         loop_insn_first_p, get_condition_for_loop,
1695         loop_insn_emit_before, loop_insn_hoist,
1696         loop_insn_sink): Made static.
1697         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
1698         reference.
1699         (strength_reduce): Do not call unroller.
1700         (record_giv): Do not initialize unrolled field.
1701         (prescan_loop): Do not set loop_info->preconditioned.
1702         * passes.c: Do not include loop.h.
1703         (rest_of_handle_loop_optimize): Do not call unroller.
1704         * predict.c: Do not include loop.h.
1705         * rtl.h (NOTE_PRECONDITIONED): Removed.
1706         * stmt.c: Do not include loop.h.
1707         * toplev.c: Do not include loop.h.
1708         (process_options): Do not handle flag_old_unroll_loops.
1709
1710         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
1711         Documentation removed.
1712         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
1713
1714 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
1715
1716         * Makefile.in (STAGE1_CHECKING): New variable.
1717         (stage1_build): Use it.
1718         * tree-ssa.c (verify_ssa): Preserve state of dominance
1719         information.
1720
1721 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
1722
1723         * config/i386/i386.c (output_fp_compare): Add generation
1724         of ftst instruction.
1725         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
1726         Use output_fp_compare () function.
1727         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
1728         (fix_truncdi_memory): Remove operands[5] copy.
1729
1730 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1731
1732         * config/m32r/m32r.md, config/m68k/m68kelf.h,
1733         config/mcore/mcore.md, config/rs6000/linux64.h,
1734         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
1735         typos.
1736
1737 2004-09-13  James E Wilson  <wilson@specifixinc.com>
1738
1739         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
1740         * gen-protos.c: Include errors.h.
1741         (progname): Delete.
1742
1743 2004-09-14  Jan Hubicka  <jh@suse.cz>
1744
1745         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
1746         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
1747         (predict_loops): Use number_of_iterations_exit to predict
1748         number of iterations on trees.
1749
1750 2004-09-13  Dale Johannesen  <dalej@apple.com>
1751
1752         PR 17408
1753         PR 17409
1754         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
1755         objects declared extern.
1756
1757 2004-09-14  Paul Brook  <paul@codesourcery.com>
1758
1759         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
1760         HOST_WIDE_INT.
1761
1762 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
1763
1764         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
1765         Only use TYPE_BINFO for aggregates.
1766
1767 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
1768
1769         * expmed.c (synth_mult): Initialize latency.  Check cost before
1770         checking ops count.
1771
1772 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
1773
1774         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
1775         add_call_clobber_ops and add_call_read_ops.
1776         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
1777         the number of vdefs and vuses inserted based on analysis of global
1778         variables across calls.  * tree-dfa.c (find_referenced_vars):
1779         Needed to reset static var maps before each function is compiled.
1780         * cgraphunit.c:
1781         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
1782         static_vars_info,functions_to_static_vars_info,module_statics_escape,
1783         all_module_statics,searchc_env,dfs_info): New fields to support
1784         analysis of static global variables.
1785         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
1786         cgraph_reset_static_var_maps, get_global_static_vars_info,
1787         get_global_statics_not_read, get_global_statics_not_written,
1788         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
1789         check_rhs_var, check_lhs_var, get_asm_expr_operands,
1790         process_call_for_static_vars, scan_for_static_refs,
1791         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
1792         clear_static_vars_maps, cgraph_propagate_bits,
1793         cgraph_characterize_statics): New. Functions to support analysis
1794         of static global variables.
1795         (cgraph_mark_local_and_external_functions): Renamed from:
1796         (cgraph_mark_local_functions)
1797         (cgraph_expand_all_functions): Remove call to
1798         cgraph_mark_local_and_external_functions.
1799         (cgraph_optimize): Added driver to analyze static variables whose
1800         scope is within the compilation unit.  * cgraph.h (struct
1801         cgraph_local_info, GTY): Added statics_read, statics_written,
1802         local, calls_read_all, calls_write_all, for_functions_valid.
1803         (struct cgraph_node): Added next_cycle.  * cgraph.c
1804         (dump_cgraph_node): Added print routines for new fields.  *
1805         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
1806         list.
1807
1808 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
1809
1810         * c-decl.c (grokdeclarator): Correct comments about where storage
1811         class specifiers are rejected by grammar and add corresponding
1812         asserts.  Diagnose typedefs and parameters declared inline.
1813         Change warning for inline main to a pedwarn.  Only diagnose inline
1814         main if hosted.
1815         (declspecs_add_scspec): Allow duplicate "inline".
1816
1817 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
1818
1819         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
1820         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1821
1822 2004-09-13  Richard Henderson  <rth@redhat.com>
1823
1824         PR 17436
1825         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
1826         (tree_type): Replace spare with contains_placeholder_bits.
1827         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
1828         make static.  Remove seen_types list.
1829         (type_contains_placeholder_p): New.
1830
1831 2004-09-13  James E Wilson  <wilson@specifixinc.com>
1832
1833         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
1834         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
1835         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
1836         bdesc_arrays instead of mips_bdesc.
1837         (mips_init_builtins): Likewise.
1838         * config/mips/mips.h (TARGET_SB1): New.
1839         (HAVE_SQRT_P): Delete.
1840         * config/mips/mips.md (divide_condition): Support V2SF.
1841         (sqrt_condition, recip_condition): New.
1842         (div<mode>3): Use ANYF instead of SCALARF.
1843         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
1844         MODE.
1845         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
1846         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
1847         instead of MODE.
1848         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
1849         instead of SCALARF.  Use UNITMODE instead of MODE.
1850
1851 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
1852
1853         * config.in: Regenerate after removal of libbanshee.
1854
1855 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
1856
1857         PR tree-optimization/17400
1858         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
1859         coalesce partitions when one occurs in an abnormal PHI.
1860
1861 2004-09-13  Andrew Pinski  <apinski@apple.com>
1862
1863         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
1864         name to _new_size.
1865
1866 2004-09-13  Richard Henderson  <rth@redhat.com>
1867
1868         PR inline-asm/6806
1869         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
1870         (cselib_invalidate_rtx_note_stores): New.
1871         (cselib_record_sets, cselib_process_insn): Update to match.
1872         * cselib.h (cselib_invalidate_rtx): Declare.
1873         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
1874
1875 2004-09-13  Richard Henderson  <rth@redhat.com>
1876
1877         PR tree-opt/10528
1878         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
1879         after copying its argument.
1880
1881 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
1882
1883         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
1884         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
1885         in diagnostics.  Use %' for English apostrophes.
1886         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
1887         (pedwarn_c90, pedwarn_c99): Use it.
1888         * c-decl.c (lookup_label): Quote label name in diagnostic.
1889         * c-parse.in (yyprint): Use ' instead of ` for left quote.
1890         * c-typeck.c (warn_for_assignment): Likewise.
1891
1892 2004-09-13  Jan Hubicka  <jh@suse.cz>
1893
1894         * i386.c (x86_schedule): New global variable.
1895         (override_options): Disable scheduling when not supported.
1896         * i386.h (x86_schedule): Declare.
1897         (TARGET_SCHEDULE): New macro.
1898
1899 2004-09-12  Richard Henderson  <rth@redhat.com>
1900
1901         PR c++/16254
1902         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
1903         * tree.c, tree.h (has_cleanups): Remove.
1904
1905 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1906
1907         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
1908         arguments of the phi nodes correctly.
1909
1910 2004-09-12  Jan Hubicka  <jh@suse.cz>
1911
1912         * ggc-common.c (cmp_statistics): Fix sorting.
1913
1914 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
1915
1916         PR target/16795
1917         * expmed.c (expand_divmod): If cheap power of 2 divide is
1918         available, use it for negative constant as well.
1919
1920 2004-09-12  Andrew Pinski  <apinski@apple.com>
1921
1922         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
1923         size of 0.
1924
1925         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
1926
1927 2004-09-12  Richard Henderson  <rth@redhat.com>
1928
1929         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
1930         or minus one.
1931         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
1932         post-reload, and scratch NULL.
1933         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
1934         (x86_shift_adj_2): Use ix86_expand_clear.
1935         (ashldi3): Remove CMOVE expansion difference.
1936         (ashldi3_1): Remove.
1937         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
1938         add constraints for immediates.  New peephole for split-with-temp.
1939         Run splitter after peep2 pass.
1940         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
1941         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
1942         (setcc_2): Rename with *.
1943         * config/i386/predicates.md (reg_or_pm1_operand): New.
1944         (ashldi_input_operand): New.
1945
1946 2004-09-12  Richard Henderson  <rth@redhat.com
1947
1948         * print-rtl.c (print_decl_name): New.
1949         (print_mem_expr): Use it.
1950
1951 2004-09-12  Richard Henderson  <rth@redhat.com
1952
1953         PR 17186, part deux
1954         * except.c (sjlj_emit_function_exit): Fix logic locating
1955         sjlj_exit_after in final block.
1956
1957 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
1958
1959         * common.opt: Remove flags -fmove-all-movables and
1960         -freduce-all-givs.
1961         * loop-invariant.c (find_invariants_to_move):
1962         Remove all uses of flag_move_all_movables.
1963         * loop.c (move_movables): Remove all uses of
1964         flag_move_all_movables.
1965         (strength_reduce): Remove all uses of
1966         flag_reduce_all_givs.
1967         * doc/invoke.texi: Remove documentation of flags
1968         -fremove-all-movables and -freduce-all-givs.
1969
1970 2004-09-11  Roger Sayle  <roger@eyesopen.com>
1971
1972         PR middle-end/17411
1973         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
1974         change. elt->type may be a floating point type, so use fold_convert.
1975
1976 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
1977
1978         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
1979         the thing referenced as used, not the stub itself.
1980
1981 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1982
1983         * c-tree.h (enum c_storage_class): New.
1984         (struct c_declspecs): Add storage_class, inline_p and thread_p.
1985         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
1986         declarations and "auto" or "register" in file scope empty
1987         declarations.  Give more specific warnings for other cases of
1988         storage class specifiers in empty declarations.
1989         (grokdeclarator): Update for new structures.  Don't check for
1990         multiple storage classes.  Diagnose file-scope "register" if
1991         pedantic.
1992         (build_null_declspecs): Update.
1993         (declspecs_add_scspec): Update.  Diagnose multiple storage class
1994         specifiers and invalid uses of "__thread".
1995
1996 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
1997
1998         * tree.c (tree_code_size): New function, bulk of code from tree_size.
1999         (tree_size, make_node): Use it.
2000         * tree-ssa-pre.c (init_pre): Use it.
2001         * tree.h: Prototype it.
2002
2003 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2004
2005         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
2006         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
2007         redirect_immediate_use): Use PHI_DF.
2008         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
2009         (bb_for_stmt): Use PHI_BB.
2010         (get_immediate_uses): Use PHI_DF.
2011         * tree-ssa-dse.c (max_stmt_uid): New variable.
2012         (get_stmt_uid): New function.
2013         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
2014         node annotations.
2015         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
2016         (max_uid): Renamed to max_stmt_uid.
2017         (get_stmt_uid): New function.
2018         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
2019         phi node annotations.
2020         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
2021         * tree.h (PHI_BB, PHI_DF): New accessor functions.
2022         (struct tree_phi_node): Add bb and df fields.
2023
2024 2004-09-11  Richard Henderson  <rth@redhat.com>
2025
2026         PR middle-end/17416
2027         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
2028         in conflict loop.
2029
2030 2004-09-11  Jan Hubicka  <jh@suse.cz>
2031
2032         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
2033         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
2034         * i386.md (i387_cw): Add 'uninitialized' mode.
2035
2036         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
2037         (output_location): Break out from ....
2038         (branch_prob): ... here; handle gcov output on trees.
2039         * toplev.c (process_options): No longer be sorry about coverage for
2040         trees.
2041
2042 2004-09-11  Steven Bosscher  <stevenb@suse.de>
2043
2044         PR c++/17412
2045         * fold-const.c (fold): Do not try to fold the operand of a
2046         CLEANUP_POINT_EXPR if that operand does itself not have any
2047         operands.
2048
2049         PR middle-end/17417
2050         * langhooks.c (lhd_decl_printable_name): Make sure that this
2051         function is called with is a decl node that has an identifier.
2052         * tree-pretty-print.c (dump_function_name): New function to
2053         wrap PRINT_FUNCTION_NAME and dump_decl_name.
2054         (print_call_name): Use it.
2055
2056 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
2057
2058         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
2059         "config.h" if not.
2060
2061 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
2062
2063         * tree-ssa-alias.c (collect_points_to_info_r): Handle
2064         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
2065         to OFFSET.
2066
2067 2004-09-11  Richard Henderson  <rth@redhat.com>
2068
2069         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
2070         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
2071         operand of the ADDR_EXPR.
2072         (expand_expr_real_1): Update to match.
2073
2074 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
2075
2076         PR target/17277
2077         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
2078         choose 64-bit version.
2079
2080 2004-09-11  Richard Henderson  <rth@redhat.com>
2081
2082         PR c/17396
2083         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
2084
2085 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
2086
2087         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
2088         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
2089         Insert @: after i.e. or e.g.
2090
2091 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
2092
2093         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
2094         D.xxx rather than <Dxxx>.
2095
2096 2004-09-10  Adam Nemet  <anemet@lnxw.com>
2097
2098         * configure.ac (AC_MSG_CHECKING(what linker to use)):
2099         in_tree_ld_is_elf should be true for LynxOS.
2100         * configure: Regenerate.
2101
2102 2004-09-10  Adam Nemet  <anemet@lnxw.com>
2103
2104         * Makefile.in (all.cross): Add srcextra.
2105
2106 2004-09-10  Roger Sayle  <roger@eyesopen.com>
2107
2108         PR middle-end/17024
2109         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
2110         floating point comparison operators.  Change aborts to gcc_asserts.
2111
2112 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
2113
2114         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
2115
2116 2004-09-10  James E Wilson  <wilson@specifixinc.com>
2117
2118         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
2119         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
2120
2121         * convert.c (convert_to_vector): Replace recursive call with
2122         error_mark_node.
2123
2124         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
2125         Add integer argument named constant.  Use const_tiny_rtx instead of
2126         CONST0_RTX.
2127         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
2128         and CONST1_RTX.
2129         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
2130         vector types.
2131         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
2132         of gen_rtx_raw_CONST_VECTOR.
2133
2134 2004-09-10  Eric Christopher  <echristo@redhat.com>
2135
2136         PR c/16046
2137         * c-parse.in (attribute): Add NULL_TREE for error case
2138         for error recovery.
2139
2140 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
2141
2142         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
2143         (extract_interface_info): Delete prototype.
2144         * c-decl.c (extract_interface_info): Delete stub.
2145         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
2146         it's not already been done ...
2147         (init_c_lex): ... not here.
2148         (fe_file_change): Don't call extract_interface_info.
2149
2150 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
2151
2152         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
2153         typedef_p and typedef_signed_p.
2154         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
2155         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
2156         Check typedef_p and typedef_signed_p, not typedef_decl.
2157         (grokfield): Check typedef_p, not typedef_decl.
2158         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
2159         not typedef_decl.
2160         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
2161         typedef_decl.
2162
2163 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
2164
2165         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
2166
2167 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
2168
2169         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
2170         temporary variables.
2171
2172         * dbxout.c (dbxout_block): Update for
2173         current_function_func_begin_label a string.
2174         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
2175         * except.c (dw2_output_call_site_table): Likewise.
2176         * toplev.c (current_function_func_begin_label): Likewise.
2177         * tree.h (current_function_func_begin_label): Likewise.
2178         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
2179
2180         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
2181         loop.
2182
2183         * config/darwin.c: Include target.h.
2184         (struct machopic_indirection): Make ptr_name a string.
2185         (machopic_indirection_hash): Update for ptr_name a string.
2186         (machopic_indirection_eq): Likewise.
2187         (machopic_indirection_name): Likewise.
2188         (machopic_output_indirection): Likewise.
2189         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
2190         string.  Don't expect stub names to be in the identifier hash table.
2191         Do call strip_name_encoding before looking up entry in ID hash table.
2192         * config/t-darwin (darwin.o): Add target.h to dependencies.
2193
2194         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
2195         of fprintf for register names.
2196
2197         * output.h (unlikely_section_label): Delete declaration.
2198         (unlikely_text_section_name): Likewise.
2199         * varasm.c (unlikely_section_label_printed): Make static.
2200         (unlikely_section_label): Likewise.
2201         (unlikely_text_section_name): Likewise.
2202         (assemble_start_function): Use reconcat.
2203
2204         * rtl.def (REG): Add comment to describe third field.
2205
2206 2004-09-10  Andrew Pinski  <apinski@apple.com>
2207
2208         * config/darwin.c (machopic_mcount_stub_name): Call
2209         machopic_indirection_name instead of making the string
2210         ourselves.
2211
2212 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
2213
2214         Revert
2215
2216         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
2217
2218             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
2219             memory tag is call clobbered, so are its aliases.
2220             (group_aliases): When two memory tags being grouped, if one is
2221             call clobbered, so are the other and its aliases.
2222             (add_may_alias): Remove call-clobbering stuff.
2223             (replace_may_alias): Likewise.
2224             (merge_pointed_to_info): Merge pt_global_mem
2225
2226 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
2227
2228         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
2229         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
2230         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
2231         tree-scalar-evolution.c, tree-ssa-copyrename.c,
2232         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
2233
2234 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
2235
2236         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
2237         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
2238         pair.  Remove match_dup from inputs.  Remove masaccs handling.
2239         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
2240         (masaccs, mdasaccs): Turn into define_insns.
2241
2242 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
2243
2244         * tree-tailcall.c (process_assignment): Only do accumulator transforms
2245         for floating-point types if flag_unsafe_math_optimizations.
2246
2247 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
2248
2249         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
2250         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
2251         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
2252         config/h8300/h8300.md, config/i386/gmm_malloc.h,
2253         config/ia64/ia64.md, config/ip2k/libgcc.S,
2254         config/mips/mips-ps-3d.md, config/mips/mips.c,
2255         config/rs6000/rs6000.c, config/s390/s390.c,
2256         config/sh/symbian.c: Fix comment typos.
2257
2258 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
2259
2260         * config/s390/s390.c (s390_emit_prologue): Added missing
2261         "{}" brackets.
2262
2263 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
2264
2265         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
2266         typos.  Follow spelling conventions.
2267
2268 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
2269
2270         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
2271         in diagnostic.  Don't dereference NULL TYPE_NAME.
2272
2273 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
2274
2275         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
2276         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
2277         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
2278         value-prof.c: Fix comment typos.  Follow spelling conventions.
2279
2280 2004-09-10  Jan Hubicka  <jh@suse.cz>
2281
2282         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
2283         * tree-split_edge.c (tree_split_edge): Likewise.
2284         (thread_jumps): Likewise.
2285
2286 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
2287
2288         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
2289         typos.
2290
2291 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
2292
2293         * cgraph.h (cgraph_dump_file): Do not declare.
2294         * cgraphunit.c (cgraph_dump_file): Declare as static.
2295         (init_cgraph): New.
2296         * toplev.c (cgraph_dump_file): Do not declare.
2297         (compile_file): Call init_cgraph.
2298         * tree-dump.c (dump_files): Add IPA dump file, remove
2299         XML dump of call graph.
2300         (get_dump_file_name): Support IPA dump file naming scheme.
2301         * tree.h (enum tree_dump_index): Add IPA dump file, remove
2302         XML dump of call graph.
2303         * doc/invoke.texi (Debugging Options): Document the new options.
2304
2305 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
2306
2307         * doc/extend.texi: Document the FR-V built-in functions.
2308
2309 2004-09-09  James E Wilson  <wilson@specifixinc.com>
2310
2311         * doc/sourcebuild.texi: Delete libbanshee reference.
2312
2313 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
2314
2315         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
2316
2317 2004-09-09  James E Wilson  <wilson@specifixinc.com>
2318
2319         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
2320         before calling vector_types_convertible_p.
2321         (digest_init): Check that inside_init has VECTOR_TYPE before calling
2322         vector_types_convertible_p.  Don't give another error if
2323         convert_for_assignment returns error_mark_node.
2324
2325 2004-09-09  Roger Sayle  <roger@eyesopen.com>
2326
2327         PR middle-end/17055
2328         * fold-const.c (build_zero_vector): New function to construct a
2329         vector (either floating point or integer) of zeros.
2330         (fold_convert): Internally, enable conversions of integer zero
2331         to arbitrary vector types, using the new build_zero_vector.
2332
2333 2004-09-09  Roger Sayle  <roger@eyesopen.com>
2334
2335         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
2336         expand a left shift by an immediate constant as either an ashl or
2337         a sequence of additions.
2338         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
2339         instead of calling gen_ashlsi3 with a constant directly.
2340
2341 2004-09-09  Roger Sayle  <roger@eyesopen.com>
2342
2343         * config/i386/i386.c (ix86_split_long_move): When optimizing for
2344         size, and the low and high parts of a DImode constant are equal,
2345         copy one register to another instead of loading the same immediate
2346         value twice.
2347
2348 2004-09-09  Richard Henderson  <rth@redhat.com>
2349
2350         PR middle-end/17367
2351         * function.c (assign_parm_setup_block): Only put PARALLELs into
2352         a register if use_register_for_decl.
2353
2354 2004-09-09  Eric Christopher  <echristo@redhat.com>
2355
2356         * ra-colorize.c (reset_lists): Move variable declaration inside
2357         ENABLE_CHECKING to avoid unused variable warnings when
2358         not --enable-checking.
2359         (check_colors): Ditto.
2360
2361 2004-09-09  Mike Stump  <mrs@apple.com>
2362
2363         * version.c (version_string): Bump to 4.0.0.
2364         * doc/include/gcc-common.texi (version-GCC): Likewise.
2365
2366 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
2367
2368         * doc/extend.texi (nothrow attribute): The attribute is not
2369         implemented in 3.2 and earlier.
2370
2371 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
2372
2373         * genrecog.c (compute_predicate_codes): Use op0_codes
2374         instead of codes.
2375
2376 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
2377
2378         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
2379         implementation changes.
2380
2381 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
2382
2383         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
2384         a PARALLEL instead of a SET due to added clobbers.
2385
2386 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
2387
2388         * reload.c (find_reloads_address): Pass correct operand to
2389         maybe_memory_address_p.
2390
2391 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
2392
2393         * Makefile.in: Remove libbanshee, tree-alias-*.
2394         Remove tree-alias-common.h dependencies.
2395         * common.opt: Remove -ftree-points-to.
2396         * configure.ac: Remove libbanshee.
2397         * flags.h: Remove pta_type, flag_tree_points_to.
2398         * gengtype.c (open_base_files): Remove tree-alias-type.h.
2399         * opts.c (OPT_ftree_points_to): Remove.
2400         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
2401         * tree-dfa.c: Remove tree-alias-common.h
2402         * tree-into-ssa.c: Ditto.
2403         * tree-outof-ssa.c: Ditto.
2404         * tree-ssa-copyrename.c: Ditto.
2405         * tree-ssa-live.c: Ditto.
2406         * tree-optimize.c: Ditto.
2407         * tree-ssa.c: Ditto.
2408         Remove pass_build_pta, pass_del_pta.
2409         * tree-pass.h: Ditto.
2410         * tree-ssa-alias.c: Remove tree-alias-common.h.
2411         (struct alias_stats_d): Remove pta_queries, pta_resolved.
2412         (pass_may_alias): Remove PROP_pta requirement.
2413         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
2414         (get_tmt_for): Ditto.
2415         (dump_alias_stats): Ditto.
2416         * doc/passes.texi: Remove blurb about points-to analysis.
2417         * fortran/Make-lang.in: Remove tree-alias-*.o.
2418
2419 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
2420
2421         * genattrtab.c (write_insn_cases): New function, split out from
2422         write_attr_case.  Correctly handle define_peepholes when printing
2423         the instruction name.
2424         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
2425
2426 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
2427
2428         PR target/17377
2429         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
2430         * config/cris/cris.c (cris_return_address_on_stack): New function.
2431         * config/cris/cris.md ("return"): For location of return address,
2432         also check cris_return_address_on_stack.
2433
2434 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
2435
2436         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
2437         calling phi_ssa_name_p.
2438
2439 2004-09-09  Richard Henderson  <rth@redhat.com>
2440
2441         PR c/17322
2442         * c-typeck.c (valid_compound_expr_initializer): Use only
2443         initializer_constant_valid_p, and not TREE_CONSTANT.
2444         (digest_init): Likewise.
2445         (output_init_element): Likewise.
2446
2447 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2448
2449         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
2450         live_out_1, prune_hardregs_for_mode, init_one_web_common,
2451         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
2452         record_conflict, compare_and_free_webs, init_webs_defs_uses,
2453         parts_to_webs_1, parts_to_webs, reset_conflicts,
2454         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
2455         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
2456         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
2457         put_move, remove_move, combine, select_spill, colorize_one_web,
2458         try_recolor_web, insert_coalesced_conflicts, check_colors,
2459         break_precolored_alias, restore_conflicts_from_coalesce,
2460         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
2461         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
2462         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
2463         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
2464         check_df): Likewise.
2465         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
2466         real_arithmetic, real_compare, real_exponent, real_ldexp,
2467         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
2468         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
2469         real_digit, real_nan, real_maxval, round_for_format, real_convert,
2470         real_to_target, real_from_target, real_hash, encode_ieee_single,
2471         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
2472         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
2473         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
2474         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
2475         extract_insn, peep2_next_insn, peep2_reg_dead_p,
2476         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
2477         if_test_bypass_p): Likewise.
2478         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
2479         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
2480         emit_swap_insn, swap_to_top, move_for_stack_reg,
2481         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
2482         compensate_edge, convert_regs_1): Likewise.
2483         * regclass.c (init_reg_sets, init_reg_sets_1,
2484         memory_move_secondary_cost): Likewise.
2485         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
2486         Likewise.
2487         * reload.c (push_secondary_reload, find_valid_class, push_reload,
2488         operands_match_p, decompose, immune_p, find_reloads,
2489         find_reloads_toplev, find_reloads_address_1, subst_reloads,
2490         copy_replacements, refers_to_regno_for_reload_p,
2491         reg_overlap_mentioned_for_reload_p): Likewise.
2492         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
2493         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
2494         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
2495         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
2496         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
2497         do_output_reload, fixup_abnormal_edges): Likewise.
2498         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
2499         fill_slots_from_thread, relax_delay_slots): Likewise.
2500         * resource.c (mark_referenced_resources, mark_set_resources):
2501         Likewise.
2502         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
2503         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
2504         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
2505         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
2506         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
2507         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
2508         * rtlhooks.c (gen_lowpart_general): Likewise.
2509         * sbitmap.c (sbitmap_difference): Likewise.
2510         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
2511         sched_analyze, add_forward_dependence): Likewise.
2512         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
2513         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
2514         schedule_insns): Likewise.
2515         * sched-vis.c (print_pattern): Likewise.
2516         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
2517         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
2518         simplify_const_relational_operation, simplify_ternary_operation,
2519         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
2520         Likewise.
2521         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
2522         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
2523         resolve_operand_name_1, expand_return, expand_decl,
2524         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
2525         * stor-layout.c (put_pending_size, smallest_mode_for_size,
2526         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
2527         set_sizetype, get_mode_bounds): Likewise.
2528
2529 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
2530
2531         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
2532         * config/arm/pecoff.h, config/i386/beos-elf.h
2533         * config/i386/cygming.h, config/i386/i386-interix.h:
2534         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
2535         comment cloned from manual.
2536         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
2537
2538 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
2539
2540         * builtins.c (build_va_arg_indirect_ref): New function.
2541         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
2542         build_fold_indirect_ref.
2543         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
2544         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
2545         * tree.h: Declare new function.
2546
2547 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2548
2549         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
2550         dumping for development builds.
2551         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
2552         development builds only.
2553         * genattrtab.c (write_eligible_delay): Fix typo in previous
2554         commit.
2555         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
2556         gcc_assert.
2557
2558 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2559
2560         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
2561         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
2562         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
2563         hoist_code, extract_mentioned_regs_helper, compute_store_table,
2564         insert_store): Use gcc_assert and gcc_unreachable.
2565         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
2566         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
2567         ggc_record_overhead): Likewise.
2568         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
2569         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
2570         ggc_pop_context, clear_marks, validate_free_objects,
2571         ggc_pch_read): Likewise.
2572         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
2573         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
2574         ggc_push_context, check_cookies, ggc_collect,
2575         ggc_print_statistics): Likewise.
2576         * gimple-low.c (lower_function_body, lower_stmt,
2577         lower_bind_expr): Likewise.
2578         * gimplify.c (gimple_tree_eq, push_gimplify_context,
2579         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
2580         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
2581         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
2582         gimplify_case_label_expr, gimplify_exit_block_expr,
2583         canonicalize_component_ref, gimplify_compound_lval,
2584         gimplify_self_mod_expr, gimplify_call_expr,
2585         gimplify_init_ctor_eval, gimplify_init_constructor,
2586         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
2587         gimplify_expr, check_pointer_types_r,
2588         force_gimple_operand): Likewise.
2589         * global.c (global_alloc, build_insn_chain): Likewise.
2590         * graph.c (clean_graph_dump_file,
2591         finish_graph_dump_file): Likewise.
2592         gcov-io.c (gcov_open): Use GCOV_CHECK.
2593
2594 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
2595
2596         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
2597
2598 2004-09-09  Jan Hubicka  <jh@suse.cz>
2599
2600         middle-end/17128
2601         * tree-inline.c (expand_call_inline): Make overactive sanity check
2602         happy.
2603
2604 2004-09-09  Jan Hubicka  <jh@suse.cz>
2605
2606         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
2607         VIEW_CONVERT_EXPR.
2608
2609 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2610
2611         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
2612         (gengtype.o): Depend on errors.h.
2613         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
2614         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
2615         attr_alt_subset_p, attr_alt_subset_of_compl_p,
2616         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
2617         write_test_expr, write_attr_value, write_eligible_delay,
2618         make_internal_attr, make_numeric_value): Likewise.
2619         * genautomata.c (regexp_name, get_str_vect,
2620         gen_presence_absence_set, automaton_decl_hash,
2621         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
2622         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
2623         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
2624         test_unit_reserv, it_is_empty_reserv_sets,
2625         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
2626         reserv_sets_and, output_cycle_reservs, get_free_state,
2627         intersected_state_reservs_p, states_union, remove_arc,
2628         copy_insn_regexp, transform_1, transform_2, transform_3,
2629         regexp_transform_func, store_alt_unit_usage,
2630         check_regexp_units_distribution, process_seq_for_forming_states,
2631         process_alts_for_forming_states, make_automaton,
2632         form_arcs_marked_by_insn, create_composed_state,
2633         set_out_arc_insns_equiv_num, partition_equiv_class,
2634         process_insn_equiv_class, set_insn_equiv_classes,
2635         units_to_automata_heuristic_distr, form_regexp,
2636         longest_path_length, output_dfa_max_issue_rate, add_vect,
2637         out_state_arcs_num, add_vect_el, output_trans_table,
2638         output_state_alts_table, output_dead_lock_vect,
2639         output_max_insn_queue_index_def,
2640         output_min_insn_conflict_delay_func,
2641         output_internal_insn_latency_func, output_print_reservation_func,
2642         output_cpu_unit_reservation_p, output_state_arcs,
2643         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
2644         make_default_insn_latency_attr,
2645         form_important_insn_automata_lists): Likewise.
2646         * genemit.c (gen_exp, output_add_clobbers,
2647         output_added_clobbers_hard_reg_p): Likewise.
2648         * genextract.c (print_path, main): Likewise.
2649         * genflags.c (gen_macro): Likewise.
2650         * gengenrtl.c: Include errors.h
2651         (type_from_format, accessor_from_format): Likewise.
2652         * gengtype.c (get_file_basename, output_mangled_typename,
2653         walk_type, write_types_process_field,
2654         write_types_local_process_field): Likewise.
2655         * genmodes.c (complete_mode): Likewise.
2656         * genopinit.c (gen_insn): Likewise.
2657         * genoutput.c (output_insn_data, check_constraint_len,
2658         constraint_len): Likewise.
2659         * genpreds.c (add_mode_tests):Likewise.
2660         * gen-protos.c (add_hash): Likewise.
2661         * genrecog.c (find_operand, find_matching_operand,
2662         validate_pattern, add_to_sequence, maybe_both_true,
2663         nodes_identical_1, merge_trees, write_switch, write_cond,
2664         write_action, is_unconditional, make_insn_sequence,
2665         debug_decision_2): Likewise.
2666         * gensupport.c (is_predicable, collect_insn_data,
2667         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
2668
2669 2004-09-09  Jan Hubicka  <jh@suse.cz>
2670
2671         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
2672         * cfgbuild.c (compute_outgoing_frequencies): When probability is
2673         missing, guess it.
2674         (find_many_sub_basic_blocks): Do update profile only when it is
2675         present.
2676         * predict.c (set_even_probabilities): Break out from ...
2677         (combine_predictions_for_insn): ... here; deal with
2678         !can_predict_insn_p insns.
2679         (combine_predictions_for_bb): Use set_even_probabilities.
2680         (bb_estimate_probability_locally): Break out from ....
2681         (estimate_probability): ... here.
2682         (guess_outgoing_edge_probabilities): New entry point.
2683
2684 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2685
2686         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
2687         handle_braces, process_brace_body, main, used_arg,
2688         set_multilib_dir, print_multilib_info): Use fatal, not abort.
2689
2690         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
2691
2692         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
2693         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
2694         Morgan's theorem in last checkin.
2695
2696 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2697             Nathan Sidwell  <nathan@codesourcery.com>
2698
2699         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
2700         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
2701         * timevar.c (timevar_push, timevar_pop, timevar_start,
2702         timevar_stop): Likewise.
2703         * toplev.c (default_pch_valid_p): Likewise.
2704         * tracer.c (tail_duplicate): Likewise.
2705         * tree-alias-common.c (get_alias_var_decl,
2706         get_values_from_constructor, create_alias_var, delete_alias_vars,
2707         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
2708         Likewise.
2709         * tree.c (tree_size, make_node_stat, copy_node_stat,
2710         build_int_cst_wide, integer_all_onesp, list_length, chainon,
2711         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
2712         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
2713         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
2714         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
2715         build_method_type_directly, decl_type_context, get_callee_fndecl,
2716         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
2717         tree_fold_gcd): Likewise.
2718         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
2719         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
2720         cleanup_control_expr_graph, find_taken_edge,
2721         find_taken_edge_switch_expr, phi_alternatives_equal,
2722         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
2723         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
2724         tree_split_edge, tree_verify_flow_info, thread_jumps,
2725         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
2726         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
2727         chrec_fold_multiply_poly_poly): Likewise.
2728         * tree-complex.c (extract_component, expand_complex_division,
2729         expand_complex_comparison, expand_complex_operations_1,
2730         build_replicated_const, expand_vector_operations_1): Likewise.
2731         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
2732         build_classic_dir_vector): Likewise.
2733         * tree-dfa.c (compute_immediate_uses_for_phi,
2734         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
2735         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
2736         * tree-dump.c (dequeue_and_dump): Likewise.
2737         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
2738         record_in_finally_tree, replace_goto_queue_1,
2739         maybe_record_in_goto_queue, verify_norecord_switch_expr,
2740         do_return_redirection): Likewise.
2741         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
2742         add_to_dst_predicate_list, find_phi_replacement_condition,
2743         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
2744         Likewise.
2745         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
2746         initialize_inlined_parameters, declare_return_variable,
2747         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
2748         optimize_inline_calls, copy_tree_r): Likewise.
2749         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
2750         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
2751         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
2752         tsi_split_statement_list_after, tsi_split_statement_list_before):
2753         Likewise.
2754         * tree-mudflap.c (mf_varname_tree): Likewise.
2755         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
2756         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
2757         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2758         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
2759         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
2760         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
2761         Likewise.
2762         * tree-phinodes.c (resize_phi_node, add_phi_arg,
2763         remove_all_phi_nodes_for): Likewise.
2764         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
2765         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
2766         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
2767         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
2768         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
2769         generate_one_element_ref, generate_element_copy,
2770         generate_element_zero, scalarize_copy, scalarize_init,
2771         scalarize_ldst): Likewise.
2772         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
2773         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
2774         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
2775         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
2776         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
2777         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
2778         widen_bitfield, ccp_fold_builtin): Likewise.
2779         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
2780         replace_exp_1, propagate_tree_value): Likewise.
2781         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
2782         * tree-ssa-dce.c (set_control_dependence_map_bit,
2783         find_control_dependence, find_pdom, mark_operand_necessary,
2784         mark_stmt_if_obviously_necessary,
2785         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
2786         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
2787         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
2788         eliminate_redundant_computations, avail_expr_eq): Likewise.
2789         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
2790         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
2791         duplicate_blocks): Likewise.
2792         * tree-ssa-loop-im.c (for_each_index, set_level,
2793         is_call_clobbered_ref): Likewise.
2794         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
2795         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
2796         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
2797         peel_address, ptr_difference_cost, may_replace_final_value,
2798         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
2799         rewrite_use, rewrite_uses): Likewise.
2800         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
2801         check_loop_closed_ssa_use): Likewise.
2802         * tree-ssanames.c (make_ssa_name): Likewise.
2803         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
2804         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
2805         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
2806         get_indirect_ref_operands, add_stmt_operand): Likewise.
2807         * tree-ssa-pre.c (value_exists_in_set_bitmap,
2808         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
2809         phi_translate, valid_in_set, compute_antic,
2810         find_or_generate_expression, create_expression_by_pieces, insert_aux,
2811         create_value_expr_from, eliminate): Likewise.
2812         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
2813         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
2814         Likewise.
2815         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
2816         eliminate_tail_call): Likewise.
2817         * tree-vectorizer.c (vect_create_index_for_array_ref,
2818         vect_align_data_ref, vect_create_data_ref,
2819         vect_create_destination_var, vect_get_vec_def_for_operand,
2820         vect_finish_stmt_generation, vect_transform_stmt,
2821         vect_transform_loop_bound, vect_transform_loop,
2822         vect_analyze_operations): Likewise.
2823         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
2824         Likewise.
2825         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
2826         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
2827         bsi_after_labels, bsi_last): Likewise.
2828         * tree-ssa-live.c (var_union, change_partition_var,
2829         create_ssa_var_map, calculate_live_on_entry, root_var_init,
2830         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
2831         Likewise.
2832         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
2833         tpa_find_tree): Likewise.
2834         (register_ssa_partition_check): Declare.
2835         (register_ssa_partition): use it.
2836         * tree-ssa-live.c: Include errors.h.
2837         (register_ssa_partition_check): New.
2838         * tree-ssa-operands.c: Include errors.h.
2839         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
2840
2841 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
2842             Catherine Moore  <clm@redhat.com>
2843
2844         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
2845         (FRV_CPU_FR405): New processor enums.
2846         (frv_issue_rate, frv_acc_group): Declare.
2847         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
2848         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
2849         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
2850         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
2851         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
2852         handled by CPP_SPEC.
2853         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
2854         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
2855         (ACC_MASK): New macro.
2856         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
2857         (TARGET_MEDIA_FR450): New macro.
2858         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
2859         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
2860         (LABEL_ALIGN_AFTER_BARRIER): Define.
2861         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
2862         (IACC_FIRST, IACC_LAST): New pair of SPRs.
2863         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
2864         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
2865         (REGISTER_NAMES): Add entries for new registers.
2866         (REG_CLASS_CONTENTS): Update for new register ranges.
2867         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
2868         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
2869         (PACKING_FLAG_USED_P): Delete.
2870         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
2871         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
2872         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
2873         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
2874         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
2875         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
2876         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
2877         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
2878         (CPU_UNITS_QUERY): Define to 1.
2879         * config/frv/frv.c: Include gt-frv.h
2880         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
2881         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
2882         (frv_insn_group): New enumeration.
2883         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
2884         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
2885         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
2886         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
2887         gap left by REGSTATE_LIVE.
2888         (regstate_t): New typedef.
2889         (TARGET_MACHINE_DEPENDENT_REORG): Define.
2890         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
2891         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
2892         Initialize frv_unit_codes[] and frv_type_to_unit[].
2893         (frv_conditional_register_usage): Remove redundant fixing of
2894         accumulator registers.
2895         (frv_insn_packing_flag): Update specification.
2896         (frv_function_prologue): Don't set frv_insn_packing_flag here.
2897         Zero out frv_nops[].
2898         (frv_expand_epilogue): Remove comments about the no-longer-present
2899         SIBCALL_P argument.
2900         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
2901         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
2902         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
2903         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
2904         packing is disabled and if INSN can only issue to M1.
2905         (call_operand): Check TARGET_LONG_CALLS.
2906         (acc_operand, even_acc_operand, quad_acc_operand)
2907         (accg_operand): Simplify.  Don't accept pseudo registers.
2908         (output_move_single): Handle SPR<-zero moves.
2909         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
2910         (frv_registers_update, frv_registers_used_p): Delete.
2911         (frv_registers_set_p): Delete.
2912         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
2913         (frv_issues_to_branch_unit_p): New function.
2914         (frv_packet): New structure.
2915         (frv_cond_flags, frv_regstate_conflict_p): New functions.
2916         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
2917         (frv_registers_update_1, frv_registers_update): New functions.
2918         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
2919         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
2920         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
2921         (frv_sort_insn_group, frv_reorder_packet): New functions.
2922         (frv_pack_insns): Use frv_reorder_packet.
2923         (frv_packet_address): New variable.
2924         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
2925         (frv_register_nop, frv_reorg): New functions.
2926         (bdesc_1arg): Add __SCUTSS.
2927         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
2928         __SUBSS, __SLASS and __SCAN.
2929         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
2930         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
2931         (frv_init_builtins): Register the above builtins.
2932         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
2933         registers.  Turn the referenced accumulators into global registers.
2934         (frv_read_iacc_argument): New function.
2935         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
2936         (frv_split_iacc_move): New function.
2937         (frv_expand_builtin): Handle the new builtins.
2938         * config/frv/frv.md: Replace old schedulers with new order-independent
2939         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
2940         packing algorithm.
2941         (cpu): Add fr550, fr450 and fr405.
2942         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
2943         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
2944         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
2945         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
2946         (fnop, mnop): New patterns.
2947         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
2948         New constants.
2949         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
2950         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
2951         registers.
2952         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
2953         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
2954         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
2955         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
2956         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
2957         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
2958         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
2959         (frv_prefetch0, frv_prefetch): New patterns.
2960         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
2961         -mcpu=simple.  Add -mcpu=fr550.
2962         (MULTILIB_DIRNAMES): Update accordingly.
2963         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
2964         -mcpu=fr450.
2965         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
2966         -mlong-calls and -malign-labels options for FR-V.
2967
2968 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
2969
2970         PR c/8420
2971         * c-tree.h (struct c_declspecs): New.
2972         (struct c_declarator, struct c_type_name, struct c_parm): Update
2973         element types.
2974         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
2975         start_function, start_decl, build_c_parm,
2976         make_pointer_declarator): Update prototypes.
2977         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
2978         declspecs_add_scspec, declspecs_add_attrs): New.
2979         (split_specs_attrs): Remove.
2980         * c-parse.in (%union): Add dsptype.
2981         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
2982         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
2983         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
2984         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
2985         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
2986         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
2987         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
2988         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
2989         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
2990         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
2991         maybe_type_quals_attrs): Change to dsptype.
2992         (struct c_declspec_stack): New.
2993         (current_declspecs, declspec_stack): Change type.
2994         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
2995         structures.
2996         (extdefs): Likewise.
2997         (setspecs): Likewise.
2998         (fndef): Use current_declspecs for empty declspecs list.
2999         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
3000         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
3001         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
3002         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
3003         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
3004         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
3005         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
3006         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
3007         structures and helper functions.  Update comments.
3008         (typespec_nonattr): Correct comment.
3009         (maybe_type_quals_attrs, typename): Update to new structures.
3010         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
3011         shadow_tag, shadow_tag_warned, start_function, start_decl,
3012         build_c_parm, make_pointer_declarator,
3013         set_array_declarator_inner, groktypename): Update to new
3014         structures.
3015         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
3016         declspecs_add_scspec, declspecs_add_attrs): New.
3017         (split_specs_attrs): Remove.
3018         (shadow_tag_warned): Make warning for useless type names a
3019         pedwarn.  Give hard error for long, short, signed, unsigned or
3020         _Complex used with struct, union or enum in empty declaration.
3021         Make found_tag a bool.
3022         (grokdeclarator): Remove checks now done at parse time.
3023
3024 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
3025
3026         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
3027         c_declarator, struct c_type_name, struct c_parm): New.
3028         (build_array_declarator, set_array_declarator_inner,
3029         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
3030         start_function, start_decl, build_c_parm, build_attrs_declarator,
3031         build_function_declarator, make_pointer_declarator, c_cast_expr,
3032         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
3033         (build_id_declarator): New.
3034         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
3035         structures.
3036         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
3037         ARG_INFO_OTHERS): Remove.
3038         (build_id_declarator): New.
3039         (build_array_declarator, set_array_declarator_inner, groktypename,
3040         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
3041         grokfield, start_function, store_parm_decls_newstyle,
3042         store_parm_decls_oldstyle, store_parm_decls,
3043         build_c_parm, build_attrs_declarator, build_function_declarator,
3044         make_pointer_declarator, grokdeclarator): Update to new
3045         structures.
3046         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
3047         parmtype.
3048         (declarator, notype_declarator, after_type_declarator,
3049         parm_declarator, parm_declarator_starttypename,
3050         parm_declarator_nostarttypename, array_declarator, typename,
3051         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
3052         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
3053         parmlist_1, parmlist_2, parmlist_or_identifiers,
3054         parmlist_or_identifiers_1): Use these types.
3055         (primary, after_type_declarator, parm_declarator_starttypename,
3056         notype_declarator, component_decl, component_declarator,
3057         component_notype_declarator, typename, absdcl,
3058         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
3059         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
3060
3061 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
3062
3063         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
3064         in_typeof, record_maybe_used_decl, pop_maybe_used,
3065         c_expr_sizeof_expr, c_expr_sizeof_type): New.
3066         * c-decl.c (parser_obstack): New.
3067         (c_init_decl_processing): Initialize parser_obstack.
3068         (c_write_global_declarations_1): Check for used but undefined
3069         static functions.
3070         * c-parse.in (%union): Add otype.
3071         (save_obstack_position): New.
3072         (extdefs): Use it.
3073         (unary_expr): Update in_sizeof and in_alignof.  Use
3074         c_expr_sizeof_expr and c_expr_sizeof_type.
3075         (sizeof): Update in_sizeof.
3076         (alignof): Update in_alignof.
3077         (typeof): Update in_typeof.
3078         (typespec_nonreserved_nonattr): Call pop_maybe_used.
3079         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
3080         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
3081         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
3082         (build_external_ref): Set C_DECL_USED or call
3083         record_maybe_used_decl if appropriate.
3084         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
3085
3086 2004-09-08  Eric Christopher  <echristo@redhat.com>
3087
3088         * builtins.c: Fix prototype for fold_builtin_atan.
3089
3090 2004-09-08  Eric Christopher  <echristo@redhat.com>
3091
3092         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
3093         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
3094         fold_builtin_atan): New functions. Migrate function bodies...
3095         (fold_builtin_1): ... from here.
3096
3097 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
3098
3099         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
3100         save_size.
3101
3102 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
3103
3104         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
3105         * config/rs6000/power5.md (power5-lmul): Same.
3106
3107 2004-09-08  Richard Henderson  <rth@redhat.com>
3108
3109         PR rtl-opt/17186
3110         * function.c (expand_function_end): Have fall-off-the-end
3111         return path jump around return register setup.
3112
3113 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
3114
3115         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
3116         (output_return): Do not test for the presence of the 'unimp' insn.
3117         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
3118         as predicates instead of custom ones.  Return raw strings when
3119         possible.
3120         (output_sibcall): Likewise.  Concatenate strings.
3121         (output_ubranch): Remove kludge for TurboSPARC.
3122         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
3123         (output_v9branch): Likewise.
3124         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
3125         <#>: Set sparc_indent_opcode if the delay slot is filled.
3126         <(>: Likewise.
3127         <)>: New operand to emit the displacement from the saved PC on return.
3128         <@>: Remove.
3129         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
3130         (ASM_OUTPUT_OPCODE): New macro.
3131         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
3132         * config/sparc/sparc.md (normal_branch, inverted_branch,
3133         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
3134         inverted_fpe_branch): Adjust call to output_cbranch.
3135         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
3136         call to output_v9branch.
3137         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
3138         (output_v9branch): Likewise.
3139
3140 2004-09-08  Devang Patel  <dpatel@apple.com>
3141
3142         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
3143         -segs_read_only_addr and -segs_read_write_addr.
3144         (WORD_SWITCH_TAKES_ARG): Same.
3145         (LINK_SPEC): Same.
3146         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
3147         -segs_read_write_addr.
3148
3149 2004-09-08  Richard Henderson  <rth@redhat.com>
3150
3151         * function.c (reference_callee_copied): New.
3152         (assign_parm_setup_reg): Use it.
3153         * calls.c (initialize_argument_information): Likewise.
3154         (emit_library_call_value_1): Likewise.
3155         * function.h (reference_callee_copied): Declare.
3156
3157         * target.h (struct gcc_target): Add callee_copies.
3158         * target-def.h (TARGET_CALLEE_COPIES): New.
3159         (TARGET_PASS_BY_REFERENCE): Update default.
3160         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3161         * targhooks.c (hook_callee_copies_named): New.
3162         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
3163         hook_pass_by_reference_false.
3164         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
3165         * targhooks.h: Update decls.
3166         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
3167         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3168         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
3169         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
3170         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3171         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
3172         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3173         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
3174         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3175         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
3176         (mips_callee_copies): New.
3177         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3178         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
3179         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3180         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
3181         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3182         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
3183         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3184         * config/sh/sh.c (sh_callee_copies): New.
3185         (TARGET_CALLEE_COPIES): New.
3186         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3187         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
3188         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
3189         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
3190         for FUNCTION_ARG_CALLEE_COPIES.
3191         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
3192
3193 2004-09-08  Devang Patel  <dpatel@apple.com>
3194
3195         * tree-if-conv.c (find_phi_replacement_condition): Return true
3196         edge block.
3197         (replace_phi_with_cond_modify_expr): Select conditional expr args
3198         based on true edge basic block.
3199
3200 2004-09-08  Jan Hubicka  <jh@suse.cz>
3201
3202         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
3203         variables being alias set.
3204
3205 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
3206
3207         * final.c (shorten_branches, final, get_insn_template,
3208         output_alternate_entry_point, final_scan_insn, alter_subreg,
3209         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
3210         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
3211         * fix-header.c (lookup_std_proto): Likewise.
3212         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
3213         verify_local_live_at_start, update_life_info, mark_reg,
3214         calculate_global_regs_live, allocate_reg_life_data,
3215         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
3216         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
3217         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
3218         * fold-const.c (force_fit_type, div_and_round_double,
3219         may_negate_without_overflow_p, int_const_binop, const_binop,
3220         size_binop, size_diffop, fold_convert_const, fold_convert,
3221         invert_tree_comparison, swap_tree_comparison,
3222         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
3223         range_binop, make_range, fold_cond_expr_with_comparison,
3224         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
3225         fold_abs_const, fold_not_const, fold_relational_const, round_up,
3226         round_down): Likewise.
3227         * function.c (find_function_data, assign_stack_temp_for_type,
3228         instantiate_virtual_regs_lossage, aggregate_value_p,
3229         assign_parm_find_entry_rtl, assign_parm_setup_block,
3230         expand_function_start, expand_function_end, keep_stack_depressed,
3231         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
3232
3233 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
3234
3235         * Makefile.in (tree-loop-linear.o): Added.
3236         (OBJS-common): Add tree-loop-linear.o
3237         * common.opt: New flag, ftree-loop-linear.
3238         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
3239         * tree-flow.h: Add prototype for linear_transform_loops.
3240         * tree-optimize.c: Add linear transform after vectorization.
3241         * tree-pass.h: Add struct pass_linear_transform.
3242         * tree-ssa-loop.c: Add pass_linear_transform.
3243         * tree-loop-linear.c: New file.
3244         * lambda-code.c: gcc_assertify.
3245         (gcc_loop_to_lambda_loop): Handle all exit tests.
3246         Handle case where we have (invariant >= induction var).
3247         (find_induction_var_from_exit_cond): Ditto.
3248
3249 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
3250
3251         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
3252         memory tag is call clobbered, so are its aliases.
3253         (group_aliases): When two memory tags being grouped, if one is
3254         call clobbered, so are the other and its aliases.
3255         (add_may_alias): Remove call-clobbering stuff.
3256         (replace_may_alias): Likewise.
3257         (merge_pointed_to_info): Merge pt_global_mem
3258
3259 2004-09-08  Jan Hubicka  <jh@suse.cz>
3260
3261         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
3262         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
3263         (cgraph_expand_function): Remove stale cgraph edges of currently
3264         compiled function; fix non-unit-at-a-time code copying function
3265         node for later reuse.
3266
3267 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
3268
3269         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
3270         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
3271         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
3272         (vec_gc_free, vec_heap_free): New.
3273         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
3274         (DEF_VEC_P): Add allocator argument. Adjust.
3275         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
3276         (DEF_VEC_O): Add allocator argument. Adjust.
3277         (VEC(free)): New.
3278
3279         * tree.h (tree): Define a GC'd vector.
3280         * lamba-code.c (lambda_loop): Likewise.
3281         * value-prof.h (histogram_value): Likewise.
3282
3283 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
3284
3285         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
3286         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
3287         gen_lowpart_common, gen_highpart, gen_highpart_mode,
3288         subreg_highpart_offset, operand_subword, operand_subword_force,
3289         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
3290         set_mem_alias_set, change_address_1, verify_rtx_sharing,
3291         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
3292         try_split, add_insn_after, add_insn_before, remove_insn,
3293         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
3294         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
3295         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
3296         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
3297         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
3298         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
3299         record_path_before_1, check_path_after_1, check_path_after): Likewise.
3300         * except.c (gen_eh_region, resolve_one_fixup_region,
3301         remove_unreachable_regions, convert_from_eh_region_ranges_1,
3302         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
3303         connect_post_landing_pads, sjlj_emit_function_exit,
3304         remove_exception_handler_label, remove_eh_handler,
3305         reachable_next_level, collect_one_action_chain,
3306         output_function_exception_table): Likewise.
3307         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
3308         optimize_save_area_alloca, allocate_dynamic_stack_space,
3309         probe_stack_range, hard_function_value): Likewise.
3310         * expmed.c (mode_for_extraction, store_bit_field,
3311         store_fixed_bit_field, extract_bit_field, expand_shift,
3312         expand_mult_const, expand_mult, choose_multiplier,
3313         expand_mult_highpart, expand_divmod, emit_store_flag,
3314         do_cmp_and_jump): Likewise.
3315         * expr.c (convert_move, convert_modes, move_by_pieces,
3316         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
3317         move_block_from_reg, gen_group_rtx, emit_group_load,
3318         emit_group_move, emit_group_store, use_reg, use_regs,
3319         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
3320         emit_move_insn, emit_move_insn_1, emit_push_insn,
3321         expand_assignment, store_expr, count_type_elements,
3322         store_constructor, store_field, safe_from_p, expand_var,
3323         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
3324
3325 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
3326
3327         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
3328         gcc_assert and gcc_unreachable.
3329         * ddg.c (create_ddg_dependence, add_deps_for_def,
3330         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
3331         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
3332         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
3333         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
3334         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
3335         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
3336         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
3337         dataflow_set_copy, hybrid_search, diagnostic.c,
3338         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
3339         * dojump.c (do_jump): Likewise.
3340         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
3341         compute_dom_fast_query, calculate_dominance_info,
3342         free_dominance_info, get_immediate_dominator,
3343         set_immediate_dominator, get_dominated_by,
3344         redirect_immediate_dominators, nearest_common_dominator,
3345         dominated_by_p, verify_dominators, recount_dominator,
3346         iterate_fix_dominators, add_to_dominance_info,
3347         delete_from_dominance_info): Likewise.
3348         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
3349         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
3350         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
3351         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
3352         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
3353         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
3354         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
3355         output_call_frame_info, output_loc_operands, build_cfa_loc,
3356         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
3357         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
3358         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
3359         splice_child_die, attr_checksum, same_dw_val_p,
3360         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
3361         unmark_dies, value_format, output_loc_list, output_die,
3362         output_pubnames, output_aranges, base_type_die, is_base_type,
3363         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
3364         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
3365         field_byte_offset, add_data_member_location_attribute,
3366         add_const_value_attribute, rtl_for_decl_location,
3367         add_location_or_const_value_attribute, add_byte_size_attribute,
3368         add_bit_offset_attribute, add_bit_size_attribute,
3369         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
3370         decl_start_label, gen_formal_parameter_die,
3371         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
3372         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
3373         force_decl_die, force_type_die, gen_decl_die,
3374         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
3375         dwarf2out_finish): Likewise.
3376
3377 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
3378
3379         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
3380         * builtins.c: Include tree-mudflap.h.
3381
3382 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
3383
3384         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
3385         force operand 0.0 into register in XFmode. Also do not force
3386         operand 0.0 into register if !TARGET_CMOVE.
3387         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
3388         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
3389         implement ftst x87 instruction.
3390         (*fp_jcc_7): New insn pattern. Change corresponding split
3391         pattern to handle "general_operand" instead of
3392         "nonimmediate_operand".
3393
3394 2004-09-08  Ben Elliston  <bje@au.ibm.com>
3395
3396         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
3397
3398 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
3399
3400         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
3401         generated from standard va_arg expansion.
3402         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
3403         marked nodes.
3404         (mf_varname_tree, mf_file_function_line_tree): Add some support
3405         for column numbers if compiled with USE_MAPPED_LOCATION.
3406
3407 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
3408
3409         * c-decl.c (groktypename_in_parm_context): Remove function.
3410         * c-tree.h (groktypename_in_parm_context): Remove prototype.
3411
3412 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
3413
3414         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
3415         * c-parse.in: Include c-common.h instead of objc-act.h.
3416         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
3417         myparms, myparm): Remove %type declarations.
3418         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
3419         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
3420         declarations.
3421         (objc_inherit_code, objc_public_flag): Remove.
3422         (typespec_nonreserved_nonattr): Call
3423         objc_get_protocol_qualified_type() instead of get_static_reference()
3424         and get_protocol_reference().
3425         (stmt_nocomp): Call grokparm() on @catch parameter.
3426         (objcdef): Move semantic action to objc_finish_implementation().
3427         (classdef): Move semantic action to objc_start_class_interface(),
3428         objc_continue_interface(), objc_finish_interface(),
3429         objc_start_class_implementation(), objc_continue_implementation(),
3430         objc_start_category_interface() and
3431         objc_start_category_implementation().
3432         (protocoldef): Move semantic actions to objc_start_protocol() and
3433         objc_finish_interface().
3434         (ivar_decl_list): Remove nonterminal.
3435         (visibility_spec): Move semantic actions to objc_set_visibility().
3436         (ivar_decls): Remove assignment to $$.
3437         (ivar_decl): Rephrase in terms of component_decl; call
3438         objc_add_instance_variable().
3439         (ivars, ivar_declarator): Remove nonterminals.
3440         (opt_semi): New nonterminal.
3441         (methodtype): Remove semantic actions.
3442         (methoddef): Move semantic actions to objc_set_method_type(),
3443         objc_start_method_definition() and objc_finish_method_definition().
3444         (methodproto): Move semantic actions to objc_set_method_type() and
3445         objc_add_method_declaration().
3446         (methoddecl): Use objc_typename instead of typename; move semantic
3447         actions to objc_build_method_signature().
3448         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
3449         (optparmlist): Express in terms of optparms and optellipsis.
3450         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
3451         nonterminals.
3452         (keyworddecl): Use objc_typename instead of typename.
3453         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
3454         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
3455
3456 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
3457
3458         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
3459         (MD_FALLBACK_FRAME_STATE_FOR): Update.
3460         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
3461         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
3462         (MD_FROB_UPDATE_CONTEXT): Remove default.
3463         (uw_update_context_1): Instead #ifdef invocation.
3464         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
3465         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
3466         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
3467         (MD_UNWIND_SUPPORT): Undefine this instead.
3468         * config/i386/gnu.h: Likewise.
3469         * config/alpha/linux-unwind.h: New file, macro converted to
3470         function, extracted from..
3471         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
3472         (MD_UNWIND_SUPPORT): Define.
3473         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
3474         * config/i386/linux-unwind.h, config/i386/linux.h,
3475         config/i386/linux64.h: Likewise.
3476         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
3477         MD_HANDLE_UNWABI too.
3478         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
3479         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
3480         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
3481         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
3482         * config/sparc/linux-unwind.h, config/sparc/linux.h,
3483         config/sparc/linux64.h: Likewise.
3484         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
3485         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
3486         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
3487         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
3488         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
3489
3490 2004-09-07  Jan Hubicka  <jh@suse.cz>
3491
3492         * cse.c (fold_rtx):  Avoid building of
3493         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
3494
3495         * tree-ssa-pre.c (grand_bitmap_obstack): New.
3496         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
3497         (init_pre): Initialize obstack.
3498         (fini_pre): Free obstack.
3499
3500 2004-09-07  David Daney  <ddaney@avtrex.com>
3501
3502         * config.gcc: Added support for --with-divide=[breaks|traps] for
3503         mips targets.
3504         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
3505         (TARGET_DIVIDE_TRAPS): New macro.
3506         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
3507         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
3508         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
3509         GENERATE_DIVIDE_TRAPS.
3510         (mips_output_division): Emit conditional trap if
3511         GENERATE_DIVIDE_TRAPS is set.
3512         * doc/install.texi: Document --with-divide.
3513         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
3514
3515 2004-09-07  Caroline Tice  <ctice@apple.com>
3516
3517         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
3518         EDGE_CROSSING, to flags test case.
3519
3520 2004-09-07  Jan Hubicka  <jh@suse.cz>
3521
3522         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
3523         class too.
3524
3525 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
3526
3527         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
3528         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
3529         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
3530         or gcc_unreachable.
3531         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
3532         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
3533         alloc_aux_for_edges, free_aux_for_edges): Likewise.
3534         * cfgcleanup.c (try_forward_edges,
3535         merge_blocks_move_predecessor_nojumps,
3536         merge_blocks_move_successor_nojumps): Likewise.
3537         * cfgexpand.c (expand_gimple_cond_expr,
3538         expand_gimple_tailcall): Likewise.
3539         * cfghooks.c (duplicate_block): Likewise.
3540         * cfglayout.c (record_effective_endpoints,
3541         insn_locators_initialize, change_scope, fixup_reorder_chain,
3542         verify_insn_chain, fixup_fallthru_exit_predecessor,
3543         duplicate_insn_chain, cfg_layout_finalize): Likewise.
3544         * cfgloopanal.c (check_irred): Likewise.
3545         * cfgloop.c (superloop_at_depth, flow_loops_free,
3546         flow_loop_entry_edges_find, flow_loops_find,
3547         flow_loop_outside_edge_p, get_loop_body,
3548         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
3549         get_loop_exit_edges, num_loop_branches, cancel_loop,
3550         verify_loop_structure): Likewise.
3551         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
3552         duplicate_loop_to_header_edge, create_preheader,
3553         create_loop_notes): Likewise.
3554         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
3555         edirect_branch_edge, force_nonfallthru_and_redirect,
3556         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
3557         commit_edge_insertions, commit_edge_insertions_watch_calls,
3558         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
3559         cfg_layout_redirect_edge_and_branch_force,
3560         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
3561         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
3562         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
3563         cgraph_varpool_node): Likewise.
3564         * cgraphunit.c (cgraph_finalize_function,
3565         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
3566         cgraph_expand_function, cgraph_remove_unreachable_nodes,
3567         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3568         cgraph_mark_inline, cgraph_expand_all_functions,
3569         cgraph_build_static_cdtor): Likewise.
3570         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
3571         simplify_logical, distribute_notes, insn_cuid): Likewise.
3572         * conflict.c (conflict_graph_add, print_conflict): Likewise.
3573         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
3574         coverage_checksum_string): Likewise.
3575         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
3576         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
3577         cse_cc_succs, cse_condition_code_reg): Likewise.
3578         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
3579         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
3580         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
3581         cselib_record_set): Likewise.
3582
3583 2004-09-07  Jan Hubicka  <jh@suse.cz>
3584
3585         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
3586
3587 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
3588
3589         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
3590         fold_convert.
3591         (fold_builtin_strpbrk): Likewise.
3592         * expr.c (array_ref_low_bound): Likewise.
3593         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
3594         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
3595         * tree-sra.c (generate_element_zero): Likewise.
3596         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
3597         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
3598         add_old_iv_candidates, add_iv_candidates): Likewise.
3599         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
3600
3601 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
3602
3603         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
3604         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
3605         c_expand_expr, boolean_increment, nonnull_check_p,
3606         check_function_arguments_recurse, fold_offsetof_1): Likewise.
3607         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
3608         builtin_define_type_max): Likewise.
3609         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
3610         implicit_decl_warning, builtin_function, build_compound_literal,
3611         complete_array_type, grokdeclarator, get_parm_info,
3612         start_function, store_parm_decls_oldstyle,
3613         c_write_global_declarations): Likewise.
3614         * c-format.c (get_constant, decode_format_attr,
3615         maybe_read_dollar_number, get_flag_spec, check_format_arg,
3616         check_format_types, format_type_warning,
3617         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
3618         init_dynamic_diag_info, handle_format_attribute): Likewise.
3619         * c-gimplify.c (push_context, pop_context, finish_bc_block):
3620         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
3621         * c-objc-common.c (c_tree_printer): Likewise.
3622         * c-pch.c (pch_init): Likewise.
3623         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
3624         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
3625         * c-typeck.c (c_incomplete_type_error, composite_type,
3626         common_pointer_type, common_type, same_translation_unit_p,
3627         tagged_types_tu_compatible_p, finish_init, pop_init_level,
3628         set_designator, set_nonincremental_init_from_string,
3629         process_init_element, c_finish_if_stmt): Likewise.
3630         * caller-save.c (init_caller_save, save_call_clobbered_regs,
3631         insert_restore, insert_save, insert_one_insn): Likewise.
3632         * calls.c (emit_call_1, compute_argument_block_size,
3633         precompute_arguments, expand_call, emit_library_call_value_1,
3634         store_one_arg): Likewise.
3635
3636 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
3637
3638         * configure.ac (enable-checking): Add release option. Reorganize
3639         to avoid repetition.
3640         * configure: Rebuilt.
3641         * doc/install.texi (enable-checking): Amend documentation.
3642
3643 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3644
3645         PR bootstrap/17313
3646         * Makefile.in (specs.ready): Depend on cc1$(exeext).
3647
3648 2004-09-06  James E Wilson  <wilson@specifixinc.com>
3649
3650         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
3651         movdf_hardfloat_32bit): Split fG into two alternatives.
3652         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
3653
3654         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
3655
3656 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3657
3658         * final.c (output_in_slot): Delete.
3659         (final_scan_insn): Revert 2004-09-03 change.
3660         (output_asm_insn): Likewise.
3661         * config/sparc/sparc.c (output_return): Likewise.
3662         (output_sibcall): Likewise.
3663
3664 2004-09-06  Jan Hubicka  <jh@suse.cz>
3665
3666         * loop.c (loop_dump_aux): Do not print RTL when not available.
3667         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
3668         frontend specific type nodes.
3669         (produce_memory_decl_rtl): Break out from ...
3670         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
3671         (get_computation_at): Avoid random tree sharing.
3672         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
3673
3674 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
3675
3676         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
3677         unnecessary commands.
3678
3679 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
3680
3681         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
3682         (bitmap.o): Likewise.
3683
3684 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
3685
3686         Unify the management of RTL and tree-level dump files.
3687
3688         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
3689         Don't print function name to the dump file, the pass manager
3690         would do this for us. Add code from the top of
3691         rest_of_compilation, up to the initial RTL dump.
3692         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
3693         close the DFI_sibling dump file.
3694         (rest_of_compilation): Don't do that here.  Remove code up to the
3695         initial RTL dump.
3696         (init_optimization_passes): Remove.
3697         (pass_rest_of_compilation): Change pass name to NULL.
3698         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
3699         Do not call init_optimization_passes.
3700         * toplev.h (init_optimization_passes): Remove.
3701
3702         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3703         finish_graph_dump_file): Remove SUFFIX parameter.
3704         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
3705         finish_graph_dump_file): Likewise.
3706
3707         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
3708         * cfgexpand.c (pass_expand): Adjust.
3709         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
3710         * passes.c (pass_rest_of_compilation): Adjust.
3711         * predict.c (pass_profile): Adjust.
3712         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
3713         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
3714         pass_split_crit_edges, pass_warn_function_return): Adjust.
3715         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
3716         * tree-dfa.c (pass_referenced_vars): Adjust.
3717         * tree-eh.c (pass_lower_eh): Adjust.
3718         * tree-if-conv.c (pass_build_ssa): Adjust.
3719         * tree-into-ssa.c (pass_build_ssa): Adjust.
3720         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
3721         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
3722         * tree-nrv.c (pass_nrv): Adjust.
3723         * tree-optimize.c (pass_gimple, pass_all_optimizations,
3724         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
3725         pass_init_datastructures): Adjust.
3726         * tree-outof-ssa.c (pass_del_ssa): Adjust.
3727         * tree-profile.c (pass_tree_profile): Adjust.
3728         * tree-sra.c (pass_sra): Adjust.
3729         * tree-ssa-alias.c (pass_may_alias): Adjust.
3730         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
3731         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
3732         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
3733         * tree-ssa-dom.c (pass_dominator): Adjust.
3734         * tree-ssa-dse.c (pass_dse): Adjust.
3735         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
3736         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
3737         * tree-ssa-loop-ch.c (pass_ch): Adjust.
3738         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
3739         pass_loop_done, pass_complete_unroll, pass_iv_canon,
3740         pass_iv_optimize, pass_vectorize): Adjust.
3741         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
3742         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
3743         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
3744         pass_late_warn_uninnitialized): Adjust.
3745         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
3746
3747         * Makefile.in (tree-dump.o): Add new dependencies.
3748         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
3749         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
3750         Likewise.
3751         * toplev.c (dump_file_name): New.
3752         * tree-dump.c (dump_enable_all): Add LETTER parameter.
3753         (struct dump_file_info): Add NUM and LETTER fields.
3754         (dump_files): Adjust and add RTL dump files.
3755         (dump_register): Add NUM and LETTER fields.
3756         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
3757         (dump_begin): Use get_dump_file_name.
3758         (dump_switch_p_1): Adjust call to dump_enable_all.
3759         * tree-dump.h (dump_register): Adjust prototype.
3760         * tree-optimize.c (register_one_dump_file): Take dump file index.
3761         Support flags for RTL dumps.
3762         (register_dump_files): Fill in NUM field of struct dump_file_info.
3763         Track properties both when the gate is executed and when it is not.
3764         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
3765         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
3766         dumps of RTL.
3767         * tree-pass.h (dump_file_name): New.
3768         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
3769         New.
3770
3771         * Makefile.in (passes.o): Add new dependencies.
3772         * passes.c (struct dump_file_info, enum dump_file_index,
3773         dump_file_tbl, init_optimization_passes): Remove.
3774         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
3775         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
3776         dump_enabled_p.
3777         (finish_optimization_passes): Update finish_graph_dump_file loop.
3778         (enable_rtl_dump_file): Remove.
3779         * tree-dump.c (dump_files): Adjust and add RTL dump files.
3780         (enable_rtl_dump_file): Add here.
3781         * tree.h (enum tree_dump_index): Add RTL dump file indices.
3782         * doc/invoke.texi (Debugging options): Document new RTL debugging
3783         options.  Update.
3784
3785 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
3786
3787         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
3788         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
3789         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
3790         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
3791         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
3792         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
3793         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
3794         vec.h: Fix comment formatting.
3795
3796 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
3797
3798         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
3799         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
3800         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
3801         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
3802         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
3803         tree-ssa-loop-niter.c, tree-ssa-operands.c,
3804         tree-ssa-operands.h, tree-ssa-propagate.c,
3805         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
3806         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
3807
3808 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
3809
3810         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
3811         vectorizer is enabled.
3812
3813 2004-09-05  Andreas Jaeger  <aj@suse.de>
3814
3815         * tree-if-conv.c: Spell check comments and clean up whitespace.
3816
3817 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3818
3819         * tree-ssa-loop-ivopts.c: New file.
3820         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
3821         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
3822         target_pres_cost, target_spill_cost): Declare.
3823         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
3824         spill_cost): Renamed to ...
3825         (target_avail_regs, target_res_regs, target_small_cost,
3826         target_pres_cost, target_spill_cost): ... and exported.
3827         (init_set_costs, global_cost_for_size): Work with renamed variables.
3828         * common.opt (flag_ivopts): New flag.
3829         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
3830         REF_ORIGINAL.
3831         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
3832         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
3833         generating SSA form.
3834         (force_gimple_operand): New function.
3835         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
3836         * tree-cfg.c (stmt_bsi): New function.
3837         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
3838         PARAM_IV_MAX_CONSIDERED_USES): New.
3839         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
3840         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
3841         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
3842         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
3843         * tree-nested.c (build_addr): Export.
3844         * tree-optimize.c (init_tree_optimization_passes): Add
3845         pass_iv_optimize.
3846         * tree-pass.h (pass_iv_optimize): Declare.
3847         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
3848         IMAGPART_EXPR.
3849         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
3850         as a phi node argument.
3851         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
3852         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
3853         functions.
3854         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
3855         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
3856         pass_iv_optimize): New pass.
3857         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
3858         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
3859         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
3860         * tree.h (REF_ORIGINAL): New macro.
3861         (build_int_cst_type, unsigned_type_for, zero_p,
3862         cst_and_fits_in_hwi, build_addr): Declare.
3863         * doc/invoke.texi (-fivopts): Document.
3864         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
3865         PARAM_IV_MAX_CONSIDERED_USES): Document.
3866         * doc/passes.texi: Document induction variable optimizations pass.
3867
3868 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3869
3870         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
3871         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
3872         * c-common.c (c_common_attribute_table): Accept parameters to
3873         sentinel attribute.
3874         (check_function_sentinel, handle_sentinel_attribute): Likewise.
3875         * doc/extend.texi: Update accordingly.
3876
3877 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3878
3879         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
3880         New.
3881         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
3882         attribute.
3883         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
3884         New functions.
3885         (c_common_attribute_table): Add `sentinel' attribute.
3886         (check_function_arguments): Handle `sentinel' attribute.
3887         * doc/extend.texi: Document `sentinel' attribute.
3888
3889 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
3890
3891         * configure: Regenerated.
3892
3893 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3894
3895         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
3896
3897         * tree.c (save_expr): No longer TREE_READONLY.
3898
3899 2004-09-04  Jan Hubicka  <jh@suse.cz>
3900
3901         * passes.c (rest_of_clean_state):  Fix merge conflict made during
3902         commiting the patch.
3903
3904 2004-09-04  Jan Hubicka  <jh@suse.cz>
3905
3906         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
3907
3908 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
3909
3910         * doc/md.texi (shift patterns): New anchor.  Add reference to
3911         TARGET_SHIFT_TRUNCATION_MASK.
3912         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
3913         * target.h (shift_truncation_mask): New target hook.
3914         * targhook.h (default_shift_truncation_mask): Declare.
3915         * targhook.c (default_shift_truncation_mask): Define.
3916         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
3917         (TARGET_INITIALIZER): Include it.
3918         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
3919         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
3920         reject all out-of-range values.  Fix sign-extension code for modes
3921         whose width is smaller than HOST_BITS_PER_WIDE_INT.
3922         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
3923         (expand_superword_shift, expand_subword_shift): Likewise.
3924         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
3925         (expand_binop): Use them to implement double-word shifts.
3926         * config/arm/arm.c (arm_shift_truncation_mask): New function.
3927         (TARGET_SHIFT_TRUNCATION_MASK): Define.
3928
3929 2004-09-04  Jan Hubicka  <jh@suse.cz>
3930
3931         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
3932         (mix): New macro copied from hashtab.c
3933         (iterative_hash_hashval_t, iterative_hash_pointer,
3934         iterative_hash_host_wide_int): New functions based on hashtab.c
3935         implementation.
3936
3937 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
3938
3939         * config/mips/mips.md (mask): New mode attribute.
3940         (zero_extendsidi2): Add memory alternative.
3941         (*zero_extendsidi2_mem): Delete.
3942         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
3943         memory_operand in the TARGET_MIPS16 check.
3944         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
3945         Redefine using :GPR and :SHORT.
3946         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
3947
3948 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
3949
3950         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
3951         using rint_optab.
3952         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
3953         expand_builtin_mathfn.
3954         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
3955         btrunc?f patterns for btrunc_optab. Implement rint_optab using
3956         rint?f patterns.
3957         * optabs.c (init_optabs): Initialize rint_optab.
3958         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
3959         Add new OTI_rint.
3960         (btrunc_optab): Rename macro from trunc_optab.
3961         (rint_optab): Define corresponding macro.
3962
3963         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
3964         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
3965
3966         * config/i386/i386-protos.h (emit_i387_cw_initialization):
3967         Change prototype. Add new int parameter.
3968         * config/i386/i386.c (emit_i387_cw_initialization):
3969         Handle new rounding modes.
3970
3971         * config/i386/i386.h (enum fp_cw_mode): Delete.
3972         (MODE_NEEDED): Handle new rounding modes.
3973         (EMIT_MODE_SET): Change condition to handle new rounding modes.
3974
3975         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
3976         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
3977         represent different rounding modes of frndint insn.
3978         (type): Add frndint type.
3979         (i387, length, memory): Handle this type.
3980         (i387_cw): New attribute definition.
3981         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
3982         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
3983         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
3984         Add "i387_cw" attribute defined to "trunc".
3985         (x86_fnstcw_1): Remove comment.
3986         (*frndintxf2): Rename insn definition to frndintxf2. Move
3987         insn definition near rint?f2 expanders.
3988         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
3989         rintf and rintl built-ins as inline x87 intrinsics.
3990         (frndintxf2_floor): New pattern to implement floor rounding
3991         mode with frndint x87 instruction.
3992         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
3993         floorf and floorl built-ins as inline x87 intrinsics.
3994         (frndintxf2_ceil): New pattern to implement ceil rounding
3995         mode with frndint x87 instruction.
3996         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
3997         ceilf and ceill built-ins as inline x87 intrinsics.
3998         (frndintxf2_trunc): New pattern to implement trunc rounding
3999         mode with frndint x87 instruction.
4000         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
4001         truncf and truncl built-ins as inline x87 intrinsics.
4002         (frndintxf2_mask_pm): New pattern to implement rounding
4003         mode with exceptions with frndint x87 instruction.
4004         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
4005         implement nearbyint, nearbyintf and nearbyintl built-ins as
4006         inline x87 intrinsics.
4007
4008 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
4009
4010         * config/mips/mips.md (SHORT): New mode macro.
4011         (size): New mode attribute.
4012         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
4013         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
4014         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
4015         !ISA_HAS_SEB_SEH.
4016         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
4017         *extend[qh]isi2_hw patterns and extending them to di.
4018         (extendqihi2): Implement as define_insn_and_split that produces
4019         extendqisi2 after reload.
4020
4021 2004-09-03  Devang Patel  <dpatel@apple.com>
4022
4023         * Makefile.in (OBJS-common): Add tree-if-conv.o
4024         (tree-if-conv.o): New rule.
4025         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
4026         (get_loop_body_in_bfs_order): New.
4027         * cfgloop.h (get_loop_body_in_bfs_order): New.
4028         * tree-flow.h (enum move_pos): Move here from ..
4029         * tree-ssa-loop-im.c (enum move_pos): here.
4030         (movement_possibility): Make externally visible.
4031         * tree-optimize.c (init_tree_optimization_passes): New entry for
4032         if conversion pass.
4033         * tree-pass.h (pass_if_conversion): New.
4034         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
4035         * tree-if-conv.c: New file.
4036         * doc/passes.texi: Document tree if-conversion pass.
4037         * doc/tree-ssa.texi: Same.
4038
4039 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
4040
4041         PR target/14925:
4042         Makefile.in (LIB2ADDEHSTATIC): New.
4043         (LIB2ADDEHSHARED): New.
4044         (LIBUNWIND): New.
4045         (LIBUNWINDDEP): New.
4046         (SHLIBUNWIND_LINK): New.
4047         (SHLIBUNWIND_INSTALL): New.
4048         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
4049         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
4050         (clean): Remove libunwind*
4051         (stage1-start): Remove and copy stage1/libunwind*.
4052         (stage2-start): Remove and copy stage2/libunwind*.
4053         (stage3-start): Remove and copy stage3/libunwind*.
4054         (stage4-start): Remove and copy stage4/libunwind*.
4055         (stageprofile-start): Remove and copy stageprofile/libunwind*.
4056         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
4057
4058         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
4059         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
4060         tmake_file if --with-system-libunwind isn't used.
4061
4062         * config/ia64/t-glibc-libunwind: New file.
4063         * config/t-libunwind-elf: Likewise.
4064         * unwind-compat.c: Likewise.
4065         * unwind-compat.h: Likewise.
4066         * unwind-dw2-fde-compat.c: Likewise.
4067
4068         * config/ia64/t-glibc (LIB2ADDEH): Updated.
4069         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
4070
4071         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
4072         aliases if needed.
4073         * unwind-dw2-fde-glibc.c: Likewise.
4074         * unwind-dw2.c: Likewise.
4075
4076         * config/t-libunwind (LIB2ADDEH): Updated.
4077         (LIB2ADDEHSTATIC): New.
4078         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
4079         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
4080
4081         * configure.ac: Change --enable-libunwind-exceptions to
4082         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
4083         * configure: Regenerated.
4084         * config.in: Updated.
4085
4086         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
4087         above and mention --with-system-libunwind.
4088         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
4089         removed in gcc 3.4.3 and later.
4090
4091         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
4092         USE_LIBUNWIND_EXCEPTIONS is defined.
4093
4094         * mklibgcc.in: Support libunwind.
4095
4096 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
4097
4098         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
4099         m_NOCONA.
4100
4101 2004-09-03  Richard Henderson  <rth@redhat.com>
4102
4103         PR middle-end/9997
4104         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
4105         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
4106         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
4107         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
4108         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
4109         resize_stack_vars_conflict, add_stack_var_conflict,
4110         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
4111         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
4112         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
4113         expand_one_static_var, expand_one_hard_reg_var,
4114         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
4115         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
4116         (expand_used_vars): Rewrite.
4117         * Makefile.in (cfgexpand.o): Update dependencies.
4118
4119 2004-09-04  Jan Hubicka  <jh@suse.cz>
4120
4121         * cfg.c (free_edge): Use ggc_free.
4122         (expunge_block): Use ggc_free.
4123         * passes.c (rest_of_clean_state): Free after compilation.
4124         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
4125         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
4126
4127 2004-09-03  James E Wilson  <wilson@specifixinc.com>
4128
4129         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
4130         DECL_EXTERNAL check.
4131
4132 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4133
4134         * final.c (output_in_slot): New global variable.
4135         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
4136         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
4137         'output_in_slot' before invoking output_asm_insn.
4138         (output_asm_insn): Add a space after the tab if 'output_in_slot'
4139         is set.
4140         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
4141         final_scan_insn.
4142         (output_sibcall): Likewise.
4143
4144 2004-09-03  Jan Hubicka  <jh@suse.cz>
4145
4146         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
4147         * tree-ssanames (init_ssanames): Likewise.
4148
4149 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
4150
4151         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
4152         objc_declare_protocols, objc_start_protocol,
4153         objc_start_class_interface, objc_start_category_interface,
4154         objc_continue_interface, objc_finish_interface,
4155         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
4156         objc_start_class_implementation, objc_start_category_implementation,
4157         objc_continue_implementation, objc_finish_implementation,
4158         objc_add_method_declaration, objc_start_method_definition,
4159         objc_finish_method_definition, objc_build_keyword_decl,
4160         objc_build_method_signature, objc_build_encode_expr,
4161         objc_build_protocol_expr, objc_build_selector_expr,
4162         objc_build_message_expr, objc_build_string_object,
4163         objc_get_class_reference, objc_get_protocol_qualified_type,
4164         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
4165
4166 2004-09-03  James E Wilson  <wilson@specifixinc.com>
4167
4168         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
4169
4170         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
4171         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
4172         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
4173         (mips_recip1_<fmt>): Use frdiv1 type.
4174         (mips_recip2_<fmt>): Use frdiv2 type.
4175         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
4176         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
4177         and frsqrt1.
4178         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
4179
4180 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
4181
4182         * reload.c (find_reloads): Swap operand_loc pointers for
4183         find_dummy_reload if we have swapped two operands.
4184
4185 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
4186
4187         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
4188         to get the tablejump-insn before the jump-table label.
4189
4190 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
4191
4192         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
4193         objc_declare_protocols, objc_build_message_expr,
4194         objc_finish_message_expr, objc_build_selector_expr,
4195         objc_build_protocol_expr, objc_build_encode_expr,
4196         objc_build_string_object, objc_get_protocol_qualified_type,
4197         objc_get_class_reference, objc_get_class_ivars,
4198         objc_start_class_interface, objc_start_category_interface,
4199         objc_start_protocol, objc_continue_interface, objc_finish_interface,
4200         objc_start_class_implementation, objc_start_category_implementation,
4201         objc_continue_implementation, objc_finish_implementation,
4202         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
4203         objc_add_method_declaration, objc_start_method_definition,
4204         objc_finish_method_definition, objc_add_instance_variable,
4205         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
4206         objc_finish_try_stmt, objc_begin_catch_clause,
4207         objc_finish_catch_clause, objc_build_finally_clause,
4208         objc_build_synchronized, objc_static_init_needed_p,
4209         objc_generate_static_init_call): New prototypes.
4210
4211 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
4212
4213         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
4214         is only one reg.
4215         (ia64_function_value): Ditto.
4216
4217 2004-09-03  Jan Beulich  <jbeulich@novell.com>
4218
4219         * config.gcc: Resurrect NetWare as a target. Handle special case of
4220         Novell linker to be used (specified through --with-ld=) and threading
4221         model of either Posix (default) or NKS.
4222         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
4223         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
4224         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
4225         * config/i386/netware.c, config/i386/netware.h: New.
4226         * config/i386/nwld.c, config/i386/nwld.h: New.
4227         * config/i386/netware-crt0.c: New.
4228         * config/i386/netware-libgcc.c: New.
4229         * config/i386/netware-libgcc.def: New.
4230         * config/i386/netware-libgcc.exp: New.
4231         * config/i386/t-netware, config/i386/t-nwld: New.
4232         * gthr-nks.h: New.
4233         * doc/install.texi: Document NKS threading model.
4234
4235 2004-09-03  Jan Beulich  <jbeulich@novell.com>
4236
4237         PR c/7054
4238         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
4239         * tree.h (initial_max_fld_align): Declare
4240         * stor-layout.c (initial_max_fld_align): Define and initialize.
4241         (maximum_field_alignment): Initialize to the same value.
4242         * common.opt: Add -fpack-struct= variant of switch.
4243         * opts.c: Handle -fpack-struct= variant of switch.
4244         * c-pragma.c: Change #pragma pack() handling so that it becomes
4245         compatible to other compilers: accept individual 'push' argument,
4246         make final pop restore (command line) default, correct interaction
4247         of push/pop and sole specification of a new alignment (so that the
4248         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
4249         to #pragma pack(push, <n>).
4250         * doc/extend.texi: New node "Structure-Packing Pragmas" under
4251         "Pragmas", describing #pragma pack.
4252         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
4253         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
4254         Document new TARGET_DEFAULT_PACK_STRUCT.
4255
4256 2004-09-03  Devang Patel  <dpatel@apple.com>
4257
4258         * dwarf2out.c (gen_field_die). Equate decl number to die.
4259
4260 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
4261
4262         PR target/15832
4263         * global.c (modify_reg_pav): New function.
4264         (make_accurate_live_analysis): Call the new function.  Move pavin
4265         modification by earlyclobber set into the new function.
4266
4267 2004-09-03  Andreas Schwab  <schwab@suse.de>
4268
4269         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
4270         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
4271         extended.
4272
4273 2004-09-02  Jan Beulich  <jbeulich@novell.com>
4274
4275         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
4276         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
4277         not unwind code specific ones.
4278         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
4279         Remove unwind code specific dependencies.
4280         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
4281         Remove gbl-ctors.h.
4282         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
4283         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
4284         * tsystem.h: Declare memcpy and memset when inhibit_libc.
4285
4286 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
4287
4288         * combine.c (try_combine): Delay modifying of insns which cannot
4289         be easily undone.
4290
4291 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
4292
4293         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
4294         tree-loop-im.
4295         * gcc/tree-ssa-loop.c: Ditto
4296         * gcc/tree-ssa-loop-ivcanon.c: Ditto
4297         * gcc/doc/invoke.texi: Ditto.
4298
4299 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
4300
4301         * c-decl.c (store_parm_decls_newstyle): Make static.
4302         (store_parm_decls_from): New function.
4303         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
4304         (store_parm_decls_from): New prototype.
4305
4306 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
4307
4308         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
4309         HImode with STRICT_ALIGNMENT.
4310
4311 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
4312
4313         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
4314         (TARGET_OS_CPP_BUILTINS): Likewise.
4315         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
4316         TARGET_BPABI_CPP_BUILTINS.
4317
4318 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
4319
4320         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
4321
4322 2004-09-02  Eric Christopher  <echristo@redhat.com>
4323
4324         * builtins.c (expand_builtin_cabs): Delete.
4325         (expand_builtin): If unable to fold the values do a normal
4326         library call for builtin_cab*.
4327         (fold_builtin_cabs): Depend on optimize and optimize_size.
4328         * optabs.c (expand_cmplxdiv_straight): Delete.
4329         (expand_cmplxdiv_wide): Ditto.
4330         (expand_vector_binop): Ditto.
4331         (expand_vector_unop): Ditto.
4332         (expand_complex_abs): Delete.
4333         (expand_binop): Remove calls to above functions.
4334         Remove open coding of complex arithmetic.
4335         (expand_unop): Ditto.
4336         * optabs.h: Remove prototypes.
4337
4338 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
4339
4340         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
4341         * c-tree.h (store_parm_decls_newstyle): New prototype.
4342
4343 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
4344
4345         * config/rs6000/rs6000.c (expand_block_clear): Use vector
4346         instructions if available.
4347         (expand_block_move): Likewise.
4348
4349 2004-09-03  Jan Hubicka  <jh@suse.cz>
4350
4351         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
4352
4353 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
4354
4355         * config/arm/symbian.h (LIB_SPEC): Define to empty.
4356         * config/arm/t-symbian (SHLIB_LC): Likewise.
4357
4358 2004-09-02  Paul Brook  <paul@codesourcery.com>
4359
4360         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
4361
4362 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
4363
4364         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
4365         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
4366         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
4367         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
4368         (mips_issue_rate): Remove unreachable abort.
4369         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
4370         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
4371         (mips_block_move_straight, print_operand_address, mips_file_start)
4372         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
4373         (mips_output_conditional_branch, mips_expand_builtin_direct)
4374         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
4375         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
4376         with gcc_assert.
4377
4378 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
4379
4380         * config/mips/mips.md (*lea_high64): Change split condition to
4381         flow2_completed.  Add a peephole2 to generate a more parallel version.
4382
4383 2004-09-02  Jan Hubicka  <jh@suse.cz>
4384
4385         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
4386         GGC.
4387
4388         * ggc-page.c: include tree-flow.h.
4389         (extra_order_size_table): Add stmt_ann_d.
4390         (STAT_LABEL): Rename from ....
4391         (LABEL): ... this one.
4392         * Makefile.in (ggc-page.o): Add dependency.
4393
4394         * ggc-common.c (ggc_force_collect): New global variable.
4395         (loc_description): Add fields "freed", "collected"
4396         (ptr_hash): New static hash
4397         (ptr_hash_entry): New structure.
4398         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
4399         (ggc_record_overhead): Take ptr argument, record it
4400         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
4401         (cmp_statistics): Imrove sorting.
4402         (dump_ggc_loc_statistics): Output newly collected statistics
4403         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
4404         (ggc_free): Call ggc_free_overhead.
4405         (ggc_collect): Force collection when asked to be forced.
4406         (ggc_collect): Call ggc_prune_overhead_list.
4407         * ggc.h (ggc_force_collect): Declare
4408         (ggc_record_overhead): Update prototype.
4409         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
4410
4411 2004-09-02  James E Wilson  <wilson@specifixinc.com>
4412
4413         * common.opt (ftrapping-math): Default to on.
4414
4415 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
4416
4417         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
4418
4419 2004-09-02  Denis Chertykov  <denisc@overta.ru>
4420
4421         PR target/16884
4422         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
4423         match_scratch.
4424         (*movmemqi_insn): Likewise.
4425         (*movmemhi): Likewise.
4426         (clrmemhi): Likewise.
4427         (*clrmemqi): Likewise.
4428         (*clrmemhi): Likewise.
4429
4430 2004-09-02  Paul Brook  <paul@codesourcery.com>
4431
4432         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
4433         default_use_cxa_atexit=yes.
4434
4435 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
4436
4437         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
4438         (struct kernel_old_ucontext): Delete.
4439         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
4440         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
4441         when IN_LIGGCC2.
4442
4443 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
4444
4445         * toplev.c (process_options): Fix typo.
4446
4447 2004-09-01  Richard Henderson  <rth@redhat.com>
4448
4449         PR middle-end/17258
4450         * calls.c (initialize_argument_information): Tighten pass-through
4451         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
4452         Use build_fold_addr_expr.
4453         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
4454         that assumes ADDR_EXPR allocates stack space.
4455         * fold-const.c (build_fold_addr_expr_with_type): Look through
4456         WITH_SIZE_EXPR.
4457
4458 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
4459
4460         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
4461         * ggc.h (ggc_alloc_rtx): Delete.
4462
4463 2004-09-01  Roger Sayle  <roger@eyesopen.com>
4464
4465         * expmed.c (enum alg_code): Remove long unused enumeration values.
4466         (struct mult_cost): New structure to hold the "score" of a synthetic
4467         multiply sequence, including both a rtx_cost and a latency field.
4468         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
4469         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
4470         (struct algorithm): Change type of cost field to be mult_cost.
4471         (synth_mult): Change type of cost_limit argument to be a
4472         pointer to a mult_cost.  Update all cost comparisons to use the
4473         new mult_cost infrastructure.  For alg_add_factor and
4474         alg_sub_factor operations, latency is lower than the rtx_cost.
4475         (choose_mult_variant):  Update calls to synth_mult.  Perform
4476         cost comparisons using the new mult_cost infrastructure.
4477         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
4478         to optain the total rtx_cost of a synth_mult "algorithm".
4479
4480 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
4481
4482         * config/rs6000/power4.md: Increase store latency to 12.
4483         * config/rs6000/power5.md: Same.
4484
4485 2004-09-01  James E Wilson  <wilson@specifixinc.com>
4486
4487         PR target/14064
4488         * config/avr/avr.c (avr_unique_section): Delete prototype and
4489         definition.
4490         (TARGET_ASM_UNIQUE_SECTION): Delete.
4491
4492 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
4493
4494         * c-parse.in (primary): Call objc_build_message_expr(),
4495         objc_build_selector_expr(), objc_build_protocol_expr(),
4496         objc_build_encode_expr() and objc_build_string_object() instead of
4497         build_message_expr(), build_selector_expr(), build_protocol_expr(),
4498         build_encode_expr() and build_objc_string_object(), respectively.
4499         (component_decl_list2): Call objc_get_class_ivars() instead of
4500         get_class_ivars_from_name().
4501         (keyworddecl): Call objc_build_keyword_decl() instead of
4502         build_keyword_decl().
4503         (receiver): Call objc_get_class_reference() instead of
4504         get_class_reference().
4505         (reswords): Add blank line before @@ifobjc section, for clarity.
4506
4507 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
4508
4509         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
4510         to Altivec vetors.
4511
4512 2004-09-01  Wu Yongwei  <adah@sh163.net>
4513             Danny Smith  <dannysmith@users.sourceforge.net>
4514
4515         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
4516         not Windows 'DWORD'.
4517         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
4518         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
4519         (__gthr_win32_recursive_mutex_init_function): Add prototype for
4520         __GTHREAD_HIDE_WIN32API case..
4521         (__gthr_win32_recursive_mutex_lock): Likewise.
4522         (__gthr_win32_recursive_mutex_trylock): Likewise.
4523         (__gthr_win32_recursive_mutex_unlock): Likewise.
4524         (__gthread_recursive_mutex_init_function); Add definition for
4525         __GTHREAD_HIDE_WIN32API case.
4526         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
4527         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
4528         call to InterlockedDecrement.
4529
4530 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4531
4532         * tree-tailcall.c (find_tail_calls): Also fail is statement has
4533         volatile operands.
4534
4535         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
4536
4537         * doc/c-tree.texi: Document new operands for ARRAY_REF and
4538         COMPONENT_REF.
4539
4540 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4541
4542         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
4543         * common.opt (fspeculative-prefetching): New.
4544         * flags.h (flag_speculative_prefetching_set): Declare.
4545         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
4546         values.
4547         * opts.c (flag_sepculative_prefetching_set): New variable.
4548         (common_handle_option): Handle -fspeculative-prefetching.
4549         * passes.c (rest_of_compilation): Ditto.
4550         * profile.c (instrument_values, compute_value_histograms, branch_prob):
4551         Use vectors instead of arrays.
4552         * toplev.c (process_options): Handle -fspeculative-prefetching.
4553         * rtl-profile.c: Include ggc.h.
4554         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
4555         rtl_gen_one_value_profiler_no_edge_manipulation,
4556         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
4557         argument changed.
4558         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
4559         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
4560         argument changed.
4561         * value-prof.c: Include ggc.h.
4562         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
4563         macros.
4564         (insn_prefetch_values_to_profile, find_mem_reference_1,
4565         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
4566         speculative_prefetching_transform): New.
4567         (value_profile_transformations): Call speculative_prefetching_transform.
4568         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
4569         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
4570         tree_find_values_to_profile, find_values to profile): Use vectors
4571         instead of arrays.
4572         (free_profiled_values): Removed.
4573         * value-prof.h (struct histogram_value): Renamed to
4574         struct histogram_value_t.
4575         (histogram_value, histogram_values): New types.
4576         (find_values_to_profile): Declaration changed.
4577         (free_profiled_values): Removed.
4578         (struct profile_hooks): Type of argument of the hooks changed to
4579         histogram_value.
4580         * doc/invoke.texi (-fspeculative-prefetching): Document.
4581
4582 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4583
4584         PR rtl-optimization/16408
4585         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
4586
4587 2004-09-01  Richard Henderson  <rth@redhat.com>
4588
4589         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
4590         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
4591
4592 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
4593
4594         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
4595
4596 2004-09-01  Mike Stump  <mrs@apple.com>
4597
4598         * config/darwin.c (machopic_symbol_defined_p): In addition to
4599         being SYMBOL_REF_LOCAL_P, a symbol must also be
4600         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
4601         defined in this output file, or translation unit in the case
4602         of IMA not being used.
4603         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
4604         never need .indirect_symbol when indirecting.
4605
4606 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
4607
4608         * Makefile.in (bb-reorder.o): Add several dependencies.
4609
4610 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
4611
4612         * fold-const.c (operand_equal_p): Require equal sign also for
4613         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
4614
4615 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
4616
4617         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
4618         for use in configargs.h.  Put the cname in a separate variable.  Use
4619         that to set target_cpu_default2.
4620
4621 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
4622             Nick Clifton  <nickc@redhat.com>
4623
4624         * config/sh/sh.md ("length"): Increase branch length when
4625         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
4626         constant, 2 byte for aligning the constant.
4627
4628 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
4629
4630         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
4631         CPU.
4632         (arm7tdmi-s): New CPU name.
4633         * arm/arm.c (ARM_CORE): Update for new format.
4634         * arm/arm.h (ARM_CORE): Likewise.
4635         * arm/gentune.sh: Update for extra field.
4636         * config.gcc: Likewise.
4637         * arm/arm-tune.md: Regenerate.
4638         * doc/invoke.texi: Document the real processor names for ARM cpus.
4639
4640 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
4641
4642         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
4643         (floatdidf): New functions.
4644         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
4645         (floatdisf): New functions.
4646         * t-arm-elf: Use them.
4647
4648 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
4649
4650         * c-common.h (lookup_interface): Remove prototype.
4651         (is_class_name): Rename to objc_is_class_name.
4652         (lookup_objc_ivar): Rename to objc_lookup_ivar.
4653         (get_current_scope): Rename to objc_get_current_scope.
4654         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
4655         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
4656         (yylexname): Call objc_is_class_name() instead of is_class_name().
4657         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
4658         instead of lookup_objc_ivar().
4659         * stub-objc.c (lookup_interface): Remove stub.
4660         (is_class_name): Rename to objc_is_class_name.
4661         (lookup_objc_ivar): Rename to objc_lookup_ivar.
4662
4663 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
4664
4665         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
4666         * config/arm/lib1funcs.asm: Do not include supplemental .S files
4667         when compiling for Symbian.
4668         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
4669         (TARGET_OS_CPP_BUILTINS): Likewise.
4670         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
4671
4672 2004-08-31  Stan Shebs  <shebs@apple.com>
4673
4674         * toplev.c (process_options): Ensure debug_hooks is initialized.
4675
4676 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
4677
4678         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
4679         * target.h (cxx): Add export_class_data.
4680         * config/arm/arm.c (arm_cxx_export_class_data): New function.
4681         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
4682         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
4683
4684 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4685
4686         * config/sh/sh.c (output_branch): Check the insn length possibly
4687         in the delayed slot.
4688
4689 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4690
4691         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
4692         blank after ')'.
4693         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
4694
4695         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
4696         (c_sizeof_of_alignof_type): Likewise.
4697         * expr.c (array_ref_element_size): Likewise.
4698         (highest_pow2_factor_for_target): Likewise.
4699         * gimplify.c (canonicalize_addr_expr): Likewise.
4700         (gimplify_compound_lval): Likewise.
4701         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
4702         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
4703         * varasm.c (assemble_variable): Likewise.
4704         (output_constant_def_contents): Alignments are unsigned.
4705
4706 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4707             Jeff Law  <law@redhat.com>
4708
4709         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
4710         gets modified.
4711
4712 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
4713
4714         * hooks.c (hook_bool_void_true): New function.
4715         * hooks.h (hook_bool_void_true): Declare.
4716         * target-def.h (TARGET_CXX): Add
4717         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
4718         * target.h (struct cxx): Add key_method_may_be_inline.
4719         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
4720         function.
4721         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
4722         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
4723         __THUMB_INTERWORK.
4724
4725 2004-08-31  Denis Chertykov  <denisc@overta.ru>
4726
4727         PR target/15417
4728         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
4729         frame pointer register only in Pmode while reload in progress.
4730
4731 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
4732
4733         PR target/15334
4734         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
4735         because it breaks the 32-bit shift patterns that rely on a match_dup.
4736
4737 2004-08-31  Matt Austern  <austern@apple.com>
4738
4739         * config/darwin.c (darwin_make_decl_one_only): Allocate section
4740         names once per compilation, instead of once per symbol.
4741
4742 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
4743
4744         * Makefile.in (build_subdir): New substitution.
4745         (fixinc.sh): Simplify heavily since fixincludes is already built.
4746         (stmp-fixinc): Depend on specs.ready.
4747         (install-mkheaders): Use new location of fixincludes.
4748         (clean): Do not descend into fixinc.
4749         (FORBUILD): Replace with ../$(build_subdir).
4750         * configure.ac (build_subdir): Substitute.
4751         (FORBUILD): Do not set.
4752         (all_outputs): Remove fixinc/Makefile.
4753         (default commands): Do not create links in fixinc.
4754         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
4755         the fixincludes configuration steps and substituting
4756         @FIXINCL@ in fixinc.in.
4757         * fixinc.in: New, from fixinc/fixincl.sh.
4758
4759         * fixinc/*: Removed.
4760
4761 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
4762
4763         * attribs.c (strip_attrs): Remove.
4764         (split_specs_attrs): Move ...
4765         * c-decl.c: ... to here.
4766         * tree.h (split_specs_attrs, strip_attrs): Remove.
4767         * c-tree.h (split_specs_attrs): Declare.
4768
4769 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
4770
4771         * read-rtl.c: Disable RTL checking.
4772         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
4773
4774 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
4775
4776         * config/mips/mips.md (fcond): New code macro and attribute.
4777         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
4778         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
4779         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
4780
4781 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
4782
4783         Revert:
4784         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
4785         PR rtl-optimization/16590
4786         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
4787
4788 2004-08-30  Andrew Pinski  <apinski@apple.com>
4789
4790         * hard-reg-set.h:
4791         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
4792         * ChangeLog: Fix previous ChangeLog entry.
4793
4794         PR rtl-opt/13987
4795         * config.host (use_long_long_for_widest_fast_int): New, default is
4796         off.
4797         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
4798         * configure.ac: If use_long_long_for_widest_fast_int, then
4799         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
4800         * configure: Regenerate.
4801         * config.in: Regenerate.
4802         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
4803         New: widest integer type supported efficiently in hardware for the
4804         host.
4805         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
4806         HOST_BITS_PER_WIDEST_FAST_INT.
4807         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
4808         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
4809         HOST_WIDEST_FAST_INT
4810         instead of HOST_WIDE_INT.
4811         (HARD_REG_SET_LONGS): Likewise.
4812         (UHOST_BITS_PER_WIDE_INT): Likewise.
4813         Change the checks for the fast cases to be based on
4814         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
4815
4816 2004-08-30  Steven Bosscher  <stevenb@suse.de>
4817
4818         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
4819         not the pointers.
4820
4821 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
4822
4823         PR 12738
4824         PR 17205
4825         Radar 3460526
4826         Radar 3775729
4827         * c-decl.c (grokdeclarator): Produce error for 'static' on local
4828         function declaration.
4829
4830 2004-08-30  Richard Henderson  <rth@redhat.com>
4831
4832         * expr.c (array_ref_element_size): Force aligned_size back to
4833         sizetype.
4834         (component_ref_field_offset): Similarly for aligned_offset.
4835         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
4836         low-bound, element-size, field-offset fields rather than
4837         computed values.
4838
4839 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
4840
4841         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
4842         redundant code.
4843
4844 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
4845
4846         * c-tree.h (struct language_function): Add arg_info element.
4847         * c-decl.c (current_function_arg_info): New.
4848         (grokdeclarator, store_parm_decls): Use it instead of
4849         DECL_ARGUMENTS.
4850         (c_push_function_context, c_pop_function_context): Save and
4851         restore it.
4852
4853 2004-08-30  Richard Henderson  <rth@redhat.com>
4854
4855         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
4856         COMPONENT_REF to pointer arithmetic.
4857         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
4858         constant "c" as a valid constant initializer.  Allow narrowing of
4859         differences against the same base object, for any base object.
4860
4861 2004-08-30  Richard Henderson  <rth@redhat.com>
4862
4863         * expr.c (expand_expr_addr_expr): New.
4864         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
4865
4866 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
4867
4868         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
4869         (mips_fp_condition): New enum.
4870         (mips_fp_conditions): New array.
4871         (print_fcc_operand): Delete.
4872         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
4873         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
4874         (builtin_description): Add "cond" field.
4875         (DIRECT_BUILTIN): Initialize it.
4876         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
4877         into INSN and CODE.  Initialize the "cond" field.
4878         (CMP_BUILTINS): Update accordingly.
4879         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
4880         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
4881         mips_fp_condition as argument.  Make it the final operand of the
4882         comparison instruction.
4883         (mips_expand_builtin): Update accordingly.
4884         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
4885         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
4886         the gaps.
4887         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
4888         Don't use the 'Q' operand prefix; just print the operand normally.
4889         (mips_cabs_*, mips_c_*): Delete, replacing with...
4890         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
4891         patterns.  Split the 4s versions into 2 ps patterns after reload.
4892
4893 2004-08-30  Richard Henderson  <rth@redhat.com>
4894
4895         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
4896         assuming an ADDR_EXPR is non-null.
4897
4898 2004-08-30  Jason Merrill  <jason@redhat.com>
4899
4900         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
4901
4902 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
4903
4904         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
4905         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
4906         gcc_assert and gcc_unreachable instead of abort.
4907         * alloc-pool.c (abort, fancy_abort): Remove.
4908         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
4909         gcc_assert or gcc_unreachable.
4910         * attribs.c (init_attributes, decl_attributes): Likewise.
4911         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
4912         mark_bb_for_unlikely_executed_section,
4913         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
4914         fix_crossing_unconditional_branches):  Likewise.
4915         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
4916         bitmap_operation):  Likewise.
4917         * bt-load.c (insn_sets_btr_p, augment_live_range,
4918         move_btr_def):  Likewise.
4919         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
4920         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
4921         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
4922         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
4923         expand_builtin_memcmp, expand_builtin_args_info,
4924         std_gimplify_va_arg_expr, expand_builtin_unop,
4925         expand_builtin_fputs, expand_builtin_profile_func,
4926         expand_builtin_fork_or_exec, fold_builtin_bitop,
4927         fold_builtin_classify, fold_builtin_fputs): Likewise.
4928
4929 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
4930
4931         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
4932         * gcov.c (abort): Remove undef.
4933
4934         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
4935         (struct tree_binfo): Remove primary field.
4936
4937 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
4938
4939         * fixinc/Makefile.in (machname.h): Remove.
4940         (fixincl.x): Do not pass $@ to genfixes.
4941         * fixinc/genfixes: Remove code to produce machname.h.
4942         * fixinc/fixincl.sh: Move it here instead.
4943         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
4944         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
4945         return a bool indicating whether pz_mn_name_pat is NULL.
4946         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
4947         Declare extern C variables for the ENV_TABLE.
4948         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
4949         instead use the result of mn_get_regexps.
4950         * fixinc/fixtests.c: Likewise.
4951
4952 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
4953
4954         * configure.ac: Do not run fixincludes after stage1 during
4955         toplevel bootstrap.
4956         * configure: Regenerate.
4957
4958 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
4959
4960         * sched-deps.c (get_condition): Partially revert previous, by never
4961         trying to extract the condition from a condjump.
4962
4963 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
4964
4965         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
4966         (handle_visibility_attribute, c_determine_visibility): Likewise.
4967         * c-common.h (my_friendly_assert): Remove.
4968
4969 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
4970
4971         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
4972         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
4973         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
4974         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
4975         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
4976
4977 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
4978
4979         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
4980         in COMPONENT_REF nodes.
4981
4982 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4983
4984         PR c++/15378
4985         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
4986         global_dc->warning_as_error_requested.
4987         * diagnostic.c (diagnostic_initialize): Tidy.
4988         * diagnostic.h (diagnostic_context::x_data): Remove
4989         (diagnostic_context::issue_warnings_are_errors_message): Rename
4990         from warnings_are_errors_message.
4991         (diagnostic_context::warning_as_error_requested): New.
4992
4993 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
4994
4995         * sched-deps.c (get_condition): Fix breakage in previous patch.
4996
4997 2004-08-30  Paul Brook  <paul@codesourcery.com>
4998
4999         * doc/install.texi: Fix broken mpfr link.
5000
5001 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
5002
5003         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
5004         other FreeBSD platforms.
5005
5006 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
5007
5008         * arm.h (REVERSE_CONDITION): Define.
5009         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
5010
5011 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
5012
5013         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
5014         just the codes, call reversed_comparison_code ().
5015         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
5016         (not_reg_cond): Use reversed_comparison_code.
5017         (and_reg_cond): Likewise.
5018         * ifcvt.c (cond_exec_process_if_block): Likewise.
5019         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
5020
5021 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
5022
5023         * sched-deps.c (get_condition): Rewrite using jump support functions.
5024         Use reversed_comparison_code.
5025         (conditions_mutex_p): Use reversed_comparison_code.
5026
5027 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5028
5029         * config/mips/mips.c (override_options): Disable hot/cold partitioning
5030         for MIPS16.
5031
5032 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5033
5034         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
5035         (mips_function_type): Move to mips.c.
5036         * config/mips/mips.c (mips_builtin_type): New enum.
5037         (builtin_description): Replace code and ftype with builtin_type
5038         and function_type.
5039         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
5040         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
5041         (CODE_FOR_mips_abs_ps): Define.
5042         (mips_bdesc): Use new macros.
5043         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
5044         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
5045         (mips_expand_builtin_direct): New function.
5046         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
5047         builtin.  Replace boolean parameter with builtin_type.
5048         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
5049         (mips_expand_4s_compare_builtin): Delete, replacing with...
5050         (mips_expand_builtin_compare): ...this new function.
5051
5052 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
5053
5054         PR rtl-optimization/16590
5055         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
5056
5057 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
5058
5059         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
5060         * tree-ssa-propagate.c: Fix documentation.
5061
5062 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5063
5064         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
5065         (mov[sd]fcc): Likewise.
5066
5067 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5068
5069         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
5070
5071 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5072
5073         * config/mips/mips.md (divide_condition): New mode attribute.
5074         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
5075         (sqrt[sd]f3): Redefine using SCALARF.
5076         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
5077         patterns.
5078
5079 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5080
5081         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
5082         (loadx, storex, fmt, UNITMODE): New mode attributes.
5083         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
5084         (mul[sd]f3): Redefine using :SCALARF.
5085         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
5086         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
5087         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
5088         Check TARGET_FUSED_MADD for V2SF too.
5089         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
5090         were already named.
5091         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
5092         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
5093
5094 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5095
5096         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
5097         V2SF_type_node if it will be needed.
5098
5099 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5100
5101         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
5102         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
5103         (mips_prepare_builtin_target): New function.
5104         (mips_expand_builtin): Use them.  Update calls to subroutines.
5105         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
5106         cmp_choice with a boolean argument to select between movt and movf.
5107         Take the comparison's icode as an argument, not the function's fcode.
5108         (mips_expand_compare_builtin): New function.  Rename existing function
5109         to mips_expand_scalar_compare_builtin.
5110         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
5111         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
5112         comparison's icode as an argument, not the builtin's fcode.
5113
5114 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5115
5116         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
5117         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
5118         registers are false and -1 if all registers are true.
5119         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
5120         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
5121         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
5122         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
5123         (bc1any2t, bc1any2f): Likewise CCV2.
5124         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
5125
5126 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
5127
5128         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
5129         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
5130         UNSPEC rather than an IF_THEN_ELSE.
5131         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
5132         mips_cond_move_tf_ps by name.
5133
5134 2004-08-29  Chao-ying Fu  <fu@mips.com>
5135             James E Wilson  <wilson@specifixinc.com>
5136
5137         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
5138         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
5139         * config/mips/mips-ps-3d.md: New file.
5140         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
5141         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5142         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
5143         (mips_output_move): Emit "mov.ps" for V2SFmode.
5144         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
5145         MODE_VECTOR_FLOAT.
5146         (override_options): Check if TARGET_MIPS3D and there was an explicit
5147         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
5148         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
5149         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
5150         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
5151         and allow CCV2 and CCV4 to occupy two and four CC registers.
5152         (print_fcc_operand): New function.
5153         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
5154         %Z to call print_fcc_operand.
5155         (mips_function_value): Handle MODE_VECTOR_FLOAT.
5156         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
5157         (mips_vector_mode_supported_p): New function.
5158         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
5159         (builtin_description): New struct.
5160         (mips_bdesc): New array of struct builtin_description.
5161         (mips_expand_builtin, mips_init_builtins,
5162         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
5163         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
5164         functions.
5165         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
5166         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
5167         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
5168         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
5169         "-mips3d", and "-mno-mips3d".
5170         (ASM_SPEC): Map -mips3d to -mips3d in gas.
5171         (EXTRA_CONSTRAINT_Y): New macro.
5172         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
5173         multi-letter constraint 'Y'.
5174         (CONSTRAINT_LEN): New macro.
5175         (enum mips_builtins): New for MIPS builtin functions.
5176         (enum mips_function_type): New for the types of MIPS builtin functions.
5177         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
5178         * config/mips/mips.md: New constants for paired single and MIPS-3D
5179         instructions.  Include the new mips-ps-3d.md file.
5180         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
5181         movv2sf_hardfloat_64bit): New named patterns.
5182         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
5183         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
5184         sdxc1_v2sf_di): New unnamed patterns.
5185         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
5186         const_vector support.
5187         (const_0_or_1_operand): New predicate.
5188         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
5189
5190 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
5191
5192         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
5193         (tree-ssa-propagate.o): New rule.
5194         (GTFILES): Add tree-ssa-propagate.c.
5195         * tree-flow.h (struct stmt_ann_d): Remove field
5196         in_ccp_worklist.
5197         * tree-ssa-propagate.c: New file.
5198         * tree-ssa-propagate.h: New file.
5199         * tree-ssa-ccp.c: Re-write to use the routines from
5200         tree-ssa-propagate.c.
5201
5202 2004-08-28  Andrew Pinski  <apinski@apple.com>
5203
5204         * tree-ssa-loop.c: Remove extra include of basic-block.h.
5205
5206 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
5207
5208         * c-common.h: Update comments about ObjC/ObjC++ entry points.
5209         (objc_is_reserved_word): New prototype.
5210         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
5211         separate section; these are call-backs.
5212         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
5213         ObjC/ObjC++ "@" keywords.
5214         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
5215         prototypes; they already live in c-common.h.
5216         * stub-objc.c: Update copyright notice.
5217         (objc_is_reserved_word): New stub.
5218
5219 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
5220
5221         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
5222         even when not checking.
5223
5224 2004-08-27  Jason Merrill  <jason@redhat.com>
5225
5226         PR c++/13684
5227         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
5228         (gimple_push_cleanup): Add eh_only parm.
5229         (gimplify_target_expr): Pass it.
5230         * c.opt (-fno-threadsafe-statics): New option.
5231         * c-opts.c (c_common_handle_option): Handle it.
5232         * c-common.h (flag_threadsafe_statics): Declare it.
5233         * c-common.c (flag_threadsafe_statics): Record it.
5234         * doc/invoke.texi: Document it.
5235         * tsystem.h (_GNU_SOURCE): Define.
5236         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
5237         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
5238         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
5239         (__gthread_recursive_mutex_init_function): New fn.
5240         (__gthread_recursive_mutex_lock): New fn.
5241         (__gthread_recursive_mutex_trylock): New fn.
5242         (__gthread_recursive_mutex_unlock): New fn.
5243         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
5244         * gthr-win32.h, gthr-vxworks.h: Likewise.
5245         * gthr.h: Document.
5246
5247 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
5248
5249         * config/rs6000/rs6000.c (rs6000_override_options): Increase
5250         maximum skip to 15.  Set function alignment, jump alignment, and
5251         loop alignment to 16 for processors that form dispatch groups.
5252         (rs6000_rtx_costs): outer_code is used.
5253
5254 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
5255
5256         * stor-layout.c (sizetype_set): Remove.
5257         (set_sizetype): Don't test or set it.
5258
5259         * tree.h (size_int_type): Remove.
5260         * fold-const.c: Do not #include gt-fold-const.h.
5261         (size_htab_hash, size_htab_eq): Remove.
5262         (size_int_kind): Use build_int_cst.
5263         (new_const, size_htab): Remove.
5264         (size_int_type): Remove.
5265         (round_up): Use build_int_cst.
5266         (round_down): Likewise. Remove spurious constant build.
5267
5268 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
5269
5270         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
5271         Add is_release variable, use it for --enable-werror and
5272         --enable-checking defaults.
5273         * system.h (gcc_assert, gcc_unreachable): New.
5274         * doc/install.texi (--enable-checking): Update.
5275         * configure, config.in: Rebuilt.
5276
5277 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
5278
5279         * rtl.h (read_rtx): Change prototype.
5280         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
5281         line number.  Return true on success.
5282         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
5283         callers accordingly.
5284
5285 2004-08-26  Richard Henderson  <rth@redhat.com>
5286
5287         * c-typeck.c (build_offsetof): Remove.
5288         * c-tree.h (build_offsetof): Remove.
5289         * c-common.c (fold_offsetof_1, fold_offsetof): New.
5290         * c-common.h (fold_offsetof): Declare.
5291         * c-parse.in (offsetof_base): New.
5292         (offsetof_member_designator): Use it.  Build references, not just
5293         a tree list.
5294         (primary): Use fold_offsetof, not build_offsetof.
5295
5296 2004-08-26  Richard Henderson  <rth@redhat.com>
5297
5298         * tree.c (staticp): Return the static object.
5299         * tree.h (staticp): Update decl.
5300         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
5301         * langhooks.c (lhd_staticp): Return NULL_TREE.
5302         * langhooks-def.h (lhd_staticp): Update decl.
5303         * c-common.c (c_staticp): Return the static object.
5304         * c-common.h (c_staticp): Update decl.
5305
5306 2004-08-26  Richard Henderson  <rth@redhat.com>
5307
5308         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
5309         modes.
5310
5311 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
5312
5313         PR c/13801
5314         * c-decl.c (struct c_binding): Add type and inner_comp fields.
5315         (bind): Set type and inner_comp fields.
5316         (pop_scope): Restore type of decl to the correct type from an
5317         outer scope.  Give error when popping file scope for incomplete
5318         arrays completed incompatibly with default initialization in an
5319         inner scope.
5320         (diagnose_mismatched_decls): Handle externs with initializers at
5321         block scope.
5322         (pushdecl): Set type of external declaration at block scope based
5323         only on the visible declarations.  Save type when changing the
5324         type of a declaration.  Merge an external declaration at block
5325         scope with a visible static declaration at file scope.
5326         (implicitly_declare): Give recycled old declaration the new type
5327         except for incompatible declarations of built-in functions, saving
5328         the old type.
5329
5330 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
5331
5332         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
5333
5334 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
5335
5336         * tree-alias-common.c (gate_pta): New function.
5337         (pass_build_pta): Use it.
5338         (pass_del_pta): Use it.
5339         (delete_alias_vars): Don't check flag_tree_points_to.
5340
5341 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
5342
5343         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
5344         TFmode as additional register mode cloberred by call.
5345
5346 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
5347
5348         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
5349         parallel pattern for library call returning DImode in
5350         mixed mode.
5351
5352 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
5353
5354         * config/rs6000/rs6000.c (function_arg): Generate parallel
5355         pattern for more split args.
5356
5357 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
5358
5359         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
5360         either gen_movdi_di_update or gen_movdi_si_update depending on
5361         target mode.
5362         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
5363         to generate two versions.
5364
5365 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
5366
5367         * Makefile.in (lambda-code.o): New.
5368         (lambda-trans.o): Ditto.
5369         (TREE_DATA_REF_H): Ditto.
5370         (LAMBDA_H): Ditto.
5371         (lambda-mat.o): Use LAMBDA_H.
5372         (tree-data-ref.o): Ditto.
5373         * lambda-code.c: New file.  Lambda code generation algorithm.
5374         * lambda-trans.c: Ditto. Lambda transformation matrix support.
5375         * lambda.h: Add lambda loop structures.
5376         Add lambda loopnest structures.
5377         Add lambda body vector structure.
5378         Add lambda linear expression structures.
5379         Add prototypes for functions in new files.
5380         * lambda-mat.c: Include tree.h
5381
5382 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
5383             Sebastian Pop  <pop@cri.ensmp.fr>
5384
5385         * tree-data-ref.h: Include lambda.h
5386         (free_dependence_relation): Declared here.
5387         (free_dependence_relations): Ditto.
5388         (free_data_refs): Ditto.
5389         * tree-data-ref.c (free_dependence_relation): New function.
5390         (free_dependence_relations): Ditto.
5391         (free_data_refs): Ditot.
5392         (analyze_all_data_dependences): Free datarefs and dependence_relations.
5393         (build_classic_dist_vector): Store in the dependence_relations the
5394         information. Each arc in the dependence_relations graph is labelled
5395         with the distance and direction vectors.
5396         (build_classic_dir_vector): Ditto.
5397         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
5398         Now computes again the whole dependence graph including read-read
5399         relations.
5400         (compute_data_dependences_for_loop): Now dependence_relations contains
5401         all the data, and thus it doesn't need to initialize the classic_dir
5402         and classic_dist vectors.
5403         (analyze_all_data_dependences): Adjusted for using the new interface of
5404         compute_data_dependences_for_loop.  Remove the statistics dump.
5405
5406 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
5407
5408         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
5409         (xtensa_expand_block_move): Update comment.
5410         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
5411
5412 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
5413
5414         PR target/13506
5415         * toplev.c (crash_signal): If we crashed while emitting
5416         a user asm, then die more gracefully.
5417
5418 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5419
5420         PR target/17119.
5421         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
5422         checking for a valid constant, regardless of sign.
5423
5424 2004-08-25  Richard Henderson  <rth@redhat.com>
5425
5426         PR target/16974
5427         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
5428         if the constant satisfies add_operand.
5429
5430 2004-08-25  Richard Henderson  <rth@redhat.com>
5431
5432         PR debug/10695
5433         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
5434         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
5435         unwind info for >16-bit frames.
5436
5437 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
5438
5439         PR target/17171
5440         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
5441
5442 2004-08-25  Richard Henderson  <rth@redhat.com>
5443
5444         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
5445         (TARGET_CANNOT_FORCE_CONST_MEM): New.
5446
5447 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
5448
5449         * doc/tree-ssa.texi: Document new operand iterator.
5450
5451 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
5452
5453         PR target/16480
5454         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
5455         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
5456         as PLUS base regs.
5457
5458 2005-08-28  Paul Brook  <paul@codesourcery.com>
5459
5460         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
5461         -mfpu=vfp -march=armv5t
5462         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
5463
5464 2004-08-25  Richard Henderson  <rth@redhat.com>
5465
5466         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
5467         * target.h (struct gcc_target): Add scalar_mode_supported_p.
5468         * targhooks.c (default_scalar_mode_supported_p): New.
5469         * targhooks.h (default_scalar_mode_supported_p): Declare.
5470         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
5471
5472         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
5473         before attempting to create types.  Tidy.
5474         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
5475
5476         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
5477         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
5478
5479 2004-08-25  Richard Henderson  <rth@redhat.com>
5480
5481         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
5482         set REAL_MODE_FORMAT for TFmode.
5483
5484 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
5485
5486         * c-decl.c (grokparm): New function.
5487         * c-tree.h (grokparm): New prototype.
5488
5489 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
5490
5491         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
5492         iterator controlling structure.
5493         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
5494         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
5495         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
5496         iterator flags.
5497         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
5498         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
5499         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
5500         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
5501         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
5502         Empty operand pointers.
5503         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
5504         (op_iter_next_use): New.  Return next use_operand_p.
5505         (op_iter_next_def): New.  Return next def_operand_p.
5506         (op_iter_next_tree): New.  Return next operands as a tree.
5507         (op_iter_init): New.  Initialize an iterator structure.
5508         (op_iter_init_use): New.  Initialize structure and get the first use.
5509         (op_iter_init_def): New.  Initialize structure and get the first def.
5510         (op_iter_init_tree): New.  Initialize structure and get the first tree.
5511         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
5512         (op_iter_init_maydef): New.  Initialize structure and get the first
5513         V_MAY_DEF operands.
5514         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
5515         * tree-dfa.c (compute_immediate_uses_for_stmt,
5516         redirect_immediate_uses): Use new operand iterator.
5517         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
5518         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
5519         operands instead of using *_disappeared_p routines.
5520         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
5521         ssa_rewrite_stmt): Use new operand iterator.
5522         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
5523         rewrite_trees): Use new operand iterator.
5524         * tree-pretty-print.c (dump_vops): Use new operand iterator.
5525         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
5526         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
5527         dump_points_to_info): Use new operand iterator.
5528         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
5529         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
5530         operand iterator.
5531         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
5532         propagate_necessity): Use new operand iterator.
5533         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
5534         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
5535         a parameter instead of a stmt_ann_t.
5536         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
5537         build_tree_conflict_graph): Use new operand iterator.
5538         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
5539         rewrite_mem_refs): Use new operand iterator.
5540         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5541         check_loop_closed_ssa_use): Use new operand iterator.
5542         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
5543         * tree-ssanames.c (release_defs): Use new operand iterator.
5544         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
5545
5546 2004-08-25  Adam Nemet  <anemet@lnxw.com>
5547
5548         * tlink.c (initial_cwd): New variable.
5549         (tlink_init): Initialize it.
5550         (recompile_files): Use tlink_execute() instead of system().  Don't
5551         duplicate verbose output of collect_execute.  Restore initial_cwd.
5552         Update comment before the function.
5553
5554 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
5555
5556         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
5557         accept) a cast from one Objective-C pointer type to another.
5558
5559 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
5560
5561         * doc/install.texi: Document that libstdc++-v3 requires
5562         now automake 1.9.1.
5563
5564 2004-08-25  Caroline Tice  <ctice@apple.com>
5565
5566         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
5567         to comments at start of function.
5568         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
5569         comment.
5570         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5571         merge_blocks_move_predecessor_nojumps,
5572         merge_blocks_move_successor_nojumps, merge_blocks_move,
5573         try_crossjump_to_edge, try_crossjump_bb): Likewise.
5574         * cfglayout.c (fixup_reorder_chain): Likewise.
5575         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
5576         cfg_layout_can_merge_blocks_p):  Likewise.
5577         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
5578         * passes.c (rest_of_compilation): Update comments for calling
5579         optimization that partitions hot/cold basic blocks.
5580         * doc/invoke.texi:  Update documentation of
5581         freorder-blocks-and-partition flag.
5582
5583 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
5584
5585         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
5586         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
5587
5588 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
5589
5590         * config/mips/mips.md (any_shift): New code macro.
5591         (optab, insn): New code attributes.
5592         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
5593         Use the standard rather than internal patterns for the MIPS16
5594         double-shift optimization.
5595         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
5596         Redefine using :GPR and any_shift.
5597         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
5598         to cover all three shifts.
5599         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
5600         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
5601         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
5602
5603 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
5604
5605         * gimplify.c (lookup_tmp_var): Separate temporaries when not
5606         optimizing.
5607
5608 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5609
5610         PR libstdc++/17005 (fix for HP-UX 11.11)
5611         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
5612         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
5613         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
5614         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
5615         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
5616         (LINK_SPEC): Handle march=1.0 option.
5617         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
5618         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
5619         (SUBTARGET_OPTIONS): New define.
5620         (LINK_SPEC): Handle march=1.0 option.
5621         (STARTFILE_SPEC): New define.
5622         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
5623         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
5624         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
5625         (SUBTARGET_OPTIONS): New define.
5626         (LINK_SPEC): Handle march=1.0 option.
5627         (STARTFILE_SPEC): New define.
5628         * config/pa/pa.c (override_options): Add code to process -munix= option.
5629         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
5630         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
5631         defines.
5632         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
5633         (SUBTARGET_OPTIONS): Provide default define.
5634         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
5635         STANDARD_STARTFILE_PREFIX_2): New defines.
5636         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
5637         (ENDFILE_SPEC): Use %O.
5638         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
5639         Mention issue caused by changing namespace and runtime to UNIX 95/98.
5640         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
5641         Document -munix=std option.
5642
5643 2004-08-25  Steven Bosscher  <stevenb@suse.de>
5644
5645         * cse.c (cse_around_loop, cse_check_loop_start,
5646         cse_set_around_loop): Remove.
5647         (cse_basic_block): Remove the around_loop argument.
5648         (cse_end_of_basic_block): Remove the after_loop argument.
5649         (cse_main): Likewise.
5650         * rtl.h (cse_main): Update prototype.
5651         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
5652         rest_of_handle_gcse): Update cse_main calls.
5653
5654 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
5655
5656         * tree.h  (build_int_cst): New, sign extended constant.
5657         (build_int_cstu): New, zero extended constant.
5658         (build_int_cst_wide): Renamed from build_int_cst.
5659         * tree.c (build_int_cst, build_int_cstu): New.
5660         (build_int_cst_wide): Renamed from build_int_cst.
5661         (make_vector_type, build_common_tree_nodes,
5662         build_common_tree_nodes_2): Adjust build_int_cst calls.
5663         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
5664         expand_builtin_strpbrk, expand_builtin_fputs,
5665         build_string_literal, expand_builtin_printf,
5666         expand_builtin_sprintf, fold_builtin_classify_type,
5667         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
5668         fold_builtin_toascii, fold_builtin_isdigit,
5669         simplify_builtin_strstr, simplify_builtin_strpbrk,
5670         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
5671         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
5672         DEF_ATTR_INT): Likewise.
5673         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
5674         Likewise.
5675         * c-lex.c (interpret_integer, lex_charconst): Likewise.
5676         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
5677         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5678         * c-typeck.c (really_start_incremental_init, push_init_level,
5679         set_nonincremental_init_from_string): Likewise.
5680         * calls.c (load_register_parameters): Likewise.
5681         convert.c (convert_to_pointer): Likewise.
5682         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
5683         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
5684         build_gcov_info): Likewise.
5685         * except.c (init_eh, assign_filter_values): Likewise.
5686         * expmed.c (store_fixed_bit_field, extract_bit_field,
5687         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
5688         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
5689         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
5690         * expr.c (convert_move, emit_group_load, emit_group_store,
5691         expand_assignment, store_constructor, store_field,
5692         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
5693         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
5694         invert_truthvalue, optimize_bit_field_compare,
5695         decode_field_reference, all_ones_mask_p, constant_boolean_node,
5696         fold_div_compare, fold, fold_read_from_constant_string,
5697         fold_negate_const, fold_abs_const, fold_not_const, round_up,
5698         round_down): Likewise.
5699         * function.c (assign_parm_setup_block): Likewise.
5700         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
5701         Likewise.
5702         * stor-layout.c (layout_type, initialize_sizetypes,
5703         set_min_and_max_values_for_integral_type): Likewise.
5704         * tree-chrec.c (chrec_fold_multiply_poly_poly,
5705         reset_evolution_in_loop): Likewise.
5706         * tree-chrec.h (build_polynomial_chrec): Likewise.
5707         * tree-complex.c (build_replicated_const): Likewise.
5708         * tree-eh.c (honor_protect_cleanup_actions,
5709         lower_try_finally_onedest, lower_try_finally_copy,
5710         lower_try_finally_switch): Likewise.
5711         * tree-mudflap.c (mf_build_string, mx_register_decls,
5712         mudflap_register_call, mudflap_enqueue_constant): Likewise.
5713         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
5714         * tree-pretty-print.c (dump_generic_node): Likewise.
5715         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
5716         Likewise.
5717         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
5718         * tree-ssa-loop-niter.c (number_of_iterations_cond,
5719         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
5720         Likewise.
5721         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
5722         canonicalize_loop_induction_variables): Likewise.
5723         * tree-vectorizer.c (vect_create_index_for_array_ref,
5724         vect_transform_loop_bound, vect_compute_data_ref_alignment):
5725         Likewise.
5726
5727         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
5728         alpha_gimplify_va_arg_1): Likewise.
5729         * config/arm/arm.c (arm_get_cookie_size): Likewise.
5730         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
5731         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
5732         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5733         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
5734         mips_gimplify_va_arg_expr): Likewise.
5735         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5736         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
5737         add_compiler_branch_island): Likewise.
5738         * config/s390/s390.c (s390_va_start): Likewise.
5739         * config/sh/sh.c (sh_va_start): Likewise.
5740         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
5741         Likewise.
5742         * config/xtensa/xtensa.c (xtensa_va_start,
5743         xtensa_gimplify_va_arg_expr): Likewise.
5744
5745         * objc/objc-act.c (build_objc_string_object,
5746         build_objc_symtab_template, init_def_list, init_objc_symtab,
5747         init_module_descriptor, generate_static_references,
5748         build_selector_translation_table, get_proto_encoding,
5749         build_typed_selector_reference, build_selector_reference,
5750         build_next_objc_exception_stuff,
5751         build_method_prototype_list_template, generate_descriptor_table,
5752         generate_protocols, build_protocol_initializer,
5753         build_ivar_list_template, build_method_list_template,
5754         build_ivar_list_initializer, generate_ivars_list,
5755         generate_dispatch_table, generate_protocol_list,
5756         build_category_initializer, build_shared_structure_initializer,
5757         generate_shared_structures, handle_impent,
5758         generate_objc_image_info): Likewise.
5759
5760 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
5761
5762         * cfglayout.c (duplicate_insn_chain): Remove references to
5763         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
5764         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
5765         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
5766         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
5767         and NOTE_INSN_LOOP_CONT.
5768         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
5769         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
5770         and NOTE_INSN_LOOP_CONT.
5771         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
5772         check_dbra_loop, loop_dump_aux): Remove references to removed notes
5773         and fields.
5774         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
5775         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
5776         references to removed notes and fields.
5777         (subtract_reg_term, ujump_to_loop_cont): Remove.
5778
5779 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
5780
5781         * doc/install.texi: Document that libcpp does not require
5782         Automake any longer.  Document that Automake 1.9.1 should
5783         work everywhere.
5784
5785 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
5786
5787         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
5788         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
5789         DWARF_DEBUGGING_INFO from choice-of-definition chain;
5790         restructure using C89 features (#elif, #error).
5791         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
5792         * config/sh/sh.h: Remove references to DWARF_DEBUG.
5793         * doc/invoke.texi: Remove references to DWARF version 1;
5794         clarify why -gdwarf-2<n> doesn't work.
5795
5796 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
5797
5798         * basic-block.h (BB_SET_PARTITION): Clear old value first.
5799         * cfg.c (clear_bb_flags): Don't clear partition setting.
5800         * ifcvt.c (find_if_case_1): Remove ??? comment.
5801
5802 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
5803
5804         PR target/17052
5805         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
5806         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
5807         current_function_stdarg in place of sysv_varargs_p.
5808         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
5809         sysv_varargs_p.
5810
5811 2004-08-24  Richard Henderson  <rth@redhat.com>
5812
5813         PR target/16298
5814         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
5815         random codes within CONST.
5816
5817 2004-08-24  James E Wilson  <wilson@specifixinc.com>
5818
5819         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
5820         -freorder-blocks-and-partition.
5821
5822 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5823
5824         PR middle-end/17044
5825         * tree-ssa-threadupdate.c (redirection_data): Make static.
5826         (thread_block): Use ggc_alloc_cleared to allocate struct
5827         redirection_data.  Don't free elements in redirection_data.
5828
5829 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5830
5831         * config/mips/predicates.md (small_data_pattern): Match prefetches.
5832
5833 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5834
5835         PR tree-optimization/17016
5836         * tree-ssa-loop-niter.c (number_of_iterations_cond,
5837         number_of_iterations_exit): Use POINTER_TYPE_P instead
5838         of testing for POINTER_TYPE.
5839
5840 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5841
5842         * tree-ssa-loop-ivcanon.c: New file.
5843         * tree-ssa-loop-manip.c (create_iv): New function.
5844         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
5845         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
5846         * cfgloop.c (mark_single_exit_loops): New function.
5847         (verify_loop_structure): Verify single-exit loops.
5848         * cfgloop.h (struct loop): Add single_exit field.
5849         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
5850         (mark_single_exit_loops): Declare.
5851         (tree_num_loop_insns): Declare.
5852         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
5853         (duplicate_loop_to_header_edge): Use it.
5854         * common.opt (fivcanon): New flag.
5855         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
5856         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
5857         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
5858         (bsi_insert_on_edge_immediate): New function.
5859         * tree-flow.h (bsi_insert_on_edge_immediate,
5860         canonicalize_induction_variables, tree_unroll_loops_completely,
5861         create_iv): Declare.
5862         * tree-optimize.c (init_tree_optimization_passes): Add
5863         pass_iv_canon and pass_complete_unroll.
5864         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
5865         * tree-scalar-evolution.c (get_loop_exit_condition,
5866         get_exit_conditions_rec, number_of_iterations_in_loop,
5867         scev_initialize): Use single_exit information.
5868         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
5869         missing assumptions.
5870         (loop_niter_by_eval):  Return number of iterations as unsigned
5871         int.
5872         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
5873         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
5874         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
5875         New passes.
5876         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
5877         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
5878         the defining statement is ready.
5879         * tree-vectorizer.c (vect_create_iv_simple): Removed.
5880         (vect_create_index_for_array_ref, vect_transform_loop_bound):
5881         Use create_iv.
5882         (vect_transform_loop_bound): Use single_exit information.
5883         (vect_analyze_loop_form): Cleanup bogus tests.
5884         (vectorize_loops): Do not call flow_loop_scan.
5885         * tree.h (may_negate_without_overflow_p): Declare.
5886         * fold-const.c (may_negate_without_overflow_p): Split out from ...
5887         (negate_expr_p): ... this function.
5888         (tree_expr_nonzero_p): Handle overflowed constants correctly.
5889         * doc/invoke.texi (-fivcanon): Document.
5890         * doc/passes.texi: Document canonical induction variable creation.
5891
5892 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5893
5894         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
5895         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
5896         using the mode of the operand to decide between them.
5897         * config/mips/mips.md (MOVECC): New mode macro.
5898         (ccreg): New mode attribute.
5899         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
5900         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
5901         (mov[sd]icc): Redefine using :GPR.
5902
5903 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5904
5905         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
5906         (mips_prefetch_cookie): New function.
5907         * config/mips/mips.c (print_operand_address): Fix handling of
5908         ADDRESS_CONST_INT.
5909         (mips_emit_prefetch): Delete.
5910         (mips_prefetch_cookie): New function.
5911         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
5912         mode of QImode for the address_operand.  Use mips_prefetch_cookie
5913         to calculate the first "pref" operand.
5914         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
5915         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
5916
5917 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
5918
5919         * arm.md: Include predicates.md.
5920         * predicates.md: New file.
5921         * arm.c (s_register_operand, arm_hard_register_operand)
5922         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
5923         (arm_immediate_operand, arm_neg_immediate_operand)
5924         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
5925         (arm_add_operand, arm_addimm_operand, arm_not_operand)
5926         (offsettable_memory_operand, alignable_memory_operand)
5927         (arm_reload_memory_operand, arm_float_rhs_operand)
5928         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
5929         (index_operand, shiftable_operator, logical_binary_operator)
5930         (shift_operator, equality_operator, arm_comparison_operator)
5931         (minmax_operator, cc_register, dominant_cc_register)
5932         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
5933         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
5934         (const_shift_operand, load_multiple_operation)
5935         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
5936         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
5937         (cirrus_register_operand, cirrus_fp_register)
5938         (cirrus_shift_const): Delete, replaced with equivalents in
5939         predicates.md.
5940         (shift_op): Handle ROTATE.
5941         * arm-protos.h: Delete declarations for above.
5942         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
5943         * t-arm (MD_INCLUDES): Add predicates.md.
5944         (s-preds): Depends on MD_INCLUDES.
5945
5946 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5947
5948         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
5949         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
5950         patterns.  Redefine using :GPR.  Give the match_operator a mode.
5951         Use '%2' rather than '%z2' for operand 2.
5952
5953 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5954
5955         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
5956         attribute.
5957
5958 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5959
5960         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
5961         of internal patterns.
5962         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
5963         Redefine using :P.
5964         (tablejump): Use expand_binop to calculate address.  Adjust names
5965         of internal patterns.
5966         (tablejump[sd]i): Renamed from tablejump_internal[12].
5967         Redefine using :P.
5968         (tablejump_mips16[12]): Delete.
5969
5970 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5971
5972         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
5973         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
5974         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
5975         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
5976         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
5977
5978 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5979
5980         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
5981         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
5982         using :GPR.
5983         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
5984         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
5985         (*branch_equality[sd]i_inverted): Likewise
5986         branch_equality{,_di}_inverted.
5987         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
5988         Redefine using :GPR.
5989
5990 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
5991
5992         * rtl.def: Reorganize, placing all codes used only in machine
5993         descriptions at the end.
5994
5995         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
5996         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
5997         rtx_name, rtx_format arrays by direct reference to rtl.def,
5998         first undefining GENERATOR_FILE.  Define enum insn_note and
5999         note_insn_name array by direct reference to insn-notes.def.
6000         (adjust_field_rtx_def): Remove local definition of rtx_name.
6001         Use symbolic names for insn notes.
6002         * Makefile.in (gengtype.o): Update dependencies.
6003
6004 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
6005
6006         * basic-block.h (struct basic_block_def): Reorder fields to
6007         eliminate interior padding.  Remove 'partition' field.
6008         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
6009         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
6010         (BB_COPY_PARTITION): New macros.
6011         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
6012         Replace all references to the 'partition' field of a basic
6013         block with new macros.
6014
6015         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
6016         * final.c (final_scan_insn): Don't handle it.
6017         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
6018         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
6019         * sched-rgn.c (sched_is_disabled_for_current_region_p):
6020         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
6021
6022 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
6023
6024         * c-decl.c (c_init_decl_processing): Adjust
6025         build_common_tree_nodes call.
6026         * expmed.c (const_mult_add_overflow_p): Use
6027         build_distinct_type_copy.
6028         * stor-layout.c (early_type_list): Remove.
6029         (layout_type): Don't append to early_type_list.
6030         (initialize_sizetypes): Add signed_p argument.
6031         (set_sizetype): Overwrite the stub type nodes directly.
6032         * tree.c (copy_node_stat): Clear a type's value cache here ...
6033         (build_distinct_type): ... not here.
6034         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
6035         * tree.h (initialize_sizetypes): Add signed_p argument.
6036         (build_common_tree_nodes): Likewise.
6037
6038         * objc/objc-act.c (get_static_reference): Use
6039         build_variant_type_copy.
6040         (get_protocol_reference): Likewise.
6041         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
6042
6043 2004-08-24  Richard Henderson  <rth@redhat.com>
6044             Andrew Pinski  <apinski@apple.com>
6045
6046         * gimplify.c (gimplify_array_ref_to_plus): Delete.
6047         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
6048         for ARRAY_REF.
6049
6050         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
6051         ARRAY_REF also to get to the STRING_CST.
6052
6053 2004-08-24  Paul Brook  <paul@codesourcery.com>
6054
6055         * config/arm/arm.c (arm_override_options): Update error message.
6056         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
6057         TARGET_HARD_FLOAT_ABI.
6058         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
6059         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
6060
6061 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
6062
6063         PR target/17093
6064         * config/m32r.md (movsi_sda): Add SI mode specification to
6065         UNSPEC.
6066
6067 2004-08-24  Nick Clifton  <nickc@redhat.com>
6068
6069         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
6070         of seth_add3_operand.
6071
6072 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
6073
6074         * Makefile.in (PROTO_OBJS): Add errors.o.
6075         * protoize.c (fancy_abort): Remove.
6076         * mips-tfile.c (fancy_abort): Add parameters.
6077
6078 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
6079
6080         * doc/trouble.texi (C++ misunderstandings): Fix example code.
6081
6082 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
6083
6084         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
6085         (host-default.o): Add dependency on HOOKS_H.
6086         * config/x-linux: Likewise.
6087         * config/x-solaris: Likewise.
6088         * config/i386/x-mingw32: Likewise.
6089         * config/rs6000/x-darwin: Likewise.
6090
6091 2004-08-23  James E Wilson  <wilson@specifixinc.com>
6092
6093         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
6094         DEF_REG_NOTE.
6095
6096 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
6097
6098         PR c/14492
6099         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
6100
6101 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
6102
6103         * cfg.c (check_bb_profile): Fix typos.
6104         * function.c (assign_parm_is_stack_parm): Likewise.
6105         * tree-nested.c: Likewise.
6106
6107 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
6108
6109         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
6110         Remove TYPECODE.
6111         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
6112
6113 2004-08-23  Eric Christopher  <echristo@redhat.com>
6114
6115         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
6116         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
6117         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
6118         * target.h: Ditto.
6119         * hooks.h: Include machmode.h.
6120         (hook_bool_mode_false): Declare.
6121         * hooks.c (hook_bool_mode_false): Define.
6122         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
6123         * stor-layout.c (layout_type): Ditto.
6124         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
6125         Define to target macro.
6126         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
6127         * config/arm/arm.c: Ditto. Use.
6128         * config/arm/arm.h: Ditto.
6129         * config/arm/arm-protos.h: Ditto.
6130         * config/i386/i386.c: Ditto.
6131         * config/i386/i386.h: Ditto.
6132         * config/rs6000/rs6000.c: Ditto.
6133         * config/rs6000/rs6000.h: Ditto.
6134         * config/sh/sh.c: Ditto.
6135         * config/sh/sh.h: Ditto.
6136         * config/sh/sh-protos.h: Ditto.
6137         * config/sh/sh.md: Use.
6138         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
6139         to TARGET_VECTOR_MODE_SUPPORTED_P.
6140
6141 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
6142
6143         * Makefile.in (BUILD_ERRORS): Set to build-errors.
6144         (errors.o): New target for host.
6145         (build-errors.o): New target for build.
6146         (genobjs): Replace errors.o with build-errors.
6147         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
6148         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
6149         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
6150         (fix-header.o): Add errors.h
6151         * collect2.c (fancy_abort): Add parameters.
6152         * collect2.h (fancy_abort): Don't declare.
6153         * errors.h (fancy_abort): Don't declare.
6154         * errors.c: Include either bconfig.h or config.h.
6155         (fancy_abort): Trim filename.
6156         * fix-header.c (v_fatal, fatal): Remove.
6157         (progname): Remove definition.
6158         (main): Set progname here.
6159         * gcc.c (fancy_abort): Add parameters.
6160         * gcc.h (fancy_abort): Remove declaration.
6161         * gcov.c (fancy_abort): Remove.
6162         * rtl.h (fancy_abort): Don't declare.
6163         (abort): Don't define.
6164         * tree.h (fancy_abort): Don't declare.
6165         (abort): Don't define.
6166         * system.h (fancy_abort): Declare.
6167         (abort): Define to fancy_abort.
6168         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
6169
6170         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
6171         (usize_type, ubitsizetype): Remove.
6172         * stor-layout.c (set_sizetype): Don't initialize usizetype,
6173         ubitsizetype.
6174         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
6175
6176         * tree.h (build_distinct_type_copy): New.
6177         (build_type_copy): ... here.  Rename to ...
6178         (build_variant_type_copy): ... here.
6179         * tree.c (build_qualified_type): Rename build_type_copy call.
6180         (build_distinct_type_copy): New, broken out of ...
6181         (build_type_copy): ... here.  Rename to ...
6182         (build_variant_type_copy): ... here.  Use
6183         build_distinct_type_copy.
6184         (build_common_tree_nodes_2): Rename build_type_copy call.
6185         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
6186         call.
6187         (handle_packed_attribute, handle_unused_attribute,
6188         handle_transparanet_union_attribute, handle_aligned_attribute,
6189         handle_deprecated_attribute): Likewise.
6190         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
6191         Likewise.
6192         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
6193         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
6194         build_distinct_type_copy.
6195
6196 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6197
6198         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
6199         attribute.
6200
6201 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6202
6203         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
6204         loads and stores.
6205         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
6206         formerly unnamed patterns.  Redefine using :P for the address.  Remove
6207         explicit length attributes.
6208
6209 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6210
6211         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
6212         New functions.
6213         (single_reachable_address): Use them.
6214         (schedule_sm): Add dump.
6215         (is_call_clobbered_ref): New function.
6216         (determine_lsm_reg): Check whether the reference is call clobbered.
6217         Only work for gimple_reg_type values.
6218
6219 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6220
6221         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
6222         $31 store insns.  Redefine using :GPR.
6223
6224 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6225
6226         * config/mips/mips.md (P): New mode macro.
6227         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
6228         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
6229         Add mode attributes.
6230
6231 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6232
6233         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
6234         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
6235         later constants to cover the gap.
6236         (load, store): New mode attributes.
6237         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
6238         Use new unspec constants.
6239
6240 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6241
6242         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
6243         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
6244         to use register_operand rather than uns_arith_operand as the predicate
6245         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
6246         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
6247         Redefine using :GPR.  Make same predicate change here.  Extend the
6248         commutativity of operands 1 and 2 from the SImode version to the
6249         DImode one.
6250         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
6251         but with no predicate changes.
6252         (*nor[sd]i3): Redefine using :GPR.
6253
6254 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6255
6256         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
6257         noreturn functions.
6258
6259 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6260
6261         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
6262         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
6263         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
6264         rather than "%z2" (with a fake const0_rtx for operand 2).
6265         (ffs[sd]i2): Redefine using :GPR.
6266         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
6267
6268 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6269
6270         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
6271
6272 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6273
6274         * config/mips/mips.md (any_extend): New code macro.
6275         (u, su): New code attributes.
6276         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
6277         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
6278         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
6279         (*{s,u}mul_acc_di): Redefine using any_extend.
6280         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
6281         to reflect real insn names.
6282         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
6283         with an any_extend template.
6284         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
6285         Add '*' to name.
6286
6287 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6288
6289         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
6290         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
6291         (mul[sd]i3_r4000): Redefine using :GPR.
6292         (mulsi3_mult3): Don't check TARGET_MAD separately.
6293         (muldi3_mult3): Moved after mulsi_mult3.
6294
6295 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6296
6297         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
6298         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
6299         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
6300         (TARGET_GAS, TARGET_MIPS_AS): Delete.
6301         (TARGET_GPWORD): Define to true for n32 on IRIX.
6302         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
6303         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
6304         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
6305         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
6306         (MDEBUG_ASM_SPEC): Delete, folding into...
6307         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
6308         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
6309         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
6310         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
6311         to define asm_abi_default_spec.
6312         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
6313         (TARGET_ASM_SELECT_SECTION): Delete.
6314         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
6315         for non-mips16 code, removing previous workaround for SGI assemblers.
6316         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
6317         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
6318         (override_options): Remove !TARGET_GAS and !have_named_sections code.
6319         (print_operand): Fold TARGET_GAS conditionals into asm strings.
6320         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
6321         ASM_STABS_OP and ASM_STABN_OP.
6322         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
6323         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
6324         (mips_output_function_prologue): Remove !TARGET_GAS code.
6325         (mips_select_rtx_section): Remove !have_named_sections code.
6326         (mips_select_section): Delete.
6327         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
6328         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
6329         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
6330         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
6331         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
6332         * config/mips/windiss.h (ASM_SPEC): Likewise.
6333
6334 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6335
6336         * read-rtl.c (map_value, mapping, macro_group): New structures.
6337         (BELLWETHER_CODE): New macro.
6338         (modes, codes, bellwether_codes): New variables.
6339         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
6340         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
6341         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
6342         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
6343         (add_map_value, initialize_macros): New functions.
6344         (def_hash, def_hash_eq_p): Generalize to anything that points to,
6345         or starts with, a char * field.
6346         (find_macro, read_mapping, check_code_macro): New functions.
6347         (read_rtx_1): New, split out from read_rtx.  Handle the new
6348         define_{mode,code}_{macro,attr} constructs.  Use find_macro
6349         to parse the name of a code or mode.  Use BELLWETHER_CODE to
6350         extract the format and to choose a suitable code for rtx_alloc.
6351         Modify recursive invocations to use read_rtx_1.
6352         (read_rtx): Call initialize_macros.  Apply code and mode macros
6353         to the rtx returned by read_rtx_1.  Cache everything after the
6354         first macro expansion for subsequent read_rtx calls.
6355         * doc/md.texi: Document new .md constructs.
6356         * config/mips/mips.md (GPR): New mode macro.
6357         (d, si8_di5): New mode attributes.
6358         (any_cond): New code macro.
6359         (add[sd]i3): Redefine using :GPR.
6360         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
6361         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
6362         previously unnamed MIPS16 patterns.
6363         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
6364         lines.  Don't match (plus (const_int 0) ...).
6365         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
6366         Use a define_split to generate the addition.
6367         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
6368         (subsi3_internal): Delete.
6369         (*subsi3_extended): Renamed from subsi3_internal_2.
6370         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
6371         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
6372         using an any_cond template.
6373
6374 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6375
6376         * read-rtl.c (read_rtx): Tidy use of format_ptr.
6377
6378 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
6379
6380         * read-rtl.c (string_obstack): New file-scope variable.
6381         (read_string, read_quoted_string, read_braced_string)
6382         (read_escape): Remove obstack parameter and use string_obstack instead.
6383         (read_rtx): Remove function-local rtl_obstack and initialize
6384         string_obstack instead.  Update call to read_string.
6385
6386 2004-08-22  Andrew Pinski  <apinski@apple.com>
6387
6388         PR c/15262
6389         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
6390         expression is not constant.
6391         (c_finish_return): Do not go through INDIRECT_REF when looking
6392         for the inner expression of an ADDR_EXPR for warning about.
6393
6394 2004-08-22  Richard Henderson  <rth@redhat.com>
6395
6396         PR 17075
6397         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
6398         create new blocks and fall through.
6399         (expand_gimple_basic_block): Update to match.
6400
6401 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
6402
6403         * reload.c (find_reloads_address): Make return value tri-state.
6404         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
6405         (find_reloads): Assume that reloaded addresses match 'o' or
6406         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
6407         returned 1 (not -1).  Omit optional reloads for address operands
6408         only if find_reloads_address returned 1 (not -1).
6409
6410         * config/s390/s390.c (legitimize_reload_address): New function.
6411         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
6412         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
6413         legitimize_reload_address.
6414
6415 2004-08-22  Richard Hendersion  <rth@redhat.com>
6416
6417         * tree.h (SAVE_EXPR_RESOLVED_P): New.
6418         * gimplify.c (gimplify_save_expr): Use it.
6419         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
6420         on the temporary variable.
6421
6422 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
6423
6424         * fold-const.c (rtl_expr_nonnegative_p): Delete.
6425         * tree.h (rtl_expr_nonnegative_p): Remove.
6426
6427 2004-08-22  Steven Bosscher  <stevenb@suse.de>
6428
6429         * config/i386/ppro.md (ppro_complex_insn): Add missing check
6430         for cpu==pentiumpro.
6431
6432         * combine.c (struct reg_stat): Fix comment typo.
6433
6434 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
6435
6436         * c-tree.h (c_sizeof_nowarn): Remove.
6437
6438 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
6439
6440         * c-decl.c (set_array_declarator_type): Rename to
6441         set_array_declarator_inner.
6442         (build_c_parm, build_attrs_declarator, build_function_declarator):
6443         New functions.
6444         (make_pointer_declarator): Call build_attrs_declarator.
6445         * c-tree.h (set_array_declarator_type): Rename to
6446         set_array_declarator_inner.
6447         (build_c_parm, build_attrs_declarator, build_function_declarator):
6448         New prototypes.
6449         * c-parse.in (after_type_declarator,
6450         parm_declarator_starttypename, parm_declarator_nostarttypename,
6451         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
6452         firstparm): Use these functions
6453
6454 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
6455
6456         * c-decl.c (build_array_declarator, set_array_declarator_type,
6457         start_decl, grokdeclarator, grokparms): Change boolean parameters
6458         to type bool.
6459         * c-tree.h (build_array_declarator, set_array_declarator_type,
6460         start_decl): Update prototypes.
6461         * c-decl.c, c-parse.in: All callers changed.
6462
6463 2004-08-21  Mike Stump  <mrs@apple.com>
6464
6465         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
6466         (darwin_fix_and_continue): Likewise.
6467         (darwin_fix_and_continue_switch): Likewise.
6468         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
6469         (darwin_fix_and_continue): Likewise.
6470         (darwin_fix_and_continue_switch): Likewise.
6471
6472 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
6473
6474         PR  c++/16030
6475         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
6476         Remove, merging into ...
6477         (gen_stdcall_or_fastcall_suffix): New function, returning tree
6478         rather than const char*, and accepting additional parameter.
6479         Don't add suffix to '*'-prefixed symbols or variadic functions.
6480         (i386_pe_encode_section_info): Adjust for call to new function.
6481         Call change_decl_assembler_name.
6482
6483 2004-08-20  Mike Stump  <mrs@apple.com>
6484
6485         * config/darwin.c (machopic_indirect_data_reference): Mark
6486         stubs as defined.
6487         * config/386/386.c (darwin_local_data_pic): Add.
6488         (legitimate_constant_p): Reorder so that PLUS handling runs
6489         before darwin_local_data_pic to match the ordering in
6490         legitimate_pic_address_disp_p and so that MINUS runs after
6491         darwin_local_data_pic as otherwise the darwin_local_data_pic
6492         logic can be skipped, which would be very bad.
6493         (legitimate_pic_address_disp_p): Move from from here to
6494         darwin_local_data_pic so it can be reused.
6495
6496 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
6497
6498         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
6499         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
6500         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
6501         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
6502         (RS6000_ABI_NAME): Define as "linux".
6503         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
6504         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
6505         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
6506         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
6507         * config/rs6000/rs6000.c (dot_symbols): New global var.
6508         (rs6000_output_function_entry): New function, modified for
6509         !DOT_SYMBOLS..
6510         (print_operand <case 'z'>): ..extracted from here.
6511         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
6512         (rs6000_output_function_epilogue): Likewise.
6513         (rs6000_elf_declare_function_name): Likewise.
6514         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
6515         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
6516         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
6517         * configure: Regenerate.
6518         * config.in: Regenerate.
6519
6520 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
6521
6522         * reload.c (find_reloads_address): Fix thinko in previous change.
6523
6524         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
6525         a CONST_INT.
6526
6527 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
6528
6529         PR rtl-optimization/17099
6530         * combine.c (force_to_mode): Check if inner_mask has any bits set
6531         outside of GET_MODE (x) instead of op_mode.
6532
6533 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
6534
6535         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
6536         fragment.
6537         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
6538         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
6539         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
6540         architecture.
6541         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
6542         configurations.
6543         * config/arm/t-symbian: New file.
6544
6545 2004-08-20  Andrew Pinski  <apinski@apple.com>
6546
6547         * regrename.c (kill_value_regno): ANSIfy.
6548
6549 2004-08-20  Dale Johannesen  <dalej@apple.com>
6550
6551         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
6552
6553 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
6554
6555         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
6556         (kill_value_regno): New function, derived from kill_value.
6557         (kill_value): Update.
6558         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
6559
6560 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
6561
6562         Fix PR tree-optimization/17111
6563         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
6564         of non-value_handles.
6565         (bitmap_set_contains): All constants are in every set.
6566
6567 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
6568
6569         * fold-const.c (round_up, round_down): Use build_int_cst.
6570         Optimize common case.
6571
6572 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
6573             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6574
6575         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
6576         one_only_data_section): Rename to som_readonly_data_section,
6577         som_one_only_readonly_data_section and som_one_only_data_section.
6578         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
6579         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
6580         conditional defines.
6581         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
6582         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
6583         string values.
6584         (pa_select_section): Use renamed section functions.
6585         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
6586         SOM_READONLY_DATA_SECTION_FUNCTION,
6587         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
6588         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
6589         Define here ...
6590         * config/pa/som.h: ... not here.
6591         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
6592         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
6593         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
6594         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
6595         (READONLY_DATA_SECTION): Use som_readonly_data_section.
6596
6597 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
6598
6599         * fold-const.c (int_const_binop): Don't generate non-overflowing
6600         size-types specially.
6601         (fold_convert_const): Likewise.
6602
6603         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
6604         clear cache on copied sizetype.
6605
6606 2004-08-20  Ben Elliston  <bje@au.ibm.com>
6607
6608         * configure.ac: Don't escape apostrophe in --enable-coverage help.
6609         * configure: Regenerate.
6610
6611 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
6612
6613         PR 5620
6614         * gcc.c (struct stat input_stat): Don't define if
6615         HOST_LACKS_INODE_NUMBERS
6616         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
6617         than stat to determine if temp file is same as input file.
6618         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
6619         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
6620
6621 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
6622
6623         * configure.ac (mips*-*-*): Print an error if not using GAS.
6624         * configure: Regenerated.
6625         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
6626         comments about buggy MIPSpro assemblers.
6627         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
6628         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
6629         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
6630         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
6631         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
6632         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
6633         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
6634         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
6635         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
6636         of more general IRIX 6 definitions.
6637         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
6638         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
6639         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
6640         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
6641         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
6642         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
6643         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
6644         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
6645         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
6646         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
6647         (LINK_SPEC): Move most of definition to iris.h.
6648         (SUBTARGET_LINK_SPEC): New macro.
6649         (IRIX_STARTFILE_SPEC): Fold into...
6650         (STARTFILE_SPEC): ...here.
6651         (IRIX_ENDFILE_SPEC): Fold into...
6652         (ENDFILE_SPEC): ...here.
6653         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
6654         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
6655         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
6656         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
6657         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
6658         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
6659         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
6660         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
6661         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
6662         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
6663         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
6664         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
6665         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
6666         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
6667         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
6668         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
6669         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
6670         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
6671         (TARGET_IRIX6): Define to 1.
6672         (DRIVER_SELF_SPECS): Define.
6673         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
6674         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
6675         (SUBTARGET_LINK_SPEC): New macro.
6676         (IRIX_STARTFILE_SPEC): Fold into...
6677         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
6678         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
6679         (LIB_SPEC, LIBGCC_SPEC): Use them.
6680         (LIB_SPEC): Remove !mabi=* case.
6681         (IRIX_ENDFILE_SPEC): Fold into...
6682         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
6683         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
6684         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
6685         (TARGET_IRIX6): New macro.
6686         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
6687         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
6688         (LABEL_AFTER_LOC): Delete.
6689         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
6690         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
6691         (mips_build_builtin_va_list): Check TARGET_IRIX6.
6692         (override_options): Remove TARGET_SGI_O32_AS-related code.
6693         (irix_output_external_libcall): Make static.
6694         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
6695         LABEL_AFTER_LOC.
6696         (mips_file_start): Tidy guard for ABI sections.  Remove use of
6697         ABICALLS_ASM_OP; use .abicalls instead.
6698         (mips_output_aligned_decl_common, mips_declare_object_name)
6699         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
6700         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
6701         .globl foo .text directives.
6702         (irix_asm_named_section_1, irix_asm_named_section)
6703         (irix_section_align_entry, irix_section_align_htab)
6704         (irix_orig_asm_out_file, irix_section_align_entry_eq)
6705         (irix_section_align_entry_hash, irix_asm_output_align)
6706         (irix_file_start, irix_section_align_1, copy_file_data)
6707         (irix_file_end, irix_section_type_flags): Delete.
6708         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
6709         Use standard section syntax.  Remove protective "jr $31".
6710         (__gcc_fini): Likewise .gcc_fini.
6711         * config/mips/irix-crtn.asm: Adjust sections accordingly.
6712         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
6713         iris5gas.h.
6714         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
6715         from t-irix-gld.
6716         (EXTRA_MULTILIB_PARTS): Define.
6717         * config/mips/t-iris6: Remove bogus comment.
6718         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
6719         * config/mips/iris5gas.h, config/mips/iris5gld.h,
6720         config/mips/iris6gas.h, config/mips/iris6gld.h,
6721         config/mips/t-iris5-as, config/mips/t-iris5-gas
6722         config/mips/t-irix-gld: Delete.
6723         * config/mips/iris.h: New file.
6724         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
6725
6726 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
6727
6728         * postreload.c (reload_cse_move2add): Allow any condjump, but check
6729         that the implicit set isn't clobbered in the jump insn.
6730
6731 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
6732
6733         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
6734         * optabs.c (init_optabs): Don't check it.
6735         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
6736         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
6737
6738 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
6739
6740         * config/s390/s390.md (s390_warn_framesize_string)
6741         (s390_warn_dynamic_string, s390_stack_size_string)
6742         (s390_stack_guard_string): New global string variables.
6743         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
6744         (s390_stack_guard): New global variables.
6745         (override_options): Added checks for the new options.
6746         (s390_emit_prologue): Emit stack check and trap code and perform
6747         compile time stack size checking.
6748
6749         * config/s390/s390.h (TARGET_OPTIONS): Added new options
6750         "warn-framesize", "warn-dynamicstack", "stack-size" and
6751         "stack-guard".
6752
6753         * doc/invoke.texi: Added documentation for the new options.
6754
6755 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
6756
6757         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
6758         to eliminate warning.
6759         (linear_search_fdes): Declare p as unsigned.
6760         (binary_search_mixed_encoding_fdes): Likewise.
6761         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
6762         to eliminate warning.
6763         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
6764         type cast.
6765
6766 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
6767
6768         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
6769         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
6770         instead of one.  Check for strictly legitimate address.
6771         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
6772         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
6773
6774 2004-08-19  Eric Christopher  <echristo@redhat.com>
6775
6776         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
6777         * langhooks.h (unsave_expr_now): Ditto.
6778         * tree.h (unsave_expr_1): Remove prototype.
6779         (lhd_unsave_expr_now): Rename to unsave_expr_now.
6780         * tree-inline.c (unsave_expr_1): Move here
6781         from tree.c. Make static.
6782         (unsave_expr_now): Rename from lhd_unsave_expr_now.
6783         * tree-sra.c: Fix up for rename.
6784         * tree-ssa-copy.c: Ditto.
6785         * tree-eh.c: Ditto.
6786         * tree.c (unsave_expr_1): Move to tree-inline.c.
6787
6788 2004-08-19  Caroline Tice  <ctice@apple.com>
6789
6790         * config/i386/cygming.h (switch_to_section):  Fix typo (change
6791         in_unlikely_text_section to in_unlikely_executed_text).
6792
6793 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
6794
6795         * vec.h (VEC_lower_bound): New macro.
6796
6797 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
6798
6799         PR target/16446
6800         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
6801         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
6802         treat each ABI separately.  Deal with n32/n64 complex float arguments.
6803         (function_arg): Add associated complex handling here.
6804
6805 2004-08-19  Richard Henderson  <rth@redhat.com>
6806
6807         * config/arm/arm.c (arm_gen_load_multiple): Use
6808         adjust_automodify_address.  Take base memory and offset instead
6809         of unchanging/struct/scalar bits.
6810         (arm_gen_store_multiple): Likewise.
6811         (arm_gen_movmemqi): Use adjust_automodify_address.
6812         * config/arm/arm-protos.h: Update decls.
6813         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
6814         (store_multiple): Similarly.
6815
6816 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
6817
6818         * regclass.c (globalize_reg): Update call_really_used_regs.
6819
6820 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
6821
6822         * doc/invoke.texi (integer-share-limit): Document.
6823
6824         * tree.h (TYPE_CACHED_VALUES_P): New.
6825         (TYPE_CACHED_VALUES): New.
6826         (TYPE_ORIG_SIZE_TYPE): Adjust.
6827         * tree.def (INTEGER_CST): Update documentation.
6828         * tree.c: Inlcude params.h.
6829         (build_int_cst): Cache small values.
6830         (build_type_copy): Do not copy the value cache.
6831         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
6832         unneeded zeroing.
6833         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
6834         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
6835         cache.
6836         * fold-const.c (force_fit_type): Copy value when setting
6837         overflows.
6838         (int_const_binop): Likewise.
6839         * stor-layout.c: Include params.h
6840         (set_sizetype): Create values cache.
6841         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
6842         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
6843         * params.h (INTEGER_SHARE_LIMIT): New.
6844         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
6845
6846 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
6847
6848         * gimplify.c (gimplify_minimax_expr): Remove.
6849         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
6850
6851 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
6852
6853         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
6854         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
6855
6856 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
6857
6858         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
6859
6860 2004-08-18  Andrew Pinski  <apinski@apple.com>
6861
6862         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
6863
6864 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
6865
6866         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
6867         (__aeabi_ul2f): Likewise.
6868
6869 2004-08-18  Richard Henderson  <rth@redhat.com>
6870
6871         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
6872         move to rtl completely.
6873         (struct meminsnbuf, xtensa_emit_block_move): Remove.
6874         (xtensa_find_mode_for_size): Remove.
6875         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
6876         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
6877
6878 2004-08-18  Richard Henderson  <rth@redhat.com>
6879
6880         * config/mcore/mcore.c (mode_from_align): Remove DImode.
6881         (block_move_sequence): Rewrite to use adjust_address.
6882         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
6883         Return boolean indicating success/failure.
6884         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
6885         * config/mcore/mcore.md (movmemsi): Update to match.
6886
6887 2004-08-18  Mike Stump  <mrs@apple.com>
6888
6889         * doc/invoke.texi (-mfix-and-continue): Add support for
6890         fast turn around debugging.
6891         (-ffix-and-continue): Likewise.
6892         (-mindirect-data): Likewise.
6893         (-findirect-data): Likewise.
6894         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
6895         (indirect_data): Likewise.
6896         (machopic_data_defined_p): Likewise.
6897         (machopic_output_indirection): Likewise.
6898         (darwin_encode_section_info): Likewise.
6899         (darwin_fix_and_continue): Likewise.
6900         (darwin_fix_and_continue_switch): Likewise.
6901         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
6902         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6903         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
6904         (SUBTARGET_OPTIONS): Likewise.
6905         (darwin_fix_and_continue): Likewise.
6906         (darwin_fix_and_continue_switch): Likewise.
6907         (TARGET_FIX_AND_CONTINUE): Likewise.
6908         * config/rs6000.c (rs6000_emit_prologue): Likewise.
6909
6910 2004-08-19  Steven Bosscher  <stevenb@suse.de>
6911
6912         * basic-block.h (struct edge_def): Remove crossing_edge.
6913         (EDGE_CROSSING): New define.
6914         (EDGE_ALL_FLAGS): Update.
6915         * bb-reorder.c (find_traces_1_round, better_edge_p,
6916         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
6917         find_jump_block, fix_crossing_conditional_branches,
6918         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
6919         Replace all occurences of crossing_edge with an edge flag check
6920         or set/reset.
6921         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6922         try_crossjump_bb): Likewise.
6923         * cfglayout.c (fixup_reorder_chain): Likewise.
6924         * cfgrtl.c (force_nonfallthru_and_redirect,
6925         commit_one_edge_insertion): Likewise.
6926
6927         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
6928         * tree-flow.h (compute_dominance_frontiers): Move prototype...
6929         * basic-block.h:  ...here.
6930         * tree-cfg.c (compute_dominance_frontiers_1,
6931         compute_dominance_frontiers): Move from here...
6932         * cfganal.c: ...to here.  Include timevar.h.
6933
6934 2004-08-18  James E Wilson  <wilson@specifixinc.com>
6935
6936         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
6937         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
6938
6939         * config/mips/mips.md (type): Add frdiv.
6940         (divsf3+1, divsf3+2): Change type to frdiv.
6941         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
6942         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
6943
6944         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
6945         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
6946         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
6947         * config/mips/5000.md (r5k_fdiv_single): Likewise.
6948         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
6949         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
6950         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
6951         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
6952         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
6953         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
6954         Likewise.
6955         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
6956
6957 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
6958
6959         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
6960         get regression tester working again.
6961
6962 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
6963
6964         * insn-notes.def, reg-notes.def: New files.
6965         * rtl.h: Use them to define enum insn_note and enum reg_note.
6966         * rtl.c: Use them to define note_insn_name and reg_note_name.
6967         * Makefile.in (RTL_BASE_H): Update.
6968
6969         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
6970         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
6971
6972 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
6973
6974         * arm.c (arm_size_rtx_costs): New function.
6975         (arm_override_options): Use it if optimizing for space.
6976
6977 2004-08-18  Richard Henderson  <rth@redhat.com>
6978
6979         * emit-rtl.c (gen_const_mem): New.
6980         * rtl.h (gen_const_mem): Declare.
6981         * expr.c (do_tablejump): Use it.
6982         * varasm.c (force_const_mem): Likewise.
6983         * config/darwin.c (machopic_indirect_data_reference): Likewise.
6984         (machopic_legitimize_pic_address): Likewise.
6985         * config/arm/arm.c (legitimize_pic_address): Likewise.
6986         * config/i386/i386.c (legitimize_pic_address): Likewise.
6987         (legitimize_tls_address): Likewise.
6988         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
6989         * config/ia64/ia64.md (load_fptr): Likewise.
6990         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
6991         * config/pa/pa.c (legitimize_pic_address): Likewise.
6992         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
6993         (rs6000_emit_move): Likewise.
6994         * config/s390/s390.c (legitimize_pic_address): Likewise.
6995         (legitimize_tls_address): Likewise.
6996         * config/s390/s390.md (casesi): Likewise.
6997         * config/sh/sh.c (sh_reorg): Likewise.
6998         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
6999         * config/v850/v850.md (casesi): Likewise.
7000
7001         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
7002         * config/sh/sh.c (prepare_move_operands): Remove incorrect
7003         use of MEM_READONLY_P.
7004
7005 2004-08-18  Steven Bosscher  <stevenb@suse.de>
7006
7007         * Makefile.in (OBJS-common): Add postreload-gcse.c.
7008         Add new postreload-gcse.o.
7009         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
7010         (lookup_as_function, insert, rehash_using_reg, use_related_value,
7011         equiv_constant): Use SAFE_HASH instead of safe_hash.
7012         (exp_equiv_p): Export.  Add for_gcse argument when comparing
7013         for GCSE.
7014         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
7015         find_comparison_args, fold_rtx, cse_insn): Update callers.
7016         (hash_rtx): New function derived from old canon_hash and bits
7017         from gcse.c hash_expr_1.
7018         (canon_hash_string): Rename to hash_rtx_string.
7019         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
7020         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
7021         (cselib_lookup): Update this caller.
7022         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
7023         Make static.
7024         (hash_expr): Call hash_rtx.
7025         (ldst_entry): Likewise.
7026         (expr_equiv_p): Call exp_equiv_p.
7027         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
7028         reg_used_on_edge, reg_set_between_after_reload_p,
7029         reg_used_between_after_reload_p, get_avail_load_store_reg,
7030         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
7031         get_bb_avail_insn, hash_scan_set_after_reload,
7032         compute_hash_table_after_reload,
7033         eliminate_partially_redundant_loads, gcse_after_reload,
7034         get_bb_avail_insn, gcse_after_reload_main): Remove.
7035         * postreload-gcse.c: New file, reincarnating most of the above.
7036         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
7037         (gcse_after_reload_main): Update prototype.
7038         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
7039         * passes.c (rest_of_handle_gcse2): Use it.
7040
7041 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
7042
7043         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
7044         (pass_loop_done): Likewise.
7045
7046 2004-08-18  Andrew Pinski  <apinski@apple.com>
7047
7048         * config/rs6000/darwin.md: Delete the altivec patterns which are
7049         handled differently now.
7050         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
7051         (macho_correct_pic_di): Likewise.
7052         (call_indirect_nonlocal_darwin64): Likewise.
7053         Delete the save world/saveFP/saveVec patterns.
7054
7055         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
7056         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
7057         * config/rs6000/rs6000.md: Include darwin.md.
7058         (builtin_setjmp_receiver): Add DImode case.
7059         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
7060         Darwin bits.
7061
7062 2004-08-18  Matt Austern  <austern@apple.com>
7063
7064         Dead code stripping
7065         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
7066         * darwin.c (darwin_file_end): Mark file as potentially strippable.
7067
7068 2004-08-18  Richard Henderson  <rth@redhat.com>
7069
7070         * alias.c (readonly_fields_p): Remove.
7071         (objects_must_conflict_p): Don't call it.
7072         * tree.h (readonly_fields_p): Remove.
7073         * langhooks.h (struct lang_hooks): Remove honor_readonly.
7074         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
7075
7076 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
7077
7078         * tree-dfa.c (add_referenced_var): Only global variables are
7079         call-clobbered.
7080         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
7081         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
7082         all pointers dereferenced if the statement dereferences them.
7083         (create_name_tags): Do not create memory tags for pointers
7084         that have PT_ANYTHING set.
7085         Also check if PT_VARS is not empty before creating a name tag.
7086         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
7087         variables that share the same alias set with a pointer that
7088         may point anywhere.
7089         (add_may_alias): Add FIXME comment to remove clobbering
7090         aliased variables and tags.
7091         (replace_may_alias): Likewise.
7092         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
7093         (merge_pointed_to_info): If the original variable has not
7094         points-to information, call set_pt_anything.
7095         (add_pointed_to_var): Do not prevent adding a pointed-to
7096         variable if the pointers is PT_ANYTHING.
7097         If the variable is a global, set PT_GLOBAL_MEM.
7098         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
7099         pointer type only come in PTR+OFFSET flavours.
7100         Always call merge_pointed_to_info on PHI arguments that are
7101         SSA_NAMEs.
7102         (get_nmt_for): Mark call-clobbered tags whose pointer points
7103         to global memory.
7104         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
7105         values.
7106         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
7107         FLAGS.
7108         (add_stmt_operand): Abort if the caller tried to add a killing
7109         definition for a memory tag.
7110         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
7111         unnecessary checks.
7112
7113 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
7114
7115         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
7116         from call_used_regs.  Update call_really_used_regs.
7117         (CALL_REALLY_USED_REGISTERS): Define.
7118         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
7119         Replace call_used_regs with call_really_used_regs.
7120         (calc_live_regs, sh_media_register_for_return): Likewise.
7121         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
7122         * sh.md (return_media): Likewise.
7123
7124 2004-08-18  Andrew Pinski  <apinski@apple.com>
7125
7126         * config/darwin.c (machopic_legitimize_pic_address): Only set
7127         MEM_READONLY_P in the non TARGET_TOC case.
7128
7129 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
7130
7131         * rtl.def (NIL): Delete.
7132         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
7133         Tighten the syntax a little.
7134
7135         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
7136         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
7137         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
7138         * config/i386/predicates.md, config/m32r/m32r.h
7139         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
7140         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
7141         * config/sparc/sparc.h, doc/tm.texi:
7142         Replace all occurrences of NIL with UNKNOWN.
7143
7144 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
7145
7146         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
7147         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
7148         sequence inline.  Move drop_through_label code into this
7149         block, being the only place it is used.  Adjust comments.
7150
7151 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
7152
7153         * config/rs6000/altivec.md: Add new patterns for calls to
7154         save_world/rest_world functions.
7155
7156         * config/rs6000/rs6000-protos.h: (save_world_operation,
7157         restore_world_operation) new declarations.
7158
7159         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
7160         field added.
7161         (rs6000_stack_info): Set world_save_p field.
7162         (save_world_operation): New function.
7163         (restore_world_operation): New function.
7164         (compute_save_world_info): New function.
7165         (rs6000_stack_info): Call compute_save_world_info.
7166         (rs6000_emit_prologue): Check for world_save_p and generate
7167         pattern to call save_world for saving all non-volatile and
7168         special registers.
7169         (rs6000_emit_epilogue): Check for world_save_p and generate
7170         pattern to call rest_world to restore saved registers.
7171
7172         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
7173         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
7174         (rs6000_reg_names): New entries added for save_world_operation and
7175         restore_world_operation.
7176
7177 2004-08-18  Caroline Tice  <ctice@apple.com>
7178
7179         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
7180         "-freorder-blocks-and-partition" to the flags used in second
7181         stage of profiledbootstrap.
7182         * bb-reorder.c (push_to_next_round_p): Add new variable,
7183         next_round_is_last; set and use variable to make sure, when
7184         partitioning, that the last trace construction round consists
7185         of all (and only) cold basic blocks.
7186         (rotate_loop): Don't copy blocks that end in a section
7187         crossing jump.
7188         (copy_bb): Correctly initialize "partition" of duplicated bb.
7189         (add_unlikely_executed_notes): Add a comment.
7190         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
7191         to make sure, if function contains hot blocks, that the
7192         successors of ENTRY_BLOCK_PTR are hot; also, only look for
7193         crossing edges if the architecture supports named sections.
7194         (mark_bb_for_unlikely_executed_section): Modify to always
7195         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
7196         the basic block note insn.
7197         (fix_crossing_unconditional_branches): Remove extra space.
7198         (fix_edges_for_rarely_executed_code): Modify to only do
7199         partitioning work if the architecture supports named sections.
7200         (reorder_basic_blocks): Modify to only add
7201         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
7202         supports named sections.
7203         * c-common.c (handle_section_attribute): Initialize new global
7204         variable, user_defined_section_attribute, to true if user has
7205         specified one.
7206         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
7207         forward edges that cross section boundaries.
7208         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
7209         partitioning information if the architecture supports named
7210         sections.
7211         * cfgrtl.c (target.h): Add statement to include this.
7212         (rtl_split_block): Make sure newly created bb gets correct
7213         partition.
7214         (try_redirect_by_replacing_jump): Make sure redirection isn't
7215         attempting to cross section boundaries.
7216         (force_nonfallthru_and_redirect): Only do partition fix up if
7217         architecture supports named sections.
7218         (rtl_split_edge): Make sure newly created bb ends up in
7219         correct partition.
7220         (commit_one_edge_insertion): Remove code that incorrectly
7221         updated basic block partition; Make sure partition fix up only
7222         happens if architecture supports named sections and it's not
7223         already done.
7224         (rtl_verify_flow_info_1): Fix if-condition on test/error
7225         condition that fallthru edges are not allowed to cross section
7226         boundaries.
7227         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
7228         * final.c (final_scan_insn): Remove redundant test from if-statement;
7229         change calls to text_section into calls to function_section; add code
7230         to only to partitioning fix up if architecture supports named
7231         sections.
7232         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
7233         partition.
7234         (if_convert): Add targetm.have_named_sections to test.
7235         * output.h (unlikely_section_label): Extern declaration for new global
7236         variable.
7237         (unlikely_text_section_name): Likewise.
7238         * opts.c (decode_options): If both partitioning and DWARF debugging
7239         are turned on, issue a warning that this doesn't work, and change
7240         partitiong to basic block reordering (without hot/cold partitions).
7241         * passes.c (rest_of_handle_final): Re-set new global variable,
7242         user_defined_section_attribute, to false.
7243         (rest_of_compilation): Change options for calling partitioning
7244         function: Don't call if the user defined the section attribute, and
7245         don't call if DECL_ONE_ONLY is true for the current function.
7246         * predict.c (choose_function_section): Return immediately if we
7247         are doing hot/cold partitioning (i.e. let the basic block partitioning
7248         determine where the function belongs).
7249         * reg-stack.c (emit_swap_insn): Add condition to step over
7250         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
7251         * toplev.c (user_defined_section_attribute): New global variable.
7252         * toplev.h (user_defined_section_attribute): Extern declaration
7253         for new global variable.
7254         * varasm.c (unlikely_section_label): New global variable.
7255         (unlikely_text_section_name): New global variable.
7256         (unlikely_text_section): Add code to initialize
7257         unlikely_text_section_name if necessary; modify to use
7258         unlikely_text_section_name and unlikely_section_label; also to use
7259         named_section properly.
7260         (in_unlikely_text_section):  Modify to work correctly with
7261         named_section and to use unlikely_text_section_name.
7262         (named_section):  Add code to work properly with cold section.
7263         (function_section): Clean up if-statement.
7264         * config/darwin.c (darwin_asm_named_section): Return to original
7265         code, removing use of SECTION_FORMAT_STRING.
7266         * config/arm/pe.h (switch_to_section):  Add case for
7267         in_unlikely_executed_text to switch statement.
7268         * config/i386/cygming.h (switch_to_section): Likewise.
7269         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
7270         (SECTION_FORMAT_STRING): Likewise.
7271         * config/mcore/mcore.h (switch_to_section): Likewise.
7272         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
7273         (SECTION_FORMAT_STRING): Remove.
7274
7275 2004-08-18  Roger Sayle  <roger@eyesopen.com>
7276
7277         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
7278         -ffixed-reg safe, by preserving the meanings of zero and one.
7279         (CALL_USED_REGISTERS): Likewise.
7280         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
7281
7282 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
7283
7284         * config/sh/sh.c (split_branches): Check the result of
7285         next_active_insn.
7286         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
7287         Call rtl_register_cfg_hooks.
7288
7289 2004-08-18  Richard Henderson  <rth@redhat.com>
7290
7291         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
7292         * alias.c (true_dependence): Update to match new semantics.
7293         (canon_true_dependence, write_dependence_p): Likewise.
7294         (anti_dependence, output_dependence): Update write_dependence_p args.
7295         (unchanging_anti_dependence): Remove.
7296         * calls.c (purge_mem_unchanging_flag): Remove.
7297         (fixup_tail_calls): Don't call it.
7298         (expand_call): Don't add unchanging memory to function usage.
7299         * expr.c (emit_block_move_via_libcall): Likewise.
7300         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
7301         (get_subtarget): Don't use RTX_UNCHANGING_P.
7302         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
7303         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
7304         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
7305         * cse.c (insert): Don't use RTX_UNCHANGING_P.
7306         (cse_insn, canon_hash): Use MEM_READONLY_P.
7307         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
7308         instead of RTX_UNCHANGING_P.
7309         * explow.c (maybe_set_unchanging): Remove.
7310         * expr.h (maybe_set_unchanging): Remove.
7311         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
7312         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
7313         (assign_parm_setup_reg, expand_function_start): Likewise.
7314         * integrate.c (copy_rtx_and_substitute): Likewise.
7315         * ra-rewrite.c (emit_colors): Likewise.
7316         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
7317         (fixup_match_1): Likewise.
7318         * reload1.c (reload, alter_reg): Likewise.
7319         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
7320         not RTX_UNCHANGING_P.
7321         (equiv_init_varies_p): Likewise.
7322         * loop-invariant.c (check_maybe_invariant): Likewise.
7323         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
7324         * loop.c (note_addr_stored): Likewise.
7325         (prescan_loop): Likewise. Don't check function usage for clobbered
7326         unchanging memory.
7327         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
7328         not RTX_UNCHANGING_P.
7329         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
7330         * varasm.c (force_const_mem): Likewise.
7331         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
7332         * web.c (entry_register): Likewise.
7333         * tree-gimple.h (get_base_address): Move decl ...
7334         * tree.h: ... here.
7335         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
7336
7337         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
7338         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
7339         (alpha_set_memflags): Update to match.
7340
7341         * config/darwin.c (machopic_indirect_data_reference): Set
7342         MEM_READONLY_P instead of RTX_UNCHANGING_P.
7343         (machopic_indirect_call_target): Likewise.
7344         (machopic_legitimize_pic_address): Likewise.
7345         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
7346         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
7347         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
7348         * config/frv/frv.md (symGOT2reg): Likewise.
7349         * config/i386/i386.c (legitimize_pic_address,
7350         legitimize_tls_address, ix86_split_to_parts): Likewise.
7351         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
7352         * config/ia64/ia64.md (load_fptr): Likewise.
7353         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
7354         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
7355         * config/mcore/mcore.c (block_move_sequence): Likewise.
7356         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
7357         * config/pa/pa.c (legitimize_pic_address): Likewise.
7358         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
7359         (rs6000_emit_move): Likewise.
7360         * config/s390/s390.c (legitimize_pic_address): Likewise.
7361         (legitimize_tls_address): Likewise.
7362         * config/s390/s390.md (casesi): Likewise.
7363         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
7364         * config/sh/sh.md (symGOT2reg): Likewise.
7365         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
7366         * config/v850/v850.md (casesi): Likewise.
7367
7368         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
7369         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
7370         * config/mips/mips.c (mips_restore_gp): Likewise.
7371         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
7372         * config/sh/sh.c (sh_reorg): Likewise.
7373
7374 2004-08-18  Richard Henderson  <rth@redhat.com>
7375
7376         * tree.h (struct tree_decl): Add gimple_formal_temp.
7377         (DECL_GIMPLE_FORMAL_TEMP_P): New.
7378         * gimplify.c (pop_gimplify_context): Clear it.
7379         (lookup_tmp_var): Set it, if is_formal.
7380         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
7381         Use is_gimple_val for VECTOR.  Simplify return value.
7382         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
7383         (gimplify_expr): Likewise.
7384         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
7385         is_gimple_tmp_rhs for clarity.  Update all callers.
7386         (is_gimple_reg_rhs): Simplify logic.
7387         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
7388         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
7389         (is_gimple_formal_tmp_reg): Similarly.
7390         * tree-gimple.h: Update decls.
7391         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
7392         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
7393         * tree-ssa-live.c (var_union, type_var_init): Likewise.
7394
7395 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
7396
7397         * c4x.c (legitimize_operands): Remove calls to
7398         preserve_subexpressions_p.
7399
7400 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
7401
7402         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
7403         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
7404
7405 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
7406
7407         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
7408         Objective-C++ extensions.
7409         * gengtype.c (get_file_basename): Match entire subdirectory name
7410         ('cp', 'objc', 'objcp') rather than just its suffix.
7411         (get_base_file_bitmap): Allow for files to belong to more than one
7412         language.
7413         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
7414         used by more than one front-end.
7415
7416 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
7417
7418         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
7419         avoid use of preserve_subexpressions_p.
7420
7421 2004-08-17  Richard Henderson  <rth@redhat.com>
7422
7423         PR 17051
7424         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
7425
7426 2004-08-17  DJ Delorie  <dj@redhat.com>
7427
7428         * doc/extend.texi: Document new xstormy16 attribute.
7429
7430         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
7431         (xstormy16_splittable_below100_or_register): New.
7432         (combine_bnp): New.
7433         (xstormy16_reorg): New.
7434         (TARGET_MACHINE_DEPENDENT_REORG): Define.
7435
7436         * config/stormy16/stormy16.md (movqi_internal): Make name public.
7437         (movhi_internal): Likewise.
7438         (cbhranchhi): Likewise.
7439         (cbhranchhi_neg): Likewise.
7440         (andhi3): Only allow splittable below100 operands.
7441         (iorhi3): Likewise.
7442         (peephole2): New and/zero_extend->and peephole.
7443         (peephole2): New load/ior/save->set1 peephole.
7444         (peephole2): New load/and/save->clr1 peephole.
7445         (bclrx, bclrx2, bclr7, bclr15): New.
7446         (bsetx, bsetx2, bset7, bset15): New.
7447
7448         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
7449         liberal about acceptable 'B' masks.
7450
7451         * config/stormy16/stormy16-protos.h
7452         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
7453         xstormy16_below100_operand, xstormy16_below100_or_register,
7454         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
7455         (PREDICATE_CODES): Add new predicates.
7456
7457         * config/stormy16/stormy16.c
7458         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
7459         xstormy16_below100_operand, xstormy16_below100_or_register,
7460         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
7461         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
7462         (xstormy16_legitimate_address_p): Allow below100 symbols.
7463         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
7464         (xstormy16_expand_move): Leave below100 operands as-is.
7465         (xstormy16_encode_section_info): Encode below100 symbols.
7466         (xstormy16_strip_name_encoding): New.
7467         (xstormy16_print_operand): Print 'b' as shift mask.
7468         (xstormy16_attribute_table): Add below100 attributes.
7469         (xstormy16_handle_below100_attribute): New.
7470
7471         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
7472         (XSTORMY16_SECTION_FUNCTION): New.
7473         (EXTRA_SECTION_FUNCTIONS): Define using the above.
7474         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7475         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
7476         (ASM_OUTPUT_LABELREF): Define.
7477
7478         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
7479         (movhi_internal): Add below100 support.
7480         (andhi3): Add below100 support.
7481         (iorhi3): Add below100 support.
7482         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
7483
7484 2004-08-17  James E Wilson  <wilson@specifixinc.com>
7485
7486         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
7487         of VOIDmode for comparison code mode.
7488         * config/mips/mips.md: For conditional move patterns, use mode of
7489         first compare operand for comparison mode, instead of VOIDmode.
7490
7491         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
7492         normal and -ffast-math code.
7493
7494 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
7495
7496         PR c++/15871
7497         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
7498
7499 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
7500
7501         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
7502
7503 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
7504
7505         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
7506         for non Darwin targets.
7507         (*call_value_nonlocal_darwin64): Likewise.
7508
7509 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
7510
7511         * config/rs6000/rs6000.c (rs6000_function_value): Check for
7512         altivec mode for altivec return register.
7513
7514 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
7515
7516         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
7517         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
7518         * config/rs6000/rs6000.md: Include darwin.md.
7519         (builtin_setjmp_receiver): Add DImode case.
7520         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
7521         Darwin bits.
7522
7523 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
7524
7525         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
7526         trees.
7527         * tree-vectorizer.h: New File: Same.
7528         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
7529         * common.opt (ftree-vectorize): New flag to enable vectorization.
7530         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
7531         vectorization pass.
7532         * tree-data-ref.h (init_data_ref): Additional argument.
7533         (array_base_name_differ_p): Moved to tree-data-ref.c.
7534         * tree-data-ref.c (array_base_name_differ_p): Revised.
7535         (initialize_data_dependence_relation): Call array_base_name_differ_p
7536         with an extra argument.
7537         (analyze_all_data_dependences): Same.
7538         (init_data_ref): Additional argument is_read to set DR_IS_READ.
7539         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
7540         file.
7541         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
7542         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
7543         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
7544         vectorization pass.
7545         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
7546         (tree_ssa_loop_done): Call scev_finalize.
7547         (tree_vectorize): Define the new vectorization pass.
7548         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
7549         size of the vector they support (until support for multiple vector
7550         sizes is added to the vectorizer).
7551         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
7552         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
7553         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
7554         documentation.
7555
7556 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
7557
7558         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
7559         usage.
7560         (generate_protocol_list, handle_impent): Likewise.
7561
7562 2004-08-17  Roger Sayle  <roger@eyesopen.com>
7563
7564         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
7565         ensure that call_used_regs is a superset of both fixed_regs and
7566         call_really_used_regs.
7567
7568 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
7569
7570         PR target/17019
7571         * arm.md (addsi3_cbranch_scratch): Correct case labels.
7572
7573 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
7574
7575         PR middle-end/17036
7576         * fold-const.c (fold): Check for integer operand when
7577         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
7578         Pinski  <pinskia@physics.uc.edu>.
7579
7580 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
7581
7582         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
7583         No need to check if in a cross configuration.
7584         * configure: Regenerate.
7585
7586         * calls.c (precompute_register_parameters):
7587         Inline preserve_subexpressions_p ().
7588         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
7589         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
7590         Likewise.
7591         * expr.c (get_subtarget): Likewise.
7592         * rtl.h (preserve_subexpressions_p): Remove.
7593         * stmt.c (preserve_subexpressions_p): Remove.
7594
7595         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
7596         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
7597         Abort on gimplified cases.
7598
7599 2004-08-16  James E Wilson  <wilson@specifixinc.com>
7600
7601         * tree.h (VECTOR_FLOAT_TYPE_P): New.
7602         (FLOAT_TYPE_P): Use it.
7603         * c-typeck.c (build_binary_op): After convert calls, check for
7604         check for ERROR_MARK operands.
7605
7606 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
7607
7608         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
7609         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
7610         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
7611         (genobjs static pattern rule): Remove %.c dependency.
7612         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
7613         Rename rules; delete commands; fix dependencies.
7614         (mostlyclean): Do not delete temporary source copies.
7615         * configure.ac: Delete all references to BUILD_PREFIX and
7616         BUILD_PREFIX_1.
7617         * configure: Regenerate.
7618
7619         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
7620         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
7621         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
7622         with #ifndef GENERATOR_FILE so that nothing from those headers
7623         is used.
7624
7625         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
7626
7627 2004-08-16  Adam Nemet  <anemet@lnxw.com>
7628
7629         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
7630
7631 2004-08-16  Andrew Pinski  <apinski@apple.com>
7632
7633         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
7634         extraneous semicolon.
7635
7636 2004-08-16  Devang Patel  <dpatel@apple.com>
7637
7638         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
7639         * print-tree.c (print_node): Print DECL_PRESERVE_P.
7640         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
7641         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
7642         * target.h (struct gcc_target): New member, mark_decl_preserved.
7643         * hooks.c (hook_void_charptr): Rename to ...
7644         (hook_void_constcharptr): ... new name.
7645         * hooks.h (hook_void_charptr): Rename to ..
7646         (hook_void_constcharptr): ... new name.
7647         * tree.h (DECL_PRESERVE_P): New #define.
7648         (struct tree_decl): New member, preserve_flag.
7649         * varasm.c (assemble_start_function): Mark decl preserved.
7650         (assemble_variable): Same.
7651         * darwin.c (darwin_mark_decl_preserved): New function.
7652         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
7653         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
7654         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
7655
7656 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
7657
7658         * c-decl.c (grokdeclarator): Allow for function definition where
7659         innermost declarator has attributes.
7660
7661 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
7662
7663         * except.c (get_exception_filter, build_post_landing_pads,
7664         dw2_build_landing_pads): Use target-specific mode for 'filter'.
7665         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
7666         * target.h (eh_return_filter_mode): New field added.
7667         * targhooks.c (default_eh_return_filter_mode): Defined.
7668         * targhooks.h (default_eh_return_filter_mode): Declared.
7669         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
7670
7671 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
7672
7673         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
7674         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
7675         * configure: Regenerate.
7676
7677 2004-08-16  Stan Shebs  <shebs@apple.com>
7678
7679         Basic support for 64-bit Darwin.
7680         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
7681         (machopic_legitimize_pic_address): Similarly, plus use Pmode
7682         instead of SImode.
7683         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
7684         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
7685         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
7686         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
7687         (PROCESSOR_DEFAULT64): Define.
7688         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
7689         Darwin.
7690         * config/rs6000/rs6000.md: Include darwin.md.
7691         (builtin_setjmp_receiver): Add DImode case.
7692         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
7693         Darwin.
7694         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
7695         (rs6000_emit_move): Add DImode case to Darwin bits.
7696         (machopic_output_stub): Use .quad if 64-bit.
7697         * invoke.texi: Document -m32 and -m64.
7698
7699 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
7700
7701         * doc/extend.texi (AltiVec builtins): Document additional differences
7702         from the Motorola AltiVec PIM.
7703
7704 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7705
7706         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
7707         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
7708         (struct tree_common): Update public_flag documentation.
7709
7710 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
7711
7712         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7713         Check for artificial variables, not is_gimple_tmp_var.
7714         * tree-ssa-live.c (var_union): Likewise.
7715
7716 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7717
7718         * calls.c (load_register_parameters): Remove spurious FIXME token.
7719
7720 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
7721
7722         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
7723         (c-lang.o): Depend on c-objc-common.h.
7724         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
7725         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
7726         * c-lang.c: Include c-objc-common.h.
7727         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
7728         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
7729         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
7730         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
7731         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
7732         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
7733         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
7734         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
7735         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
7736         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
7737         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
7738         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
7739         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7740         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
7741         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
7742         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
7743         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
7744         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
7745         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
7746         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
7747         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
7748         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
7749         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
7750         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
7751         Move to c-objc-common.h.
7752         * c-objc-common.c: Include c-objc-common.h.
7753         * c-objc-common.h: New file.
7754
7755 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
7756             Andrew Pinski  <pinskia@physics.uc.edu>
7757
7758         PR target/14931
7759         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
7760         style.
7761
7762 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
7763
7764         * tree.h (build_int_cst): New.
7765         (build_int_2): Remove.
7766         * tree.c (build_int_2): Remove.
7767         (build_int_cst): New.
7768         (make_vector_type, build_common_tree_nodes,
7769         build_common_tree_nodes_2): Use build_int_cst.
7770         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
7771         expand_builtin_strpbrk, expand_builtin_fputs,
7772         build_string_literal, expand_builtin_printf,
7773         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
7774         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
7775         fold_builtin_isdigit, simplify_builtin_strstr,
7776         simplify_builtin_strpbrk, fold_builtin_fputs,
7777         simplify_builtin_sprintf): Use build_int_cst.
7778         * c-common.c (start_fname_decls, fix_string_type,
7779         c_common_nodes_and_builtins, c_init_attributes,
7780         shorten_compare): Likewise.
7781         * c-decl.c (complete_array_type,
7782         check_bitfield_type_and_width): Likewise.
7783         * c-lex.c (interpret_integer, lex_charconst): Likewise.
7784         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
7785         * c-pretty-print.c (pp_c_integer_constant): Likewise.
7786         * c-typeck.c (really_start_incremental_init, push_init_level,
7787         set_nonincremental_init_from_string): Likewise.
7788         * calls.c (load_register_parameters): Likewise.
7789         * convert.c (convert_to_pointer): Likewise.
7790         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
7791         build_fn_info_type, build_ctr_info_value, build_gcov_info):
7792         Likewise.
7793         * except.c (init_eh, assign_filter_values, assign_filter_values):
7794         Likewise.
7795         * expmed.c (store_fixed_bit_field, extract_bit_field,
7796         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
7797         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
7798         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
7799         * expr.c (convert_move, emit_group_load, emit_group_store,
7800         expand_assignment, store_constructor, store_field,
7801         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7802         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
7803         invert_truthvalue, optimize_bit_field_compare,
7804         decode_field_reference, all_ones_mask_p, constant_boolean_node,
7805         fold_div_compare, fold, fold_read_from_constant_string,
7806         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
7807         * function.c (assign_parm_setup_block): Likewise.
7808         * stmt.c (shift_return_value, expand_end_case_type,
7809         estimate_case_costs): Likewise.
7810         * stor-layout.c (layout_type, initialize_sizetypes,
7811         set_min_and_max_values_for_integral_type): Likewise.
7812         * tree-chrec.c (chrec_fold_multiply_poly_poly,
7813         reset_evolution_in_loop): Likewise.
7814         * tree-chrec.h (build_polynomial_chrec): Likewise.
7815         * tree-complex.c (build_replicated_const): Likewise.
7816         * tree-eh.c (honor_protect_cleanup_actions,
7817         lower_try_finally_onedest, lower_try_finally_copy,
7818         lower_try_finally_switch): Likewise.
7819         * tree-mudflap.c (mf_build_string, mx_register_decls,
7820         mudflap_register_call, mudflap_enqueue_constant): Likewise.
7821         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
7822         * tree-pretty-print.c (dump_generic_node): Likewise.
7823         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
7824         Likewise.
7825         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
7826         * tree-ssa-loop-niter.c (number_of_iterations_cond,
7827         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
7828         Likewise.
7829
7830         * config/alpha/alpha.c (alpha_initialize_trampoline,
7831         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
7832         * config/arm/arm.c (arm_get_cookie_size): Likewise.
7833         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
7834         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
7835         * config/i860/i860.c (i860_va_start): Likewise.
7836         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7837         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
7838         mips_gimplify_va_arg_expr): Likewise.
7839         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7840         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
7841         add_compiler_branch_island): Likewise.
7842         * config/s390/s390.c (s390_va_start): Likewise.
7843         * config/sh/sh.c (sh_va_start): Likewise.
7844         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
7845         Likewise.
7846         * config/xtensa/xtensa.c (xtensa_va_start,
7847         xtensa_gimplify_va_arg_expr): Likewise.
7848
7849         * objc/objc-act.c (build_objc_string_object,
7850         build_objc_symtab_template, init_def_list, init_objc_symtab,
7851         init_module_descriptor, generate_static_references,
7852         build_selector_translation_table, get_proto_encoding,
7853         build_typed_selector_reference, build_selector_reference,
7854         build_next_objc_exception_stuff,
7855         build_method_prototype_list_template, generate_descriptor_table,
7856         generate_protocols, build_protocol_initializer,
7857         build_ivar_list_template, build_method_list_template,
7858         build_ivar_list_initializer, generate_ivars_list,
7859         generate_dispatch_table, generate_protocol_list,
7860         build_category_initializer, build_shared_structure_initializer,
7861         generate_shared_structures, handle_impent,
7862         generate_objc_image_info): Use build_int_cst.
7863
7864 2004-08-15  Ben Elliston  <bje@au.ibm.com>
7865
7866         * vec.h: Comment improvements.
7867
7868 2004-08-14  Roger Sayle  <roger@eyesopen.com>
7869
7870         * c-common.c (shorten_compare, pointer_int_sum,
7871         c_common_truthvalue_conversion, boolean_increment): Replace calls
7872         to build with calls to buildN.
7873         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
7874         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
7875         gimplify_switch_stmt): Likewise.
7876         * c-typeck.c (default_function_array_conversion,
7877         build_component_ref, build_array_ref, build_function_call,
7878         pointer_diff, build_unary_op, build_conditional_expr,
7879         build_compound_expr, build_modify_expr, c_finish_goto_label,
7880         c_finish_goto_ptr, c_finish_return, c_finish_loop,
7881         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
7882         build_binary_op): Likewise.
7883
7884 2004-08-15  Steven Bosscher  <stevenb@suse.de>
7885
7886         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
7887
7888 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7889
7890         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
7891         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
7892         * fixinc/fixincl.x: Rebuilt.
7893
7894 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
7895
7896         * config/mips/mips-protos.h (mips_symbolic_constant_p)
7897         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
7898         (mips_small_data_pattern_p): Declare.
7899         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
7900         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
7901         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
7902         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
7903         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
7904         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
7905         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
7906         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
7907         (pc_or_label_operand, call_insn_operand, move_operand)
7908         (consttable_operand, symbolic_operand, general_symbolic_operand)
7909         (global_got_operand, local_got_operand, stack_operand)
7910         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
7911         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
7912         (mips_small_data_pattern_p): Replace previous small_data_pattern
7913         predicate.  Turn into a bool () (rtx) function.
7914         * config/mips/predicates.md: New file.
7915         * config/mips/mips.md: Include it.  Use the target-independent
7916         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
7917         trap_comparison_operator and equality_op to equality_operator.
7918         Replace uses of small_int with the equivalent const_arith_operand.
7919         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
7920         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
7921         to fcc_reload_operand.
7922         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
7923
7924 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7925
7926         PR libstdc++/17005 partial fix.
7927         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
7928         except when generating ANSI/C89 code.
7929
7930 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
7931
7932         * c-common.c (shorten_compare): Use force_fit_type directly.
7933
7934 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
7935             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
7936             Dave Korn  <dk@artimi.com>
7937
7938         * doc/install.texi (Building): Avoid duplicate reference to GNU
7939         make requirement.
7940         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
7941
7942 2004-08-14  Richard Henderson  <rth@redhat.com>
7943
7944         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
7945         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
7946
7947 2004-08-13  Richard Henderson  <rth@redhat.com>
7948
7949         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
7950         for constant_call_address_operand.
7951         (call_value_pop_1, call_value_1): Likewise.
7952         (sibcall_value_1, call_value_1_rex64): Likewise.
7953
7954 2004-08-13  James E Wilson  <wilson@specifixinc.com>
7955
7956         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
7957         Correct mode from SFmode to DFmode.
7958
7959 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
7960
7961         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
7962         __cstring_object and __image_info sections with the no_dead_strip
7963         attribute.
7964
7965 2004-08-13  Roger Sayle  <roger@eyesopen.com>
7966             David Billinghurst  <David.Billinghurst@riotinto.com>
7967
7968         PR libgfortran/15930
7969         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
7970         * fixinc/fixincl.x: Regenerate.
7971         * fixinc/tests/base/internal/math_core.h: New file.
7972
7973 2004-08-13  Richard Henderson  <rth@redhat.com>
7974
7975         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
7976         (dbxout_function_end): Remove ifdefs for it.
7977         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
7978
7979 2004-08-13  Richard Henderson  <rth@redhat.com>
7980
7981         * Makefile.in (insn-preds.o): Depend on TREE_H.
7982         * genpreds.c (write_insn_preds_c): Include tree.h.
7983         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
7984         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
7985         const48_operand, and_operand, or_operand, mode_width_operand,
7986         mode_mask_operand, mul8_operand, const0_operand,
7987         hard_fp_register_operand, hard_int_register_operand,
7988         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
7989         samegp_function_operand, direct_call_operand, small_symbolic_operand,
7990         global_symbolic_operand, call_operand, symbolic_operand,
7991         dtp16_symbolic_operand, dtp32_symbolic_operand,
7992         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
7993         gottp_symbolic_operand, alpha_comparison_operator,
7994         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
7995         signed_comparison_operator, alpha_fp_comparison_operator,
7996         divmod_operator, fix_operator, aligned_memory_operand,
7997         unaligned_memory_operand, reg_or_unaligned_mem_operand,
7998         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
7999         reg_no_subreg_operand, addition_operation): Move to predicates.md.
8000         (reg_or_const_int_operand): Remove.  Replace all users with
8001         reg_or_cint_operand.
8002         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
8003         (resolve_reload_operand): Split out of aligned_memory_operand.
8004         * config/alpha/alpha-protos.h: Update for exports.
8005         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
8006         * config/alpha/alpha.md: Include predicates.md.
8007         * config/alpha/predicates.md: New file.
8008
8009 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
8010
8011         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
8012         fields with a pointer to the instruction definition.
8013         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
8014         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
8015         (write_attr_case, write_const_num_delay_slots): Update accordingly.
8016         (write_attr_case, write_const_num_delay_slots): Write the name of
8017         an insn next to its case statement.
8018         * genoutput.c (data): Add a filename field.
8019         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
8020         (output_insn_data): Print the location of each insn definition.
8021         * genrecog.c (write_action): Print the name of an insn above
8022         the statement that returns its code.
8023
8024 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
8025
8026         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
8027         * config/libgloss.h: Likewise.
8028         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
8029         * c4x/c4x-modes.def: Likewise.
8030         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
8031         (c4x_rptb_nop_p): Likewise.
8032         (c4x_rptb_valid_p): Likewise.
8033         (c4x_rptb_insert): Likewise.
8034         (c4x_address_conflict): Likewise.
8035         * config/c4x/c4x.md: Likewise.
8036         * config/frv/frv.md: Likewise.
8037         * config/i386/athlon.md: Likewise.
8038         * config/i386/i386.md: Likewise.
8039         * config/i386/predicates.md: Likewise.
8040         * config/ia64/ia64.c: Likewise.
8041         * config/ia64/itanium1.md: Likewise.
8042         * config/ia64/itanium2.md: Likewise.
8043         * config/iq2000/iq2000.md: Likewise.
8044         * config/mcore/mcore.c: Likewise.
8045         * config/mips/mips.c: Likewise.
8046         * config/mips/r3900.h: Likewise.
8047         * config/mips/sb1.md: Likewise.
8048         * config/pa/milli64.S: Likewise.
8049         * config/pa/pa.c: Likewise.
8050         * config/pa/pa.h: Likewise.
8051         * config/rs6000/8540.md: Likewise.
8052
8053 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
8054
8055         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
8056
8057 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
8058
8059         * sh.md (cbranch define_delay) Use cond_delay_slot for
8060         non-anulled condition too.
8061
8062 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
8063
8064         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
8065         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
8066         any_parallel_operand, lmw_operation, stmw_operation,
8067         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
8068         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
8069         any_parallel_operand.
8070         (return_and_restore_fpregs_{si,di}): Same.
8071
8072 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
8073
8074         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
8075         if pred->singleton != PARALLEL, issue a warning and pretend it was.
8076         Also issue a warning for any predicate we don't know about.
8077
8078 2004-08-12  Richard Henderson  <rth@redhat.com>
8079
8080         * config/i386/i386.c (internal_label_prefix): Export.
8081         (internal_label_prefix_len, struct ix86_address,
8082         ix86_decompose_address, maybe_get_pool_constant,
8083         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
8084         memory_address_length): Export.
8085         (any_fp_register_operand, fp_register_operand,
8086         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
8087         x86_64_general_operand, x86_64_szext_general_operand,
8088         x86_64_nonmemory_operand, x86_64_movabs_operand,
8089         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
8090         x86_64_zext_immediate_operand, const_int_1_31_operand,
8091         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
8092         tls_symbolic_operand, global_dynamic_symbolic_operand,
8093         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
8094         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
8095         constant_call_address_operand, const0_operand, const1_operand,
8096         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
8097         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
8098         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
8099         general_no_elim_operand, nonmemory_no_elim_operand,
8100         index_register_operand, q_regs_operand, flags_reg_operand,
8101         non_q_regs_operand, zero_extended_scalar_load_operand,
8102         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
8103         ix86_comparison_operator, ix86_carry_flag_operator,
8104         fcmov_comparison_operator, promotable_binary_operator,
8105         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
8106         mult_operator, div_operator, arith_or_logical_operator,
8107         memory_displacement_operand, cmpsi_operand, long_memory_operand,
8108         aligned_operand): Move to predicates.md as define_predicates.
8109         (tls_symbolic_operand_1): Remove.
8110         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
8111         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
8112         (legitimize_address): Merge tls_symbolic_operand contents.
8113         (ix86_expand_move): Likewise.
8114         * config/i386/i386-protos.h: Update for exports.
8115         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
8116         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
8117         * config/i386/i386.md: Include predicates.md.
8118         * config/i386/predicates.md: New file.
8119
8120 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
8121
8122         PR c++/16924
8123         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
8124         SYMBOL_REF_DECL.
8125         (i386_pe_mark_dllimport): Likewise.
8126         (i386_pe_encode_section_info): Likewise, when overriding
8127         dllimport attribute.
8128
8129 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
8130
8131         * configure.ac: When testing for flex, nm, ar, and bison, check
8132         that they will actually be built.
8133         * configure: Regenerate.
8134
8135 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
8136
8137         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
8138         (MOVE_MAX_PIECES): Define.
8139
8140 2004-08-12  Devang patel  <dpatel@apple.com>
8141
8142         * dbxout.c (dbxout_begin_prologue): New function.
8143         (dbx_debug_hooks): Use new begin prologue hook.
8144         (dbxout_function_end): Emit N_ENSYM.
8145         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
8146
8147 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
8148
8149         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
8150         argument is float*.
8151
8152         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
8153         for vec_dss.
8154
8155         * doc/extend.texi (AltiVec builtins): Fix description for recent
8156         changes.  Update operation list to match current support.
8157
8158 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
8159
8160         * config/s390/s390.c (struct s390_frame_layout): New struct as element
8161         of struct machine_function.
8162         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
8163         changed all uses.
8164         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
8165         changed all uses.
8166         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
8167         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
8168         (s390_frame_area, s390_register_info): New functions.
8169         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
8170         for base register.
8171         (s390_return_addr_rtx, s390_return_address_offset)
8172         (s390_va_start, s390_gimplify_va_arg)
8173         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
8174         layouts.
8175         (s390_frame_info): Functionality partly moved to s390_register_info.
8176         Made adaptions for new stack layout.
8177         (save_gprs, restore_gprs): Changed meaning of second parameter and
8178         adapted all callers.
8179
8180         * config/s390/s390.h (s390_backchain_string): New global variable.
8181         (MASK_BACKCHAIN): Removed definition.
8182         (TARGET_BACKCHAIN): Changed check.
8183         (TARGET_KERNEL_BACKCHAIN): New macro.
8184         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
8185         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
8186         "kernel-backchain".
8187         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
8188
8189         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
8190         as condition.  Adjusted for new stack layout.
8191
8192         * doc/invoke.texi: Added documentation for new option
8193         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
8194         "-mno-backchain".
8195
8196 2004-08-12  Paul Brook  <paul@codesourcery.com>
8197
8198         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
8199         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
8200
8201 2004-08-12  David Daney  <ddaney@avtrex.com>
8202
8203         * java/gcj.texi:  Add subsection on signal usage.
8204
8205 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
8206
8207         * expr.c (move_by_pieces): Set alignment for move to minimum of
8208         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
8209         alignment, but not less than the original alignment.
8210         (move_by_pieces_ninsns): Same.
8211         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
8212         (store_by_pieces_1): Same.
8213
8214 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
8215
8216         PR tree-optimization/16867
8217         * tree.c (is_global_var): New function.
8218         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
8219         Call is_global_var.
8220         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
8221         Update all users.
8222         (is_global_var): Declare.
8223         * tree-dfa.c (dump_variable): Display global and addressable
8224         attributes.
8225         (add_referenced_var): Clarify documentation when marking
8226         variables call-clobbered.
8227         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
8228         instead of needs_to_live_in_memory.
8229         (mark_call_clobbered): If the variable is a tag, mark it
8230         DECL_EXTERNAL.
8231         * tree-gimple.c (is_gimple_reg): Don't check for
8232         TREE_ADDRESSABLE.
8233         (is_gimple_non_addressable): Likewise.
8234         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
8235         needs to be marked call-clobbered.
8236         (setup_pointers_and_addressables): Call is_global_var instead
8237         of needs_to_live_in_memory.
8238         * tree-ssa-dce.c (need_to_preserve_store): Remove.
8239         Update all users with is_global_var.
8240         (mark_stmt_if_obviously_necessary): Fix processing of aliased
8241         stores.  Don't check the virtual definitions.  Rather, check
8242         whether the store is going into global memory.
8243         (find_obviously_necessary_stmts): Get the symbol from the PHI
8244         result.
8245         * tree-ssa-operands.c (get_call_expr_operands): Do not add
8246         clobbering may-defs if the call does not have side effects.
8247
8248 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
8249
8250         PR c++/16276
8251         * output.h (default_function_rodata_section,
8252         default_no_function_rodata_section): New prototypes.
8253         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
8254         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
8255         (TARGET_ASM_OUT): Add it.
8256         * varasm.c (default_function_rodata_section,
8257         default_no_function_rodata_section): New functions.
8258         * final.c (final_scan_insn): Call
8259         targetm.asm_out.function_rodata_section instead of
8260         readonly_data_section.
8261         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
8262         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
8263         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
8264         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
8265         Likewise.
8266         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
8267         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
8268         Likewise.
8269         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
8270         Likewise.
8271         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
8272         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
8273         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
8274
8275 2004-08-12  Paul Brook  <paul@codesourcery.com>
8276
8277         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
8278         frame info.
8279         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
8280         DWARF2_UNWIND_INFO.
8281
8282 2004-08-12  Ben Elliston  <bje@au.ibm.com>
8283
8284         PR target/16286
8285         * config/rs6000/altivec.h: Change vector to __vector throughout.
8286         (Except for the `vector' macro itself).
8287
8288 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
8289
8290         * genpreds.c: Add capability to generate predicate bodies as
8291         well as function prototypes.  Write function prototypes for
8292         the generic predicates too.
8293         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
8294         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
8295         (write_match_code, write_predicate_expr, write_one_predicate_function)
8296         (parse_option): New functions.
8297         (output_predicate_decls): Delete.
8298         (main): Read the machine description, process DEFINE_PREDICATE or
8299         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
8300         as appropriate.
8301
8302         * genrecog.c (struct decision_test): Replace index with
8303         struct pred_data pointer.
8304         (next_index): Remove, unused.
8305         (pred_table, preds, special_mode_pred_table): Delete.
8306         (compute_predicate_codes, process_define_predicate): New functions.
8307         (validate_pattern, add_to_sequence, write_switch): Update for
8308         new data structures.
8309         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
8310         Check both error_count and have_error.
8311
8312         * gensupport.c (in_fname, first_predicate): New globals.
8313         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
8314         (predicate_table, last_predicate, old_pred_table)
8315         (old_special_pred_table): New statics.
8316         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
8317         (add_predicate, init_predicate_table): New functions.
8318         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
8319         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
8320         it or max_include_len.  Call init_predicate_table.
8321         (read_rtx): Run the predicate queue after the attribute queue
8322         but before all the others.
8323         * gensupport.h (in_fname, struct pred_data, first_predicate)
8324         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
8325         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
8326         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
8327         * dummy-conditions.c: Don't include bconfig.h, system.h,
8328         coretypes.h, tm.h, or system.h.  Do include stddef.h.
8329         Duplicate declaration of struct c_test from gensupport.h.
8330
8331         * Makefile.in (OBJS-common): Add insn-preds.o.
8332         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
8333         (insn-preds.c, insn-preds.o): New rules.
8334         (s-preds): Also generate insn-preds.c.
8335         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
8336         Update dependencies.
8337         (print-rtl.o, print-rtl1.o): Correct dependencies.
8338
8339         * recog.h: Delete prototypes of predicate functions.
8340
8341         * doc/md.texi (Predicates): New section with complete
8342         documentation of operand/operator predicates.  Remove some
8343         incomplete documentation of predicates from other places.
8344         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
8345         PREDICATE_CODES; indicate that both are deprecated in favor
8346         of define_predicate/define_special_predicate.
8347
8348         * config/ia64/ia64.c: All predicate function definitions moved
8349         to ia64.md, except
8350         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
8351         (ia64_expand_load_address, ia64_expand_move):
8352         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
8353
8354         * config/ia64/ia64.md: All predicates now defined here.
8355         (symbolic_operand): Is now a special predicate.
8356
8357         * config/ia64/ia64.h: Declare ia64_section_threshold.
8358         (PREDICATE_CODES): Delete.
8359
8360 2004-08-12  Richard Henderson  <rth@redhat.com>
8361
8362         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
8363         * c-semantics.c (add_stmt): Set it.
8364         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
8365         before instantiating a variable sized type.
8366
8367 2004-08-12  Richard Henderson  <rth@redhat.com>
8368
8369         * stor-layout.c (round_up, round_down): Move ...
8370         * fold-const.c (round_up, round_down): ... here.  Use
8371         multiple_of_p to avoid any arithmetic at all.
8372
8373 2004-08-12  Richard Henderson  <rth@redhat.com>
8374
8375         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
8376         (gimplify_init_ctor_preeval_1): New.
8377         (gimplify_init_ctor_preeval): New.
8378         (gimplify_init_ctor_eval): New.
8379         (gimplify_init_constructor): Use them.  Always gimplify the LHS
8380         object first.
8381
8382 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
8383
8384         (This patch is part of merge of objc-improvements-branch
8385         into mainline.)
8386
8387         * doc/frontends.texi: Mention Objective-C++ in addition to
8388         Objective-C.
8389         * doc/install.texi: Add 'obj-c++' to list of configurable
8390         languages.
8391         * doc/invoke.texi: Rename Objective-C option headings to
8392         indicate they also apply to Objective-C++.  List file
8393         extensions for Objective-C++ sources.  Mention that
8394         ObjC and ObjC++ compilations may also use C and C++ options,
8395         respectively.  Point users to doc/standards.texi for
8396         further info on ObjC and ObjC++.
8397         * doc/sourcebuild.texi: Mention the objcp/ directory and
8398         the Objective-C++ sources it contains.
8399         * doc/standards.texi: Update link to Apple ObjC site;
8400         add link to gcc readings.html WWW doc.
8401
8402 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
8403
8404         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
8405         and 2004-07-14 changes.
8406
8407 2004-08-12  Paul Brook  <paul@codesourcery.com>
8408
8409         * doc/invoke.texi: Fix typo.
8410
8411 2004-08-11 Devang Patel  <dpatel@apple.com>
8412
8413         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
8414         and -no_dead_strip_inits_and_terms.
8415         (LINK_SPEC): Same.
8416         * doc/invoke.texi (Darwin Options): Document -dead_strip and
8417         -no_dead_strip_inits_and_terms.
8418
8419 2004-08-11  Paul Brook  <paul@codesourcery.com>
8420
8421         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
8422         (arm_load_pic_register): ... to this.
8423         * config/arm/arm.c (arm_finalize_pic): Rename ...
8424         (arm_load_pic_register): ... to this.  Always output insns at the
8425         current location.  Load via low reg in thumb mode.
8426         (arm_expand_prologue): Call arm_load_pic_register.
8427         (thumb_expand_prologue): Ditto.
8428         * config/arm/arm.h (FINALIZE_PIC): Remove.
8429         * config/arm/arm.md (builtin_setjmp_receiver): Call
8430         arm_load_pic_register.
8431
8432 2004-08-11  Paul Brook  <paul@codesourcery.com>
8433
8434         * arm.c (thumb_force_lr_save): Add prototype.
8435         (thumb_compute_save_reg_mask): New function.
8436         (thumb_find_work_register): New function.
8437         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
8438         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
8439         Don't clobber r3 when removing pretend args.
8440         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
8441         (thumb_output_function_prologue): Use new functions.
8442         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
8443         * arm.h (THUMB_REG_PUSHED_P): Remove.
8444
8445 2004-08-11  James E Wilson  <wilson@specifixinc.com>
8446
8447         PR rtl-optimization/16490
8448         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
8449         global_live_at_end for new basic block if already set for other blocks.
8450
8451 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
8452
8453         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
8454
8455         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
8456         (mfcr rlwinm rlwinm patterns): Set length to 12.
8457
8458 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
8459
8460         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
8461         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
8462         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
8463         (start_ssa_stmt_operands): Delete.
8464         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
8465         struct stmt_operands_d.
8466         (build_ssa_operands): New extern entry point.
8467         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
8468         building code, replace with create_ssa_artficial_load_stmt().
8469         * tree-ssa-operands.c (struct voperands_d): Delete.
8470         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
8471         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
8472         (free_uses, free_defs, free_vuses, free_v_may_defs,
8473         free_v_must_defs): Remove dealloc parameter.
8474         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
8475         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
8476         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
8477         vector comparisons, ssa_name reuse, and allocations here.
8478         (verify_start_operands): Delete.
8479         (finalize_ssa_stmt_operands): Set new operands by calling finalize
8480         routines.
8481         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
8482         (append_def, append_usei): Simplify to simple accumulation.
8483         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
8484         duplicates and simple accumulation.
8485         (free_ssa_operands): Free vectors in a stmt_operand structure.
8486         (build_ssa_operands): New. Create a new stmt_operand structure from
8487         a stmt and an old set of stmt_operands.
8488         (get_stmt_operands): Simplify and call build_ssa_operands.
8489         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
8490         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
8491         add_call_read_ops): Don't pass prev_vops around anymore.
8492         (note_addressable): Return if no stmt annotation.
8493         (copy_virtual_operands): Access v_may_def operands through a struct.
8494         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
8495         hash tables without treating the stmt as a real stmt.
8496         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
8497         v_may_def def and use through a struct instead of 2 array elements.
8498         (struct v_may_def_optype_d): Use v_may_def_operand_type.
8499         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
8500
8501 2004-08-11  Nick Clifton  <nickc@redhat.com>
8502
8503         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
8504         this funciton's behaviour.  Return true when the current function
8505         has a section attribute and -mlong-calls is in effect.
8506         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
8507         short-call marker when -mlong-calls is in effect and the function
8508         has a section attribute.
8509
8510 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
8511
8512         * stmt.c (expand_return): If asked to return the RESULT_DECL,
8513         just call expand_value_return on result_rtl.
8514
8515 2004-08-10  Richard Henderson  <rth@redhat.com>
8516
8517         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
8518         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
8519         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
8520         (add_location_or_const_value_attribute): ... not here.  Use
8521         loc_descriptor_from_tree if possible.
8522         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
8523         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
8524         values specially.
8525         (loc_descriptor_from_tree): New.  Update callers.
8526         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
8527         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
8528         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
8529         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
8530         and BUILT_IN_STACK_RESTORE.
8531         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
8532         * stmt.c (expand_stack_alloc): Remove.
8533         * tree-mudflap.c (mx_register_decls): Don't look for
8534         BUILT_IN_STACK_ALLOC.
8535         * tree-nested.c (convert_local_reference): Likewise.
8536         * tree.h (DECL_VALUE_EXPR): New.
8537
8538 2004-08-10  Richard Henderson  <rth@redhat.com>
8539
8540         * stor-layout.c (round_up): Check for 0/1 before dividing.
8541         (round_down): Likewise.
8542
8543         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
8544
8545 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
8546
8547         * config.gcc (arm*-*-eabi*): New target.
8548         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
8549         (TARGET_LIB_INT_CMP_BIASED): Likewise.
8550         * expmed.c (expand_divmod): Try a two-valued divmod function as a
8551         last resort.
8552         * gthr.h: Remove bogus tokens at end of #pragma.
8553         * optabs.c (expand_twoval_binop_libfunc): New function.
8554         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
8555         (prepare_float_lib_cmp): Try reversing the condition.
8556         (debug_optab_libfuncs): New function.
8557         * optabs.h (expand_twoval_binop_libfunc): Declare.
8558         * config/arm/arm.c (arm_init_libfuncs): New function.
8559         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
8560         (TARGET_INIT_LIBFUNCS): Define it.
8561         * config/arm/arm.h (TARGET_BPABI): New macro.
8562         * config/arm/arm-protos.h
8563         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
8564         * config/arm/bpabi.S: New file.
8565         * config/arm/bpabi.c: Likewise.
8566         * config/arm/bpabi.h: Likewise.
8567         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
8568         (__aeabi_drsub): Likewise.
8569         (__aeabi_dsub): Likewise.
8570         (__aeabi_dadd): Likewise.
8571         (__aeabi_ui2d): Likewise.
8572         (__aeabi_i2d): Likewise.
8573         (__aeabi_f2d): Likewise.
8574         (__aeabi_dmul): Likewise.
8575         (__aeabi_ddiv): Likewise.
8576         (__aeabi_cdrcmple): Likewise.
8577         (__aeabi_cdcmpeq): Likewise.
8578         (__aeabi_cdcmple): Likewise.
8579         (__aeabi_dcmpeq): Likewise.
8580         (__aeabi_dcmplt): Likewise.
8581         (__aeabi_dcmple): Likewise.
8582         (__aeabi_dcmpge): Likewise.
8583         (__aeabi_dcmpgt): Likewise.
8584         (__aeabi_dcmpun): Likewise.
8585         (__aeabi_d2iz): Likewise.
8586         (__aeabi_d2uiz): Likewise.
8587         (__aeabi_d2f): Likewise.
8588         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
8589         (__aeabi_frsub): Likewise.
8590         (__aeabi_fsub): Likewise.
8591         (__aeabi_fadd): Likewise.
8592         (__aeabi_ui2f): Likewise.
8593         (__aeabi_i2f): Likewise.
8594         (__aeabi_fmul): Likewise.
8595         (__aeabi_fdiv): Likewise.
8596         (__aeabi_cfrcmple): Likewise.
8597         (__aeabi_cfcmpeq): Likewise.
8598         (__aeabi_cfcmple): Likewise.
8599         (__aeabi_fcmpeq): Likewise.
8600         (__aeabi_fcmplt): Likewise.
8601         (__aeabi_fcmple): Likewise.
8602         (__aeabi_fcmpge): Likewise.
8603         (__aeabi_fcmpgt): Likewise.
8604         (__aeabi_fcmpun): Likewise.
8605         (__aeabi_f2iz): Likewise.
8606         (__aeabi_f2uiz): Likewise.
8607         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
8608         (__aeabi_uidivmod): New function or alias.
8609         (__aeabi_idivmod): Likewise.
8610         (__aeabi_idiv0): Likewise.
8611         (__aeabi_ldiv0): Likewise.
8612         (__aeabi_llsr): Likewise.
8613         (__aeabi_lasr): Likewise.
8614         (__aeabi_llsl): Likewise.
8615         (bpabi.S): Include it.
8616         * config/arm/libgcc-bpabi.ver: New file.
8617         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
8618         (LINK_SPEC): Remove.
8619         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
8620         __aeabi_ulcmp.
8621         * config/arm/t-bpabi: New file.
8622         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
8623         (TARGET_LIB_INT_CMP_BIASED): Likewise.
8624
8625 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
8626
8627         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
8628         * config/rs6000/rs6000.md (clrmemsi): New pattern.
8629         * config/rs6000/rs6000.c (expand_block_clear): New function.
8630         (expand_block_move): Convert alignment to bits.  Use SImode and
8631         HImode for unaligned addresses if not STRICT_ALIGNMENT.
8632
8633 2004-08-10  Caroline Tice  <ctice@apple.com>
8634
8635         * varasm.c (unlikely_section_label): New global variable.
8636         (unlikely_text_section_name): New global variable.
8637         (text_section):  Remove alignment statement.
8638         (unlikely_text_section): Remove alignment statement; use
8639         unlikely_section_label rather than hard-coded string.
8640         (assemble_start_function): Initialize unlikely_section_label and
8641         unlikely_text_section_name;  make sure cold section is properly
8642         aligned at start of function; output unlikely_section_label if
8643         appropriate.
8644
8645 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
8646
8647         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
8648         * config/s390/s390.c (s390_canonicalize_comparison): New function.
8649         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
8650         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
8651         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
8652         ("*tmqi_mem"): Remove SUBREG from pattern.
8653         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
8654         ("*andsi3_cconly"): Likewise.
8655
8656 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8657
8658         PR target/16909
8659         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
8660
8661 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
8662
8663         * doc/sourcebuild.texi (compat testing): Document available test
8664         framework commands.  Use the preferred spelling of DejaGnu.
8665
8666 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
8667
8668         * lambda.h: Add matrix type, and prototypes for remainder of
8669         matrix and vector functions.
8670         (lambda_vector_mult_const): New function.
8671         (lambda_vector_negate): Ditto.
8672         (lambda_vector_add): Ditto.
8673         (lambda_vector_add_mc): Ditto.
8674         (lambda_vector_copy): Ditto.
8675         (lambda_vector_zerop): Ditto.
8676         (lambda_vector_equal): Ditto.
8677         (lambda_vector_min_nz): Ditto.
8678         (lambda_vector_first_nz): Ditto.
8679         (lambda_vector_matrix_mult): Ditto.
8680         * lambda-mat.c: New file.
8681         * Makefile.in (lambda-mat.o): New.
8682
8683 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
8684
8685         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
8686         after linking stmt into the program.
8687         (bsi_remove): Don't call modify_stmt.
8688         * tree-complex.c (update_complex_assignment,
8689         expand_complex_comparison): Call modify_stmt after changing the stmt.
8690         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
8691         removing the stmt.
8692         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
8693         the stmt, and only if needed.
8694         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
8695         expression.
8696         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
8697         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
8698         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
8699         (eliminate_redundant_computations): Don't pass an annotation. Call
8700         modify_stmt rather than setting the annotation directly.
8701         (record_equivalences_from_stmt): Remove unused local 'j'.
8702         (cprop_operand): Take a stmt rather than an annotation as a parameter.
8703         Call modify_stmt.
8704         (cprop_into_stmt): Pass stmt rather than annotation.
8705         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
8706         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
8707         modify_stmt.
8708         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
8709
8710 2004-08-10  Jason Merrill  <jason@redhat.com>
8711
8712         PR middle-end/16948
8713         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
8714         the RESULT_DECL.
8715
8716 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
8717
8718         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
8719         hash function.
8720
8721 2004-08-10  Roger Sayle  <roger@eyesopen.com>
8722
8723         * config/mips/mips.md: New reciprocal square root patterns that
8724         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
8725
8726 2004-08-10  Paul Brook  <paul@codesourcery.com>
8727
8728         * config/arm/arm-protos.h (arm_set_return_address,
8729         thumb_set_return_address): Add prototypes.
8730         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
8731         * config/arm/arm.c (arm_compute_func_type,
8732         use_return_insn, arm_compute_save_reg0_reg12_mask,
8733         arm_compute_save_reg_mask, arm_output_function_prologue,
8734         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
8735         current_function_calls_eh_return.
8736         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
8737         old eh code.
8738         (arm_set_return_address, thumb_set_return_address): New functions.
8739         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
8740         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
8741         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
8742         (epilogue): Use the stackadj register.
8743         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
8744
8745 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
8746
8747         PR target/3144
8748         * expr.c (move_by_pieces_ninsns): Add max_size argument.
8749         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
8750         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
8751         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
8752         but using MOVE_RATIO.
8753         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
8754         (can_store_by_pieces): Change max_size type to unsigned int.
8755         (store_by_pieces_1): Likewise.  Pass max_size to
8756         move_by_pieces_ninsns.
8757         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
8758         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
8759         to move_by_pieces_ninsns.
8760         (STORE_BY_PIECES_P): Define.
8761         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
8762         to move_by_pieces_ninsns.
8763         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
8764
8765         * config/i386/i386.h (CLEAR_RATIO): Define.
8766
8767 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8768
8769         * expr.c (expand_expr_real_1): Add back code that was not dead.
8770
8771 2004-08-09  Andrew Pinski  <apinski@apple.com>
8772
8773         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
8774         which is found to be compatible before returning the aliasing set.
8775
8776 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
8777
8778         * ggc-zone.c (struct alloc_zone): Add statistics counters.
8779         (always_collect): New flag.
8780         (ggc_alloc_zone_1): Update statistics support.  Don't include
8781         overhead in allocated counter.
8782         (sweep_pages): Update allocated counter for large pages.  Don'y
8783         include overhead.
8784         (ggc_collect_1): Always collect.
8785         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
8786         whether to collect.
8787         (SCALE, LABEL): New macros.
8788         (ggc_print_statistics): Add statistics support.
8789
8790 2004-08-09  Roger Sayle  <roger@eyesopen.com>
8791
8792         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
8793         (init_expmed): Fix potential overrun problem with "all.reg".
8794         (expand_sdiv2_pow2): Add an alternate implementation for signed
8795         division, if the target provides a suitable conditional move insn.
8796
8797 2004-08-09  Paul Brook  <paul@codesourcery.com>
8798         Richard Henderson  <rth@redhat.com>
8799
8800         * unwind-dw2.c (uw_install_context_1): Update target saved stack
8801         pointer.
8802
8803 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
8804
8805         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
8806         Check DATA limit only if there's no AS limit.  Ignore insanely
8807         low DATA limits.
8808         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
8809         but take care that the AS limit isn't overrun.
8810         * doc/invoke.texi: Update documentation of min-heapsize parameter.
8811
8812 2004-08-09  Jeff Law  <law@redhat.com>
8813
8814         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
8815         (tree-ssa-threadupdate.o): Add dependencies.
8816         * tree-ssa-threadupdate.c: New file.
8817         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
8818         (rewrite_vars_out_of_ssa): Remove prototype.
8819         (cleanup_tree_cfg): Returns a bool.
8820         * tree.h (thread_through_all_blocks): Prototype.
8821         * tree-outof-ssa.c  (SSANORM_*): Move into here.
8822         (remove_ssa_form): Now static.
8823         (rewrite_vars_out_of_ssa): Kill.
8824         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
8825         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
8826         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
8827         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
8828         anything was changed.
8829         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
8830         from the PHI's annotation rather than the edge associated with
8831         the new argument.
8832         * tree-ssa-dom.c (redirection_edges): Kill.
8833         (redirect_edges_and_update_ssa_graph): Kill.
8834         (tree_ssa_dominator_optimize): Do not reset forwardable flag
8835         for blocks anymore.  Do not initialize redirection_edges.
8836         Call thread_through_all_blocks.  Simplify code for cleanup
8837         of the CFG and iterating.  No longer call cleanup_tree_cfg
8838         outside the iteration loop.
8839         (thread_across_edge): No longer mess with forwardable blocks.
8840
8841 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
8842
8843         * explow.c (memory_address): Use memory_address_p.
8844         * recog.c (general_operand): Likewise.
8845         * regrename.c: No need to define REG_OK_STRICT.
8846
8847 2004-08-09  Steven Bosscher  <stevenb@suse.de>
8848
8849         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
8850         New timers.
8851         * gcse.c: Include timevar.h.
8852         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
8853         and global_copy_prop_count.
8854         (local_const_prop_count, local_copy_prop_count): New static globals.
8855         (gcse_main): Set the right timevar for each pass.
8856         (cprop_jump): Increment global_const_prop_count when a constant is
8857         propagated.  Add "GLOBAL" to dump output.
8858         (cprop_insn): Increment global_const_prop_count when a constant is
8859         propagated, or global_copy_prop_count when a copy is propagated.
8860         (do_local_cprop): Likewise for local_const_prop_count and
8861         local_copy_prop_count.
8862         (one_cprop_pass): Initialize const/cprop counters to zero.
8863         Print out results of local and global const/cprop separately.
8864         (bypass_block): Break over-length line.
8865         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
8866         for bb-reorder.o and tracer.o.
8867
8868 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8869
8870         * Makefile.in (GTFILES): Remove stmt.c
8871         (stmt.o): Do not depend on gt-stmt.h.
8872         * emit-rtl.c (emit_line_note): Do not call
8873         set_file_and_line_for_stmt.
8874         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
8875         do everything.
8876         * function.c (free_after_parsing): Do not free STMT field.
8877         (allocate_struct_function): Do not call init_stmt_for_function.
8878         (assign_stack_temp_for_type): Do not accept values of keep
8879         other than 0 or 1.
8880         (init_temp_slots): Do not initialize removed variables.
8881         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
8882         and X_VAR_TEMP_SLOT_LEVEL fields.
8883         * rtl.h (set_file_and_line_for_stmt): Remove.
8884         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
8885         struct stmt_status, cond_stack, case_stack, nesting_stack,
8886         nesting_depth, emit_locus, set_file_and_line_for_stmt,
8887         same_case_target_p, init_stmt_for_function, emit_nop,
8888         expand_start_cond, expand_start_elseif, expand_start_else,
8889         expand_elseif, expand_end_cond): Remove.
8890         (preserve_subexpressions_p): Remove references to CFUN->STMT.
8891         (expand_start_case, expand_end_case_type): Remove, merge into...
8892         (expand_case): ... this one, including other bits from
8893         expand_expr_real_1.  Inline same_case_target_p.  Turn members
8894         of CASE_STACK into local variables.
8895         (emit_case_bit_tests): Inline same_case_target_p.
8896         (add_case_node): Add HEAD argument, return new head of the list,
8897         do not handle default label here.
8898         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
8899         expand_start_elseif, current_nesting_level, expand_start_case,
8900         expand_end_case_type, expand_end_case, add_case_node,
8901         init_stmt_for_function, expand_elseif): Remove prototypes.
8902         (expand_case): Add prototype.
8903
8904 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8905
8906         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
8907
8908 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8909
8910         * expr.c (var_rtx): Remove.
8911         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
8912         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
8913         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
8914         Abort.
8915         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
8916         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
8917         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
8918
8919 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
8920         Ayal Zaks <zaks@il.ibm.com>
8921
8922         * common.opt (freschedule-modulo-scheduled-loops): New flag.
8923         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
8924         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
8925         when -freschedule-modulo-scheduled-loops flag is not specified.
8926         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
8927         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
8928         More accurate placing of insn in row of partial schedule.
8929         (ps_insn_find_column): New function.
8930         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
8931         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
8932         (schedule_region): Use sched_is_disabled_for_current_region_p.
8933         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
8934
8935 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8936
8937         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
8938         change.
8939
8940 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8941
8942         * config/i386/i386.c (ix86_expand_clrmem): Properly call
8943         gen_strset for 64bit target.
8944
8945 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
8946
8947         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
8948
8949 2004-08-07  Jason Merrill  <jason@redhat.com>
8950
8951         Make return in memory explicit.
8952         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
8953         (assign_parm_find_data_types): Remove code for old front end
8954         invisible reference handling.
8955         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
8956         (expand_function_end): Likewise.
8957         * gimplify.c (gimplify_return_expr): Handle a dereferenced
8958         RESULT_DECL.
8959         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
8960         (declare_return_variable): Handle DECL_BY_REFERENCE.
8961         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
8962         (cp_genericize_r): Use convert_from_reference.
8963         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
8964         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
8965
8966         * c-common.c (c_warn_unused_result): Check TREE_USED before
8967         warning about a CALL_EXPR with an unused value.
8968
8969 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
8970
8971         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
8972         to the compiler.  Use -fshort-wchar by default.
8973
8974 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
8975
8976         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
8977         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
8978         threshhold.
8979         * doc/invoke.texi (param): Document min-crossjump-insns.
8980
8981 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
8982
8983         PR c/13282
8984         * c.opt (Wmissing-field-initializers): New option.
8985         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
8986         * c-typeck.c (pop_init_level): Guard the missing field warning with
8987         warn_missing_field_initializers rather than extra_warnings.
8988         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
8989         some of the explanation from...
8990         (-Wextra): ...here.  Say that the missing field warning can be
8991         seperately controlled by -Wmissing-field-initializers.
8992
8993 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
8994
8995         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
8996         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
8997         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
8998         * tree.def (ENTRY_VALUE_EXPR): Remove.
8999
9000 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
9001
9002         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
9003         the places where it is actually needed.  Don't use repz; stosb
9004         for -Os with sufficiently small constant sizes.
9005         For sufficiently small repz; stos{l,q} repeat counts use a sequence
9006         of stos{l,q} instructions instead.
9007
9008 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9009
9010         PR tree-optimization/16807
9011         * loop-iv.c (dump_iv_info): Dump invariants correctly.
9012         (iv_subreg, iv_extend): Express value of invariant purely in
9013         base field.
9014
9015 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
9016
9017         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
9018         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
9019
9020 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
9021
9022         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
9023         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
9024         pre_dec_operand.
9025         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
9026         pattern until reload is finished to allow better code generation
9027         and split them completely into separate instrunctions.
9028         (*andsi3_split): New pattern.
9029
9030 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
9031
9032         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
9033         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
9034         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
9035         * tree.h (handle_dll_attribute): Declare.  Test
9036         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
9037         * c-common.h (c_determine_visibility): Declare.
9038         * c-common.c (c_determine_visibility): New function.
9039         * c-decl.c (finish_decl): Use it.
9040         (finish_function): Likewise.
9041         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
9042         zero, by default.  Use #if, not #ifdef, to test it.
9043         * config/arm/arm.c (arm_attribute_table): Use
9044         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
9045         #if.
9046         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
9047         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
9048         to 1.
9049         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
9050         * config/i386/i386.c (ix86_attribute_table): Use
9051         handle_dll_attribute for dllimport/dllexport.  Test
9052         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
9053         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
9054         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
9055         it to 1.
9056         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
9057         with #if.
9058         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
9059         it to 1.
9060         * doc/extend.texi (dllexport): Clarify and correct documentation.
9061         (dllimport): Likewise.
9062         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
9063         handle_dll_attribute.
9064
9065 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9066
9067         * tree-ssa-loop-manip.c: New file.
9068         * Makefile.in (tree-ssa-loop-manip.o): Add.
9069         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
9070         Declare.
9071         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
9072         form.
9073         (tree_ssa_loop_done): Verify loop closed ssa form.
9074         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
9075
9076 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9077
9078         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
9079         pa_asm_output_aligned_local): New functions.
9080         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
9081         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
9082         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
9083         pa_asm_output_aligned_common.
9084         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
9085         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
9086         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
9087         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
9088         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
9089         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
9090         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
9091         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
9092         common data.
9093
9094 2004-08-05  Andrew Pinski  <apinski@apple.com>
9095
9096         * objc/objc-act.c (build_objc_string_object): Mark the address
9097         expression as constant.
9098
9099 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
9100
9101         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
9102         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
9103         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
9104
9105 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
9106
9107         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
9108         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
9109         out, and associated obsolete comments.
9110
9111 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
9112
9113         * tree.h (force_fit_type): Return a tree, take three flags.
9114         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
9115         TREE_CONSTANT_OVERFLOW here.
9116         (int_const_binop, const_binop): Adjust.
9117         (size_int_type): Do sign extension here.
9118         (fold_convert_const, optimize_bit_field_compare,
9119         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
9120         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
9121         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
9122
9123 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9124
9125         PR tree-optimization/16864
9126         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
9127         for ssa names without default_def.
9128
9129 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
9130
9131         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
9132         frame pointer, restore eax with an ebp-relative address.
9133
9134 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
9135
9136         PR 14516
9137         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
9138         * c-common.h (make_rtl_for_local_static): Delete.
9139         * c-decl.c (shadow_tag_warned): Clean up comment.
9140         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
9141         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
9142         * c-semantics.c (make_rtl_for_local_static): Delete.
9143         * expr.c (init_block_move_fn): Use set_user_assembler_name.
9144         (init_block_clear_fn): Likewise.
9145         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
9146         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
9147         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
9148         * tree.h (make_decl_rtl): Remove second parameter.
9149         (set_user_assembler_name): New.
9150         * varasm.c (set_user_assembler_name): New.
9151         (make_decl_rtl): Remove second parameter.  Update callers in many
9152         files.
9153
9154 2004-08-05  Adam Nemet  <anemet@lnxw.com>
9155
9156         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
9157         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
9158         to LynxOS 4.0.
9159         * gthr-lynx.h: New file.
9160         * config/lynx-ng.h: Remove file.
9161         * config/lynx.h: Update to LynxOS 4.0.
9162         * config/t-lynx: New file.
9163         * config/i386/lynx-ng.h: Remove file.
9164         * config/i386/lynx.h: Update to LynxOS 4.0.
9165         * config/rs6000/lynxbase.h: Remove file.
9166         * config/rs6000/lynx.h: Update to LynxOS 4.0.
9167         * config/rs6000/t-lynx: New file.
9168         * doc/install.texi (Options specification): Remove reference to
9169         LynxOS from systems where --with-gnu-as makes a difference.
9170
9171 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
9172
9173         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
9174         __UINTMAX_TYPE__.
9175         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
9176         __INTMAX_MAX__.
9177         (c_cpp_builtins): Call it.
9178         * doc/cpp.texi: Update.
9179
9180 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
9181
9182         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
9183         cost.
9184
9185 2004-08-04  Jan Hubicka  <jh@suse.cz>
9186
9187         * basic-block.h (profile_staus): New global variable.
9188         * cfg.c (profile_status): Declare.
9189         (check_bb_profile): Break out from ....; use profile_status
9190         (dump_flow_info): ... here.
9191         * cfgbuild.c (find_basic_blocks): Set profile_status.
9192         * cfgexpand.c (tree_expand_cfg): Likewise.
9193         * predict.c (estimate_probability): Likewise.
9194         * profile.c (branch_prob): Likewise.
9195         * tree-cfg.c (build_tree_cfg): Likewise.
9196         (dump_function_to_file): Use check_bb_profile.
9197         * tree-pretty-print (dump_bb_header): Likewise.
9198         * tree-profile.c (do_tree_profiling): Cleanup.
9199
9200 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
9201
9202         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
9203         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
9204         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
9205         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
9206         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
9207         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
9208         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
9209         (ggc-none.o, errors.o): Move rule to generators section;
9210         correct dependencies.
9211         (min-insn-modes.o): Move rule to generators section; remove
9212         unnecessary explicit command; correct dependencies.
9213         (print-rtl.o, print-rtl1.o): Correct dependencies.
9214         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
9215         (mostlyclean): Update.
9216
9217         * errors.c: Include bconfig.h not config.h.  Correct comment.
9218         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
9219         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
9220         * print-rtl.c: Don't include tm_p.h.
9221
9222         * rtl.h: Move forward-decl of struct function down where it's
9223         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
9224         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
9225
9226 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9227             Jeff Law  <law@redhat.com>
9228
9229         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
9230         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
9231         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
9232         manipulate the duplicated ssa names.
9233         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
9234         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
9235         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
9236         New functions.
9237         (release_ssa_name): Do not release ssa names that may have multiple
9238         definitions.
9239         * tree.h (release_ssa_name_force, mark_for_rewrite,
9240         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
9241         marked_ssa_names): Declare.
9242         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
9243         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
9244         Update call to rewrite_ssa_into_ssa.
9245
9246 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
9247
9248         * defaults.h (TARGET_DECLSPEC): New macro.
9249         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
9250         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
9251         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
9252         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
9253         __declspec support.
9254         (TARGET_DECLSPEC): Define.
9255         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
9256         __declspec support.
9257         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
9258         __declspec support.
9259         (TARGET_DECLSPEC): Define.
9260         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
9261         __declspec support.
9262         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
9263         support.
9264         * doc/tm.texi (TARGET_DECLSPEC): Document.
9265
9266         * doc/extend.texi: Fix typo in comment.
9267
9268 2004-08-04  Paul Brook  <paul@codesourcery.com>
9269
9270         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
9271         (TARGET_CXX): Use it.
9272         * target.h (struct gcc_target): Add cdtor_returns_this.
9273         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
9274         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
9275         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
9276
9277 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
9278
9279         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
9280         low/high pair. Do range checking directly.
9281         (interpret_integer): Adjust.
9282
9283 2004-08-04  Nick Clifton  <nickc@redhat.com>
9284
9285         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
9286         GCC ABI.
9287         * doc/invoke.texi: Document this new switch and also the -mrenesas
9288         switch.
9289
9290 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
9291
9292         * cfglayout.c (insn_locators_initialize): Update the current
9293         location before initializing a location.
9294
9295 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
9296
9297         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
9298         (dbxout_function_end): Return after emitting the "Lscope" symbol
9299         under the same conditions that this function formerly wasn't called.
9300         Add explanatory comments.
9301
9302         PR 14860
9303         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
9304         on the new decl.
9305
9306         PR 13956
9307         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
9308         functions, broken out of dbxout_block.
9309         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
9310         stabs too, if it contains symbols.  Use the begin_label and
9311         the Lscope label (emitted by dbxout_function_end) for the
9312         range of this block.
9313
9314 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
9315
9316         * doc/install.texi: Update autoconf version requirements.
9317
9318 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
9319
9320         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
9321         * recog.c (general_operand, immediate_operand, nonmemory_operand)
9322         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
9323         * regclass.c (record_reg_classes): Likewise.
9324         * reload.c (find_reloads): Likewise.
9325         * reload1.c (reload): Likewise.
9326
9327 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
9328
9329         * gensupport.c (init_md_reader_args_cb): Renamed from
9330         init_md_reader_args.  Add third option, callback function for
9331         parsing program-specific options.  Add diagnosis of incorrect
9332         number of input files.
9333         (init_md_reader): Fold into init_md_reader_args_cb.
9334         (init_md_reader_args): Now a thin wrapper around
9335         init_md_reader_args_cb.
9336         * gensupport.h: Update prototypes.
9337
9338         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
9339         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
9340         * genrecog.c: No need to diagnose lack of an input file;
9341         init_md_reader_args will handle it.
9342         * genconditions.c: Likewise, and use init_md_reader_args.
9343         * genconstants.c: Likewise, and no need to call read_md_rtx.
9344
9345 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
9346
9347         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
9348         declarations.
9349
9350 2004-08-03  Mike Stump  <mrs@apple.com>
9351
9352         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
9353         for frameworks.
9354         * doc/invoke.texi (Darwin Options): Update to reflect above.
9355
9356 2004-08-03  Roger Sayle  <roger@eyesopen.com>
9357
9358         PR middle-end/16790
9359         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
9360         truncations, not just global truncations.
9361
9362 2004-08-03  Andrew Pinski  <apinski@apple.com>
9363
9364         PR bootstrap/16865
9365         * loop-iv.c (simplify_using_assignment): Initialize lhs.
9366
9367 2004-08-03  Paul Brook  <paul@codesourcery.com>
9368
9369         * gcc/doc/install.texi: Document MPFR requirement.
9370
9371 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
9372
9373         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
9374         and mmap() explicitly instead of relying on preset autoconf cache
9375         variables.
9376         * configure: Regenerate.
9377
9378 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
9379
9380         PR target/16570
9381         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
9382         to tmake_file.
9383         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
9384         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
9385         to tmake_file.
9386
9387         * config/i386/t-gmm_malloc: New file.
9388         * config/i386/t-pmm_malloc: Likewise.
9389
9390         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
9391
9392 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
9393             Tanguy Fautrà <tfautre@pandora.be>
9394
9395         * config/i386/pmm_malloc.h: New file.
9396
9397 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
9398
9399         * config/i386/gmm_malloc.h: New file.
9400
9401 2004-08-03  Dale Johannesen  <dalej@apple.com>
9402
9403         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
9404         * c-common.c: Include opts.h.
9405         (c_common_get_alias_set): Fix check for a single input file.
9406         * toplev.c: Remove current_file_decl.
9407         * tree.h: Ditto.
9408
9409 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
9410
9411         * config.gcc (arm*-*-symbianelf*): New target.
9412         * config/arm/symbian.h: New file.
9413
9414         * gthr-gnat.c: Add visibility #pragmas.
9415         * gthr-gnat.h : Likewise.
9416         * gthr.h: Likewise.
9417         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
9418         (__ffsDI2): Likewise.
9419         (__clzSI2): Likewise.
9420         (__ctzSI2): Likewise.
9421         (__ctzDI2): Likewise.
9422         (__popcountSI2): Likewise.
9423         (__popcountDI2): Likewise.
9424         (__paritySI2): Likewise.
9425         (__parityDI2): Likewise.
9426         * libgcc2.h: Add visibility #pragmas.
9427         (__clzDI2): Add prototype.
9428         (__clzSI2): Likewise.
9429         (__ctzSI2): Likewise.
9430         (__ffsDI2): Likewise.
9431         (__ffsSI2): Likewise.
9432         (__ctzDI2): Likewise.
9433         (__popcountSI2): Likewise.
9434         (__popcountDI2): Likewise.
9435         (__paritySI2): Likewise.
9436         (__parityDI2): Likewise.
9437         * unwind-dw2-fde.h: Add visibility #pragmas.
9438         * unwind.h: Likewise.
9439
9440 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
9441             Dale Johannesen  <dalej@apple.com>
9442             Roger Sayle  <roger@eyesopen.com>
9443
9444         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
9445         constants more accurately.  Adjust costs for FMA instructions.
9446         Add cases for most logical and float operations.  Recurse into
9447         most operands.
9448
9449 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
9450
9451         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
9452
9453 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
9454
9455         * ra-build.c (conflicts_between_webs): For webs that cross a call add
9456         conflicts to regs_invalidated_by_call.
9457
9458 2004-08-03  Paul Brook  <paul@codesourcery.com>
9459
9460         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
9461
9462 2004-08-03  Jan Hubicka  <jh@suse.cz>
9463
9464         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
9465         ARRAY_REF argument.
9466
9467 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
9468
9469         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
9470         arm968es, arm10e, arm1020e, arm1022e.
9471         * invoke.texi: Update list of ARM cores.
9472         * arm-tune.md: Regenerate.
9473
9474 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
9475
9476         * arm/gentune.sh: New file.
9477         * arm/t-arm: New file.
9478         * arm/arm-tune.md: New file (autogenerated).
9479         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
9480         * arm.md (attribute tune): Delete.  Include arm-tune.md.
9481
9482 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
9483
9484         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
9485         penultimate parameter.  All callers adjusted.
9486         (struct prefix_list): Remove used_flag_ptr.
9487         (find_a_file): Do not set *pl->used_flag_ptr.
9488         (warn_B, warn_std_ptr): Remove.
9489
9490 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
9491             Mostafa Hagog <mustafa@il.ibm.com>
9492
9493         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
9494
9495 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
9496
9497         * dwarf2out.c (output_call_frame_info): Don't change data format
9498         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
9499         label.  Use 'true' not '1'.
9500         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
9501         required.
9502
9503 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9504
9505         * gdbinit.in: Reflect previous changes to rtunion_def.
9506
9507 2004-08-02  Roger Sayle  <roger@eyesopen.com>
9508
9509         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
9510         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
9511
9512 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9513
9514         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
9515         vec_p_reserve.
9516         * langhooks.h (lang_hooks::builtin_function): Rename parameter
9517         from "class" to "bt_class".
9518
9519 2004-08-02  Paul Brook  <paul@codesourcery.com>
9520
9521         PR rtl-optimization/15068
9522         * flow.c (init_propagate_block_info): Check condition is reversible.
9523
9524 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9525
9526         * gengtype.h (options::info): Change type to const char *.
9527         (enum gc_used_enum): Move out of struct type scope.
9528         * gengtype.c (create_option): Convert initializer for option::info to
9529         appropiate type.
9530         (adjust_field_type, walk_type, write_func_for_structure,
9531         write_root, write_roots): Remove pointless cast.
9532
9533 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
9534
9535         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
9536
9537 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9538
9539         * rtl.h (union rtunion_def): Have all members  start with the
9540         prefix "rt_".
9541         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
9542         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
9543         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
9544         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
9545         access.
9546         * gengtype.c (adjust_field_rtx_def): Likewise.
9547         * rtlanal.c (loc_mentioned_in_p): Likewise.
9548
9549 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
9550
9551         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
9552         Replace uses of mips/elf64.h with mips/elf.h
9553         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
9554         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
9555         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
9556         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
9557         (HANDLE_SYSV_PRAGMA): Delete.
9558         (ASM_OUTPUT_DEF): Fix formatting.
9559         * config/mips/elf64.h: Delete.
9560
9561 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
9562
9563         * config/ia64/ia64.c (got_symbolic_operand): Do require a
9564         symbol+offset operand to have its offset be zero mod 0x3fff
9565         when GOT entries are in use.  Clarify logic in SYMBOL_REF
9566         case.  Clarify comments.
9567         (ia64_expand_load_address): Split a symbol+offset load when
9568         the offset is nonzero mod 0x3fff, not 0x1fff.
9569
9570 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
9571
9572         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
9573         if trying to *store* to a non-offsettable address.
9574         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
9575         a nonoffsettable address.
9576         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
9577         Clean up.
9578         (movti_string): Don't move GPRs to a nonoffsettable address.
9579         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
9580
9581 2004-08-02  Ben Elliston  <bje@au.ibm.com>
9582
9583         PR target/16155
9584         * config/rs6000/altivec.h: Replace typeof with __typeof__.
9585
9586 2004-08-01  Richard Henderson  <rth@redhat.com>
9587
9588         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
9589         variable sized types.
9590
9591 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
9592
9593         * doc/invoke.texi: In the MIPS options section, remove the passage
9594         saying that -mexplicit-relocs is usually disabled for -mabicalls
9595         -fno-unit-at-a-time.
9596         * config/mips/mips.c (override_options): Remove the code that enforced
9597         this rule.
9598
9599 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
9600
9601         * config/mips/mips.md (cprestore): Provide two alternatives, one for
9602         an in-range offset and one for an out-of-range offset.  Wrap the latter
9603         in .set macro/.set nomacro if it's inside a .set nomacro block.
9604
9605 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
9606
9607         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
9608         (mips_restore_gp): Declare.
9609         * config/mips/mips.c (mips_add_offset): Add a scratch register
9610         argument.  Reimplement in rtl only, reusing MIPS16 logic from
9611         mips_output_mi_thunk.
9612         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
9613         to mips_add_offset.
9614         (mips_gp_save_slot): Delete.
9615         (mips_restore_gp): New function.
9616         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
9617         * config/mips/mips.md (exception_receiver): Turn into a
9618         define_insn_and_split.  Use mips_restore_gp to do the split.
9619         (call_internal, call_value_internal, call_value_multiple_internal): Use
9620         mips_restore_gp to restore $gp.
9621
9622 2004-07-31  Andrew Pinski  <apinski@apple.com>
9623
9624         PR other/16842
9625         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
9626
9627 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
9628
9629         * c-decl.c (diagnose_mismatched_decls): Give error for external
9630         redeclaration of identifier declared with no linkage, not just
9631         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
9632         error for redeclaration with no linkage.
9633
9634 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
9635             Fariborz Jahanian <fjahanian@apple.com>
9636
9637         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
9638         non-offsettable addresses even for DImode.
9639         (rs6000_split_multireg_move): Cope with non-offsettable addresses
9640         being moved into multiple GPRs.
9641
9642         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
9643         to 64.
9644         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
9645         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
9646         to 128.
9647         * config/rs6000/darwin-ldouble.c (isless): New macro.
9648         (inf): New macro.
9649         (nonfinite): New macro.
9650         (FPKINF): Delete.
9651         (_xlqadd): Completely rewrite.
9652         (_xlqmul): Correct overflow handling.
9653         (_xlqdiv): Correct overflow handling.
9654         * config/rs6000/darwin-ldouble-format: New file.
9655
9656 2004-07-30  Roger Sayle  <roger@eyesopen.com>
9657             Richard Henderson  <rth@redhat.com>
9658
9659         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
9660         9 into the equivalent lea instruction.
9661
9662 2004-07-30  Richard Henderson  <rth@redhat.com>
9663
9664         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
9665         with DECL_INITIAL if fb_lvalue.
9666         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
9667         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
9668         with <Cxxx>.
9669         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
9670
9671 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
9672
9673         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
9674         pointer escapes through a function call, assume that the
9675         callee will dereference it.
9676         (add_pointed_to_var): Assume that VALUE is always an
9677         ADDR_EXPR.
9678         (collect_points_to_info_r): Only call add_pointed_to_var if
9679         the value is an ADDR_EXPR.
9680
9681 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
9682
9683         * tree-ssa-alias.c (create_alias_map_for): Do not get the
9684         alias set of the inner type of ARRAY_TYPEs.
9685
9686 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
9687
9688         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
9689         setting a non-register to UNDEFINED right before the call to
9690         set_lattice_value.
9691
9692 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9693
9694         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
9695
9696 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
9697
9698         * tree-ssa.c (verify_flow_sensitive_alias_info): When
9699         comparing points-to sets of different pointers, make sure the
9700         second pointer is actually referenced in the code.
9701
9702 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
9703
9704         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
9705         (got_symbolic_operand): Remove unreachable code.
9706         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
9707         setjmp_operand; add entry for tls_symbolic_operand.
9708         * config/ia64/ia64-protos.h: Remove all prototypes of
9709         predicate functions.
9710
9711 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
9712
9713         * c-common.h (lang_post_pch_load): New variable.
9714         * c-pch.c (lang_post_pch_load): Define it.
9715         (c_common_read_pch): Use it.
9716         * cgraphunit.c (record_call_1): Give the front end a chance to
9717         record additional needed entities when a variable is marked as
9718         needed.
9719         * tlink.c (recompile_files): Robustify.
9720         (scan_linker_output): If a symbol is assigned to a file,
9721         but after recompilation is not present there, issue an error
9722         message.
9723
9724 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9725
9726         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
9727         Take orig_loop argument and pass it to set_level.
9728         (schedule_sm): Pass the correct orig_loop to force_move_till.
9729
9730 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9731
9732         * cfgloop.c (update_latch_info): Update dominator of the new block.
9733         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
9734         info.
9735         * dominance.c (verify_dominators): Check that the dominance tree is
9736         connected.
9737         (recount_dominator): Ignore unreachable blocks.
9738         (iterate_fix_dominators): Cleanup old dominance information before
9739         recomputing it.
9740
9741 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
9742
9743         * tree-ssa-operands.c (get_expr_operands): Revert changes
9744         to ADDR_EXPR processing introduced by:
9745             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9746             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
9747
9748 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
9749
9750         * doc/implement-c.texi: Add C90 subclause references.  Point to
9751         preprocessor documentation instead of duplicating it.  Add points
9752         only present in C90.  Fill in documentation for all points.
9753
9754 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9755
9756         * pa.c (output_movb): Correct typo.
9757
9758 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
9759
9760         * ra.h (single_reg_in_regclass): Declare.
9761         * ra.c (single_reg_in_regclass): Define.
9762         (first_hard_reg): New.
9763         (init_ra): Initialize single_reg_in_regclass.
9764         * ra-colorize.c (ok_class): New.
9765         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
9766
9767 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
9768
9769         * gcov-io.h: Allow zero tag as EOF indicator.
9770         (gcov_is_eof): Remove.
9771         (gcov_truncate): Remove.
9772         * gcov-io.c (gcov_seek): Always SEEK_SET.
9773         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
9774         EOF tag.
9775         * coverage.c (read_counts_file): Don't use gcov_is_eof.
9776         * gcov-dump.c (dump_file): Likewise.
9777         * gcov.c (read_graph_file, read_count_file): Likewise.
9778
9779         * c-decl.c (complete_array_type): Don't gratuitously copy
9780         maxindex.  Check it always has a type.
9781
9782 2004-07-29  Steven Bosscher  <stevenb@suse.de>
9783
9784         * rtl.c (currently_expanding_to_rtl): New.
9785         * rtl.h (currently_expanding_to_rtl): Export it.
9786         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
9787
9788         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
9789         inliner hack.
9790         * config/sh/sh.c: Replace rtx_equal_function_value_matters
9791         with currently_expanding_to_rtl.
9792         * config/sh/sh.md: Likewise.
9793         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
9794
9795 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
9796
9797         Introduce sh2a support.
9798         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
9799         * config.gcc: Build multilibs for sh2a and sh2a-single by
9800         default.
9801         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
9802         default.  Split their tests out of the corresponding SH4
9803         multilibs.
9804         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
9805         multilibs for SH2a.
9806         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
9807         * config.gcc: Handle sh2a multilibs and cpu selection.
9808         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
9809         * config/sh/t-mlib-sh2a: New.
9810         * config/sh/t-mlib-sh2a-nofpu: New.
9811         * config/sh/t-mlib-sh2a-single: New.
9812         * config/sh/t-mlib-sh2a-single-only: New.
9813         2004-07-09  Nick Clifton  <nickc@redhat.com>
9814         Issue 43400
9815         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
9816         -ml and -m2a are used together.
9817         2004-03-23  DJ Delorie  <dj@redhat.com>
9818         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
9819         when we have a double-sized FPU.
9820         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
9821         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
9822         is set.
9823         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
9824         -msh2a-single and -msh2a-single-only
9825         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
9826         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
9827         is set.
9828         2004-02-20  DJ Delorie  <dj@delorie.com>
9829         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
9830         2004-02-20  Fred Fish <fnf@redhat.com>,
9831         Corinna Vinschen <vinschen@redhat.com>
9832         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
9833         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
9834         2004-02-18  DJ Delorie  <dj@redhat.com>
9835         * config/sh/sh.c (broken_move): Add support for movi20.
9836         * config/sh/sh.h: Likewise.
9837         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
9838         * config/sh/sh.md (udivsi3_sh2a): New.
9839         (udivsi3): Call it.
9840         (divsi3_sh2a): New.
9841         (divsi3): Call it.
9842         (mul_r): New.
9843         (ashlsi3_sh2a): New.
9844         (ashrsi3_sh2a): New.
9845         (lshrsi3_sh2a): New.
9846         (movsi_i): Disable for sh2a.
9847         (movsi_ie): Add movi20.
9848         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
9849         sh2a, for -m2a-nofpu mode.
9850         2004-02-13  DJ Delorie  <dj@redhat.com>
9851         * config/sh/lib1funcs.asm: Handle double vs single better.
9852         * config/sh/sh.h: Likewise.
9853         2004-02-09  DJ Delorie  <dj@redhat.com>
9854         * config/sh/crt1.asm: Add support for sh2a.
9855         * config/sh/elf.h: Likewise.
9856         * config/sh/lib1funcs.asm: Likewise.
9857         * config/sh/sh.c: Likewise.
9858         * config/sh/sh.md: Likewise.
9859         * config/sh/sh.h: Likewise.
9860         * config/sh/t-sh: Likewise.
9861
9862 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
9863
9864         * config/frv/frv.md (movqi_internal, movhi_internal,
9865         movsi_internal): Add backup alternatives for memory inputs.
9866
9867 2004-07-28  Matt Austern  <austern@apple.com>
9868
9869         * config/darwin.c (darwin_one_byte_bool): New global variable.
9870         * config/darwin.h (darwin_one_byte_bool): Declare.
9871         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
9872         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
9873         value of darwin_one_byte_bool.
9874         * doc/invoke.texi: Document -mone-byte-bool flag.
9875
9876 2004-07-28  Eric Christopher  <echristo@redhat.com>
9877
9878         * c-common.c (c_common_unsafe_for_reeval): Delete.
9879         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
9880         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
9881         * calls.c (fix_unsafe_tree): Delete.
9882         (expand_call): Delete code which used above.
9883         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
9884         * expr.c (expand_expr_real_1): Ditto.
9885         * fold-const.c (non_lvalue): Ditto.
9886         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
9887         (lhd_unsafe_for_reeval): Ditto.
9888         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
9889         * langhooks.h (unsafe_for_reeval): Ditto.
9890         (unsave_expr_now): Adjust comment.
9891         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
9892         (estimate_num_insns_1): Ditto.
9893         * tree-pretty-print.c (dump_generic_node): Ditto.
9894         * tree.c (expr_align): Ditto.
9895         (unsave_expr): Delete.
9896         (unsafe_for_reeval): Ditto.
9897         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
9898         * tree.def (UNSAVE_EXPR): Delete.
9899         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
9900
9901 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
9902
9903         * tree.h (enum tls_model): Move ...
9904         * coretypes.h: ... here.
9905
9906 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
9907
9908         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
9909
9910 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
9911
9912         * cse.c (validate_canon_reg): New function, split out from...
9913         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
9914
9915 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9916
9917         * tree-ssa-alias.c (maybe_create_global_var): Don't just
9918         return if .GLOBAL_VAR has been created.
9919
9920 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9921
9922         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
9923         every variable that may have aliases, not just tags.
9924
9925 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
9926
9927         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
9928         move_from_CR_eq_bit.
9929         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
9930
9931
9932         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
9933         e500_flip_eq_bit.
9934
9935         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
9936         output_e500_flip_eq_bit.
9937
9938         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
9939         output_e500_flip_eq_bit.
9940         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
9941         output_e500_flip_eq_bit.
9942         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
9943         (print_operand): case D.  Get to EQ bit.
9944
9945 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
9946
9947         * gcov.c (function_summary): Add missing \n.
9948
9949 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
9950
9951         Introduce sh4a support.
9952         * config.gcc: Handle sh4a multilibs and cpu selection.
9953         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
9954         * config/sh/t-mlib-sh4a: New.
9955         * config/sh/t-mlib-sh4al: New.
9956         * config/sh/t-mlib-sh4a-nofpu: New.
9957         * config/sh/t-mlib-sh4a-single: New.
9958         * config/sh/t-mlib-sh4a-single-only: New.
9959         2004-02-20  DJ Delorie  <dj@redhat.com>
9960         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
9961         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
9962         2003-08-22  Eric Christopher  <echristo@redhat.com>
9963         * config/sh/sh4a.md: Update for chip errata.
9964         2003-08-07  Eric Christopher  <echristo@redhat.com>
9965         * config/sh/sh4a.md: New file. sh4a processor description.
9966         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
9967         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
9968         of -m4a-nofpu.
9969         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
9970         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
9971         * doc/invoke.texi (SH Options): Document -m4al.
9972         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
9973         * config/sh/sh.c (expand_block_move): Remove commented-out code
9974         checked in by mistake.
9975         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
9976         single elements from SFmode vectors.
9977         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
9978         register.
9979         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
9980         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
9981         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
9982         sh_fsca_int2sf): Remove variable declarations.
9983         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
9984         sh_fsca_int2sf): New functions.
9985         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
9986         sh_fsca_int2sf_rtx): New static variables.
9987         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
9988         sh_fsca_int2sf): Declare.
9989         * config/sh/sh.md: Adjust.
9990         * doc/invoke.texi (SH Options): Document new options.
9991         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
9992         compatibility from SH4 code.
9993         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
9994         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
9995         early.
9996         (memory_movsrc_operand): Renamed to...
9997         (unaligned_load_operand): ... this.  Simplified.
9998         * config/sh/sh.h (PREDICATE_CODES): Adjust.
9999         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
10000         input operand to SImode, and adjust the others.  Introduce
10001         post-increment by peephole.
10002         * config/sh/sh.c (expand_block_move): Give the target address the
10003         same mode as the temp reg.
10004         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
10005         copying.
10006         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
10007         Introduce support for SH4a.
10008         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
10009         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
10010         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
10011         sh_fsca_int2sf): New.
10012         (sh_init_builtins): Initialize them.
10013         (print_operand): Support `d'.
10014         (expand_block_move): Use movua if src is misaligned.
10015         (memory_movsrc_operand): New.
10016         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
10017         and one of the SH4 macros.
10018         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
10019         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
10020         SELECT_SH4A_SINGLE): New.
10021         (TARGET_NONE): Add SH4A_BIT.
10022         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
10023         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
10024         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
10025         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
10026         (enum processor_type): Added PROCESSOR_SH4A.
10027         (PREDICATE_CODES): Add memory_movsrc_operand.
10028         * config/sh/sh.md: Removed unused variables.
10029         (attr cpu): Add sh4a.
10030         (attr type): Add movua, fsrra and fsca.
10031         (prefetch): New, for SH4.
10032         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
10033         (toggle_sz): Set type to fp.
10034         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
10035         (movua, extv, extzv): New.
10036         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
10037         and 4a-single-only.
10038
10039 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
10040
10041         * tree-optimize.c (init_tree_optimization_passes): Schedule
10042         pass_may_alias right after the program is renamed into SSA.
10043         * tree-pass.h (PROP_alias): Define.
10044         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
10045         * tree-sra.c (pass_sra): Likewise.
10046         * tree-ssa-ccp.c (pass_ccp): Likewise.
10047         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
10048         * tree-ssa-dce.c (pass_dce): Likewise.
10049         * tree-ssa-dom.c (pass_dominator): Likewise.
10050         * tree-ssa-dse.c (pass_dse): Likewise.
10051         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
10052         * tree-ssa-loop-ch.c (pass_ch): Likewise.
10053         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
10054         * tree-ssa-pre.c (pass_pre): Likewise.
10055         * tree-tailcall.c (pass_tail_recursion): Likewise.
10056         * tree-ssa.c (pass_redundant_phi): Likewise.
10057         * tree-ssa-alias.c (aliases_computed_p): Remove.
10058         Update all users.
10059         (init_alias_info): Do not mark all type tags for renaming
10060         unconditionally.
10061         Clear may_aliases from every symbol.
10062         (setup_pointers_and_addressables): If a pointer has not been
10063         dereferenced and it had a type tag, clear it and mark the old
10064         tag for renaming.
10065
10066 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
10067
10068         PR tree-optimization/16705
10069         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
10070         .GLOBAL_VAR.
10071
10072 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10073
10074         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
10075         check.
10076
10077         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
10078         don't make another one.
10079
10080         PR optimization/15077
10081         * function.h (struct function): Add field saved_static_chain_decl.
10082         Fix comment for static_chain_decl.
10083         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
10084         * tree-inline.h (save_body): Add new arg.
10085         * tree-optimize.c (tree_rest_of_compilation): Handle saving
10086         static_chain_decl.
10087
10088 2004-07-27  Richard Henderson  <rth@redhat.com>
10089
10090         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
10091         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
10092         is_gimple_addressable.
10093         * tree-gimple.c (is_gimple_addressable): Rename from
10094         is_gimple_addr_expr_arg; accept INDIRECT_REF.
10095         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
10096         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
10097         rename to is_gimple_addressable.
10098
10099 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
10100
10101         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
10102
10103 2004-07-27  Richard Henderson  <rth@redhat.com>
10104
10105         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
10106         before rounding.
10107
10108 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
10109
10110         * libgcc2.c: Change all conditionals testing
10111         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
10112         * libgcc2.h: Likewise.
10113         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
10114         TYPE_PRECISION of float80_type to 80.
10115         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
10116         of fpreg_type and float80_type to 80.
10117         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
10118         * config/m68k/netbsd-elf.h:
10119         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
10120         to evaluate to 80 whenever they would formerly have evaluated to 96.
10121         * config/i386/sco5.h: Remove unnecessary redefinition of
10122         LONG_DOUBLE_TYPE_SIZE.
10123         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
10124         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
10125         XFmode, with a bitsize of 80.  Update commentary.
10126         * config/ia64/ia64-modes.def: Likewise.
10127         * config/m68k/m68k-modes.def: Likewise.
10128
10129 2004-07-27  Steven Bosscher  <stevenb@suse.de>
10130
10131         * cfgexpand.c (tree_expand_cfg): Fix comment.
10132
10133         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
10134         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
10135         Remove.
10136         (prepare_function_start): Don't set rtx_equal_function_value_matters.
10137         * integrate.c (copy_rtx_and_substitute): Don't test for it.
10138         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
10139         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
10140         here again.  Update leading comment.
10141         * rtl.c (rtx_equal_function_value_matters): Remove.
10142         (rtx_equal_p): Don't test for it.
10143         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
10144         Likewise.
10145
10146         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
10147         * rtl.c (note_insn_name): Likewise.
10148         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
10149         * final.c (final_scan_insn): Likewise.
10150
10151         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
10152         * passes.c (rest_of_handle_eh): Do it here.
10153
10154         * stmt.c (struct nesting): Remove struct nesting block member.
10155         (struct stmt_status): Remove x_block_start_count field.
10156         (current_block_start_count): Remove.
10157
10158 2004-07-27  Brian Booth  <bbooth@redhat.com>
10159
10160         * tree-optimize.c (register_one_dump_file): Update condition that uses
10161         static_pass_number.
10162         (dup_pass_1): Replace with...
10163         (next_pass_1): This.
10164         (NEXT_PASS): Call next_pass_1.
10165         (DUP_PASS): Remove.
10166         (init_tree_optimization_passes): Remove uses of DUP_PASS.
10167         (execute_one_pass): Update condition that uses
10168         static_pass_number.
10169         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
10170         integer.
10171
10172 2004-07-27  Nick Clifton  <nickc@redhat.com>
10173
10174         * config/m32r/m32r.c: Include integrate.h in order to get the
10175         prototype for get_hard_reg_initial_val().
10176
10177         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
10178         and tidy up indentation.
10179         (final_presence_set): Use absence_set instead, so that if there is
10180         nothing in the "o" pipe the "s" pipe can be scheduled.
10181
10182 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
10183
10184         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
10185         don't have PT_VARS nor PT_MALLOC set.
10186         Clear name tag from pointers that have not been dereferenced.
10187         (set_pt_anything, set_pt_malloc): Forward declare.
10188         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
10189         not type compatibility when determining if a pointer can be
10190         copy propagated.
10191
10192 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
10193
10194         * expr.h (canonicalize_condition, get_condition): Add an int argument.
10195         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
10196         it to check whether the condition is still valid at the jump insn.
10197         * ifcvt.c (noce_get_condition): Likewise.
10198         (noce_get_alt_condition): Update call to canonicalize_condition.
10199         * loop-iv.c (simplify_using_initial_values): Update call to
10200         get_condition.  Remove FIXME.
10201         (check_simple_exit): Update call to get_condition.
10202         * loop-unswitch.c (may_unswitch_on): Likewise.
10203         * loop.c (check_dbra_loop): Likewise.
10204         (canonicalize_condition, get_condition): Add an argument to say whether
10205         the condition must still be valid at INSN.
10206         (get_condition_for_loop): Update call to get_condition.  Require that
10207         the condition be valid at INSN.
10208         * predict.c (estimate_probability): Update call to get_condition.
10209         Remove unused earliest parameter.
10210         (expected_value_to_br_prob): Update call to canonicalize_condition.
10211
10212 2004-07-26  Eric Christopher  <echristo@redhat.com>
10213
10214         * tree-dfa.c (add_referenced_var): Register initializers of global
10215         variables.
10216
10217 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
10218
10219         * config/i386/i386.c (function_arg): Always treat 8-
10220         and 16-byte wide vectors the same, even if MMX/SSE
10221         are disabled.
10222         (contains_128bit_aligned_vector_p): Add comment.
10223
10224 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
10225
10226         * ra.h (enum node_type): Rename to:
10227         (enum ra_node_type).
10228         * ra-colorize.c: Likewise.
10229
10230 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
10231
10232         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
10233         after simplifying the jump.
10234
10235 2004-06-26  Richard Henderson  <rth@redhat.com>
10236
10237         * calls.c (combine_pending_stack_adjustment_and_call): Make
10238         preferred_unit_stack_boundary argument unsigned.  Make
10239         unadjusted_alignment unsigned.
10240         (expand_call): Make preferred_stack_boundary and
10241         preferred_unit_stack_boundary variables unsigned.
10242         * function.c (assign_stack_local_1): Make alignment unsigned.
10243         * function.h (struct function): Make stack_alignment_needed,
10244         preferred_stack_boundary unsigned.
10245         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
10246         (ix86_compute_frame_layout): Make stack_alignment_needed,
10247         preferred_alignment variables unsigned.
10248         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
10249
10250 2004-07-26  Tom Tromey  <tromey@redhat.com>
10251
10252         * tree.h: Fix typo in comment.
10253
10254 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
10255
10256         PR bootstrap/12804
10257         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
10258         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
10259         (ggc_free): Remove incorrect freeing.
10260         (sweep_pages): Advance PP for large pages.  Fix indentation.
10261
10262 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
10263
10264         PR rtl-optimization/16643
10265         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
10266         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
10267         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
10268         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
10269         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
10270         * function.c (thread_prologue_and_epilogue_insns): Likewise.
10271         * rtl.h (tracer): Add a flags parameter.
10272         * tracer.c (tracer): Pass it to cfg_layout_initialise.
10273         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
10274         (rest_of_handle_reorder_blocks): Update calls to tracer and
10275         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
10276         (rest_of_handle_tracer): Pass 0 to tracer.
10277         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
10278
10279 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
10280
10281         PR target/16239
10282         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
10283         f->f.
10284
10285 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
10286
10287         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
10288         (BINFO_BASE_ACCESS): Adjust.
10289         (BINFO_BASE_ACCESS_APPEND): New.
10290         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
10291         * dbxout.c (dbxout_type): Adjust binfo access accessing.
10292         * dwarf2out.c (gen_member_die): Likewise.
10293         * tree-dump.c (deque_and_dump): Likewise.
10294
10295 2004-07-26  Falk Hueffner  <falk@debian.org>
10296
10297         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
10298         costs.
10299
10300 2004-07-25  Roger Sayle  <roger@eyesopen.com>
10301
10302         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
10303         value off of the stack if TARGET_USE_FFREEP.
10304
10305 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
10306
10307         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
10308         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
10309         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
10310         check on invocation of XRESIZEVEC ().
10311
10312 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
10313
10314         * c-common.c (disable_builtin_function): Rename variable n to
10315         new_disabled_builtin.
10316         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
10317         Rename local variable old to old_decl.
10318         * gensupport.c (shift_output_template): Rename parameter old to src.
10319         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
10320         old_rtx and newx to new_rtx.
10321
10322 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
10323
10324         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
10325         of c-pragma.h.
10326         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
10327         enum cpp_ttype.
10328         * c-lex.c: Likewise.
10329
10330 2004-07-25  Roger Sayle  <roger@eyesopen.com>
10331
10332         * fold-const.c (constant_boolean_node): Make extern.
10333         (make_range): Wrap long lines.
10334         (fold_cond_expr_with_comparison): Remove unnecessary call to
10335         pedantic_non_lvalue.  Add missing calls to fold_convert.
10336         (fold_truthop): Add missing calls to fold_convert.
10337         (fold): Likewise.
10338         * tree.h (constant_boolean_node): Add prototype here.
10339         * builtins.c (expand_builtin_strncmp): Add missing calls to
10340         fold_convert.
10341         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
10342         Call fold_convert and constant_boolean_node to correct types.
10343         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
10344         missing call to fold_convert to correct types.
10345
10346 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
10347             Brian Ryner  <bryner@brianryner.com>
10348
10349         PR c++/9283
10350         PR c++/15000
10351         * c-common.c (c_common_attribute_table): Allow
10352         handle_visibility_attribute to be called for types.
10353         (handle_visibility_attribute) When given a type, set the visibility
10354         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
10355         so that we can check later whether the attribute was present. Added
10356         warning if attribute applied to non class type.
10357         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
10358         decls and checking that they are consistent.
10359         * common.opt: Added -fvisibility.
10360         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
10361         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
10362         * flags.h, tree.h: Added assorted support defines for overall patch
10363         * opts.c: Added parsing support for -fvisibility.
10364         * tree.c (build_decl): Set visibility for all decls to be whatever
10365         is in force at that time.
10366         * varasm.c (default_binds_local_p_1): Reworked logic determining
10367         when to make a symbol locally bound.
10368         * doc/invoke.texi: Added documentation for -fvisibility and
10369         -fvisibility-inlines-hidden.
10370
10371 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10372
10373         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
10374         * c-common.c: Add missing casts from void * to other types.
10375         * c-decl.c: Likewise.
10376         * c-format.c: Likewise.
10377         * c-lex.c: Likewise.
10378         * c-pragma.c: Likewise.
10379         * c-typeck.c: Likewise.
10380         * defaults.h: Likewise.
10381         * genconstants.c: Likewise.
10382         * gengtype-lex.l: Likewise.
10383         * genmodes.c: Likewise.
10384         * read-rtl.c: Likewise.
10385         * rtl.c: Likewise.
10386
10387 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10388
10389         * bitmap.c: Use type-safe memory allocation macros from libiberty.
10390         * c-common.c: Likewise.
10391         * c-decl.c: Likewise.
10392         * c-lang.c: Likewise.
10393         * c-lex.c: Likewise.
10394         * c-opts.c: Likewise.
10395         * c-parse.in: Likewise.
10396         * c-typeck.c: Likewise.
10397         * genconditions.c: Likewise.
10398         * gengtype-lex.l: Likewise.
10399         * gengtype-yacc.y: Likewise.
10400         * gengtype.c: Likewise.
10401         * genmodes.c: Likewise.
10402         * gensupport.c: Likewise.
10403         * read-rtl.c: Likewise.
10404         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
10405         htab_find_slot().
10406
10407 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10408
10409         * c-decl.c (groktypename, groktypename_in_param_context): Rename
10410         variable typename to type_name.
10411         * c-lex.c (interpret_float): Likewise.
10412
10413 2004-07-25  Roger Sayle  <roger@eyesopen.com>
10414
10415         * convert.c (convert_to_real, convert_to_integer,
10416         convert_to_complex): Replace calls to build with calls to buildN.
10417         * coverage.c (tree_coverage_counter_ref): Likewise.
10418         * dojump.c (do_jump): Likewise.
10419         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
10420         * emit-rtl.c (component_ref_for_mem_expr,
10421         set_mem_attributes_minus_bitpos): Likewise.
10422         * explow.c (update_nonlocal_goto_save_area): Likewise.
10423         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
10424         expand_mult_add): Likewise.
10425         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
10426         store_constructor, get_inner_reference, expand_expr_real_1,
10427         try_casesi, try_tablejump): Likewise.
10428         * function.c (expand_function_start): Likewise.
10429         * stmt.c (emit_case_bit_tests, expand_end_case_type,
10430         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
10431         * stor-layout.c (place_union_field, layout_type): Likewise.
10432         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
10433         * varasm.c (copy_constant): Likewise.
10434
10435 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10436
10437         * c-common.c: Rename all identifiers named `new'.
10438         * c-decl.c: Likewise.
10439         * gensupport.c: Likewise.
10440         * simplify-rtx.c: Likewise.
10441         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
10442         with XNEW().
10443         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
10444         with XNEWVEC().
10445
10446 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
10447
10448         PR c/15360
10449         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
10450         declarations until after calling pushdecl.
10451         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
10452         "extern" and not on whether the declaration is initialized.
10453
10454 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
10455
10456         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
10457         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
10458         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
10459         "cpplib.h", "c-pragma.h", "c-common.h".
10460         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
10461         (solaris_register_pragmas): New functions.
10462         * config/sol2-protos.h: New file.
10463         * config/sol2.c: New file.
10464         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
10465         (REGISTER_TARGET_PRAGMAS): New macros.
10466         (solaris_pending_aligns, solaris_pending_inits)
10467         (solaris_pending_finis): New variables.
10468         * config/t-sol2 (sol2-c.o): Update dependencies.
10469         (sol2.o): New rule.
10470         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
10471         SUBTARGET_INSERT_ATTRIBUTES.
10472         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
10473         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
10474         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
10475         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
10476         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
10477         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
10478         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
10479         * config/sparc/sparc.c (sparc_attribute_table): New.
10480         (TARGET_INSERT_ATTRIBUTES): Define in terms of
10481         SUBTARGET_INSERT_ATTRIBUTES.
10482         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
10483         is defined.
10484         * doc/extend.texi (Solaris Pragmas): New section.
10485
10486 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10487
10488         * c-common.c: Rename all identifiers named `class' to `cl'.
10489         * c-common.h: Likewise.
10490         * c-parse.in: Likewise.
10491         * c-typeck.c: Likewise.
10492         * genmodes.c: Likewise.
10493         * real.c: Likewise.
10494         * real.h: Likewise.
10495         * recog.c: Likewise.
10496         * recog.h: Likewise.
10497         * regrename.c: Likewise.
10498         * tree.h: Likewise.
10499         * c-common.c (builtin_function_2): Change type of 5th parameter from
10500         int to enum built_in_function. Change type of 8th parameter from int
10501         to bool.
10502         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
10503         with GGC_CNEW().
10504         * c-typeck.c (convert_arguments): Change type of formal_prec from
10505         int to unsigned int.
10506         * genmodes.c (blank_mode): Make a few negative constants unsigned.
10507         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
10508         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
10509         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
10510         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
10511         iterator to for_all_modes () instead of an enum because enums can't
10512         be incremented in C++.
10513
10514
10515 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
10516
10517         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
10518         hard registers.
10519
10520 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10521
10522         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
10523         Handle ARRAY_RANGE_REF like ARRAY_REF.
10524
10525 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
10526
10527         * c-typeck.c (digest_init): Don't allow arrays of signed or
10528         unsigned variants of wchar_t to be initialized by wide string
10529         constants.  Do allow arrays of enumerated types compatible with
10530         wchar_t to be initialized by wide string constants.  Refine tests
10531         distinguishing wide and narrow strings and arrays.  Give specific
10532         error for arrays of other integer types initialized by string
10533         constants.
10534         (output_init_element, process_init_element): Check for
10535         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
10536         initializing with string constants.
10537
10538 2004-07-25  Richard Henderson  <rth@redhat.com>
10539
10540         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
10541         on the RESULT_DECL.
10542         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
10543         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
10544         DECL_IGNORED_P to new decl.
10545
10546 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
10547
10548         * config/ia64/ia64.c (general_xfmode_operand)
10549         (destination_xfmode_operand): Delete.
10550         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
10551         * config/ia64/ia64.md (*movxf_internal): Use general_operand
10552         and destination_operand.
10553
10554 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
10555
10556         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
10557         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
10558
10559 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
10560             Zack Weinberg  <zack@codesourcery.com
10561
10562         PR 16684
10563         * c-decl.c (diagnose_mismatched_decls): Don't issue a
10564         redundant-declaration warning the first time a builtin is
10565         declared explicitly.
10566
10567 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10568
10569         * tree.h (staticp): Change return type to bool.
10570
10571 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10572
10573         * c-common.c (c_staticp): Last episode of the staticp saga.
10574
10575 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10576
10577         * c-common.h (c_staticp): Change return type from int to bool.
10578         * tree.c (staticp): Likewise.
10579         * langhooks.h (staticp): Likewise.
10580
10581 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10582
10583         * langhooks-def.h (lhd_staticp): Change return type from int to
10584         bool in prototype to match definition.
10585
10586 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10587
10588         * system.h (bool, true, false): Don't redefine as preprocessor macros
10589         in C++.
10590
10591 2004-07-24  Roger Sayle  <roger@eyesopen.com>
10592
10593         * expmed.c (init_expmed): A signed modulus by a power of two is
10594         considered cheap if its less than or equal to four instructions.
10595
10596 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10597
10598         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
10599         GGC_CNEWVAR): New macros.
10600
10601 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10602
10603         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
10604         lists.
10605         * c-decl.c: Likewise.
10606         * c-format.c: Likewise.
10607         * c-lex.c: Likewise.
10608         * c-opts.c: Likewise.
10609         * c-pragma.c: Likewise.
10610         * c-typeck.c: Likewise.
10611         * gencheck.c: Likewise.
10612         * genconditions.c: Likewise.
10613         * genconfig.c: Likewise.
10614         * genflags.c: Likewise.
10615         * gengtype.c: Likewise.
10616         * gensupport.c: Likewise.
10617         * ggc-none.c: Likewise.
10618         * langhooks.c: Likewise.
10619         * statistics.h: Likewise.
10620         * stub-objc.c: Likewise.
10621         * java/decl.c: Likewise.
10622
10623 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
10624
10625         * config/m68k/m68k.c (output_scc_di): Fix coding style.
10626         (symbolic_operand): Fix prototype.
10627         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
10628         * config/m68k/m68k.md: Add constants for registers a0 and sp and
10629         use them, change from the "{...}" syntax to the simpler {...}
10630         syntax.
10631         (*cfv4_extendqisi2): Fix destination predicate.
10632         * config/m68k/m68k-protos.h: Remove various declarations also
10633         generated via PREDICATE_CODES.
10634
10635 2004-07-23  Mike Stump  <mrs@apple.com>
10636
10637         * c-typeck.c (convert_for_assignment): Tightened up pointer
10638         converstions that differ in signedness.
10639
10640 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
10641
10642         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
10643
10644 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10645
10646         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
10647         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
10648
10649         * gimplify.c (gimplify_compound_lval): Check for no handled
10650         operations, rather than checking for explicit list of nodes.
10651         (is_gimple_addr_expr_arg_or_indirect): New function.
10652         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
10653         redundant setting of TREE_INVARIANT.
10654         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
10655         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
10656
10657 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
10658
10659         PR tree-optimization/16688
10660         PR tree-optimization/16689
10661         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
10662         unnecessary initialization of 'tag'.
10663         (get_tmt_for): Check that the new type tag has the same alias
10664         set as the pointed-to type.
10665         (group_aliases): Only regular variables need to be removed
10666         from the alias set of a name tag.
10667         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
10668         propagation if the two types are not compatible.
10669         (merge_alias_info): Rename from replace_ssa_names_ann.
10670         Add more checking.
10671         (replace_exp_1): If both arguments are SSA_NAMEs, check that
10672         the propagation can be done.
10673         Only call merge_alias_info on pointers.
10674         (propagate_value): Likewise.
10675         * tree-ssa-copyrename.c: Include langhooks.h.
10676         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
10677         to do the merging.
10678         Do not coalesce variables with incompatible types.
10679         (rename_ssa_copies): Call replace_ssa_name_symbol.
10680         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
10681         the same type as the underlying _DECL.
10682         * tree-ssanames.c (replace_ssa_name_symbol): New function.
10683         * tree.h (replace_ssa_name_symbol): Declare.
10684
10685 2004-07-23  Richard Henderson  <rth@redhat.com>
10686
10687         PR c++/16277
10688         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
10689         unshare it properly.
10690         (gimplify_modify_expr_rhs): Push assignment from a conditional into
10691         the conditional for all non-register types.
10692
10693 2004-07-23  Richard Henderson  <rth@redhat.com>
10694
10695         * expr.c (expand_expr_real_1): Don't handle non-local variables.
10696         * expr.h (fix_lexical_addr): Remove.
10697         * function.c (NEED_SEPARATE_AP): Remove.
10698         (fix_lexical_addr): Remove.
10699         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
10700         not null decl_function_context.
10701         (create_alias_vars): Likewise.
10702         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
10703         (simple_goto_p): Likewise.
10704         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
10705         * tree-ssa-ccp.c (get_default_value): Likewise.
10706         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
10707         * tree.c (needs_to_live_in_memory): Likewise.
10708         * tree-flow-inline.h (may_be_aliased): Move...
10709         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
10710         when TREE_STATIC variables may be addressable.
10711
10712 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
10713
10714         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
10715
10716 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
10717
10718         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
10719         bitmap contents if GENERATOR_FILE is defined.
10720         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
10721         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
10722
10723 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
10724
10725         * c-decl.c (start_function): Form composite type of function types
10726         rather than copying type from previous prototype declaration.
10727
10728 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
10729
10730         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
10731         the const qualifier for the second argument in the C++ functions.
10732
10733         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
10734         specific pointer types.
10735
10736         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
10737         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
10738         for vector bool and/or vector pixel, add C++ and C missing support.
10739         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
10740         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
10741         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
10742         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
10743         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
10744         missing C++ and C support for vector bool and/or vector pixel.
10745         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
10746         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
10747         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
10748         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
10749         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
10750         C++ and C types used for vector bool and/or vector pixel.
10751         (vec_st, vec_stl): Add C++ support for vector pixel.
10752         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
10753         (vec_all_ne): Add C++ support for vector pixel.
10754
10755         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
10756         (vec_vmulesb): Add missing C++ function.
10757         (vec_perm): Fix type of third argument in C++ function.
10758         (vec_vsum4shs): Fix C++ function name.
10759         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
10760         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
10761         argument passed to the error handler in C macro.
10762         (vec_nmsub): Remove extra parens around argument names in C macro.
10763         (vec_packpx): Add missing parens in C macro.
10764
10765 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
10766
10767         * machmode.def: Remove vector modes.
10768         * config/alpha/alpha-modes.def: Add supported vector modes.
10769         * config/arm/arm-modes.def: Likewise.
10770         * config/frv/frv-modes.def: Likewise.
10771         * config/i386/i386-modes.def: Likewise.
10772         * config/rs6000/rs6000-modes.def: Likewise.
10773         * config/sh/sh-modes.def: Likewise.
10774
10775 2004-07-23  Matthias Klose  <doko@debian.org>
10776
10777         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
10778         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
10779         * config.h: Regenerate.
10780         * configure: Likewise.
10781
10782 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
10783
10784         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
10785         generated SYMBOL_REFs for labels.
10786         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
10787         Change prototype.
10788         (machopic_stub_name): Remove.
10789         (machopic_indirection_name): New function.
10790         (machopic_mcount_stub_name): Likewise.
10791         (machopic_classify_name): Remove.
10792         (machopic_function_base_sym): New function.
10793         (machpoic_classify_symbol): Likewise.
10794         (machopic_classify_ident): Remove.
10795         (machopic_define_ident): Likewise.
10796         (machopic_define_name): Likewise.
10797         (machopic_name_defined_p): Likewise.
10798         (machopic_ident_defined_p): Likewise.
10799         (darwin_strip_name_encoding): Likewise.
10800         (machopic_define_symbol): New function.
10801         * config/darwin.c (hashtab.h): Include.
10802         (machopic_defined_list): Remove.
10803         (machopic_classify_ident): Likewise.
10804         (machopic_classify_name): Likewise.
10805         (machopic_ident_defined_p): Likewise.
10806         (machopic_define_ident): Likewise.
10807         (machopic_define_name): Likewise.
10808         (machopic_symbol_defined_p): New function.
10809         (machopic_classify_symbol): Likewise.
10810         (machopic_data_defined_p): Use machopic_classify_symbol.
10811         (machopic_define_symbol): New function.
10812         (machopic_function_base_sym): New function.
10813         (machopic_non_lazy_pointers): Remove.
10814         (machopic_non_lazy_ptr_name): Likewise.
10815         (machopic_stubs): Likewise.
10816         (machopic_stub_name): Likewise.
10817         (NON_LAZY_POINTER_SUFFIX): New macro.
10818         (STUB_SUFFIX): Likewise.
10819         (machopic_indirection): New structure.
10820         (machopic_indirections): New variable.
10821         (machopic_indirection_hash): New function.
10822         (machopic_indirection_eq): Likewise.
10823         (machopic_indirection_name): Likewise.
10824         (machopic_mcount_stub_name): New function.
10825         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
10826         hash table.
10827         (machopic_indirect_data_reference): Rework to use new functions.
10828         (machopic_indirect_call_target): Likewise.
10829         (machopic_legitimize_pic_address): Likewise.
10830         (machopic_output_indirection): New function.
10831         (machopic_finish): Use it.
10832         (machopic_operand_p): Rework to use new functions.
10833         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
10834         (darwin_strip_name_encoding): Remove.
10835         (update_non_lazy_ptrs): Remove.
10836         (update_stubs): Likewise.
10837         (darwin_non_lazy_pcrel): Use new functions.
10838         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10839         (ASM_OUTPUT_LABELREF): Likewise.
10840         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10841         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
10842         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
10843         (TARGET_STRIP_NAME_ENCODING): Do not use
10844         darwin_strip_name_encoding.
10845         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
10846         darwin_strip_name_encoding.
10847         * config/i386/darwin.h (FUNCTION_PROFILER): Use
10848         machopic_mcount_stub_name.
10849         * config/i386/i386.c (x86_output_mi_thunk): Use
10850         machopic_indirection_name, not machopic_stub_name.
10851         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
10852         machopic_function_base_sym.
10853         (print_operand): Use machopic_classify_symbol.
10854         (rs6000_emit_prologue): Use machopic_function_base_sym.
10855         (output_profile_hook): Do not use machopic_stub_name.
10856         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
10857
10858 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10859
10860         PR c/7284
10861         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
10862         as multiplication.
10863
10864 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10865
10866         * doc/implement-c.texi: New file.
10867         * doc/extend.texi (C Implementation): Move to there.
10868         * doc/gcc.texi: Include implement-c.texi.
10869         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
10870
10871 2004-07-22  Jason Merrill  <jason@redhat.com>
10872
10873         * integrate.c (copy_decl_for_inlining): Remove invisible reference
10874         handling.
10875         * tree-inline.c (setup_one_parameter): Likewise.
10876
10877 2004-07-22  Brian Booth  <bbooth@redhat.com>
10878
10879         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
10880         (substitute_and_fold): Propigate into VUSE operands when possible.
10881         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
10882         (cp_lattice_meet): Handle merging of latticevalues when
10883         UNKNOWN_VAL is present.
10884         (visit_stmt): Visit assignments with V_MUST_DEFs.
10885         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
10886         (ccp_fold): Deal with RHS' that are constant and virtual.
10887         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
10888         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
10889         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
10890         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
10891         computing immediate uses.
10892         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
10893         transition.
10894         (replace_vuse_in): New function.
10895         (likely_value): Add check of vuse operands.
10896         (get_default_value): Set the default value of virtually defined
10897         variables to UKNOWN_VAL instead of VARYING.
10898
10899 2004-07-22  Richard Henderson  <rth@redhat.com>
10900
10901         * expr.c (emit_push_insn): Don't use set_mem_attributes.
10902
10903 2004-07-22  Richard Henderson  <rth@redhat.com>
10904
10905         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
10906         variables due to conditional compilation.
10907
10908 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
10909
10910         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
10911         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
10912         Release SSA names that have been re-renamed.
10913         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
10914         variable.
10915         * tree-ssa-alias.c (init_alias_info): If aliases have been
10916         computed before, clear existing alias information.
10917         (create_name_tags): Do no fixup PT_ANYTHING pointers.
10918         If the new name tag for a pointer is different than the one it
10919         had before, mark the old tag for renaming.
10920         (replace_may_alias): New function.
10921         (group_aliases): Call it.
10922         (setup_pointers_and_addressables): Always call get_tmt_for.
10923         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
10924         once.
10925         (set_pt_anything): New local function.
10926         (set_pt_malloc): New local function.
10927         (merge_pointed_to_info): Don't merge pointed-to variables from
10928         the original pointer if the destination is pointing to an
10929         unknown location.
10930         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
10931         (add_pointed_to_var): Do not add a variable to the points-to
10932         set if the pointer is already pointing to anywhere.
10933         (collect_points_to_info_r): If the defining statement is a PHI
10934         node, only merge pointed-to information if the argument has
10935         already been visited.
10936         (get_tmt_for): Only create a new tag if the pointer didn't
10937         have one already.
10938         (dump_alias_info): Emit more information.
10939         (dump_points_to_info_for): Likewise.
10940         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
10941         try to get the annotation of an SSA_NAME.
10942         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
10943         alias sets when checking is enabled.
10944         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
10945         (eliminate): Mark basic blocks that will need
10946         EH information cleaned up.
10947         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
10948         predecessor.
10949         Initialize need_eh_cleanup.
10950         (fini_pre): Call tree_purge_all_dead_eh_edges and
10951         cleanup_tree_cfg if needed.
10952         Free need_eh_cleanup.
10953         * tree-ssa.c (verify_ssa_name): New function.
10954         (verify_def): Call it.
10955         Re-arrange to avoid printing too many error messages.
10956         (verify_use): Likewise.
10957         (verify_phi_args): Likewise.
10958         (verify_flow_insensitive_alias_info): New function.
10959         (verify_flow_sensitive_alias_info): New function.
10960         (verify_alias_info): New function.
10961         (verify_ssa): Call verify_alias_info.
10962         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
10963         program.
10964         Re-arrange to avoid printing too many error messages.
10965         * tree-ssanames.c (make_ssa_name): Clear
10966         SSA_NAME_IN_FREE_LIST.
10967         (release_ssa_name): Never release a default definition.
10968         (release_defs): New function.
10969         * tree.h: Declare it.
10970         * tree-ssa-dce.c (remove_dead_stmt): Call it.
10971
10972 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
10973
10974         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
10975         If true, do a depth-first search.  Do a breadht-first search,
10976         otherwise.
10977         (walk_use_def_chains): Add new argument IS_DFS.
10978         Update all users.
10979         * tree-flow.h (walk_use_def_chains): Update prototype.
10980
10981 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
10982
10983         * config/cris/cris.md: Tweak formatting.
10984         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
10985         (mover2side, moverside, movemside, movei, op3, andu): Replace
10986         live define_peephole:s with define_peephole2 near-equivalents.
10987         Delete the rest.
10988         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
10989         word-size modes.
10990         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
10991         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
10992         "*mov_sidesi_mem" respectively.
10993
10994 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
10995
10996         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
10997         (gimplify_build1): Move from tree-complex.c do_unop.
10998         (gimplify_build2): Move from tree-complex.c do_binop.
10999         (gimplify_build3): New.
11000         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
11001         Adjust throughout to call the functions above.
11002         * tree-flow.h: Declare the functions above.
11003         * tree-nested.c (gimplify_val): Rename to...
11004         (tsi_gimplify_val): ... this.
11005
11006         * Makefile.in (tree_complex.o): Update dependencies.
11007         (stor-layout.o): Depend on regs.h.
11008         * c-common.c (handle_vector_size_attribute): Update for
11009         vector types without corresponding vector modes.
11010         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
11011         a corresponding vector mode is not available.
11012         * print-tree.c (print_node): Print nunits for vector types
11013         * regclass.c (have_regs_of_mode): New.
11014         (init_reg_sets_1): Initialize it and use it instead
11015         of allocatable_regs_of_mode.
11016         * regs.h (have_regs_of_mode): Declare it.
11017         * stor-layout.c (layout_type): Pick a mode for vector types.
11018         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
11019         build_replicated_const, do_unop, do_binop, do_plus_minus,
11020         do_negate, expand_vector_piecewise, expand_vector_parallel,
11021         expand_vector_addition, expand_vector_operations_1,
11022         expand_vector_operations, tree_lower_operations,
11023         pass_lower_vector_ssa, pass_pre_expand): New.
11024         (expand_complex_operations, pass_lower_complex): Remove.
11025         * tree-optimize.c (init_tree_optimization_passes): Adjust
11026         pass ordering for changes in tree-complex.c.
11027         * tree-pass.h: Declare new passes.
11028         * tree.c (finish_vector_type): Remove.
11029         (make_vector_type): New.
11030         (build_vector_type_for_mode, build_vector_type): Rewritten.
11031         * tree.def (VECTOR_TYPE): Document where the number of
11032         subparts is stored.
11033         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
11034         (make_vector): Remove declaration.
11035
11036 2004-07-21  Richard Henderson  <rth@redhat.com>
11037
11038         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
11039         TREE_THIS_VOLATILE, may_aliases, or optimization level.
11040         (remove_useless_vars): Dump debugging info.
11041         (expand_used_vars): Move ...
11042         * cfgexpand.c (expand_used_vars): ... here.  Make static.
11043         * tree-flow-inline.h (set_is_used): New.
11044         (set_default_def): Use get_var_ann.
11045         * tree-flow.h: Update decls.
11046         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
11047         (create_ssa_var_map): Use it.
11048         * tree-ssa.c (set_is_used): Remove.
11049
11050 2004-07-22  Ben Elliston  <bje@au.ibm.com>
11051
11052         * gdbinit.in: Set a breakpoint on internal_error.
11053
11054 2004-07-21  Richard Henderson  <rth@redhat.com>
11055
11056         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
11057         to create a new basic block.
11058
11059 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
11060
11061         PR c/15052
11062         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
11063         return type on function definitions.  Move other warnings for
11064         qualified return type to -Wreturn-type.  Do not condition any such
11065         warnings on -pedantic.  Update comments.
11066         (start_function): Only copy function type from previous prototype
11067         declaration if return types are compatible.
11068         * c-typeck.c (function_types_compatible_p): Don't condition
11069         warning for incompatibility of volatile qualifiers on the return
11070         type on -pedantic.  Update comment.
11071         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
11072
11073 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
11074
11075         * c-typeck.c (set_init_index): Require designator to be of integer
11076         type.
11077
11078 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
11079
11080         PR c/11250
11081         * c-parse.in (init): Change to exprtype.
11082         (primary): Set original_code for STRING to STRING_CST.
11083         Call maybe_warn_string_init for compound literals.
11084         (initdcl, notype_initdcl): Call maybe_warn_string_init.
11085         (initval): Update.
11086         * c-tree.h (maybe_warn_string_init): New.
11087         (pop_init_level, process_init_element): Use struct c_expr.
11088         (struct c_expr): Update comment.
11089         * c-typeck.c (maybe_warn_string_init): New function.
11090         (digest_init): Call it.  Additional parameter strict_string.  All
11091         callers changed.
11092         (output_init_element): Likewise.
11093         (struct constructor_stack): Use struct c_expr for
11094         replacement_value.
11095         (really_start_incremental_init, push_init_level): Update.
11096         (pop_init_level): Update.  Return struct c_expr.
11097         (process_init_level): Update.  Take struct c_expr argument.
11098
11099 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
11100
11101         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
11102         commit.
11103
11104 2004-07-21  Eric Christopher  <echristo@redhat.com>
11105
11106         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
11107         removal.
11108         * c-decl.c (pop_scope): Ditto.
11109         * calls.c (expand_call): Remove call to current_nesting_level,
11110         update comment accordingly. Remove calls to expand_start_target_temps
11111         and expand_end_target_temps.
11112         * cfgexpand.c (construct_init_block): Remove call to
11113         expand_start_bindings_and_block.
11114         (construct_exit_block): Remove call to expand_end_bindings.
11115         * expr.c (safe_from_p): Remove BIND_EXPR handling.
11116         (expand_expr_real_1): Ditto. Fix formatting.
11117         (expand_vars): Delete.
11118         * stmt.c (POPSTACK): Remove block_stack.
11119         (stmt_status): Remove x_block_stack.
11120         (block_stack): Delete.
11121         (expand_start_bindings_and_block): Ditto.
11122         (expand_start_target_temps): Ditto.
11123         (expand_end_target_temps): Ditto.
11124         (current_nesting_level): Ditto.
11125         (warn_about_unused_variables): Ditto.
11126         (expand_end_bindings): Ditto.
11127         * tree.h: Remove declarations for above.
11128
11129 2004-07-21  Steven Bosscher  <stevenb@suse.de>
11130
11131         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
11132         * rtl.c (note_insn_name): Likewise.
11133         * print-rtl.c (print_rtx): Don't print it.
11134         * cfgrtl.h (can_delete_note_p): Don't handle it.
11135         (rtl_delete_block): Likewise.
11136         * passes.c (rest_of_handle_guess_branch_prob): Remove.
11137         (rest_of_compilation): Don't call it.
11138         * predict.c (process_note_predictions, process_note_prediction,
11139         note_prediction_to_br_prob): Remove.
11140         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
11141         * stmt.c (return_prediction): Remove.
11142         (expand_value_return): Don't call it.  Don't add prediction
11143         notes for return statements.
11144
11145 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
11146
11147         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
11148         once.
11149
11150 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
11151
11152         * c-common.c (vector_types_convertible_p): Use vector types'
11153         TYPE_SIZE and TREE_TYPE instead of their mode.
11154         * convert.c (convert_to_integer): Likewise.
11155         (convert_to_vector): Likewise.
11156         * fold-const.c (fold_convert): Likewise.
11157         * varasm.c (output_constant): Likewise.
11158         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
11159         Allow a VECTOR_TYPE initializer to be made of several vectors.
11160         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
11161         of cleared and need_to_clear, and use fold_convert.
11162         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
11163         integer vectors.
11164
11165 2004-07-20  Richard Henderson  <rth@redhat.com>
11166
11167         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
11168         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
11169
11170 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
11171
11172         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
11173         enormous cost if not TARGET_HARD_MUL.
11174
11175 2004-07-20  Andrew Pinski  <apinski@apple.com>
11176
11177         PR target/16557
11178         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
11179         (ASM_SPEC): here.
11180
11181 2004-07-21  Paul brook  <paul@codesourcery.com>
11182
11183         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
11184
11185 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11186
11187         * fold-const.c (operand_equal_p): Temporarily support NULL args.
11188         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
11189         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
11190
11191 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
11192
11193         * rtl.h (plus_constant): Delete.
11194         (plus_constant_wide): Rename to plus_constant.
11195         (plus_constant_for_output_wide): Delete vestigial prototype.
11196         (GEN_INT): Remove unnecessary cast.
11197         * tree.h (build_int_2, size_int_type): Delete.
11198         (build_int_2_wide): Rename to build_int_2.
11199         (size_int_wide): Rename to size_int_kind.
11200         (size_int_type_wide): Rename to size_int_type.
11201         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
11202         Remove unnecessary cast.
11203         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
11204         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
11205         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
11206         (size_int_type_wide): Rename size_int_type.
11207         (int_const_binop): Use size_int_type.
11208         * c-lex.c (interpret_integer): Use build_int_2.
11209         * final.c (split_double): Remove unnecessary casts.
11210         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
11211
11212 2004-07-20  Richard Henderson  <rth@redhat.com>
11213
11214         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
11215         (gimplify_compound_lval): Use is_gimple_tmp_reg.
11216         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
11217         (is_gimple_tmp_reg): New.
11218         * tree-gimple.h (is_gimple_tmp_reg): Declare.
11219
11220 2004-07-20  Richard Henderson  <rth@redhat.com>
11221
11222         * tree-pretty-print.c (dump_generic_node): Dump
11223         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
11224
11225 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
11226
11227         * tree-mudflap.c (mf_set_options_fndecl): New tree.
11228         (mudflap_init): Set it.
11229         (mudflap_register_call): Remove __mf_init call.
11230         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
11231         to pass "-ignore-reads" option to libmudflap if needed.
11232
11233 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
11234
11235         PR c++/14607
11236         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
11237         (MAKE_DECL_ONE_ONLY): Undefine.
11238         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
11239         readonly_data, one_only_data_section, forget_section): New prototypes.
11240         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
11241         functions.
11242         (pa_select_section): Add one-only (COMDAT) support.
11243         * pa.h (struct machine_function): Define.
11244         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
11245         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
11246         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
11247         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
11248         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
11249         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
11250         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
11251         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
11252         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
11253         for EXTRA_SECTION_FUNCTIONS.
11254         * doc/install.texi: Update binutils requirements.
11255
11256 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
11257
11258         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
11259         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
11260         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
11261         size_t.
11262         (struct VEC): Use unsigned for num and alloc.
11263         * vec.c (struct vec_prefix): Likewise.
11264         (vec_o_reserve): Adjust.
11265
11266         * dbxout.c (dbxout_type): Fix printf format.
11267
11268         * tree.h (binfo_member): Remove.
11269         * tree.c (binfo_member): Remove.
11270
11271 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
11272
11273         * tree.h: Include vec.h
11274         (DEF_VEC_P(tree)): New type.
11275         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
11276         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
11277         (BINFO_LANG_SLOT): Remove.
11278         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
11279         (struct tree_binfo): Turn base_binfos into a trailing
11280         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
11281         (binfo_lang_slots): Remove.
11282         * tree.c (binfo_lang_slots): Remove.
11283         (make_tree_binfo_stat): Take a base binfo count, not a
11284         lang slot count.  Adjust.
11285         * Makefile.in (TREE_H): Add vec.h
11286         * alias.c (record_component_aliases): Adjust BINFO access.
11287         * dbxout.c (dbxout_type): Likewise.
11288         * dwarf2out.c (gen_member_die): Likewise.
11289         * sdbout.c (sdbout_one_type): Likewise.
11290         * tree-dump.c (deque_and_dump): Likewise.
11291         * config/i386/i386.c (classify_argument,
11292         contains_128bit_aligned_vector_p): Likewise.
11293         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
11294         * doc/c-tree.texi (Classes): Update BINFO documentation.
11295
11296 2004-07-20  Steven Bosscher  <stevenb@suse.de>
11297
11298         * c-common.h (check_case_value): Remove prototype.
11299         (c_add_case_label): Adjust prototype.
11300         * c-common.c (check_case_value): Make static.
11301         (check_case_bounds): New function.
11302         (c_add_case_label): Use it.  Take new argument orig_type.
11303         * c-typeck.c (struct c_switch): New orig_type field.
11304         (c_start_case): Set it.
11305         (do_case): Pass it to c_add_case_label.
11306         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
11307         cases from here.  Add the labels in reverse order.
11308         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
11309         (add_case_node): Return nothing, don't check for duplicate cases.
11310         Insert new case nodes in a list, not in an AVL tree.
11311         (expand_end_case_type): Don't turn a case tree into a case list.
11312         (case_tree2list): Remove.
11313         * tree.h (add_case_node): Adjust prototype.
11314
11315 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
11316
11317         * genattr.c (struct range, struct function_unit,
11318         write_units, extend_range, init_range): Remove them.
11319         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
11320         Output "#define INSN_SCHEDULING" here.
11321         * genattrtab.c (struct range, struct function_unit_op,
11322         struct function_unit, struct dimension, enum operator,
11323         operate_exp, expand_units, simplify_knowing,
11324         encode_units_mask, simplify_by_exploding,
11325         find_and_mark_used_attributes, unmark_used_attributes,
11326         add_values_to_cover, increment_current_value,
11327         test_for_current_value, simplify_with_current_value,
11328         simplify_with_current_value_aux, gen_unit,
11329         write_unit_name, write_function_unit_info,
11330         write_complex_function, write_toplevel_expr,
11331         find_single_value, extend_range): Remove.
11332         (write_attr_get): Do not handle common_av->value
11333         being an FFS.
11334         (struct attr_desc): Remove func_units_p and blockage_p.
11335         (write_attr_valueq): Do not handle them.
11336         (find_attr): Do not clear them.
11337         (make_internal_attr): Do not initialize them.
11338         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
11339         * sched-vis.c (init_target_units, insn_print_units,
11340         init_block_visualization, print_block_visualization,
11341         visualize_scheduled_insns, visualize_no_unit,
11342         visualize_stall_cycles, visualize_alloc,
11343         visualize_free, target_units, get_visual_tbl_length,
11344         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
11345         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
11346         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
11347         * haifa-sched.c (blockage_range, clear_units,
11348         schedule_unit, actual_hazard, potential_hazard,
11349         insn_unit, unit_last_insn, unit_tick,
11350         actual_hazard_this_instance, potential_hazard,
11351         schedule_unit, max_insn_queue_index_value): Remove.
11352         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
11353         max_insn_queue_index.
11354         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
11355         * doc/md.texi (Processor pipeline description): Remove
11356         references to old pipeline descriptions.
11357         (Automaton pipeline description): Merge with the above.
11358         (Old pipeline description, Comparison of the two descriptions):
11359         Remove.
11360
11361         * bt-load.c (migrate_btr_def): Remove references to
11362         use_pipeline_interface.
11363         * haifa-sched.c (insn_cost, schedule_insn,
11364         schedule_block, advance_one_cycle, sched_init,
11365         queue_to_ready, sched_finish): Likewise.
11366         * modulo-sched.c (sms_schedule, advance_one_cycle,
11367         ps_has_conflicts): Likewise.
11368         * sched-rgn.c (init_ready): Likewise.
11369         (debug_dependencies): Likewise, and remove an "if (1)".
11370         * target.h (use_dfa_pipeline_interface): Remove.
11371         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11372         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11373         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11374         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11375         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11376         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11377         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11378         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11379         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11380         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11381         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11382         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11383         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11384         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11385         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11386         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11387         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11388         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11389         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
11390
11391 2004-07-19  Roger Sayle  <roger@eyesopen.com>
11392
11393         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
11394
11395 2004-07-19  Jeff Law  <law@redhat.com>
11396
11397         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
11398         (get_eq_expr_value): Use it.  Simplify slightly.
11399
11400 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
11401
11402         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
11403         (umulsidi3_32bit_r4000): Likewise.
11404
11405 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
11406
11407         * vec.h: Propagate location information properly.
11408         (VEC_T_iterate): Add result pointer parameter.
11409         (VEC_T_space): New.
11410         (VEC_T_reserve): Use it.
11411
11412 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
11413
11414         * Makefile.in (c-format.o): Depend on c-format.h.
11415         * c-format.h: New file.
11416         (struct format_char_info): Add CHAIN member.
11417         * c-format.c: Move some types and constants to c-format.h.
11418         (format_type_error): Set to -1.
11419         (struct function_format_info): Use an int for format_type.
11420         (decode_format_type): Return an int.  Return format_type_error
11421         on error.
11422         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
11423         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
11424         (scan_char_table, time_char_table, monetary_char_table): Initialize
11425         CHAIN to NULL.
11426         (n_format_types): New variable.
11427         (check_format_info_main): Handle CHAIN in format_char_info.
11428         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
11429         TARGET_N_FORMAT_TYPES.
11430         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
11431         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
11432         * config/sol2-c.c: New file.
11433         * config/t-sol2: New file.
11434         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
11435         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
11436         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
11437
11438         * doc/extend.texi (Target Format Checks): New section.
11439         (Function Attributes): Mention it.
11440         * doc/invoke.texi: Mention target format checks.
11441         * doc/sourcebuild.texi: Mention target format checks.
11442         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
11443         TARGET_FORMAT_TYPES.
11444
11445 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
11446
11447         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
11448         added.
11449         * config/s390/s390.c (regclass_map initializer): Register 35 added to
11450         ADDR_REGS.
11451         (load_multiple_operation, store_multiple_operation): Removed
11452         pointless sanity check.
11453         (s390_decompose_address): Added check for return_address_pointer_rtx.
11454         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
11455         (s390_return_address_offset): New function.
11456         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
11457         (FRAME_REGNO_P): Added check for register 35.
11458         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11459         REG_ALLOC_ORDER): Appended entry for register 35.
11460         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
11461         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
11462         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
11463         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
11464         is eliminable using stack pointer or hard frame pointer.
11465         (REGISTER_NAMES): Added name for register 35.
11466         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
11467         pointless sanity check.
11468
11469 2004-07-19  Roger Sayle  <roger@eyesopen.com>
11470
11471         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
11472         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
11473         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
11474         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
11475         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
11476         (fold_relational_const): Tidy up handling of floating point
11477         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
11478         transformation; fold_relational_const assumes constant operands.
11479
11480 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
11481
11482         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
11483         directory.
11484
11485 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
11486
11487         * c-tree.h (struct c_expr): Define.
11488         (C_SET_EXP_ORIGINAL_CODE): Remove.
11489         (parser_build_binary_op, build_compound_expr): Update prototypes.
11490         * c-parse.in (%union): Add exprtype.
11491         (FUNC_NAME): Mark as ttype.
11492         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
11493         exprtype.
11494         (expr): Update.  Define directly in terms of expr_no_commas
11495         instead of using nonnull_exprlist.
11496         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
11497         offsetof_member_designator, typespec_nonreserved_nonattr, init,
11498         initval, designator, component_declarator,
11499         component_notype_declarator, enumerator, array_declarator,
11500         condition, exexpr, switch_statement, stmt_nocomp, stmt,
11501         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
11502         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
11503         where appropriate.
11504         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
11505         * c-common.c (c_common_truthvalue_conversion): Don't check
11506         C_EXP_ORIGINAL_CODE.
11507         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
11508         Don't use C_EXP_ORIGINAL_CODE.
11509         (default_conversion, default_function_array_conversion): Don't use
11510         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
11511         (internal_build_compound_expr): Merge into build_compound_expr.
11512         (build_compound_expr): Take two operands instead of a TREE_LIST.
11513         * objc/objc-act.c (get_super_receiver): Update calls to
11514         build_compound_expr.
11515
11516 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
11517
11518         * config/sh/sh.c (sh_use_dfa_interface): Remove.
11519         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
11520         hook_int_void_1.
11521         * config/sh/sh.md: Extract pipeline descriptions
11522         into separate files.
11523         * config/sh/sh1.md: New file, extracted from sh.md.
11524         * config/sh/sh4.md: New file, extracted from sh.md.
11525         * config/sh/shmedia.md: New file, extracted from sh.md
11526         and rewritten using new-style pipeline description.
11527
11528 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
11529
11530         * config/pa/pa.md: Delete the two remaining define_peephole
11531         patterns.
11532
11533 2004-07-18  Steven Bosscher  <stevenb@suse.de>
11534             Joseph S. Myers  <jsm@polyomino.org.uk>
11535
11536         * c-common.c (c_common_truthvalue_conversion): Don't warn if
11537         TREE_NO_WARNING is set.
11538
11539 2004-07-18  Roger Sayle  <roger@eyesopen.com>
11540
11541         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
11542         simplify_builtin_strncmp): Delete.
11543         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
11544         Change argument to accept an arglist instead of an "exp".  Assume
11545         that the return type is always integer_type_node.  Copy missing
11546         transformations from their now obsolete simplify_builtin_*
11547         equivalents.
11548         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
11549         fold_builtin_strcmp and fold_builtin_strncmp.
11550         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
11551         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
11552         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
11553
11554 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
11555
11556         * Makefile.in (tree-alias-common.o): Update dependencies.
11557
11558 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
11559
11560         * cfgloop.c (flow_loop_nested_p): Fix comment.
11561
11562 2004-07-17  Jason Merrill  <jason@redhat.com>
11563
11564         PR c++/16115
11565         * stor-layout.c (relayout_decl): New fn.
11566         * tree.h: Declare it.
11567         (DECL_BY_REFERENCE): New macro.
11568
11569 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
11570
11571         * libgcc2.c (__enable_execute_stack): New symbol.
11572         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
11573         and declare __enable_execute_stack.
11574         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
11575         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
11576         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
11577         ENABLE_EXECUTE_STACK.
11578         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
11579         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
11580         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
11581         ENABLE_EXECUTE_STACK.
11582         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11583         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
11584         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
11585         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
11586         ENABLE_EXECUTE_STACK.
11587         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11588         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11589         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11590         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11591         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
11592         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
11593         (sparc64_initialize_trampoline): Likewise.
11594         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
11595
11596 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
11597
11598         * langhooks.h (builtin_function): New langhook.
11599         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
11600         (LANG_HOOKS_INITIALIZER): Update.
11601         * tree.h (builtin_function): Remove.
11602         * doc/tm.texi: Update.
11603         * c-tree.h (builtin_function): Declare.
11604         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
11605         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
11606         config/ia64/ia64.c, config/iq2000/iq2000.c,
11607         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
11608         config/stormy16/stormy16.c: All callers of builtin_function
11609         changed.
11610
11611 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
11612
11613         PR target/16556
11614         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
11615         Remove white space after the backslash.
11616
11617 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11618
11619         PR rtl-optimization/16294
11620         * resource.c (return_insn_p): New predicate.
11621         (mark_target_live_regs): Use it.  Special-case return insns.
11622         (init_resource_info): Use it.  Don't scan the epilogue past
11623         a return.
11624
11625 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11626
11627         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
11628         destroy dominance information.
11629         * passes.c (rest_of_handle_loop2):  Free dominance information.
11630         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
11631         jump threading.
11632         (thread_jumps): Update dominance information and remove unreachable
11633         blocks.
11634         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
11635         information and remove the unreachable block.
11636
11637 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
11638
11639         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
11640
11641 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
11642
11643         * doc/sourcebuild.texi: Remove libf2c entry.
11644
11645 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
11646
11647         * config/i386/i386.md (movv16qi_internal): Fix typo.
11648
11649 2004-07-17  Steven Bosscher  <stevenb@suse.de>
11650
11651         * final.c (final_scan_insn): Fix broken commit from previous
11652         patch.
11653
11654 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
11655
11656         * c-typeck.c (parser_build_binary_op): Condition warnings for
11657         X<=Y<=Z on -Wparentheses instead of -Wextra.
11658         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
11659         supported for C only.
11660
11661 2004-07-17  Steven Bosscher  <stevenb@suse.de>
11662
11663         * cfgcleanup.c (try_simplify_condjump): Don't remove line
11664         notes to avoid unreachable code warnings.
11665         * toplev.c (backend_init): Don't emit line notes for
11666         unreachable code warnings.
11667
11668         * combine.c (distribute_notes): Don't distribute a
11669         REG_VTABLE_REF note.
11670         * final.c (final_scan_insn): Don't handle it.
11671         * rtl.c (reg_note_name): Remove it.
11672         * rtl.h (enum reg_node): Dito.
11673
11674         * emit-rtl.c (force_line_numbers, restore_line_number_status):
11675         Remove.
11676         * rtl.h (force_line_numbers, restore_line_number_status):
11677         Remove prototypes.
11678
11679         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
11680         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
11681         (using_eh_for_cleanups): Also moved here.
11682
11683         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
11684         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
11685         to expand_start_case and add_case_node.
11686         * stmt.c (struct nesting): Cleanup unused fields condition_code,
11687         last_unconditional_cleanup, nominal_type, printname, and
11688         line_number_status.
11689         (struct fixup_goto): Remove.
11690         (struct stmt_status): Remove x_goto_fixup_chain field.
11691         (goto_fixup_chain): Remove.
11692         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
11693         pushcase, pushcase_range): Remove.
11694         (expand_start_bindings_and_block): Don't set unused fields in
11695         the nesting stack.
11696         (expand_start_case, add_case_node): Cleanup unused formal arguments.
11697         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
11698         instead of emit_jump_if_reachable.
11699         (emit_case_nodes): Likewise.
11700         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
11701         static.
11702         (update_eh_label): Work around left-over exception handing regions.
11703         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
11704         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
11705         (pass_cleanup_cfg_post_optimizing): New pass.
11706         (init_tree_optimization_passes): Run the new pass after all
11707         optimizations.
11708         * tree.h (pushcase, pushcase_range): Remove prototypes.
11709         (expand_start_case, add_case_node): Update prototypes.
11710
11711 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
11712
11713         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
11714
11715 2004-07-16  Richard Henderson  <rth@redhat.com>
11716
11717         * builtins.c (std_expand_builtin_va_arg): Remove.
11718         (expand_builtin_va_arg): Remove.
11719         * expr.h: Don't declare them.
11720         * gimplify.c (mark_decls_volatile_r): Remove.
11721         (copy_if_shared_r): Don't call it.
11722         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
11723         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
11724         * gimple-low.c (lower_stmt): Likewise.
11725         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
11726         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
11727         * tree-ssa-operands.c (get_expr_operands): Likewise.
11728         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
11729         EXPAND_BUILTIN_VA_ARG.
11730         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
11731         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
11732         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
11733         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
11734
11735 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
11736
11737         * tree-ssa-pre.c (insert_aux): Break out if we hit
11738         a critical edge.
11739
11740 2004-07-16  Richard Henderson  <rth@redhat.com>
11741
11742         * basic-block.h (remove_fake_exit_edges): Declare.
11743         * cfganal.c (remove_fake_predecessors): Rename from
11744         remove_fake_successors; iterate over predecessors.
11745         (remove_fake_exit_edges): New.
11746         * cfgcleanup.c (try_optimize_cfg): Use it.
11747         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
11748         * predict.c (estimate_probability): Likewise.
11749         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
11750         * tree-cfg.c (make_edges): Likewise.
11751         * tree-ssa-pre.c (fini_pre): Likewise.
11752         * profile.c (instrument_edges): Don't remove_fake_edges.
11753         (branch_prob): Do it earlier here.
11754
11755 2004-07-16  Richard Henderson  <rth@redhat.com>
11756
11757         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
11758         switchification wrt CONSTRUCTOR.  Document the reason.
11759
11760 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
11761
11762         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
11763         that prevented descriptive __mf_check source location strings.
11764
11765 2004-07-16  Richard Henderson  <rth@redhat.com>
11766
11767         * tree-def (WITH_SIZE_EXPR): New.
11768         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
11769         * expr.c (expand_expr_real_1): Likewise.
11770         * gimplify.c (maybe_with_size_expr): New.
11771         (gimplify_arg, gimplify_modify_expr): Use it.
11772         (gimplify_modify_expr_to_memcpy): Take size parameter.
11773         (gimplify_modify_expr_to_memset): Likewise.
11774         (gimplify_expr): Handle WITH_SIZE_EXPR.
11775         * tree-alias-common.c (find_func_aliases): Likewise.
11776         * tree-eh.c (tree_could_trap_p): Likewise.
11777         (tree_could_throw_p): Likewise.
11778         * tree-gimple.c (is_gimple_lvalue): Likewise.
11779         (get_call_expr_in): Likewise.
11780         * tree-inline.c (estimate_num_insns_1): Likewise.
11781         (expand_calls_inline): Likewise.
11782         * tree-nested.c (convert_call_expr): Likewise.
11783         * tree-pretty-print.c (dump_generic_node): Likewise.
11784         * tree-sra.c (sra_walk_expr): Likewise.
11785         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
11786         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
11787         * tree-ssa-operands.c (get_expr_operands): Likewise.
11788         * tree-tailcall.c (find_tail_calls): Likewise.
11789
11790         * calls.c (expand_call): Reset old_stack_allocated after
11791         calling emit_stack_restore.
11792
11793 2004-07-16  Richard Henderson  <rth@redhat.com>
11794
11795         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
11796         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
11797         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
11798         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
11799         copy_res_decl_for_inlining.
11800
11801         * tree-inline.c (declare_return_variable): New modify_dest argument.
11802         Use it as the return value, when possible or manditory.  Handle
11803         TREE_ADDRESSABLE types.
11804         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
11805         replacement of CALL_EXPR.
11806
11807 2004-07-16  Richard Henderson  <rth@redhat.com>
11808
11809         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
11810         * gimple-low.c (expand_var_p): Don't check it.
11811         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
11812         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
11813         * tree-ssa-operands.c (add_stmt_operand): Likewise.
11814         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
11815         (find_referenced_vars): Don't call them.
11816         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
11817
11818 2004-07-16  Richard Henderson  <rth@redhat.com>
11819
11820         * function.c (pass_by_reference): True for all variable sized types.
11821
11822 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
11823
11824         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
11825         * tree-pretty-print.c: Include tree-chrec.h.
11826         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
11827         and POLYNOMIAL_CHREC nodes.
11828
11829 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
11830
11831         * builtins.c (expand_builtin_stpcpy): Do not create temporary
11832         reg with VOIDmode.
11833
11834 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
11835
11836         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
11837
11838 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
11839
11840         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
11841         to BASE_REGNUM.
11842         * config/s390/s390.c: Likewise.
11843         * config/s390/s390.h: Likewise.
11844
11845 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11846
11847         * config/mips/mips.md (addsi3, adddi3): Remove special handling
11848         of $sp adds.  Remove REGNO checks from mips16 patterns.
11849
11850 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11851
11852         * config/mips/mips.md: Delete outdated comment.
11853
11854 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11855
11856         * config/mips/mips.c (get_float_compare_codes): Delete.
11857         (mips_emit_compare): New function, mostly extracted from
11858         get_float_compare_codes and gen_conditional_branch.
11859         (gen_conditional_branch, gen_conditional_move): Use it.
11860
11861 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
11862
11863         * genautomata.c (add_vect): Speedup by using integers as
11864         bit-vectors for walking through the comb_vect and finding
11865         a match.
11866
11867 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11868
11869         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
11870         operand is an uns_arith_operand; use subtraction otherwise.
11871         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
11872         not just arith_operands.
11873
11874 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11875
11876         * config/mips/mips-protos.h (gen_int_relational): Delete.
11877         (mips_emit_scc): Declare.
11878         * config/mips/mips.c (internal_test): Delete.
11879         (sle_operand, sleu_operand): New functions.
11880         (map_test_to_internal_test, gen_int_relational): Delete.
11881         (mips_emit_binary, mips_relational_operand_ok_p)
11882         (mips_emit_int_relational, mips_zero_if_equal)
11883         (mips_emit_scc): New functions.
11884         (gen_conditional_branch): Rework to use mips_emit_int_relational.
11885         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
11886         sleu_operand.
11887         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
11888         (sltu, sleu): Use mips_emit_scc.
11889         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
11890         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
11891         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
11892
11893 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11894
11895         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
11896
11897 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11898
11899         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
11900         (*sne_[sd]i): Likewise sne_[sd]i_zero.
11901         (*sgt_[sd]i): ...and sgt_[sd]i.
11902         (*slt_[sd]i): ...and slt_[sd]i.
11903         (*sgtu_[sd]i): ...and sgtu_[sd]i.
11904         (*sltu_[sd]i): ...and sltu_[sd]i.
11905         (*sleu_[sd]i): ...and sleu_[sd]i_const.
11906         Name previously unnamed mips16 patterns.  Formatting fixes.
11907
11908 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11909
11910         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
11911         (branch_type): Delete.
11912         (gen_conditional_branch, gen_conditional_move)
11913         (mips_gen_conditional_trap): Update after name change.  Get the
11914         comparison mode from cmp_operands[0].
11915         * config/mips/mips.h (cmp_type, branch_type): Delete.
11916         (cmp_operands): Renamed from branch_cmp.
11917         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
11918         name change.  Don't set branch_type.
11919         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
11920         mode class of cmp_operands[0] rather than branch_type.  Update after
11921         name change.
11922
11923 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11924
11925         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
11926         of 0...255 to 0 when inside a SET.
11927
11928 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11929
11930         * config/mips/mips.md: Remove mips16 define_peepholes.
11931
11932 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
11933
11934         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
11935         (fini_pre): Remove fake edges.
11936
11937 2004-07-15  Richard Henderson  <rth@redhat.com>
11938
11939         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
11940         (get_indirect_ref_operands, get_call_expr_operands): ... these.
11941
11942 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
11943
11944         * vec.h (VEC_address): New function.
11945
11946 2004-07-14  Jason Merrill  <jason@redhat.com>
11947
11948         PR middle-end/15885
11949         * gimplify.c (gimplify_arg): New fn, split out from...
11950         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
11951
11952 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
11953
11954         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
11955         generate code which is generated by pushqi1 now
11956         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
11957
11958 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
11959
11960         * combine.c (simplify_set): match the mode of the constant 0 with
11961         the tested operand to match the compare behaviour and the
11962         simplify_relational_operation() expectation.
11963
11964 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
11965
11966         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
11967         ("bordered"): Same.
11968
11969 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
11970
11971         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
11972         unconditionally.
11973         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
11974
11975 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
11976
11977         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
11978         calls in mips16 code.
11979
11980 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
11981
11982         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
11983         the destination of the li as well as for the neg.
11984
11985 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
11986
11987         g++/15861
11988         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
11989         * cgraph.h: Update declaration.
11990         * c-decl.c (build_cdtor): Update call with default priority.
11991         * coverage.c (create_coverage): Ditto.
11992         * tree-mudflap.c (mf_init_fndecl): New tree.
11993         (mudflap_init): Set it.
11994         (mudflap_register_call): Arrange to call __mf_init before the first
11995         __mf_register call.
11996         (mudflap_finish_file): Mark the mudflap static initializer as extra
11997         high priority, to beat all C++ static constructors.
11998
11999 2004-07-15  Jeff Law  <law@redhat.com>
12000
12001         * loop.c (check_insn_for_givs): Restore check for code labels that was
12002         accidentally deleted by a recent checkin.
12003
12004 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
12005
12006         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
12007         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
12008
12009 2004-07-14  Richard Henderson  <rth@redhat.com>
12010
12011         * print-tree.c (print_node): Fix casts last change.
12012
12013 2004-07-15  Paul Brook  <paul@codesourcery.com>
12014
12015         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
12016         to TARGET_UNWIND_INFO.
12017         * except.c (output_function_exception_table): Ditto.
12018         * except.h: Ditto.
12019         * opts.c (decode_options): Ditto.
12020         * passes.c (rest_of_handle_final): Ditto.
12021         * final.c (final_start_function): Ditto.
12022         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
12023         target hook.
12024         * targhooks.h (default_unwind_emit): Declare.
12025         * targhooks.c (default_unwind_emit): New function.
12026         * target-def.h: Define and use TARGET_UNWIND_EMIT.
12027         * target.h (struct gcc_target): Add unwind_emit.
12028         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
12029         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
12030         Remove IA64_UNWIND_EMIT.
12031         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
12032
12033 2004-07-14  Richard Henderson  <rth@redhat.com>
12034
12035         * print-tree.c (print_node): Handle SSA_NAME.
12036
12037 2004-07-14  James E Wilson  <wilson@specifixinc.com>
12038
12039         PR target/16325
12040         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
12041         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
12042
12043 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
12044
12045         * expr.c (expand_assignment): Reenable bitfield += optimizations.
12046         Use alias set 0 for memory, do proper mode calculations and adjust
12047         address for memories.
12048
12049 2004-07-14  Per Bothner  <per@bothner.com>
12050
12051         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
12052         structure with extra column field.
12053         * tree.c (expand_location):  Also fill in column field.
12054         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
12055         gets confused by the two conditionally-compiled definitions.
12056
12057 2004-07-14  Eric Christopher  <echristo@redhat.com>
12058
12059         * calls.c (expand_call): Fix typo in comment.
12060
12061 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
12062
12063         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
12064         comparision of TFmode.
12065
12066 2004-07-14  Richard Henderson  <rth@redhat.com>
12067
12068         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
12069         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
12070         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
12071         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12072         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
12073         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12074         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
12075         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
12076         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12077
12078 2004-07-14  Mike Stump  <mrs@apple.com>
12079
12080         * config/darwin.h (WINT_TYPE): Define to be int to match
12081         system header files.
12082
12083 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
12084
12085         * config/xtensa/xtensa.c (function_arg_advance): Check for args
12086         that must be passed in the stack.
12087         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
12088         arguments if the size is not a constant.
12089
12090 2004-07-14  Per Bothner  <per@bothner.com>
12091
12092         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
12093         instead of EXPR_LOCUS in a boolean context, which is always true
12094         if --enable-mapped-location.
12095         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
12096
12097 2004-07-14  Richard Henderson  <rth@redhat.com>
12098
12099         * dominance.c (struct dom_info): Add fake_exit_edge.
12100         (init_dom_info): Allocate it.
12101         (free_dom_info): Free it.
12102         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
12103         in two passes.
12104         (calc_idoms): Honor fake_exit_edge.
12105
12106 2004-07-13  Jason Merrill  <jason@redhat.com>
12107
12108         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
12109         (rhs_test_for): New fn.
12110         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
12111         * tree-gimple.h: Declare them.
12112         * gimplify.c (gimplify_modify_expr): Use the new fns.
12113
12114 2004-07-14  Richard Henderson  <rth@redhat.com>
12115
12116         * config/arm/arm-protos.h (arm_va_arg): Remove.
12117         * config/arm/arm.c (arm_va_arg): Remove.
12118         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
12119         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
12120
12121 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12122
12123         * pa.c (fix_range): New function to mark a range(s) of registers as
12124         fixed registers.
12125         (override_options): Call fix_range if the -mfixed-range option string
12126         is not empty.
12127         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
12128         * doc/invoke.texi (-mfixed-range): Document new option.
12129
12130 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
12131
12132         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
12133         for TARGET_64BIT.
12134         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
12135
12136 2004-07-14  Roger Sayle  <roger@eyesopen.com>
12137
12138         * expmed.c (expand_sdiv_pow2): New function to expand signed division
12139         by a positive power of two, split out from expand_divmod.  Provide
12140         an alternate implementation when shifts are expensive.  Lower the
12141         threshold for using a branchless implementation to BRANCH_COST >= 2.
12142         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
12143
12144 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
12145
12146         * tree-dfa.c (make_rename_temp): *Really* work just
12147         like create_tmp_var if called while outside SSA form.
12148
12149 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
12150
12151         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
12152         for division by zero.
12153         ("umodsi3"): Likewise.
12154
12155 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
12156
12157         * config/mips/mips.c (mips_output_move): When generating mips16 code,
12158         force loads of negative constants to be split.
12159         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
12160         Generalize SImode li/neg splitter to cope with other modes.
12161
12162 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
12163
12164         * expmed.c: Remove more references to QUEUED in the comments.
12165         * expr.c: Likewise.
12166
12167 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
12168
12169         Revert:
12170         2004-07-13  Richard Henderson  <rth@redhat.com>
12171         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
12172         correctly.
12173
12174 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
12175
12176         * tree-dfa.c (make_rename_temp): Work just like
12177         create_tmp_var if called while outside SSA form.
12178
12179 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
12180
12181         * expr.c (enqueue_insn, finish_expr_for_function,
12182         protect_from_queue, queued_subexp_p, mark_queue,
12183         emit_insns_enqueued_after_mark, emit_queue,
12184         expand_increment): Remove.
12185         (store_constructor): Expand increment as an assignment.
12186         (expand_expr_real_1 <case PREINCREMENT_EXPR,
12187         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
12188         case POSTDECREMENT_EXPR>): Abort.
12189         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
12190         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
12191         protect_from_queue, emit_queue, queued_subexp_p): Remove.
12192         * function.h (pending_chain, x_pending_chain): Remove.
12193         * rtl.def (QUEUED): Remove.
12194
12195         * emit-rtl.c (copy_insn_1, copy_most_rtx,
12196         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
12197         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
12198         encode_units_mask): Likewise.
12199         * local-alloc.c (equiv_init_varies_p): Likewise.
12200         * rtl.c (copy_rtx): Likewise.
12201         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
12202         * simplify-rtx.c (simplify_gen_subreg): Likewise.
12203         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
12204
12205         * builtins.c (expand_builtin, expand_builtin_apply,
12206         expand_builtin_mathfn, expand_builtin_mathfn_2,
12207         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
12208         Remove calls to emit_queue and protect_from_queue.
12209         * calls.c (expand_call, precompute_arguments,
12210         precompute_register_parameters, rtx_for_function_call,
12211         store_one_arg): Likewise.
12212         * dojump.c (do_compare_and_jump, do_jump): Likewise.
12213         * explow.c (memory_address): Likewise.
12214         * expmed.c (clear_by_pieces_1, clear_storage,
12215         clear_storage_via_libcall, emit_group_load,
12216         emit_group_store, emit_store_flag,
12217         expand_expr_real_1, store_by_pieces,
12218         store_constructor, store_expr, try_casesi,
12219         try_tablejump): Likewise.
12220         * function.c (expand_pending_sizes): Likewise.
12221         * optabs.c (emit_cmp_and_jump_insns,
12222         emit_conditional_add, emit_conditional_move,
12223         expand_fix, expand_float, prepare_cmp_insn): Likewise.
12224         * stmt.c (emit_case_bit_tests,
12225         expand_asm_expr, expand_computed_goto,
12226         expand_decl_init, expand_end_case_type,
12227         expand_end_stmt_expr, expand_expr_stmt_value,
12228         expand_return, expand_start_case,
12229         optimize_tail_recursion): Likewise.
12230         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
12231         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
12232
12233 2004-07-14  Ben Elliston  <bje@au.ibm.com>
12234
12235         * vec.h: Comment fix.
12236
12237 2004-07-13  Richard Henderson  <rth@redhat.com>
12238
12239         * target.h (struct gcc_target): Add calls.pass_by_reference.
12240         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
12241         * function.c (pass_by_reference): Use the hook.
12242         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
12243         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
12244         (hook_pass_by_reference_must_pass_in_stack): New.
12245         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
12246         (alpha_pass_by_reference): New.
12247         (TARGET_PASS_BY_REFERENCE): New.
12248         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12249         * config/arc/arc.c (arc_pass_by_reference): New.
12250         (TARGET_PASS_BY_REFERENCE): New.
12251         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12252         (FUNCTION_ARG_CALLEE_COPIES): True.
12253         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
12254         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
12255         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
12256         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12257         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12258         * config/cris/cris.c (cris_pass_by_reference): New.
12259         (TARGET_PASS_BY_REFERENCE): New.
12260         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
12261         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
12262         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12263         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
12264         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12265         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
12266         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
12267         (frv_function_arg_pass_by_reference): Remove.
12268         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12269         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
12270         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
12271         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
12272         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12273         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
12274         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
12275         (ia64_pass_by_reference): Rename from
12276         ia64_function_arg_pass_by_reference.
12277         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12278         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12279         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
12280         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
12281         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
12282         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12283         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
12284         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
12285         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
12286         (m32r_pass_by_reference): Adjust prototype.  Make static.
12287         Handle mode sizes correctly.
12288         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12289         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
12290         (m68hc11_function_arg_pass_by_reference): Remove.
12291         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12292         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
12293         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
12294         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12295         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
12296         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
12297         (mips_va_arg): Use pass_by_reference.
12298         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
12299         Handle mode sizes correctly.
12300         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12301         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
12302         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
12303         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
12304         (mmix_pass_by_reference): Rename from
12305         mmix_function_arg_pass_by_reference.
12306         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12307         (FUNCTION_ARG_CALLEE_COPIES): True.
12308         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
12309         (mn10300_pass_by_reference): New.
12310         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12311         (FUNCTION_ARG_CALLEE_COPIES): True.
12312         * config/pa/pa.c (pa_pass_by_reference): New.
12313         (TARGET_PASS_BY_REFERENCE): New.
12314         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12315         (FUNCTION_ARG_CALLEE_COPIES): True.
12316         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
12317         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
12318         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
12319         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12320         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
12321         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
12322         (s390_pass_by_reference): Rename from
12323         s390_function_arg_pass_by_reference.
12324         (s390_function_arg_advance): Don't query pass-by-ref.
12325         (s390_function_arg): Likewise.
12326         (s390_gimplify_va_arg): Use pass_by_reference.
12327         (s390_call_saved_register_used): Likewise.
12328         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12329         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
12330         (shcompact_byref, sh_pass_by_reference): New.
12331         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12332         (SHCOMPACT_BYREF): Remove.
12333         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
12334         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
12335         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
12336         (sparc_gimplify_va_arg): Use pass_by_reference.
12337         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12338         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12339         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
12340         (v850_pass_by_reference): New.
12341         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12342         (FUNCTION_ARG_CALLEE_COPIES): True.
12343         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
12344         FUNCTION_ARG_PASS_BY_REFERENCE docs.
12345
12346 2004-07-14  Richard Henderson  <rth@redhat.com>
12347             Richard Sandiford  <rsandifo@redhat.com>
12348
12349         * config/mips/mips-protos.h (mips_va_arg): Delete.
12350         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
12351         * config/mips/mips.c: Include tree-gimple.h.
12352         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
12353         (mips_arg_info): Remove special handling of must_pass_in_stck args.
12354         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
12355         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
12356
12357 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
12358
12359         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
12360         arguments for COND_EXPR in big-endian adjustment code.
12361
12362 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12363
12364         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
12365         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
12366         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
12367         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
12368
12369 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
12370
12371         PR tree-optimization/16443
12372         * tree-ssa-alias.c: Add more description for
12373         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
12374         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
12375         clobbering of call-clobbered and addressable variables.  If
12376         there are any before aliases have been computed, add them.
12377
12378 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
12379
12380         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
12381         verification.
12382
12383 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
12384
12385         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
12386         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
12387         to the same type.
12388
12389 2004-07-13  Per Bothner  <per@bothner.com>
12390
12391         * collect2.c (main):  Handle --no-demangle and --demangle flags.
12392
12393 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
12394
12395         * Makefile.in (OBJS-common): Add tree-data-ref.o.
12396         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
12397         (tree-data-ref.o): New rule.
12398         * lambda.h: New file.
12399         * tree-data-ref.c: New file.
12400         * tree-data-ref.h: New file.
12401         * tree.c (int_cst_value, tree_fold_gcd): New functions.
12402         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
12403
12404 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
12405
12406         PR target/13926
12407         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
12408         * config/sparc/sparc.c (output_ubranch): New function.
12409         * config/sparc/sparc.md (jump pattern): Use it.
12410
12411 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
12412
12413         PR target/16494
12414         * config/sparc/sparc.c (output_cbranch): Properly guard
12415         the code handling far branches with TARGET_V9.
12416         * config/sparc/sparc.md (length attribute): Document the
12417         side-effect of having a length greater or equal to 3.
12418
12419 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
12420             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
12421
12422         PR target/15186
12423         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
12424         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
12425
12426 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
12427             Martin Sebor  <sebor@roguewave.com>
12428
12429         PR target/12602
12430         * doc/invoke.texi (SPARC options): Document -threads
12431         and -pthreads on Solaris.
12432
12433 2004-07-13  Richard Henderson  <rth@redhat.com>
12434
12435         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
12436         by reference.
12437         (ind_gimplify_va_arg_expr): Remove.
12438         * tree.h (ind_gimplify_va_arg_expr): Remove.
12439         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
12440         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
12441         argsp to be null.
12442
12443         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
12444         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
12445         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
12446         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
12447         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
12448
12449 2004-07-13  Richard Henderson  <rth@redhat.com>
12450
12451         * function.c (pass_by_reference): New.
12452         (assign_parm_find_data_types): Use it.
12453         * calls.c (initialize_argument_information): Likewise.
12454         (emit_library_call_value_1): Likewise.
12455         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12456         * function.h (pass_by_reference): Declare.
12457
12458 2004-07-13  Richard Henderson  <rth@redhat.com>
12459
12460         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
12461         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
12462         * expr.h (MUST_PASS_IN_STACK): Remove.
12463         * system.h (MUST_PASS_IN_STACK): Poison.
12464         * tree.h (must_pass_in_stack_var_size): Declare.
12465         (must_pass_in_stack_var_size_or_pad): Declare.
12466         * calls.c (must_pass_in_stack_var_size): New.
12467         (must_pass_in_stack_var_size_or_pad): Rename from
12468         default_must_pass_in_stack.
12469         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
12470         (TARGET_MUST_PASS_IN_STACK): New.
12471         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
12472         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
12473         (TARGET_MUST_PASS_IN_STACK): New.
12474         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
12475         * config/frv/frv.c (frv_must_pass_in_stack): New.
12476         (TARGET_MUST_PASS_IN_STACK): New.
12477         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
12478         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
12479         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
12480         (ix86_must_pass_in_stack): Make static.
12481         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
12482         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
12483         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
12484         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
12485         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
12486         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
12487         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
12488         (mcore_must_pass_on_stack): Remove.
12489         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
12490         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
12491         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
12492         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
12493         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
12494         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
12495         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
12496         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
12497         (TARGET_MUST_PASS_IN_STACK): New.
12498         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
12499         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
12500         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
12501         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
12502         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
12503         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
12504         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
12505         MUST_PASS_IN_STACK.
12506
12507         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
12508         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
12509         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
12510         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
12511         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
12512         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
12513         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
12514         config/xtensa/xtensa.c: Use target hook.
12515
12516 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
12517
12518         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
12519         * configure: Rebuilt.
12520
12521 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
12522
12523         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
12524         * config/mips/mips.h (mips_reg_names): Don't declare.
12525         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
12526         (TARGET_NAME_REGS): Delete.
12527         (TARGET_SWITCHES): Remove -mrnames.
12528         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
12529         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
12530         in REGISTER_NAMES.
12531         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
12532         (override_options): Remove handling of TARGET_NAME_REGS.
12533
12534 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
12535
12536         * config/mips/mips.h (TARGET_*): Boolify.
12537
12538 2004-07-12  Nick Clifton  <nickc@redhat.com>
12539
12540         * config.gcc: Add sh-*-symbianelf target.
12541         * config/sh/sh.c: Add new target macros:
12542         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
12543         TARGET_CXX_IMPORT_EXPORT_CLASS.
12544         (sh_file_start): Create a definition of the .directive section.
12545         (sh_attribute): Add dllimport and dllexport attributes.
12546         * config/sh/symbian-pre.h: New file.
12547         * config/sh/symbian-post.h: New file.
12548         * config/sh/symbian.c: New file. Contains Symbian specific
12549         functions.
12550         * config/sh/sh-protos.h: Add prototypes for new functions
12551         provided by symbian.c.
12552         * config/sh/t-symbian: New file.
12553         * doc/extend.texi: Document support for dllimport and dllexport
12554         attributes by the sh-symbianelf target.
12555
12556 2004-07-12  James E Wilson  <wilson@specifixinc.com>
12557
12558         * Makefile.in (AR): Use @AR@ not ar.
12559         (NM): New.
12560         (AR_FOR_TARGET): Use $(AR) not ar for native.
12561         (NM_FOR_TARGET): Use $(NM) not nm for native.
12562         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
12563         * configure: Regenerate.
12564
12565 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
12566
12567         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
12568         special case.
12569         (ashldi3_sp64): Likewise.
12570
12571 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12572
12573         PR target/16477
12574         * pa.c (function_arg): Update comment.
12575         * pa.h (BLOCK_REG_PADDING): Define.
12576
12577 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12578
12579         PR tree-optimization/16461
12580         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
12581         arguments of phi nodes.
12582
12583 2004-07-12  Devang Patel  <dpatel@apple.com>
12584
12585         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
12586
12587 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
12588
12589         * function.c (expand_function_start): Ensure r_save is in Pmode.
12590         * calls.c (prepare_call_address): Ensure static_chain_value is
12591         in Pmode.
12592         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
12593         r_save_area are in Pmode.
12594         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
12595         fnaddr, and static_chain are in Pmode.
12596
12597 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
12598
12599         PR target/16445
12600         * config/ia64/ia64.c (bundling): Don't count ignored insns.
12601
12602 2004-07-12  Richard Henderson  <rth@redhat.com>
12603
12604         * target.h (struct gcc_target): Move gimplify_va_arg_expr
12605         next to build_builtin_va_list.
12606         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
12607         * builtins.c (gimplify_va_arg_expr): Likewise.
12608         * gimplify.c (copy_if_shared_r): Likewise.
12609
12610 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
12611
12612         * passes.c (rest_of_decl_compilation): Don't defer call of
12613         assemble_variable if its DECL_RTL is already set.
12614
12615 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
12616
12617         * cfgloop.h (struct loop): Add nb_iterations field.
12618         (current_loops): Declare.
12619         * tree-chrec.c (chrec_not_analyzed_yet,
12620         chrec_dont_know, chrec_known, count_ev_in_wider_type,
12621         chrec_contains_symbols_defined_in_loop): Remove the temporary
12622         hooks.
12623         * tree-flow-inline.h (loop_containing_stmt): New function.
12624         * tree-scalar-evolution.c: Add implementation.
12625         * tree-scalar-evolution.h: Add declarations.
12626
12627 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
12628
12629         PR rtl-optimization/15921
12630         * Makefile.in (global.o): Add recog.h.
12631
12632         * global.c (recog.h): Add the include-clause.
12633         (bb_info): New member earlyclobber.
12634         (allocate_bb_info, free_bb_info): Initialize/finish the new
12635         member.
12636         (earlyclobber_regclass, earlyclobber_regclass_length): The new
12637         global variables.
12638         (check_earlyclobber, regclass_intersect,
12639         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
12640         New functions.
12641         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
12642         (make_accurate_live_analysis): Modify pavin.
12643
12644 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
12645
12646         * tree-cfg.c (find_taken_edge): Statically compute the truth
12647         value of a predicate comparing an SSA_NAME to itself.
12648
12649 2004-07-12  Roger Sayle  <roger@eyesopen.com>
12650
12651         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
12652         rs6000 doesn't have shift-and-add or shift-and-sub instructions
12653         by returning the cost of a multiplication plus an addition.
12654
12655 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
12656
12657         PR tree-optimization/14107
12658         * gimplify.c (gimplify_return_expr): Accept a
12659         RETURN_EXPR with an error argument.
12660         * tree-optimize.c (init_tree_optimization_passes):
12661         Run pass_warn_function_return at -O0.
12662
12663 2004-07-12  Roger Sayle  <roger@eyesopen.com>
12664
12665         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
12666         index entry.
12667
12668 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
12669
12670         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
12671         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
12672         * config/mips/3000.md: Add copyright notice.  Remove automota and
12673         function units; use generic ones instead.  Only define reservations
12674         for things that are different from generic.md.  Extend each clause
12675         to include r3900.
12676         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
12677         * config/mips/mips.md: Include them. Remove define_function_units.
12678         (alu, imuldiv): New automata and units.
12679
12680 2004-07-12  Ben Elliston  <bje@au.ibm.com>
12681
12682         * doc/invoke.texi (Optimize Options): Document -frename-registers
12683         not being enabled by default at -O3.
12684
12685 2004-07-11  Roger Sayle  <roger@eyesopen.com>
12686
12687         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
12688         floating point additions, to keep real immediate constant positive.
12689         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
12690         into X + C, and leave positive real constants as X - C.
12691
12692 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12693
12694         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
12695
12696 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12697
12698         PR tree-optimization/15654
12699         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
12700
12701 2004-07-11  Roger Sayle  <roger@eyesopen.com>
12702
12703         * builtins.c (fold_builtin_fputs): Don't bother converting the
12704         return type to integer_type_node, as we've already checked that
12705         the result will be ignored.
12706
12707         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
12708         that signed addition, subtraction, multiplication, division,
12709         remainder, negation and absolute value may potentially trap.
12710
12711         * fold-const.c (fold_ignored_result): New function to strip
12712         non-side-effecting tree nodes from an expression whose result
12713         is ignored.
12714         (fold_convert): Call fold_ignored_result when casting a value
12715         to VOID_TYPE.
12716         (omit_one_operand):  Call fold_ignored_result on the "omitted"
12717         operand when building a COMPOUND_EXPR.
12718         (pedantic_omit_one_operand): Likewise.
12719         * tree.h (fold_ignored_result): Prototype here.
12720         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
12721         when we're going to ignore the result.
12722
12723 2004-07-11  Richard Henderson  <rth@redhat.com>
12724
12725         PR tree-opt/16383
12726         * tree-ssa-ccp.c (fold_stmt_r): Split out...
12727         * tree.c (fields_compatible_p, find_compatible_field): ... new.
12728         * tree.h (fields_compatible_p, find_compatible_field): Declare.
12729         * tree-sra.c (sra_hash_tree): Hash fields by offset.
12730         (sra_elt_eq): Use fields_compatible_p.
12731         (generate_one_element_ref): Use find_compatible_field.
12732
12733 2004-07-11  Richard Henderson  <rth@redhat.com>
12734
12735         PR tree-opt/16422
12736         * tree-sra.c (generate_one_element_init): New.
12737         (generate_element_init): Use it.
12738         (scalarize_init): Push/pop gimplify context around it.
12739         (find_new_referenced_vars_1, find_new_referenced_vars): New.
12740         * gimplify.c (gimplify_expr): Allow SSA_NAME.
12741
12742 2004-07-11  Roger Sayle  <roger@eyesopen.com>
12743
12744         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
12745         combine.c's combine_insn_cost.
12746         * rtl.h (insn_rtx_cost): Prototype here.
12747         * combine.c (combine_insn_cost): Delete function.
12748         (combine_validate_cost): Update callers of combine_insn_cost to
12749         call insn_rtx_cost instead.
12750         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
12751         requesting the rtx_cost of call and/or jump instructions.
12752
12753         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
12754         rtx_cost directly.  Don't request/use the cost of call or jump
12755         instructions.  Return -1 if the cost of any instruction can't be
12756         determined (or the BB contains a function call).
12757         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
12758         -1 (i.e. can't determine the cost of any instruction or the basic
12759         block contains a subroutine call).
12760         (find_if_case_2): Likewise.
12761
12762 2004-07-11  Roger Sayle  <roger@eyesopen.com>
12763
12764         * rs6000.c (struct processor_costs): Change semantics of fields to
12765         include the COST_N_INSNS scaling, and update all initializers.
12766         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
12767         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
12768         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
12769         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
12770
12771 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12772
12773         * LANGUAGES: Remove obsolete information.
12774
12775 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
12776
12777         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
12778         SIGBUS signal frames, the PSW address points *to* the faulting
12779         instruction, not after it.
12780
12781 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
12782
12783         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
12784         added to TLS symbol addresses.
12785
12786 2004-07-11  Richard Henderson  <rth@redhat.com>
12787
12788         * expmed.c (init_expmed): Use stack-local structures for
12789         temporary rtl.  Don't recognize shifts.
12790
12791 2004-07-11  Richard Henderson  <rth@redhat.com>
12792
12793         * expr.c (store_expr): Don't fiddle subreg promotion for types
12794         with precision smaller than the mode.
12795
12796 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12797
12798         * tree.h (all_types_permanent): Remove.
12799
12800 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12801
12802         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
12803         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
12804         * langhooks.c (lhd_clear_binding_stack): Remove.
12805         * langhooks-def.h (lhd_clear_binding_stack,
12806         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
12807         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
12808         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
12809         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
12810         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
12811         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
12812         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
12813         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
12814         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
12815         * tree.h (poplevel): Don't declare.
12816         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
12817         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
12818         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
12819         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
12820         Remove.
12821
12822 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12823
12824         PR tree-optimization/16437
12825         * c-common.c (shorten_compare): Don't mark result of conversion to
12826         narrower signed type as overflowing.
12827         * fold-const.c (decode_field_reference): Determine whether
12828         signedness comes from outer type using precision rather than size.
12829
12830 2004-07-11  Phil Edwards  <phil@codesourcery.com>
12831
12832         * configure.ac:  Alphabetize --enable-checking list, add
12833         missing valgrind entry.
12834         * configure:  Regenerate.
12835
12836 2004-07-11  Phil Edwards  <phil@codesourcery.com>
12837
12838         * doc/install.texi (Testing):  Fix syntax in "make check" example.
12839
12840 2004-07-10  James E Wilson  <wilson@specifixinc.com>
12841
12842         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
12843
12844 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12845
12846         PR rtl-optimization/16001
12847         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
12848         niter_expr.
12849
12850 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
12851
12852         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
12853
12854 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
12855             James Morrison  <phython@gcc.gnu.org>
12856
12857         * doc/contrib.texi (Contributors): Add gfortran contributors and
12858         fix a couple of typos.
12859
12860 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12861
12862         PR rtl-optimization/15387
12863         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
12864         to incoming args space correctly.
12865
12866 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12867
12868         * pa.c (output_indirect_call): Only use %r2 as the link register in
12869         indirect calls with the long PA 2.0 pc-relative branch.
12870
12871 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
12872
12873         * config/i386/i386.c (override_options): Pick a 64-bit CPU
12874         for the default tuning if TARGET_64BIT.
12875
12876 2004-07-10  Richard Henderson  <rth@redhat.com>
12877
12878         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
12879         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
12880
12881 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
12882
12883         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
12884         * expmed.c (store_bit_field, extract_bit_field): Remove last
12885         argument.
12886         * builtins.c (expand_builtin_signbit): Adjust callers.
12887         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
12888         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
12889         * ifcvt.c (noce_emit_move_insn): Likewise.
12890         * stmt.c (expand_return): Likewise.
12891         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
12892         store_field, expand_expr_real_1): Likewise.
12893
12894 2004-07-10  Richard Henderson  <rth@redhat.com>
12895
12896         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
12897
12898 2004-07-09  Mike Stump  <mrs@apple.com>
12899
12900         * config/darwin.c (no_dead_strip): Add.
12901         (HAVE_DEAD_STRIP): Add.
12902         (darwin_emit_unwind_label): Ensure that we don't dead code strip
12903         the .eh label.
12904
12905 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12906
12907         * tree-ssa-loop-im.c: New file.
12908         * Makefile.in (tree-ssa-loop-im.o): Add.
12909         * cfgloop.c (superloop_at_depth): New function.
12910         * cfgloop.h (superloop_at_depth): Declare.
12911         * common.opt (ftree-lim): New flag.
12912         * expr.c (array_ref_up_bound): New function.
12913         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
12914         * timevar.def (TV_LIM): New timevar.
12915         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
12916         computing immediate uses of a phi node.
12917         * tree-flow.h (struct tree_ann_common_d): Add aux field.
12918         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
12919         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
12920         * tree-pass.h (pass_lim): Declare.
12921         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
12922         functions.
12923         (pass_lim): New pass structure.
12924         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
12925         * tree.c (in_array_bounds_p): New function.
12926         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
12927         (in_array_bounds_p, array_ref_up_bound): Declare.
12928         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
12929         * doc/passes.texi (tree-ssa-loop-im.c): Document.
12930
12931 2004-07-09  Richard Henderson  <rth@redhat.com>
12932
12933         * builtins.c (expand_builtin_stpcpy): Don't modify len.
12934
12935         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
12936         with prejudice.
12937
12938 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
12939
12940         * flags.h: Delete redundant prototypes that are being generated
12941         in options.h from common.opt.
12942         * common.opt: Add in the expository comments formerly in flags.h.
12943
12944 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12945
12946         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
12947         available for use only when TARGET_MMX/_SSE is set, and check for
12948         variable argument function if any register count is non-zero.
12949         (function_arg): Correctly suppress repeated warnings for passing SSE
12950         vectors are arguments without SSE enabled.
12951         (ix86_function_arg_boundary): Without SSE enabled, the use of what
12952         would be SSE register modes does no longer influence the alignment.
12953
12954 2004-07-09  Richard Henderson  <rth@redhat.com>
12955
12956         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
12957         Always align upward to arg boundary.  Use size_in_bytes/round_up.
12958         Maintain type-correctness of constants.
12959         * stor-layout.c (round_up, round_down): Special-case powers of 2.
12960
12961 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
12962
12963         * config/sparc/sparc.c (*_costs): Scale instruction costs
12964         by COSTS_N_INSNS.
12965         (sparc_rtx_costs): Adjust as appropriate.
12966
12967 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12968
12969         * config/i386/mm3dnow.h: New.
12970         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
12971
12972 2004-07-09  Richard Henderson  <rth@redhat.com>
12973
12974         * simplify-rtx.c (simplify_const_relational_operation): Only
12975         look at bounds of scalar integers.
12976
12977 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12978
12979         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
12980
12981 2004-07-09  Andrew Pinski  <apinski@apple.com>
12982
12983         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
12984         always referenced.
12985         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
12986         UOBJC_METACLASS_decl.
12987
12988 2004-07-09  James E Wilson  <wilson@specifixinc.com>
12989
12990         PR target/16364
12991         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
12992         do return a parallel if hfa_mode == XFmode and mode == TImode.
12993
12994 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12995
12996         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
12997         permissible for unary plus.
12998
12999 2004-07-09  Jan Beulich  <jbeulich@novell.com>
13000
13001         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
13002         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
13003         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
13004         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
13005         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
13006         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
13007         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
13008         (BUILTIN_xxxIMAX): New.
13009         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
13010         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
13011         BUILT_IN_PARITYIMAX.
13012
13013 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
13014
13015         * config/sparc/sparc.h (processor_costs): Define.
13016         (sparc_costs): Declare.
13017         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
13018         hypersparc_costs, sparclet_costs, ultrasparc_costs,
13019         ultrasparc3_costs): New.
13020         (sparc_override_options): Set sparc_costs as appropriate.
13021         (sparc_rtx_costs): Use sparc_costs instead of messy
13022         conditionals.
13023
13024 2004-07-09  Steven Bosscher  <stevenb@suse.de>
13025
13026         * doc/md.texi (Processor pipeline description): Mention that
13027         the old pipeline description is deprecated.
13028
13029         * config/rs6000/7450.md (automaton ppc7450): Split up, move
13030         mciu_7450 function unit to...
13031         (automaton ppc7450mciu): ...new automaton.
13032
13033         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
13034         (schedule_block): Don't consider inserting bubbles.
13035         (sched_init): Don't initialize DFA bubbles.
13036         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
13037         TARGET_SCHED_DFA_BUBBLE): Remove.
13038         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
13039         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
13040         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
13041
13042         * stmt.c (conditional_context): Remove prototype.
13043         * tree.h (conditional_context): Remove.
13044         * tree-cfg.c (pre_insert_on_edge): Remove.
13045
13046         * c-common.h (c_expand_asm_operands): Remove prototype.
13047         * c-typeck.c (c_expand_asm_operands): Remove.
13048
13049 2004-07-09  Jan Beulich  <jbeulich@novell.com>
13050
13051         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
13052         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
13053         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
13054         and V8QI are class SSE. All sufficiently small remaining vector modes
13055         must be passed in one or two integer registers.
13056         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
13057         returned in memory.
13058         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
13059         __builtin_ia32_pmuludq128 have non-uniform argument and return types
13060         and must thus be handled explicitly.
13061         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
13062         MMX and XMM regs.
13063         (movv8qi_internal, movv4hi_internal, movv2si_internal,
13064         movv2sf_internal): Permit moving between MMX and XMM registers (since
13065         MMX areguments and return values are passed in XMM registers).
13066         (sse2_umulsidi3): Correct type and mode.
13067
13068 2004-07-09  Richard Henderson  <rth@redhat.com>
13069
13070         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
13071
13072 2004-07-09  Eric Christopher  <echristo@redhat.com>
13073
13074         * config/rs6000/40x.md: Split into two automatons.
13075
13076 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
13077             Andrew Pinski  <apinski@apple.com>
13078
13079         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
13080         on when we have more than one input file.
13081         (c_common_parse_file): Restore loop over all input files.
13082         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
13083
13084         * c-decl.c (set_type_context): New function.
13085         (pop_scope): Use it to set context of types.  When we
13086         encounter a TYPE_DECL, set the context of the attached type too.
13087         (pop_file_scope): Don't call cpp_undef_all here.
13088         (diagnose_mismatched_decls): Do not complain about a second
13089         definition of an 'extern inline' function if it's not in the
13090         same translation unit.  Do not complain about inline
13091         declaration after use if the use was in a different
13092         translation unit.
13093         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
13094         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
13095         the external scope.
13096         (pushdecl_top_level): Likewise.
13097         (grokdeclarator): Clarify what is going on with setting
13098         DECL_EXTERNAL on function types, a little.
13099         (c_write_global_declarations): Don't do anything if
13100         -fsyntax-only or errors have been encountered.
13101
13102 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
13103
13104         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
13105
13106 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13107
13108         PR target/16459
13109         * pa.c (output_indirect_call): Use %r2 as the link register when
13110         calling $$dyncall with a pc-relative branch.
13111
13112 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
13113
13114         * doc/install.texi (Binaries): Mention OpenPKG.
13115
13116 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
13117
13118         Fix PR tree-optimization/15555
13119         * tree-dfa.c (dump_variable): If the variable is a pointer
13120         SSA_NAME, also dump its points-to information.
13121         * tree-flow.h (struct ptr_info_def): Add field
13122         is_dereferenced.
13123         (dump_points_to_info_for): Declare.
13124         (debug_points_to_info_for): Declare.
13125         * tree-optimize.c (init_tree_optimization_passes): Add a
13126         second alias analysis pass after DOM2.
13127         Move pass_del_pta to a later spot.
13128         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
13129         create a name tags when we find a dereferenced pointer.  Just
13130         mark the pointer dereferenced.
13131         (collect_points_to_info_for): Move code to clear points-to
13132         information to create_name_tags.
13133         (create_name_tags): New function.
13134         (compute_flow_sensitive_aliasing): Call it.
13135         (setup_pointers_and_addressables): Mark type tags for renaming
13136         here instead of ...
13137         (create_memory_tag): ... here.
13138         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
13139         (dump_points_to_info_for): Declare extern.
13140         (debug_points_to_info_for): New function.
13141
13142 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
13143
13144         * config/arc/arc.md: Switch to DFA-based scheduler description.
13145         * config/arc/arc.c: Switch to DFA-based scheduler description.
13146
13147 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
13148
13149         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
13150         pointer.
13151
13152 2004-07-09  Richard Henderson  <rth@redhat.com>
13153
13154         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
13155         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13156         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
13157         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
13158
13159         * config/v850/v850-protos.h (v850_va_arg): Remove.
13160         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13161         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
13162         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
13163         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
13164         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
13165
13166 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
13167
13168         PR target/12133
13169         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
13170         and DImode to use +/-4k offset.
13171
13172 2004-07-09  Richard Henderson  <rth@redhat.com>
13173
13174         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
13175         Remove.
13176         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13177         (xstormy16_gimplify_va_arg_expr): Rewrite from
13178         xstormy16_expand_builtin_va_arg.
13179         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
13180
13181         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
13182         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
13183
13184         * config/sh/sh-protos.h (sh_va_arg): Remove.
13185         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13186         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
13187         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
13188
13189         * config/pa/pa-protos.h (hppa_va_arg): Remove.
13190         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13191         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
13192         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
13193
13194         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
13195         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13196         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
13197         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
13198
13199 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
13200
13201         * config/sparc/sparc.md (return): Rewrite length formula.
13202         * config/sparc/sparc.c (output_return): Pass 1 as 5th
13203         argument to final_scan_insn when in a delay slot.
13204         (output_sibcall): Likewise.
13205
13206 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
13207
13208         * arm.c (arm_cpp_interwork): New variable.
13209         (arm_override_options): Set it if TARGET_INTERWORK was on the command
13210         line.
13211         * arm.h (arm_cpp_interwork): Declare it.
13212         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
13213         __THUMB_INTERWORK__ in the preprocessor.
13214
13215 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
13216
13217         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
13218
13219 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
13220
13221         PR target/16416
13222         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
13223         Override default settings to account for -m32 and -m64.
13224
13225 2004-07-08  Randolph Chung  <tausq@debian.org>
13226
13227         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
13228
13229 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
13230
13231         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
13232         before comparing it as such.
13233
13234 2004-07-08  Richard Henderson  <rth@redhat.com>
13235
13236         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
13237         temporary.  Use bit arithmetic to align.
13238
13239 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
13240
13241         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
13242         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
13243         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
13244         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
13245         add_labels_and_missing_jumps, find_jump_block,
13246         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
13247         Likewise.
13248         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
13249         link_btr_uses, move_btr_def): Likewise.
13250         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
13251         expand_builtin_expect_jump): Likewise.
13252         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
13253         * calls.c (expand_call, emit_library_call_value_1): Likewise.
13254         * cfganal.c (forwarder_block_p): Likewise.
13255         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
13256         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
13257         find_bb_boundaries): Likewise.
13258         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
13259         merge_blocks_move_predecessor_nojumps,
13260         merge_blocks_move_successor_nojumps, insns_match_p,
13261         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
13262         try_optimize_cfg): Likewise.
13263         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
13264         * cfglayout.c (skip_insns_after_block, label_for_bb,
13265         record_effective_endpoints, insn_locators_initialize,
13266         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
13267         * cfgmainloop.c (create_loop_notes): Likewise.
13268         * cfgrtl.c (delete_insn, delete_insn_chain,
13269         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
13270         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
13271         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
13272         redirect_branch_edge, force_nonfallthru_and_redirect,
13273         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
13274         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
13275         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
13276         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
13277         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
13278         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
13279         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
13280         * combine.c (combine_instructions, can_combine_p, try_combine,
13281         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
13282         distribute_notes, distribute_links, insn_cuid): Likewise.
13283         * cse.c (fold_rtx, cse_insn, cse_around_loop,
13284         invalidate_skipped_block, cse_set_around_loop,
13285         cse_end_of_basic_block, cse_main, cse_basic_block,
13286         cse_condition_code_reg): Likewise.
13287         * cselib.c (cselib_process_insn): Likewise.
13288         * ddg.c (create_ddg): Likewise.
13289         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
13290         Likewise.
13291         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
13292         gen_label_die, dwarf2out_var_location): Likewise.
13293         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
13294         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
13295         last_call_insn, active_insn_p, next_label, prev_label,
13296         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
13297         add_insn_before, remove_insn, add_function_usage_to,
13298         reorder_insns, find_line_note, remove_unnecessary_notes,
13299         emit_insn_after_1, classify_insn): Likewise.
13300         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
13301         connect_post_landing_pads, sjlj_mark_call_sites,
13302         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
13303         can_throw_internal, can_throw_external, set_nothrow_function_flags,
13304         convert_to_eh_region_ranges): Likewise.
13305         * explow.c (optimize_save_area_alloca): Likewise.
13306         * expr.c (expand_expr_real): Likewise.
13307         * final.c (insn_current_reference_address, compute_alignments,
13308         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
13309         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
13310         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
13311         propagate_block_delete_insn, propagate_one_insn,
13312         init_propagate_block_info, propagate_block, libcall_dead_p,
13313         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
13314         Likewise.
13315         * function.c (instantiate_virtual_regs, reorder_blocks_1,
13316         expand_function_start, expand_function_end, contains,
13317         thread_prologue_and_epilogue_insns,
13318         reposition_prologue_and_epilogue_notes): Likewise.
13319         * gcse.c (constprop_register, bypass_conditional_jumps,
13320         insert_insn_end_bb, gcse_after_reload): Likewise.
13321         * genemit.c (gen_expand, gen_split): Likewise.
13322         * genpeep.c (gen_peephole, main): Likewise.
13323         * global.c (build_insn_chain): Likewise.
13324         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
13325         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
13326         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
13327         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
13328         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
13329         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
13330         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
13331         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
13332         dead_or_predicable): Likewise.
13333         * integrate.c (try_constants): Likewise.
13334         * jump.c (rebuild_jump_labels, cleanup_barriers,
13335         purge_line_number_notes, init_label_info, mark_all_labels,
13336         squeeze_notes, get_label_before, get_label_after,
13337         reversed_comparison_code_parts, simplejump_p, pc_set,
13338         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
13339         delete_barrier, delete_prior_computation, delete_computation,
13340         delete_related_insns, delete_for_peephole, redirect_jump):
13341         Likewise.
13342         * lcm.c (optimize_mode_switching): Likewise.
13343         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
13344         Likewise.
13345         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
13346         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
13347         * loop-iv.c (simplify_using_assignment): Likewise.
13348         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
13349         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
13350         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
13351         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
13352         check_insn_for_givs, check_final_value, update_giv_derive,
13353         basic_induction_var, product_cheap_p, check_dbra_loop,
13354         loop_insn_first_p, last_use_this_basic_block,
13355         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
13356         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
13357         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
13358         sms_schedule_by_order): Likewise.
13359         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
13360         * postreload.c (reload_cse_simplify_operands, reload_combine,
13361         reload_cse_move2add): Likewise.
13362         * predict.c (can_predict_insn_p, estimate_probability,
13363         expected_value_to_br_prob, process_note_predictions): Likewise.
13364         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
13365         * profile.c (branch_prob): Likewise.
13366         * ra-build.c (live_out_1, livethrough_conflicts_bb,
13367         detect_webs_set_in_cond_jump): Likewise.
13368         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
13369         ra_print_rtl_with_bb): Likewise.
13370         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
13371         * recog.c (next_insn_tests_no_inequality, find_single_use,
13372         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
13373         * reg-stack.c (next_flags_user, record_label_references,
13374         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
13375         compensate_edge, convert_regs_1): Likewise.
13376         * regclass.c (scan_one_insn): Likewise.
13377         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
13378         regmove_optimize, fixup_match_1, single_set_for_csa,
13379         combine_stack_adjustments_for_block): Likewise.
13380         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
13381         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
13382         find_equiv_reg): Likewise.
13383         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
13384         reload_as_needed, emit_input_reload_insns, do_output_reload,
13385         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
13386         Likewise.
13387         * reorg.c (find_end_label, emit_delay_sequence,
13388         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
13389         get_jump_flags, rare_destination, mostly_true_jump,
13390         try_merge_delay_insns, redundant_insn, own_thread_p,
13391         fill_simple_delay_slots, fill_slots_from_thread,
13392         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
13393         dbr_schedule): Likewise.
13394         * resource.c (find_basic_block, next_insn_no_annul,
13395         find_dead_or_set_registers, mark_target_live_regs): Likewise.
13396         * rtl.h (RTX_PREV): Likewise.
13397         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
13398         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
13399         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
13400         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
13401         tablejump_p, computed_jump_p, insns_safe_to_move_p,
13402         find_first_parameter_load, can_hoist_insn_p): Likewise.
13403         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
13404         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
13405         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
13406         schedule_ebbs): Likewise.
13407         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
13408         is_conditionally_protected, can_schedule_ready_p,
13409         add_branch_dependences, debug_dependencies): Likewise.
13410         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
13411         Likewise.
13412         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
13413         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
13414         set_dominates_use, ujump_to_loop_cont): Likewise.
13415         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
13416         * varasm.c (output_constant_pool_1): Likewise.
13417
13418 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13419
13420         * tree-scalar-evolution.c: New file.
13421         * tree-scalar-evolution.h: New file.
13422         * tree-ssa-loop-niter.c: New file.
13423         * Makefile.in (SCEV_H): New.
13424         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
13425         * cfgloop.h (struct loop): Add bounds field.
13426         * tree-flow.h (struct tree_niter_desc): New type.
13427         (number_of_iterations_cond, number_of_iterations_exit,
13428         loop_niter_by_eval, find_loop_niter_by_eval,
13429         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
13430         free_numbers_of_iterations_estimates): Declare.
13431         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
13432         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
13433         * doc/invoke.texi (max-iterations-to-track): Document.
13434
13435 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
13436
13437         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
13438         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
13439         (MODE_AFTER): Add cast appropriately.
13440         * config/sh/sh.md (movdi splitter): Likewise.
13441         (casesi_worker_2): Add const qualifier appropriately.
13442         (eh_return): Remove unused variable.
13443         (insv): Initialize v;
13444
13445 2004-07-08  Richard Henderson  <rth@redhat.com>
13446
13447         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
13448         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13449         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
13450         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
13451         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
13452
13453         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
13454         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13455         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
13456         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
13457
13458         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
13459         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13460         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
13461         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
13462
13463         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
13464         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13465         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
13466         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
13467
13468         * config/i860/i860-protos.h (i860_va_arg): Remove.
13469         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13470         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
13471         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
13472
13473 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
13474
13475         * system.h: Prototype getpagesize if missing.
13476         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
13477         * configure: Regenerate.
13478         * config.in: Regenerate.
13479
13480 2004-07-08  Richard Henderson  <rth@redhat.com>
13481
13482         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
13483         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13484         (fr30_gimplify_va_arg_expr): New.
13485         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
13486         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
13487
13488 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
13489
13490         PR target/16414
13491         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
13492         of asm_noperands result.
13493
13494 2004-07-08  Richard Henderson  <rth@redhat.com>
13495
13496         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
13497         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13498         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
13499         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
13500
13501 2004-07-08  Richard Henderson  <rth@redhat.com>
13502
13503         * builtins.c (ind_gimplify_va_arg_expr): New.
13504         * tree.h (ind_gimplify_va_arg_expr): Declare.
13505         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
13506
13507 2004-07-08  Jan Beulich  <jbeulich@novell.com>
13508
13509         * expmed.c (extract_bit_field): Correct condition to use vec_extract
13510         patterns also on vector elements other than the first one.
13511         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
13512         break statements.
13513
13514 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
13515
13516         * config/rs6000/darwin-ldouble.c: Correct reference
13517         to the Linnainmaa paper.
13518
13519 2004-07-08  Richard Henderson  <rth@redhat.com>
13520
13521         * config/arc/arc-protos.h (arc_va_arg): Remove.
13522         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13523         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
13524         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
13525
13526         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
13527         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13528         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
13529         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
13530
13531 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13532
13533         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
13534
13535 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
13536
13537         * c-decl.c (static_ctors, static_dtors): Make static.
13538         (pop_file_scope): Call c_common_write_pch and
13539         cgraph_finalize_compilation_unit here.
13540         (build_cdtor): Moved here from c-objc-common.c; simplify.
13541         (c_write_global_declarations_1): Clarify comment.
13542         (c_write_global_declarations): Close the external scope before
13543         doing anything else.  Call build_cdtor, cgraph_optimize, and
13544         mudflap_finish_file here.
13545         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
13546         Clarify comment.
13547         * c-objc-common.c: No need to include cgraph.h.
13548         (build_cdtor): Moved to c-decl.c.
13549         (c_objc_common_finish_file): Delete.
13550         * c-tree.h: Update to match.
13551         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
13552         (generate_static_references): Set TREE_USED before calling finish_decl.
13553         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
13554         on the static_instances_decl.
13555
13556 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
13557
13558         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
13559         decls when there is only one input translation unit.
13560         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
13561         change of 2004-07-05; do not treat declarations with
13562         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
13563         * opts.c (cur_in_fname): Delete.
13564         * opts.h: Likewise.
13565         * tree.c: Revert changes of 2004-07-05; no special treatment
13566         for TRANSLATION_UNIT_DECLs.
13567         * Makefile.in (tree.o): Update dependencies.
13568
13569 2004-07-08  Roger Sayle  <roger@eyesopen.com>
13570
13571         * builtins.c (fold_builtin_strcpy): Merge functionality from
13572         simplify_builtin_strcpy.  Add additional len argument.  No longer
13573         static.  Remove function prototype.
13574         (fold_builtin_strncpy): Likewise integrate functionality from
13575         simplify_builtin_strncpy.  Add additional slen argument.  No
13576         longer static.  Remove function prototype.
13577         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
13578         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
13579         types of "ignore" and "unlocked" parameters to bool.
13580         (fold_builtin_1):  Add additional ignore argument.  Call renamed
13581         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
13582         builtins.  Update arguments to fold_builtin_strncpy and
13583         fold_builtin_strcpy.  Add function prototype.
13584         (fold_builtin): Add additional Boolean ignore argument to pass
13585         to fold_builtin_1.
13586         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
13587         and fold_builtin_strncpy instead of simplify_builtin_fputs,
13588         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
13589
13590         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
13591         simplify_builtin_strncpy): Delete function prototypes.
13592         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
13593         fold_builtin_strncpy): Add function prototypes here.
13594         (fold_builtin): Update function prototype with new "bool ignore".
13595
13596         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
13597         (ccp_fold_builtin):  Update call to fold_builtin.  Call
13598         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
13599         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
13600         simplify_builtin_strncpy respectively.
13601         * fold-const.c (fold): Update call to fold_builtin.
13602
13603 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
13604
13605         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
13606         to strcpy.
13607
13608         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
13609         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
13610         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
13611         * calls.c: Remove ifdefs of macros above.
13612         * functions.c: Likewise.
13613         * expr.c: Likewise.
13614
13615 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13616
13617         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
13618         (arch attribute): Delete.
13619         (current_function_calls_alloca attribute): Rename into calls_alloca.
13620         (calls_eh_return): New attribute.
13621         (leaf_function): Likewise.
13622         (length attribute): Fix formula for sibcalls.
13623         (return insn): Correctly compute the 'length' attribute.
13624         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
13625
13626 2004-07-08  Richard Henderson  <rth@redhat.com>
13627
13628         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
13629         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
13630         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
13631         * tree-eh.c (lower_eh_constructs_1): Likewise.
13632         * tree-sra.c (sra_walk_modify_expr): Likewise.
13633         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13634         (eliminate_unnecessary_stmts): Likewise.
13635         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
13636         * tree-tailcall.c (optimize_tail_call): Likewise.
13637         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
13638
13639 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
13640             Jakub Jelinek  <jakub@redhat.com>
13641
13642         * config/i386/i386.c (override_options): Enable
13643         SSE prefetches with -mtune, as long as we are
13644         compiling for i686 or higher.  All i686 processors
13645         accept SSE prefetches as NOPS, some i586's don't.
13646
13647 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13648
13649         PR target/10567
13650         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
13651
13652 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
13653
13654         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
13655         the handling of clobbering ASM_EXPRs.
13656
13657 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13658
13659         PR target/16430
13660         * config/sparc/sparc.c (function_value): In 64-bit mode,
13661         return the aggregates larger than 16 bytes like unions.
13662
13663 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13664
13665         PR target/16199
13666         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
13667         'temp' is zero, generate new pseudos as needed and emit the
13668         sequence of insns in single-assignment form.  Resync comments
13669         with code.
13670         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
13671         function before reload.
13672
13673 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
13674
13675         * vec.c (vec_assert_fail): Remove duplicate 'function'.
13676
13677         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
13678
13679         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
13680         Allocation is signed.
13681         (VEC_reserve): Return flag, allocation is signed.
13682
13683 2004-07-08  Richard Henderson  <rth@redhat.com>
13684
13685         * tree-ssa-ccp.c (fold_stmt): Get type directly from
13686         OBJ_TYPE_REF_OBJECT.
13687
13688 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
13689             Neil Booth  <neil@daikokuya.co.uk>
13690
13691         PR c/2511
13692         PR c/3325
13693         * c-decl.c (finish_struct): Ensure bit-fields are given the
13694         correct type.
13695         * c-common.c (c_common_signed_or_unsigned_type): For C, require
13696         the precision to match as well as the mode.
13697         * expr.c (reduce_to_bit_field_precision): New function.
13698         (expand_expr_real_1): Reduce expressions of bit-field type to
13699         proper precision.
13700         * langhooks.h (reduce_bit_field_operations): New hook.
13701         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13702         Define.
13703         * c-lang.c, objc/objc-lang.c
13704         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
13705         * objc/objc-act.c (check_ivars): Convert types to bit-field types
13706         before checking.
13707         * tree.c (build_nonstandard_integer_type): New function.
13708         * tree.h (build_nonstandard_integer_type): New prototype.
13709         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
13710         conversions between integer and boolean types as useless.
13711
13712 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
13713
13714         * c-common.c (c_common_nodes_and_builtins): Do not
13715         create __builtin_ptrdiff_t and __builtin_size_t.
13716
13717 2004-07-08  Andrew Pinski  <apinski@apple.com>
13718
13719         * Makefile.in (libbackend.o): Add -combine to the gcc
13720         command line.
13721
13722 2004-07-08  Nick Clifton  <nickc@redhat.com>
13723
13724         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
13725         Set to -Os.
13726
13727 2004-07-08  Richard Henderson  <rth@redhat.com>
13728
13729         * except.c (expand_eh_region_start, expand_eh_region_end,
13730         expand_eh_handler, expand_eh_region_end_cleanup,
13731         expand_start_all_catch, expand_start_catch, expand_end_catch,
13732         expand_end_all_catch, expand_eh_region_end_allowed,
13733         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
13734         expand_eh_region_end_fixup): Remove.
13735         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
13736         cleanups, outer_cleanups, label_chain, exception_region.
13737         (struct goto_fixup): Remove stack_level, cleanup_list_list.
13738         (struct label_chain): Remove.
13739         (struct stmt_status): Remove x_stack_block_stack.
13740         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
13741         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
13742         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
13743         end_cleanup_deferral, last_cleanup_this_contour,
13744         containing_blocks_have_cleanups_or_stack_level,
13745         any_pending_cleanups): Remove.
13746         (expand_null_return_1): Take no arguments.
13747         (expand_label, expand_naked_return, expand_return,
13748         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
13749         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
13750         expand_end_case_type): Don't use any of them.
13751         * calls.c (expand_call): Likewise.
13752         * dojump.c (do_jump): Likewise.
13753         * function.c (expand_function_end): Likewise.
13754         * expr.c (store_expr, expand_expr_real_1): Likewise.
13755         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
13756         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
13757         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
13758         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
13759         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
13760         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
13761         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
13762         for WITH_CLEANUP_EXPR.
13763         (gimple_push_cleanup): Likewise.
13764         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
13765         * print-tree.c (print_node): Likewise.
13766         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
13767         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
13768         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
13769         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
13770         (GOTO_SUBROUTINE_EXPR): Remove.
13771         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
13772         (DECL_TOO_LATE): Remove.
13773         * except.h, tree.h: Update decls.
13774
13775 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
13776
13777         * explow.c (optimize_save_area_alloca): Do not accept parameters.
13778         * passes.c (rest_of_handle_final): Handle symout.
13779         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
13780         Push timevar here.
13781         (rest_of_handle_sched): Break out SMS.  Remove ifs for
13782         flag_schedule_insns and flag_modulo_sched.
13783         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
13784         collect at the end.
13785         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
13786         (rest_of_handle_partition_blocks, rest_of_handle_sms,
13787         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
13788         rest_of_handle_mode_switching, rest_of_handle_jump,
13789         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
13790         rest_of_handle_jump2, rest_of_handle_postreload,
13791         rest_of_handle_flow2, rest_of_clean_state,
13792         rest_of_handle_shorten_branches,
13793         rest_of_handle_prologue_epilogue,
13794         rest_of_handle_branch_target_load_optimize): New.
13795         (rest_of_compilation): Call the above.  Remove ggc_collect
13796         calls moved to rest_of_handle_*.
13797         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
13798
13799         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
13800         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
13801         * except.h (set_nothrow_function_flags): Update comment.
13802         * function.c (current_function_nothrow): Remove.
13803         * output.h (current_function_nothrow): Remove.
13804         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
13805         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
13806
13807 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13808
13809         PR bootstrap/16326
13810         * reorg.c: Revert 2004-06-30 change.
13811         (find_end_label): If HAVE_epilogue and !HAVE_return,
13812         return 0 instead of creating a label at the end of the insn chain.
13813         (optimize_skip): Account for the failure mode of find_end_label.
13814         (fill_simple_delay_slots): Likewise.
13815         (fill_slots_from_thread): Likewise.
13816         (relax_delay_slots): Likewise.
13817
13818 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
13819
13820         * tree-flow.h (addressable_vars): Declare.
13821         * tree-ssa-alias.c (addressable_vars): Define.
13822         (setup_pointers_and_addressables): Add addressable variables
13823         to addressable_vars.
13824         * tree-ssa-operands.c (get_stmt_operands): Move
13825         handling of ASM_EXPRs ...
13826         (get_asm_expr_operands): ... here.
13827         When the ASM_EXPR clobbers memory, also clobber addressable
13828         variables.
13829         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
13830         (delete_tree_ssa): Reset addressable_vars.
13831
13832 2004-07-07  Jan Beulich  <jbeulich@novell.com>
13833             Richard Henderson  <rth@redhat.com>
13834
13835         * varasm.c (assemble_variable): Use assemble_zeros for
13836         zero-initialized variables.
13837         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
13838         for SECCAT_BSS and SECCAT_TBSS.
13839
13840 2004-07-07  Jan Beulich  <jbeulich@novell.com>
13841
13842         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
13843
13844         * expmed.c (emit_store_flag): Also special-case double-word
13845         (in-)equality comparison against -1.
13846
13847         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
13848         passing arguments the containers for which are registers.
13849
13850         * calls.c (emit_library_call_value_1): Use mode of function parameter
13851         rather than that of argument since constants have none.
13852
13853 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
13854
13855         Introduce H8SX support.
13856         * expr.c (expand_strcpy): Renamed and moved to...
13857         * builtins.c (expand_movstr): ... here.  Tweak.
13858         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
13859         computed or has side effects.
13860         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
13861         unused, or if mempcpy fails.  Adjust the return value in the
13862         latter case.  Use movstr if everything else fails.
13863         * doc/md.texi (movstr): Document.
13864         (movmemM, clrmemM): Fix explanation of memory block operands.
13865         * config/h8300/h8300.md (stpcpy): Renamed to...
13866         (movstr): ... this.  Adjust.
13867         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
13868         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
13869         movmem* and clrstr* to clrmem*.
13870         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
13871         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
13872         GENERAL_REGS, always.
13873         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
13874         getting the stack pointer as addr.
13875         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
13876         from general_operand_dst.
13877         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
13878         variant of...
13879         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
13880         instead of requiring it to match only before reload.
13881         (stpcpy_internal_normal): New, normal-mode variant of...
13882         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
13883         `D' instead of requiring it to match only before reload.
13884         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
13885         mode argument.
13886         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
13887         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
13888         h8300_get_index.
13889         * config/h8300/h8300.md (attr type): Add call.
13890         (attr can_delay): If type is call, set it no.
13891         (call, call_value): Set type to call.
13892         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
13893         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
13894         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
13895         * tree.c (get_narrower): Don't narrow integral types into
13896         non-integral types.
13897         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
13898         frame_size *before* the first use.
13899         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
13900         on input.
13901         (peephole2): Don't widen instructions that push SP.  Move
13902         decrement of SP to the end of all stm-generating peepholes.
13903         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
13904         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
13905         and OR to set it to all ones.
13906         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
13907         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
13908         (call, call_value): Set can_delay to "no".
13909         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
13910         * config/h8300/h8300.md (extzv): Make subreg check more robust.
13911         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13912         * config/h8300/h8300.md (*brabit): Remove.
13913         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
13914         zero_extract.  Use bit_memory_operand as the predicate for
13915         operand 1 and 'WU' as the constraint.  Check the difference
13916         between the base length and the final one when deciding which
13917         type of branch to use.
13918         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13919         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
13920         Use convert_move to extend the result for TARGET_H8300SX.  Check
13921         for QImode memory references.  Optimize the case where the
13922         destination is a paradoxical subreg.
13923         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13924         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
13925         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
13926         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13927         * config/h8300/h8300.md: Include mova.md
13928         (length_table): Add mova and mova_zero.
13929         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
13930         after all constant addresses for '%R', '%X', '%T' and '%S'.
13931         (h8300_mova_length): New function.
13932         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
13933         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
13934         dependencies for s-config, etc.
13935         * config/h8300/gemova.sh: New file.
13936         * config/h8300/mova.md: Generated.
13937         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
13938         * config/h8300/h8300.c (h8300_bitfield_length): New.
13939         (nibble_operand): Adjust.
13940         (h8300_binary_length): Handle conditional binary op.
13941         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
13942         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
13943         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
13944         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
13945         constraints.  WU is introduced as a variant of U that requires a
13946         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
13947         * config/h8300/h8300.md (attr type): Added bitbranch.
13948         (attr length_table): Added bitfield and bitbranch.
13949         (attr length): Compute bitbranch length.
13950         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
13951         least-significant bit of a byte.
13952         (brabit, brabc, brabs): New.
13953         (insv, extzv): Emit bfst and bfld on H8300SX.
13954         (bfld, bfst, seq, sne): New.
13955         (bstzhireg, cmpstz, bstz, bistz): New.
13956         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
13957         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
13958         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
13959         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
13960         (h8sx_unary_memory_operator): New function.
13961         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
13962         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
13963         * config/h8300/h8300.md: Add peepholes to combine reloads and
13964         arithmetic insns.
13965         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
13966         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
13967         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
13968         (and?i, ior?i, xor?i): Likewise.
13969         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
13970         * config/h8300/h8300.c: Move enums and prototypes to head of file.
13971         Various whitespace fixes.
13972         (h8300_constant_length): New function, split out from...
13973         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
13974         (h8300_classify_operand): Use IN_RANGE.
13975         (h8300_classify_operand): Use h8300_constant_length.
13976         (h8300_short_move_mem_p): Tighten size check.
13977         (h8sx_mergeable_memrefs_p): Tighten equality check.
13978         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
13979         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
13980         for -msx.
13981         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
13982         * config/h8300/crtn.asm: Likewise.
13983         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
13984         if __H8300SX__ is defined.
13985         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
13986         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
13987         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
13988         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
13989         addresses as mode-dependent.
13990         * config/h8300/h8300.c (print_operand_address): Update call to
13991         h8300_get_index.
13992         (h8300_get_index): Take a mode argument.  Rework to fix an
13993         earlier misunderstanding.
13994         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
13995         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
13996         into a register if TARGET_H8300SX.
13997         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
13998         TARGET_H8300SX.  Also disable related define_splits.
13999         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
14000         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
14001         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
14002         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
14003         * config/h8300/h8300.h (OK_FOR_Z): New macro.
14004         (EXTRA_CONSTRAINT_STR): Check it.
14005         * config/h8300/h8300.c (h8300_classify_operand): Accept null
14006         class arguments.
14007         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
14008         * config/h8300/h8300.md (length_table): Add mov_imm4.
14009         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
14010         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
14011         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
14012         be a label.
14013         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
14014         * config/h8300/h8300.c (h8300_reorg): New function.
14015         (TARGET_MACHINE_DEPENDENT_REORG): Define.
14016         * config/h8300/h8300.md (length): Subtract the length of the
14017         delay slot from (pc) when checking the range of forward branches.
14018         (delay_slot, can_delay): New attributes.
14019         (define_delay): Add bra/s handling.
14020         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
14021         (jump): Add delayed-branch handling.
14022         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
14023         * expr.c (expand_strcpy): New function.
14024         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
14025         (expand_builtin_stpcpy): Likewise.
14026         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
14027         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
14028         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
14029         handling to improve register allocation for -fno-omit-frame-pointer.
14030         (h8sx_split_movmd): Delete, moving er6 handling into...
14031         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
14032         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
14033         (movmd): Add calls to copy_rtx.
14034         (movmd_internal): In the second alternative, allow the initial and
14035         final destination registers to be different .  Update the splitter
14036         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
14037         instead of h8sx_split_movmd.
14038         (stpcpy, movsd): New expanders.
14039         (movsd_internal): New define_insn.
14040         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
14041         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
14042         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
14043         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
14044         and DESTINATION_REGS.
14045         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
14046         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
14047         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
14048         (h8300_move_ratio): Declare.
14049         (MOVE_RATIO): Use it.
14050         * config/h8300/h8300.c (h8300_move_ratio): New variable.
14051         (h8300_init_once): Initialize it.
14052         (h8300_reg_class_from_letter): New function.
14053         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
14054         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
14055         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
14056         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
14057         (movstrsi, movmd): New expanders.
14058         (movmd_internal): New insn.
14059         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
14060         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
14061         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
14062         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
14063         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
14064         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
14065         * config/h8300/h8300.c (nibble_operand): Fix warning.
14066         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
14067         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
14068         (movsf_h8300h): Disable for TARGET_H8300SX.
14069         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
14070         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
14071         h8300_stm_parallel and h8300_return_parallel.
14072         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
14073         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
14074         h8300_stm_parallel, h8300_return_parallel): New functions.
14075         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
14076         if TARGET_H8300SX.  Use h8300_push_pop.
14077         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
14078         and final pop when generating h8sx code.  Always emit some form
14079         of return insn.
14080         * config/h8300/h8300.md: Don't enforce register alignment in
14081         stm peepholes if TARGET_H8300SX.
14082         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
14083         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
14084         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
14085         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
14086         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
14087         (MULTILIB_DIRNAMES): Add a directory for it.
14088         (MULTILIB_MATCHES): Delete.
14089         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
14090         * final.c (walk_alter_subreg): Handle addresses with subregs
14091         inside a ZERO_EXTEND or AND.
14092         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
14093         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
14094         if TARGET_H8300SX.
14095         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
14096         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
14097         @(dd,Rn.w) and @(dd,ERn.L).
14098         (h8300_displacement_size): Take the whole address as argument.
14099         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
14100         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
14101         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
14102         (h8sx_mergeable_memrefs_p): Declare.
14103         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
14104         (HAVE_PRE_INCREMENT): Likewise.
14105         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
14106         addresses for TARGET_H8300SX,
14107         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
14108         and POST_DEC.
14109         (movb_length_table, movl_length_table): New tables.
14110         (movw_length_table): Define to movb_length_table.
14111         (h8300_displacement_size): New, split out from...
14112         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
14113         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
14114         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
14115         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
14116         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
14117         (compute_plussi_length, compute_plussi_cc): Update accordingly.
14118         (h8sx_unary_shift_operator): Get the mode from the operator.
14119         (binary_shift_operator): Likewise.
14120         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
14121         a memory reference, check whether the reference is offsettable.
14122         (length_table): Add movb, movw and movl.
14123         (movqi): Add new h8sx pattern.  Don't force one operand to be a
14124         register when generating h8sx code.
14125         (movhi, movsi, movsf): Likewise.
14126         (movstrictqi): Use the length_table attribute.
14127         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
14128         (addqi3): Split into a define_expand and define_insn.  Don't accept
14129         memory operands in the expander.  Use h8300_operands_match_p to
14130         check for matching operands in the define_insn.
14131         (subqi3, negqi2, one_cmplqi2): Likewise.
14132         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
14133         in any patterns that are unused in h8sx code.  In the h8sx patterns,
14134         use h8300_operands_match_p to check whether operands match.
14135         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
14136         one_cmpl[hs]i3): Likewise.
14137         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
14138         in the expander.
14139         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
14140         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
14141         (h8300_insn_length_from_table): Add a second parameter.
14142         (output_h8sx_shift): Declare.
14143         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
14144         (EXTRA_CONSTRAINT): Replace with...
14145         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
14146         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
14147         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
14148         and h8sx_binary_shift_operator.
14149         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
14150         for TARGET_H8300SX.
14151         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
14152         (bit_memory_operand, fix_bit_operand): Likewise.
14153         (h8300_length_table_for_insn): Remove.
14154         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
14155         instructions.
14156         (h8300_short_immediate_length, h8300_binary_length): New functions.
14157         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
14158         (output_plussi): Use sub to add negative constants.
14159         (compute_plussi_length): Adjust accordingly.
14160         (h8sx_single_shift_type): New enum.
14161         (h8sx_single_shift, h8sx_unary_shift_operator,
14162         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
14163         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
14164         single h8sx instruction.  Return false in this case.
14165         * config/h8300/h8300.md (length_table): Add short_immediate.
14166         (length): Pass the operand array to h8300_insn_length_from_table.
14167         (adjust_length): Assume "no" for insns with a length_table attribute.
14168         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
14169         (*addhi3_h8300hs): Don't use for h8sx.
14170         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
14171         and sub.w #xx:3.
14172         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
14173         1's predicate to nonimmediate_operand.  Only skip default expansion
14174         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
14175         for single h8sx shift instructions.
14176         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
14177         * config/h8300/h8300.c (nibble_operand): Split out of...
14178         (reg_or_nibble_operand): ... this.
14179         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
14180         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
14181         umulhisi3): Introduce expand, and introduce separate insns for
14182         sign- or zero-extended REG and already-extended CONST_INT.
14183         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
14184         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
14185         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
14186         (subhi3): Likewise.  Don't accept immediates for operand 1.
14187         Remove the early clobber from second alternative of the h8300s pattern.
14188         (subsi3): Generalize for h8sx.  Force operand 2 into a register
14189         on plain h8300 targets.
14190         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
14191         (subsi3_h8300h): Generalize for h8sx.
14192         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
14193         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
14194         * config/h8300/h8300.c (reg_or_nibble_operand): New.
14195         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
14196         (TARGET_H8300SXMUL): New.
14197         (CONST_OK_FOR_P): New.
14198         (CONST_OK_FOR_LETTER_P): Adjust.
14199         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
14200         umulhisi3): Accept 4-bit immediate on H8SX.
14201         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
14202         (udivsi3, divhi3, udivsi3, divsi3): New.
14203         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
14204         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
14205         * config/h8300/h8300.h (OK_FOR_Q): New macro.
14206         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
14207         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
14208         Add ADDRESSOF to the bit_operand entry.
14209         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
14210         (h8300_src_operand): Likewise.
14211         (bit_operand): Check nonimmediate_operand rather than general_operand.
14212         Accept any nonimmediate_operand in h8sx code.
14213         (h8300_and_costs): Initialize operands[1].
14214         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
14215         (h8300_operand_class): New enum.
14216         (h8300_length_table): New typedef.
14217         (addb_length_table, addw_length_table, addl_length_table,
14218         logicl_length_table): New tables.
14219         (logicb_length_table, logicw_length_table): New macros.
14220         (h8300_classify_operand, h8300_length_from_table,
14221         h8300_length_table_for_insn, h8300_unary_length,
14222         h8300_insn_length_from_table): New functions.
14223         (output_plussi): Only use adds and subs for register destinations.
14224         Disable redundant clause.
14225         (compute_plussi_cc): Likewise.
14226         (compute_plussi_length): Likewise.  Use h8300_length_from_table
14227         to work out the length of an insn.
14228         (output_logical_op): Only use narrower immediate instructions
14229         if the destination is a register.
14230         (compute_logical_op_cc): Likewise.
14231         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
14232         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
14233         * config/h8300/h8300.md (length_table): New attribute.
14234         (length): When an instruction has a length_table attribute, use
14235         h8300_insn_length_from_table to calculate its default length.
14236         (cmpqi): Use h8300_dst_operand for the first operand and
14237         h8300_src_operand for the second.
14238         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
14239         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
14240         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
14241         iorsi3, xorhi3, xorsi3): Likewise.
14242         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
14243         so that it allows any combination of operands for TARGET_H8300SX.
14244         (iorqi3, xorqi3): Likewise.
14245         (cmpqi): Use the length_table attribute.
14246         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
14247         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
14248         (cmpqi): Add 'Q' constraint.
14249         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
14250         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
14251         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
14252         * config/h8300/h8300.h (MASK_H8300SX): New macro.
14253         (TARGET_H8300S): True for both -ms and -msx.
14254         (TARGET_H8300SX): New macro.
14255         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
14256         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
14257         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
14258         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
14259         [Temporary change.]
14260         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
14261         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
14262         16-bit pointers and 32-bit ints.
14263         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
14264         CONST_DOUBLE with mode no wider than SImode.
14265         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
14266         output operand.
14267         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
14268         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
14269         or SUBREG thereof.
14270         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
14271         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
14272         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
14273
14274 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
14275
14276         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
14277
14278 2004-07-07  Per Bothner  <per@bothner.com>
14279
14280         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
14281
14282 2004-07-07  Mike Stump  <mrs@apple.com>
14283
14284         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
14285         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
14286         (machopic_finish): Likewise.
14287
14288 2004-07-07  Richard Henderson  <rth@redhat.com>
14289
14290         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
14291         through any value-preserving cast.
14292
14293 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
14294
14295         * function.c (assign_parm_find_data_types): Call
14296         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
14297
14298 2004-07-07  Steven Bosscher  <stevenb@suse.de>
14299
14300         * tree-cfg.c (group_case_labels): Remove case labels that have
14301         the same target as the default case.
14302
14303 2004-07-07  Steven Bosscher  <stevenb@suse.de>
14304
14305         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
14306         regardless of DECL_LANG_SPECIFIC being present or not.
14307         * tree.h (DECL_NUM_STMTS): Purge.
14308
14309 2004-07-07  Andrew Pinski  <apinski@apple.com>
14310
14311         * configure: Regenerate with the right autoconf.
14312
14313 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
14314
14315         * ifcvt.c (total_bb_rtx_cost): New function.
14316         (find_if_case_1): Compare rtx_cost of basic block to cost of
14317         BRANCH_COST insns.
14318         (find_if_case_2): Same.
14319
14320 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
14321
14322         PR target/10567
14323         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
14324         (output_return): Likewise.
14325         (output_sibcall): Abort if !flag_delayed_branch.
14326         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
14327         (emit_and_preserve): New function.
14328         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
14329         indirect jump to the thunked-to function if !flag_delayed_branch.
14330         * config/sparc/sparc.md (delayed_branch): New attribute.
14331         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
14332         attribute to compute the length of the insn.
14333         (goto_handler_and_restore): Likewise.
14334
14335 2004-07-07  Andrew Pinski  <apinski@apple.com>
14336
14337         PR tree-optimization/15777
14338         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
14339
14340         * expr.c (expand_expr_real_1): Fix formating.
14341         BUFFER_REF and IN_EXPR are dead.
14342         * fold-const.c (non_lvalue): BUFFER_REF is dead.
14343         * tree-inline.c (estimate_num_insns_1): Likewise.
14344         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
14345         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
14346         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
14347
14348 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
14349
14350         * collect2.c (dump_file): Don't call cplus_demangle if
14351         HAVE_LD_DEMANGLE is defined.
14352         (main): Pass "--demangle" to ld if no_demangle is not 0 and
14353         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
14354         if HAVE_LD_DEMANGLE is defined.
14355
14356         * configure.ac (--with-demangler-in-ld): Added
14357         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
14358         --with-demangler-in-ld is used.
14359         * config.in: Regenerated.
14360         * configure: Likewise.
14361
14362 2004-07-07  Roger Sayle  <roger@eyesopen.com>
14363
14364         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
14365         for simple floating point operations "fp", double precision
14366         multiplication "dmul", and single and double precision division
14367         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
14368         (ppc630_cost): New table split from ppc620_cost, to distinguish
14369         differences in floating point latencies.
14370         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
14371         (rs6000_rtx_costs): Add support for single and double precision
14372         floating point addition, subtraction, multiplication, division,
14373         fused-multiply-add, fused-multiply-sub, negation, absolute value
14374         and negative absolute value.  Tweak MEM case to use prefered idiom.
14375
14376 2004-07-07  Richard Henderson  <rth@redhat.com>
14377
14378         * tree-flow-inline.h (may_propagate_copy): Move...
14379         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
14380         attempt to copy between types requiring conversion.
14381         * tree-flow.h (may_propagate_copy): Update decl.
14382         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
14383
14384 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
14385
14386         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
14387         from -mtune= option.
14388
14389 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
14390
14391         * builtins.c: Rename movstr*, except for movstrict*, to
14392         movmem* and clrstr* to clrmem*.
14393         * expr.c: Likewise.
14394         * expr.h: Likewise.
14395         * genopinit.c: Likewise.
14396         * integrate.c: Likewise.
14397         * local-alloc.c: Likewise.
14398         * optabs.c: Likewise.
14399         * optabs.h: Likewise.
14400         * config/alpha/alpha.h: Likewise.
14401         * config/alpha/alpha.md: Likewise.
14402         * config/arm/arm-protos.h: Likewise.
14403         * config/arm/arm.c: Likewise.
14404         * config/arm/arm.md: Likewise.
14405         * config/avr/avr.md: Likewise.
14406         * config/c4x/c4x.c: Likewise.
14407         * config/c4x/c4x.md: Likewise.
14408         * config/frv/frv.md: Likewise.
14409         * config/i386/i386-protos.h: Likewise.
14410         * config/i386/i386.c: Likewise.
14411         * config/i386/i386.h: Likewise.
14412         * config/i386/i386.md: Likewise.
14413         * config/i860/i860.c: Likewise.
14414         * config/i860/i860.md: Likewise.
14415         * config/ip2k/ip2k.md: Likewise.
14416         * config/ip2k/libgcc.S: Likewise.
14417         * config/ip2k/t-ip2k: Likewise.
14418         * config/m32r/m32r.c: Likewise.
14419         * config/m32r/m32r.md: Likewise.
14420         * config/mcore/mcore.md: Likewise.
14421         * config/mips/mips.c: Likewise.
14422         * config/mips/mips.md: Likewise.
14423         * config/ns32k/ns32k.c: Likewise.
14424         * config/ns32k/ns32k.h: Likewise.
14425         * config/ns32k/ns32k.md: Likewise.
14426         * config/pa/pa.c: Likewise.
14427         * config/pa/pa.md: Likewise.
14428         * config/pdp11/pdp11.h: Likewise.
14429         * config/pdp11/pdp11.md: Likewise.
14430         * config/rs6000/rs6000.c: Likewise.
14431         * config/rs6000/rs6000.md: Likewise.
14432         * config/s390/s390-protos.h: Likewise.
14433         * config/s390/s390.c: Likewise.
14434         * config/s390/s390.md: Likewise.
14435         * config/sh/lib1funcs.asm: Likewise.
14436         * config/sh/sh.c: Likewise.
14437         * config/sh/sh.md: Likewise.
14438         * config/sh/t-sh: Likewise.
14439         * config/sparc/sparc.h: Likewise.
14440         * config/vax/vax.md: Likewise.
14441         * config/xtensa/xtensa.c: Likewise.
14442         * config/xtensa/xtensa.md: Likewise.
14443         * doc/invoke.texi: Likewise.
14444         * doc/md.texi: Likewise.
14445         * doc/rtl.texi: Likewise.
14446
14447 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
14448
14449         PR target/16407
14450         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
14451         * config/mips/mips.c (mips_declare_common_object): New function,
14452         mostly split out from...
14453         (mips_output_aligned_decl_common): ...here.
14454         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
14455         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
14456         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
14457         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
14458
14459 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14460
14461         PR c/16392
14462         * function.c (assign_parms): Fix typo from previous change.
14463
14464 2004-07-07  Jason Merrill  <jason@redhat.com>
14465
14466         PR c++/15815
14467         * doc/extend.texi (C++ Interface): Correct information and
14468         discourage use.
14469
14470 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
14471
14472         PR target/16130
14473         PR target/16142
14474         PR target/16143
14475         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
14476         insn.
14477
14478 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
14479
14480         PR target/1679.
14481         * config/m32r/m32r.c (m32r_function_symbol): New function:
14482         Generate a symbol name RTX with the correct m32r specific flags
14483         set.
14484         (block_move_call): Use new function to generate correct symbol.
14485         * config/m32r/m32r-protos.h: Add prototype for new funcion.
14486         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
14487         function.
14488
14489 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
14490
14491         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
14492         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
14493         TYPE_BINFO_BASETYPE): Remove.
14494         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
14495         to ...
14496         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
14497         here.
14498         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
14499         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
14500         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
14501         (struct tree_binfo): Rename base_types to base_binfos.
14502         * alias.c (record_component_aliases): Adjust BINFO macros.
14503         * dbxout.c (dbxout_type): Likewise.
14504         * dwarf2out.c (gen_member_die): Likewise.
14505         * sdbout.c (sdbout_one_type): Likewise.
14506         * tree-dump.c (deque_and_dump): Likewise.
14507         * config/i386/i386.c (classify_argument,
14508         contains_128bit_aligned_vector_p): Likewise.
14509
14510 2004-07-07  Nick Clifton  <nickc@redhat.com>
14511
14512         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
14513         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
14514
14515 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
14516
14517         * vec.h: Fix the example use.
14518
14519 2004-07-06  Richard Henderson  <rth@redhat.com>
14520
14521         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
14522         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
14523         * tree-inline.c (copy_body_r, setup_one_parameter,
14524         initialize_inlined_parameters, expand_call_inline,
14525         declare_inline_vars): Don't check it.
14526         (expand_calls_inline): Remove old version, rename new version
14527         from gimple_expand_calls_inline.
14528         * tree-optimize.c (execute_gimple): Remove.
14529         (pass_gimple): Don't run anything.
14530
14531 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
14532
14533         * doc/sourcebuild.texi: Use semicolons instead of commas in
14534         section title.
14535
14536 2004-07-06  Richard Henderson  <rth@redhat.com>
14537
14538         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
14539         (sra_walk_modify_expr, scan_init): Likewise.
14540         (generate_element_zero): Check visited before scanning children.
14541         (generate_element_init): Set visited on error.
14542         (scalarize_init): Handle generate_element_init failure similar
14543         to use_block_copy.
14544
14545 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
14546
14547         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
14548         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
14549
14550 2004-07-06  Richard Henderson  <rth@redhat.com>
14551
14552         * config/i386/i386.c (legitimize_pic_address): Make static.
14553         (legitimize_address): Handle CONST with TLS operand.
14554         (ix86_expand_move): Don't call legitimize_pic_address directly.
14555         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
14556
14557 2004-07-06  Roger Sayle  <roger@eyesopen.com>
14558
14559         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
14560         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
14561         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
14562         is currently executed unconditionally, i.e. not in "else_bb".
14563
14564 2004-07-06  Steven Bosscher  <stevenb@suse.de>
14565
14566         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
14567         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14568         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
14569         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14570         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
14571         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14572         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
14573         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14574         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
14575         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14576         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
14577         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14578         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
14579         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14580         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
14581         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14582
14583 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
14584
14585         * dojump.c (do_jump): REFERENCE_EXPR is dead.
14586         * expr.c (expand_expr_real_1): Ditto.
14587         * tree-inline.c (estimate_num_insns_1): Ditto.
14588         * tree-pretty-print.c (dump_generic_node): Ditto.
14589         (op_symbol): Ditto.
14590         * tree.def: Ditto.
14591
14592 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
14593
14594         * tree-ssa-pre.c (reference_node_pool): New pool.
14595         (find_or_generate_expression): Class 'r' is okay too.
14596         (create_value_expr_from): Ditto.
14597         (add_to_sets): LHS should not include vuses.
14598         (eliminate): Ditto.
14599         (compute_avail): Reverse ordering of tests.
14600         Valuize INDIRECT_REF as well.
14601
14602 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
14603
14604         PR rtl-optimization/16380
14605         * loop.c (check_dbra_loop): Sink comparison instructions if they
14606         do something other than set cc0.
14607
14608 2004-07-06  James E Wilson  <wilson@specifixinc.com>
14609
14610         * doc/interface.texi (longjmp and automatic variables): Delete
14611         paragraph recommending taking the address of a variable.
14612
14613 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14614
14615         * vec.h (VEC_embedded_alloc): Remove.
14616         (VEC_embedded_size, VEC_embedded_init): New.
14617         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
14618         MEM_STAT_INFO.
14619         (VEC_truncate): New.
14620         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
14621         (vec_embedded_alloc): Remove.
14622         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
14623         (vec_embedded_alloc): Remove.
14624
14625 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
14626
14627         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
14628         (gt-langhooks.h): Remove.
14629
14630 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
14631
14632         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
14633
14634 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
14635
14636         * config/sparc/sparc.c (get_pc_symbol): Rename into
14637         add_pc_to_pic_symbol.
14638         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
14639         (load_pic_register): Account for previous changes.
14640         Use reg_names.  Don't create the label twice.
14641         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
14642         UNSPEC_LOAD_PCREL_SYM.
14643         (get_pc): Rename into load_pcrel_sym.  Add predicate to
14644         operands.  Remove condition.
14645
14646 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14647
14648         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
14649         RECORD, UNION & QUAL_UNION is actually a binfo.
14650
14651         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
14652         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
14653         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
14654         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
14655         * dwarf2out.c (add_data_member_location_attribute): Likewise.
14656         (gen_inheritance_die): Likewise.
14657         * tree-dump.c (deque_and_dump): Likewise.
14658         * doc/c-tree.texi (Binfos): Add under reconstruction note.
14659
14660 2004-07-06  Steven Bosscher  <stevenb@suse.de>
14661
14662         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
14663         Define.
14664         * config/mcore/mcore.md: Model memory latency with a simple DFA
14665         pipeline description instead of a define_function_unit.
14666
14667 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14668
14669         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
14670         * langhooks.h (var_mod_type_p): Likewise.
14671         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
14672         * expr.c (count_type_elements): Properly handle return from
14673         array_type_nelts and properly test for overflow.
14674         * gimplify.c (gimplify_init_constructor): Properly handle return
14675         from array_type_nelts.
14676         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
14677         * integrate.c (copy_decl_for_inlining): Correct comments.
14678         * tree-inline.c (remap_decl): Update comments, remove dead code,
14679         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
14680         (remap_type): Only remap if variably modified by vars in function
14681         being inlined.
14682         (copy_body_r): Use compatible_type langhooks to see when can fold.
14683         (setup_one_parameter): Don't remap type.
14684         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
14685         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
14686         compute TREE_INVARIANT for decl case.
14687         (find_var_from_fn): New function.
14688         (variably_modified_type_p): Add arg and call new function.
14689         * tree.h (variably_modified_type_p): Add extra arg.
14690
14691 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
14692
14693         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
14694         (goto_handler_and_restore_v9): Delete disabled insn.
14695         (goto_handler_and_restore_v9_sp64): Likewise.
14696
14697 2004-07-05  Roger Sayle  <roger@eyesopen.com>
14698
14699         * calls.c (load_register_parameters): Call expand_shift instead
14700         of expand_binop with ashl_optab (or other shift optab) directly.
14701         * expr.c (emit_group_load, emit_group_store): Likewise.
14702         * function.c (assign_parm_setup_block): Likewise.
14703         * stmt.c (shift_return_value): Likewise.
14704
14705 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
14706
14707         * expr.c (expand_assignment): Disable the bitfield += optimizations.
14708
14709 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
14710
14711         * doc/sourcebuild.texi: Revert previous patch.
14712
14713 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
14714
14715         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
14716         TARGET_MEM_FUNCTIONS.
14717         * system.h: Poison TARGET_MEM_FUNCTIONS.
14718         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
14719         bcmp_libfunc, bzero_libfunc): Remove.
14720         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
14721         bzero_libfunc.
14722         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
14723         * doc/standards.texi: Don't mention calling BSD string functions.
14724         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
14725         * config/vax/t-memfuncs: New.
14726         * config/memcmp.c, config/memcpy.c, config/memmove.c,
14727         config/memset.c: New.
14728         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
14729         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
14730         vax/t-memfuncs.
14731         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
14732         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
14733         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
14734         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
14735         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
14736         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
14737         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
14738         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
14739         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
14740         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
14741
14742 2004-07-05  Richard Henderson  <rth@redhat.com>
14743
14744         * function.c (assign_parm_setup_reg): Properly rename variables in
14745         FUNCTION_ARG_CALLEE_COPIES section.
14746
14747 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
14748
14749         * tree-mudflap.c: Include cgraph.h.
14750         (mf_init_extern_trees): Rename to mudflap_init.  Export.
14751         Rewrite to create synthetic declarations instead of looking
14752         up declarations from mf-runtime.h.
14753         (mf_make_builtin, mf_make_cache_struct_type): New functions.
14754         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
14755         Correct commentary.
14756         (execute_mudflap_function_decls, mudflap_register_call):
14757         Don't call mf_init_extern_trees.
14758         (mudflap_finish_file): Use cgraph_build_static_cdtor.
14759
14760         * tree-mudflap.h: Update prototypes.
14761         * c-mudflap.c: Delete file.
14762         * c-common.c: Include tree-mudflap.h.
14763         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
14764         * Makefile.in: Remove all references to c-mudflap.o.
14765         Update dependencies.
14766
14767 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14768
14769         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
14770         displacements with the spatial-locality cache-control completer.
14771
14772 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
14773
14774         * langhooks.c: Don't include gt-langhooks.h.
14775         (var_labelno): Delete.
14776         (lhd_set_decl_assembler_name): Do not append a distinguishing
14777         number to file-scope internal-linkage declarations for the first
14778         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
14779         the declaration itself (if at block scope), or its containing
14780         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
14781         number.
14782
14783         * opts.c (cur_in_fname): New global.
14784         * opts.h: Declare it.
14785         * tree.c: Include opts.h.
14786         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
14787         DECL_UID equal to cur_in_fname.
14788         (copy_node_stat): Do not change DECL_UID when copying a
14789         TRANSLATION_UNIT_DECL.
14790         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
14791         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
14792
14793         * c-decl.c (c_static_assembler_name): Delete.
14794         * c-tree.h (c_static_assembler_name): Delete prototype.
14795         * c-lang.c, objc/objc-lang.c: Don't override
14796         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
14797
14798         * Makefile.in (tree.o): Update dependencies.
14799         (GTFILES): Remove langhooks.c.
14800
14801 2004-07-05  Roger Sayle  <roger@eyesopen.com>
14802
14803         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
14804         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
14805         Normalize "X % C" as "X % -C" for signed modulus and negative C.
14806         Optimize "X % -Y" as "X % Y" for signed modulus.
14807         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
14808         into "((unsigned) X % Y) == 0".
14809
14810 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
14811
14812         * sourcebuild.texi (Config Fragments): Use @comma{} in
14813         cross-reference to section title.
14814
14815 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14816
14817         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
14818         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
14819         (gimplify_target_expr, gimplify_expr): Likewise.
14820         (copy_if_shared_r): No longer need special case for BIND_EXPR.
14821         (unshare_body, unvisit_body): Only look at nested if BODY_P is
14822         whole function.
14823         (gimplify_compound_lval): See if we can strip any useless conversion.
14824         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
14825         from RHS, not LHS.
14826         (gimplify_modify_expr_to_memset): Likewise.
14827         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
14828         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
14829         (declare_inline_vars): Likewise.
14830         (walk_type_fields): New function.
14831         (walk_tree): Use it.
14832         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
14833
14834         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
14835         (sra_walk_modify_expr): Allow init function to fail.
14836         (scan_init): Now returns bool.
14837         (generate_element_init): If can't understand INIT, return false.
14838         (scalarize_init): Return false if generate_element_init does.
14839
14840         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
14841         print bounds.
14842
14843         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
14844         bounds if bounds aren't constant.
14845
14846         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
14847
14848         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
14849         to type hooks; remove bogus PARAMS.
14850
14851 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
14852
14853         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
14854         * dwarf2out.c (add_data_member_location_attribute): Check for
14855         TREE_BINFO.
14856         * tree.c (tree_node_kinds): Add "binfos".
14857         (binfo_lang_slots): New.
14858         (make_node_stat): Add TREE_BINFO.
14859         (make_tree_binfo_stat): New.
14860         (tree_node_structure): Add TREE_BINFO.
14861         * tree.def (TREE_BINFO): New.
14862         * tree.h (REC_OR_UNION_CHECK): Rename to ...
14863         (RECORD_OR_UNION_CHECK): ... here.
14864         (NOT_RECORD_OR_UNION_CHECK): New.
14865         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
14866         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
14867         RECORD_OR_UNION_CHECK.
14868         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
14869         (TYPE_LANG_SLOT_1): New.
14870         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
14871         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
14872         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
14873         (BINFO_ELTS): Remove.
14874         (BINFO_LANG_SLOT): New.
14875         (struct tree_binfo): New.
14876         (binfo_lang_slots): Declare.
14877         (enum tree_node_structure_enum): Add TS_BINFO.
14878         (union tree_node): Add binfo.
14879         (make_tree_binfo_stat): Declare.
14880         (make_tree_binfo): New.
14881         (enum tree_node_kind): Add binfo_kind.
14882
14883         * objc/objc-act.c (start_class, objc_declare_protocols,
14884         start_protocols): Use TYPE_LANG_SLOT_1.
14885         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
14886         to ...
14887         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
14888         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
14889         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
14890         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
14891
14892 2004-07-05  Steven Bosscher  <stevenb@suse.de>
14893
14894         * rtl.h (struct rtx_def): Remove the integrated flag.
14895         Use the return_val flag for MEM_SCALAR_P.
14896         Reshuffle and update flags in CLEAR_RTX_FLAGS.
14897
14898 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
14899
14900         PR target/16357
14901         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
14902         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
14903         move_by_pieces.
14904
14905 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
14906
14907         * var-tracking.c: Fix some comments.
14908         (frame_stack_adjust): New.
14909         (vt_stack_adjustments): Init stack_adjust of entry block to
14910         minus stack adjustment of function prologue.
14911         (adjust_stack_reference): Do not adjust if adjustment == 0.
14912         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
14913         (emit_notes_in_bb): Likewise.
14914         (vt_add_function_parameters): Do not adjust locations of
14915         function arguments.
14916         (vt_initialize): Compute the stack adjustment of function
14917         prologue and offset the initial "location" of frame_base_decl
14918         from the stack pointer after prologue.
14919
14920 2004-07-04  Richard Henderson  <rth@redhat.com>
14921
14922         * function.c (struct assign_parm_data_all): New.
14923         (struct assign_parm_data_one): New.
14924         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
14925         assign_parm_find_data_types, assign_parms_setup_varargs,
14926         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
14927         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
14928         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
14929         assign_parm_setup_block, assign_parm_setup_reg,
14930         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
14931         (assign_parms): ... here.
14932
14933 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
14934
14935         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
14936         now are bitmap_set_t's.
14937         (bitmap_insert_into_set): No point in inserting the value if
14938         it's invariant.
14939         (bitmap_set_contains): New function.
14940         (bitmap_set_replace_value): Add comment on why we do it
14941         this way.
14942         (set_contains): Removed.
14943         (bitmap_set_subtract_from_value_set): New name of
14944         set_subtract now that it's arguments are two different
14945         types of sets.
14946         Update callers.
14947         (bitmap_find_leader): Change algorithm used.
14948         (find_or_generate_expression): Update use of functions for new
14949         bitmap sets.
14950         (create_expression_by_pieces): Ditto.
14951         (insert_aux): Ditto.
14952         (insert): Ditto.
14953         (add_to_sets): Ditto.
14954         (init_pre): Ditto.
14955         (execute_pre): Ditto.
14956         (compute_avail): Ditto.
14957         Also ignore virtual phis.
14958
14959 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
14960
14961         * combine.c (simplify_comparison): Fix comment typo.
14962
14963 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
14964
14965         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
14966         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
14967         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
14968         (output_restore): Change parameter from 'insn' to 'pat'.
14969         (output_return): Adjust call to output_restore.
14970         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
14971         Adjust call to output_restore.
14972
14973 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
14974
14975         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
14976         and assert system is bsd.
14977
14978 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
14979
14980         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
14981         (TARGET_SWITCHES): Remove -mdebugc.
14982         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
14983         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
14984         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
14985         (sle_[sd]i_reg): Delete.
14986
14987 2004-07-04  Steven Bosscher  <stevenb@suse.de>
14988
14989         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
14990         Define.
14991         * config/iq2000/iq2000.md: Translate old pipeline description to an
14992         equivalent new one.
14993
14994 2004-07-04  Roger Sayle  <roger@eyesopen.com>
14995
14996         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
14997         Ensure the replacement rhs is valid gimple before performing
14998         the substitution.  Return false if these sanity checks fail.
14999         (fold_stmt): Only set changed to true, if set_rhs returns true.
15000         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
15001         succeeds.
15002
15003 2004-07-04  Richard Henderson  <rth@redhat.com>
15004
15005         PR c/16348
15006         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
15007
15008 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
15009
15010         * configure.ac (ranlib_flags): New variable.
15011         * Makefile.in (RANLIB_FLAGS): New variable.
15012         (libbackend.a): Use it.
15013         * configure: Regenerated.
15014
15015 2004-07-04  Roger Sayle  <roger@eyesopen.com>
15016
15017         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
15018         a "sign mask" instead of using ashr_optab directly.
15019
15020 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
15021
15022         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
15023         * doc/cppopts.texi: Clarify processing of command-line defines.
15024
15025 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
15026
15027         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
15028
15029 2004-07-04  Richard Henderson  <rth@redhat.com>
15030
15031         * rtl.def (ADDRESSOF): Remove.
15032         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
15033         (find_base_term, memrefs_conflict_p): Likewise.
15034         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
15035         (fold_rtx, cse_insn, set_live_p): Likewise.
15036         * dwarf2out.c (mem_loc_descriptor): Likewise.
15037         (add_location_or_const_value_attribute): Likewise.
15038         * emit-rtl.c (copy_insn_1): Likewise.
15039         * explow.c (memory_address): Likewise.
15040         * expmed.c (store_split_bit_field): Likewise.
15041         * expr.c (expand_expr_real_1): Likewise.
15042         * function.c (instantiate_decl
15043         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
15044         * genrecog.c (preds, validate_pattern): Likewise.
15045         * integrate.c (copy_rtx_and_substitute): Likewise.
15046         * recog.c (general_operand, register_operand): Likewise.
15047         (memory_address_p): Likwise.
15048         * reload1.c (eliminate_regs, elimination_effects): Likewise.
15049         * rtl.c (copy_rtx): Likewise.
15050         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
15051         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
15052         * rtlhooks.c (gen_lowpart_general): Likewise.
15053         * stmt.c (expand_asm_operands): Likewise.
15054         * web.c (entry_register, replace_ref, web_main): Likewise.
15055         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
15056         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
15057         * config/arm/arm.c (thumb_rtx_costs): Likewise.
15058         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
15059         * config/frv/frv.c (move_destination_operand, move_source_operand,
15060         condexec_dest_operand, condexec_source_operand,
15061         condexec_memory_operand): Likewise.
15062         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
15063         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
15064         (destination_xfmode_operand): Likewise.
15065         * config/mips/mips.h (PREDICATE_CODES): Likewise.
15066         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
15067         * config/s390/s390.c (general_s_operand): Likewise.
15068         * config/s390/s390.md (mov*): Likewise.
15069         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
15070
15071         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
15072         * expr.c (expand_expr_real_1): Likewise.
15073         * stmt.c (expand_decl): Likewise.
15074         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
15075
15076         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
15077         postponed_insns, put_var_into_stack, put_reg_into_stack,
15078         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
15079         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
15080         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
15081         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
15082         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
15083         purge_bitfield_addressof_replacements, purge_addressof_replacements,
15084         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
15085         struct insns_for_mem_walk_info, insns_for_mem_walk,
15086         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
15087         setjmp_protect_args): Remove.
15088         (push_function_context_to): Don't handle var_refs_queue.
15089         (pop_function_context_from, free_after_compilation): Likewise.
15090         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
15091         (assign_parms, allocate_struct_function): Likewise.
15092         (use_register_for_decl): New.
15093         (expand_function_end): Don't setjmp_protect.
15094         * function.h (struct emit_status): Update commentary.
15095         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
15096         (max_parm_reg, parm_reg_stack_loc): Remove.
15097         * passes.c (DFI_addressof): Remove.
15098         (dump_file_info): Remove addressof.
15099         (rest_of_handle_addressof): Remove.
15100         (rest_of_compilation): Don't call it.
15101         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
15102         * stmt.c (expand_decl): Use use_register_for_decl.
15103         * tree.h: Update decls.
15104         * web.c (mark_addressof): Remove.
15105         * doc/invoke.texi (-dF): Remove.
15106
15107 2004-07-03  Richard Henderson  <rth@redhat.com>
15108
15109         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
15110         instead of gen_mem_addressof.
15111         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
15112         TImode output register.
15113
15114 2004-07-03  Richard Henderson  <rth@redhat.com>
15115
15116         PR tree-optimization/16341
15117         * tree-sra.c (sra_walk_function): Increment to next stmt before
15118         processing the current stmt.
15119         (sra_insert_after): Always use BSI_SAME_STMT.
15120
15121 2004-07-03  Richard Henderson  <rth@redhat.com>
15122
15123         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
15124         fp plus with minus.
15125
15126 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
15127
15128         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
15129         with tree_int_cst_equal.
15130
15131 2004-07-03  Andreas Schwab  <schwab@suse.de>
15132
15133         * config/ia64/ia64.md: Define new attribute "empty".
15134         (prologue_use, nop_x, insn_group_barrier): Set it.
15135
15136         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
15137         skip over "empty" insns.
15138
15139 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15140
15141         * tree-inline.c (initialize_inlined_parameters): Pass proper function
15142         context to gimplify_body.
15143         (walk_tree): Don't walk into types twice.
15144         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
15145
15146         * tree-sra.c (generate_element_init): Remove any useless conversions.
15147
15148         * gimplify.c (gimplify_conversion): Remove stripping useless
15149         conversions from here.
15150         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
15151         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
15152         Unshare before substituting PLACEHOLDER_EXPR.
15153         (gimplify_modify_expr_to_memset): Likewise.
15154         Pass address of TO to memset, not TO itself.
15155         (gimplify_init_constructor): Make copy of OBJECT so we have it each
15156         time we make an expression (to match a PLACEHOLDER_EXPR).
15157
15158         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
15159         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
15160         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
15161         * tree-ssa-dom.c (local_fold): Likewise.
15162
15163         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
15164         * langhooks.h (strct lang_hooks): New field type_max_size.
15165         * function.c (assign_temp): Call it.
15166
15167 2004-07-03  Steven Bosscher  <stevenb@suse.de>
15168
15169         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
15170         * config/sh/sh.md: Convert the SH1 pipeline description to
15171         a DFA model.
15172
15173 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
15174
15175         * c-decl.c (struct c_binding): Remove contour field; add
15176         depth, invisible, nested fields.
15177         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
15178         (B_IN_EXTERNAL_SCOPE): New convenience macros.
15179         (bind): Add invisible and nested arguments. Initialize
15180         new fields of struct c_binding; adjust loop scanning for
15181         insertion point.
15182         (free_binding_and_advance): Clear structure with memset.
15183         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
15184         in file scope, even if it's in external scope too.
15185         (pushdecl): Adjust to match.  Create invisible file-scope
15186         declarations for block-scope forward declarations of static functions.
15187         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
15188         (undeclared_variable, lookup_label, declare_label, define_label)
15189         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
15190         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
15191         (store_parm_decls_oldstyle): Adjust to match.
15192         (diagnose_mismatched_decls): Correct handling of linkage clashes.
15193         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
15194
15195         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
15196         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
15197
15198 2004-07-02  Richard Henderson  <rth@redhat.com>
15199
15200         * c-decl.c (grokdeclarator): Don't frob current_function_decl
15201         around variable_size.
15202         (set_decl_nonlocal): Remove.
15203         (store_parm_decls): Add stmts for pending sizes.
15204         * calls.c (calls_function, calls_function_1): Remove.
15205         (precompute_arguments): Don't call it.
15206         * cfgexpand.c (set_save_expr_context): Remove.
15207         (tree_expand_cfg): Don't call it.
15208         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
15209         (dwarf2out_finish): Likewise.
15210         * expr.c (emit_block_move): Adjust addresses to BLKmode.
15211         (store_constructor): Don't pre-evaluate SAVE_EXPR.
15212         (safe_from_p): Don't queue SAVE_EXPRs.
15213         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
15214         or build plain VAR_DECLs.
15215         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
15216         (fold): Likewise.
15217         (fold_checksum_tree): Don't special-case SAVE_EXPR.
15218         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
15219         (put_var_into_stack): Don't handle SAVE_EXPR.
15220         (gen_mem_addressof): Likewise.
15221         * function.h (struct function): Remove x_save_expr_regs.
15222         (save_expr_regs): Remove.
15223         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
15224         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
15225         * stor-layout.c (variable_size): Don't set it.
15226         (force_type_save_exprs, force_type_save_exprs_1): Remove.
15227         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
15228         all callers.  Don't set SAVE_EXPR_CONTEXT.
15229         * tree-inline.h (remap_save_expr): Update decl.
15230         * tree.c (save_expr): Update build size.
15231         (first_rtl_op): Don't handle SAVE_EXPR.
15232         (unsave_expr_1, contains_placeholder_p): Likewise.
15233         (decl_function_context): Likewise.
15234         * tree.def (SAVE_EXPR): Remove args 1 and 2.
15235         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
15236         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
15237
15238 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
15239
15240         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
15241         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
15242         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
15243         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
15244         some first-person references and patronizing comments.  Based on
15245         printed manual.
15246         * doc/invoke.texi: Don't reference fortran@gnu.org.
15247         * doc/trouble.texi (Warning when a non-void function value is
15248         ignored): Rewrite.  From Russ Allbery and Chris Devers.
15249
15250 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
15251
15252         * tree-ssa-pre.c (bitmap_set_t): New.
15253         (bb_value_sets): avail_out is now a bitmap_set_t.
15254         (bitmap_find_leader): New function.
15255         (bitmap_value_insert_into_set): Ditto.
15256         (bitmap_set_copy): Ditto.
15257         (bitmap_value_replace_in_set): Ditto.
15258         (bitmap_set_contains_value): Ditto.
15259         (bitmap_set_new): Ditto.
15260         (bitmap_set_pool): New pool.
15261         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
15262         (insert_aux): Ditto.
15263         (add_to_sets): Ditto.
15264         (compute_avail): Ditto
15265         (eliminate): Ditto.
15266         (init_pre): Ditto.
15267         (fini_pre): Ditto.
15268         (execute_pre): Ditto.
15269
15270 2004-07-02  Roger Sayle  <roger@eyesopen.com>
15271
15272         * config/rs6000/rs6000.c (struct processor_costs): New structure
15273         used to hold instruction latencies/sizes for processor types.
15274         (rs6000_cost): New global variable pointing to current CPU's costs.
15275         (rs6000_override_options): Initialize rs6000_cost to point to the
15276         appropriate cost table based upon rs6000_cpu and optimize_size.
15277         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
15278         timings inline.
15279
15280 2004-07-02  Richard Henderson  <rth@redhat.com>
15281
15282         * expmed.c (make_tree): Don't use SET_DECL_RTL.
15283
15284 2004-07-02  Steven Bosscher  <stevenb@suse.de>
15285
15286         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
15287
15288 2004-07-01  Richard Henderson  <rth@redhat.com>
15289
15290         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
15291         (alpha_gp_save_rtx): Use assign_stack_local instead of
15292         gen_mem_addressof.
15293
15294 2004-07-01  Richard Henderson  <rth@redhat.com>
15295
15296         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
15297         (alpha_rtx_cost_data): Update to match.
15298         (alpha_rtx_cost_size): New.
15299         (alpha_rtx_costs): Honor optimize_size.
15300
15301 2004-07-01  Richard Henderson  <rth@redhat.com>
15302
15303         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
15304         * cfgexpand.c (tree_expand_cfg): Do it here.
15305         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
15306         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
15307         * config/mips/mips.c (mips_output_mi_thunk): And here.
15308         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
15309         * config/sh/sh.c (sh_output_mi_thunk): And here.
15310         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
15311
15312 2004-07-01  Richard Henderson  <rth@redhat.com>
15313
15314         * tree.def (RTL_EXPR): Remove.
15315         * c-typeck.c (lvalue_p): Don't handle it.
15316         * expr.c (safe_from_p): Likewise.
15317         (expand_expr_real_1): Likewise.
15318         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
15319         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
15320         * gengtype.c (adjust_field_tree_exp): Likewise.
15321         * stmt.c (warn_if_unused_value): Likewise.
15322         * tree-gimple.c (recalculate_side_effects): Likewise.
15323         * tree-pretty-print.c (dump_generic_node): Likewise.
15324         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
15325         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
15326         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
15327
15328         * stmt.c (struct stmt_status): Remove x_last_expr_type,
15329         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
15330         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
15331         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
15332         all the bits that tracked last_expr.
15333         (expand_end_bindings): Don't track last_expr.
15334         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
15335         (clear_last_expr): Remove.
15336         (expand_asm): Don't call it.
15337         (expand_asm_operands, expand_end_cond): Likewise.
15338         (expand_naked_return, expand_null_return_1): Likewise.
15339         * c-typeck.c (c_begin_compound_stmt): Likewise.
15340         * cfgexpand.c (expand_block): Use expand_expr_stmt.
15341         * expr.c (expand_expr_real_1): Likewise.
15342         * tree.h: Update prototypes.
15343
15344         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
15345         (struct emit_status): Remove sequence_rtl_expr.
15346         (struct function): Remove x_rtl_expr_chain.
15347         (seq_rtl_expr, rtl_expr_chain): Remove.
15348         * function.c (struct temp_slot): Remove rtl_expr.
15349         (assign_stack_temp_for_type): Don't set it.
15350         (free_temp_slots, pop_temp_slots): Don't check it.
15351         (free_after_compilation): Don't clear x_rtl_expr_chain.
15352         (fixup_var_refs): Don't search it.
15353         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
15354         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
15355         or seq_rtl_expr.
15356         (push_topmost_sequence): Likewise.
15357         (end_sequence, init_emit): Likewise.
15358         (start_sequence_for_rtl_expr): Remove.
15359         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
15360         * rtl.h (preserve_rtl_expr_result): Remove.
15361
15362 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
15363
15364         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
15365         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
15366         typos.
15367
15368 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
15369
15370         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
15371         (STANDARD_STARTFILE_PREFIX_2): Define.
15372         (standard_startfile_prefix_1): Initialize to
15373         STANDARD_STARTFILE_PREFIX_1.
15374         (standard_startfile_prefix_2): Initialize to
15375         STANDARD_STARTFILE_PREFIX_2.
15376         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
15377         (STANDARD_STARTFILE_PREFIX_1): Define.
15378         (STANDARD_STARTFILE_PREFIX_2): Define.
15379         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
15380         (STANDARD_STARTFILE_PREFIX_2): Document.
15381
15382 2004-07-01  Richard Henderson  <rth@redhat.com>
15383
15384         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
15385         in order to disable scalarization.  Instead set a flag and wait
15386         for a candidate decl.
15387
15388 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
15389
15390         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
15391         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
15392         Use terminology "testsuite" and "enumerated".
15393
15394 2004-07-01  Richard Henderson  <rth@redhat.com>
15395
15396         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
15397         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
15398         (initial_return_save): Likewise.
15399         (flush_queued_reg_saves): Remap register numbers.
15400         (dwarf2out_return_reg): Likewise.
15401
15402 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15403
15404         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
15405
15406         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
15407         access functions for lower bound and element size and only output
15408         if lower bound nonzero or element size not same as that of type.
15409         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
15410
15411 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
15412
15413         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
15414
15415 2004-07-01  Per Bothner  <per@bothner.com>
15416
15417         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
15418
15419 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
15420
15421         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
15422         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
15423         first operand.  Don't optimize if the bitfield is volatile.
15424
15425 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
15426
15427         * c-pretty-print.c (pp_c_postfix_expression): Handle
15428         floating-point comparison operators.
15429         (pp_c_expression): Pass floating-point comparison
15430         operators to pp_c_postfix_expression.
15431
15432 2004-07-01  Roger Sayle  <roger@eyesopen.com>
15433
15434         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
15435         rtx_cost instead of "had_mult" to determine whether the transformed
15436         expression is cheaper than the original.
15437
15438 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
15439
15440         * alias.c (get_alias_set, canon_rtx, get_addr,
15441         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
15442         Use MEM_P.
15443         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
15444         expand_builtin): Likewise.
15445         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
15446         Likewise.
15447         * combine.c (can_combine_p, combinable_i3pat, try_combine,
15448         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
15449         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
15450         record_dead_and_set_regs_1, get_last_value_validate,
15451         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
15452         * cse.c (check_dependence, canon_hash, equiv_constant,
15453         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
15454         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
15455         count_reg_usage): Likewise.
15456         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
15457         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
15458         cselib_record_sets): Likewise.
15459         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
15460         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
15461         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
15462         * df.c (df_uses_record): Likewise.
15463         * dojump (do_jump): Likewise.
15464         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
15465         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
15466         decl_start_label): Likewise.
15467         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
15468         operand_subword, change_address_1, make_safe_from): Likewise.
15469         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
15470         stabilize, force_not_mem): Likewise.
15471         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
15472         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
15473         * expr.c (convert_move, convert_modes, emit_block_move,
15474         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
15475         emit_move_insn_1, expand_assignment, store_expr,
15476         store_constructor_field, store_constructor, store_field,
15477         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
15478         Likewise.
15479         * final.c (cleanup_subreg_operands, alter_subreg,
15480         get_mem_expr_from_op): Likewise.
15481         * flow.c (notice_stack_pointer_modification_1,
15482         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
15483         Likewise.
15484         * function.c (mark_temp_addr_taken, preserve_temp_slots,
15485         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
15486         optimize_bit_field, flush_addressof, purge_addressof_1,
15487         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
15488         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
15489         keep_stack_depressed): Likewise.
15490         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
15491         noce_process_if_block, find_memory): Likewise.
15492         * integrate.c (subst_constants, allocate_initial_values): Likewise.
15493         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
15494         update_equiv_regs): Likewise.
15495         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
15496         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
15497         * optabs.c (expand_abs, emit_unop_insn): Likewise.
15498         * passes.c (rest_of_handle_final): Likewise.
15499         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15500         move2add_note_store): Likewise.
15501         * ra-build.c (detect_remat_webs): Likewise.
15502         * ra-debug.c (dump_static_insn_cost): Likewise.
15503         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
15504         * recog.c (validate_change, apply_change_group, cancel_changes,
15505         validate_replace_rtx_1, general_operand, register_operand,
15506         nonmemory_operand, push_operand, pop_operand, memory_operand,
15507         indirect_operand, asm_operand_ok, offsettable_memref_p,
15508         offsettable_nonstrict_memref_p, constrain_operands,
15509         store_data_bypass_p): Likewise.
15510         * reg-stack.c (subst_stack_regs_pat): Likewise.
15511         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
15512         copy_cost, reg_scan_mark_refs): Likewise.
15513         * regmove.c (optimize_reg_copy_3, stack_memref_p,
15514         combine_stack_adjustments_for_block): Likewise.
15515         * regrename.c (copyprop_hardreg_forward_1): Likewise.
15516         * reload.c (can_reload_into, push_reload, decompose, immune_p,
15517         find_reloads, find_reloads_address, find_reloads_address_1,
15518         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
15519         find_equiv_reg): Likewise.
15520         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
15521         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
15522         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
15523         delete_address_reloads): Likewise.
15524         * resource.c (mark_referenced_resources): Likewise.
15525         * rtlanal.c (get_jump_table_offset, count_occurrences,
15526         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
15527         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
15528         num_sign_bit_copies1): Likewise.
15529         * rtlhooks.c (gen_lowpart_general): Likewise.
15530         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
15531         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
15532         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
15533         sdbout_global_decl): Likewise.
15534         * simplify-rtx.c (simplify_subreg): Likewise.
15535         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
15536         expand_anon_union_decl, expand_end_case_type): Likewise.
15537         * unroll.c (calculate_giv_inc): Likewise.
15538         * var-tracking.c (stack_adjust_offset_pre_post,
15539         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
15540         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
15541         vt_add_function_parameters): Likewise.
15542         * varasm.c (make_var_volatile, notice_global_symbol,
15543         assemble_external, decode_addr_const, mark_weak,
15544         default_encode_section_info): Likewise.
15545
15546 2004-07-01  Steven Bosscher  <stevenb@suse.de>
15547
15548         * stmt.c (check_seenlabel): Remove.
15549         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
15550
15551 2004-07-01  Richard Henderson  <rth@redhat.com>
15552
15553         * function.h (struct function): Remove x_function_call_count.
15554         (function_call_count): Remove.
15555         * calls.c (expand_call): Don't set it.
15556         * integrate.c (copy_rtx_and_substitute): Likewise.
15557
15558         * function.h (struct function): Remove x_cleanup_label.
15559         (cleanup_label): Remove.
15560         * stmt.c (expand_value_return): Don't use it.
15561         * function.c (free_after_compilation): Don't set it.
15562         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
15563         * cfgexpand.c (tree_expand_cfg): Update call.
15564         * tree.h (expand_function_start): Update decl.
15565
15566 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
15567
15568         PR c/1027
15569         * c-lang.c (c_initialize_diagnostics): Move from here ...
15570         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
15571         (c_tree_printer): Use pretty-printer to format %T.
15572         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
15573         before '*' if not C++.
15574         (pp_c_direct_abstract_declarator): Don't try to print array upper
15575         bound for flexible array members.
15576         * c-tree.h: Include "diagnostic.h".
15577         (c_initialize_diagnostics): Declare.
15578         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
15579         * c-format.c (format_type_warning): New function.  Improve
15580         diagnostics for incorrect format argument types.
15581         (check_format_types): Use it.  Add two parameters.  Use the
15582         TYPE_MAIN_VARIANT of wanted_type.
15583         (check_format_info_main): Pass new parameters to
15584         check_format_types.
15585         (struct format_wanted_type): Update comment.
15586
15587 2004-07-01  Nick Clifton  <nickc@redhat.com>
15588
15589         * target.h (struct gcc_target): Add new field to struct cxx:
15590         import_export_class.
15591         * target-def.h (TARGET_CXX): Initialise the new field.
15592         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
15593         the new field.
15594         * doc/tm.texi: Document the new target hook.
15595
15596 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
15597
15598         * builtins.c (fold_builtin_classify): Fix typo.
15599
15600 2004-07-01  Richard Henderson  <rth@redhat.com>
15601
15602         * function.c (identify_blocks, identify_blocks_1): Remove.
15603         * function.h (identify_blocks): Remove.
15604         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
15605
15606 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
15607
15608         * builtins.c (fold_builtin_classify): New.
15609         (fold_builtin_unordered_cmp): Fix commentary.
15610         (fold_builtin): Use it.
15611         * builtins.def: Define builtins for isnan,
15612         isnanf, isnanl, finite, finitef, finitel,
15613         isinf, isinff, isinfl.
15614
15615 2004-07-01  Richard Henderson  <rth@redhat.com>
15616
15617         * function.h (struct function): Remove dont_emit_block_notes.
15618         * gimple-low.c (lower_function_body): Don't set it.
15619         * cfgexpand.c (expand_block): Don't check it.
15620         * cfglayout.c (insn_locators_initialize): Likewise.
15621         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
15622         * passes.c (rest_of_compilation): Likewise.
15623         * stmt.c (expand_start_bindings_and_block): Likewise.
15624         (expand_end_bindings): Likewise.
15625
15626 2004-07-01  Richard Henderson  <rth@redhat.com>
15627
15628         * cgraph.h (cgraph_build_static_cdtor): Declare.
15629         * cgraphunit.c (cgraph_build_static_cdtor): New.
15630         * c-objc-common.c (build_cdtor): Use it.
15631         * coverage.c (create_coverage): Likewise.
15632         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
15633         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
15634
15635 See ChangeLog.11 for earlier changes.