OSDN Git Service

* config/sparc/sparc.md (cmove splitter): Fix formatting.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2
3         * config/sparc/sparc.md (cmove splitter): Fix formatting.
4         (conditional_trap expander): Reject inappropriate CCmodes.
5         (conditional trap expander): Use V9 syntax if possible.
6
7 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
8
9         PR c/16566
10         * c-typeck.c (build_component_ref): Don't special-case
11         COMPOUND_EXPR.
12
13 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
14
15         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
16         returns NULL.
17
18 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
19
20         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
21         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
22         TRUTH_XOR_EXPR): Mention the restriction on types.
23
24 2004-09-22  Matt Austern  <austern@apple.com>
25
26         * config/darwin.c (darwin_make_decl_one_only)
27         Allow coalesced symbol to appear in static archive's table of contents
28         
29 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
30
31         PR tree-optimization/17512
32         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
33         special cases.
34
35 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
36
37         * dbxout.c (get_lang_number): Do not define if
38         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
39
40 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
41
42         PR target/15583
43         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
44         builtin_define ("__USE_INIT_FINI__").
45
46 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
47
48         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
49         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
50         * config/s390/s390.h (TARGET_TPF): New macro.
51         * config/s390/s390.md ("eh_return"): New expander.
52         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
53         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
54         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
55         * config/s390/tpf.h (TARGET_TPF): Define to 1.
56         (STACK_POINTER_OFFSET): Increase to 448.
57         (TARGET_DEFAULT): Set -mtpf-trace on as default.
58         (TPF_LOC_DIFF_OFFSET): New macro.
59         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
60         encoding.
61         (__isPATrange): Add prototype.
62         (MD_FALLBACK_FRAME_STATE_FOR): Define.
63         * config/s390/tpf-eh.c: New file.
64
65 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
66
67         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
68         operands in an integer comparison.
69         * tree-cfg.c (find_taken_edge): Call fold() to determine
70         whether the predicate is known.
71
72 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
73
74         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
75         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
76         Create build and doc directories along with the language directories.
77         Don't create doc directory separately.
78         * configure: Regenerate.
79         * Makefile.in: Create all object and executables files built
80         with the build compiler in a build/ directory.
81         (genobjnames): Add missing build objects.
82         (STAGESTUFF): Don't stage the gen* programs.
83         (ggc-none.o): Define dependencies for the target compiler.
84         (build-print-rtl.o): Rename to build/print-rtl.o.
85         (build-errors.o): Rename to build/errors.o.
86         (build-varray.o): Rename to build/varray.o.
87         (maintainerclean): Delete the contents of the build directory.
88         ($(genobjs): %.o): Explicitly use -o.
89         (build/insn-conditions.o): Delete specfic rule to use generic rule.
90         (build/gengtype-lex.o): Likewise.
91         (build/gengtype-yacc.o): Likewise.
92         (build/gcov-iov.o): Likewise.
93
94 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
95
96         * vec.h (VEC_space): Return true if there _is_ space.
97         (VEC_reserve): Adjust.
98
99 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
100
101         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
102         use FPRs for scalar, complex and vector types only.
103
104 2004-09-21 Jeff Law  <law@redhat.com>
105
106         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
107         the opt_stats_d structure.
108         (vrp_data): Change from a varray into a hash table.
109         (vrp_hash_elt): New structure for elements in the vrp hash table.
110         (vrp_hash, vrp_eq):New functions for hashing and testing equality
111         in the vrp hash table.
112         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
113         initialization slightly to make it easier to read.  No longer need
114         to grow/clear the varray.  Instead empty and delete the hash table.
115         (dom_opt_finalize_block): Update due to change of VRP_DATA from
116         a varray to a hash table.
117         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
118
119         * tree-ssa-ccp.c (get_default_value): If we have a constant
120         value recorded for an SSA_NAME, then use that constant as
121         the initial lattice value.
122         (substitute_and_fold): Transfer equivalences discovered into
123         SSA_NAME_EQUIV.
124  
125         * tree.h (SSA_NAME_EQUIV): Add comments.
126         (SET_SSA_NAME_EQUIV): Similarly.
127
128 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
129
130         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
131
132         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
133
134 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
135
136         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
137         (finish_decl): Likewise.
138
139 2004-09-21  Devang Patel  <dpatel@apple.com>
140
141         * tree.def (VEC_COND_EXPR): New tree node.
142         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
143         
144 2004-09-21  Stan Shebs  <shebs@apple.com>
145
146         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
147         * config/rs6000/darwin-world.asm: Likewise.
148         
149 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
150
151         * tree-ssa.c (verify_def): Use print_generic_stmt,
152         not debug_generic_stmt.
153         (verify_use): Ditto.
154         (verify_phi_args): Ditto.
155         (verify_ssa): Ditto.
156
157 2004-09-21  Paul Brook  <paul@codesourcery.com>
158
159         * varasm.c (default_assemble_integer): Return false for values wider
160         than the target word size.  Works around GAS bug.
161
162 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
163
164         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
165         gets value 0.
166         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
167         if it has value 0.
168
169 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
170
171         * c-typeck.c (build_function_call): Give name of object
172         we are attempting to call in error message.
173         * c-objc-common.c (c_tree_printer): Call pp_expression,
174         not return false, for 'E' case.
175
176 2004-09-21  Steven Bosscher  <stevenb@suse.de>
177
178         PR rtl-optimization/17482
179         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
180         load_killed_in_block_p): Clarify comments.
181         (record_last_reg_set_info): Make static inline.
182         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
183         (record_opr_changes): New function to replace the above.
184         (compute_hash_table): Clarify comments.  Use record_opr_changes.
185         (reg_set_between_after_reload_p): Clean up.
186         (reg_used_between_after_reload_p): Likewise.
187         (eliminate_partially_redundant_load): Clarify comments.
188
189 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
190
191         PR rtl-optimization/17266
192         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
193
194 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
195
196         PR rtl-optimization/14851
197         * rtlanal.c (commutative_operand_precedence): Calculate
198         precedence of stripped constant.
199
200 2004-09-20 Jeff Law  <law@redhat.com>
201            Jan Hubicka  <jh@suse.cz>
202
203         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
204         initialize key elements here.
205         (release_ssa_name): Zero the released SSA_NAME here.
206         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
207         (struct tree_ssa_name): Add new "equiv" field.
208         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
209         (tree_ssa_dominator_optimize): No longer allocate, resize or
210         clear CONST_AND_COPIES.
211         (get_value_for, set_value_for): Kill.
212         (thread_across_edge): Get/set the equivalency using
213         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
214         (restore_vars_to_original_value): Likewise.
215         (record_equivalences_from_phis): Likewise.
216         (record_dominating_conditions): Likewise.
217         (record_const_or_copy, record_equality): Likewise.
218         (lookup_avail_expr): Likewise.
219         (record_equivalences_from_stmt, cprop_operand): Likewise.
220         (cprop_into_successor_phis): No longer need to pass around
221         CONST_AND_COPIES.  Callers updated. Get equivalences via
222         SSA_NAME_EQUIV.
223         (cprop_into_phis): Likewise.
224
225 2004-09-20  Matt Austern <austern@apple.com>
226             Zack Weinberg  <zack@codesourcery.com>
227
228         * c-common.c (fix_string_type): Build the unqualified array
229         type unconditionally, then use c_build_qualified_type to get
230         the proper const-qualified variant, and set its
231         TYPE_MAIN_VARIANT to refer to the unqualified type.
232         * c-lex.c (c_lex_return_raw_string): New global.
233         (c_lex_with_flags): Honor it.
234         * c-pragma.h: Declare it.
235
236 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
237
238         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
239
240 2004-09-21  Jan Hubicka  <jh@suse.cz>
241
242         PR middle-end/17126
243         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
244         (tree_rest_of_compilation): Cleanup.
245
246 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
247
248         * config/s390/s390.c (s390_select_rtx_section): Remove.
249         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
250
251 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
252
253         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
254         note to pretend a direct save from the original register when an
255         intermediate register is used for the save.
256
257 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
258
259         * tsystem.h (alloca): Provide a default definition.
260
261         Revert:
262         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
263             * unwind-dw2.c: Call __builtin_alloca, not alloca.
264
265 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
266
267         PR tree-opt/17558
268         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
269         aliasing sets are the same rather than just conflicting.
270
271 2004-09-20  Jan Hubicka  <jh@suse.cz>
272
273         PR middle-end/16460
274
275         * cgraph.c (cgraph_unnest_node): New function.
276         (c_finalize): Rename to ....
277         (c_warn_unused_result_recursivly): ... this one; do only the warning
278         (finish_function): Finalize the toplevel function; do not lower nested tree.
279         * cgraph.h (cgraph_unnest_node): Declare.
280         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
281         nestedness datastructure.
282         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
283         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
284         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
285
286 2004-09-20  Richard Henderson  <rth@redhat.com>
287
288         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
289         from some_small_symbolic_operand_1; export.
290         (some_small_symbolic_operand): Remove.
291         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
292         extra C check.
293         * config/alpha/predicates.md (some_small_symbolic_operand): New.
294
295 2004-09-20  Jan Hubicka  <jh@suse.cz>
296
297         * predict.c (return_prediction): New function.
298         (apply_return_prediction): Likewise.
299         (tree_bb_level_predictions): Likewise.
300         (tree_estimate_probability): Add noreturn exit edges; call
301         bb_level_predictions; fix logic of return heuristics.
302         (predict_paths_leading_to):  Rescuesce from old CVS version of
303         process_note_prediction function.
304         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
305
306 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
307
308         * config/s390/s390.c (s390_frame_info): Added alignment statement for
309         floating point register area on stack.
310
311 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
312
313         * predict.c (expr_expected_value): Use *_CLASS_P macros.
314
315 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
316
317         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
318         generating useless garbage.
319
320 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
321
322         * builtins.c (fold_builtin): Call the new omonymous
323         target hook for machine-dependent built-ins.
324         * target-def.h (TARGET_FOLD_BUILTIN): New.
325         * target.h (struct gcc_target): Add the fold_builtin hook.
326         * targhooks.c (default_fold_builtin): New.
327         * targhooks.h (default_fold_builtin): Declare it.
328
329 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
330
331         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
332         comment typos.
333
334 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
335
336         PR target/17565
337         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
338
339 2004-09-20  Jan Hubicka  <jh@suse.cz>
340
341         * predict.c (estimate_probability): Remove unnecesary code.
342
343 2004-09-19  Ira Rosen  <irar@il.ibm.com>
344
345         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
346         (STMT_VINFO_VECT_DR_BASE): Declare.
347         (VECT_SMODULO): Declare.
348         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
349         (vect_compute_array_base_alignment): New function.
350         (vect_analyze_data_ref_access): Check array indices. Remove one
351         dimensional arrays restriction.
352         (vect_get_ptr_offset): New function.
353         (vect_get_symbl_and_dr): New function.
354         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
355         (former name vect_get_base_decl_and_bit_offset).
356         (vect_create_index_for_array_ref): Removed.
357         (vect_create_index_for_vector_ref): New function.
358         (vect_create_addr_base_for_vector_ref): New function.
359         (vect_create_data_ref): Handle additional data refs. Call
360         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
361         (vect_compute_data_ref_alignment): Support the changes. Call
362         vect_get_base_and_bit_offset.
363         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
364         data refs. Store vect_dr_base.
365         (vect_analyze_data_ref_accesses): Support nonconstant init.
366         (new_stmt_vec_info): Initialize vect_dr_base field.
367         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
368         (get_vectype_for_scalar_type): Check for BLKmode.
369         * tree-chrec.h (initial_condition_in_loop_num): Declare.
370         * tree-chrec.c (initial_condition_in_loop_num): New function.
371         (chrec_component_in_loop_num): New function.
372         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
373         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
374         to be pointer to varray_type.
375
376 2004-09-19  Jan Hubicka  <jh@suse.cz>
377
378         * basic-block.h (update_bb_profile_after_threading): Declare.
379         * cfg.c (update_bb_profile_after_threading): Break out from ...
380         * cfgcleanup.c (try_forward_edges): ... here; use it.
381         * tree-ssa-dom.c (thread_across_edge): Use it.
382         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
383         profile of the new BB.
384
385 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
386
387         * tree-ssa-pre.c (insert_into_set): Don't put
388         is_gimple_min_invariant values into the set.
389
390 2004-09-19  Andreas Jaeger  <aj@suse.de>
391
392         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
393         prototype.
394
395 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
396
397         * config/cris/cris.h: Preserve the original spelling in a
398         quote.
399
400 2004-09-18 Jeff Law  <law@redhat.com>
401
402         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
403         global varrays to replace the block local varrays.
404         (struct dom_walk_block_data): Remove, no longer used.
405         (get_eq_expr_value): No longer need to pass around pointers to local
406         varrays.  Callers updated.  Unused markers added to unused parameters.
407         (record_range, record_equivalences_from_stmt): Likewise.
408         (record_equivalences_from_incoming_edge): Likewise.
409         (record_var_is_nonzero): Likewise.  Update now that we have a
410         single global varray of SSA_NAMEs that need restoring.
411         (dom_opt_initialize_block_local_data): Kill, no longer used.
412         (tree_ssa_dominator_optimize): Initialize new global varrays.
413         Update callbacks in dominator walker structure.
414         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
415         VRP_VARIABLES_STACK.
416         (restore_nonzero_vars_to_original_value): Update now that we have
417         a single global varray of SSA_NAMEs that need restoring.
418         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
419         Remove unused variables.
420         (optimize_stmt): Remove unused variable.
421
422 2004-09-18  Jan Hubicka  <jh@suse.cz>
423
424         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
425
426         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
427         verify_cgraph call.
428
429 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
430
431         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
432         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
433         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
434         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
435         tree-ssa-operands.c, tree-ssa-phiopt.c,
436         tree-ssa-threadupdate.c: Fix comment typos.
437
438 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
439
440         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
441         config/arm/README-interworking, config/arm/arm-cores.def,
442         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
443         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
444         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
445         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
446         config/frv/frv.md, config/i386/winnt.c,
447         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
448         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
449         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
450         config/mcore/mcore.c, config/mips/mips.h,
451         config/mn10300/mn10300.md, config/pa/pa.c,
452         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
453         config/rs6000/rs6000.c, config/sh/symbian.c,
454         config/sparc/sparc.h: Fix comment typos.  Follow spelling
455         conventions.
456
457 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
458
459         PR c/17424
460         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
461
462 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
463
464         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
465         remove TREE_ADDRESSABLE from RESULT_DECL.
466
467 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
468
469         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
470
471 2004-09-18  Jan Hubicka  <jh@suse.cz>
472
473         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
474         NULL.
475         * tree-ssa-alias.c (init_alias_info): Likewise.
476         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
477         (verify_ssa): Likewise.
478         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
479
480 2004-09-18  Jan Hubicka  <jh@suse.cz>
481
482         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
483         huge offset.
484
485 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
486
487         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
488         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
489         DW_EH_PE_sdata* for data.
490         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
491
492 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
493
494         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
495         shared anyway.
496
497         PR pch/13361
498         * c-typeck.c (constructor_asmspec): Delete.
499         (struct initializer_stack): Delete field 'asmspec'.
500         (start_init): Delete saving of asmspec.
501         (finish_init): Don't update constructor_asmspec.
502         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
503         * stmt.c (expand_asm): Duplicate strings from tree.
504         (expand_asm_operands): Likewise.
505         * tree.c (tree_size): Update computation of size of STRING_CST.
506         (make_node): Don't make STRING_CST nodes.
507         (build_string): Allocate string with tree node.
508         (tree_code_size): Clean up assertions, don't allow requests
509         for "the size of a STRING_CST".
510         * tree.def (STRING_CST): Update comment.
511         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
512         (tree_string): Place contents of string in tree node.
513         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
514         from tree.
515
516 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
517
518         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
519         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
520
521 2004-09-17  Jones Desougi  <jones@ingate.com>
522
523         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
524         * configure, config.in: Regenerate.
525
526 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
527
528         * tree.c, tree.h (tree_class_strings): Make array const.
529         Reindent per coding convention.  Move asterisk to proper place
530         per coding convention.
531
532 2004-09-18  Andreas Schwab  <schwab@suse.de>
533
534         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
535         (tree-vectorizer.o): Likewise.
536         (targhooks.o): Likewise.
537
538 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
539             Zack Weinberg  <zack@codesourcery.com>
540
541         * alias.c (find_base_decl): Remove unreachable case '3' block.
542         * expr.c (safe_from_p): Abort if passed a type.
543         * tree-gimple.c (recalculate_side_effects): Abort if passed
544         anything other than an expression.
545         * tree-ssa-pre.c (phi_translate): Return expr immediately if
546         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
547         Abort on un-handled tree classes.
548         (valid_in_set): Likewise.
549         * tree.c (tree_code_class_strings): New static data.
550
551         * tree.h (enum tree_code_class): New.
552         (tree_code_class_strings): Declare.
553         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
554         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
555         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
556         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
557         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
558
559         * tree.def, c-common.def, objc/objc-tree.def: Use
560         tree_code_class enumeration constants instead of code letters.
561
562         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
563         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
564         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
565         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
566         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
567         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
568         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
569         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
570         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
571         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
572         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
573         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
574         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
575         Update to match.
576
577         * LANGUAGES: Add note about change.
578
579 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
580
581         PR tree-optimization/17319
582         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
583         examine pointers on the LHS of an assignment.
584         (collect_points_to_info_r): Handle RETURN_EXPR.
585
586 2004-09-17 Jeff Law  <law@redhat.com>
587
588         * tree-ssa-dom.c (const_and_copies_stack): New.
589         (dom_walk_block_data): Remove const_and_copies field.
590         (record_const_or_copy): No longer need to pass in varray_type *.
591         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
592         Callers updated.
593         (record_equality): Similarly.
594         (restore_vars_to_original_value): Similarly.  Revamp to use new
595         single global stack rather than per-block stacks.
596         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
597         (thread_across_edge): Remove now unused parameters.
598         (dom_opt_initialize_block_local_data): No longer test the block
599         local CONST_AND_COPIES.
600         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
601
602 2004-09-17  Jan Hubicka  <jh@suse.cz>
603
604         PR tree-optimization/17509
605         * tree-optimize.c (update_inlined_to_pointers): New function.
606         (tree_rest_of_compilation): Use it.
607
608 2004-09-17  Devang Patel  <dpatel@apple.com>
609
610         * dbxout.c (get_lang_number): New.
611         (dbxout_init): Include lang number in N_SO  stab.
612         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
613         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
614
615 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
616
617         PR tree-optimization/17273
618         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
619         replacement is a constant.
620
621 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
622
623         * c-tree.h (enum c_typespec_keyword): New.
624         (struct c_declspecs): Adjust description of "type".  Remove
625         specbits, explicit_int_p and explicit_char_p.  Rename
626         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
627         short_p, signed_p, unsigned_p and complex_p.
628         (finish_declspecs): New.
629         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
630         typename): Call finish_declspecs.
631         * c-decl.c (finish_declspecs): New.
632         (declspecs_add_type): Check for combinations which cannot occur in
633         valid specifier lists.  Update comments.
634         (shadow_tag_warned): Remove checks done in finish_declspecs.
635         Don't report useless type name if type defaulted to int.
636         (grokdeclarator): Remove checks and actions done in
637         finish_declspecs.  Don't allow for type being NULL.  Update for
638         datastructures changes.  Initialize decl_attr.
639         (build_null_declspecs, quals_from_declspecs): Update for
640         datastructures changes.
641
642 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
643
644         * doc/extend.texi: Fix duplicated word.
645
646 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
647
648         * doc/invoke.texi: Remove stray explanation on
649         -freduce-all-givs and -fmove-all-movables.
650
651 2004-09-17  James Morrison  <phython@gcc.gnu.org>
652
653         * doc/cfg.texi: Use @smallexample.
654         * doc/md.texi: Likewise.
655         * doc/tree-ssa.texi: Likewise.
656         * doc/extend.texi: Likewise.  Use @r{} in comments.
657         * doc/trouble.texi: Use @r{} in comments.
658
659 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
660
661         * configure.ac (gcc_cv_gld_version): Handle whitespace before
662         "VERSION=".
663         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
664         * configure: Regenerate.
665
666 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
667
668         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
669         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
670         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
671         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
672         slashes in substitutions.
673         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
674
675 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
676
677         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
678         gimplify.c, lambda-code.c, optabs.c, predict.c,
679         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
680         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
681         conventions.
682
683 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
684
685         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
686         doc/extend.texi, doc/install.texi, doc/invoke.texi,
687         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
688         doc/trouble.texi: Use @option around options.
689
690 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
691
692         * Makefile.in (gen-protos.o): Depend on errors.h.
693
694 2004-09-17  Steven Bosscher  <stevenb@suse.de>
695
696         PR tree-optimization/17513
697         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
698         for successors of the entry block.
699
700 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
701
702         PR rtl-optimization/15187
703         * ifcvt.c (noce_try_cmove_arith): Exit early if total
704         insn_rtx_cost of both branches > BRANCH_COST
705
706 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
707
708         PR tree-optimization/17528
709         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
710         erase the may-alias set for a tag when merging it with
711         another.
712
713 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
714
715         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
716         for 32-bit TARGET_SHMEDIA.
717         (call_value): Likewise.
718
719 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
720
721         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
722         test apply only to TREE_STATIC and DECL_EXTERNAL.
723
724 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
725
726         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
727         * basic-block.h (get_dominated_by_region): Declare.
728         * dominance.c (get_dominated_by_region): New function.
729         * tree-cfg.c: Include cfglayout.h.
730         (tree_duplicate_bb): Duplicate also phi nodes.
731         (struct ssa_name_map_entry): New type.
732         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
733         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
734         allocate_ssa_names, rewrite_to_new_ssa_names_def,
735         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
736         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
737         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
738         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
739         rewrite_to_new_ssa_names, allocate_ssa_names,
740         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
741         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
742         (copy_loop_headers): Use tree_duplicate_sese_region.
743
744 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
745
746         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
747
748 2004-09-16 Jeff Law  <law@redhat.com>
749
750         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
751         (rewrite_block_data): Remove, no longer used.
752         (rewrite_initialize_block_local_data): Remove, no longer used.
753         (rewrite_initialize_block): Mark parameters as unused as needed.
754         Change references to the block local block_defs to be block_defs_stack.
755         Push a marker onto the block_defs_stack.
756         (ssa_rewrite_initialize_block): Similarly.
757         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
758         (ssa_register_new_def): No longer needs varray argument.  Use
759         block_defs_stack instead.  No longer handle possibly null block_defs
760         varray.  Reverse order of items we push on the stack to make it
761         easier to identify our marker.
762         (register_new_def): No longer handle possibly null block_defs
763         varray.
764         (rewrite_finalize_block): Revamp to look for markers in the global
765         block_defs_stack varray rather than wiping a block local varray.
766         Mark arguments as unused as needed.
767         (ssa_rewrite_finalize_block): Similarly.
768         (rewrite_into_ssa): Update initialization of dom walker structure
769         to reflect that we don't need block local data anymore.  Initialize
770         the block_defs_stack varray.
771         (rewrite_ssa_into_ssa): Similarly.
772         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
773         (struct dom_walk_data): Kill block_defs field.
774         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
775         (thread_across_edge): Use the global block_defs_stack instead of
776         the old block_defs varray.
777         (dom_opt_initialize_block_local_data): Update now that we don't have
778         block_defs field to check anymore.
779         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
780         (restore_currdefs_to_original_value): Use the new block_defs_stack
781         instead of a block local varray.
782         (dom_opt_finalize_block): Similarly.
783         (record_equivalencs_from_phis): Similarly.
784         (optimize_stmt, register_definitions_for_stmt): Similarly.
785
786 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
787
788         PR tree-optimization/17517
789         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
790         coalesce same-root variables without checking for abnormal PHI usage.
791
792 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
793
794         * cfgloop.h (duplicate_loop):  Add prototype.
795         * cfgloopmanip.c (duplicate_loop): Make non-static.
796         * lambda-code.c (perfect_nestify): Factor out test whether
797         we can handle this loop into separate function.
798         Call it.
799         (can_convert_to_perfect_nest): New function.
800         (replace_uses_of_x_with_y): Add modify_stmt call.
801         * tree-loop-linear.c (linear_transform_loops): Call
802         rewrite_into_loop_closed_ssa and free_df.
803
804 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
805
806         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
807         loop invariant as well.
808         (perfect_nestify): new function.
809         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
810         upper bounds, and steps.
811         Set outerinductionvar properly.
812         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
813         parameters.
814         Return NULL if we need a perfect loop and can't make one.
815         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
816         (not_interesting_stmt): New function.
817         (phi_loop_edge_uses_def): Ditto.
818         (stmt_uses_phi_result): Ditto.
819         (stmt_is_bumper_for_loop): Ditto.
820         (perfect_nest_p): Ditto.
821         (nestify_update_pending_stmts): Ditto.
822         (replace_uses_of_x_with_y): Ditto.
823         (stmt_uses_op): Ditto.
824         (perfect_nestify): Ditto.
825         * lambda-mat.c (lambda_matrix_id_p): New function.
826         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
827         * lambda.h: Update prototypes.
828         * tree-loop-linear (linear_transform_loop): Use new
829         perfect_nest_p. Detect and ignore identity transform.
830         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
831
832 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
833
834         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
835         Gather also strides of accessed data.  Pass in the data references
836         array.
837         (try_interchange_loops): Add a new heuristic for handling the temporal
838         locality.  Pass in the data references array.
839         (linear_transform_loops): Pass the data references array to
840         try_interchange_loops.
841
842 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
843
844         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
845
846 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
847
848         * doc/c-tree.texi (Classes): Remove index entries for
849         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
850
851 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
852
853         * fold-const.c (fold): Fold difference of addresses.
854         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
855         get_inner_reference.
856         * tree-ssa-loop-ivopts.c (peel_address): Removed.
857         (ptr_difference_const): Moved to fold-const.c.
858         (split_address_cost): Use get_inner_reference instead of peel_address.
859         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
860         * tree.h (ptr_difference_const): Export.
861
862         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
863         variable type to the dump.  Fix indentation.
864         (idx_find_step): Handle nonconstant array_ref_element_size and
865         array_ref_low_bound.
866         (idx_record_use): Handle array_ref_element_size and
867         array_ref_low_bound.
868         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
869         statements correctly.
870         (get_computation_at, iv_value): Do not unshare expressions here.
871         (rewrite_use_outer): Unshare the expression before it is emitted
872         to code.
873         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
874         Moved to tree.c.
875         * tree.c (unsigned_type_for, signed_type_for): Moved from
876         tree-ssa-loop-niter.c.  Use langhooks.
877         * tree.h (signed_type_for): Export.
878
879 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
880
881         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
882         prototype.
883
884 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
885
886         PR target/11572
887         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
888         Add two parameters to extra_includes.
889         (C_INCPATH_INIT): Remove.
890         * c-incpath.c (register_include_chains): Call extra_pre_includes
891         before adding the standard include directory.
892         Update call to extra_includes.
893         (!defined TARGET_EXTRA_INCLUDES): Update
894         hook_void_charptr_charptr_int and add !define
895         TARGET_EXTRA_PRE_INCLUDES.
896         (!define TARGET_EXTRA_INCLUDES): Define as
897         hook_void_charptr_charptr_int.
898         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
899         (target_c_incpath): Always declare.
900         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
901         empty function.
902         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
903         * config/darwin.h: (darwin_register_frameworks): Update for
904         the two new parameters.
905         (darwin_register_objc_includes): Add prototype.
906         (TARGET_EXTRA_PRE_INCLUDES): Define.
907         * config/darwin-c.c (darwin_register_objc_includes): New function.
908         (darwin_register_frameworks): Update for the two new parameters.
909         (target_c_incpath): Remove.
910         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
911         the compile line.
912         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
913         parameters.
914         (TARGET_EXTRA_PRE_INCLUDES): Document.
915
916         * gcc.c (spec_function): Add replace-outfile.
917         (replace_outfile_spec_function): New function.
918         * config/darwin.h (LINK_SPEC): Add replace
919         -lobjc with -lobjc-gnu if -fgnu-runtime is
920         supplied.
921         * invoke.texi (replace-outfile): Document.
922
923 2004-09-13  Jan Hubicka  <jh@suse.cz>
924
925         * predict.c (expr_expected_value, strip_builtin_expect): New function.
926         (tree_predict_by_opcode): Use it.
927         (tree_estimate_probability): Add, for now disabled,
928         strip_builtin_expect call.
929
930 2004-09-15  James E Wilson  <wilson@specifixinc.com>
931
932         PR target/17455
933         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
934         if current_function_decl is a sibcall.
935
936 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
937
938         * varasm.c (default_function_rdodata_section): Make sure to pass
939         along a decl for a link-once section.
940
941 2004-09-15  Richard Henderson  <rth@redhat.com>
942
943         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
944         warning with code disable.  Fix formatting.
945
946 2004-09-15  Steven Bosscher  <stevenb@suse.de>
947
948         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
949         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
950         after propagating into an ADDR_EXPR.
951
952 2004-09-15  Andrew Pinski  <apinski@apple.com>
953
954         PR rtl-opt/17427
955         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
956         Move it out of gcc_assert.
957
958 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
959
960         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
961         except.c, fold-const.c, function.c, langhooks.c, params.c,
962         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
963         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
964         for quoting in diagnostics going through pretty-print.c.  Use ''
965         for quoting in other diagnostic text.
966         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
967         translation.
968         * Makefile.in (langhooks.o): Update dependencies.
969         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
970         formats.
971
972 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
973
974         * configure.ac: Check for COMDAT support.  Robustify check for
975         SHF_MERGE support.
976         * configure: Regenerated.
977         * config.in: Likewise.
978         * langhooks-def.h (lhd_comdat_group): New function.
979         (LANG_HOOKS_COMDAT_GROUP): New macro.
980         (LANG_HOOKS_DECLS): Use it.
981         * langhooks.c (lhd_comdat_group): Define.
982         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
983         * output.h (named_section_flags): Make it a macro.
984         (named_section_real): New function.
985         (default_no_named_section): Add decl parameter.
986         (default_elf_asm_named_section): Likewise.
987         (default_coff_asm_named_section): Likewise.
988         (default_pe_asm_named_section): Likewise.
989         * target.h (gcc_target): Adjust type of named_section.
990         * varasm.c (named_section_flags): Rename to named_section_real.
991         Add decl parameter.
992         (default_no_named_section): Add decl parameter.
993         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
994         with the case that ASM_COMMENT_START is "@".
995         (default_coff_asm_named_section): Add decl parameter.
996         (default_pe_asm_named_section): Likewise.
997         * config/alpha/alpha.c (vms_asm_named_section): Add decl
998         parameter.
999         (unicosmk_asm_named_section): Likewise.
1000         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
1001         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
1002         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
1003         * config/cris/cris-protos.h (cris_target_asm_named_section):
1004         Likewise.
1005         * config/cris/cris.c (cris_target_asm_named_section):
1006         Likewise.
1007         * config/darwin/darwin-protos.h (darwin_asm_named_section):
1008         Likewise.
1009         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
1010         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
1011         * config/i386/i386-protos.h (i386_pe_asm_named_section):
1012         Likewise.
1013         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
1014         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
1015         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
1016         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
1017         Likewise.
1018         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
1019         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
1020         * cp/cp-tree.h (cxx_comdat_group): Declare.
1021         * cp/decl.c (cxx_comdat_group): New function.
1022
1023 2004-09-15  Jan Hubicka  <jh@suse.cz>
1024
1025         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
1026         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
1027
1028         * tree-cfg.c (remove_bb): Release SSA defs.
1029
1030 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1031
1032         * doc/tm.texi: Follow spelling conventions.
1033
1034 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
1035
1036         * tree-ssa-dom.c: Fix comment typos.
1037
1038 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
1039
1040         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
1041         include ccr.
1042         (ppc_fallback_frame_state): Save location of CR.
1043
1044 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
1045
1046         * expr.c (string_constant): Handle also read-only variables
1047         initialized to string literals.
1048
1049         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
1050         into memcpy (x, y, 1) if memcpy can be expanded inline.
1051
1052 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1053
1054         PR tree-optimization/17468
1055         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
1056         definition inside a block precede uses.
1057         * tree-tailcall.c (adjust_return_value): Emit statements in the
1058         correct order.
1059
1060 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
1061
1062         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
1063
1064 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
1065
1066         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
1067
1068 2004-09-14 Jeff Law  <law@redhat.com>
1069
1070         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
1071         (struct dom_walk_block_data): Remove avail_exprs member.
1072         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
1073         (lookup_avail_expr): No longer need to pass in address of
1074         the block local available exprs stack.  All callers changed.
1075         (simplify_cond_and_lookup_avail_expr): Similarly.
1076         (simplify_switch_and_lookup_avail_expr): Similarly.
1077         (get_eq_expr_value, record_cond): Likewise.
1078         (record_dominating_conditions): Likewise.
1079         (update_rhs_and_lookup_avail_expr): Likewise.
1080         (record_equivalences_from_stmt): Likewise.
1081         (dom_opt_initialize_block_local_data): No longer test state of
1082         block local avail_exprs.
1083         (dom_opt_initialize_block): Mark unwind point in the global
1084         avail_expr stack.
1085         (remove_expressions_from_table): Update to unwind to the
1086         most recent unwind marker in the global avail_expr stack.
1087         All callers changed.
1088         (dom_opt_finalize_block): Mark unwind point in the global
1089         avail_expr stack as needed.
1090         (record_cond): Push elements into the global avail_exprs stack.
1091
1092         * tree-dfa.c (free_df_for_stmt): No longer static.
1093         (free_df): Update comments.
1094         * tree-flow.h (free_df_for_stmt): Prototype.
1095         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
1096         call release_defs.
1097
1098 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
1099
1100         PR tree-optimization/17252
1101         * tree-ssa-alias.c (may_alias_p): Don't assume that a
1102         pointer may not point to itself when using relaxed
1103         aliasing rules.
1104
1105 2004-09-14  Richard Henderson  <rth@redhat.com>
1106
1107         PR middle-end/17397
1108         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
1109         while folding <ADDR_EXPR <INDIRECT_REF X>>.
1110
1111 2004-09-14  Andrew Pinski  <apinski@apple.com>
1112
1113         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
1114         sets of the pointers but the aliasing sets of what they point to.
1115
1116 2004-09-14  Roger Sayle  <roger@eyesopen.com>
1117
1118         PR rtl-optimization/9771
1119         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
1120         conditional compilation in init_reg_sets_1.
1121         (init_reg_sets_1): Let global_regs[i] take priority over the frame
1122         (but not stack) pointer exceptions to regs_invalidated_by_call.
1123         (globalize_reg): Globalizing a fixed register may need to update
1124         regs_invalidated_by_call.
1125
1126 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
1127
1128         PR tree-optimization/15262
1129         * tree-dfa.c (dump_variable): Also print the type of the
1130         variable.
1131         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
1132         memory tags are of conflicting alias sets but have no aliased
1133         symbols in common, add one tag to the alias set of the other.
1134         (setup_pointers_and_addressables): Remove hack to deal with
1135         programs with no aliased symbols.
1136         (may_alias_p): Don't special case aggregate types.
1137
1138 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1139
1140         PR c/15498
1141         * doc/invoke.texi (Environment Variables): Correct example locale.
1142
1143 2004-09-14  Jan Hubicka  <jh@suse.cz>
1144
1145         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
1146
1147 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
1148
1149         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
1150
1151 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1152
1153         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
1154         restrict_p.
1155         (struct c_declarator): Change u.array.quals and pointer_quals to
1156         int.  Add u.array.attrs.
1157         (quals_from_declspecs): New.
1158         * c-decl.c (quals_from_declspecs): New.
1159         (shadow_tag_warned): Give more specific message for useless type
1160         qualifiers.
1161         (build_array_declarator, set_array_declarator_inner,
1162         grokdeclarator, make_pointer_declarator, build_null_declspecs,
1163         declspecs_add_qual): Update for changed structures.
1164
1165 2004-09-14  Jeff Law  <law@redhat.com>
1166
1167         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
1168         to a global varray.
1169         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
1170         (dom_opt_initialize_block_local_data): No longer test state
1171         of stmts_to_rescan.
1172         (dom_opt_finalize_block): Update due to change in scope of
1173         stmts_to_rescan.
1174         (optimize_stmt): Similarly.
1175
1176 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1177
1178         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
1179         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
1180         comment typos.  Follow spelling conventions.
1181
1182 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1183
1184         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
1185         config/i386/predicates.md, config/sparc/sparc.c: Follow
1186         spelling conventions.
1187
1188 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1189             Steven Bosscher  <stevenb@suse.de>
1190
1191         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
1192         * basic-block.h (struct reorder_block_def): Add copy_number field.
1193         * cfgloop.h (biv_p): Declare.
1194         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
1195         * common.opt (fsplit-ivs-in-unroller): New flag.
1196         * loop-iv.c (biv_p): New function.
1197         * loop-unroll.c: Include hashtab.h and recog.h.
1198         (struct iv_to_split, struct split_ivs_info): New types.
1199         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
1200         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
1201         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
1202         insert_base_initialization, split_iv): New functions.
1203         (peel_loop_completely, unroll_loop_constant_iterations,
1204         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
1205         Use them.
1206         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
1207
1208 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1209
1210         * tree-cfg.c (thread_jumps): Update dominators correctly in
1211         case destination of threaded edge dominates its source.
1212
1213 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1214
1215         * unroll.c: Removed.
1216         * loop.h: Removed.
1217         * Makefile.in (LOOP_H, unroll.o): Removed.
1218         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
1219         dependency.
1220         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
1221         reference.
1222         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
1223         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
1224         * loop.c: Do not include loop.h.
1225         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
1226         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
1227         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
1228         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
1229         struct loop_regs, struct loop_movables, struct loop_info): Moved
1230         from loop.h.
1231         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
1232         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
1233         find_common_reg_term, loop_iterations, final_giv_value): Moved
1234         from unroll.c.
1235         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
1236         loop_dump_stream, for_each_insn_in_loop, express_from,
1237         extend_value_for_giv, loop_iv_add_mult_emit_before,
1238         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
1239         loop_insn_first_p, get_condition_for_loop,
1240         loop_insn_emit_before, loop_insn_hoist,
1241         loop_insn_sink): Made static.
1242         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
1243         reference.
1244         (strength_reduce): Do not call unroller.
1245         (record_giv): Do not initialize unrolled field.
1246         (prescan_loop): Do not set loop_info->preconditioned.
1247         * passes.c: Do not include loop.h.
1248         (rest_of_handle_loop_optimize): Do not call unroller.
1249         * predict.c: Do not include loop.h.
1250         * rtl.h (NOTE_PRECONDITIONED): Removed.
1251         * stmt.c: Do not include loop.h.
1252         * toplev.c: Do not include loop.h.
1253         (process_options): Do not handle flag_old_unroll_loops.
1254
1255         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
1256         Documentation removed.
1257         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
1258
1259 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
1260
1261         * Makefile.in (STAGE1_CHECKING): New variable.
1262         (stage1_build): Use it.
1263         * tree-ssa.c (verify_ssa): Preserve state of dominance
1264         information.
1265
1266 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
1267
1268         * config/i386/i386.c (output_fp_compare): Add generation
1269         of ftst instruction.
1270         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
1271         Use output_fp_compare () function.
1272         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
1273         (fix_truncdi_memory): Remove operands[5] copy.
1274
1275 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
1276
1277         * config/m32r/m32r.md, config/m68k/m68kelf.h,
1278         config/mcore/mcore.md, config/rs6000/linux64.h,
1279         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
1280         typos.
1281
1282 2004-09-13  James E Wilson  <wilson@specifixinc.com>
1283
1284         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
1285         * gen-protos.c: Include errors.h.
1286         (progname): Delete.
1287
1288 2004-09-14  Jan Hubicka  <jh@suse.cz>
1289
1290         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
1291         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
1292         (predict_loops): Use number_of_iterations_exit to predict
1293         number of iterations on trees.
1294
1295 2004-09-13  Dale Johannesen  <dalej@apple.com>
1296
1297         PR 17408
1298         PR 17409
1299         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
1300         objects declared extern.
1301
1302 2004-09-14  Paul Brook  <paul@codesourcery.com>
1303
1304         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
1305         HOST_WIDE_INT.
1306
1307 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
1308
1309         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
1310         Only use TYPE_BINFO for aggregates.
1311
1312 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
1313
1314         * expmed.c (synth_mult): Initialize latency.  Check cost before
1315         checking ops count.
1316
1317 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
1318
1319         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
1320         add_call_clobber_ops and add_call_read_ops.
1321         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
1322         the number of vdefs and vuses inserted based on analysis of global
1323         variables across calls.  * tree-dfa.c (find_referenced_vars):
1324         Needed to reset static var maps before each function is compiled.
1325         * cgraphunit.c:
1326         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
1327         static_vars_info,functions_to_static_vars_info,module_statics_escape,
1328         all_module_statics,searchc_env,dfs_info): New fields to support
1329         analysis of static global variables.
1330         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
1331         cgraph_reset_static_var_maps, get_global_static_vars_info,
1332         get_global_statics_not_read, get_global_statics_not_written,
1333         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
1334         check_rhs_var, check_lhs_var, get_asm_expr_operands,
1335         process_call_for_static_vars, scan_for_static_refs,
1336         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
1337         clear_static_vars_maps, cgraph_propagate_bits,
1338         cgraph_characterize_statics): New. Functions to support analysis
1339         of static global variables.
1340         (cgraph_mark_local_and_external_functions): Renamed from:
1341         (cgraph_mark_local_functions)
1342         (cgraph_expand_all_functions): Remove call to
1343         cgraph_mark_local_and_external_functions.
1344         (cgraph_optimize): Added driver to analyze static variables whose
1345         scope is within the compilation unit.  * cgraph.h (struct
1346         cgraph_local_info, GTY): Added statics_read, statics_written,
1347         local, calls_read_all, calls_write_all, for_functions_valid.
1348         (struct cgraph_node): Added next_cycle.  * cgraph.c
1349         (dump_cgraph_node): Added print routines for new fields.  *
1350         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
1351         list.
1352
1353 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
1354
1355         * c-decl.c (grokdeclarator): Correct comments about where storage
1356         class specifiers are rejected by grammar and add corresponding
1357         asserts.  Diagnose typedefs and parameters declared inline.
1358         Change warning for inline main to a pedwarn.  Only diagnose inline
1359         main if hosted.
1360         (declspecs_add_scspec): Allow duplicate "inline".
1361
1362 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
1363
1364         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
1365         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1366
1367 2004-09-13  Richard Henderson  <rth@redhat.com>
1368
1369         PR 17436
1370         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
1371         (tree_type): Replace spare with contains_placeholder_bits.
1372         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
1373         make static.  Remove seen_types list.
1374         (type_contains_placeholder_p): New.
1375
1376 2004-09-13  James E Wilson  <wilson@specifixinc.com>
1377
1378         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
1379         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
1380         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
1381         bdesc_arrays instead of mips_bdesc.
1382         (mips_init_builtins): Likewise.
1383         * config/mips/mips.h (TARGET_SB1): New.
1384         (HAVE_SQRT_P): Delete.
1385         * config/mips/mips.md (divide_condition): Support V2SF.
1386         (sqrt_condition, recip_condition): New.
1387         (div<mode>3): Use ANYF instead of SCALARF.
1388         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
1389         MODE.
1390         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
1391         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
1392         instead of MODE.
1393         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
1394         instead of SCALARF.  Use UNITMODE instead of MODE.
1395
1396 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
1397
1398         * config.in: Regenerate after removal of libbanshee.
1399
1400 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
1401
1402         PR tree-optimization/17400
1403         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
1404         coalesce partitions when one occurs in an abnormal PHI.
1405
1406 2004-09-13  Andrew Pinski  <apinski@apple.com>
1407
1408         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
1409         name to _new_size.
1410
1411 2004-09-13  Richard Henderson  <rth@redhat.com>
1412
1413         PR inline-asm/6806
1414         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
1415         (cselib_invalidate_rtx_note_stores): New.
1416         (cselib_record_sets, cselib_process_insn): Update to match.
1417         * cselib.h (cselib_invalidate_rtx): Declare.
1418         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
1419
1420 2004-09-13  Richard Henderson  <rth@redhat.com>
1421
1422         PR tree-opt/10528
1423         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
1424         after copying its argument.
1425
1426 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
1427
1428         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
1429         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
1430         in diagnostics.  Use %' for English apostrophes.
1431         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
1432         (pedwarn_c90, pedwarn_c99): Use it.
1433         * c-decl.c (lookup_label): Quote label name in diagnostic.
1434         * c-parse.in (yyprint): Use ' instead of ` for left quote.
1435         * c-typeck.c (warn_for_assignment): Likewise.
1436
1437 2004-09-13  Jan Hubicka  <jh@suse.cz>
1438
1439         * i386.c (x86_schedule): New global variable.
1440         (override_options): Disable scheduling when not supported.
1441         * i386.h (x86_schedule): Declare.
1442         (TARGET_SCHEDULE): New macro.
1443
1444 2004-09-12  Richard Henderson  <rth@redhat.com>
1445
1446         PR c++/16254
1447         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
1448         * tree.c, tree.h (has_cleanups): Remove.
1449
1450 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1451
1452         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
1453         arguments of the phi nodes correctly.
1454
1455 2004-09-12  Jan Hubicka  <jh@suse.cz>
1456
1457         * ggc-common.c (cmp_statistics): Fix sorting.
1458
1459 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
1460
1461         PR target/16795
1462         * expmed.c (expand_divmod): If cheap power of 2 divide is
1463         available, use it for negative constant as well.
1464
1465 2004-09-12  Andrew Pinski  <apinski@apple.com>
1466
1467         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
1468         size of 0.
1469
1470         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
1471
1472 2004-09-12  Richard Henderson  <rth@redhat.com>
1473
1474         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
1475         or minus one.
1476         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
1477         post-reload, and scratch NULL.
1478         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
1479         (x86_shift_adj_2): Use ix86_expand_clear.
1480         (ashldi3): Remove CMOVE expansion difference.
1481         (ashldi3_1): Remove.
1482         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
1483         add constraints for immediates.  New peephole for split-with-temp.
1484         Run splitter after peep2 pass.
1485         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
1486         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
1487         (setcc_2): Rename with *.
1488         * config/i386/predicates.md (reg_or_pm1_operand): New.
1489         (ashldi_input_operand): New.
1490
1491 2004-09-12  Richard Henderson  <rth@redhat.com
1492
1493         * print-rtl.c (print_decl_name): New.
1494         (print_mem_expr): Use it.
1495
1496 2004-09-12  Richard Henderson  <rth@redhat.com
1497
1498         PR 17186, part deux
1499         * except.c (sjlj_emit_function_exit): Fix logic locating
1500         sjlj_exit_after in final block.
1501
1502 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
1503
1504         * common.opt: Remove flags -fmove-all-movables and
1505         -freduce-all-givs.
1506         * loop-invariant.c (find_invariants_to_move):
1507         Remove all uses of flag_move_all_movables.
1508         * loop.c (move_movables): Remove all uses of
1509         flag_move_all_movables.
1510         (strength_reduce): Remove all uses of
1511         flag_reduce_all_givs.
1512         * doc/invoke.texi: Remove documentation of flags
1513         -fremove-all-movables and -freduce-all-givs.
1514
1515 2004-09-11  Roger Sayle  <roger@eyesopen.com>
1516
1517         PR middle-end/17411
1518         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
1519         change. elt->type may be a floating point type, so use fold_convert.
1520
1521 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
1522
1523         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
1524         the thing referenced as used, not the stub itself.
1525
1526 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1527
1528         * c-tree.h (enum c_storage_class): New.
1529         (struct c_declspecs): Add storage_class, inline_p and thread_p.
1530         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
1531         declarations and "auto" or "register" in file scope empty
1532         declarations.  Give more specific warnings for other cases of
1533         storage class specifiers in empty declarations.
1534         (grokdeclarator): Update for new structures.  Don't check for
1535         multiple storage classes.  Diagnose file-scope "register" if
1536         pedantic.
1537         (build_null_declspecs): Update.
1538         (declspecs_add_scspec): Update.  Diagnose multiple storage class
1539         specifiers and invalid uses of "__thread".
1540
1541 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
1542
1543         * tree.c (tree_code_size): New function, bulk of code from tree_size.
1544         (tree_size, make_node): Use it.
1545         * tree-ssa-pre.c (init_pre): Use it.
1546         * tree.h: Prototype it.
1547
1548 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1549
1550         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
1551         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
1552         redirect_immediate_use): Use PHI_DF.
1553         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
1554         (bb_for_stmt): Use PHI_BB.
1555         (get_immediate_uses): Use PHI_DF.
1556         * tree-ssa-dse.c (max_stmt_uid): New variable.
1557         (get_stmt_uid): New function.
1558         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
1559         node annotations.
1560         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
1561         (max_uid): Renamed to max_stmt_uid.
1562         (get_stmt_uid): New function.
1563         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
1564         phi node annotations.
1565         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
1566         * tree.h (PHI_BB, PHI_DF): New accessor functions.
1567         (struct tree_phi_node): Add bb and df fields.
1568
1569 2004-09-11  Richard Henderson  <rth@redhat.com>
1570
1571         PR middle-end/17416
1572         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
1573         in conflict loop.
1574
1575 2004-09-11  Jan Hubicka  <jh@suse.cz>
1576
1577         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
1578         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
1579         * i386.md (i387_cw): Add 'uninitialized' mode.
1580
1581         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
1582         (output_location): Break out from ....
1583         (branch_prob): ... here; handle gcov output on trees.
1584         * toplev.c (process_options): No longer be sorry about coverage for
1585         trees.
1586
1587 2004-09-11  Steven Bosscher  <stevenb@suse.de>
1588
1589         PR c++/17412
1590         * fold-const.c (fold): Do not try to fold the operand of a
1591         CLEANUP_POINT_EXPR if that operand does itself not have any
1592         operands.
1593
1594         PR middle-end/17417
1595         * langhooks.c (lhd_decl_printable_name): Make sure that this
1596         function is called with is a decl node that has an identifier.
1597         * tree-pretty-print.c (dump_function_name): New function to
1598         wrap PRINT_FUNCTION_NAME and dump_decl_name.
1599         (print_call_name): Use it.
1600
1601 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
1602
1603         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
1604         "config.h" if not.
1605
1606 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
1607
1608         * tree-ssa-alias.c (collect_points_to_info_r): Handle
1609         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
1610         to OFFSET.
1611
1612 2004-09-11  Richard Henderson  <rth@redhat.com>
1613
1614         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
1615         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
1616         operand of the ADDR_EXPR.
1617         (expand_expr_real_1): Update to match.
1618
1619 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
1620
1621         PR target/17277
1622         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
1623         choose 64-bit version.
1624
1625 2004-09-11  Richard Henderson  <rth@redhat.com>
1626
1627         PR c/17396
1628         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
1629
1630 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
1631
1632         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
1633         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
1634         Insert @: after i.e. or e.g.
1635
1636 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
1637
1638         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
1639         D.xxx rather than <Dxxx>.
1640
1641 2004-09-10  Adam Nemet  <anemet@lnxw.com>
1642
1643         * configure.ac (AC_MSG_CHECKING(what linker to use)):
1644         in_tree_ld_is_elf should be true for LynxOS.
1645         * configure: Regenerate.
1646
1647 2004-09-10  Adam Nemet  <anemet@lnxw.com>
1648
1649         * Makefile.in (all.cross): Add srcextra.
1650
1651 2004-09-10  Roger Sayle  <roger@eyesopen.com>
1652
1653         PR middle-end/17024
1654         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
1655         floating point comparison operators.  Change aborts to gcc_asserts.
1656
1657 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
1658
1659         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
1660
1661 2004-09-10  James E Wilson  <wilson@specifixinc.com>
1662
1663         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
1664         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
1665
1666         * convert.c (convert_to_vector): Replace recursive call with
1667         error_mark_node.
1668
1669         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
1670         Add integer argument named constant.  Use const_tiny_rtx instead of
1671         CONST0_RTX.
1672         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
1673         and CONST1_RTX.
1674         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
1675         vector types.
1676         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
1677         of gen_rtx_raw_CONST_VECTOR.
1678
1679 2004-09-10  Eric Christopher  <echristo@redhat.com>
1680
1681         PR c/16046
1682         * c-parse.in (attribute): Add NULL_TREE for error case
1683         for error recovery.
1684
1685 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
1686
1687         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
1688         (extract_interface_info): Delete prototype.
1689         * c-decl.c (extract_interface_info): Delete stub.
1690         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
1691         it's not already been done ...
1692         (init_c_lex): ... not here.
1693         (fe_file_change): Don't call extract_interface_info.
1694
1695 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
1696
1697         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
1698         typedef_p and typedef_signed_p.
1699         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
1700         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
1701         Check typedef_p and typedef_signed_p, not typedef_decl.
1702         (grokfield): Check typedef_p, not typedef_decl.
1703         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
1704         not typedef_decl.
1705         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
1706         typedef_decl.
1707
1708 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1709
1710         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
1711
1712 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
1713
1714         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
1715         temporary variables.
1716
1717         * dbxout.c (dbxout_block): Update for
1718         current_function_func_begin_label a string.
1719         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
1720         * except.c (dw2_output_call_site_table): Likewise.
1721         * toplev.c (current_function_func_begin_label): Likewise.
1722         * tree.h (current_function_func_begin_label): Likewise.
1723         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
1724
1725         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
1726         loop.
1727
1728         * config/darwin.c: Include target.h.
1729         (struct machopic_indirection): Make ptr_name a string.
1730         (machopic_indirection_hash): Update for ptr_name a string.
1731         (machopic_indirection_eq): Likewise.
1732         (machopic_indirection_name): Likewise.
1733         (machopic_output_indirection): Likewise.
1734         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
1735         string.  Don't expect stub names to be in the identifier hash table.
1736         Do call strip_name_encoding before looking up entry in ID hash table.
1737         * config/t-darwin (darwin.o): Add target.h to dependencies.
1738
1739         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
1740         of fprintf for register names.
1741
1742         * output.h (unlikely_section_label): Delete declaration.
1743         (unlikely_text_section_name): Likewise.
1744         * varasm.c (unlikely_section_label_printed): Make static.
1745         (unlikely_section_label): Likewise.
1746         (unlikely_text_section_name): Likewise.
1747         (assemble_start_function): Use reconcat.
1748
1749         * rtl.def (REG): Add comment to describe third field.
1750
1751 2004-09-10  Andrew Pinski  <apinski@apple.com>
1752
1753         * config/darwin.c (machopic_mcount_stub_name): Call
1754         machopic_indirection_name instead of making the string
1755         ourselves.
1756
1757 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
1758
1759         Revert
1760
1761         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
1762
1763             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
1764             memory tag is call clobbered, so are its aliases.
1765             (group_aliases): When two memory tags being grouped, if one is
1766             call clobbered, so are the other and its aliases.
1767             (add_may_alias): Remove call-clobbering stuff.
1768             (replace_may_alias): Likewise.
1769             (merge_pointed_to_info): Merge pt_global_mem
1770
1771 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1772
1773         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
1774         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
1775         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
1776         tree-scalar-evolution.c, tree-ssa-copyrename.c,
1777         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
1778
1779 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
1780
1781         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
1782         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
1783         pair.  Remove match_dup from inputs.  Remove masaccs handling.
1784         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
1785         (masaccs, mdasaccs): Turn into define_insns.
1786
1787 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
1788
1789         * tree-tailcall.c (process_assignment): Only do accumulator transforms
1790         for floating-point types if flag_unsafe_math_optimizations.
1791
1792 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1793
1794         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
1795         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
1796         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
1797         config/h8300/h8300.md, config/i386/gmm_malloc.h,
1798         config/ia64/ia64.md, config/ip2k/libgcc.S,
1799         config/mips/mips-ps-3d.md, config/mips/mips.c,
1800         config/rs6000/rs6000.c, config/s390/s390.c,
1801         config/sh/symbian.c: Fix comment typos.
1802
1803 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
1804
1805         * config/s390/s390.c (s390_emit_prologue): Added missing
1806         "{}" brackets.
1807
1808 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1809
1810         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
1811         typos.  Follow spelling conventions.
1812
1813 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
1814
1815         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
1816         in diagnostic.  Don't dereference NULL TYPE_NAME.
1817
1818 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1819
1820         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
1821         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
1822         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
1823         value-prof.c: Fix comment typos.  Follow spelling conventions.
1824
1825 2004-09-10  Jan Hubicka  <jh@suse.cz>
1826
1827         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
1828         * tree-split_edge.c (tree_split_edge): Likewise.
1829         (thread_jumps): Likewise.
1830
1831 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
1832
1833         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
1834         typos.
1835
1836 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
1837
1838         * cgraph.h (cgraph_dump_file): Do not declare.
1839         * cgraphunit.c (cgraph_dump_file): Declare as static.
1840         (init_cgraph): New.
1841         * toplev.c (cgraph_dump_file): Do not declare.
1842         (compile_file): Call init_cgraph.
1843         * tree-dump.c (dump_files): Add IPA dump file, remove
1844         XML dump of call graph.
1845         (get_dump_file_name): Support IPA dump file naming scheme.
1846         * tree.h (enum tree_dump_index): Add IPA dump file, remove
1847         XML dump of call graph.
1848         * doc/invoke.texi (Debugging Options): Document the new options.
1849
1850 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
1851
1852         * doc/extend.texi: Document the FR-V built-in functions.
1853
1854 2004-09-09  James E Wilson  <wilson@specifixinc.com>
1855
1856         * doc/sourcebuild.texi: Delete libbanshee reference.
1857
1858 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
1859
1860         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
1861
1862 2004-09-09  James E Wilson  <wilson@specifixinc.com>
1863
1864         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
1865         before calling vector_types_convertible_p.
1866         (digest_init): Check that inside_init has VECTOR_TYPE before calling
1867         vector_types_convertible_p.  Don't give another error if
1868         convert_for_assignment returns error_mark_node.
1869
1870 2004-09-09  Roger Sayle  <roger@eyesopen.com>
1871
1872         PR middle-end/17055
1873         * fold-const.c (build_zero_vector): New function to construct a
1874         vector (either floating point or integer) of zeros.
1875         (fold_convert): Internally, enable conversions of integer zero
1876         to arbitrary vector types, using the new build_zero_vector.
1877
1878 2004-09-09  Roger Sayle  <roger@eyesopen.com>
1879
1880         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
1881         expand a left shift by an immediate constant as either an ashl or
1882         a sequence of additions.
1883         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
1884         instead of calling gen_ashlsi3 with a constant directly.
1885
1886 2004-09-09  Roger Sayle  <roger@eyesopen.com>
1887
1888         * config/i386/i386.c (ix86_split_long_move): When optimizing for
1889         size, and the low and high parts of a DImode constant are equal,
1890         copy one register to another instead of loading the same immediate
1891         value twice.
1892
1893 2004-09-09  Richard Henderson  <rth@redhat.com>
1894
1895         PR middle-end/17367
1896         * function.c (assign_parm_setup_block): Only put PARALLELs into
1897         a register if use_register_for_decl.
1898
1899 2004-09-09  Eric Christopher  <echristo@redhat.com>
1900
1901         * ra-colorize.c (reset_lists): Move variable declaration inside
1902         ENABLE_CHECKING to avoid unused variable warnings when
1903         not --enable-checking.
1904         (check_colors): Ditto.
1905
1906 2004-09-09  Mike Stump  <mrs@apple.com>
1907
1908         * version.c (version_string): Bump to 4.0.0.
1909         * doc/include/gcc-common.texi (version-GCC): Likewise.
1910
1911 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
1912
1913         * doc/extend.texi (nothrow attribute): The attribute is not
1914         implemented in 3.2 and earlier.
1915
1916 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
1917
1918         * genrecog.c (compute_predicate_codes): Use op0_codes
1919         instead of codes.
1920
1921 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1922
1923         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
1924         implementation changes.
1925
1926 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1927
1928         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
1929         a PARALLEL instead of a SET due to added clobbers.
1930
1931 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
1932
1933         * reload.c (find_reloads_address): Pass correct operand to
1934         maybe_memory_address_p.
1935
1936 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
1937
1938         * Makefile.in: Remove libbanshee, tree-alias-*.
1939         Remove tree-alias-common.h dependencies.
1940         * common.opt: Remove -ftree-points-to.
1941         * configure.ac: Remove libbanshee.
1942         * flags.h: Remove pta_type, flag_tree_points_to.
1943         * gengtype.c (open_base_files): Remove tree-alias-type.h.
1944         * opts.c (OPT_ftree_points_to): Remove.
1945         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
1946         * tree-dfa.c: Remove tree-alias-common.h
1947         * tree-into-ssa.c: Ditto.
1948         * tree-outof-ssa.c: Ditto.
1949         * tree-ssa-copyrename.c: Ditto.
1950         * tree-ssa-live.c: Ditto.
1951         * tree-optimize.c: Ditto.
1952         * tree-ssa.c: Ditto.
1953         Remove pass_build_pta, pass_del_pta.
1954         * tree-pass.h: Ditto.
1955         * tree-ssa-alias.c: Remove tree-alias-common.h.
1956         (struct alias_stats_d): Remove pta_queries, pta_resolved.
1957         (pass_may_alias): Remove PROP_pta requirement.
1958         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
1959         (get_tmt_for): Ditto.
1960         (dump_alias_stats): Ditto.
1961         * doc/passes.texi: Remove blurb about points-to analysis.
1962         * fortran/Make-lang.in: Remove tree-alias-*.o.
1963
1964 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
1965
1966         * genattrtab.c (write_insn_cases): New function, split out from
1967         write_attr_case.  Correctly handle define_peepholes when printing
1968         the instruction name.
1969         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
1970
1971 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
1972
1973         PR target/17377
1974         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
1975         * config/cris/cris.c (cris_return_address_on_stack): New function.
1976         * config/cris/cris.md ("return"): For location of return address,
1977         also check cris_return_address_on_stack.
1978
1979 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
1980
1981         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
1982         calling phi_ssa_name_p.
1983
1984 2004-09-09  Richard Henderson  <rth@redhat.com>
1985
1986         PR c/17322
1987         * c-typeck.c (valid_compound_expr_initializer): Use only
1988         initializer_constant_valid_p, and not TREE_CONSTANT.
1989         (digest_init): Likewise.
1990         (output_init_element): Likewise.
1991
1992 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
1993
1994         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
1995         live_out_1, prune_hardregs_for_mode, init_one_web_common,
1996         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
1997         record_conflict, compare_and_free_webs, init_webs_defs_uses,
1998         parts_to_webs_1, parts_to_webs, reset_conflicts,
1999         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
2000         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
2001         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
2002         put_move, remove_move, combine, select_spill, colorize_one_web,
2003         try_recolor_web, insert_coalesced_conflicts, check_colors,
2004         break_precolored_alias, restore_conflicts_from_coalesce,
2005         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
2006         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
2007         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
2008         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
2009         check_df): Likewise.
2010         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
2011         real_arithmetic, real_compare, real_exponent, real_ldexp,
2012         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
2013         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
2014         real_digit, real_nan, real_maxval, round_for_format, real_convert,
2015         real_to_target, real_from_target, real_hash, encode_ieee_single,
2016         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
2017         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
2018         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
2019         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
2020         extract_insn, peep2_next_insn, peep2_reg_dead_p,
2021         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
2022         if_test_bypass_p): Likewise.
2023         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
2024         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
2025         emit_swap_insn, swap_to_top, move_for_stack_reg,
2026         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
2027         compensate_edge, convert_regs_1): Likewise.
2028         * regclass.c (init_reg_sets, init_reg_sets_1,
2029         memory_move_secondary_cost): Likewise.
2030         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
2031         Likewise.
2032         * reload.c (push_secondary_reload, find_valid_class, push_reload,
2033         operands_match_p, decompose, immune_p, find_reloads,
2034         find_reloads_toplev, find_reloads_address_1, subst_reloads,
2035         copy_replacements, refers_to_regno_for_reload_p,
2036         reg_overlap_mentioned_for_reload_p): Likewise.
2037         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
2038         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
2039         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
2040         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
2041         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
2042         do_output_reload, fixup_abnormal_edges): Likewise.
2043         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
2044         fill_slots_from_thread, relax_delay_slots): Likewise.
2045         * resource.c (mark_referenced_resources, mark_set_resources):
2046         Likewise.
2047         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
2048         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
2049         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
2050         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
2051         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
2052         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
2053         * rtlhooks.c (gen_lowpart_general): Likewise.
2054         * sbitmap.c (sbitmap_difference): Likewise.
2055         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
2056         sched_analyze, add_forward_dependence): Likewise.
2057         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
2058         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
2059         schedule_insns): Likewise.
2060         * sched-vis.c (print_pattern): Likewise.
2061         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
2062         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
2063         simplify_const_relational_operation, simplify_ternary_operation,
2064         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
2065         Likewise.
2066         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
2067         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
2068         resolve_operand_name_1, expand_return, expand_decl,
2069         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
2070         * stor-layout.c (put_pending_size, smallest_mode_for_size,
2071         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
2072         set_sizetype, get_mode_bounds): Likewise.
2073
2074 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
2075
2076         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
2077         * config/arm/pecoff.h, config/i386/beos-elf.h
2078         * config/i386/cygming.h, config/i386/i386-interix.h:
2079         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
2080         comment cloned from manual.
2081         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
2082
2083 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
2084
2085         * builtins.c (build_va_arg_indirect_ref): New function.
2086         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
2087         build_fold_indirect_ref.
2088         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
2089         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
2090         * tree.h: Declare new function.
2091
2092 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2093
2094         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
2095         dumping for development builds.
2096         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
2097         development builds only.
2098         * genattrtab.c (write_eligible_delay): Fix typo in previous
2099         commit.
2100         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
2101         gcc_assert.
2102
2103 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2104
2105         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
2106         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
2107         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
2108         hoist_code, extract_mentioned_regs_helper, compute_store_table,
2109         insert_store): Use gcc_assert and gcc_unreachable.
2110         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
2111         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
2112         ggc_record_overhead): Likewise.
2113         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
2114         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
2115         ggc_pop_context, clear_marks, validate_free_objects,
2116         ggc_pch_read): Likewise.
2117         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
2118         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
2119         ggc_push_context, check_cookies, ggc_collect,
2120         ggc_print_statistics): Likewise.
2121         * gimple-low.c (lower_function_body, lower_stmt,
2122         lower_bind_expr): Likewise.
2123         * gimplify.c (gimple_tree_eq, push_gimplify_context,
2124         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
2125         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
2126         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
2127         gimplify_case_label_expr, gimplify_exit_block_expr,
2128         canonicalize_component_ref, gimplify_compound_lval,
2129         gimplify_self_mod_expr, gimplify_call_expr,
2130         gimplify_init_ctor_eval, gimplify_init_constructor,
2131         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
2132         gimplify_expr, check_pointer_types_r,
2133         force_gimple_operand): Likewise.
2134         * global.c (global_alloc, build_insn_chain): Likewise.
2135         * graph.c (clean_graph_dump_file,
2136         finish_graph_dump_file): Likewise.
2137         gcov-io.c (gcov_open): Use GCOV_CHECK.
2138
2139 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
2140
2141         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
2142
2143 2004-09-09  Jan Hubicka  <jh@suse.cz>
2144
2145         middle-end/17128
2146         * tree-inline.c (expand_call_inline): Make overactive sanity check
2147         happy.
2148
2149 2004-09-09  Jan Hubicka  <jh@suse.cz>
2150
2151         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
2152         VIEW_CONVERT_EXPR.
2153
2154 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2155
2156         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
2157         (gengtype.o): Depend on errors.h.
2158         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
2159         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
2160         attr_alt_subset_p, attr_alt_subset_of_compl_p,
2161         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
2162         write_test_expr, write_attr_value, write_eligible_delay,
2163         make_internal_attr, make_numeric_value): Likewise.
2164         * genautomata.c (regexp_name, get_str_vect,
2165         gen_presence_absence_set, automaton_decl_hash,
2166         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
2167         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
2168         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
2169         test_unit_reserv, it_is_empty_reserv_sets,
2170         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
2171         reserv_sets_and, output_cycle_reservs, get_free_state,
2172         intersected_state_reservs_p, states_union, remove_arc,
2173         copy_insn_regexp, transform_1, transform_2, transform_3,
2174         regexp_transform_func, store_alt_unit_usage,
2175         check_regexp_units_distribution, process_seq_for_forming_states,
2176         process_alts_for_forming_states, make_automaton,
2177         form_arcs_marked_by_insn, create_composed_state,
2178         set_out_arc_insns_equiv_num, partition_equiv_class,
2179         process_insn_equiv_class, set_insn_equiv_classes,
2180         units_to_automata_heuristic_distr, form_regexp,
2181         longest_path_length, output_dfa_max_issue_rate, add_vect,
2182         out_state_arcs_num, add_vect_el, output_trans_table,
2183         output_state_alts_table, output_dead_lock_vect,
2184         output_max_insn_queue_index_def,
2185         output_min_insn_conflict_delay_func,
2186         output_internal_insn_latency_func, output_print_reservation_func,
2187         output_cpu_unit_reservation_p, output_state_arcs,
2188         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
2189         make_default_insn_latency_attr,
2190         form_important_insn_automata_lists): Likewise.
2191         * genemit.c (gen_exp, output_add_clobbers,
2192         output_added_clobbers_hard_reg_p): Likewise.
2193         * genextract.c (print_path, main): Likewise.
2194         * genflags.c (gen_macro): Likewise.
2195         * gengenrtl.c: Include errors.h
2196         (type_from_format, accessor_from_format): Likewise.
2197         * gengtype.c (get_file_basename, output_mangled_typename,
2198         walk_type, write_types_process_field,
2199         write_types_local_process_field): Likewise.
2200         * genmodes.c (complete_mode): Likewise.
2201         * genopinit.c (gen_insn): Likewise.
2202         * genoutput.c (output_insn_data, check_constraint_len,
2203         constraint_len): Likewise.
2204         * genpreds.c (add_mode_tests):Likewise.
2205         * gen-protos.c (add_hash): Likewise.
2206         * genrecog.c (find_operand, find_matching_operand,
2207         validate_pattern, add_to_sequence, maybe_both_true,
2208         nodes_identical_1, merge_trees, write_switch, write_cond,
2209         write_action, is_unconditional, make_insn_sequence,
2210         debug_decision_2): Likewise.
2211         * gensupport.c (is_predicable, collect_insn_data,
2212         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
2213
2214 2004-09-09  Jan Hubicka  <jh@suse.cz>
2215
2216         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
2217         * cfgbuild.c (compute_outgoing_frequencies): When probability is
2218         missing, guess it.
2219         (find_many_sub_basic_blocks): Do update profile only when it is
2220         present.
2221         * predict.c (set_even_probabilities): Break out from ...
2222         (combine_predictions_for_insn): ... here; deal with
2223         !can_predict_insn_p insns.
2224         (combine_predictions_for_bb): Use set_even_probabilities.
2225         (bb_estimate_probability_locally): Break out from ....
2226         (estimate_probability): ... here.
2227         (guess_outgoing_edge_probabilities): New entry point.
2228
2229 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
2230
2231         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
2232         handle_braces, process_brace_body, main, used_arg,
2233         set_multilib_dir, print_multilib_info): Use fatal, not abort.
2234
2235         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
2236
2237         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
2238         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
2239         Morgan's theorem in last checkin.
2240
2241 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2242             Nathan Sidwell  <nathan@codesourcery.com>
2243
2244         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
2245         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
2246         * timevar.c (timevar_push, timevar_pop, timevar_start,
2247         timevar_stop): Likewise.
2248         * toplev.c (default_pch_valid_p): Likewise.
2249         * tracer.c (tail_duplicate): Likewise.
2250         * tree-alias-common.c (get_alias_var_decl,
2251         get_values_from_constructor, create_alias_var, delete_alias_vars,
2252         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
2253         Likewise.
2254         * tree.c (tree_size, make_node_stat, copy_node_stat,
2255         build_int_cst_wide, integer_all_onesp, list_length, chainon,
2256         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
2257         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
2258         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
2259         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
2260         build_method_type_directly, decl_type_context, get_callee_fndecl,
2261         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
2262         tree_fold_gcd): Likewise.
2263         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
2264         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
2265         cleanup_control_expr_graph, find_taken_edge,
2266         find_taken_edge_switch_expr, phi_alternatives_equal,
2267         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
2268         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
2269         tree_split_edge, tree_verify_flow_info, thread_jumps,
2270         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
2271         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
2272         chrec_fold_multiply_poly_poly): Likewise.
2273         * tree-complex.c (extract_component, expand_complex_division,
2274         expand_complex_comparison, expand_complex_operations_1,
2275         build_replicated_const, expand_vector_operations_1): Likewise.
2276         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
2277         build_classic_dir_vector): Likewise.
2278         * tree-dfa.c (compute_immediate_uses_for_phi,
2279         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
2280         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
2281         * tree-dump.c (dequeue_and_dump): Likewise.
2282         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
2283         record_in_finally_tree, replace_goto_queue_1,
2284         maybe_record_in_goto_queue, verify_norecord_switch_expr,
2285         do_return_redirection): Likewise.
2286         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
2287         add_to_dst_predicate_list, find_phi_replacement_condition,
2288         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
2289         Likewise.
2290         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
2291         initialize_inlined_parameters, declare_return_variable,
2292         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
2293         optimize_inline_calls, copy_tree_r): Likewise.
2294         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
2295         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
2296         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
2297         tsi_split_statement_list_after, tsi_split_statement_list_before):
2298         Likewise.
2299         * tree-mudflap.c (mf_varname_tree): Likewise.
2300         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
2301         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
2302         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2303         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
2304         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
2305         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
2306         Likewise.
2307         * tree-phinodes.c (resize_phi_node, add_phi_arg,
2308         remove_all_phi_nodes_for): Likewise.
2309         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
2310         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
2311         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
2312         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
2313         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
2314         generate_one_element_ref, generate_element_copy,
2315         generate_element_zero, scalarize_copy, scalarize_init,
2316         scalarize_ldst): Likewise.
2317         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
2318         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
2319         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
2320         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
2321         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
2322         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
2323         widen_bitfield, ccp_fold_builtin): Likewise.
2324         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
2325         replace_exp_1, propagate_tree_value): Likewise.
2326         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
2327         * tree-ssa-dce.c (set_control_dependence_map_bit,
2328         find_control_dependence, find_pdom, mark_operand_necessary,
2329         mark_stmt_if_obviously_necessary,
2330         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
2331         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
2332         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
2333         eliminate_redundant_computations, avail_expr_eq): Likewise.
2334         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
2335         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
2336         duplicate_blocks): Likewise.
2337         * tree-ssa-loop-im.c (for_each_index, set_level,
2338         is_call_clobbered_ref): Likewise.
2339         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
2340         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
2341         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
2342         peel_address, ptr_difference_cost, may_replace_final_value,
2343         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
2344         rewrite_use, rewrite_uses): Likewise.
2345         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
2346         check_loop_closed_ssa_use): Likewise.
2347         * tree-ssanames.c (make_ssa_name): Likewise.
2348         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
2349         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
2350         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
2351         get_indirect_ref_operands, add_stmt_operand): Likewise.
2352         * tree-ssa-pre.c (value_exists_in_set_bitmap,
2353         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
2354         phi_translate, valid_in_set, compute_antic,
2355         find_or_generate_expression, create_expression_by_pieces, insert_aux,
2356         create_value_expr_from, eliminate): Likewise.
2357         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
2358         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
2359         Likewise.
2360         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
2361         eliminate_tail_call): Likewise.
2362         * tree-vectorizer.c (vect_create_index_for_array_ref,
2363         vect_align_data_ref, vect_create_data_ref,
2364         vect_create_destination_var, vect_get_vec_def_for_operand,
2365         vect_finish_stmt_generation, vect_transform_stmt,
2366         vect_transform_loop_bound, vect_transform_loop,
2367         vect_analyze_operations): Likewise.
2368         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
2369         Likewise.
2370         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
2371         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
2372         bsi_after_labels, bsi_last): Likewise.
2373         * tree-ssa-live.c (var_union, change_partition_var,
2374         create_ssa_var_map, calculate_live_on_entry, root_var_init,
2375         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
2376         Likewise.
2377         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
2378         tpa_find_tree): Likewise.
2379         (register_ssa_partition_check): Declare.
2380         (register_ssa_partition): use it.
2381         * tree-ssa-live.c: Include errors.h.
2382         (register_ssa_partition_check): New.
2383         * tree-ssa-operands.c: Include errors.h.
2384         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
2385
2386 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
2387             Catherine Moore  <clm@redhat.com>
2388
2389         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
2390         (FRV_CPU_FR405): New processor enums.
2391         (frv_issue_rate, frv_acc_group): Declare.
2392         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
2393         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
2394         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
2395         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
2396         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
2397         handled by CPP_SPEC.
2398         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
2399         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
2400         (ACC_MASK): New macro.
2401         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
2402         (TARGET_MEDIA_FR450): New macro.
2403         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
2404         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
2405         (LABEL_ALIGN_AFTER_BARRIER): Define.
2406         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
2407         (IACC_FIRST, IACC_LAST): New pair of SPRs.
2408         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
2409         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
2410         (REGISTER_NAMES): Add entries for new registers.
2411         (REG_CLASS_CONTENTS): Update for new register ranges.
2412         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
2413         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
2414         (PACKING_FLAG_USED_P): Delete.
2415         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
2416         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
2417         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
2418         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
2419         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
2420         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
2421         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
2422         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
2423         (CPU_UNITS_QUERY): Define to 1.
2424         * config/frv/frv.c: Include gt-frv.h
2425         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
2426         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
2427         (frv_insn_group): New enumeration.
2428         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
2429         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
2430         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
2431         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
2432         gap left by REGSTATE_LIVE.
2433         (regstate_t): New typedef.
2434         (TARGET_MACHINE_DEPENDENT_REORG): Define.
2435         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
2436         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
2437         Initialize frv_unit_codes[] and frv_type_to_unit[].
2438         (frv_conditional_register_usage): Remove redundant fixing of
2439         accumulator registers.
2440         (frv_insn_packing_flag): Update specification.
2441         (frv_function_prologue): Don't set frv_insn_packing_flag here.
2442         Zero out frv_nops[].
2443         (frv_expand_epilogue): Remove comments about the no-longer-present
2444         SIBCALL_P argument.
2445         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
2446         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
2447         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
2448         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
2449         packing is disabled and if INSN can only issue to M1.
2450         (call_operand): Check TARGET_LONG_CALLS.
2451         (acc_operand, even_acc_operand, quad_acc_operand)
2452         (accg_operand): Simplify.  Don't accept pseudo registers.
2453         (output_move_single): Handle SPR<-zero moves.
2454         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
2455         (frv_registers_update, frv_registers_used_p): Delete.
2456         (frv_registers_set_p): Delete.
2457         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
2458         (frv_issues_to_branch_unit_p): New function.
2459         (frv_packet): New structure.
2460         (frv_cond_flags, frv_regstate_conflict_p): New functions.
2461         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
2462         (frv_registers_update_1, frv_registers_update): New functions.
2463         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
2464         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
2465         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
2466         (frv_sort_insn_group, frv_reorder_packet): New functions.
2467         (frv_pack_insns): Use frv_reorder_packet.
2468         (frv_packet_address): New variable.
2469         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
2470         (frv_register_nop, frv_reorg): New functions.
2471         (bdesc_1arg): Add __SCUTSS.
2472         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
2473         __SUBSS, __SLASS and __SCAN.
2474         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
2475         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
2476         (frv_init_builtins): Register the above builtins.
2477         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
2478         registers.  Turn the referenced accumulators into global registers.
2479         (frv_read_iacc_argument): New function.
2480         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
2481         (frv_split_iacc_move): New function.
2482         (frv_expand_builtin): Handle the new builtins.
2483         * config/frv/frv.md: Replace old schedulers with new order-independent
2484         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
2485         packing algorithm.
2486         (cpu): Add fr550, fr450 and fr405.
2487         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
2488         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
2489         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
2490         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
2491         (fnop, mnop): New patterns.
2492         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
2493         New constants.
2494         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
2495         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
2496         registers.
2497         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
2498         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
2499         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
2500         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
2501         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
2502         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
2503         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
2504         (frv_prefetch0, frv_prefetch): New patterns.
2505         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
2506         -mcpu=simple.  Add -mcpu=fr550.
2507         (MULTILIB_DIRNAMES): Update accordingly.
2508         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
2509         -mcpu=fr450.
2510         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
2511         -mlong-calls and -malign-labels options for FR-V.
2512
2513 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
2514
2515         PR c/8420
2516         * c-tree.h (struct c_declspecs): New.
2517         (struct c_declarator, struct c_type_name, struct c_parm): Update
2518         element types.
2519         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
2520         start_function, start_decl, build_c_parm,
2521         make_pointer_declarator): Update prototypes.
2522         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
2523         declspecs_add_scspec, declspecs_add_attrs): New.
2524         (split_specs_attrs): Remove.
2525         * c-parse.in (%union): Add dsptype.
2526         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
2527         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
2528         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
2529         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
2530         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
2531         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
2532         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
2533         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
2534         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
2535         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
2536         maybe_type_quals_attrs): Change to dsptype.
2537         (struct c_declspec_stack): New.
2538         (current_declspecs, declspec_stack): Change type.
2539         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
2540         structures.
2541         (extdefs): Likewise.
2542         (setspecs): Likewise.
2543         (fndef): Use current_declspecs for empty declspecs list.
2544         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
2545         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
2546         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
2547         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
2548         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
2549         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
2550         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
2551         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
2552         structures and helper functions.  Update comments.
2553         (typespec_nonattr): Correct comment.
2554         (maybe_type_quals_attrs, typename): Update to new structures.
2555         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
2556         shadow_tag, shadow_tag_warned, start_function, start_decl,
2557         build_c_parm, make_pointer_declarator,
2558         set_array_declarator_inner, groktypename): Update to new
2559         structures.
2560         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
2561         declspecs_add_scspec, declspecs_add_attrs): New.
2562         (split_specs_attrs): Remove.
2563         (shadow_tag_warned): Make warning for useless type names a
2564         pedwarn.  Give hard error for long, short, signed, unsigned or
2565         _Complex used with struct, union or enum in empty declaration.
2566         Make found_tag a bool.
2567         (grokdeclarator): Remove checks now done at parse time.
2568
2569 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
2570
2571         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
2572         c_declarator, struct c_type_name, struct c_parm): New.
2573         (build_array_declarator, set_array_declarator_inner,
2574         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
2575         start_function, start_decl, build_c_parm, build_attrs_declarator,
2576         build_function_declarator, make_pointer_declarator, c_cast_expr,
2577         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
2578         (build_id_declarator): New.
2579         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
2580         structures.
2581         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
2582         ARG_INFO_OTHERS): Remove.
2583         (build_id_declarator): New.
2584         (build_array_declarator, set_array_declarator_inner, groktypename,
2585         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
2586         grokfield, start_function, store_parm_decls_newstyle,
2587         store_parm_decls_oldstyle, store_parm_decls,
2588         build_c_parm, build_attrs_declarator, build_function_declarator,
2589         make_pointer_declarator, grokdeclarator): Update to new
2590         structures.
2591         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
2592         parmtype.
2593         (declarator, notype_declarator, after_type_declarator,
2594         parm_declarator, parm_declarator_starttypename,
2595         parm_declarator_nostarttypename, array_declarator, typename,
2596         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
2597         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
2598         parmlist_1, parmlist_2, parmlist_or_identifiers,
2599         parmlist_or_identifiers_1): Use these types.
2600         (primary, after_type_declarator, parm_declarator_starttypename,
2601         notype_declarator, component_decl, component_declarator,
2602         component_notype_declarator, typename, absdcl,
2603         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
2604         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
2605
2606 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
2607
2608         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
2609         in_typeof, record_maybe_used_decl, pop_maybe_used,
2610         c_expr_sizeof_expr, c_expr_sizeof_type): New.
2611         * c-decl.c (parser_obstack): New.
2612         (c_init_decl_processing): Initialize parser_obstack.
2613         (c_write_global_declarations_1): Check for used but undefined
2614         static functions.
2615         * c-parse.in (%union): Add otype.
2616         (save_obstack_position): New.
2617         (extdefs): Use it.
2618         (unary_expr): Update in_sizeof and in_alignof.  Use
2619         c_expr_sizeof_expr and c_expr_sizeof_type.
2620         (sizeof): Update in_sizeof.
2621         (alignof): Update in_alignof.
2622         (typeof): Update in_typeof.
2623         (typespec_nonreserved_nonattr): Call pop_maybe_used.
2624         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
2625         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
2626         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
2627         (build_external_ref): Set C_DECL_USED or call
2628         record_maybe_used_decl if appropriate.
2629         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
2630
2631 2004-09-08  Eric Christopher  <echristo@redhat.com>
2632
2633         * builtins.c: Fix prototype for fold_builtin_atan.
2634
2635 2004-09-08  Eric Christopher  <echristo@redhat.com>
2636
2637         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
2638         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
2639         fold_builtin_atan): New functions. Migrate function bodies...
2640         (fold_builtin_1): ... from here.
2641
2642 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
2643
2644         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
2645         save_size.
2646
2647 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
2648
2649         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
2650         * config/rs6000/power5.md (power5-lmul): Same.
2651
2652 2004-09-08  Richard Henderson  <rth@redhat.com>
2653
2654         PR rtl-opt/17186
2655         * function.c (expand_function_end): Have fall-off-the-end
2656         return path jump around return register setup.
2657
2658 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
2659
2660         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
2661         (output_return): Do not test for the presence of the 'unimp' insn.
2662         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
2663         as predicates instead of custom ones.  Return raw strings when
2664         possible.
2665         (output_sibcall): Likewise.  Concatenate strings.
2666         (output_ubranch): Remove kludge for TurboSPARC.
2667         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
2668         (output_v9branch): Likewise.
2669         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
2670         <#>: Set sparc_indent_opcode if the delay slot is filled.
2671         <(>: Likewise.
2672         <)>: New operand to emit the displacement from the saved PC on return.
2673         <@>: Remove.
2674         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
2675         (ASM_OUTPUT_OPCODE): New macro.
2676         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
2677         * config/sparc/sparc.md (normal_branch, inverted_branch,
2678         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
2679         inverted_fpe_branch): Adjust call to output_cbranch.
2680         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
2681         call to output_v9branch.
2682         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
2683         (output_v9branch): Likewise.
2684
2685 2004-09-08  Devang Patel  <dpatel@apple.com>
2686
2687         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
2688         -segs_read_only_addr and -segs_read_write_addr.
2689         (WORD_SWITCH_TAKES_ARG): Same.
2690         (LINK_SPEC): Same.
2691         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
2692         -segs_read_write_addr.
2693
2694 2004-09-08  Richard Henderson  <rth@redhat.com>
2695
2696         * function.c (reference_callee_copied): New.
2697         (assign_parm_setup_reg): Use it.
2698         * calls.c (initialize_argument_information): Likewise.
2699         (emit_library_call_value_1): Likewise.
2700         * function.h (reference_callee_copied): Declare.
2701
2702         * target.h (struct gcc_target): Add callee_copies.
2703         * target-def.h (TARGET_CALLEE_COPIES): New.
2704         (TARGET_PASS_BY_REFERENCE): Update default.
2705         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2706         * targhooks.c (hook_callee_copies_named): New.
2707         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
2708         hook_pass_by_reference_false.
2709         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
2710         * targhooks.h: Update decls.
2711         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
2712         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2713         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
2714         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
2715         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2716         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
2717         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2718         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
2719         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2720         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
2721         (mips_callee_copies): New.
2722         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2723         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
2724         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2725         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
2726         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2727         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
2728         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2729         * config/sh/sh.c (sh_callee_copies): New.
2730         (TARGET_CALLEE_COPIES): New.
2731         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2732         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
2733         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
2734         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
2735         for FUNCTION_ARG_CALLEE_COPIES.
2736         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
2737
2738 2004-09-08  Devang Patel  <dpatel@apple.com>
2739
2740         * tree-if-conv.c (find_phi_replacement_condition): Return true
2741         edge block.
2742         (replace_phi_with_cond_modify_expr): Select conditional expr args
2743         based on true edge basic block.
2744
2745 2004-09-08  Jan Hubicka  <jh@suse.cz>
2746
2747         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
2748         variables being alias set.
2749
2750 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
2751
2752         * final.c (shorten_branches, final, get_insn_template,
2753         output_alternate_entry_point, final_scan_insn, alter_subreg,
2754         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
2755         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
2756         * fix-header.c (lookup_std_proto): Likewise.
2757         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
2758         verify_local_live_at_start, update_life_info, mark_reg,
2759         calculate_global_regs_live, allocate_reg_life_data,
2760         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
2761         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
2762         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
2763         * fold-const.c (force_fit_type, div_and_round_double,
2764         may_negate_without_overflow_p, int_const_binop, const_binop,
2765         size_binop, size_diffop, fold_convert_const, fold_convert,
2766         invert_tree_comparison, swap_tree_comparison,
2767         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
2768         range_binop, make_range, fold_cond_expr_with_comparison,
2769         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
2770         fold_abs_const, fold_not_const, fold_relational_const, round_up,
2771         round_down): Likewise.
2772         * function.c (find_function_data, assign_stack_temp_for_type,
2773         instantiate_virtual_regs_lossage, aggregate_value_p,
2774         assign_parm_find_entry_rtl, assign_parm_setup_block,
2775         expand_function_start, expand_function_end, keep_stack_depressed,
2776         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
2777
2778 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
2779
2780         * Makefile.in (tree-loop-linear.o): Added.
2781         (OBJS-common): Add tree-loop-linear.o
2782         * common.opt: New flag, ftree-loop-linear.
2783         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
2784         * tree-flow.h: Add prototype for linear_transform_loops.
2785         * tree-optimize.c: Add linear transform after vectorization.
2786         * tree-pass.h: Add struct pass_linear_transform.
2787         * tree-ssa-loop.c: Add pass_linear_transform.
2788         * tree-loop-linear.c: New file.
2789         * lambda-code.c: gcc_assertify.
2790         (gcc_loop_to_lambda_loop): Handle all exit tests.
2791         Handle case where we have (invariant >= induction var).
2792         (find_induction_var_from_exit_cond): Ditto.
2793
2794 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
2795
2796         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
2797         memory tag is call clobbered, so are its aliases.
2798         (group_aliases): When two memory tags being grouped, if one is
2799         call clobbered, so are the other and its aliases.
2800         (add_may_alias): Remove call-clobbering stuff.
2801         (replace_may_alias): Likewise.
2802         (merge_pointed_to_info): Merge pt_global_mem
2803
2804 2004-09-08  Jan Hubicka  <jh@suse.cz>
2805
2806         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
2807         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
2808         (cgraph_expand_function): Remove stale cgraph edges of currently
2809         compiled function; fix non-unit-at-a-time code copying function
2810         node for later reuse.
2811
2812 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
2813
2814         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
2815         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
2816         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
2817         (vec_gc_free, vec_heap_free): New.
2818         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
2819         (DEF_VEC_P): Add allocator argument. Adjust.
2820         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
2821         (DEF_VEC_O): Add allocator argument. Adjust.
2822         (VEC(free)): New.
2823
2824         * tree.h (tree): Define a GC'd vector.
2825         * lamba-code.c (lambda_loop): Likewise.
2826         * value-prof.h (histogram_value): Likewise.
2827
2828 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
2829
2830         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
2831         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
2832         gen_lowpart_common, gen_highpart, gen_highpart_mode,
2833         subreg_highpart_offset, operand_subword, operand_subword_force,
2834         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
2835         set_mem_alias_set, change_address_1, verify_rtx_sharing,
2836         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
2837         try_split, add_insn_after, add_insn_before, remove_insn,
2838         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
2839         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
2840         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
2841         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
2842         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
2843         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
2844         record_path_before_1, check_path_after_1, check_path_after): Likewise.
2845         * except.c (gen_eh_region, resolve_one_fixup_region,
2846         remove_unreachable_regions, convert_from_eh_region_ranges_1,
2847         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
2848         connect_post_landing_pads, sjlj_emit_function_exit,
2849         remove_exception_handler_label, remove_eh_handler,
2850         reachable_next_level, collect_one_action_chain,
2851         output_function_exception_table): Likewise.
2852         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
2853         optimize_save_area_alloca, allocate_dynamic_stack_space,
2854         probe_stack_range, hard_function_value): Likewise.
2855         * expmed.c (mode_for_extraction, store_bit_field,
2856         store_fixed_bit_field, extract_bit_field, expand_shift,
2857         expand_mult_const, expand_mult, choose_multiplier,
2858         expand_mult_highpart, expand_divmod, emit_store_flag,
2859         do_cmp_and_jump): Likewise.
2860         * expr.c (convert_move, convert_modes, move_by_pieces,
2861         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
2862         move_block_from_reg, gen_group_rtx, emit_group_load,
2863         emit_group_move, emit_group_store, use_reg, use_regs,
2864         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
2865         emit_move_insn, emit_move_insn_1, emit_push_insn,
2866         expand_assignment, store_expr, count_type_elements,
2867         store_constructor, store_field, safe_from_p, expand_var,
2868         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
2869
2870 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
2871
2872         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
2873         gcc_assert and gcc_unreachable.
2874         * ddg.c (create_ddg_dependence, add_deps_for_def,
2875         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
2876         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
2877         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
2878         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
2879         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
2880         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
2881         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
2882         dataflow_set_copy, hybrid_search, diagnostic.c,
2883         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
2884         * dojump.c (do_jump): Likewise.
2885         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
2886         compute_dom_fast_query, calculate_dominance_info,
2887         free_dominance_info, get_immediate_dominator,
2888         set_immediate_dominator, get_dominated_by,
2889         redirect_immediate_dominators, nearest_common_dominator,
2890         dominated_by_p, verify_dominators, recount_dominator,
2891         iterate_fix_dominators, add_to_dominance_info,
2892         delete_from_dominance_info): Likewise.
2893         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
2894         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
2895         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
2896         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
2897         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
2898         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
2899         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
2900         output_call_frame_info, output_loc_operands, build_cfa_loc,
2901         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
2902         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
2903         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
2904         splice_child_die, attr_checksum, same_dw_val_p,
2905         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
2906         unmark_dies, value_format, output_loc_list, output_die,
2907         output_pubnames, output_aranges, base_type_die, is_base_type,
2908         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
2909         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
2910         field_byte_offset, add_data_member_location_attribute,
2911         add_const_value_attribute, rtl_for_decl_location,
2912         add_location_or_const_value_attribute, add_byte_size_attribute,
2913         add_bit_offset_attribute, add_bit_size_attribute,
2914         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
2915         decl_start_label, gen_formal_parameter_die,
2916         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
2917         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
2918         force_decl_die, force_type_die, gen_decl_die,
2919         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
2920         dwarf2out_finish): Likewise.
2921
2922 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
2923
2924         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
2925         * builtins.c: Include tree-mudflap.h.
2926
2927 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
2928
2929         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
2930         force operand 0.0 into register in XFmode. Also do not force
2931         operand 0.0 into register if !TARGET_CMOVE.
2932         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
2933         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
2934         implement ftst x87 instruction.
2935         (*fp_jcc_7): New insn pattern. Change corresponding split
2936         pattern to handle "general_operand" instead of
2937         "nonimmediate_operand".
2938
2939 2004-09-08  Ben Elliston  <bje@au.ibm.com>
2940
2941         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
2942
2943 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
2944
2945         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
2946         generated from standard va_arg expansion.
2947         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
2948         marked nodes.
2949         (mf_varname_tree, mf_file_function_line_tree): Add some support
2950         for column numbers if compiled with USE_MAPPED_LOCATION.
2951
2952 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
2953
2954         * c-decl.c (groktypename_in_parm_context): Remove function.
2955         * c-tree.h (groktypename_in_parm_context): Remove prototype.
2956
2957 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
2958
2959         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
2960         * c-parse.in: Include c-common.h instead of objc-act.h.
2961         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
2962         myparms, myparm): Remove %type declarations.
2963         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
2964         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
2965         declarations.
2966         (objc_inherit_code, objc_public_flag): Remove.
2967         (typespec_nonreserved_nonattr): Call
2968         objc_get_protocol_qualified_type() instead of get_static_reference()
2969         and get_protocol_reference().
2970         (stmt_nocomp): Call grokparm() on @catch parameter.
2971         (objcdef): Move semantic action to objc_finish_implementation().
2972         (classdef): Move semantic action to objc_start_class_interface(),
2973         objc_continue_interface(), objc_finish_interface(),
2974         objc_start_class_implementation(), objc_continue_implementation(),
2975         objc_start_category_interface() and
2976         objc_start_category_implementation().
2977         (protocoldef): Move semantic actions to objc_start_protocol() and
2978         objc_finish_interface().
2979         (ivar_decl_list): Remove nonterminal.
2980         (visibility_spec): Move semantic actions to objc_set_visibility().
2981         (ivar_decls): Remove assignment to $$.
2982         (ivar_decl): Rephrase in terms of component_decl; call
2983         objc_add_instance_variable().
2984         (ivars, ivar_declarator): Remove nonterminals.
2985         (opt_semi): New nonterminal.
2986         (methodtype): Remove semantic actions.
2987         (methoddef): Move semantic actions to objc_set_method_type(),
2988         objc_start_method_definition() and objc_finish_method_definition().
2989         (methodproto): Move semantic actions to objc_set_method_type() and
2990         objc_add_method_declaration().
2991         (methoddecl): Use objc_typename instead of typename; move semantic
2992         actions to objc_build_method_signature().
2993         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
2994         (optparmlist): Express in terms of optparms and optellipsis.
2995         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
2996         nonterminals.
2997         (keyworddecl): Use objc_typename instead of typename.
2998         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
2999         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
3000
3001 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
3002
3003         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
3004         (MD_FALLBACK_FRAME_STATE_FOR): Update.
3005         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
3006         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
3007         (MD_FROB_UPDATE_CONTEXT): Remove default.
3008         (uw_update_context_1): Instead #ifdef invocation.
3009         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
3010         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
3011         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
3012         (MD_UNWIND_SUPPORT): Undefine this instead.
3013         * config/i386/gnu.h: Likewise.
3014         * config/alpha/linux-unwind.h: New file, macro converted to
3015         function, extracted from..
3016         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
3017         (MD_UNWIND_SUPPORT): Define.
3018         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
3019         * config/i386/linux-unwind.h, config/i386/linux.h,
3020         config/i386/linux64.h: Likewise.
3021         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
3022         MD_HANDLE_UNWABI too.
3023         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
3024         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
3025         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
3026         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
3027         * config/sparc/linux-unwind.h, config/sparc/linux.h,
3028         config/sparc/linux64.h: Likewise.
3029         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
3030         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
3031         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
3032         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
3033         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
3034
3035 2004-09-07  Jan Hubicka  <jh@suse.cz>
3036
3037         * cse.c (fold_rtx):  Avoid building of
3038         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
3039
3040         * tree-ssa-pre.c (grand_bitmap_obstack): New.
3041         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
3042         (init_pre): Initialize obstack.
3043         (fini_pre): Free obstack.
3044
3045 2004-09-07  David Daney  <ddaney@avtrex.com>
3046
3047         * config.gcc: Added support for --with-divide=[breaks|traps] for
3048         mips targets.
3049         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
3050         (TARGET_DIVIDE_TRAPS): New macro.
3051         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
3052         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
3053         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
3054         GENERATE_DIVIDE_TRAPS.
3055         (mips_output_division): Emit conditional trap if
3056         GENERATE_DIVIDE_TRAPS is set.
3057         * doc/install.texi: Document --with-divide.
3058         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
3059
3060 2004-09-07  Caroline Tice  <ctice@apple.com>
3061
3062         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
3063         EDGE_CROSSING, to flags test case.
3064
3065 2004-09-07  Jan Hubicka  <jh@suse.cz>
3066
3067         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
3068         class too.
3069
3070 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
3071
3072         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
3073         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
3074         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
3075         or gcc_unreachable.
3076         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
3077         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
3078         alloc_aux_for_edges, free_aux_for_edges): Likewise.
3079         * cfgcleanup.c (try_forward_edges,
3080         merge_blocks_move_predecessor_nojumps,
3081         merge_blocks_move_successor_nojumps): Likewise.
3082         * cfgexpand.c (expand_gimple_cond_expr,
3083         expand_gimple_tailcall): Likewise.
3084         * cfghooks.c (duplicate_block): Likewise.
3085         * cfglayout.c (record_effective_endpoints,
3086         insn_locators_initialize, change_scope, fixup_reorder_chain,
3087         verify_insn_chain, fixup_fallthru_exit_predecessor,
3088         duplicate_insn_chain, cfg_layout_finalize): Likewise.
3089         * cfgloopanal.c (check_irred): Likewise.
3090         * cfgloop.c (superloop_at_depth, flow_loops_free,
3091         flow_loop_entry_edges_find, flow_loops_find,
3092         flow_loop_outside_edge_p, get_loop_body,
3093         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
3094         get_loop_exit_edges, num_loop_branches, cancel_loop,
3095         verify_loop_structure): Likewise.
3096         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
3097         duplicate_loop_to_header_edge, create_preheader,
3098         create_loop_notes): Likewise.
3099         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
3100         edirect_branch_edge, force_nonfallthru_and_redirect,
3101         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
3102         commit_edge_insertions, commit_edge_insertions_watch_calls,
3103         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
3104         cfg_layout_redirect_edge_and_branch_force,
3105         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
3106         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
3107         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
3108         cgraph_varpool_node): Likewise.
3109         * cgraphunit.c (cgraph_finalize_function,
3110         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
3111         cgraph_expand_function, cgraph_remove_unreachable_nodes,
3112         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3113         cgraph_mark_inline, cgraph_expand_all_functions,
3114         cgraph_build_static_cdtor): Likewise.
3115         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
3116         simplify_logical, distribute_notes, insn_cuid): Likewise.
3117         * conflict.c (conflict_graph_add, print_conflict): Likewise.
3118         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
3119         coverage_checksum_string): Likewise.
3120         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
3121         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
3122         cse_cc_succs, cse_condition_code_reg): Likewise.
3123         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
3124         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
3125         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
3126         cselib_record_set): Likewise.
3127
3128 2004-09-07  Jan Hubicka  <jh@suse.cz>
3129
3130         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
3131
3132 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
3133
3134         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
3135         fold_convert.
3136         (fold_builtin_strpbrk): Likewise.
3137         * expr.c (array_ref_low_bound): Likewise.
3138         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
3139         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
3140         * tree-sra.c (generate_element_zero): Likewise.
3141         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
3142         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
3143         add_old_iv_candidates, add_iv_candidates): Likewise.
3144         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
3145
3146 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
3147
3148         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
3149         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
3150         c_expand_expr, boolean_increment, nonnull_check_p,
3151         check_function_arguments_recurse, fold_offsetof_1): Likewise.
3152         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
3153         builtin_define_type_max): Likewise.
3154         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
3155         implicit_decl_warning, builtin_function, build_compound_literal,
3156         complete_array_type, grokdeclarator, get_parm_info,
3157         start_function, store_parm_decls_oldstyle,
3158         c_write_global_declarations): Likewise.
3159         * c-format.c (get_constant, decode_format_attr,
3160         maybe_read_dollar_number, get_flag_spec, check_format_arg,
3161         check_format_types, format_type_warning,
3162         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
3163         init_dynamic_diag_info, handle_format_attribute): Likewise.
3164         * c-gimplify.c (push_context, pop_context, finish_bc_block):
3165         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
3166         * c-objc-common.c (c_tree_printer): Likewise.
3167         * c-pch.c (pch_init): Likewise.
3168         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
3169         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
3170         * c-typeck.c (c_incomplete_type_error, composite_type,
3171         common_pointer_type, common_type, same_translation_unit_p,
3172         tagged_types_tu_compatible_p, finish_init, pop_init_level,
3173         set_designator, set_nonincremental_init_from_string,
3174         process_init_element, c_finish_if_stmt): Likewise.
3175         * caller-save.c (init_caller_save, save_call_clobbered_regs,
3176         insert_restore, insert_save, insert_one_insn): Likewise.
3177         * calls.c (emit_call_1, compute_argument_block_size,
3178         precompute_arguments, expand_call, emit_library_call_value_1,
3179         store_one_arg): Likewise.
3180
3181 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
3182
3183         * configure.ac (enable-checking): Add release option. Reorganize
3184         to avoid repetition.
3185         * configure: Rebuilt.
3186         * doc/install.texi (enable-checking): Amend documentation.
3187
3188 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3189
3190         PR bootstrap/17313
3191         * Makefile.in (specs.ready): Depend on cc1$(exeext).
3192
3193 2004-09-06  James E Wilson  <wilson@specifixinc.com>
3194
3195         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
3196         movdf_hardfloat_32bit): Split fG into two alternatives.
3197         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
3198
3199         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
3200
3201 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3202
3203         * final.c (output_in_slot): Delete.
3204         (final_scan_insn): Revert 2004-09-03 change.
3205         (output_asm_insn): Likewise.
3206         * config/sparc/sparc.c (output_return): Likewise.
3207         (output_sibcall): Likewise.
3208
3209 2004-09-06  Jan Hubicka  <jh@suse.cz>
3210
3211         * loop.c (loop_dump_aux): Do not print RTL when not available.
3212         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
3213         frontend specific type nodes.
3214         (produce_memory_decl_rtl): Break out from ...
3215         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
3216         (get_computation_at): Avoid random tree sharing.
3217         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
3218
3219 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
3220
3221         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
3222         unnecessary commands.
3223
3224 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
3225
3226         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
3227         (bitmap.o): Likewise.
3228
3229 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
3230
3231         Unify the management of RTL and tree-level dump files.
3232
3233         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
3234         Don't print function name to the dump file, the pass manager
3235         would do this for us. Add code from the top of
3236         rest_of_compilation, up to the initial RTL dump.
3237         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
3238         close the DFI_sibling dump file.
3239         (rest_of_compilation): Don't do that here.  Remove code up to the
3240         initial RTL dump.
3241         (init_optimization_passes): Remove.
3242         (pass_rest_of_compilation): Change pass name to NULL.
3243         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
3244         Do not call init_optimization_passes.
3245         * toplev.h (init_optimization_passes): Remove.
3246
3247         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3248         finish_graph_dump_file): Remove SUFFIX parameter.
3249         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
3250         finish_graph_dump_file): Likewise.
3251
3252         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
3253         * cfgexpand.c (pass_expand): Adjust.
3254         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
3255         * passes.c (pass_rest_of_compilation): Adjust.
3256         * predict.c (pass_profile): Adjust.
3257         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
3258         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
3259         pass_split_crit_edges, pass_warn_function_return): Adjust.
3260         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
3261         * tree-dfa.c (pass_referenced_vars): Adjust.
3262         * tree-eh.c (pass_lower_eh): Adjust.
3263         * tree-if-conv.c (pass_build_ssa): Adjust.
3264         * tree-into-ssa.c (pass_build_ssa): Adjust.
3265         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
3266         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
3267         * tree-nrv.c (pass_nrv): Adjust.
3268         * tree-optimize.c (pass_gimple, pass_all_optimizations,
3269         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
3270         pass_init_datastructures): Adjust.
3271         * tree-outof-ssa.c (pass_del_ssa): Adjust.
3272         * tree-profile.c (pass_tree_profile): Adjust.
3273         * tree-sra.c (pass_sra): Adjust.
3274         * tree-ssa-alias.c (pass_may_alias): Adjust.
3275         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
3276         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
3277         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
3278         * tree-ssa-dom.c (pass_dominator): Adjust.
3279         * tree-ssa-dse.c (pass_dse): Adjust.
3280         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
3281         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
3282         * tree-ssa-loop-ch.c (pass_ch): Adjust.
3283         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
3284         pass_loop_done, pass_complete_unroll, pass_iv_canon,
3285         pass_iv_optimize, pass_vectorize): Adjust.
3286         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
3287         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
3288         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
3289         pass_late_warn_uninnitialized): Adjust.
3290         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
3291
3292         * Makefile.in (tree-dump.o): Add new dependencies.
3293         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
3294         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
3295         Likewise.
3296         * toplev.c (dump_file_name): New.
3297         * tree-dump.c (dump_enable_all): Add LETTER parameter.
3298         (struct dump_file_info): Add NUM and LETTER fields.
3299         (dump_files): Adjust and add RTL dump files.
3300         (dump_register): Add NUM and LETTER fields.
3301         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
3302         (dump_begin): Use get_dump_file_name.
3303         (dump_switch_p_1): Adjust call to dump_enable_all.
3304         * tree-dump.h (dump_register): Adjust prototype.
3305         * tree-optimize.c (register_one_dump_file): Take dump file index.
3306         Support flags for RTL dumps.
3307         (register_dump_files): Fill in NUM field of struct dump_file_info.
3308         Track properties both when the gate is executed and when it is not.
3309         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
3310         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
3311         dumps of RTL.
3312         * tree-pass.h (dump_file_name): New.
3313         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
3314         New.
3315
3316         * Makefile.in (passes.o): Add new dependencies.
3317         * passes.c (struct dump_file_info, enum dump_file_index,
3318         dump_file_tbl, init_optimization_passes): Remove.
3319         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
3320         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
3321         dump_enabled_p.
3322         (finish_optimization_passes): Update finish_graph_dump_file loop.
3323         (enable_rtl_dump_file): Remove.
3324         * tree-dump.c (dump_files): Adjust and add RTL dump files.
3325         (enable_rtl_dump_file): Add here.
3326         * tree.h (enum tree_dump_index): Add RTL dump file indices.
3327         * doc/invoke.texi (Debugging options): Document new RTL debugging
3328         options.  Update.
3329
3330 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
3331
3332         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
3333         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
3334         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
3335         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
3336         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
3337         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
3338         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
3339         vec.h: Fix comment formatting.
3340
3341 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
3342
3343         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
3344         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
3345         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
3346         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
3347         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
3348         tree-ssa-loop-niter.c, tree-ssa-operands.c,
3349         tree-ssa-operands.h, tree-ssa-propagate.c,
3350         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
3351         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
3352
3353 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
3354
3355         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
3356         vectorizer is enabled.
3357
3358 2004-09-05  Andreas Jaeger  <aj@suse.de>
3359
3360         * tree-if-conv.c: Spell check comments and clean up whitespace.
3361
3362 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3363
3364         * tree-ssa-loop-ivopts.c: New file.
3365         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
3366         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
3367         target_pres_cost, target_spill_cost): Declare.
3368         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
3369         spill_cost): Renamed to ...
3370         (target_avail_regs, target_res_regs, target_small_cost,
3371         target_pres_cost, target_spill_cost): ... and exported.
3372         (init_set_costs, global_cost_for_size): Work with renamed variables.
3373         * common.opt (flag_ivopts): New flag.
3374         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
3375         REF_ORIGINAL.
3376         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
3377         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
3378         generating SSA form.
3379         (force_gimple_operand): New function.
3380         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
3381         * tree-cfg.c (stmt_bsi): New function.
3382         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
3383         PARAM_IV_MAX_CONSIDERED_USES): New.
3384         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
3385         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
3386         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
3387         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
3388         * tree-nested.c (build_addr): Export.
3389         * tree-optimize.c (init_tree_optimization_passes): Add
3390         pass_iv_optimize.
3391         * tree-pass.h (pass_iv_optimize): Declare.
3392         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
3393         IMAGPART_EXPR.
3394         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
3395         as a phi node argument.
3396         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
3397         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
3398         functions.
3399         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
3400         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
3401         pass_iv_optimize): New pass.
3402         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
3403         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
3404         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
3405         * tree.h (REF_ORIGINAL): New macro.
3406         (build_int_cst_type, unsigned_type_for, zero_p,
3407         cst_and_fits_in_hwi, build_addr): Declare.
3408         * doc/invoke.texi (-fivopts): Document.
3409         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
3410         PARAM_IV_MAX_CONSIDERED_USES): Document.
3411         * doc/passes.texi: Document induction variable optimizations pass.
3412
3413 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3414
3415         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
3416         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
3417         * c-common.c (c_common_attribute_table): Accept parameters to
3418         sentinel attribute.
3419         (check_function_sentinel, handle_sentinel_attribute): Likewise.
3420         * doc/extend.texi: Update accordingly.
3421
3422 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3423
3424         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
3425         New.
3426         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
3427         attribute.
3428         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
3429         New functions.
3430         (c_common_attribute_table): Add `sentinel' attribute.
3431         (check_function_arguments): Handle `sentinel' attribute.
3432         * doc/extend.texi: Document `sentinel' attribute.
3433
3434 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
3435
3436         * configure: Regenerated.
3437
3438 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3439
3440         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
3441
3442         * tree.c (save_expr): No longer TREE_READONLY.
3443
3444 2004-09-04  Jan Hubicka  <jh@suse.cz>
3445
3446         * passes.c (rest_of_clean_state):  Fix merge conflict made during
3447         commiting the patch.
3448
3449 2004-09-04  Jan Hubicka  <jh@suse.cz>
3450
3451         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
3452
3453 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
3454
3455         * doc/md.texi (shift patterns): New anchor.  Add reference to
3456         TARGET_SHIFT_TRUNCATION_MASK.
3457         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
3458         * target.h (shift_truncation_mask): New target hook.
3459         * targhook.h (default_shift_truncation_mask): Declare.
3460         * targhook.c (default_shift_truncation_mask): Define.
3461         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
3462         (TARGET_INITIALIZER): Include it.
3463         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
3464         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
3465         reject all out-of-range values.  Fix sign-extension code for modes
3466         whose width is smaller than HOST_BITS_PER_WIDE_INT.
3467         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
3468         (expand_superword_shift, expand_subword_shift): Likewise.
3469         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
3470         (expand_binop): Use them to implement double-word shifts.
3471         * config/arm/arm.c (arm_shift_truncation_mask): New function.
3472         (TARGET_SHIFT_TRUNCATION_MASK): Define.
3473
3474 2004-09-04  Jan Hubicka  <jh@suse.cz>
3475
3476         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
3477         (mix): New macro copied from hashtab.c
3478         (iterative_hash_hashval_t, iterative_hash_pointer,
3479         iterative_hash_host_wide_int): New functions based on hashtab.c
3480         implementation.
3481
3482 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
3483
3484         * config/mips/mips.md (mask): New mode attribute.
3485         (zero_extendsidi2): Add memory alternative.
3486         (*zero_extendsidi2_mem): Delete.
3487         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
3488         memory_operand in the TARGET_MIPS16 check.
3489         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
3490         Redefine using :GPR and :SHORT.
3491         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
3492
3493 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
3494
3495         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
3496         using rint_optab.
3497         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
3498         expand_builtin_mathfn.
3499         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
3500         btrunc?f patterns for btrunc_optab. Implement rint_optab using
3501         rint?f patterns.
3502         * optabs.c (init_optabs): Initialize rint_optab.
3503         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
3504         Add new OTI_rint.
3505         (btrunc_optab): Rename macro from trunc_optab.
3506         (rint_optab): Define corresponding macro.
3507
3508         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
3509         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
3510
3511         * config/i386/i386-protos.h (emit_i387_cw_initialization):
3512         Change prototype. Add new int parameter.
3513         * config/i386/i386.c (emit_i387_cw_initialization):
3514         Handle new rounding modes.
3515
3516         * config/i386/i386.h (enum fp_cw_mode): Delete.
3517         (MODE_NEEDED): Handle new rounding modes.
3518         (EMIT_MODE_SET): Change condition to handle new rounding modes.
3519
3520         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
3521         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
3522         represent different rounding modes of frndint insn.
3523         (type): Add frndint type.
3524         (i387, length, memory): Handle this type.
3525         (i387_cw): New attribute definition.
3526         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
3527         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
3528         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
3529         Add "i387_cw" attribute defined to "trunc".
3530         (x86_fnstcw_1): Remove comment.
3531         (*frndintxf2): Rename insn definition to frndintxf2. Move
3532         insn definition near rint?f2 expanders.
3533         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
3534         rintf and rintl built-ins as inline x87 intrinsics.
3535         (frndintxf2_floor): New pattern to implement floor rounding
3536         mode with frndint x87 instruction.
3537         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
3538         floorf and floorl built-ins as inline x87 intrinsics.
3539         (frndintxf2_ceil): New pattern to implement ceil rounding
3540         mode with frndint x87 instruction.
3541         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
3542         ceilf and ceill built-ins as inline x87 intrinsics.
3543         (frndintxf2_trunc): New pattern to implement trunc rounding
3544         mode with frndint x87 instruction.
3545         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
3546         truncf and truncl built-ins as inline x87 intrinsics.
3547         (frndintxf2_mask_pm): New pattern to implement rounding
3548         mode with exceptions with frndint x87 instruction.
3549         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
3550         implement nearbyint, nearbyintf and nearbyintl built-ins as
3551         inline x87 intrinsics.
3552
3553 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
3554
3555         * config/mips/mips.md (SHORT): New mode macro.
3556         (size): New mode attribute.
3557         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
3558         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
3559         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
3560         !ISA_HAS_SEB_SEH.
3561         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
3562         *extend[qh]isi2_hw patterns and extending them to di.
3563         (extendqihi2): Implement as define_insn_and_split that produces
3564         extendqisi2 after reload.
3565
3566 2004-09-03  Devang Patel  <dpatel@apple.com>
3567
3568         * Makefile.in (OBJS-common): Add tree-if-conv.o
3569         (tree-if-conv.o): New rule.
3570         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
3571         (get_loop_body_in_bfs_order): New.
3572         * cfgloop.h (get_loop_body_in_bfs_order): New.
3573         * tree-flow.h (enum move_pos): Move here from ..
3574         * tree-ssa-loop-im.c (enum move_pos): here.
3575         (movement_possibility): Make externally visible.
3576         * tree-optimize.c (init_tree_optimization_passes): New entry for
3577         if conversion pass.
3578         * tree-pass.h (pass_if_conversion): New.
3579         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
3580         * tree-if-conv.c: New file.
3581         * doc/passes.texi: Document tree if-conversion pass.
3582         * doc/tree-ssa.texi: Same.
3583
3584 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
3585
3586         PR target/14925:
3587         Makefile.in (LIB2ADDEHSTATIC): New.
3588         (LIB2ADDEHSHARED): New.
3589         (LIBUNWIND): New.
3590         (LIBUNWINDDEP): New.
3591         (SHLIBUNWIND_LINK): New.
3592         (SHLIBUNWIND_INSTALL): New.
3593         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
3594         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
3595         (clean): Remove libunwind*
3596         (stage1-start): Remove and copy stage1/libunwind*.
3597         (stage2-start): Remove and copy stage2/libunwind*.
3598         (stage3-start): Remove and copy stage3/libunwind*.
3599         (stage4-start): Remove and copy stage4/libunwind*.
3600         (stageprofile-start): Remove and copy stageprofile/libunwind*.
3601         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
3602
3603         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
3604         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
3605         tmake_file if --with-system-libunwind isn't used.
3606
3607         * config/ia64/t-glibc-libunwind: New file.
3608         * config/t-libunwind-elf: Likewise.
3609         * unwind-compat.c: Likewise.
3610         * unwind-compat.h: Likewise.
3611         * unwind-dw2-fde-compat.c: Likewise.
3612
3613         * config/ia64/t-glibc (LIB2ADDEH): Updated.
3614         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
3615
3616         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
3617         aliases if needed.
3618         * unwind-dw2-fde-glibc.c: Likewise.
3619         * unwind-dw2.c: Likewise.
3620
3621         * config/t-libunwind (LIB2ADDEH): Updated.
3622         (LIB2ADDEHSTATIC): New.
3623         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
3624         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
3625
3626         * configure.ac: Change --enable-libunwind-exceptions to
3627         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
3628         * configure: Regenerated.
3629         * config.in: Updated.
3630
3631         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
3632         above and mention --with-system-libunwind.
3633         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
3634         removed in gcc 3.4.3 and later.
3635
3636         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
3637         USE_LIBUNWIND_EXCEPTIONS is defined.
3638
3639         * mklibgcc.in: Support libunwind.
3640
3641 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
3642
3643         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
3644         m_NOCONA.
3645
3646 2004-09-03  Richard Henderson  <rth@redhat.com>
3647
3648         PR middle-end/9997
3649         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
3650         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
3651         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
3652         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
3653         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
3654         resize_stack_vars_conflict, add_stack_var_conflict,
3655         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
3656         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
3657         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
3658         expand_one_static_var, expand_one_hard_reg_var,
3659         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
3660         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
3661         (expand_used_vars): Rewrite.
3662         * Makefile.in (cfgexpand.o): Update dependencies.
3663
3664 2004-09-04  Jan Hubicka  <jh@suse.cz>
3665
3666         * cfg.c (free_edge): Use ggc_free.
3667         (expunge_block): Use ggc_free.
3668         * passes.c (rest_of_clean_state): Free after compilation.
3669         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
3670         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
3671
3672 2004-09-03  James E Wilson  <wilson@specifixinc.com>
3673
3674         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
3675         DECL_EXTERNAL check.
3676
3677 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3678
3679         * final.c (output_in_slot): New global variable.
3680         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
3681         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
3682         'output_in_slot' before invoking output_asm_insn.
3683         (output_asm_insn): Add a space after the tab if 'output_in_slot'
3684         is set.
3685         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
3686         final_scan_insn.
3687         (output_sibcall): Likewise.
3688
3689 2004-09-03  Jan Hubicka  <jh@suse.cz>
3690
3691         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
3692         * tree-ssanames (init_ssanames): Likewise.
3693
3694 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
3695
3696         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
3697         objc_declare_protocols, objc_start_protocol,
3698         objc_start_class_interface, objc_start_category_interface,
3699         objc_continue_interface, objc_finish_interface,
3700         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
3701         objc_start_class_implementation, objc_start_category_implementation,
3702         objc_continue_implementation, objc_finish_implementation,
3703         objc_add_method_declaration, objc_start_method_definition,
3704         objc_finish_method_definition, objc_build_keyword_decl,
3705         objc_build_method_signature, objc_build_encode_expr,
3706         objc_build_protocol_expr, objc_build_selector_expr,
3707         objc_build_message_expr, objc_build_string_object,
3708         objc_get_class_reference, objc_get_protocol_qualified_type,
3709         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
3710
3711 2004-09-03  James E Wilson  <wilson@specifixinc.com>
3712
3713         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
3714
3715         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
3716         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
3717         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
3718         (mips_recip1_<fmt>): Use frdiv1 type.
3719         (mips_recip2_<fmt>): Use frdiv2 type.
3720         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
3721         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
3722         and frsqrt1.
3723         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
3724
3725 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
3726
3727         * reload.c (find_reloads): Swap operand_loc pointers for
3728         find_dummy_reload if we have swapped two operands.
3729
3730 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
3731
3732         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
3733         to get the tablejump-insn before the jump-table label.
3734
3735 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
3736
3737         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
3738         objc_declare_protocols, objc_build_message_expr,
3739         objc_finish_message_expr, objc_build_selector_expr,
3740         objc_build_protocol_expr, objc_build_encode_expr,
3741         objc_build_string_object, objc_get_protocol_qualified_type,
3742         objc_get_class_reference, objc_get_class_ivars,
3743         objc_start_class_interface, objc_start_category_interface,
3744         objc_start_protocol, objc_continue_interface, objc_finish_interface,
3745         objc_start_class_implementation, objc_start_category_implementation,
3746         objc_continue_implementation, objc_finish_implementation,
3747         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
3748         objc_add_method_declaration, objc_start_method_definition,
3749         objc_finish_method_definition, objc_add_instance_variable,
3750         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
3751         objc_finish_try_stmt, objc_begin_catch_clause,
3752         objc_finish_catch_clause, objc_build_finally_clause,
3753         objc_build_synchronized, objc_static_init_needed_p,
3754         objc_generate_static_init_call): New prototypes.
3755
3756 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
3757
3758         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
3759         is only one reg.
3760         (ia64_function_value): Ditto.
3761
3762 2004-09-03  Jan Beulich  <jbeulich@novell.com>
3763
3764         * config.gcc: Resurrect NetWare as a target. Handle special case of
3765         Novell linker to be used (specified through --with-ld=) and threading
3766         model of either Posix (default) or NKS.
3767         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
3768         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
3769         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
3770         * config/i386/netware.c, config/i386/netware.h: New.
3771         * config/i386/nwld.c, config/i386/nwld.h: New.
3772         * config/i386/netware-crt0.c: New.
3773         * config/i386/netware-libgcc.c: New.
3774         * config/i386/netware-libgcc.def: New.
3775         * config/i386/netware-libgcc.exp: New.
3776         * config/i386/t-netware, config/i386/t-nwld: New.
3777         * gthr-nks.h: New.
3778         * doc/install.texi: Document NKS threading model.
3779
3780 2004-09-03  Jan Beulich  <jbeulich@novell.com>
3781
3782         PR c/7054
3783         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
3784         * tree.h (initial_max_fld_align): Declare
3785         * stor-layout.c (initial_max_fld_align): Define and initialize.
3786         (maximum_field_alignment): Initialize to the same value.
3787         * common.opt: Add -fpack-struct= variant of switch.
3788         * opts.c: Handle -fpack-struct= variant of switch.
3789         * c-pragma.c: Change #pragma pack() handling so that it becomes
3790         compatible to other compilers: accept individual 'push' argument,
3791         make final pop restore (command line) default, correct interaction
3792         of push/pop and sole specification of a new alignment (so that the
3793         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
3794         to #pragma pack(push, <n>).
3795         * doc/extend.texi: New node "Structure-Packing Pragmas" under
3796         "Pragmas", describing #pragma pack.
3797         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
3798         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
3799         Document new TARGET_DEFAULT_PACK_STRUCT.
3800
3801 2004-09-03  Devang Patel  <dpatel@apple.com>
3802
3803         * dwarf2out.c (gen_field_die). Equate decl number to die.
3804
3805 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
3806
3807         PR target/15832
3808         * global.c (modify_reg_pav): New function.
3809         (make_accurate_live_analysis): Call the new function.  Move pavin
3810         modification by earlyclobber set into the new function.
3811
3812 2004-09-03  Andreas Schwab  <schwab@suse.de>
3813
3814         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
3815         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
3816         extended.
3817
3818 2004-09-02  Jan Beulich  <jbeulich@novell.com>
3819
3820         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
3821         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
3822         not unwind code specific ones.
3823         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
3824         Remove unwind code specific dependencies.
3825         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
3826         Remove gbl-ctors.h.
3827         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
3828         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
3829         * tsystem.h: Declare memcpy and memset when inhibit_libc.
3830
3831 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
3832
3833         * combine.c (try_combine): Delay modifying of insns which cannot
3834         be easily undone.
3835
3836 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
3837
3838         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
3839         tree-loop-im.
3840         * gcc/tree-ssa-loop.c: Ditto
3841         * gcc/tree-ssa-loop-ivcanon.c: Ditto
3842         * gcc/doc/invoke.texi: Ditto.
3843
3844 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
3845
3846         * c-decl.c (store_parm_decls_newstyle): Make static.
3847         (store_parm_decls_from): New function.
3848         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
3849         (store_parm_decls_from): New prototype.
3850
3851 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
3852
3853         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
3854         HImode with STRICT_ALIGNMENT.
3855
3856 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
3857
3858         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
3859         (TARGET_OS_CPP_BUILTINS): Likewise.
3860         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
3861         TARGET_BPABI_CPP_BUILTINS.
3862
3863 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
3864
3865         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
3866
3867 2004-09-02  Eric Christopher  <echristo@redhat.com>
3868
3869         * builtins.c (expand_builtin_cabs): Delete.
3870         (expand_builtin): If unable to fold the values do a normal
3871         library call for builtin_cab*.
3872         (fold_builtin_cabs): Depend on optimize and optimize_size.
3873         * optabs.c (expand_cmplxdiv_straight): Delete.
3874         (expand_cmplxdiv_wide): Ditto.
3875         (expand_vector_binop): Ditto.
3876         (expand_vector_unop): Ditto.
3877         (expand_complex_abs): Delete.
3878         (expand_binop): Remove calls to above functions.
3879         Remove open coding of complex arithmetic.
3880         (expand_unop): Ditto.
3881         * optabs.h: Remove prototypes.
3882
3883 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
3884
3885         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
3886         * c-tree.h (store_parm_decls_newstyle): New prototype.
3887
3888 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
3889
3890         * config/rs6000/rs6000.c (expand_block_clear): Use vector
3891         instructions if available.
3892         (expand_block_move): Likewise.
3893
3894 2004-09-03  Jan Hubicka  <jh@suse.cz>
3895
3896         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
3897
3898 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
3899
3900         * config/arm/symbian.h (LIB_SPEC): Define to empty.
3901         * config/arm/t-symbian (SHLIB_LC): Likewise.
3902
3903 2004-09-02  Paul Brook  <paul@codesourcery.com>
3904
3905         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
3906
3907 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
3908
3909         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
3910         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
3911         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
3912         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
3913         (mips_issue_rate): Remove unreachable abort.
3914         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
3915         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
3916         (mips_block_move_straight, print_operand_address, mips_file_start)
3917         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
3918         (mips_output_conditional_branch, mips_expand_builtin_direct)
3919         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
3920         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
3921         with gcc_assert.
3922
3923 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
3924
3925         * config/mips/mips.md (*lea_high64): Change split condition to
3926         flow2_completed.  Add a peephole2 to generate a more parallel version.
3927
3928 2004-09-02  Jan Hubicka  <jh@suse.cz>
3929
3930         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
3931         GGC.
3932
3933         * ggc-page.c: include tree-flow.h.
3934         (extra_order_size_table): Add stmt_ann_d.
3935         (STAT_LABEL): Rename from ....
3936         (LABEL): ... this one.
3937         * Makefile.in (ggc-page.o): Add dependency.
3938
3939         * ggc-common.c (ggc_force_collect): New global variable.
3940         (loc_description): Add fields "freed", "collected"
3941         (ptr_hash): New static hash
3942         (ptr_hash_entry): New structure.
3943         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
3944         (ggc_record_overhead): Take ptr argument, record it
3945         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
3946         (cmp_statistics): Imrove sorting.
3947         (dump_ggc_loc_statistics): Output newly collected statistics
3948         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
3949         (ggc_free): Call ggc_free_overhead.
3950         (ggc_collect): Force collection when asked to be forced.
3951         (ggc_collect): Call ggc_prune_overhead_list.
3952         * ggc.h (ggc_force_collect): Declare
3953         (ggc_record_overhead): Update prototype.
3954         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
3955
3956 2004-09-02  James E Wilson  <wilson@specifixinc.com>
3957
3958         * common.opt (ftrapping-math): Default to on.
3959
3960 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
3961
3962         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
3963
3964 2004-09-02  Denis Chertykov  <denisc@overta.ru>
3965
3966         PR target/16884
3967         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
3968         match_scratch.
3969         (*movmemqi_insn): Likewise.
3970         (*movmemhi): Likewise.
3971         (clrmemhi): Likewise.
3972         (*clrmemqi): Likewise.
3973         (*clrmemhi): Likewise.
3974
3975 2004-09-02  Paul Brook  <paul@codesourcery.com>
3976
3977         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
3978         default_use_cxa_atexit=yes.
3979
3980 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
3981
3982         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
3983         (struct kernel_old_ucontext): Delete.
3984         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
3985         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
3986         when IN_LIGGCC2.
3987
3988 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
3989
3990         * toplev.c (process_options): Fix typo.
3991
3992 2004-09-01  Richard Henderson  <rth@redhat.com>
3993
3994         PR middle-end/17258
3995         * calls.c (initialize_argument_information): Tighten pass-through
3996         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
3997         Use build_fold_addr_expr.
3998         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
3999         that assumes ADDR_EXPR allocates stack space.
4000         * fold-const.c (build_fold_addr_expr_with_type): Look through
4001         WITH_SIZE_EXPR.
4002
4003 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
4004
4005         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
4006         * ggc.h (ggc_alloc_rtx): Delete.
4007
4008 2004-09-01  Roger Sayle  <roger@eyesopen.com>
4009
4010         * expmed.c (enum alg_code): Remove long unused enumeration values.
4011         (struct mult_cost): New structure to hold the "score" of a synthetic
4012         multiply sequence, including both a rtx_cost and a latency field.
4013         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
4014         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
4015         (struct algorithm): Change type of cost field to be mult_cost.
4016         (synth_mult): Change type of cost_limit argument to be a
4017         pointer to a mult_cost.  Update all cost comparisons to use the
4018         new mult_cost infrastructure.  For alg_add_factor and
4019         alg_sub_factor operations, latency is lower than the rtx_cost.
4020         (choose_mult_variant):  Update calls to synth_mult.  Perform
4021         cost comparisons using the new mult_cost infrastructure.
4022         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
4023         to optain the total rtx_cost of a synth_mult "algorithm".
4024
4025 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
4026
4027         * config/rs6000/power4.md: Increase store latency to 12.
4028         * config/rs6000/power5.md: Same.
4029
4030 2004-09-01  James E Wilson  <wilson@specifixinc.com>
4031
4032         PR target/14064
4033         * config/avr/avr.c (avr_unique_section): Delete prototype and
4034         definition.
4035         (TARGET_ASM_UNIQUE_SECTION): Delete.
4036
4037 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
4038
4039         * c-parse.in (primary): Call objc_build_message_expr(),
4040         objc_build_selector_expr(), objc_build_protocol_expr(),
4041         objc_build_encode_expr() and objc_build_string_object() instead of
4042         build_message_expr(), build_selector_expr(), build_protocol_expr(),
4043         build_encode_expr() and build_objc_string_object(), respectively.
4044         (component_decl_list2): Call objc_get_class_ivars() instead of
4045         get_class_ivars_from_name().
4046         (keyworddecl): Call objc_build_keyword_decl() instead of
4047         build_keyword_decl().
4048         (receiver): Call objc_get_class_reference() instead of
4049         get_class_reference().
4050         (reswords): Add blank line before @@ifobjc section, for clarity.
4051
4052 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
4053
4054         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
4055         to Altivec vetors.
4056
4057 2004-09-01  Wu Yongwei  <adah@sh163.net>
4058             Danny Smith  <dannysmith@users.sourceforge.net>
4059
4060         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
4061         not Windows 'DWORD'.
4062         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
4063         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
4064         (__gthr_win32_recursive_mutex_init_function): Add prototype for
4065         __GTHREAD_HIDE_WIN32API case..
4066         (__gthr_win32_recursive_mutex_lock): Likewise.
4067         (__gthr_win32_recursive_mutex_trylock): Likewise.
4068         (__gthr_win32_recursive_mutex_unlock): Likewise.
4069         (__gthread_recursive_mutex_init_function); Add definition for
4070         __GTHREAD_HIDE_WIN32API case.
4071         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
4072         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
4073         call to InterlockedDecrement.
4074
4075 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4076
4077         * tree-tailcall.c (find_tail_calls): Also fail is statement has
4078         volatile operands.
4079
4080         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
4081
4082         * doc/c-tree.texi: Document new operands for ARRAY_REF and
4083         COMPONENT_REF.
4084
4085 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4086
4087         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
4088         * common.opt (fspeculative-prefetching): New.
4089         * flags.h (flag_speculative_prefetching_set): Declare.
4090         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
4091         values.
4092         * opts.c (flag_sepculative_prefetching_set): New variable.
4093         (common_handle_option): Handle -fspeculative-prefetching.
4094         * passes.c (rest_of_compilation): Ditto.
4095         * profile.c (instrument_values, compute_value_histograms, branch_prob):
4096         Use vectors instead of arrays.
4097         * toplev.c (process_options): Handle -fspeculative-prefetching.
4098         * rtl-profile.c: Include ggc.h.
4099         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
4100         rtl_gen_one_value_profiler_no_edge_manipulation,
4101         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
4102         argument changed.
4103         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
4104         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
4105         argument changed.
4106         * value-prof.c: Include ggc.h.
4107         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
4108         macros.
4109         (insn_prefetch_values_to_profile, find_mem_reference_1,
4110         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
4111         speculative_prefetching_transform): New.
4112         (value_profile_transformations): Call speculative_prefetching_transform.
4113         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
4114         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
4115         tree_find_values_to_profile, find_values to profile): Use vectors
4116         instead of arrays.
4117         (free_profiled_values): Removed.
4118         * value-prof.h (struct histogram_value): Renamed to
4119         struct histogram_value_t.
4120         (histogram_value, histogram_values): New types.
4121         (find_values_to_profile): Declaration changed.
4122         (free_profiled_values): Removed.
4123         (struct profile_hooks): Type of argument of the hooks changed to
4124         histogram_value.
4125         * doc/invoke.texi (-fspeculative-prefetching): Document.
4126
4127 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4128
4129         PR rtl-optimization/16408
4130         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
4131
4132 2004-09-01  Richard Henderson  <rth@redhat.com>
4133
4134         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
4135         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
4136
4137 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
4138
4139         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
4140
4141 2004-09-01  Mike Stump  <mrs@apple.com>
4142
4143         * config/darwin.c (machopic_symbol_defined_p): In addition to
4144         being SYMBOL_REF_LOCAL_P, a symbol must also be
4145         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
4146         defined in this output file, or translation unit in the case
4147         of IMA not being used.
4148         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
4149         never need .indirect_symbol when indirecting.
4150
4151 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
4152
4153         * Makefile.in (bb-reorder.o): Add several dependencies.
4154
4155 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
4156
4157         * fold-const.c (operand_equal_p): Require equal sign also for
4158         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
4159
4160 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
4161
4162         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
4163         for use in configargs.h.  Put the cname in a separate variable.  Use
4164         that to set target_cpu_default2.
4165
4166 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
4167             Nick Clifton  <nickc@redhat.com>
4168
4169         * config/sh/sh.md ("length"): Increase branch length when
4170         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
4171         constant, 2 byte for aligning the constant.
4172
4173 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
4174
4175         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
4176         CPU.
4177         (arm7tdmi-s): New CPU name.
4178         * arm/arm.c (ARM_CORE): Update for new format.
4179         * arm/arm.h (ARM_CORE): Likewise.
4180         * arm/gentune.sh: Update for extra field.
4181         * config.gcc: Likewise.
4182         * arm/arm-tune.md: Regenerate.
4183         * doc/invoke.texi: Document the real processor names for ARM cpus.
4184
4185 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
4186
4187         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
4188         (floatdidf): New functions.
4189         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
4190         (floatdisf): New functions.
4191         * t-arm-elf: Use them.
4192
4193 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
4194
4195         * c-common.h (lookup_interface): Remove prototype.
4196         (is_class_name): Rename to objc_is_class_name.
4197         (lookup_objc_ivar): Rename to objc_lookup_ivar.
4198         (get_current_scope): Rename to objc_get_current_scope.
4199         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
4200         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
4201         (yylexname): Call objc_is_class_name() instead of is_class_name().
4202         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
4203         instead of lookup_objc_ivar().
4204         * stub-objc.c (lookup_interface): Remove stub.
4205         (is_class_name): Rename to objc_is_class_name.
4206         (lookup_objc_ivar): Rename to objc_lookup_ivar.
4207
4208 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
4209
4210         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
4211         * config/arm/lib1funcs.asm: Do not include supplemental .S files
4212         when compiling for Symbian.
4213         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
4214         (TARGET_OS_CPP_BUILTINS): Likewise.
4215         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
4216
4217 2004-08-31  Stan Shebs  <shebs@apple.com>
4218
4219         * toplev.c (process_options): Ensure debug_hooks is initialized.
4220
4221 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
4222
4223         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
4224         * target.h (cxx): Add export_class_data.
4225         * config/arm/arm.c (arm_cxx_export_class_data): New function.
4226         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
4227         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
4228
4229 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
4230
4231         * config/sh/sh.c (output_branch): Check the insn length possibly
4232         in the delayed slot.
4233
4234 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4235
4236         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
4237         blank after ')'.
4238         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
4239
4240         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
4241         (c_sizeof_of_alignof_type): Likewise.
4242         * expr.c (array_ref_element_size): Likewise.
4243         (highest_pow2_factor_for_target): Likewise.
4244         * gimplify.c (canonicalize_addr_expr): Likewise.
4245         (gimplify_compound_lval): Likewise.
4246         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
4247         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
4248         * varasm.c (assemble_variable): Likewise.
4249         (output_constant_def_contents): Alignments are unsigned.
4250
4251 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4252             Jeff Law  <law@redhat.com>
4253
4254         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
4255         gets modified.
4256
4257 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
4258
4259         * hooks.c (hook_bool_void_true): New function.
4260         * hooks.h (hook_bool_void_true): Declare.
4261         * target-def.h (TARGET_CXX): Add
4262         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
4263         * target.h (struct cxx): Add key_method_may_be_inline.
4264         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
4265         function.
4266         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
4267         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
4268         __THUMB_INTERWORK.
4269
4270 2004-08-31  Denis Chertykov  <denisc@overta.ru>
4271
4272         PR target/15417
4273         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
4274         frame pointer register only in Pmode while reload in progress.
4275
4276 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
4277
4278         PR target/15334
4279         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
4280         because it breaks the 32-bit shift patterns that rely on a match_dup.
4281
4282 2004-08-31  Matt Austern  <austern@apple.com>
4283
4284         * config/darwin.c (darwin_make_decl_one_only): Allocate section
4285         names once per compilation, instead of once per symbol.
4286
4287 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
4288
4289         * Makefile.in (build_subdir): New substitution.
4290         (fixinc.sh): Simplify heavily since fixincludes is already built.
4291         (stmp-fixinc): Depend on specs.ready.
4292         (install-mkheaders): Use new location of fixincludes.
4293         (clean): Do not descend into fixinc.
4294         (FORBUILD): Replace with ../$(build_subdir).
4295         * configure.ac (build_subdir): Substitute.
4296         (FORBUILD): Do not set.
4297         (all_outputs): Remove fixinc/Makefile.
4298         (default commands): Do not create links in fixinc.
4299         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
4300         the fixincludes configuration steps and substituting
4301         @FIXINCL@ in fixinc.in.
4302         * fixinc.in: New, from fixinc/fixincl.sh.
4303
4304         * fixinc/*: Removed.
4305
4306 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
4307
4308         * attribs.c (strip_attrs): Remove.
4309         (split_specs_attrs): Move ...
4310         * c-decl.c: ... to here.
4311         * tree.h (split_specs_attrs, strip_attrs): Remove.
4312         * c-tree.h (split_specs_attrs): Declare.
4313
4314 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
4315
4316         * read-rtl.c: Disable RTL checking.
4317         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
4318
4319 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
4320
4321         * config/mips/mips.md (fcond): New code macro and attribute.
4322         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
4323         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
4324         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
4325
4326 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
4327
4328         Revert:
4329         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
4330         PR rtl-optimization/16590
4331         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
4332
4333 2004-08-30  Andrew Pinski  <apinski@apple.com>
4334
4335         * hard-reg-set.h:
4336         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
4337         * ChangeLog: Fix previous ChangeLog entry.
4338
4339         PR rtl-opt/13987
4340         * config.host (use_long_long_for_widest_fast_int): New, default is
4341         off.
4342         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
4343         * configure.ac: If use_long_long_for_widest_fast_int, then
4344         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
4345         * configure: Regenerate.
4346         * config.in: Regenerate.
4347         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
4348         New: widest integer type supported efficiently in hardware for the
4349         host.
4350         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
4351         HOST_BITS_PER_WIDEST_FAST_INT.
4352         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
4353         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
4354         HOST_WIDEST_FAST_INT
4355         instead of HOST_WIDE_INT.
4356         (HARD_REG_SET_LONGS): Likewise.
4357         (UHOST_BITS_PER_WIDE_INT): Likewise.
4358         Change the checks for the fast cases to be based on
4359         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
4360
4361 2004-08-30  Steven Bosscher  <stevenb@suse.de>
4362
4363         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
4364         not the pointers.
4365
4366 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
4367
4368         PR 12738
4369         PR 17205
4370         Radar 3460526
4371         Radar 3775729
4372         * c-decl.c (grokdeclarator): Produce error for 'static' on local
4373         function declaration.
4374
4375 2004-08-30  Richard Henderson  <rth@redhat.com>
4376
4377         * expr.c (array_ref_element_size): Force aligned_size back to
4378         sizetype.
4379         (component_ref_field_offset): Similarly for aligned_offset.
4380         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
4381         low-bound, element-size, field-offset fields rather than
4382         computed values.
4383
4384 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
4385
4386         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
4387         redundant code.
4388
4389 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
4390
4391         * c-tree.h (struct language_function): Add arg_info element.
4392         * c-decl.c (current_function_arg_info): New.
4393         (grokdeclarator, store_parm_decls): Use it instead of
4394         DECL_ARGUMENTS.
4395         (c_push_function_context, c_pop_function_context): Save and
4396         restore it.
4397
4398 2004-08-30  Richard Henderson  <rth@redhat.com>
4399
4400         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
4401         COMPONENT_REF to pointer arithmetic.
4402         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
4403         constant "c" as a valid constant initializer.  Allow narrowing of
4404         differences against the same base object, for any base object.
4405
4406 2004-08-30  Richard Henderson  <rth@redhat.com>
4407
4408         * expr.c (expand_expr_addr_expr): New.
4409         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
4410
4411 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
4412
4413         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
4414         (mips_fp_condition): New enum.
4415         (mips_fp_conditions): New array.
4416         (print_fcc_operand): Delete.
4417         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
4418         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
4419         (builtin_description): Add "cond" field.
4420         (DIRECT_BUILTIN): Initialize it.
4421         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
4422         into INSN and CODE.  Initialize the "cond" field.
4423         (CMP_BUILTINS): Update accordingly.
4424         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
4425         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
4426         mips_fp_condition as argument.  Make it the final operand of the
4427         comparison instruction.
4428         (mips_expand_builtin): Update accordingly.
4429         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
4430         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
4431         the gaps.
4432         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
4433         Don't use the 'Q' operand prefix; just print the operand normally.
4434         (mips_cabs_*, mips_c_*): Delete, replacing with...
4435         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
4436         patterns.  Split the 4s versions into 2 ps patterns after reload.
4437
4438 2004-08-30  Richard Henderson  <rth@redhat.com>
4439
4440         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
4441         assuming an ADDR_EXPR is non-null.
4442
4443 2004-08-30  Jason Merrill  <jason@redhat.com>
4444
4445         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
4446
4447 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
4448
4449         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
4450         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
4451         gcc_assert and gcc_unreachable instead of abort.
4452         * alloc-pool.c (abort, fancy_abort): Remove.
4453         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
4454         gcc_assert or gcc_unreachable.
4455         * attribs.c (init_attributes, decl_attributes): Likewise.
4456         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
4457         mark_bb_for_unlikely_executed_section,
4458         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
4459         fix_crossing_unconditional_branches):  Likewise.
4460         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
4461         bitmap_operation):  Likewise.
4462         * bt-load.c (insn_sets_btr_p, augment_live_range,
4463         move_btr_def):  Likewise.
4464         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
4465         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
4466         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
4467         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
4468         expand_builtin_memcmp, expand_builtin_args_info,
4469         std_gimplify_va_arg_expr, expand_builtin_unop,
4470         expand_builtin_fputs, expand_builtin_profile_func,
4471         expand_builtin_fork_or_exec, fold_builtin_bitop,
4472         fold_builtin_classify, fold_builtin_fputs): Likewise.
4473
4474 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
4475
4476         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
4477         * gcov.c (abort): Remove undef.
4478
4479         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
4480         (struct tree_binfo): Remove primary field.
4481
4482 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
4483
4484         * fixinc/Makefile.in (machname.h): Remove.
4485         (fixincl.x): Do not pass $@ to genfixes.
4486         * fixinc/genfixes: Remove code to produce machname.h.
4487         * fixinc/fixincl.sh: Move it here instead.
4488         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
4489         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
4490         return a bool indicating whether pz_mn_name_pat is NULL.
4491         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
4492         Declare extern C variables for the ENV_TABLE.
4493         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
4494         instead use the result of mn_get_regexps.
4495         * fixinc/fixtests.c: Likewise.
4496
4497 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
4498
4499         * configure.ac: Do not run fixincludes after stage1 during
4500         toplevel bootstrap.
4501         * configure: Regenerate.
4502
4503 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
4504
4505         * sched-deps.c (get_condition): Partially revert previous, by never
4506         trying to extract the condition from a condjump.
4507
4508 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
4509
4510         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
4511         (handle_visibility_attribute, c_determine_visibility): Likewise.
4512         * c-common.h (my_friendly_assert): Remove.
4513
4514 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
4515
4516         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
4517         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
4518         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
4519         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
4520         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
4521
4522 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
4523
4524         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
4525         in COMPONENT_REF nodes.
4526
4527 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4528
4529         PR c++/15378
4530         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
4531         global_dc->warning_as_error_requested.
4532         * diagnostic.c (diagnostic_initialize): Tidy.
4533         * diagnostic.h (diagnostic_context::x_data): Remove
4534         (diagnostic_context::issue_warnings_are_errors_message): Rename
4535         from warnings_are_errors_message.
4536         (diagnostic_context::warning_as_error_requested): New.
4537
4538 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
4539
4540         * sched-deps.c (get_condition): Fix breakage in previous patch.
4541
4542 2004-08-30  Paul Brook  <paul@codesourcery.com>
4543
4544         * doc/install.texi: Fix broken mpfr link.
4545
4546 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
4547
4548         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
4549         other FreeBSD platforms.
4550
4551 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
4552
4553         * arm.h (REVERSE_CONDITION): Define.
4554         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
4555
4556 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
4557
4558         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
4559         just the codes, call reversed_comparison_code ().
4560         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
4561         (not_reg_cond): Use reversed_comparison_code.
4562         (and_reg_cond): Likewise.
4563         * ifcvt.c (cond_exec_process_if_block): Likewise.
4564         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
4565
4566 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
4567
4568         * sched-deps.c (get_condition): Rewrite using jump support functions.
4569         Use reversed_comparison_code.
4570         (conditions_mutex_p): Use reversed_comparison_code.
4571
4572 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4573
4574         * config/mips/mips.c (override_options): Disable hot/cold partitioning
4575         for MIPS16.
4576
4577 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4578
4579         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
4580         (mips_function_type): Move to mips.c.
4581         * config/mips/mips.c (mips_builtin_type): New enum.
4582         (builtin_description): Replace code and ftype with builtin_type
4583         and function_type.
4584         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
4585         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
4586         (CODE_FOR_mips_abs_ps): Define.
4587         (mips_bdesc): Use new macros.
4588         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
4589         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
4590         (mips_expand_builtin_direct): New function.
4591         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
4592         builtin.  Replace boolean parameter with builtin_type.
4593         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
4594         (mips_expand_4s_compare_builtin): Delete, replacing with...
4595         (mips_expand_builtin_compare): ...this new function.
4596
4597 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
4598
4599         PR rtl-optimization/16590
4600         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
4601
4602 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
4603
4604         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
4605         * tree-ssa-propagate.c: Fix documentation.
4606
4607 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4608
4609         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
4610         (mov[sd]fcc): Likewise.
4611
4612 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4613
4614         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
4615
4616 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4617
4618         * config/mips/mips.md (divide_condition): New mode attribute.
4619         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
4620         (sqrt[sd]f3): Redefine using SCALARF.
4621         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
4622         patterns.
4623
4624 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4625
4626         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
4627         (loadx, storex, fmt, UNITMODE): New mode attributes.
4628         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
4629         (mul[sd]f3): Redefine using :SCALARF.
4630         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
4631         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
4632         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
4633         Check TARGET_FUSED_MADD for V2SF too.
4634         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
4635         were already named.
4636         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
4637         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
4638
4639 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4640
4641         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
4642         V2SF_type_node if it will be needed.
4643
4644 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4645
4646         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
4647         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
4648         (mips_prepare_builtin_target): New function.
4649         (mips_expand_builtin): Use them.  Update calls to subroutines.
4650         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
4651         cmp_choice with a boolean argument to select between movt and movf.
4652         Take the comparison's icode as an argument, not the function's fcode.
4653         (mips_expand_compare_builtin): New function.  Rename existing function
4654         to mips_expand_scalar_compare_builtin.
4655         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
4656         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
4657         comparison's icode as an argument, not the builtin's fcode.
4658
4659 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4660
4661         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
4662         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
4663         registers are false and -1 if all registers are true.
4664         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
4665         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
4666         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
4667         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
4668         (bc1any2t, bc1any2f): Likewise CCV2.
4669         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
4670
4671 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
4672
4673         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
4674         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
4675         UNSPEC rather than an IF_THEN_ELSE.
4676         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
4677         mips_cond_move_tf_ps by name.
4678
4679 2004-08-29  Chao-ying Fu  <fu@mips.com>
4680             James E Wilson  <wilson@specifixinc.com>
4681
4682         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
4683         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
4684         * config/mips/mips-ps-3d.md: New file.
4685         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
4686         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
4687         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
4688         (mips_output_move): Emit "mov.ps" for V2SFmode.
4689         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
4690         MODE_VECTOR_FLOAT.
4691         (override_options): Check if TARGET_MIPS3D and there was an explicit
4692         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
4693         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
4694         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
4695         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
4696         and allow CCV2 and CCV4 to occupy two and four CC registers.
4697         (print_fcc_operand): New function.
4698         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
4699         %Z to call print_fcc_operand.
4700         (mips_function_value): Handle MODE_VECTOR_FLOAT.
4701         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
4702         (mips_vector_mode_supported_p): New function.
4703         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
4704         (builtin_description): New struct.
4705         (mips_bdesc): New array of struct builtin_description.
4706         (mips_expand_builtin, mips_init_builtins,
4707         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
4708         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
4709         functions.
4710         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
4711         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
4712         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
4713         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
4714         "-mips3d", and "-mno-mips3d".
4715         (ASM_SPEC): Map -mips3d to -mips3d in gas.
4716         (EXTRA_CONSTRAINT_Y): New macro.
4717         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
4718         multi-letter constraint 'Y'.
4719         (CONSTRAINT_LEN): New macro.
4720         (enum mips_builtins): New for MIPS builtin functions.
4721         (enum mips_function_type): New for the types of MIPS builtin functions.
4722         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
4723         * config/mips/mips.md: New constants for paired single and MIPS-3D
4724         instructions.  Include the new mips-ps-3d.md file.
4725         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
4726         movv2sf_hardfloat_64bit): New named patterns.
4727         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
4728         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
4729         sdxc1_v2sf_di): New unnamed patterns.
4730         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
4731         const_vector support.
4732         (const_0_or_1_operand): New predicate.
4733         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
4734
4735 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
4736
4737         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
4738         (tree-ssa-propagate.o): New rule.
4739         (GTFILES): Add tree-ssa-propagate.c.
4740         * tree-flow.h (struct stmt_ann_d): Remove field
4741         in_ccp_worklist.
4742         * tree-ssa-propagate.c: New file.
4743         * tree-ssa-propagate.h: New file.
4744         * tree-ssa-ccp.c: Re-write to use the routines from
4745         tree-ssa-propagate.c.
4746
4747 2004-08-28  Andrew Pinski  <apinski@apple.com>
4748
4749         * tree-ssa-loop.c: Remove extra include of basic-block.h.
4750
4751 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
4752
4753         * c-common.h: Update comments about ObjC/ObjC++ entry points.
4754         (objc_is_reserved_word): New prototype.
4755         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
4756         separate section; these are call-backs.
4757         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
4758         ObjC/ObjC++ "@" keywords.
4759         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
4760         prototypes; they already live in c-common.h.
4761         * stub-objc.c: Update copyright notice.
4762         (objc_is_reserved_word): New stub.
4763
4764 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
4765
4766         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
4767         even when not checking.
4768
4769 2004-08-27  Jason Merrill  <jason@redhat.com>
4770
4771         PR c++/13684
4772         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
4773         (gimple_push_cleanup): Add eh_only parm.
4774         (gimplify_target_expr): Pass it.
4775         * c.opt (-fno-threadsafe-statics): New option.
4776         * c-opts.c (c_common_handle_option): Handle it.
4777         * c-common.h (flag_threadsafe_statics): Declare it.
4778         * c-common.c (flag_threadsafe_statics): Record it.
4779         * doc/invoke.texi: Document it.
4780         * tsystem.h (_GNU_SOURCE): Define.
4781         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
4782         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
4783         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
4784         (__gthread_recursive_mutex_init_function): New fn.
4785         (__gthread_recursive_mutex_lock): New fn.
4786         (__gthread_recursive_mutex_trylock): New fn.
4787         (__gthread_recursive_mutex_unlock): New fn.
4788         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
4789         * gthr-win32.h, gthr-vxworks.h: Likewise.
4790         * gthr.h: Document.
4791
4792 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
4793
4794         * config/rs6000/rs6000.c (rs6000_override_options): Increase
4795         maximum skip to 15.  Set function alignment, jump alignment, and
4796         loop alignment to 16 for processors that form dispatch groups.
4797         (rs6000_rtx_costs): outer_code is used.
4798
4799 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
4800
4801         * stor-layout.c (sizetype_set): Remove.
4802         (set_sizetype): Don't test or set it.
4803
4804         * tree.h (size_int_type): Remove.
4805         * fold-const.c: Do not #include gt-fold-const.h.
4806         (size_htab_hash, size_htab_eq): Remove.
4807         (size_int_kind): Use build_int_cst.
4808         (new_const, size_htab): Remove.
4809         (size_int_type): Remove.
4810         (round_up): Use build_int_cst.
4811         (round_down): Likewise. Remove spurious constant build.
4812
4813 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
4814
4815         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
4816         Add is_release variable, use it for --enable-werror and
4817         --enable-checking defaults.
4818         * system.h (gcc_assert, gcc_unreachable): New.
4819         * doc/install.texi (--enable-checking): Update.
4820         * configure, config.in: Rebuilt.
4821
4822 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
4823
4824         * rtl.h (read_rtx): Change prototype.
4825         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
4826         line number.  Return true on success.
4827         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
4828         callers accordingly.
4829
4830 2004-08-26  Richard Henderson  <rth@redhat.com>
4831
4832         * c-typeck.c (build_offsetof): Remove.
4833         * c-tree.h (build_offsetof): Remove.
4834         * c-common.c (fold_offsetof_1, fold_offsetof): New.
4835         * c-common.h (fold_offsetof): Declare.
4836         * c-parse.in (offsetof_base): New.
4837         (offsetof_member_designator): Use it.  Build references, not just
4838         a tree list.
4839         (primary): Use fold_offsetof, not build_offsetof.
4840
4841 2004-08-26  Richard Henderson  <rth@redhat.com>
4842
4843         * tree.c (staticp): Return the static object.
4844         * tree.h (staticp): Update decl.
4845         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
4846         * langhooks.c (lhd_staticp): Return NULL_TREE.
4847         * langhooks-def.h (lhd_staticp): Update decl.
4848         * c-common.c (c_staticp): Return the static object.
4849         * c-common.h (c_staticp): Update decl.
4850
4851 2004-08-26  Richard Henderson  <rth@redhat.com>
4852
4853         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
4854         modes.
4855
4856 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
4857
4858         PR c/13801
4859         * c-decl.c (struct c_binding): Add type and inner_comp fields.
4860         (bind): Set type and inner_comp fields.
4861         (pop_scope): Restore type of decl to the correct type from an
4862         outer scope.  Give error when popping file scope for incomplete
4863         arrays completed incompatibly with default initialization in an
4864         inner scope.
4865         (diagnose_mismatched_decls): Handle externs with initializers at
4866         block scope.
4867         (pushdecl): Set type of external declaration at block scope based
4868         only on the visible declarations.  Save type when changing the
4869         type of a declaration.  Merge an external declaration at block
4870         scope with a visible static declaration at file scope.
4871         (implicitly_declare): Give recycled old declaration the new type
4872         except for incompatible declarations of built-in functions, saving
4873         the old type.
4874
4875 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
4876
4877         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
4878
4879 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
4880
4881         * tree-alias-common.c (gate_pta): New function.
4882         (pass_build_pta): Use it.
4883         (pass_del_pta): Use it.
4884         (delete_alias_vars): Don't check flag_tree_points_to.
4885
4886 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
4887
4888         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
4889         TFmode as additional register mode cloberred by call.
4890
4891 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
4892
4893         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
4894         parallel pattern for library call returning DImode in
4895         mixed mode.
4896
4897 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
4898
4899         * config/rs6000/rs6000.c (function_arg): Generate parallel
4900         pattern for more split args.
4901
4902 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
4903
4904         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
4905         either gen_movdi_di_update or gen_movdi_si_update depending on
4906         target mode.
4907         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
4908         to generate two versions.
4909
4910 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
4911
4912         * Makefile.in (lambda-code.o): New.
4913         (lambda-trans.o): Ditto.
4914         (TREE_DATA_REF_H): Ditto.
4915         (LAMBDA_H): Ditto.
4916         (lambda-mat.o): Use LAMBDA_H.
4917         (tree-data-ref.o): Ditto.
4918         * lambda-code.c: New file.  Lambda code generation algorithm.
4919         * lambda-trans.c: Ditto. Lambda transformation matrix support.
4920         * lambda.h: Add lambda loop structures.
4921         Add lambda loopnest structures.
4922         Add lambda body vector structure.
4923         Add lambda linear expression structures.
4924         Add prototypes for functions in new files.
4925         * lambda-mat.c: Include tree.h
4926
4927 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
4928             Sebastian Pop  <pop@cri.ensmp.fr>
4929
4930         * tree-data-ref.h: Include lambda.h
4931         (free_dependence_relation): Declared here.
4932         (free_dependence_relations): Ditto.
4933         (free_data_refs): Ditto.
4934         * tree-data-ref.c (free_dependence_relation): New function.
4935         (free_dependence_relations): Ditto.
4936         (free_data_refs): Ditot.
4937         (analyze_all_data_dependences): Free datarefs and dependence_relations.
4938         (build_classic_dist_vector): Store in the dependence_relations the
4939         information. Each arc in the dependence_relations graph is labelled
4940         with the distance and direction vectors.
4941         (build_classic_dir_vector): Ditto.
4942         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
4943         Now computes again the whole dependence graph including read-read
4944         relations.
4945         (compute_data_dependences_for_loop): Now dependence_relations contains
4946         all the data, and thus it doesn't need to initialize the classic_dir
4947         and classic_dist vectors.
4948         (analyze_all_data_dependences): Adjusted for using the new interface of
4949         compute_data_dependences_for_loop.  Remove the statistics dump.
4950
4951 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
4952
4953         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
4954         (xtensa_expand_block_move): Update comment.
4955         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
4956
4957 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
4958
4959         PR target/13506
4960         * toplev.c (crash_signal): If we crashed while emitting
4961         a user asm, then die more gracefully.
4962
4963 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
4964
4965         PR target/17119.
4966         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
4967         checking for a valid constant, regardless of sign.
4968
4969 2004-08-25  Richard Henderson  <rth@redhat.com>
4970
4971         PR target/16974
4972         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
4973         if the constant satisfies add_operand.
4974
4975 2004-08-25  Richard Henderson  <rth@redhat.com>
4976
4977         PR debug/10695
4978         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
4979         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
4980         unwind info for >16-bit frames.
4981
4982 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
4983
4984         PR target/17171
4985         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
4986
4987 2004-08-25  Richard Henderson  <rth@redhat.com>
4988
4989         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
4990         (TARGET_CANNOT_FORCE_CONST_MEM): New.
4991
4992 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
4993
4994         * doc/tree-ssa.texi: Document new operand iterator.
4995
4996 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
4997
4998         PR target/16480
4999         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
5000         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
5001         as PLUS base regs.
5002
5003 2005-08-28  Paul Brook  <paul@codesourcery.com>
5004
5005         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
5006         -mfpu=vfp -march=armv5t
5007         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
5008
5009 2004-08-25  Richard Henderson  <rth@redhat.com>
5010
5011         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
5012         * target.h (struct gcc_target): Add scalar_mode_supported_p.
5013         * targhooks.c (default_scalar_mode_supported_p): New.
5014         * targhooks.h (default_scalar_mode_supported_p): Declare.
5015         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
5016
5017         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
5018         before attempting to create types.  Tidy.
5019         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
5020
5021         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
5022         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
5023
5024 2004-08-25  Richard Henderson  <rth@redhat.com>
5025
5026         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
5027         set REAL_MODE_FORMAT for TFmode.
5028
5029 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
5030
5031         * c-decl.c (grokparm): New function.
5032         * c-tree.h (grokparm): New prototype.
5033
5034 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
5035
5036         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
5037         iterator controlling structure.
5038         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
5039         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
5040         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
5041         iterator flags.
5042         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
5043         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
5044         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
5045         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
5046         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
5047         Empty operand pointers.
5048         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
5049         (op_iter_next_use): New.  Return next use_operand_p.
5050         (op_iter_next_def): New.  Return next def_operand_p.
5051         (op_iter_next_tree): New.  Return next operands as a tree.
5052         (op_iter_init): New.  Initialize an iterator structure.
5053         (op_iter_init_use): New.  Initialize structure and get the first use.
5054         (op_iter_init_def): New.  Initialize structure and get the first def.
5055         (op_iter_init_tree): New.  Initialize structure and get the first tree.
5056         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
5057         (op_iter_init_maydef): New.  Initialize structure and get the first
5058         V_MAY_DEF operands.
5059         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
5060         * tree-dfa.c (compute_immediate_uses_for_stmt,
5061         redirect_immediate_uses): Use new operand iterator.
5062         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
5063         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
5064         operands instead of using *_disappeared_p routines.
5065         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
5066         ssa_rewrite_stmt): Use new operand iterator.
5067         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
5068         rewrite_trees): Use new operand iterator.
5069         * tree-pretty-print.c (dump_vops): Use new operand iterator.
5070         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
5071         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
5072         dump_points_to_info): Use new operand iterator.
5073         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
5074         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
5075         operand iterator.
5076         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
5077         propagate_necessity): Use new operand iterator.
5078         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
5079         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
5080         a parameter instead of a stmt_ann_t.
5081         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
5082         build_tree_conflict_graph): Use new operand iterator.
5083         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
5084         rewrite_mem_refs): Use new operand iterator.
5085         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
5086         check_loop_closed_ssa_use): Use new operand iterator.
5087         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
5088         * tree-ssanames.c (release_defs): Use new operand iterator.
5089         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
5090
5091 2004-08-25  Adam Nemet  <anemet@lnxw.com>
5092
5093         * tlink.c (initial_cwd): New variable.
5094         (tlink_init): Initialize it.
5095         (recompile_files): Use tlink_execute() instead of system().  Don't
5096         duplicate verbose output of collect_execute.  Restore initial_cwd.
5097         Update comment before the function.
5098
5099 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
5100
5101         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
5102         accept) a cast from one Objective-C pointer type to another.
5103
5104 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
5105
5106         * doc/install.texi: Document that libstdc++-v3 requires
5107         now automake 1.9.1.
5108
5109 2004-08-25  Caroline Tice  <ctice@apple.com>
5110
5111         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
5112         to comments at start of function.
5113         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
5114         comment.
5115         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5116         merge_blocks_move_predecessor_nojumps,
5117         merge_blocks_move_successor_nojumps, merge_blocks_move,
5118         try_crossjump_to_edge, try_crossjump_bb): Likewise.
5119         * cfglayout.c (fixup_reorder_chain): Likewise.
5120         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
5121         cfg_layout_can_merge_blocks_p):  Likewise.
5122         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
5123         * passes.c (rest_of_compilation): Update comments for calling
5124         optimization that partitions hot/cold basic blocks.
5125         * doc/invoke.texi:  Update documentation of
5126         freorder-blocks-and-partition flag.
5127
5128 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
5129
5130         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
5131         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
5132
5133 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
5134
5135         * config/mips/mips.md (any_shift): New code macro.
5136         (optab, insn): New code attributes.
5137         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
5138         Use the standard rather than internal patterns for the MIPS16
5139         double-shift optimization.
5140         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
5141         Redefine using :GPR and any_shift.
5142         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
5143         to cover all three shifts.
5144         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
5145         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
5146         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
5147
5148 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
5149
5150         * gimplify.c (lookup_tmp_var): Separate temporaries when not
5151         optimizing.
5152
5153 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5154
5155         PR libstdc++/17005 (fix for HP-UX 11.11)
5156         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
5157         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
5158         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
5159         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
5160         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
5161         (LINK_SPEC): Handle march=1.0 option.
5162         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
5163         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
5164         (SUBTARGET_OPTIONS): New define.
5165         (LINK_SPEC): Handle march=1.0 option.
5166         (STARTFILE_SPEC): New define.
5167         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
5168         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
5169         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
5170         (SUBTARGET_OPTIONS): New define.
5171         (LINK_SPEC): Handle march=1.0 option.
5172         (STARTFILE_SPEC): New define.
5173         * config/pa/pa.c (override_options): Add code to process -munix= option.
5174         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
5175         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
5176         defines.
5177         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
5178         (SUBTARGET_OPTIONS): Provide default define.
5179         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
5180         STANDARD_STARTFILE_PREFIX_2): New defines.
5181         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
5182         (ENDFILE_SPEC): Use %O.
5183         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
5184         Mention issue caused by changing namespace and runtime to UNIX 95/98.
5185         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
5186         Document -munix=std option.
5187
5188 2004-08-25  Steven Bosscher  <stevenb@suse.de>
5189
5190         * cse.c (cse_around_loop, cse_check_loop_start,
5191         cse_set_around_loop): Remove.
5192         (cse_basic_block): Remove the around_loop argument.
5193         (cse_end_of_basic_block): Remove the after_loop argument.
5194         (cse_main): Likewise.
5195         * rtl.h (cse_main): Update prototype.
5196         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
5197         rest_of_handle_gcse): Update cse_main calls.
5198
5199 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
5200
5201         * tree.h  (build_int_cst): New, sign extended constant.
5202         (build_int_cstu): New, zero extended constant.
5203         (build_int_cst_wide): Renamed from build_int_cst.
5204         * tree.c (build_int_cst, build_int_cstu): New.
5205         (build_int_cst_wide): Renamed from build_int_cst.
5206         (make_vector_type, build_common_tree_nodes,
5207         build_common_tree_nodes_2): Adjust build_int_cst calls.
5208         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
5209         expand_builtin_strpbrk, expand_builtin_fputs,
5210         build_string_literal, expand_builtin_printf,
5211         expand_builtin_sprintf, fold_builtin_classify_type,
5212         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
5213         fold_builtin_toascii, fold_builtin_isdigit,
5214         simplify_builtin_strstr, simplify_builtin_strpbrk,
5215         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
5216         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
5217         DEF_ATTR_INT): Likewise.
5218         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
5219         Likewise.
5220         * c-lex.c (interpret_integer, lex_charconst): Likewise.
5221         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
5222         * c-pretty-print.c (pp_c_integer_constant): Likewise.
5223         * c-typeck.c (really_start_incremental_init, push_init_level,
5224         set_nonincremental_init_from_string): Likewise.
5225         * calls.c (load_register_parameters): Likewise.
5226         convert.c (convert_to_pointer): Likewise.
5227         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
5228         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
5229         build_gcov_info): Likewise.
5230         * except.c (init_eh, assign_filter_values): Likewise.
5231         * expmed.c (store_fixed_bit_field, extract_bit_field,
5232         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
5233         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
5234         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
5235         * expr.c (convert_move, emit_group_load, emit_group_store,
5236         expand_assignment, store_constructor, store_field,
5237         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
5238         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
5239         invert_truthvalue, optimize_bit_field_compare,
5240         decode_field_reference, all_ones_mask_p, constant_boolean_node,
5241         fold_div_compare, fold, fold_read_from_constant_string,
5242         fold_negate_const, fold_abs_const, fold_not_const, round_up,
5243         round_down): Likewise.
5244         * function.c (assign_parm_setup_block): Likewise.
5245         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
5246         Likewise.
5247         * stor-layout.c (layout_type, initialize_sizetypes,
5248         set_min_and_max_values_for_integral_type): Likewise.
5249         * tree-chrec.c (chrec_fold_multiply_poly_poly,
5250         reset_evolution_in_loop): Likewise.
5251         * tree-chrec.h (build_polynomial_chrec): Likewise.
5252         * tree-complex.c (build_replicated_const): Likewise.
5253         * tree-eh.c (honor_protect_cleanup_actions,
5254         lower_try_finally_onedest, lower_try_finally_copy,
5255         lower_try_finally_switch): Likewise.
5256         * tree-mudflap.c (mf_build_string, mx_register_decls,
5257         mudflap_register_call, mudflap_enqueue_constant): Likewise.
5258         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
5259         * tree-pretty-print.c (dump_generic_node): Likewise.
5260         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
5261         Likewise.
5262         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
5263         * tree-ssa-loop-niter.c (number_of_iterations_cond,
5264         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
5265         Likewise.
5266         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
5267         canonicalize_loop_induction_variables): Likewise.
5268         * tree-vectorizer.c (vect_create_index_for_array_ref,
5269         vect_transform_loop_bound, vect_compute_data_ref_alignment):
5270         Likewise.
5271
5272         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
5273         alpha_gimplify_va_arg_1): Likewise.
5274         * config/arm/arm.c (arm_get_cookie_size): Likewise.
5275         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
5276         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
5277         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5278         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
5279         mips_gimplify_va_arg_expr): Likewise.
5280         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5281         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
5282         add_compiler_branch_island): Likewise.
5283         * config/s390/s390.c (s390_va_start): Likewise.
5284         * config/sh/sh.c (sh_va_start): Likewise.
5285         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
5286         Likewise.
5287         * config/xtensa/xtensa.c (xtensa_va_start,
5288         xtensa_gimplify_va_arg_expr): Likewise.
5289
5290         * objc/objc-act.c (build_objc_string_object,
5291         build_objc_symtab_template, init_def_list, init_objc_symtab,
5292         init_module_descriptor, generate_static_references,
5293         build_selector_translation_table, get_proto_encoding,
5294         build_typed_selector_reference, build_selector_reference,
5295         build_next_objc_exception_stuff,
5296         build_method_prototype_list_template, generate_descriptor_table,
5297         generate_protocols, build_protocol_initializer,
5298         build_ivar_list_template, build_method_list_template,
5299         build_ivar_list_initializer, generate_ivars_list,
5300         generate_dispatch_table, generate_protocol_list,
5301         build_category_initializer, build_shared_structure_initializer,
5302         generate_shared_structures, handle_impent,
5303         generate_objc_image_info): Likewise.
5304
5305 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
5306
5307         * cfglayout.c (duplicate_insn_chain): Remove references to
5308         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
5309         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
5310         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
5311         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
5312         and NOTE_INSN_LOOP_CONT.
5313         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
5314         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
5315         and NOTE_INSN_LOOP_CONT.
5316         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
5317         check_dbra_loop, loop_dump_aux): Remove references to removed notes
5318         and fields.
5319         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
5320         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
5321         references to removed notes and fields.
5322         (subtract_reg_term, ujump_to_loop_cont): Remove.
5323
5324 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
5325
5326         * doc/install.texi: Document that libcpp does not require
5327         Automake any longer.  Document that Automake 1.9.1 should
5328         work everywhere.
5329
5330 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
5331
5332         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
5333         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
5334         DWARF_DEBUGGING_INFO from choice-of-definition chain;
5335         restructure using C89 features (#elif, #error).
5336         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
5337         * config/sh/sh.h: Remove references to DWARF_DEBUG.
5338         * doc/invoke.texi: Remove references to DWARF version 1;
5339         clarify why -gdwarf-2<n> doesn't work.
5340
5341 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
5342
5343         * basic-block.h (BB_SET_PARTITION): Clear old value first.
5344         * cfg.c (clear_bb_flags): Don't clear partition setting.
5345         * ifcvt.c (find_if_case_1): Remove ??? comment.
5346
5347 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
5348
5349         PR target/17052
5350         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
5351         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
5352         current_function_stdarg in place of sysv_varargs_p.
5353         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
5354         sysv_varargs_p.
5355
5356 2004-08-24  Richard Henderson  <rth@redhat.com>
5357
5358         PR target/16298
5359         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
5360         random codes within CONST.
5361
5362 2004-08-24  James E Wilson  <wilson@specifixinc.com>
5363
5364         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
5365         -freorder-blocks-and-partition.
5366
5367 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5368
5369         PR middle-end/17044
5370         * tree-ssa-threadupdate.c (redirection_data): Make static.
5371         (thread_block): Use ggc_alloc_cleared to allocate struct
5372         redirection_data.  Don't free elements in redirection_data.
5373
5374 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5375
5376         * config/mips/predicates.md (small_data_pattern): Match prefetches.
5377
5378 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5379
5380         PR tree-optimization/17016
5381         * tree-ssa-loop-niter.c (number_of_iterations_cond,
5382         number_of_iterations_exit): Use POINTER_TYPE_P instead
5383         of testing for POINTER_TYPE.
5384
5385 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5386
5387         * tree-ssa-loop-ivcanon.c: New file.
5388         * tree-ssa-loop-manip.c (create_iv): New function.
5389         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
5390         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
5391         * cfgloop.c (mark_single_exit_loops): New function.
5392         (verify_loop_structure): Verify single-exit loops.
5393         * cfgloop.h (struct loop): Add single_exit field.
5394         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
5395         (mark_single_exit_loops): Declare.
5396         (tree_num_loop_insns): Declare.
5397         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
5398         (duplicate_loop_to_header_edge): Use it.
5399         * common.opt (fivcanon): New flag.
5400         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
5401         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
5402         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
5403         (bsi_insert_on_edge_immediate): New function.
5404         * tree-flow.h (bsi_insert_on_edge_immediate,
5405         canonicalize_induction_variables, tree_unroll_loops_completely,
5406         create_iv): Declare.
5407         * tree-optimize.c (init_tree_optimization_passes): Add
5408         pass_iv_canon and pass_complete_unroll.
5409         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
5410         * tree-scalar-evolution.c (get_loop_exit_condition,
5411         get_exit_conditions_rec, number_of_iterations_in_loop,
5412         scev_initialize): Use single_exit information.
5413         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
5414         missing assumptions.
5415         (loop_niter_by_eval):  Return number of iterations as unsigned
5416         int.
5417         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
5418         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
5419         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
5420         New passes.
5421         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
5422         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
5423         the defining statement is ready.
5424         * tree-vectorizer.c (vect_create_iv_simple): Removed.
5425         (vect_create_index_for_array_ref, vect_transform_loop_bound):
5426         Use create_iv.
5427         (vect_transform_loop_bound): Use single_exit information.
5428         (vect_analyze_loop_form): Cleanup bogus tests.
5429         (vectorize_loops): Do not call flow_loop_scan.
5430         * tree.h (may_negate_without_overflow_p): Declare.
5431         * fold-const.c (may_negate_without_overflow_p): Split out from ...
5432         (negate_expr_p): ... this function.
5433         (tree_expr_nonzero_p): Handle overflowed constants correctly.
5434         * doc/invoke.texi (-fivcanon): Document.
5435         * doc/passes.texi: Document canonical induction variable creation.
5436
5437 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5438
5439         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
5440         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
5441         using the mode of the operand to decide between them.
5442         * config/mips/mips.md (MOVECC): New mode macro.
5443         (ccreg): New mode attribute.
5444         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
5445         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
5446         (mov[sd]icc): Redefine using :GPR.
5447
5448 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5449
5450         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
5451         (mips_prefetch_cookie): New function.
5452         * config/mips/mips.c (print_operand_address): Fix handling of
5453         ADDRESS_CONST_INT.
5454         (mips_emit_prefetch): Delete.
5455         (mips_prefetch_cookie): New function.
5456         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
5457         mode of QImode for the address_operand.  Use mips_prefetch_cookie
5458         to calculate the first "pref" operand.
5459         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
5460         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
5461
5462 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
5463
5464         * arm.md: Include predicates.md.
5465         * predicates.md: New file.
5466         * arm.c (s_register_operand, arm_hard_register_operand)
5467         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
5468         (arm_immediate_operand, arm_neg_immediate_operand)
5469         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
5470         (arm_add_operand, arm_addimm_operand, arm_not_operand)
5471         (offsettable_memory_operand, alignable_memory_operand)
5472         (arm_reload_memory_operand, arm_float_rhs_operand)
5473         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
5474         (index_operand, shiftable_operator, logical_binary_operator)
5475         (shift_operator, equality_operator, arm_comparison_operator)
5476         (minmax_operator, cc_register, dominant_cc_register)
5477         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
5478         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
5479         (const_shift_operand, load_multiple_operation)
5480         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
5481         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
5482         (cirrus_register_operand, cirrus_fp_register)
5483         (cirrus_shift_const): Delete, replaced with equivalents in
5484         predicates.md.
5485         (shift_op): Handle ROTATE.
5486         * arm-protos.h: Delete declarations for above.
5487         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
5488         * t-arm (MD_INCLUDES): Add predicates.md.
5489         (s-preds): Depends on MD_INCLUDES.
5490
5491 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5492
5493         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
5494         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
5495         patterns.  Redefine using :GPR.  Give the match_operator a mode.
5496         Use '%2' rather than '%z2' for operand 2.
5497
5498 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5499
5500         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
5501         attribute.
5502
5503 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5504
5505         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
5506         of internal patterns.
5507         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
5508         Redefine using :P.
5509         (tablejump): Use expand_binop to calculate address.  Adjust names
5510         of internal patterns.
5511         (tablejump[sd]i): Renamed from tablejump_internal[12].
5512         Redefine using :P.
5513         (tablejump_mips16[12]): Delete.
5514
5515 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5516
5517         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
5518         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
5519         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
5520         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
5521         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
5522
5523 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
5524
5525         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
5526         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
5527         using :GPR.
5528         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
5529         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
5530         (*branch_equality[sd]i_inverted): Likewise
5531         branch_equality{,_di}_inverted.
5532         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
5533         Redefine using :GPR.
5534
5535 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
5536
5537         * rtl.def: Reorganize, placing all codes used only in machine
5538         descriptions at the end.
5539
5540         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
5541         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
5542         rtx_name, rtx_format arrays by direct reference to rtl.def,
5543         first undefining GENERATOR_FILE.  Define enum insn_note and
5544         note_insn_name array by direct reference to insn-notes.def.
5545         (adjust_field_rtx_def): Remove local definition of rtx_name.
5546         Use symbolic names for insn notes.
5547         * Makefile.in (gengtype.o): Update dependencies.
5548
5549 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
5550
5551         * basic-block.h (struct basic_block_def): Reorder fields to
5552         eliminate interior padding.  Remove 'partition' field.
5553         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
5554         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
5555         (BB_COPY_PARTITION): New macros.
5556         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
5557         Replace all references to the 'partition' field of a basic
5558         block with new macros.
5559
5560         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
5561         * final.c (final_scan_insn): Don't handle it.
5562         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
5563         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
5564         * sched-rgn.c (sched_is_disabled_for_current_region_p):
5565         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
5566
5567 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
5568
5569         * c-decl.c (c_init_decl_processing): Adjust
5570         build_common_tree_nodes call.
5571         * expmed.c (const_mult_add_overflow_p): Use
5572         build_distinct_type_copy.
5573         * stor-layout.c (early_type_list): Remove.
5574         (layout_type): Don't append to early_type_list.
5575         (initialize_sizetypes): Add signed_p argument.
5576         (set_sizetype): Overwrite the stub type nodes directly.
5577         * tree.c (copy_node_stat): Clear a type's value cache here ...
5578         (build_distinct_type): ... not here.
5579         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
5580         * tree.h (initialize_sizetypes): Add signed_p argument.
5581         (build_common_tree_nodes): Likewise.
5582
5583         * objc/objc-act.c (get_static_reference): Use
5584         build_variant_type_copy.
5585         (get_protocol_reference): Likewise.
5586         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
5587
5588 2004-08-24  Richard Henderson  <rth@redhat.com>
5589             Andrew Pinski  <apinski@apple.com>
5590
5591         * gimplify.c (gimplify_array_ref_to_plus): Delete.
5592         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
5593         for ARRAY_REF.
5594
5595         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
5596         ARRAY_REF also to get to the STRING_CST.
5597
5598 2004-08-24  Paul Brook  <paul@codesourcery.com>
5599
5600         * config/arm/arm.c (arm_override_options): Update error message.
5601         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
5602         TARGET_HARD_FLOAT_ABI.
5603         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
5604         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
5605
5606 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5607
5608         PR target/17093
5609         * config/m32r.md (movsi_sda): Add SI mode specification to
5610         UNSPEC.
5611
5612 2004-08-24  Nick Clifton  <nickc@redhat.com>
5613
5614         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
5615         of seth_add3_operand.
5616
5617 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
5618
5619         * Makefile.in (PROTO_OBJS): Add errors.o.
5620         * protoize.c (fancy_abort): Remove.
5621         * mips-tfile.c (fancy_abort): Add parameters.
5622
5623 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
5624
5625         * doc/trouble.texi (C++ misunderstandings): Fix example code.
5626
5627 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
5628
5629         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
5630         (host-default.o): Add dependency on HOOKS_H.
5631         * config/x-linux: Likewise.
5632         * config/x-solaris: Likewise.
5633         * config/i386/x-mingw32: Likewise.
5634         * config/rs6000/x-darwin: Likewise.
5635
5636 2004-08-23  James E Wilson  <wilson@specifixinc.com>
5637
5638         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
5639         DEF_REG_NOTE.
5640
5641 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
5642
5643         PR c/14492
5644         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
5645
5646 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
5647
5648         * cfg.c (check_bb_profile): Fix typos.
5649         * function.c (assign_parm_is_stack_parm): Likewise.
5650         * tree-nested.c: Likewise.
5651
5652 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
5653
5654         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
5655         Remove TYPECODE.
5656         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
5657
5658 2004-08-23  Eric Christopher  <echristo@redhat.com>
5659
5660         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
5661         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
5662         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
5663         * target.h: Ditto.
5664         * hooks.h: Include machmode.h.
5665         (hook_bool_mode_false): Declare.
5666         * hooks.c (hook_bool_mode_false): Define.
5667         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
5668         * stor-layout.c (layout_type): Ditto.
5669         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
5670         Define to target macro.
5671         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
5672         * config/arm/arm.c: Ditto. Use.
5673         * config/arm/arm.h: Ditto.
5674         * config/arm/arm-protos.h: Ditto.
5675         * config/i386/i386.c: Ditto.
5676         * config/i386/i386.h: Ditto.
5677         * config/rs6000/rs6000.c: Ditto.
5678         * config/rs6000/rs6000.h: Ditto.
5679         * config/sh/sh.c: Ditto.
5680         * config/sh/sh.h: Ditto.
5681         * config/sh/sh-protos.h: Ditto.
5682         * config/sh/sh.md: Use.
5683         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
5684         to TARGET_VECTOR_MODE_SUPPORTED_P.
5685
5686 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
5687
5688         * Makefile.in (BUILD_ERRORS): Set to build-errors.
5689         (errors.o): New target for host.
5690         (build-errors.o): New target for build.
5691         (genobjs): Replace errors.o with build-errors.
5692         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
5693         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
5694         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
5695         (fix-header.o): Add errors.h
5696         * collect2.c (fancy_abort): Add parameters.
5697         * collect2.h (fancy_abort): Don't declare.
5698         * errors.h (fancy_abort): Don't declare.
5699         * errors.c: Include either bconfig.h or config.h.
5700         (fancy_abort): Trim filename.
5701         * fix-header.c (v_fatal, fatal): Remove.
5702         (progname): Remove definition.
5703         (main): Set progname here.
5704         * gcc.c (fancy_abort): Add parameters.
5705         * gcc.h (fancy_abort): Remove declaration.
5706         * gcov.c (fancy_abort): Remove.
5707         * rtl.h (fancy_abort): Don't declare.
5708         (abort): Don't define.
5709         * tree.h (fancy_abort): Don't declare.
5710         (abort): Don't define.
5711         * system.h (fancy_abort): Declare.
5712         (abort): Define to fancy_abort.
5713         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
5714
5715         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
5716         (usize_type, ubitsizetype): Remove.
5717         * stor-layout.c (set_sizetype): Don't initialize usizetype,
5718         ubitsizetype.
5719         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
5720
5721         * tree.h (build_distinct_type_copy): New.
5722         (build_type_copy): ... here.  Rename to ...
5723         (build_variant_type_copy): ... here.
5724         * tree.c (build_qualified_type): Rename build_type_copy call.
5725         (build_distinct_type_copy): New, broken out of ...
5726         (build_type_copy): ... here.  Rename to ...
5727         (build_variant_type_copy): ... here.  Use
5728         build_distinct_type_copy.
5729         (build_common_tree_nodes_2): Rename build_type_copy call.
5730         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
5731         call.
5732         (handle_packed_attribute, handle_unused_attribute,
5733         handle_transparanet_union_attribute, handle_aligned_attribute,
5734         handle_deprecated_attribute): Likewise.
5735         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
5736         Likewise.
5737         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
5738         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
5739         build_distinct_type_copy.
5740
5741 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5742
5743         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
5744         attribute.
5745
5746 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5747
5748         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
5749         loads and stores.
5750         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
5751         formerly unnamed patterns.  Redefine using :P for the address.  Remove
5752         explicit length attributes.
5753
5754 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5755
5756         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
5757         New functions.
5758         (single_reachable_address): Use them.
5759         (schedule_sm): Add dump.
5760         (is_call_clobbered_ref): New function.
5761         (determine_lsm_reg): Check whether the reference is call clobbered.
5762         Only work for gimple_reg_type values.
5763
5764 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5765
5766         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
5767         $31 store insns.  Redefine using :GPR.
5768
5769 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5770
5771         * config/mips/mips.md (P): New mode macro.
5772         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
5773         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
5774         Add mode attributes.
5775
5776 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5777
5778         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
5779         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
5780         later constants to cover the gap.
5781         (load, store): New mode attributes.
5782         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
5783         Use new unspec constants.
5784
5785 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5786
5787         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
5788         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
5789         to use register_operand rather than uns_arith_operand as the predicate
5790         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
5791         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
5792         Redefine using :GPR.  Make same predicate change here.  Extend the
5793         commutativity of operands 1 and 2 from the SImode version to the
5794         DImode one.
5795         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
5796         but with no predicate changes.
5797         (*nor[sd]i3): Redefine using :GPR.
5798
5799 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5800
5801         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
5802         noreturn functions.
5803
5804 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5805
5806         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
5807         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
5808         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
5809         rather than "%z2" (with a fake const0_rtx for operand 2).
5810         (ffs[sd]i2): Redefine using :GPR.
5811         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
5812
5813 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5814
5815         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
5816
5817 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5818
5819         * config/mips/mips.md (any_extend): New code macro.
5820         (u, su): New code attributes.
5821         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
5822         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
5823         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
5824         (*{s,u}mul_acc_di): Redefine using any_extend.
5825         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
5826         to reflect real insn names.
5827         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
5828         with an any_extend template.
5829         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
5830         Add '*' to name.
5831
5832 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5833
5834         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
5835         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
5836         (mul[sd]i3_r4000): Redefine using :GPR.
5837         (mulsi3_mult3): Don't check TARGET_MAD separately.
5838         (muldi3_mult3): Moved after mulsi_mult3.
5839
5840 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5841
5842         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
5843         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
5844         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
5845         (TARGET_GAS, TARGET_MIPS_AS): Delete.
5846         (TARGET_GPWORD): Define to true for n32 on IRIX.
5847         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
5848         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
5849         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
5850         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
5851         (MDEBUG_ASM_SPEC): Delete, folding into...
5852         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
5853         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
5854         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
5855         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
5856         to define asm_abi_default_spec.
5857         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
5858         (TARGET_ASM_SELECT_SECTION): Delete.
5859         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
5860         for non-mips16 code, removing previous workaround for SGI assemblers.
5861         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
5862         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
5863         (override_options): Remove !TARGET_GAS and !have_named_sections code.
5864         (print_operand): Fold TARGET_GAS conditionals into asm strings.
5865         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
5866         ASM_STABS_OP and ASM_STABN_OP.
5867         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
5868         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
5869         (mips_output_function_prologue): Remove !TARGET_GAS code.
5870         (mips_select_rtx_section): Remove !have_named_sections code.
5871         (mips_select_section): Delete.
5872         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
5873         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
5874         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
5875         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
5876         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
5877         * config/mips/windiss.h (ASM_SPEC): Likewise.
5878
5879 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5880
5881         * read-rtl.c (map_value, mapping, macro_group): New structures.
5882         (BELLWETHER_CODE): New macro.
5883         (modes, codes, bellwether_codes): New variables.
5884         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
5885         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
5886         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
5887         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
5888         (add_map_value, initialize_macros): New functions.
5889         (def_hash, def_hash_eq_p): Generalize to anything that points to,
5890         or starts with, a char * field.
5891         (find_macro, read_mapping, check_code_macro): New functions.
5892         (read_rtx_1): New, split out from read_rtx.  Handle the new
5893         define_{mode,code}_{macro,attr} constructs.  Use find_macro
5894         to parse the name of a code or mode.  Use BELLWETHER_CODE to
5895         extract the format and to choose a suitable code for rtx_alloc.
5896         Modify recursive invocations to use read_rtx_1.
5897         (read_rtx): Call initialize_macros.  Apply code and mode macros
5898         to the rtx returned by read_rtx_1.  Cache everything after the
5899         first macro expansion for subsequent read_rtx calls.
5900         * doc/md.texi: Document new .md constructs.
5901         * config/mips/mips.md (GPR): New mode macro.
5902         (d, si8_di5): New mode attributes.
5903         (any_cond): New code macro.
5904         (add[sd]i3): Redefine using :GPR.
5905         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
5906         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
5907         previously unnamed MIPS16 patterns.
5908         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
5909         lines.  Don't match (plus (const_int 0) ...).
5910         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
5911         Use a define_split to generate the addition.
5912         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
5913         (subsi3_internal): Delete.
5914         (*subsi3_extended): Renamed from subsi3_internal_2.
5915         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
5916         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
5917         using an any_cond template.
5918
5919 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5920
5921         * read-rtl.c (read_rtx): Tidy use of format_ptr.
5922
5923 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
5924
5925         * read-rtl.c (string_obstack): New file-scope variable.
5926         (read_string, read_quoted_string, read_braced_string)
5927         (read_escape): Remove obstack parameter and use string_obstack instead.
5928         (read_rtx): Remove function-local rtl_obstack and initialize
5929         string_obstack instead.  Update call to read_string.
5930
5931 2004-08-22  Andrew Pinski  <apinski@apple.com>
5932
5933         PR c/15262
5934         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
5935         expression is not constant.
5936         (c_finish_return): Do not go through INDIRECT_REF when looking
5937         for the inner expression of an ADDR_EXPR for warning about.
5938
5939 2004-08-22  Richard Henderson  <rth@redhat.com>
5940
5941         PR 17075
5942         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
5943         create new blocks and fall through.
5944         (expand_gimple_basic_block): Update to match.
5945
5946 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
5947
5948         * reload.c (find_reloads_address): Make return value tri-state.
5949         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
5950         (find_reloads): Assume that reloaded addresses match 'o' or
5951         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
5952         returned 1 (not -1).  Omit optional reloads for address operands
5953         only if find_reloads_address returned 1 (not -1).
5954
5955         * config/s390/s390.c (legitimize_reload_address): New function.
5956         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
5957         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
5958         legitimize_reload_address.
5959
5960 2004-08-22  Richard Hendersion  <rth@redhat.com>
5961
5962         * tree.h (SAVE_EXPR_RESOLVED_P): New.
5963         * gimplify.c (gimplify_save_expr): Use it.
5964         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
5965         on the temporary variable.
5966
5967 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
5968
5969         * fold-const.c (rtl_expr_nonnegative_p): Delete.
5970         * tree.h (rtl_expr_nonnegative_p): Remove.
5971
5972 2004-08-22  Steven Bosscher  <stevenb@suse.de>
5973
5974         * config/i386/ppro.md (ppro_complex_insn): Add missing check
5975         for cpu==pentiumpro.
5976
5977         * combine.c (struct reg_stat): Fix comment typo.
5978
5979 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
5980
5981         * c-tree.h (c_sizeof_nowarn): Remove.
5982
5983 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
5984
5985         * c-decl.c (set_array_declarator_type): Rename to
5986         set_array_declarator_inner.
5987         (build_c_parm, build_attrs_declarator, build_function_declarator):
5988         New functions.
5989         (make_pointer_declarator): Call build_attrs_declarator.
5990         * c-tree.h (set_array_declarator_type): Rename to
5991         set_array_declarator_inner.
5992         (build_c_parm, build_attrs_declarator, build_function_declarator):
5993         New prototypes.
5994         * c-parse.in (after_type_declarator,
5995         parm_declarator_starttypename, parm_declarator_nostarttypename,
5996         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
5997         firstparm): Use these functions
5998
5999 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
6000
6001         * c-decl.c (build_array_declarator, set_array_declarator_type,
6002         start_decl, grokdeclarator, grokparms): Change boolean parameters
6003         to type bool.
6004         * c-tree.h (build_array_declarator, set_array_declarator_type,
6005         start_decl): Update prototypes.
6006         * c-decl.c, c-parse.in: All callers changed.
6007
6008 2004-08-21  Mike Stump  <mrs@apple.com>
6009
6010         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
6011         (darwin_fix_and_continue): Likewise.
6012         (darwin_fix_and_continue_switch): Likewise.
6013         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
6014         (darwin_fix_and_continue): Likewise.
6015         (darwin_fix_and_continue_switch): Likewise.
6016
6017 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
6018
6019         PR  c++/16030
6020         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
6021         Remove, merging into ...
6022         (gen_stdcall_or_fastcall_suffix): New function, returning tree
6023         rather than const char*, and accepting additional parameter.
6024         Don't add suffix to '*'-prefixed symbols or variadic functions.
6025         (i386_pe_encode_section_info): Adjust for call to new function.
6026         Call change_decl_assembler_name.
6027
6028 2004-08-20  Mike Stump  <mrs@apple.com>
6029
6030         * config/darwin.c (machopic_indirect_data_reference): Mark
6031         stubs as defined.
6032         * config/386/386.c (darwin_local_data_pic): Add.
6033         (legitimate_constant_p): Reorder so that PLUS handling runs
6034         before darwin_local_data_pic to match the ordering in
6035         legitimate_pic_address_disp_p and so that MINUS runs after
6036         darwin_local_data_pic as otherwise the darwin_local_data_pic
6037         logic can be skipped, which would be very bad.
6038         (legitimate_pic_address_disp_p): Move from from here to
6039         darwin_local_data_pic so it can be reused.
6040
6041 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
6042
6043         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
6044         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
6045         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
6046         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
6047         (RS6000_ABI_NAME): Define as "linux".
6048         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
6049         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
6050         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
6051         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
6052         * config/rs6000/rs6000.c (dot_symbols): New global var.
6053         (rs6000_output_function_entry): New function, modified for
6054         !DOT_SYMBOLS..
6055         (print_operand <case 'z'>): ..extracted from here.
6056         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
6057         (rs6000_output_function_epilogue): Likewise.
6058         (rs6000_elf_declare_function_name): Likewise.
6059         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
6060         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
6061         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
6062         * configure: Regenerate.
6063         * config.in: Regenerate.
6064
6065 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
6066
6067         * reload.c (find_reloads_address): Fix thinko in previous change.
6068
6069         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
6070         a CONST_INT.
6071
6072 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
6073
6074         PR rtl-optimization/17099
6075         * combine.c (force_to_mode): Check if inner_mask has any bits set
6076         outside of GET_MODE (x) instead of op_mode.
6077
6078 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
6079
6080         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
6081         fragment.
6082         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
6083         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
6084         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
6085         architecture.
6086         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
6087         configurations.
6088         * config/arm/t-symbian: New file.
6089
6090 2004-08-20  Andrew Pinski  <apinski@apple.com>
6091
6092         * regrename.c (kill_value_regno): ANSIfy.
6093
6094 2004-08-20  Dale Johannesen  <dalej@apple.com>
6095
6096         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
6097
6098 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
6099
6100         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
6101         (kill_value_regno): New function, derived from kill_value.
6102         (kill_value): Update.
6103         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
6104
6105 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
6106
6107         Fix PR tree-optimization/17111
6108         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
6109         of non-value_handles.
6110         (bitmap_set_contains): All constants are in every set.
6111
6112 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
6113
6114         * fold-const.c (round_up, round_down): Use build_int_cst.
6115         Optimize common case.
6116
6117 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
6118             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6119
6120         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
6121         one_only_data_section): Rename to som_readonly_data_section,
6122         som_one_only_readonly_data_section and som_one_only_data_section.
6123         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
6124         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
6125         conditional defines.
6126         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
6127         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
6128         string values.
6129         (pa_select_section): Use renamed section functions.
6130         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
6131         SOM_READONLY_DATA_SECTION_FUNCTION,
6132         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
6133         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
6134         Define here ...
6135         * config/pa/som.h: ... not here.
6136         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
6137         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
6138         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
6139         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
6140         (READONLY_DATA_SECTION): Use som_readonly_data_section.
6141
6142 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
6143
6144         * fold-const.c (int_const_binop): Don't generate non-overflowing
6145         size-types specially.
6146         (fold_convert_const): Likewise.
6147
6148         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
6149         clear cache on copied sizetype.
6150
6151 2004-08-20  Ben Elliston  <bje@au.ibm.com>
6152
6153         * configure.ac: Don't escape apostrophe in --enable-coverage help.
6154         * configure: Regenerate.
6155
6156 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
6157
6158         PR 5620
6159         * gcc.c (struct stat input_stat): Don't define if
6160         HOST_LACKS_INODE_NUMBERS
6161         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
6162         than stat to determine if temp file is same as input file.
6163         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
6164         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
6165
6166 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
6167
6168         * configure.ac (mips*-*-*): Print an error if not using GAS.
6169         * configure: Regenerated.
6170         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
6171         comments about buggy MIPSpro assemblers.
6172         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
6173         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
6174         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
6175         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
6176         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
6177         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
6178         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
6179         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
6180         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
6181         of more general IRIX 6 definitions.
6182         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
6183         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
6184         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
6185         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
6186         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
6187         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
6188         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
6189         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
6190         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
6191         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
6192         (LINK_SPEC): Move most of definition to iris.h.
6193         (SUBTARGET_LINK_SPEC): New macro.
6194         (IRIX_STARTFILE_SPEC): Fold into...
6195         (STARTFILE_SPEC): ...here.
6196         (IRIX_ENDFILE_SPEC): Fold into...
6197         (ENDFILE_SPEC): ...here.
6198         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
6199         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
6200         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
6201         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
6202         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
6203         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
6204         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
6205         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
6206         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
6207         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
6208         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
6209         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
6210         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
6211         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
6212         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
6213         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
6214         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
6215         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
6216         (TARGET_IRIX6): Define to 1.
6217         (DRIVER_SELF_SPECS): Define.
6218         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
6219         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
6220         (SUBTARGET_LINK_SPEC): New macro.
6221         (IRIX_STARTFILE_SPEC): Fold into...
6222         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
6223         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
6224         (LIB_SPEC, LIBGCC_SPEC): Use them.
6225         (LIB_SPEC): Remove !mabi=* case.
6226         (IRIX_ENDFILE_SPEC): Fold into...
6227         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
6228         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
6229         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
6230         (TARGET_IRIX6): New macro.
6231         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
6232         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
6233         (LABEL_AFTER_LOC): Delete.
6234         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
6235         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
6236         (mips_build_builtin_va_list): Check TARGET_IRIX6.
6237         (override_options): Remove TARGET_SGI_O32_AS-related code.
6238         (irix_output_external_libcall): Make static.
6239         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
6240         LABEL_AFTER_LOC.
6241         (mips_file_start): Tidy guard for ABI sections.  Remove use of
6242         ABICALLS_ASM_OP; use .abicalls instead.
6243         (mips_output_aligned_decl_common, mips_declare_object_name)
6244         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
6245         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
6246         .globl foo .text directives.
6247         (irix_asm_named_section_1, irix_asm_named_section)
6248         (irix_section_align_entry, irix_section_align_htab)
6249         (irix_orig_asm_out_file, irix_section_align_entry_eq)
6250         (irix_section_align_entry_hash, irix_asm_output_align)
6251         (irix_file_start, irix_section_align_1, copy_file_data)
6252         (irix_file_end, irix_section_type_flags): Delete.
6253         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
6254         Use standard section syntax.  Remove protective "jr $31".
6255         (__gcc_fini): Likewise .gcc_fini.
6256         * config/mips/irix-crtn.asm: Adjust sections accordingly.
6257         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
6258         iris5gas.h.
6259         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
6260         from t-irix-gld.
6261         (EXTRA_MULTILIB_PARTS): Define.
6262         * config/mips/t-iris6: Remove bogus comment.
6263         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
6264         * config/mips/iris5gas.h, config/mips/iris5gld.h,
6265         config/mips/iris6gas.h, config/mips/iris6gld.h,
6266         config/mips/t-iris5-as, config/mips/t-iris5-gas
6267         config/mips/t-irix-gld: Delete.
6268         * config/mips/iris.h: New file.
6269         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
6270
6271 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
6272
6273         * postreload.c (reload_cse_move2add): Allow any condjump, but check
6274         that the implicit set isn't clobbered in the jump insn.
6275
6276 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
6277
6278         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
6279         * optabs.c (init_optabs): Don't check it.
6280         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
6281         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
6282
6283 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
6284
6285         * config/s390/s390.md (s390_warn_framesize_string)
6286         (s390_warn_dynamic_string, s390_stack_size_string)
6287         (s390_stack_guard_string): New global string variables.
6288         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
6289         (s390_stack_guard): New global variables.
6290         (override_options): Added checks for the new options.
6291         (s390_emit_prologue): Emit stack check and trap code and perform
6292         compile time stack size checking.
6293
6294         * config/s390/s390.h (TARGET_OPTIONS): Added new options
6295         "warn-framesize", "warn-dynamicstack", "stack-size" and
6296         "stack-guard".
6297
6298         * doc/invoke.texi: Added documentation for the new options.
6299
6300 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
6301
6302         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
6303         to eliminate warning.
6304         (linear_search_fdes): Declare p as unsigned.
6305         (binary_search_mixed_encoding_fdes): Likewise.
6306         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
6307         to eliminate warning.
6308         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
6309         type cast.
6310
6311 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
6312
6313         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
6314         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
6315         instead of one.  Check for strictly legitimate address.
6316         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
6317         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
6318
6319 2004-08-19  Eric Christopher  <echristo@redhat.com>
6320
6321         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
6322         * langhooks.h (unsave_expr_now): Ditto.
6323         * tree.h (unsave_expr_1): Remove prototype.
6324         (lhd_unsave_expr_now): Rename to unsave_expr_now.
6325         * tree-inline.c (unsave_expr_1): Move here
6326         from tree.c. Make static.
6327         (unsave_expr_now): Rename from lhd_unsave_expr_now.
6328         * tree-sra.c: Fix up for rename.
6329         * tree-ssa-copy.c: Ditto.
6330         * tree-eh.c: Ditto.
6331         * tree.c (unsave_expr_1): Move to tree-inline.c.
6332
6333 2004-08-19  Caroline Tice  <ctice@apple.com>
6334
6335         * config/i386/cygming.h (switch_to_section):  Fix typo (change
6336         in_unlikely_text_section to in_unlikely_executed_text).
6337
6338 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
6339
6340         * vec.h (VEC_lower_bound): New macro.
6341
6342 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
6343
6344         PR target/16446
6345         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
6346         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
6347         treat each ABI separately.  Deal with n32/n64 complex float arguments.
6348         (function_arg): Add associated complex handling here.
6349
6350 2004-08-19  Richard Henderson  <rth@redhat.com>
6351
6352         * config/arm/arm.c (arm_gen_load_multiple): Use
6353         adjust_automodify_address.  Take base memory and offset instead
6354         of unchanging/struct/scalar bits.
6355         (arm_gen_store_multiple): Likewise.
6356         (arm_gen_movmemqi): Use adjust_automodify_address.
6357         * config/arm/arm-protos.h: Update decls.
6358         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
6359         (store_multiple): Similarly.
6360
6361 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
6362
6363         * regclass.c (globalize_reg): Update call_really_used_regs.
6364
6365 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
6366
6367         * doc/invoke.texi (integer-share-limit): Document.
6368
6369         * tree.h (TYPE_CACHED_VALUES_P): New.
6370         (TYPE_CACHED_VALUES): New.
6371         (TYPE_ORIG_SIZE_TYPE): Adjust.
6372         * tree.def (INTEGER_CST): Update documentation.
6373         * tree.c: Inlcude params.h.
6374         (build_int_cst): Cache small values.
6375         (build_type_copy): Do not copy the value cache.
6376         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
6377         unneeded zeroing.
6378         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
6379         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
6380         cache.
6381         * fold-const.c (force_fit_type): Copy value when setting
6382         overflows.
6383         (int_const_binop): Likewise.
6384         * stor-layout.c: Include params.h
6385         (set_sizetype): Create values cache.
6386         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
6387         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
6388         * params.h (INTEGER_SHARE_LIMIT): New.
6389         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
6390
6391 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
6392
6393         * gimplify.c (gimplify_minimax_expr): Remove.
6394         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
6395
6396 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
6397
6398         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
6399         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
6400
6401 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
6402
6403         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
6404
6405 2004-08-18  Andrew Pinski  <apinski@apple.com>
6406
6407         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
6408
6409 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
6410
6411         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
6412         (__aeabi_ul2f): Likewise.
6413
6414 2004-08-18  Richard Henderson  <rth@redhat.com>
6415
6416         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
6417         move to rtl completely.
6418         (struct meminsnbuf, xtensa_emit_block_move): Remove.
6419         (xtensa_find_mode_for_size): Remove.
6420         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
6421         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
6422
6423 2004-08-18  Richard Henderson  <rth@redhat.com>
6424
6425         * config/mcore/mcore.c (mode_from_align): Remove DImode.
6426         (block_move_sequence): Rewrite to use adjust_address.
6427         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
6428         Return boolean indicating success/failure.
6429         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
6430         * config/mcore/mcore.md (movmemsi): Update to match.
6431
6432 2004-08-18  Mike Stump  <mrs@apple.com>
6433
6434         * doc/invoke.texi (-mfix-and-continue): Add support for
6435         fast turn around debugging.
6436         (-ffix-and-continue): Likewise.
6437         (-mindirect-data): Likewise.
6438         (-findirect-data): Likewise.
6439         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
6440         (indirect_data): Likewise.
6441         (machopic_data_defined_p): Likewise.
6442         (machopic_output_indirection): Likewise.
6443         (darwin_encode_section_info): Likewise.
6444         (darwin_fix_and_continue): Likewise.
6445         (darwin_fix_and_continue_switch): Likewise.
6446         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
6447         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6448         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
6449         (SUBTARGET_OPTIONS): Likewise.
6450         (darwin_fix_and_continue): Likewise.
6451         (darwin_fix_and_continue_switch): Likewise.
6452         (TARGET_FIX_AND_CONTINUE): Likewise.
6453         * config/rs6000.c (rs6000_emit_prologue): Likewise.
6454
6455 2004-08-19  Steven Bosscher  <stevenb@suse.de>
6456
6457         * basic-block.h (struct edge_def): Remove crossing_edge.
6458         (EDGE_CROSSING): New define.
6459         (EDGE_ALL_FLAGS): Update.
6460         * bb-reorder.c (find_traces_1_round, better_edge_p,
6461         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
6462         find_jump_block, fix_crossing_conditional_branches,
6463         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
6464         Replace all occurences of crossing_edge with an edge flag check
6465         or set/reset.
6466         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6467         try_crossjump_bb): Likewise.
6468         * cfglayout.c (fixup_reorder_chain): Likewise.
6469         * cfgrtl.c (force_nonfallthru_and_redirect,
6470         commit_one_edge_insertion): Likewise.
6471
6472         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
6473         * tree-flow.h (compute_dominance_frontiers): Move prototype...
6474         * basic-block.h:  ...here.
6475         * tree-cfg.c (compute_dominance_frontiers_1,
6476         compute_dominance_frontiers): Move from here...
6477         * cfganal.c: ...to here.  Include timevar.h.
6478
6479 2004-08-18  James E Wilson  <wilson@specifixinc.com>
6480
6481         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
6482         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
6483
6484         * config/mips/mips.md (type): Add frdiv.
6485         (divsf3+1, divsf3+2): Change type to frdiv.
6486         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
6487         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
6488
6489         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
6490         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
6491         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
6492         * config/mips/5000.md (r5k_fdiv_single): Likewise.
6493         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
6494         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
6495         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
6496         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
6497         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
6498         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
6499         Likewise.
6500         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
6501
6502 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
6503
6504         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
6505         get regression tester working again.
6506
6507 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
6508
6509         * insn-notes.def, reg-notes.def: New files.
6510         * rtl.h: Use them to define enum insn_note and enum reg_note.
6511         * rtl.c: Use them to define note_insn_name and reg_note_name.
6512         * Makefile.in (RTL_BASE_H): Update.
6513
6514         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
6515         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
6516
6517 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
6518
6519         * arm.c (arm_size_rtx_costs): New function.
6520         (arm_override_options): Use it if optimizing for space.
6521
6522 2004-08-18  Richard Henderson  <rth@redhat.com>
6523
6524         * emit-rtl.c (gen_const_mem): New.
6525         * rtl.h (gen_const_mem): Declare.
6526         * expr.c (do_tablejump): Use it.
6527         * varasm.c (force_const_mem): Likewise.
6528         * config/darwin.c (machopic_indirect_data_reference): Likewise.
6529         (machopic_legitimize_pic_address): Likewise.
6530         * config/arm/arm.c (legitimize_pic_address): Likewise.
6531         * config/i386/i386.c (legitimize_pic_address): Likewise.
6532         (legitimize_tls_address): Likewise.
6533         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
6534         * config/ia64/ia64.md (load_fptr): Likewise.
6535         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
6536         * config/pa/pa.c (legitimize_pic_address): Likewise.
6537         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
6538         (rs6000_emit_move): Likewise.
6539         * config/s390/s390.c (legitimize_pic_address): Likewise.
6540         (legitimize_tls_address): Likewise.
6541         * config/s390/s390.md (casesi): Likewise.
6542         * config/sh/sh.c (sh_reorg): Likewise.
6543         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
6544         * config/v850/v850.md (casesi): Likewise.
6545
6546         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
6547         * config/sh/sh.c (prepare_move_operands): Remove incorrect
6548         use of MEM_READONLY_P.
6549
6550 2004-08-18  Steven Bosscher  <stevenb@suse.de>
6551
6552         * Makefile.in (OBJS-common): Add postreload-gcse.c.
6553         Add new postreload-gcse.o.
6554         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
6555         (lookup_as_function, insert, rehash_using_reg, use_related_value,
6556         equiv_constant): Use SAFE_HASH instead of safe_hash.
6557         (exp_equiv_p): Export.  Add for_gcse argument when comparing
6558         for GCSE.
6559         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
6560         find_comparison_args, fold_rtx, cse_insn): Update callers.
6561         (hash_rtx): New function derived from old canon_hash and bits
6562         from gcse.c hash_expr_1.
6563         (canon_hash_string): Rename to hash_rtx_string.
6564         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
6565         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
6566         (cselib_lookup): Update this caller.
6567         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
6568         Make static.
6569         (hash_expr): Call hash_rtx.
6570         (ldst_entry): Likewise.
6571         (expr_equiv_p): Call exp_equiv_p.
6572         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
6573         reg_used_on_edge, reg_set_between_after_reload_p,
6574         reg_used_between_after_reload_p, get_avail_load_store_reg,
6575         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
6576         get_bb_avail_insn, hash_scan_set_after_reload,
6577         compute_hash_table_after_reload,
6578         eliminate_partially_redundant_loads, gcse_after_reload,
6579         get_bb_avail_insn, gcse_after_reload_main): Remove.
6580         * postreload-gcse.c: New file, reincarnating most of the above.
6581         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
6582         (gcse_after_reload_main): Update prototype.
6583         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
6584         * passes.c (rest_of_handle_gcse2): Use it.
6585
6586 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
6587
6588         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
6589         (pass_loop_done): Likewise.
6590
6591 2004-08-18  Andrew Pinski  <apinski@apple.com>
6592
6593         * config/rs6000/darwin.md: Delete the altivec patterns which are
6594         handled differently now.
6595         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
6596         (macho_correct_pic_di): Likewise.
6597         (call_indirect_nonlocal_darwin64): Likewise.
6598         Delete the save world/saveFP/saveVec patterns.
6599
6600         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
6601         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
6602         * config/rs6000/rs6000.md: Include darwin.md.
6603         (builtin_setjmp_receiver): Add DImode case.
6604         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
6605         Darwin bits.
6606
6607 2004-08-18  Matt Austern  <austern@apple.com>
6608
6609         Dead code stripping
6610         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
6611         * darwin.c (darwin_file_end): Mark file as potentially strippable.
6612
6613 2004-08-18  Richard Henderson  <rth@redhat.com>
6614
6615         * alias.c (readonly_fields_p): Remove.
6616         (objects_must_conflict_p): Don't call it.
6617         * tree.h (readonly_fields_p): Remove.
6618         * langhooks.h (struct lang_hooks): Remove honor_readonly.
6619         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
6620
6621 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
6622
6623         * tree-dfa.c (add_referenced_var): Only global variables are
6624         call-clobbered.
6625         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
6626         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
6627         all pointers dereferenced if the statement dereferences them.
6628         (create_name_tags): Do not create memory tags for pointers
6629         that have PT_ANYTHING set.
6630         Also check if PT_VARS is not empty before creating a name tag.
6631         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
6632         variables that share the same alias set with a pointer that
6633         may point anywhere.
6634         (add_may_alias): Add FIXME comment to remove clobbering
6635         aliased variables and tags.
6636         (replace_may_alias): Likewise.
6637         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
6638         (merge_pointed_to_info): If the original variable has not
6639         points-to information, call set_pt_anything.
6640         (add_pointed_to_var): Do not prevent adding a pointed-to
6641         variable if the pointers is PT_ANYTHING.
6642         If the variable is a global, set PT_GLOBAL_MEM.
6643         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
6644         pointer type only come in PTR+OFFSET flavours.
6645         Always call merge_pointed_to_info on PHI arguments that are
6646         SSA_NAMEs.
6647         (get_nmt_for): Mark call-clobbered tags whose pointer points
6648         to global memory.
6649         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
6650         values.
6651         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
6652         FLAGS.
6653         (add_stmt_operand): Abort if the caller tried to add a killing
6654         definition for a memory tag.
6655         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
6656         unnecessary checks.
6657
6658 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
6659
6660         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
6661         from call_used_regs.  Update call_really_used_regs.
6662         (CALL_REALLY_USED_REGISTERS): Define.
6663         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
6664         Replace call_used_regs with call_really_used_regs.
6665         (calc_live_regs, sh_media_register_for_return): Likewise.
6666         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
6667         * sh.md (return_media): Likewise.
6668
6669 2004-08-18  Andrew Pinski  <apinski@apple.com>
6670
6671         * config/darwin.c (machopic_legitimize_pic_address): Only set
6672         MEM_READONLY_P in the non TARGET_TOC case.
6673
6674 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
6675
6676         * rtl.def (NIL): Delete.
6677         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
6678         Tighten the syntax a little.
6679
6680         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
6681         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
6682         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
6683         * config/i386/predicates.md, config/m32r/m32r.h
6684         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
6685         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
6686         * config/sparc/sparc.h, doc/tm.texi:
6687         Replace all occurrences of NIL with UNKNOWN.
6688
6689 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
6690
6691         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
6692         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
6693         sequence inline.  Move drop_through_label code into this
6694         block, being the only place it is used.  Adjust comments.
6695
6696 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
6697
6698         * config/rs6000/altivec.md: Add new patterns for calls to
6699         save_world/rest_world functions.
6700
6701         * config/rs6000/rs6000-protos.h: (save_world_operation,
6702         restore_world_operation) new declarations.
6703
6704         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
6705         field added.
6706         (rs6000_stack_info): Set world_save_p field.
6707         (save_world_operation): New function.
6708         (restore_world_operation): New function.
6709         (compute_save_world_info): New function.
6710         (rs6000_stack_info): Call compute_save_world_info.
6711         (rs6000_emit_prologue): Check for world_save_p and generate
6712         pattern to call save_world for saving all non-volatile and
6713         special registers.
6714         (rs6000_emit_epilogue): Check for world_save_p and generate
6715         pattern to call rest_world to restore saved registers.
6716
6717         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
6718         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
6719         (rs6000_reg_names): New entries added for save_world_operation and
6720         restore_world_operation.
6721
6722 2004-08-18  Caroline Tice  <ctice@apple.com>
6723
6724         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
6725         "-freorder-blocks-and-partition" to the flags used in second
6726         stage of profiledbootstrap.
6727         * bb-reorder.c (push_to_next_round_p): Add new variable,
6728         next_round_is_last; set and use variable to make sure, when
6729         partitioning, that the last trace construction round consists
6730         of all (and only) cold basic blocks.
6731         (rotate_loop): Don't copy blocks that end in a section
6732         crossing jump.
6733         (copy_bb): Correctly initialize "partition" of duplicated bb.
6734         (add_unlikely_executed_notes): Add a comment.
6735         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
6736         to make sure, if function contains hot blocks, that the
6737         successors of ENTRY_BLOCK_PTR are hot; also, only look for
6738         crossing edges if the architecture supports named sections.
6739         (mark_bb_for_unlikely_executed_section): Modify to always
6740         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
6741         the basic block note insn.
6742         (fix_crossing_unconditional_branches): Remove extra space.
6743         (fix_edges_for_rarely_executed_code): Modify to only do
6744         partitioning work if the architecture supports named sections.
6745         (reorder_basic_blocks): Modify to only add
6746         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
6747         supports named sections.
6748         * c-common.c (handle_section_attribute): Initialize new global
6749         variable, user_defined_section_attribute, to true if user has
6750         specified one.
6751         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
6752         forward edges that cross section boundaries.
6753         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
6754         partitioning information if the architecture supports named
6755         sections.
6756         * cfgrtl.c (target.h): Add statement to include this.
6757         (rtl_split_block): Make sure newly created bb gets correct
6758         partition.
6759         (try_redirect_by_replacing_jump): Make sure redirection isn't
6760         attempting to cross section boundaries.
6761         (force_nonfallthru_and_redirect): Only do partition fix up if
6762         architecture supports named sections.
6763         (rtl_split_edge): Make sure newly created bb ends up in
6764         correct partition.
6765         (commit_one_edge_insertion): Remove code that incorrectly
6766         updated basic block partition; Make sure partition fix up only
6767         happens if architecture supports named sections and it's not
6768         already done.
6769         (rtl_verify_flow_info_1): Fix if-condition on test/error
6770         condition that fallthru edges are not allowed to cross section
6771         boundaries.
6772         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
6773         * final.c (final_scan_insn): Remove redundant test from if-statement;
6774         change calls to text_section into calls to function_section; add code
6775         to only to partitioning fix up if architecture supports named
6776         sections.
6777         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
6778         partition.
6779         (if_convert): Add targetm.have_named_sections to test.
6780         * output.h (unlikely_section_label): Extern declaration for new global
6781         variable.
6782         (unlikely_text_section_name): Likewise.
6783         * opts.c (decode_options): If both partitioning and DWARF debugging
6784         are turned on, issue a warning that this doesn't work, and change
6785         partitiong to basic block reordering (without hot/cold partitions).
6786         * passes.c (rest_of_handle_final): Re-set new global variable,
6787         user_defined_section_attribute, to false.
6788         (rest_of_compilation): Change options for calling partitioning
6789         function: Don't call if the user defined the section attribute, and
6790         don't call if DECL_ONE_ONLY is true for the current function.
6791         * predict.c (choose_function_section): Return immediately if we
6792         are doing hot/cold partitioning (i.e. let the basic block partitioning
6793         determine where the function belongs).
6794         * reg-stack.c (emit_swap_insn): Add condition to step over
6795         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
6796         * toplev.c (user_defined_section_attribute): New global variable.
6797         * toplev.h (user_defined_section_attribute): Extern declaration
6798         for new global variable.
6799         * varasm.c (unlikely_section_label): New global variable.
6800         (unlikely_text_section_name): New global variable.
6801         (unlikely_text_section): Add code to initialize
6802         unlikely_text_section_name if necessary; modify to use
6803         unlikely_text_section_name and unlikely_section_label; also to use
6804         named_section properly.
6805         (in_unlikely_text_section):  Modify to work correctly with
6806         named_section and to use unlikely_text_section_name.
6807         (named_section):  Add code to work properly with cold section.
6808         (function_section): Clean up if-statement.
6809         * config/darwin.c (darwin_asm_named_section): Return to original
6810         code, removing use of SECTION_FORMAT_STRING.
6811         * config/arm/pe.h (switch_to_section):  Add case for
6812         in_unlikely_executed_text to switch statement.
6813         * config/i386/cygming.h (switch_to_section): Likewise.
6814         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
6815         (SECTION_FORMAT_STRING): Likewise.
6816         * config/mcore/mcore.h (switch_to_section): Likewise.
6817         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
6818         (SECTION_FORMAT_STRING): Remove.
6819
6820 2004-08-18  Roger Sayle  <roger@eyesopen.com>
6821
6822         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
6823         -ffixed-reg safe, by preserving the meanings of zero and one.
6824         (CALL_USED_REGISTERS): Likewise.
6825         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
6826
6827 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
6828
6829         * config/sh/sh.c (split_branches): Check the result of
6830         next_active_insn.
6831         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
6832         Call rtl_register_cfg_hooks.
6833
6834 2004-08-18  Richard Henderson  <rth@redhat.com>
6835
6836         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
6837         * alias.c (true_dependence): Update to match new semantics.
6838         (canon_true_dependence, write_dependence_p): Likewise.
6839         (anti_dependence, output_dependence): Update write_dependence_p args.
6840         (unchanging_anti_dependence): Remove.
6841         * calls.c (purge_mem_unchanging_flag): Remove.
6842         (fixup_tail_calls): Don't call it.
6843         (expand_call): Don't add unchanging memory to function usage.
6844         * expr.c (emit_block_move_via_libcall): Likewise.
6845         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
6846         (get_subtarget): Don't use RTX_UNCHANGING_P.
6847         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
6848         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
6849         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
6850         * cse.c (insert): Don't use RTX_UNCHANGING_P.
6851         (cse_insn, canon_hash): Use MEM_READONLY_P.
6852         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
6853         instead of RTX_UNCHANGING_P.
6854         * explow.c (maybe_set_unchanging): Remove.
6855         * expr.h (maybe_set_unchanging): Remove.
6856         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
6857         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
6858         (assign_parm_setup_reg, expand_function_start): Likewise.
6859         * integrate.c (copy_rtx_and_substitute): Likewise.
6860         * ra-rewrite.c (emit_colors): Likewise.
6861         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
6862         (fixup_match_1): Likewise.
6863         * reload1.c (reload, alter_reg): Likewise.
6864         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
6865         not RTX_UNCHANGING_P.
6866         (equiv_init_varies_p): Likewise.
6867         * loop-invariant.c (check_maybe_invariant): Likewise.
6868         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
6869         * loop.c (note_addr_stored): Likewise.
6870         (prescan_loop): Likewise. Don't check function usage for clobbered
6871         unchanging memory.
6872         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
6873         not RTX_UNCHANGING_P.
6874         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
6875         * varasm.c (force_const_mem): Likewise.
6876         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
6877         * web.c (entry_register): Likewise.
6878         * tree-gimple.h (get_base_address): Move decl ...
6879         * tree.h: ... here.
6880         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
6881
6882         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
6883         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
6884         (alpha_set_memflags): Update to match.
6885
6886         * config/darwin.c (machopic_indirect_data_reference): Set
6887         MEM_READONLY_P instead of RTX_UNCHANGING_P.
6888         (machopic_indirect_call_target): Likewise.
6889         (machopic_legitimize_pic_address): Likewise.
6890         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
6891         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
6892         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
6893         * config/frv/frv.md (symGOT2reg): Likewise.
6894         * config/i386/i386.c (legitimize_pic_address,
6895         legitimize_tls_address, ix86_split_to_parts): Likewise.
6896         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
6897         * config/ia64/ia64.md (load_fptr): Likewise.
6898         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
6899         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
6900         * config/mcore/mcore.c (block_move_sequence): Likewise.
6901         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
6902         * config/pa/pa.c (legitimize_pic_address): Likewise.
6903         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
6904         (rs6000_emit_move): Likewise.
6905         * config/s390/s390.c (legitimize_pic_address): Likewise.
6906         (legitimize_tls_address): Likewise.
6907         * config/s390/s390.md (casesi): Likewise.
6908         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
6909         * config/sh/sh.md (symGOT2reg): Likewise.
6910         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
6911         * config/v850/v850.md (casesi): Likewise.
6912
6913         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
6914         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
6915         * config/mips/mips.c (mips_restore_gp): Likewise.
6916         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
6917         * config/sh/sh.c (sh_reorg): Likewise.
6918
6919 2004-08-18  Richard Henderson  <rth@redhat.com>
6920
6921         * tree.h (struct tree_decl): Add gimple_formal_temp.
6922         (DECL_GIMPLE_FORMAL_TEMP_P): New.
6923         * gimplify.c (pop_gimplify_context): Clear it.
6924         (lookup_tmp_var): Set it, if is_formal.
6925         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
6926         Use is_gimple_val for VECTOR.  Simplify return value.
6927         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
6928         (gimplify_expr): Likewise.
6929         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
6930         is_gimple_tmp_rhs for clarity.  Update all callers.
6931         (is_gimple_reg_rhs): Simplify logic.
6932         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
6933         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
6934         (is_gimple_formal_tmp_reg): Similarly.
6935         * tree-gimple.h: Update decls.
6936         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
6937         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
6938         * tree-ssa-live.c (var_union, type_var_init): Likewise.
6939
6940 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
6941
6942         * c4x.c (legitimize_operands): Remove calls to
6943         preserve_subexpressions_p.
6944
6945 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
6946
6947         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
6948         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
6949
6950 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
6951
6952         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
6953         Objective-C++ extensions.
6954         * gengtype.c (get_file_basename): Match entire subdirectory name
6955         ('cp', 'objc', 'objcp') rather than just its suffix.
6956         (get_base_file_bitmap): Allow for files to belong to more than one
6957         language.
6958         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
6959         used by more than one front-end.
6960
6961 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
6962
6963         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
6964         avoid use of preserve_subexpressions_p.
6965
6966 2004-08-17  Richard Henderson  <rth@redhat.com>
6967
6968         PR 17051
6969         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
6970
6971 2004-08-17  DJ Delorie  <dj@redhat.com>
6972
6973         * doc/extend.texi: Document new xstormy16 attribute.
6974
6975         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
6976         (xstormy16_splittable_below100_or_register): New.
6977         (combine_bnp): New.
6978         (xstormy16_reorg): New.
6979         (TARGET_MACHINE_DEPENDENT_REORG): Define.
6980
6981         * config/stormy16/stormy16.md (movqi_internal): Make name public.
6982         (movhi_internal): Likewise.
6983         (cbhranchhi): Likewise.
6984         (cbhranchhi_neg): Likewise.
6985         (andhi3): Only allow splittable below100 operands.
6986         (iorhi3): Likewise.
6987         (peephole2): New and/zero_extend->and peephole.
6988         (peephole2): New load/ior/save->set1 peephole.
6989         (peephole2): New load/and/save->clr1 peephole.
6990         (bclrx, bclrx2, bclr7, bclr15): New.
6991         (bsetx, bsetx2, bset7, bset15): New.
6992
6993         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
6994         liberal about acceptable 'B' masks.
6995
6996         * config/stormy16/stormy16-protos.h
6997         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
6998         xstormy16_below100_operand, xstormy16_below100_or_register,
6999         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
7000         (PREDICATE_CODES): Add new predicates.
7001
7002         * config/stormy16/stormy16.c
7003         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
7004         xstormy16_below100_operand, xstormy16_below100_or_register,
7005         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
7006         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
7007         (xstormy16_legitimate_address_p): Allow below100 symbols.
7008         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
7009         (xstormy16_expand_move): Leave below100 operands as-is.
7010         (xstormy16_encode_section_info): Encode below100 symbols.
7011         (xstormy16_strip_name_encoding): New.
7012         (xstormy16_print_operand): Print 'b' as shift mask.
7013         (xstormy16_attribute_table): Add below100 attributes.
7014         (xstormy16_handle_below100_attribute): New.
7015
7016         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
7017         (XSTORMY16_SECTION_FUNCTION): New.
7018         (EXTRA_SECTION_FUNCTIONS): Define using the above.
7019         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
7020         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
7021         (ASM_OUTPUT_LABELREF): Define.
7022
7023         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
7024         (movhi_internal): Add below100 support.
7025         (andhi3): Add below100 support.
7026         (iorhi3): Add below100 support.
7027         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
7028
7029 2004-08-17  James E Wilson  <wilson@specifixinc.com>
7030
7031         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
7032         of VOIDmode for comparison code mode.
7033         * config/mips/mips.md: For conditional move patterns, use mode of
7034         first compare operand for comparison mode, instead of VOIDmode.
7035
7036         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
7037         normal and -ffast-math code.
7038
7039 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
7040
7041         PR c++/15871
7042         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
7043
7044 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
7045
7046         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
7047
7048 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
7049
7050         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
7051         for non Darwin targets.
7052         (*call_value_nonlocal_darwin64): Likewise.
7053
7054 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
7055
7056         * config/rs6000/rs6000.c (rs6000_function_value): Check for
7057         altivec mode for altivec return register.
7058
7059 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
7060
7061         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
7062         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
7063         * config/rs6000/rs6000.md: Include darwin.md.
7064         (builtin_setjmp_receiver): Add DImode case.
7065         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
7066         Darwin bits.
7067
7068 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
7069
7070         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
7071         trees.
7072         * tree-vectorizer.h: New File: Same.
7073         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
7074         * common.opt (ftree-vectorize): New flag to enable vectorization.
7075         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
7076         vectorization pass.
7077         * tree-data-ref.h (init_data_ref): Additional argument.
7078         (array_base_name_differ_p): Moved to tree-data-ref.c.
7079         * tree-data-ref.c (array_base_name_differ_p): Revised.
7080         (initialize_data_dependence_relation): Call array_base_name_differ_p
7081         with an extra argument.
7082         (analyze_all_data_dependences): Same.
7083         (init_data_ref): Additional argument is_read to set DR_IS_READ.
7084         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
7085         file.
7086         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
7087         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
7088         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
7089         vectorization pass.
7090         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
7091         (tree_ssa_loop_done): Call scev_finalize.
7092         (tree_vectorize): Define the new vectorization pass.
7093         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
7094         size of the vector they support (until support for multiple vector
7095         sizes is added to the vectorizer).
7096         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
7097         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
7098         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
7099         documentation.
7100
7101 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
7102
7103         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
7104         usage.
7105         (generate_protocol_list, handle_impent): Likewise.
7106
7107 2004-08-17  Roger Sayle  <roger@eyesopen.com>
7108
7109         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
7110         ensure that call_used_regs is a superset of both fixed_regs and
7111         call_really_used_regs.
7112
7113 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
7114
7115         PR target/17019
7116         * arm.md (addsi3_cbranch_scratch): Correct case labels.
7117
7118 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
7119
7120         PR middle-end/17036
7121         * fold-const.c (fold): Check for integer operand when
7122         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
7123         Pinski  <pinskia@physics.uc.edu>.
7124
7125 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
7126
7127         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
7128         No need to check if in a cross configuration.
7129         * configure: Regenerate.
7130
7131         * calls.c (precompute_register_parameters):
7132         Inline preserve_subexpressions_p ().
7133         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
7134         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
7135         Likewise.
7136         * expr.c (get_subtarget): Likewise.
7137         * rtl.h (preserve_subexpressions_p): Remove.
7138         * stmt.c (preserve_subexpressions_p): Remove.
7139
7140         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
7141         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
7142         Abort on gimplified cases.
7143
7144 2004-08-16  James E Wilson  <wilson@specifixinc.com>
7145
7146         * tree.h (VECTOR_FLOAT_TYPE_P): New.
7147         (FLOAT_TYPE_P): Use it.
7148         * c-typeck.c (build_binary_op): After convert calls, check for
7149         check for ERROR_MARK operands.
7150
7151 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
7152
7153         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
7154         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
7155         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
7156         (genobjs static pattern rule): Remove %.c dependency.
7157         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
7158         Rename rules; delete commands; fix dependencies.
7159         (mostlyclean): Do not delete temporary source copies.
7160         * configure.ac: Delete all references to BUILD_PREFIX and
7161         BUILD_PREFIX_1.
7162         * configure: Regenerate.
7163
7164         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
7165         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
7166         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
7167         with #ifndef GENERATOR_FILE so that nothing from those headers
7168         is used.
7169
7170         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
7171
7172 2004-08-16  Adam Nemet  <anemet@lnxw.com>
7173
7174         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
7175
7176 2004-08-16  Andrew Pinski  <apinski@apple.com>
7177
7178         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
7179         extraneous semicolon.
7180
7181 2004-08-16  Devang Patel  <dpatel@apple.com>
7182
7183         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
7184         * print-tree.c (print_node): Print DECL_PRESERVE_P.
7185         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
7186         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
7187         * target.h (struct gcc_target): New member, mark_decl_preserved.
7188         * hooks.c (hook_void_charptr): Rename to ...
7189         (hook_void_constcharptr): ... new name.
7190         * hooks.h (hook_void_charptr): Rename to ..
7191         (hook_void_constcharptr): ... new name.
7192         * tree.h (DECL_PRESERVE_P): New #define.
7193         (struct tree_decl): New member, preserve_flag.
7194         * varasm.c (assemble_start_function): Mark decl preserved.
7195         (assemble_variable): Same.
7196         * darwin.c (darwin_mark_decl_preserved): New function.
7197         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
7198         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
7199         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
7200
7201 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
7202
7203         * c-decl.c (grokdeclarator): Allow for function definition where
7204         innermost declarator has attributes.
7205
7206 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
7207
7208         * except.c (get_exception_filter, build_post_landing_pads,
7209         dw2_build_landing_pads): Use target-specific mode for 'filter'.
7210         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
7211         * target.h (eh_return_filter_mode): New field added.
7212         * targhooks.c (default_eh_return_filter_mode): Defined.
7213         * targhooks.h (default_eh_return_filter_mode): Declared.
7214         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
7215
7216 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
7217
7218         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
7219         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
7220         * configure: Regenerate.
7221
7222 2004-08-16  Stan Shebs  <shebs@apple.com>
7223
7224         Basic support for 64-bit Darwin.
7225         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
7226         (machopic_legitimize_pic_address): Similarly, plus use Pmode
7227         instead of SImode.
7228         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
7229         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
7230         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
7231         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
7232         (PROCESSOR_DEFAULT64): Define.
7233         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
7234         Darwin.
7235         * config/rs6000/rs6000.md: Include darwin.md.
7236         (builtin_setjmp_receiver): Add DImode case.
7237         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
7238         Darwin.
7239         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
7240         (rs6000_emit_move): Add DImode case to Darwin bits.
7241         (machopic_output_stub): Use .quad if 64-bit.
7242         * invoke.texi: Document -m32 and -m64.
7243
7244 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
7245
7246         * doc/extend.texi (AltiVec builtins): Document additional differences
7247         from the Motorola AltiVec PIM.
7248
7249 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7250
7251         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
7252         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
7253         (struct tree_common): Update public_flag documentation.
7254
7255 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
7256
7257         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7258         Check for artificial variables, not is_gimple_tmp_var.
7259         * tree-ssa-live.c (var_union): Likewise.
7260
7261 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
7262
7263         * calls.c (load_register_parameters): Remove spurious FIXME token.
7264
7265 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
7266
7267         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
7268         (c-lang.o): Depend on c-objc-common.h.
7269         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
7270         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
7271         * c-lang.c: Include c-objc-common.h.
7272         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
7273         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
7274         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
7275         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
7276         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
7277         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
7278         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
7279         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
7280         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
7281         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
7282         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
7283         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
7284         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
7285         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
7286         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
7287         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
7288         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
7289         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
7290         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
7291         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
7292         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
7293         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
7294         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
7295         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
7296         Move to c-objc-common.h.
7297         * c-objc-common.c: Include c-objc-common.h.
7298         * c-objc-common.h: New file.
7299
7300 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
7301             Andrew Pinski  <pinskia@physics.uc.edu>
7302
7303         PR target/14931
7304         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
7305         style.
7306
7307 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
7308
7309         * tree.h (build_int_cst): New.
7310         (build_int_2): Remove.
7311         * tree.c (build_int_2): Remove.
7312         (build_int_cst): New.
7313         (make_vector_type, build_common_tree_nodes,
7314         build_common_tree_nodes_2): Use build_int_cst.
7315         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
7316         expand_builtin_strpbrk, expand_builtin_fputs,
7317         build_string_literal, expand_builtin_printf,
7318         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
7319         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
7320         fold_builtin_isdigit, simplify_builtin_strstr,
7321         simplify_builtin_strpbrk, fold_builtin_fputs,
7322         simplify_builtin_sprintf): Use build_int_cst.
7323         * c-common.c (start_fname_decls, fix_string_type,
7324         c_common_nodes_and_builtins, c_init_attributes,
7325         shorten_compare): Likewise.
7326         * c-decl.c (complete_array_type,
7327         check_bitfield_type_and_width): Likewise.
7328         * c-lex.c (interpret_integer, lex_charconst): Likewise.
7329         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
7330         * c-pretty-print.c (pp_c_integer_constant): Likewise.
7331         * c-typeck.c (really_start_incremental_init, push_init_level,
7332         set_nonincremental_init_from_string): Likewise.
7333         * calls.c (load_register_parameters): Likewise.
7334         * convert.c (convert_to_pointer): Likewise.
7335         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
7336         build_fn_info_type, build_ctr_info_value, build_gcov_info):
7337         Likewise.
7338         * except.c (init_eh, assign_filter_values, assign_filter_values):
7339         Likewise.
7340         * expmed.c (store_fixed_bit_field, extract_bit_field,
7341         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
7342         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
7343         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
7344         * expr.c (convert_move, emit_group_load, emit_group_store,
7345         expand_assignment, store_constructor, store_field,
7346         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
7347         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
7348         invert_truthvalue, optimize_bit_field_compare,
7349         decode_field_reference, all_ones_mask_p, constant_boolean_node,
7350         fold_div_compare, fold, fold_read_from_constant_string,
7351         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
7352         * function.c (assign_parm_setup_block): Likewise.
7353         * stmt.c (shift_return_value, expand_end_case_type,
7354         estimate_case_costs): Likewise.
7355         * stor-layout.c (layout_type, initialize_sizetypes,
7356         set_min_and_max_values_for_integral_type): Likewise.
7357         * tree-chrec.c (chrec_fold_multiply_poly_poly,
7358         reset_evolution_in_loop): Likewise.
7359         * tree-chrec.h (build_polynomial_chrec): Likewise.
7360         * tree-complex.c (build_replicated_const): Likewise.
7361         * tree-eh.c (honor_protect_cleanup_actions,
7362         lower_try_finally_onedest, lower_try_finally_copy,
7363         lower_try_finally_switch): Likewise.
7364         * tree-mudflap.c (mf_build_string, mx_register_decls,
7365         mudflap_register_call, mudflap_enqueue_constant): Likewise.
7366         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
7367         * tree-pretty-print.c (dump_generic_node): Likewise.
7368         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
7369         Likewise.
7370         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
7371         * tree-ssa-loop-niter.c (number_of_iterations_cond,
7372         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
7373         Likewise.
7374
7375         * config/alpha/alpha.c (alpha_initialize_trampoline,
7376         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
7377         * config/arm/arm.c (arm_get_cookie_size): Likewise.
7378         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
7379         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
7380         * config/i860/i860.c (i860_va_start): Likewise.
7381         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
7382         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
7383         mips_gimplify_va_arg_expr): Likewise.
7384         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
7385         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
7386         add_compiler_branch_island): Likewise.
7387         * config/s390/s390.c (s390_va_start): Likewise.
7388         * config/sh/sh.c (sh_va_start): Likewise.
7389         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
7390         Likewise.
7391         * config/xtensa/xtensa.c (xtensa_va_start,
7392         xtensa_gimplify_va_arg_expr): Likewise.
7393
7394         * objc/objc-act.c (build_objc_string_object,
7395         build_objc_symtab_template, init_def_list, init_objc_symtab,
7396         init_module_descriptor, generate_static_references,
7397         build_selector_translation_table, get_proto_encoding,
7398         build_typed_selector_reference, build_selector_reference,
7399         build_next_objc_exception_stuff,
7400         build_method_prototype_list_template, generate_descriptor_table,
7401         generate_protocols, build_protocol_initializer,
7402         build_ivar_list_template, build_method_list_template,
7403         build_ivar_list_initializer, generate_ivars_list,
7404         generate_dispatch_table, generate_protocol_list,
7405         build_category_initializer, build_shared_structure_initializer,
7406         generate_shared_structures, handle_impent,
7407         generate_objc_image_info): Use build_int_cst.
7408
7409 2004-08-15  Ben Elliston  <bje@au.ibm.com>
7410
7411         * vec.h: Comment improvements.
7412
7413 2004-08-14  Roger Sayle  <roger@eyesopen.com>
7414
7415         * c-common.c (shorten_compare, pointer_int_sum,
7416         c_common_truthvalue_conversion, boolean_increment): Replace calls
7417         to build with calls to buildN.
7418         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
7419         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
7420         gimplify_switch_stmt): Likewise.
7421         * c-typeck.c (default_function_array_conversion,
7422         build_component_ref, build_array_ref, build_function_call,
7423         pointer_diff, build_unary_op, build_conditional_expr,
7424         build_compound_expr, build_modify_expr, c_finish_goto_label,
7425         c_finish_goto_ptr, c_finish_return, c_finish_loop,
7426         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
7427         build_binary_op): Likewise.
7428
7429 2004-08-15  Steven Bosscher  <stevenb@suse.de>
7430
7431         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
7432
7433 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7434
7435         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
7436         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
7437         * fixinc/fixincl.x: Rebuilt.
7438
7439 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
7440
7441         * config/mips/mips-protos.h (mips_symbolic_constant_p)
7442         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
7443         (mips_small_data_pattern_p): Declare.
7444         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
7445         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
7446         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
7447         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
7448         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
7449         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
7450         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
7451         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
7452         (pc_or_label_operand, call_insn_operand, move_operand)
7453         (consttable_operand, symbolic_operand, general_symbolic_operand)
7454         (global_got_operand, local_got_operand, stack_operand)
7455         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
7456         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
7457         (mips_small_data_pattern_p): Replace previous small_data_pattern
7458         predicate.  Turn into a bool () (rtx) function.
7459         * config/mips/predicates.md: New file.
7460         * config/mips/mips.md: Include it.  Use the target-independent
7461         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
7462         trap_comparison_operator and equality_op to equality_operator.
7463         Replace uses of small_int with the equivalent const_arith_operand.
7464         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
7465         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
7466         to fcc_reload_operand.
7467         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
7468
7469 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7470
7471         PR libstdc++/17005 partial fix.
7472         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
7473         except when generating ANSI/C89 code.
7474
7475 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
7476
7477         * c-common.c (shorten_compare): Use force_fit_type directly.
7478
7479 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
7480             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
7481             Dave Korn  <dk@artimi.com>
7482
7483         * doc/install.texi (Building): Avoid duplicate reference to GNU
7484         make requirement.
7485         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
7486
7487 2004-08-14  Richard Henderson  <rth@redhat.com>
7488
7489         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
7490         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
7491
7492 2004-08-13  Richard Henderson  <rth@redhat.com>
7493
7494         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
7495         for constant_call_address_operand.
7496         (call_value_pop_1, call_value_1): Likewise.
7497         (sibcall_value_1, call_value_1_rex64): Likewise.
7498
7499 2004-08-13  James E Wilson  <wilson@specifixinc.com>
7500
7501         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
7502         Correct mode from SFmode to DFmode.
7503
7504 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
7505
7506         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
7507         __cstring_object and __image_info sections with the no_dead_strip
7508         attribute.
7509
7510 2004-08-13  Roger Sayle  <roger@eyesopen.com>
7511             David Billinghurst  <David.Billinghurst@riotinto.com>
7512
7513         PR libgfortran/15930
7514         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
7515         * fixinc/fixincl.x: Regenerate.
7516         * fixinc/tests/base/internal/math_core.h: New file.
7517
7518 2004-08-13  Richard Henderson  <rth@redhat.com>
7519
7520         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
7521         (dbxout_function_end): Remove ifdefs for it.
7522         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
7523
7524 2004-08-13  Richard Henderson  <rth@redhat.com>
7525
7526         * Makefile.in (insn-preds.o): Depend on TREE_H.
7527         * genpreds.c (write_insn_preds_c): Include tree.h.
7528         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
7529         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
7530         const48_operand, and_operand, or_operand, mode_width_operand,
7531         mode_mask_operand, mul8_operand, const0_operand,
7532         hard_fp_register_operand, hard_int_register_operand,
7533         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
7534         samegp_function_operand, direct_call_operand, small_symbolic_operand,
7535         global_symbolic_operand, call_operand, symbolic_operand,
7536         dtp16_symbolic_operand, dtp32_symbolic_operand,
7537         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
7538         gottp_symbolic_operand, alpha_comparison_operator,
7539         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
7540         signed_comparison_operator, alpha_fp_comparison_operator,
7541         divmod_operator, fix_operator, aligned_memory_operand,
7542         unaligned_memory_operand, reg_or_unaligned_mem_operand,
7543         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
7544         reg_no_subreg_operand, addition_operation): Move to predicates.md.
7545         (reg_or_const_int_operand): Remove.  Replace all users with
7546         reg_or_cint_operand.
7547         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
7548         (resolve_reload_operand): Split out of aligned_memory_operand.
7549         * config/alpha/alpha-protos.h: Update for exports.
7550         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
7551         * config/alpha/alpha.md: Include predicates.md.
7552         * config/alpha/predicates.md: New file.
7553
7554 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
7555
7556         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
7557         fields with a pointer to the instruction definition.
7558         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
7559         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
7560         (write_attr_case, write_const_num_delay_slots): Update accordingly.
7561         (write_attr_case, write_const_num_delay_slots): Write the name of
7562         an insn next to its case statement.
7563         * genoutput.c (data): Add a filename field.
7564         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
7565         (output_insn_data): Print the location of each insn definition.
7566         * genrecog.c (write_action): Print the name of an insn above
7567         the statement that returns its code.
7568
7569 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
7570
7571         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
7572         * config/libgloss.h: Likewise.
7573         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
7574         * c4x/c4x-modes.def: Likewise.
7575         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
7576         (c4x_rptb_nop_p): Likewise.
7577         (c4x_rptb_valid_p): Likewise.
7578         (c4x_rptb_insert): Likewise.
7579         (c4x_address_conflict): Likewise.
7580         * config/c4x/c4x.md: Likewise.
7581         * config/frv/frv.md: Likewise.
7582         * config/i386/athlon.md: Likewise.
7583         * config/i386/i386.md: Likewise.
7584         * config/i386/predicates.md: Likewise.
7585         * config/ia64/ia64.c: Likewise.
7586         * config/ia64/itanium1.md: Likewise.
7587         * config/ia64/itanium2.md: Likewise.
7588         * config/iq2000/iq2000.md: Likewise.
7589         * config/mcore/mcore.c: Likewise.
7590         * config/mips/mips.c: Likewise.
7591         * config/mips/r3900.h: Likewise.
7592         * config/mips/sb1.md: Likewise.
7593         * config/pa/milli64.S: Likewise.
7594         * config/pa/pa.c: Likewise.
7595         * config/pa/pa.h: Likewise.
7596         * config/rs6000/8540.md: Likewise.
7597
7598 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
7599
7600         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
7601
7602 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
7603
7604         * sh.md (cbranch define_delay) Use cond_delay_slot for
7605         non-anulled condition too.
7606
7607 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
7608
7609         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
7610         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
7611         any_parallel_operand, lmw_operation, stmw_operation,
7612         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
7613         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
7614         any_parallel_operand.
7615         (return_and_restore_fpregs_{si,di}): Same.
7616
7617 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
7618
7619         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
7620         if pred->singleton != PARALLEL, issue a warning and pretend it was.
7621         Also issue a warning for any predicate we don't know about.
7622
7623 2004-08-12  Richard Henderson  <rth@redhat.com>
7624
7625         * config/i386/i386.c (internal_label_prefix): Export.
7626         (internal_label_prefix_len, struct ix86_address,
7627         ix86_decompose_address, maybe_get_pool_constant,
7628         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
7629         memory_address_length): Export.
7630         (any_fp_register_operand, fp_register_operand,
7631         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
7632         x86_64_general_operand, x86_64_szext_general_operand,
7633         x86_64_nonmemory_operand, x86_64_movabs_operand,
7634         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
7635         x86_64_zext_immediate_operand, const_int_1_31_operand,
7636         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
7637         tls_symbolic_operand, global_dynamic_symbolic_operand,
7638         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
7639         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
7640         constant_call_address_operand, const0_operand, const1_operand,
7641         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
7642         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
7643         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
7644         general_no_elim_operand, nonmemory_no_elim_operand,
7645         index_register_operand, q_regs_operand, flags_reg_operand,
7646         non_q_regs_operand, zero_extended_scalar_load_operand,
7647         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
7648         ix86_comparison_operator, ix86_carry_flag_operator,
7649         fcmov_comparison_operator, promotable_binary_operator,
7650         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
7651         mult_operator, div_operator, arith_or_logical_operator,
7652         memory_displacement_operand, cmpsi_operand, long_memory_operand,
7653         aligned_operand): Move to predicates.md as define_predicates.
7654         (tls_symbolic_operand_1): Remove.
7655         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
7656         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
7657         (legitimize_address): Merge tls_symbolic_operand contents.
7658         (ix86_expand_move): Likewise.
7659         * config/i386/i386-protos.h: Update for exports.
7660         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
7661         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
7662         * config/i386/i386.md: Include predicates.md.
7663         * config/i386/predicates.md: New file.
7664
7665 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
7666
7667         PR c++/16924
7668         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
7669         SYMBOL_REF_DECL.
7670         (i386_pe_mark_dllimport): Likewise.
7671         (i386_pe_encode_section_info): Likewise, when overriding
7672         dllimport attribute.
7673
7674 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
7675
7676         * configure.ac: When testing for flex, nm, ar, and bison, check
7677         that they will actually be built.
7678         * configure: Regenerate.
7679
7680 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
7681
7682         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
7683         (MOVE_MAX_PIECES): Define.
7684
7685 2004-08-12  Devang patel  <dpatel@apple.com>
7686
7687         * dbxout.c (dbxout_begin_prologue): New function.
7688         (dbx_debug_hooks): Use new begin prologue hook.
7689         (dbxout_function_end): Emit N_ENSYM.
7690         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
7691
7692 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
7693
7694         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
7695         argument is float*.
7696
7697         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
7698         for vec_dss.
7699
7700         * doc/extend.texi (AltiVec builtins): Fix description for recent
7701         changes.  Update operation list to match current support.
7702
7703 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7704
7705         * config/s390/s390.c (struct s390_frame_layout): New struct as element
7706         of struct machine_function.
7707         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
7708         changed all uses.
7709         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
7710         changed all uses.
7711         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
7712         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
7713         (s390_frame_area, s390_register_info): New functions.
7714         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
7715         for base register.
7716         (s390_return_addr_rtx, s390_return_address_offset)
7717         (s390_va_start, s390_gimplify_va_arg)
7718         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
7719         layouts.
7720         (s390_frame_info): Functionality partly moved to s390_register_info.
7721         Made adaptions for new stack layout.
7722         (save_gprs, restore_gprs): Changed meaning of second parameter and
7723         adapted all callers.
7724
7725         * config/s390/s390.h (s390_backchain_string): New global variable.
7726         (MASK_BACKCHAIN): Removed definition.
7727         (TARGET_BACKCHAIN): Changed check.
7728         (TARGET_KERNEL_BACKCHAIN): New macro.
7729         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
7730         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
7731         "kernel-backchain".
7732         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
7733
7734         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
7735         as condition.  Adjusted for new stack layout.
7736
7737         * doc/invoke.texi: Added documentation for new option
7738         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
7739         "-mno-backchain".
7740
7741 2004-08-12  Paul Brook  <paul@codesourcery.com>
7742
7743         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
7744         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
7745
7746 2004-08-12  David Daney  <ddaney@avtrex.com>
7747
7748         * java/gcj.texi:  Add subsection on signal usage.
7749
7750 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
7751
7752         * expr.c (move_by_pieces): Set alignment for move to minimum of
7753         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
7754         alignment, but not less than the original alignment.
7755         (move_by_pieces_ninsns): Same.
7756         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
7757         (store_by_pieces_1): Same.
7758
7759 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
7760
7761         PR tree-optimization/16867
7762         * tree.c (is_global_var): New function.
7763         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
7764         Call is_global_var.
7765         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
7766         Update all users.
7767         (is_global_var): Declare.
7768         * tree-dfa.c (dump_variable): Display global and addressable
7769         attributes.
7770         (add_referenced_var): Clarify documentation when marking
7771         variables call-clobbered.
7772         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
7773         instead of needs_to_live_in_memory.
7774         (mark_call_clobbered): If the variable is a tag, mark it
7775         DECL_EXTERNAL.
7776         * tree-gimple.c (is_gimple_reg): Don't check for
7777         TREE_ADDRESSABLE.
7778         (is_gimple_non_addressable): Likewise.
7779         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
7780         needs to be marked call-clobbered.
7781         (setup_pointers_and_addressables): Call is_global_var instead
7782         of needs_to_live_in_memory.
7783         * tree-ssa-dce.c (need_to_preserve_store): Remove.
7784         Update all users with is_global_var.
7785         (mark_stmt_if_obviously_necessary): Fix processing of aliased
7786         stores.  Don't check the virtual definitions.  Rather, check
7787         whether the store is going into global memory.
7788         (find_obviously_necessary_stmts): Get the symbol from the PHI
7789         result.
7790         * tree-ssa-operands.c (get_call_expr_operands): Do not add
7791         clobbering may-defs if the call does not have side effects.
7792
7793 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
7794
7795         PR c++/16276
7796         * output.h (default_function_rodata_section,
7797         default_no_function_rodata_section): New prototypes.
7798         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
7799         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
7800         (TARGET_ASM_OUT): Add it.
7801         * varasm.c (default_function_rodata_section,
7802         default_no_function_rodata_section): New functions.
7803         * final.c (final_scan_insn): Call
7804         targetm.asm_out.function_rodata_section instead of
7805         readonly_data_section.
7806         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
7807         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7808         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7809         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
7810         Likewise.
7811         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7812         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
7813         Likewise.
7814         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
7815         Likewise.
7816         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7817         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
7818         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
7819
7820 2004-08-12  Paul Brook  <paul@codesourcery.com>
7821
7822         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
7823         frame info.
7824         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
7825         DWARF2_UNWIND_INFO.
7826
7827 2004-08-12  Ben Elliston  <bje@au.ibm.com>
7828
7829         PR target/16286
7830         * config/rs6000/altivec.h: Change vector to __vector throughout.
7831         (Except for the `vector' macro itself).
7832
7833 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
7834
7835         * genpreds.c: Add capability to generate predicate bodies as
7836         well as function prototypes.  Write function prototypes for
7837         the generic predicates too.
7838         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
7839         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
7840         (write_match_code, write_predicate_expr, write_one_predicate_function)
7841         (parse_option): New functions.
7842         (output_predicate_decls): Delete.
7843         (main): Read the machine description, process DEFINE_PREDICATE or
7844         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
7845         as appropriate.
7846
7847         * genrecog.c (struct decision_test): Replace index with
7848         struct pred_data pointer.
7849         (next_index): Remove, unused.
7850         (pred_table, preds, special_mode_pred_table): Delete.
7851         (compute_predicate_codes, process_define_predicate): New functions.
7852         (validate_pattern, add_to_sequence, write_switch): Update for
7853         new data structures.
7854         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
7855         Check both error_count and have_error.
7856
7857         * gensupport.c (in_fname, first_predicate): New globals.
7858         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
7859         (predicate_table, last_predicate, old_pred_table)
7860         (old_special_pred_table): New statics.
7861         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
7862         (add_predicate, init_predicate_table): New functions.
7863         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
7864         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
7865         it or max_include_len.  Call init_predicate_table.
7866         (read_rtx): Run the predicate queue after the attribute queue
7867         but before all the others.
7868         * gensupport.h (in_fname, struct pred_data, first_predicate)
7869         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
7870         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
7871         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
7872         * dummy-conditions.c: Don't include bconfig.h, system.h,
7873         coretypes.h, tm.h, or system.h.  Do include stddef.h.
7874         Duplicate declaration of struct c_test from gensupport.h.
7875
7876         * Makefile.in (OBJS-common): Add insn-preds.o.
7877         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
7878         (insn-preds.c, insn-preds.o): New rules.
7879         (s-preds): Also generate insn-preds.c.
7880         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
7881         Update dependencies.
7882         (print-rtl.o, print-rtl1.o): Correct dependencies.
7883
7884         * recog.h: Delete prototypes of predicate functions.
7885
7886         * doc/md.texi (Predicates): New section with complete
7887         documentation of operand/operator predicates.  Remove some
7888         incomplete documentation of predicates from other places.
7889         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
7890         PREDICATE_CODES; indicate that both are deprecated in favor
7891         of define_predicate/define_special_predicate.
7892
7893         * config/ia64/ia64.c: All predicate function definitions moved
7894         to ia64.md, except
7895         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
7896         (ia64_expand_load_address, ia64_expand_move):
7897         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
7898
7899         * config/ia64/ia64.md: All predicates now defined here.
7900         (symbolic_operand): Is now a special predicate.
7901
7902         * config/ia64/ia64.h: Declare ia64_section_threshold.
7903         (PREDICATE_CODES): Delete.
7904
7905 2004-08-12  Richard Henderson  <rth@redhat.com>
7906
7907         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
7908         * c-semantics.c (add_stmt): Set it.
7909         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
7910         before instantiating a variable sized type.
7911
7912 2004-08-12  Richard Henderson  <rth@redhat.com>
7913
7914         * stor-layout.c (round_up, round_down): Move ...
7915         * fold-const.c (round_up, round_down): ... here.  Use
7916         multiple_of_p to avoid any arithmetic at all.
7917
7918 2004-08-12  Richard Henderson  <rth@redhat.com>
7919
7920         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
7921         (gimplify_init_ctor_preeval_1): New.
7922         (gimplify_init_ctor_preeval): New.
7923         (gimplify_init_ctor_eval): New.
7924         (gimplify_init_constructor): Use them.  Always gimplify the LHS
7925         object first.
7926
7927 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
7928
7929         (This patch is part of merge of objc-improvements-branch
7930         into mainline.)
7931
7932         * doc/frontends.texi: Mention Objective-C++ in addition to
7933         Objective-C.
7934         * doc/install.texi: Add 'obj-c++' to list of configurable
7935         languages.
7936         * doc/invoke.texi: Rename Objective-C option headings to
7937         indicate they also apply to Objective-C++.  List file
7938         extensions for Objective-C++ sources.  Mention that
7939         ObjC and ObjC++ compilations may also use C and C++ options,
7940         respectively.  Point users to doc/standards.texi for
7941         further info on ObjC and ObjC++.
7942         * doc/sourcebuild.texi: Mention the objcp/ directory and
7943         the Objective-C++ sources it contains.
7944         * doc/standards.texi: Update link to Apple ObjC site;
7945         add link to gcc readings.html WWW doc.
7946
7947 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
7948
7949         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
7950         and 2004-07-14 changes.
7951
7952 2004-08-12  Paul Brook  <paul@codesourcery.com>
7953
7954         * doc/invoke.texi: Fix typo.
7955
7956 2004-08-11 Devang Patel  <dpatel@apple.com>
7957
7958         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
7959         and -no_dead_strip_inits_and_terms.
7960         (LINK_SPEC): Same.
7961         * doc/invoke.texi (Darwin Options): Document -dead_strip and
7962         -no_dead_strip_inits_and_terms.
7963
7964 2004-08-11  Paul Brook  <paul@codesourcery.com>
7965
7966         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
7967         (arm_load_pic_register): ... to this.
7968         * config/arm/arm.c (arm_finalize_pic): Rename ...
7969         (arm_load_pic_register): ... to this.  Always output insns at the
7970         current location.  Load via low reg in thumb mode.
7971         (arm_expand_prologue): Call arm_load_pic_register.
7972         (thumb_expand_prologue): Ditto.
7973         * config/arm/arm.h (FINALIZE_PIC): Remove.
7974         * config/arm/arm.md (builtin_setjmp_receiver): Call
7975         arm_load_pic_register.
7976
7977 2004-08-11  Paul Brook  <paul@codesourcery.com>
7978
7979         * arm.c (thumb_force_lr_save): Add prototype.
7980         (thumb_compute_save_reg_mask): New function.
7981         (thumb_find_work_register): New function.
7982         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
7983         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
7984         Don't clobber r3 when removing pretend args.
7985         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
7986         (thumb_output_function_prologue): Use new functions.
7987         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
7988         * arm.h (THUMB_REG_PUSHED_P): Remove.
7989
7990 2004-08-11  James E Wilson  <wilson@specifixinc.com>
7991
7992         PR rtl-optimization/16490
7993         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
7994         global_live_at_end for new basic block if already set for other blocks.
7995
7996 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
7997
7998         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
7999
8000         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
8001         (mfcr rlwinm rlwinm patterns): Set length to 12.
8002
8003 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
8004
8005         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
8006         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
8007         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
8008         (start_ssa_stmt_operands): Delete.
8009         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
8010         struct stmt_operands_d.
8011         (build_ssa_operands): New extern entry point.
8012         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
8013         building code, replace with create_ssa_artficial_load_stmt().
8014         * tree-ssa-operands.c (struct voperands_d): Delete.
8015         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
8016         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
8017         (free_uses, free_defs, free_vuses, free_v_may_defs,
8018         free_v_must_defs): Remove dealloc parameter.
8019         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
8020         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
8021         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
8022         vector comparisons, ssa_name reuse, and allocations here.
8023         (verify_start_operands): Delete.
8024         (finalize_ssa_stmt_operands): Set new operands by calling finalize
8025         routines.
8026         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
8027         (append_def, append_usei): Simplify to simple accumulation.
8028         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
8029         duplicates and simple accumulation.
8030         (free_ssa_operands): Free vectors in a stmt_operand structure.
8031         (build_ssa_operands): New. Create a new stmt_operand structure from
8032         a stmt and an old set of stmt_operands.
8033         (get_stmt_operands): Simplify and call build_ssa_operands.
8034         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
8035         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
8036         add_call_read_ops): Don't pass prev_vops around anymore.
8037         (note_addressable): Return if no stmt annotation.
8038         (copy_virtual_operands): Access v_may_def operands through a struct.
8039         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
8040         hash tables without treating the stmt as a real stmt.
8041         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
8042         v_may_def def and use through a struct instead of 2 array elements.
8043         (struct v_may_def_optype_d): Use v_may_def_operand_type.
8044         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
8045
8046 2004-08-11  Nick Clifton  <nickc@redhat.com>
8047
8048         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
8049         this funciton's behaviour.  Return true when the current function
8050         has a section attribute and -mlong-calls is in effect.
8051         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
8052         short-call marker when -mlong-calls is in effect and the function
8053         has a section attribute.
8054
8055 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
8056
8057         * stmt.c (expand_return): If asked to return the RESULT_DECL,
8058         just call expand_value_return on result_rtl.
8059
8060 2004-08-10  Richard Henderson  <rth@redhat.com>
8061
8062         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
8063         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
8064         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
8065         (add_location_or_const_value_attribute): ... not here.  Use
8066         loc_descriptor_from_tree if possible.
8067         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
8068         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
8069         values specially.
8070         (loc_descriptor_from_tree): New.  Update callers.
8071         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
8072         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
8073         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
8074         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
8075         and BUILT_IN_STACK_RESTORE.
8076         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
8077         * stmt.c (expand_stack_alloc): Remove.
8078         * tree-mudflap.c (mx_register_decls): Don't look for
8079         BUILT_IN_STACK_ALLOC.
8080         * tree-nested.c (convert_local_reference): Likewise.
8081         * tree.h (DECL_VALUE_EXPR): New.
8082
8083 2004-08-10  Richard Henderson  <rth@redhat.com>
8084
8085         * stor-layout.c (round_up): Check for 0/1 before dividing.
8086         (round_down): Likewise.
8087
8088         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
8089
8090 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
8091
8092         * config.gcc (arm*-*-eabi*): New target.
8093         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
8094         (TARGET_LIB_INT_CMP_BIASED): Likewise.
8095         * expmed.c (expand_divmod): Try a two-valued divmod function as a
8096         last resort.
8097         * gthr.h: Remove bogus tokens at end of #pragma.
8098         * optabs.c (expand_twoval_binop_libfunc): New function.
8099         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
8100         (prepare_float_lib_cmp): Try reversing the condition.
8101         (debug_optab_libfuncs): New function.
8102         * optabs.h (expand_twoval_binop_libfunc): Declare.
8103         * config/arm/arm.c (arm_init_libfuncs): New function.
8104         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
8105         (TARGET_INIT_LIBFUNCS): Define it.
8106         * config/arm/arm.h (TARGET_BPABI): New macro.
8107         * config/arm/arm-protos.h
8108         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
8109         * config/arm/bpabi.S: New file.
8110         * config/arm/bpabi.c: Likewise.
8111         * config/arm/bpabi.h: Likewise.
8112         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
8113         (__aeabi_drsub): Likewise.
8114         (__aeabi_dsub): Likewise.
8115         (__aeabi_dadd): Likewise.
8116         (__aeabi_ui2d): Likewise.
8117         (__aeabi_i2d): Likewise.
8118         (__aeabi_f2d): Likewise.
8119         (__aeabi_dmul): Likewise.
8120         (__aeabi_ddiv): Likewise.
8121         (__aeabi_cdrcmple): Likewise.
8122         (__aeabi_cdcmpeq): Likewise.
8123         (__aeabi_cdcmple): Likewise.
8124         (__aeabi_dcmpeq): Likewise.
8125         (__aeabi_dcmplt): Likewise.
8126         (__aeabi_dcmple): Likewise.
8127         (__aeabi_dcmpge): Likewise.
8128         (__aeabi_dcmpgt): Likewise.
8129         (__aeabi_dcmpun): Likewise.
8130         (__aeabi_d2iz): Likewise.
8131         (__aeabi_d2uiz): Likewise.
8132         (__aeabi_d2f): Likewise.
8133         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
8134         (__aeabi_frsub): Likewise.
8135         (__aeabi_fsub): Likewise.
8136         (__aeabi_fadd): Likewise.
8137         (__aeabi_ui2f): Likewise.
8138         (__aeabi_i2f): Likewise.
8139         (__aeabi_fmul): Likewise.
8140         (__aeabi_fdiv): Likewise.
8141         (__aeabi_cfrcmple): Likewise.
8142         (__aeabi_cfcmpeq): Likewise.
8143         (__aeabi_cfcmple): Likewise.
8144         (__aeabi_fcmpeq): Likewise.
8145         (__aeabi_fcmplt): Likewise.
8146         (__aeabi_fcmple): Likewise.
8147         (__aeabi_fcmpge): Likewise.
8148         (__aeabi_fcmpgt): Likewise.
8149         (__aeabi_fcmpun): Likewise.
8150         (__aeabi_f2iz): Likewise.
8151         (__aeabi_f2uiz): Likewise.
8152         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
8153         (__aeabi_uidivmod): New function or alias.
8154         (__aeabi_idivmod): Likewise.
8155         (__aeabi_idiv0): Likewise.
8156         (__aeabi_ldiv0): Likewise.
8157         (__aeabi_llsr): Likewise.
8158         (__aeabi_lasr): Likewise.
8159         (__aeabi_llsl): Likewise.
8160         (bpabi.S): Include it.
8161         * config/arm/libgcc-bpabi.ver: New file.
8162         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
8163         (LINK_SPEC): Remove.
8164         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
8165         __aeabi_ulcmp.
8166         * config/arm/t-bpabi: New file.
8167         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
8168         (TARGET_LIB_INT_CMP_BIASED): Likewise.
8169
8170 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
8171
8172         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
8173         * config/rs6000/rs6000.md (clrmemsi): New pattern.
8174         * config/rs6000/rs6000.c (expand_block_clear): New function.
8175         (expand_block_move): Convert alignment to bits.  Use SImode and
8176         HImode for unaligned addresses if not STRICT_ALIGNMENT.
8177
8178 2004-08-10  Caroline Tice  <ctice@apple.com>
8179
8180         * varasm.c (unlikely_section_label): New global variable.
8181         (unlikely_text_section_name): New global variable.
8182         (text_section):  Remove alignment statement.
8183         (unlikely_text_section): Remove alignment statement; use
8184         unlikely_section_label rather than hard-coded string.
8185         (assemble_start_function): Initialize unlikely_section_label and
8186         unlikely_text_section_name;  make sure cold section is properly
8187         aligned at start of function; output unlikely_section_label if
8188         appropriate.
8189
8190 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
8191
8192         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
8193         * config/s390/s390.c (s390_canonicalize_comparison): New function.
8194         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
8195         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
8196         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
8197         ("*tmqi_mem"): Remove SUBREG from pattern.
8198         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
8199         ("*andsi3_cconly"): Likewise.
8200
8201 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8202
8203         PR target/16909
8204         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
8205
8206 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
8207
8208         * doc/sourcebuild.texi (compat testing): Document available test
8209         framework commands.  Use the preferred spelling of DejaGnu.
8210
8211 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
8212
8213         * lambda.h: Add matrix type, and prototypes for remainder of
8214         matrix and vector functions.
8215         (lambda_vector_mult_const): New function.
8216         (lambda_vector_negate): Ditto.
8217         (lambda_vector_add): Ditto.
8218         (lambda_vector_add_mc): Ditto.
8219         (lambda_vector_copy): Ditto.
8220         (lambda_vector_zerop): Ditto.
8221         (lambda_vector_equal): Ditto.
8222         (lambda_vector_min_nz): Ditto.
8223         (lambda_vector_first_nz): Ditto.
8224         (lambda_vector_matrix_mult): Ditto.
8225         * lambda-mat.c: New file.
8226         * Makefile.in (lambda-mat.o): New.
8227
8228 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
8229
8230         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
8231         after linking stmt into the program.
8232         (bsi_remove): Don't call modify_stmt.
8233         * tree-complex.c (update_complex_assignment,
8234         expand_complex_comparison): Call modify_stmt after changing the stmt.
8235         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
8236         removing the stmt.
8237         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
8238         the stmt, and only if needed.
8239         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
8240         expression.
8241         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
8242         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
8243         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
8244         (eliminate_redundant_computations): Don't pass an annotation. Call
8245         modify_stmt rather than setting the annotation directly.
8246         (record_equivalences_from_stmt): Remove unused local 'j'.
8247         (cprop_operand): Take a stmt rather than an annotation as a parameter.
8248         Call modify_stmt.
8249         (cprop_into_stmt): Pass stmt rather than annotation.
8250         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
8251         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
8252         modify_stmt.
8253         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
8254
8255 2004-08-10  Jason Merrill  <jason@redhat.com>
8256
8257         PR middle-end/16948
8258         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
8259         the RESULT_DECL.
8260
8261 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
8262
8263         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
8264         hash function.
8265
8266 2004-08-10  Roger Sayle  <roger@eyesopen.com>
8267
8268         * config/mips/mips.md: New reciprocal square root patterns that
8269         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
8270
8271 2004-08-10  Paul Brook  <paul@codesourcery.com>
8272
8273         * config/arm/arm-protos.h (arm_set_return_address,
8274         thumb_set_return_address): Add prototypes.
8275         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
8276         * config/arm/arm.c (arm_compute_func_type,
8277         use_return_insn, arm_compute_save_reg0_reg12_mask,
8278         arm_compute_save_reg_mask, arm_output_function_prologue,
8279         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
8280         current_function_calls_eh_return.
8281         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
8282         old eh code.
8283         (arm_set_return_address, thumb_set_return_address): New functions.
8284         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
8285         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
8286         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
8287         (epilogue): Use the stackadj register.
8288         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
8289
8290 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
8291
8292         PR target/3144
8293         * expr.c (move_by_pieces_ninsns): Add max_size argument.
8294         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
8295         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
8296         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
8297         but using MOVE_RATIO.
8298         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
8299         (can_store_by_pieces): Change max_size type to unsigned int.
8300         (store_by_pieces_1): Likewise.  Pass max_size to
8301         move_by_pieces_ninsns.
8302         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
8303         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
8304         to move_by_pieces_ninsns.
8305         (STORE_BY_PIECES_P): Define.
8306         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
8307         to move_by_pieces_ninsns.
8308         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
8309
8310         * config/i386/i386.h (CLEAR_RATIO): Define.
8311
8312 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8313
8314         * expr.c (expand_expr_real_1): Add back code that was not dead.
8315
8316 2004-08-09  Andrew Pinski  <apinski@apple.com>
8317
8318         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
8319         which is found to be compatible before returning the aliasing set.
8320
8321 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
8322
8323         * ggc-zone.c (struct alloc_zone): Add statistics counters.
8324         (always_collect): New flag.
8325         (ggc_alloc_zone_1): Update statistics support.  Don't include
8326         overhead in allocated counter.
8327         (sweep_pages): Update allocated counter for large pages.  Don'y
8328         include overhead.
8329         (ggc_collect_1): Always collect.
8330         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
8331         whether to collect.
8332         (SCALE, LABEL): New macros.
8333         (ggc_print_statistics): Add statistics support.
8334
8335 2004-08-09  Roger Sayle  <roger@eyesopen.com>
8336
8337         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
8338         (init_expmed): Fix potential overrun problem with "all.reg".
8339         (expand_sdiv2_pow2): Add an alternate implementation for signed
8340         division, if the target provides a suitable conditional move insn.
8341
8342 2004-08-09  Paul Brook  <paul@codesourcery.com>
8343         Richard Henderson  <rth@redhat.com>
8344
8345         * unwind-dw2.c (uw_install_context_1): Update target saved stack
8346         pointer.
8347
8348 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
8349
8350         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
8351         Check DATA limit only if there's no AS limit.  Ignore insanely
8352         low DATA limits.
8353         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
8354         but take care that the AS limit isn't overrun.
8355         * doc/invoke.texi: Update documentation of min-heapsize parameter.
8356
8357 2004-08-09  Jeff Law  <law@redhat.com>
8358
8359         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
8360         (tree-ssa-threadupdate.o): Add dependencies.
8361         * tree-ssa-threadupdate.c: New file.
8362         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
8363         (rewrite_vars_out_of_ssa): Remove prototype.
8364         (cleanup_tree_cfg): Returns a bool.
8365         * tree.h (thread_through_all_blocks): Prototype.
8366         * tree-outof-ssa.c  (SSANORM_*): Move into here.
8367         (remove_ssa_form): Now static.
8368         (rewrite_vars_out_of_ssa): Kill.
8369         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
8370         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
8371         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
8372         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
8373         anything was changed.
8374         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
8375         from the PHI's annotation rather than the edge associated with
8376         the new argument.
8377         * tree-ssa-dom.c (redirection_edges): Kill.
8378         (redirect_edges_and_update_ssa_graph): Kill.
8379         (tree_ssa_dominator_optimize): Do not reset forwardable flag
8380         for blocks anymore.  Do not initialize redirection_edges.
8381         Call thread_through_all_blocks.  Simplify code for cleanup
8382         of the CFG and iterating.  No longer call cleanup_tree_cfg
8383         outside the iteration loop.
8384         (thread_across_edge): No longer mess with forwardable blocks.
8385
8386 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
8387
8388         * explow.c (memory_address): Use memory_address_p.
8389         * recog.c (general_operand): Likewise.
8390         * regrename.c: No need to define REG_OK_STRICT.
8391
8392 2004-08-09  Steven Bosscher  <stevenb@suse.de>
8393
8394         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
8395         New timers.
8396         * gcse.c: Include timevar.h.
8397         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
8398         and global_copy_prop_count.
8399         (local_const_prop_count, local_copy_prop_count): New static globals.
8400         (gcse_main): Set the right timevar for each pass.
8401         (cprop_jump): Increment global_const_prop_count when a constant is
8402         propagated.  Add "GLOBAL" to dump output.
8403         (cprop_insn): Increment global_const_prop_count when a constant is
8404         propagated, or global_copy_prop_count when a copy is propagated.
8405         (do_local_cprop): Likewise for local_const_prop_count and
8406         local_copy_prop_count.
8407         (one_cprop_pass): Initialize const/cprop counters to zero.
8408         Print out results of local and global const/cprop separately.
8409         (bypass_block): Break over-length line.
8410         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
8411         for bb-reorder.o and tracer.o.
8412
8413 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8414
8415         * Makefile.in (GTFILES): Remove stmt.c
8416         (stmt.o): Do not depend on gt-stmt.h.
8417         * emit-rtl.c (emit_line_note): Do not call
8418         set_file_and_line_for_stmt.
8419         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
8420         do everything.
8421         * function.c (free_after_parsing): Do not free STMT field.
8422         (allocate_struct_function): Do not call init_stmt_for_function.
8423         (assign_stack_temp_for_type): Do not accept values of keep
8424         other than 0 or 1.
8425         (init_temp_slots): Do not initialize removed variables.
8426         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
8427         and X_VAR_TEMP_SLOT_LEVEL fields.
8428         * rtl.h (set_file_and_line_for_stmt): Remove.
8429         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
8430         struct stmt_status, cond_stack, case_stack, nesting_stack,
8431         nesting_depth, emit_locus, set_file_and_line_for_stmt,
8432         same_case_target_p, init_stmt_for_function, emit_nop,
8433         expand_start_cond, expand_start_elseif, expand_start_else,
8434         expand_elseif, expand_end_cond): Remove.
8435         (preserve_subexpressions_p): Remove references to CFUN->STMT.
8436         (expand_start_case, expand_end_case_type): Remove, merge into...
8437         (expand_case): ... this one, including other bits from
8438         expand_expr_real_1.  Inline same_case_target_p.  Turn members
8439         of CASE_STACK into local variables.
8440         (emit_case_bit_tests): Inline same_case_target_p.
8441         (add_case_node): Add HEAD argument, return new head of the list,
8442         do not handle default label here.
8443         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
8444         expand_start_elseif, current_nesting_level, expand_start_case,
8445         expand_end_case_type, expand_end_case, add_case_node,
8446         init_stmt_for_function, expand_elseif): Remove prototypes.
8447         (expand_case): Add prototype.
8448
8449 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8450
8451         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
8452
8453 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
8454
8455         * expr.c (var_rtx): Remove.
8456         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
8457         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
8458         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
8459         Abort.
8460         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
8461         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
8462         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
8463
8464 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
8465         Ayal Zaks <zaks@il.ibm.com>
8466
8467         * common.opt (freschedule-modulo-scheduled-loops): New flag.
8468         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
8469         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
8470         when -freschedule-modulo-scheduled-loops flag is not specified.
8471         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
8472         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
8473         More accurate placing of insn in row of partial schedule.
8474         (ps_insn_find_column): New function.
8475         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
8476         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
8477         (schedule_region): Use sched_is_disabled_for_current_region_p.
8478         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
8479
8480 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8481
8482         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
8483         change.
8484
8485 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8486
8487         * config/i386/i386.c (ix86_expand_clrmem): Properly call
8488         gen_strset for 64bit target.
8489
8490 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
8491
8492         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
8493
8494 2004-08-07  Jason Merrill  <jason@redhat.com>
8495
8496         Make return in memory explicit.
8497         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
8498         (assign_parm_find_data_types): Remove code for old front end
8499         invisible reference handling.
8500         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
8501         (expand_function_end): Likewise.
8502         * gimplify.c (gimplify_return_expr): Handle a dereferenced
8503         RESULT_DECL.
8504         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
8505         (declare_return_variable): Handle DECL_BY_REFERENCE.
8506         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
8507         (cp_genericize_r): Use convert_from_reference.
8508         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
8509         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
8510
8511         * c-common.c (c_warn_unused_result): Check TREE_USED before
8512         warning about a CALL_EXPR with an unused value.
8513
8514 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
8515
8516         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
8517         to the compiler.  Use -fshort-wchar by default.
8518
8519 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
8520
8521         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
8522         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
8523         threshhold.
8524         * doc/invoke.texi (param): Document min-crossjump-insns.
8525
8526 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
8527
8528         PR c/13282
8529         * c.opt (Wmissing-field-initializers): New option.
8530         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
8531         * c-typeck.c (pop_init_level): Guard the missing field warning with
8532         warn_missing_field_initializers rather than extra_warnings.
8533         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
8534         some of the explanation from...
8535         (-Wextra): ...here.  Say that the missing field warning can be
8536         seperately controlled by -Wmissing-field-initializers.
8537
8538 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
8539
8540         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
8541         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
8542         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
8543         * tree.def (ENTRY_VALUE_EXPR): Remove.
8544
8545 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
8546
8547         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
8548         the places where it is actually needed.  Don't use repz; stosb
8549         for -Os with sufficiently small constant sizes.
8550         For sufficiently small repz; stos{l,q} repeat counts use a sequence
8551         of stos{l,q} instructions instead.
8552
8553 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8554
8555         PR tree-optimization/16807
8556         * loop-iv.c (dump_iv_info): Dump invariants correctly.
8557         (iv_subreg, iv_extend): Express value of invariant purely in
8558         base field.
8559
8560 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
8561
8562         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
8563         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
8564
8565 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
8566
8567         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
8568         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
8569         pre_dec_operand.
8570         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
8571         pattern until reload is finished to allow better code generation
8572         and split them completely into separate instrunctions.
8573         (*andsi3_split): New pattern.
8574
8575 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
8576
8577         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
8578         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
8579         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
8580         * tree.h (handle_dll_attribute): Declare.  Test
8581         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
8582         * c-common.h (c_determine_visibility): Declare.
8583         * c-common.c (c_determine_visibility): New function.
8584         * c-decl.c (finish_decl): Use it.
8585         (finish_function): Likewise.
8586         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
8587         zero, by default.  Use #if, not #ifdef, to test it.
8588         * config/arm/arm.c (arm_attribute_table): Use
8589         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
8590         #if.
8591         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
8592         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
8593         to 1.
8594         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
8595         * config/i386/i386.c (ix86_attribute_table): Use
8596         handle_dll_attribute for dllimport/dllexport.  Test
8597         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
8598         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
8599         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
8600         it to 1.
8601         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
8602         with #if.
8603         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
8604         it to 1.
8605         * doc/extend.texi (dllexport): Clarify and correct documentation.
8606         (dllimport): Likewise.
8607         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
8608         handle_dll_attribute.
8609
8610 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8611
8612         * tree-ssa-loop-manip.c: New file.
8613         * Makefile.in (tree-ssa-loop-manip.o): Add.
8614         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
8615         Declare.
8616         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
8617         form.
8618         (tree_ssa_loop_done): Verify loop closed ssa form.
8619         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
8620
8621 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8622
8623         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
8624         pa_asm_output_aligned_local): New functions.
8625         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
8626         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
8627         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
8628         pa_asm_output_aligned_common.
8629         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
8630         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
8631         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
8632         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
8633         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
8634         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
8635         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
8636         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
8637         common data.
8638
8639 2004-08-05  Andrew Pinski  <apinski@apple.com>
8640
8641         * objc/objc-act.c (build_objc_string_object): Mark the address
8642         expression as constant.
8643
8644 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
8645
8646         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
8647         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
8648         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
8649
8650 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
8651
8652         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
8653         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
8654         out, and associated obsolete comments.
8655
8656 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
8657
8658         * tree.h (force_fit_type): Return a tree, take three flags.
8659         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
8660         TREE_CONSTANT_OVERFLOW here.
8661         (int_const_binop, const_binop): Adjust.
8662         (size_int_type): Do sign extension here.
8663         (fold_convert_const, optimize_bit_field_compare,
8664         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
8665         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
8666         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
8667
8668 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8669
8670         PR tree-optimization/16864
8671         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
8672         for ssa names without default_def.
8673
8674 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
8675
8676         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
8677         frame pointer, restore eax with an ebp-relative address.
8678
8679 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
8680
8681         PR 14516
8682         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
8683         * c-common.h (make_rtl_for_local_static): Delete.
8684         * c-decl.c (shadow_tag_warned): Clean up comment.
8685         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
8686         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
8687         * c-semantics.c (make_rtl_for_local_static): Delete.
8688         * expr.c (init_block_move_fn): Use set_user_assembler_name.
8689         (init_block_clear_fn): Likewise.
8690         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
8691         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
8692         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
8693         * tree.h (make_decl_rtl): Remove second parameter.
8694         (set_user_assembler_name): New.
8695         * varasm.c (set_user_assembler_name): New.
8696         (make_decl_rtl): Remove second parameter.  Update callers in many
8697         files.
8698
8699 2004-08-05  Adam Nemet  <anemet@lnxw.com>
8700
8701         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
8702         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
8703         to LynxOS 4.0.
8704         * gthr-lynx.h: New file.
8705         * config/lynx-ng.h: Remove file.
8706         * config/lynx.h: Update to LynxOS 4.0.
8707         * config/t-lynx: New file.
8708         * config/i386/lynx-ng.h: Remove file.
8709         * config/i386/lynx.h: Update to LynxOS 4.0.
8710         * config/rs6000/lynxbase.h: Remove file.
8711         * config/rs6000/lynx.h: Update to LynxOS 4.0.
8712         * config/rs6000/t-lynx: New file.
8713         * doc/install.texi (Options specification): Remove reference to
8714         LynxOS from systems where --with-gnu-as makes a difference.
8715
8716 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
8717
8718         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
8719         __UINTMAX_TYPE__.
8720         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
8721         __INTMAX_MAX__.
8722         (c_cpp_builtins): Call it.
8723         * doc/cpp.texi: Update.
8724
8725 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
8726
8727         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
8728         cost.
8729
8730 2004-08-04  Jan Hubicka  <jh@suse.cz>
8731
8732         * basic-block.h (profile_staus): New global variable.
8733         * cfg.c (profile_status): Declare.
8734         (check_bb_profile): Break out from ....; use profile_status
8735         (dump_flow_info): ... here.
8736         * cfgbuild.c (find_basic_blocks): Set profile_status.
8737         * cfgexpand.c (tree_expand_cfg): Likewise.
8738         * predict.c (estimate_probability): Likewise.
8739         * profile.c (branch_prob): Likewise.
8740         * tree-cfg.c (build_tree_cfg): Likewise.
8741         (dump_function_to_file): Use check_bb_profile.
8742         * tree-pretty-print (dump_bb_header): Likewise.
8743         * tree-profile.c (do_tree_profiling): Cleanup.
8744
8745 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
8746
8747         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
8748         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
8749         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
8750         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
8751         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
8752         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
8753         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
8754         (ggc-none.o, errors.o): Move rule to generators section;
8755         correct dependencies.
8756         (min-insn-modes.o): Move rule to generators section; remove
8757         unnecessary explicit command; correct dependencies.
8758         (print-rtl.o, print-rtl1.o): Correct dependencies.
8759         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
8760         (mostlyclean): Update.
8761
8762         * errors.c: Include bconfig.h not config.h.  Correct comment.
8763         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
8764         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
8765         * print-rtl.c: Don't include tm_p.h.
8766
8767         * rtl.h: Move forward-decl of struct function down where it's
8768         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
8769         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
8770
8771 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8772             Jeff Law  <law@redhat.com>
8773
8774         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
8775         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
8776         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
8777         manipulate the duplicated ssa names.
8778         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
8779         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
8780         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
8781         New functions.
8782         (release_ssa_name): Do not release ssa names that may have multiple
8783         definitions.
8784         * tree.h (release_ssa_name_force, mark_for_rewrite,
8785         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
8786         marked_ssa_names): Declare.
8787         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
8788         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
8789         Update call to rewrite_ssa_into_ssa.
8790
8791 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
8792
8793         * defaults.h (TARGET_DECLSPEC): New macro.
8794         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
8795         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
8796         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
8797         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
8798         __declspec support.
8799         (TARGET_DECLSPEC): Define.
8800         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
8801         __declspec support.
8802         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
8803         __declspec support.
8804         (TARGET_DECLSPEC): Define.
8805         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
8806         __declspec support.
8807         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
8808         support.
8809         * doc/tm.texi (TARGET_DECLSPEC): Document.
8810
8811         * doc/extend.texi: Fix typo in comment.
8812
8813 2004-08-04  Paul Brook  <paul@codesourcery.com>
8814
8815         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
8816         (TARGET_CXX): Use it.
8817         * target.h (struct gcc_target): Add cdtor_returns_this.
8818         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
8819         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
8820         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
8821
8822 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
8823
8824         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
8825         low/high pair. Do range checking directly.
8826         (interpret_integer): Adjust.
8827
8828 2004-08-04  Nick Clifton  <nickc@redhat.com>
8829
8830         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
8831         GCC ABI.
8832         * doc/invoke.texi: Document this new switch and also the -mrenesas
8833         switch.
8834
8835 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
8836
8837         * cfglayout.c (insn_locators_initialize): Update the current
8838         location before initializing a location.
8839
8840 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
8841
8842         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
8843         (dbxout_function_end): Return after emitting the "Lscope" symbol
8844         under the same conditions that this function formerly wasn't called.
8845         Add explanatory comments.
8846
8847         PR 14860
8848         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
8849         on the new decl.
8850
8851         PR 13956
8852         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
8853         functions, broken out of dbxout_block.
8854         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
8855         stabs too, if it contains symbols.  Use the begin_label and
8856         the Lscope label (emitted by dbxout_function_end) for the
8857         range of this block.
8858
8859 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
8860
8861         * doc/install.texi: Update autoconf version requirements.
8862
8863 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
8864
8865         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
8866         * recog.c (general_operand, immediate_operand, nonmemory_operand)
8867         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
8868         * regclass.c (record_reg_classes): Likewise.
8869         * reload.c (find_reloads): Likewise.
8870         * reload1.c (reload): Likewise.
8871
8872 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
8873
8874         * gensupport.c (init_md_reader_args_cb): Renamed from
8875         init_md_reader_args.  Add third option, callback function for
8876         parsing program-specific options.  Add diagnosis of incorrect
8877         number of input files.
8878         (init_md_reader): Fold into init_md_reader_args_cb.
8879         (init_md_reader_args): Now a thin wrapper around
8880         init_md_reader_args_cb.
8881         * gensupport.h: Update prototypes.
8882
8883         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
8884         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
8885         * genrecog.c: No need to diagnose lack of an input file;
8886         init_md_reader_args will handle it.
8887         * genconditions.c: Likewise, and use init_md_reader_args.
8888         * genconstants.c: Likewise, and no need to call read_md_rtx.
8889
8890 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
8891
8892         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
8893         declarations.
8894
8895 2004-08-03  Mike Stump  <mrs@apple.com>
8896
8897         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
8898         for frameworks.
8899         * doc/invoke.texi (Darwin Options): Update to reflect above.
8900
8901 2004-08-03  Roger Sayle  <roger@eyesopen.com>
8902
8903         PR middle-end/16790
8904         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
8905         truncations, not just global truncations.
8906
8907 2004-08-03  Andrew Pinski  <apinski@apple.com>
8908
8909         PR bootstrap/16865
8910         * loop-iv.c (simplify_using_assignment): Initialize lhs.
8911
8912 2004-08-03  Paul Brook  <paul@codesourcery.com>
8913
8914         * gcc/doc/install.texi: Document MPFR requirement.
8915
8916 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
8917
8918         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
8919         and mmap() explicitly instead of relying on preset autoconf cache
8920         variables.
8921         * configure: Regenerate.
8922
8923 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
8924
8925         PR target/16570
8926         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
8927         to tmake_file.
8928         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
8929         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
8930         to tmake_file.
8931
8932         * config/i386/t-gmm_malloc: New file.
8933         * config/i386/t-pmm_malloc: Likewise.
8934
8935         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
8936
8937 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
8938             Tanguy Fautrà <tfautre@pandora.be>
8939
8940         * config/i386/pmm_malloc.h: New file.
8941
8942 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
8943
8944         * config/i386/gmm_malloc.h: New file.
8945
8946 2004-08-03  Dale Johannesen  <dalej@apple.com>
8947
8948         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
8949         * c-common.c: Include opts.h.
8950         (c_common_get_alias_set): Fix check for a single input file.
8951         * toplev.c: Remove current_file_decl.
8952         * tree.h: Ditto.
8953
8954 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
8955
8956         * config.gcc (arm*-*-symbianelf*): New target.
8957         * config/arm/symbian.h: New file.
8958
8959         * gthr-gnat.c: Add visibility #pragmas.
8960         * gthr-gnat.h : Likewise.
8961         * gthr.h: Likewise.
8962         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
8963         (__ffsDI2): Likewise.
8964         (__clzSI2): Likewise.
8965         (__ctzSI2): Likewise.
8966         (__ctzDI2): Likewise.
8967         (__popcountSI2): Likewise.
8968         (__popcountDI2): Likewise.
8969         (__paritySI2): Likewise.
8970         (__parityDI2): Likewise.
8971         * libgcc2.h: Add visibility #pragmas.
8972         (__clzDI2): Add prototype.
8973         (__clzSI2): Likewise.
8974         (__ctzSI2): Likewise.
8975         (__ffsDI2): Likewise.
8976         (__ffsSI2): Likewise.
8977         (__ctzDI2): Likewise.
8978         (__popcountSI2): Likewise.
8979         (__popcountDI2): Likewise.
8980         (__paritySI2): Likewise.
8981         (__parityDI2): Likewise.
8982         * unwind-dw2-fde.h: Add visibility #pragmas.
8983         * unwind.h: Likewise.
8984
8985 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
8986             Dale Johannesen  <dalej@apple.com>
8987             Roger Sayle  <roger@eyesopen.com>
8988
8989         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
8990         constants more accurately.  Adjust costs for FMA instructions.
8991         Add cases for most logical and float operations.  Recurse into
8992         most operands.
8993
8994 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
8995
8996         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
8997
8998 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
8999
9000         * ra-build.c (conflicts_between_webs): For webs that cross a call add
9001         conflicts to regs_invalidated_by_call.
9002
9003 2004-08-03  Paul Brook  <paul@codesourcery.com>
9004
9005         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
9006
9007 2004-08-03  Jan Hubicka  <jh@suse.cz>
9008
9009         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
9010         ARRAY_REF argument.
9011
9012 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
9013
9014         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
9015         arm968es, arm10e, arm1020e, arm1022e.
9016         * invoke.texi: Update list of ARM cores.
9017         * arm-tune.md: Regenerate.
9018
9019 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
9020
9021         * arm/gentune.sh: New file.
9022         * arm/t-arm: New file.
9023         * arm/arm-tune.md: New file (autogenerated).
9024         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
9025         * arm.md (attribute tune): Delete.  Include arm-tune.md.
9026
9027 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
9028
9029         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
9030         penultimate parameter.  All callers adjusted.
9031         (struct prefix_list): Remove used_flag_ptr.
9032         (find_a_file): Do not set *pl->used_flag_ptr.
9033         (warn_B, warn_std_ptr): Remove.
9034
9035 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
9036             Mostafa Hagog <mustafa@il.ibm.com>
9037
9038         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
9039
9040 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
9041
9042         * dwarf2out.c (output_call_frame_info): Don't change data format
9043         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
9044         label.  Use 'true' not '1'.
9045         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
9046         required.
9047
9048 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9049
9050         * gdbinit.in: Reflect previous changes to rtunion_def.
9051
9052 2004-08-02  Roger Sayle  <roger@eyesopen.com>
9053
9054         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
9055         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
9056
9057 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9058
9059         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
9060         vec_p_reserve.
9061         * langhooks.h (lang_hooks::builtin_function): Rename parameter
9062         from "class" to "bt_class".
9063
9064 2004-08-02  Paul Brook  <paul@codesourcery.com>
9065
9066         PR rtl-optimization/15068
9067         * flow.c (init_propagate_block_info): Check condition is reversible.
9068
9069 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9070
9071         * gengtype.h (options::info): Change type to const char *.
9072         (enum gc_used_enum): Move out of struct type scope.
9073         * gengtype.c (create_option): Convert initializer for option::info to
9074         appropiate type.
9075         (adjust_field_type, walk_type, write_func_for_structure,
9076         write_root, write_roots): Remove pointless cast.
9077
9078 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
9079
9080         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
9081
9082 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9083
9084         * rtl.h (union rtunion_def): Have all members  start with the
9085         prefix "rt_".
9086         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
9087         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
9088         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
9089         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
9090         access.
9091         * gengtype.c (adjust_field_rtx_def): Likewise.
9092         * rtlanal.c (loc_mentioned_in_p): Likewise.
9093
9094 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
9095
9096         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
9097         Replace uses of mips/elf64.h with mips/elf.h
9098         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
9099         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
9100         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
9101         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
9102         (HANDLE_SYSV_PRAGMA): Delete.
9103         (ASM_OUTPUT_DEF): Fix formatting.
9104         * config/mips/elf64.h: Delete.
9105
9106 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
9107
9108         * config/ia64/ia64.c (got_symbolic_operand): Do require a
9109         symbol+offset operand to have its offset be zero mod 0x3fff
9110         when GOT entries are in use.  Clarify logic in SYMBOL_REF
9111         case.  Clarify comments.
9112         (ia64_expand_load_address): Split a symbol+offset load when
9113         the offset is nonzero mod 0x3fff, not 0x1fff.
9114
9115 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
9116
9117         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
9118         if trying to *store* to a non-offsettable address.
9119         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
9120         a nonoffsettable address.
9121         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
9122         Clean up.
9123         (movti_string): Don't move GPRs to a nonoffsettable address.
9124         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
9125
9126 2004-08-02  Ben Elliston  <bje@au.ibm.com>
9127
9128         PR target/16155
9129         * config/rs6000/altivec.h: Replace typeof with __typeof__.
9130
9131 2004-08-01  Richard Henderson  <rth@redhat.com>
9132
9133         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
9134         variable sized types.
9135
9136 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
9137
9138         * doc/invoke.texi: In the MIPS options section, remove the passage
9139         saying that -mexplicit-relocs is usually disabled for -mabicalls
9140         -fno-unit-at-a-time.
9141         * config/mips/mips.c (override_options): Remove the code that enforced
9142         this rule.
9143
9144 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
9145
9146         * config/mips/mips.md (cprestore): Provide two alternatives, one for
9147         an in-range offset and one for an out-of-range offset.  Wrap the latter
9148         in .set macro/.set nomacro if it's inside a .set nomacro block.
9149
9150 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
9151
9152         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
9153         (mips_restore_gp): Declare.
9154         * config/mips/mips.c (mips_add_offset): Add a scratch register
9155         argument.  Reimplement in rtl only, reusing MIPS16 logic from
9156         mips_output_mi_thunk.
9157         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
9158         to mips_add_offset.
9159         (mips_gp_save_slot): Delete.
9160         (mips_restore_gp): New function.
9161         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
9162         * config/mips/mips.md (exception_receiver): Turn into a
9163         define_insn_and_split.  Use mips_restore_gp to do the split.
9164         (call_internal, call_value_internal, call_value_multiple_internal): Use
9165         mips_restore_gp to restore $gp.
9166
9167 2004-07-31  Andrew Pinski  <apinski@apple.com>
9168
9169         PR other/16842
9170         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
9171
9172 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
9173
9174         * c-decl.c (diagnose_mismatched_decls): Give error for external
9175         redeclaration of identifier declared with no linkage, not just
9176         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
9177         error for redeclaration with no linkage.
9178
9179 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
9180             Fariborz Jahanian <fjahanian@apple.com>
9181
9182         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
9183         non-offsettable addresses even for DImode.
9184         (rs6000_split_multireg_move): Cope with non-offsettable addresses
9185         being moved into multiple GPRs.
9186
9187         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
9188         to 64.
9189         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
9190         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
9191         to 128.
9192         * config/rs6000/darwin-ldouble.c (isless): New macro.
9193         (inf): New macro.
9194         (nonfinite): New macro.
9195         (FPKINF): Delete.
9196         (_xlqadd): Completely rewrite.
9197         (_xlqmul): Correct overflow handling.
9198         (_xlqdiv): Correct overflow handling.
9199         * config/rs6000/darwin-ldouble-format: New file.
9200
9201 2004-07-30  Roger Sayle  <roger@eyesopen.com>
9202             Richard Henderson  <rth@redhat.com>
9203
9204         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
9205         9 into the equivalent lea instruction.
9206
9207 2004-07-30  Richard Henderson  <rth@redhat.com>
9208
9209         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
9210         with DECL_INITIAL if fb_lvalue.
9211         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
9212         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
9213         with <Cxxx>.
9214         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
9215
9216 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
9217
9218         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
9219         pointer escapes through a function call, assume that the
9220         callee will dereference it.
9221         (add_pointed_to_var): Assume that VALUE is always an
9222         ADDR_EXPR.
9223         (collect_points_to_info_r): Only call add_pointed_to_var if
9224         the value is an ADDR_EXPR.
9225
9226 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
9227
9228         * tree-ssa-alias.c (create_alias_map_for): Do not get the
9229         alias set of the inner type of ARRAY_TYPEs.
9230
9231 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
9232
9233         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
9234         setting a non-register to UNDEFINED right before the call to
9235         set_lattice_value.
9236
9237 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
9238
9239         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
9240
9241 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
9242
9243         * tree-ssa.c (verify_flow_sensitive_alias_info): When
9244         comparing points-to sets of different pointers, make sure the
9245         second pointer is actually referenced in the code.
9246
9247 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
9248
9249         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
9250         (got_symbolic_operand): Remove unreachable code.
9251         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
9252         setjmp_operand; add entry for tls_symbolic_operand.
9253         * config/ia64/ia64-protos.h: Remove all prototypes of
9254         predicate functions.
9255
9256 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
9257
9258         * c-common.h (lang_post_pch_load): New variable.
9259         * c-pch.c (lang_post_pch_load): Define it.
9260         (c_common_read_pch): Use it.
9261         * cgraphunit.c (record_call_1): Give the front end a chance to
9262         record additional needed entities when a variable is marked as
9263         needed.
9264         * tlink.c (recompile_files): Robustify.
9265         (scan_linker_output): If a symbol is assigned to a file,
9266         but after recompilation is not present there, issue an error
9267         message.
9268
9269 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9270
9271         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
9272         Take orig_loop argument and pass it to set_level.
9273         (schedule_sm): Pass the correct orig_loop to force_move_till.
9274
9275 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9276
9277         * cfgloop.c (update_latch_info): Update dominator of the new block.
9278         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
9279         info.
9280         * dominance.c (verify_dominators): Check that the dominance tree is
9281         connected.
9282         (recount_dominator): Ignore unreachable blocks.
9283         (iterate_fix_dominators): Cleanup old dominance information before
9284         recomputing it.
9285
9286 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
9287
9288         * tree-ssa-operands.c (get_expr_operands): Revert changes
9289         to ADDR_EXPR processing introduced by:
9290             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9291             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
9292
9293 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
9294
9295         * doc/implement-c.texi: Add C90 subclause references.  Point to
9296         preprocessor documentation instead of duplicating it.  Add points
9297         only present in C90.  Fill in documentation for all points.
9298
9299 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9300
9301         * pa.c (output_movb): Correct typo.
9302
9303 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
9304
9305         * ra.h (single_reg_in_regclass): Declare.
9306         * ra.c (single_reg_in_regclass): Define.
9307         (first_hard_reg): New.
9308         (init_ra): Initialize single_reg_in_regclass.
9309         * ra-colorize.c (ok_class): New.
9310         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
9311
9312 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
9313
9314         * gcov-io.h: Allow zero tag as EOF indicator.
9315         (gcov_is_eof): Remove.
9316         (gcov_truncate): Remove.
9317         * gcov-io.c (gcov_seek): Always SEEK_SET.
9318         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
9319         EOF tag.
9320         * coverage.c (read_counts_file): Don't use gcov_is_eof.
9321         * gcov-dump.c (dump_file): Likewise.
9322         * gcov.c (read_graph_file, read_count_file): Likewise.
9323
9324         * c-decl.c (complete_array_type): Don't gratuitously copy
9325         maxindex.  Check it always has a type.
9326
9327 2004-07-29  Steven Bosscher  <stevenb@suse.de>
9328
9329         * rtl.c (currently_expanding_to_rtl): New.
9330         * rtl.h (currently_expanding_to_rtl): Export it.
9331         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
9332
9333         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
9334         inliner hack.
9335         * config/sh/sh.c: Replace rtx_equal_function_value_matters
9336         with currently_expanding_to_rtl.
9337         * config/sh/sh.md: Likewise.
9338         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
9339
9340 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
9341
9342         Introduce sh2a support.
9343         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
9344         * config.gcc: Build multilibs for sh2a and sh2a-single by
9345         default.
9346         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
9347         default.  Split their tests out of the corresponding SH4
9348         multilibs.
9349         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
9350         multilibs for SH2a.
9351         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
9352         * config.gcc: Handle sh2a multilibs and cpu selection.
9353         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
9354         * config/sh/t-mlib-sh2a: New.
9355         * config/sh/t-mlib-sh2a-nofpu: New.
9356         * config/sh/t-mlib-sh2a-single: New.
9357         * config/sh/t-mlib-sh2a-single-only: New.
9358         2004-07-09  Nick Clifton  <nickc@redhat.com>
9359         Issue 43400
9360         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
9361         -ml and -m2a are used together.
9362         2004-03-23  DJ Delorie  <dj@redhat.com>
9363         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
9364         when we have a double-sized FPU.
9365         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
9366         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
9367         is set.
9368         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
9369         -msh2a-single and -msh2a-single-only
9370         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
9371         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
9372         is set.
9373         2004-02-20  DJ Delorie  <dj@delorie.com>
9374         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
9375         2004-02-20  Fred Fish <fnf@redhat.com>,
9376         Corinna Vinschen <vinschen@redhat.com>
9377         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
9378         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
9379         2004-02-18  DJ Delorie  <dj@redhat.com>
9380         * config/sh/sh.c (broken_move): Add support for movi20.
9381         * config/sh/sh.h: Likewise.
9382         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
9383         * config/sh/sh.md (udivsi3_sh2a): New.
9384         (udivsi3): Call it.
9385         (divsi3_sh2a): New.
9386         (divsi3): Call it.
9387         (mul_r): New.
9388         (ashlsi3_sh2a): New.
9389         (ashrsi3_sh2a): New.
9390         (lshrsi3_sh2a): New.
9391         (movsi_i): Disable for sh2a.
9392         (movsi_ie): Add movi20.
9393         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
9394         sh2a, for -m2a-nofpu mode.
9395         2004-02-13  DJ Delorie  <dj@redhat.com>
9396         * config/sh/lib1funcs.asm: Handle double vs single better.
9397         * config/sh/sh.h: Likewise.
9398         2004-02-09  DJ Delorie  <dj@redhat.com>
9399         * config/sh/crt1.asm: Add support for sh2a.
9400         * config/sh/elf.h: Likewise.
9401         * config/sh/lib1funcs.asm: Likewise.
9402         * config/sh/sh.c: Likewise.
9403         * config/sh/sh.md: Likewise.
9404         * config/sh/sh.h: Likewise.
9405         * config/sh/t-sh: Likewise.
9406
9407 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
9408
9409         * config/frv/frv.md (movqi_internal, movhi_internal,
9410         movsi_internal): Add backup alternatives for memory inputs.
9411
9412 2004-07-28  Matt Austern  <austern@apple.com>
9413
9414         * config/darwin.c (darwin_one_byte_bool): New global variable.
9415         * config/darwin.h (darwin_one_byte_bool): Declare.
9416         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
9417         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
9418         value of darwin_one_byte_bool.
9419         * doc/invoke.texi: Document -mone-byte-bool flag.
9420
9421 2004-07-28  Eric Christopher  <echristo@redhat.com>
9422
9423         * c-common.c (c_common_unsafe_for_reeval): Delete.
9424         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
9425         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
9426         * calls.c (fix_unsafe_tree): Delete.
9427         (expand_call): Delete code which used above.
9428         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
9429         * expr.c (expand_expr_real_1): Ditto.
9430         * fold-const.c (non_lvalue): Ditto.
9431         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
9432         (lhd_unsafe_for_reeval): Ditto.
9433         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
9434         * langhooks.h (unsafe_for_reeval): Ditto.
9435         (unsave_expr_now): Adjust comment.
9436         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
9437         (estimate_num_insns_1): Ditto.
9438         * tree-pretty-print.c (dump_generic_node): Ditto.
9439         * tree.c (expr_align): Ditto.
9440         (unsave_expr): Delete.
9441         (unsafe_for_reeval): Ditto.
9442         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
9443         * tree.def (UNSAVE_EXPR): Delete.
9444         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
9445
9446 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
9447
9448         * tree.h (enum tls_model): Move ...
9449         * coretypes.h: ... here.
9450
9451 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
9452
9453         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
9454
9455 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
9456
9457         * cse.c (validate_canon_reg): New function, split out from...
9458         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
9459
9460 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9461
9462         * tree-ssa-alias.c (maybe_create_global_var): Don't just
9463         return if .GLOBAL_VAR has been created.
9464
9465 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9466
9467         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
9468         every variable that may have aliases, not just tags.
9469
9470 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
9471
9472         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
9473         move_from_CR_eq_bit.
9474         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
9475
9476
9477         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
9478         e500_flip_eq_bit.
9479
9480         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
9481         output_e500_flip_eq_bit.
9482
9483         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
9484         output_e500_flip_eq_bit.
9485         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
9486         output_e500_flip_eq_bit.
9487         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
9488         (print_operand): case D.  Get to EQ bit.
9489
9490 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
9491
9492         * gcov.c (function_summary): Add missing \n.
9493
9494 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
9495
9496         Introduce sh4a support.
9497         * config.gcc: Handle sh4a multilibs and cpu selection.
9498         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
9499         * config/sh/t-mlib-sh4a: New.
9500         * config/sh/t-mlib-sh4al: New.
9501         * config/sh/t-mlib-sh4a-nofpu: New.
9502         * config/sh/t-mlib-sh4a-single: New.
9503         * config/sh/t-mlib-sh4a-single-only: New.
9504         2004-02-20  DJ Delorie  <dj@redhat.com>
9505         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
9506         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
9507         2003-08-22  Eric Christopher  <echristo@redhat.com>
9508         * config/sh/sh4a.md: Update for chip errata.
9509         2003-08-07  Eric Christopher  <echristo@redhat.com>
9510         * config/sh/sh4a.md: New file. sh4a processor description.
9511         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
9512         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
9513         of -m4a-nofpu.
9514         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
9515         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
9516         * doc/invoke.texi (SH Options): Document -m4al.
9517         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
9518         * config/sh/sh.c (expand_block_move): Remove commented-out code
9519         checked in by mistake.
9520         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
9521         single elements from SFmode vectors.
9522         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
9523         register.
9524         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
9525         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
9526         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
9527         sh_fsca_int2sf): Remove variable declarations.
9528         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
9529         sh_fsca_int2sf): New functions.
9530         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
9531         sh_fsca_int2sf_rtx): New static variables.
9532         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
9533         sh_fsca_int2sf): Declare.
9534         * config/sh/sh.md: Adjust.
9535         * doc/invoke.texi (SH Options): Document new options.
9536         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
9537         compatibility from SH4 code.
9538         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
9539         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
9540         early.
9541         (memory_movsrc_operand): Renamed to...
9542         (unaligned_load_operand): ... this.  Simplified.
9543         * config/sh/sh.h (PREDICATE_CODES): Adjust.
9544         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
9545         input operand to SImode, and adjust the others.  Introduce
9546         post-increment by peephole.
9547         * config/sh/sh.c (expand_block_move): Give the target address the
9548         same mode as the temp reg.
9549         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
9550         copying.
9551         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
9552         Introduce support for SH4a.
9553         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
9554         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
9555         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
9556         sh_fsca_int2sf): New.
9557         (sh_init_builtins): Initialize them.
9558         (print_operand): Support `d'.
9559         (expand_block_move): Use movua if src is misaligned.
9560         (memory_movsrc_operand): New.
9561         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
9562         and one of the SH4 macros.
9563         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
9564         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
9565         SELECT_SH4A_SINGLE): New.
9566         (TARGET_NONE): Add SH4A_BIT.
9567         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
9568         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
9569         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
9570         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
9571         (enum processor_type): Added PROCESSOR_SH4A.
9572         (PREDICATE_CODES): Add memory_movsrc_operand.
9573         * config/sh/sh.md: Removed unused variables.
9574         (attr cpu): Add sh4a.
9575         (attr type): Add movua, fsrra and fsca.
9576         (prefetch): New, for SH4.
9577         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
9578         (toggle_sz): Set type to fp.
9579         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
9580         (movua, extv, extzv): New.
9581         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
9582         and 4a-single-only.
9583
9584 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9585
9586         * tree-optimize.c (init_tree_optimization_passes): Schedule
9587         pass_may_alias right after the program is renamed into SSA.
9588         * tree-pass.h (PROP_alias): Define.
9589         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
9590         * tree-sra.c (pass_sra): Likewise.
9591         * tree-ssa-ccp.c (pass_ccp): Likewise.
9592         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
9593         * tree-ssa-dce.c (pass_dce): Likewise.
9594         * tree-ssa-dom.c (pass_dominator): Likewise.
9595         * tree-ssa-dse.c (pass_dse): Likewise.
9596         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
9597         * tree-ssa-loop-ch.c (pass_ch): Likewise.
9598         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
9599         * tree-ssa-pre.c (pass_pre): Likewise.
9600         * tree-tailcall.c (pass_tail_recursion): Likewise.
9601         * tree-ssa.c (pass_redundant_phi): Likewise.
9602         * tree-ssa-alias.c (aliases_computed_p): Remove.
9603         Update all users.
9604         (init_alias_info): Do not mark all type tags for renaming
9605         unconditionally.
9606         Clear may_aliases from every symbol.
9607         (setup_pointers_and_addressables): If a pointer has not been
9608         dereferenced and it had a type tag, clear it and mark the old
9609         tag for renaming.
9610
9611 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
9612
9613         PR tree-optimization/16705
9614         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
9615         .GLOBAL_VAR.
9616
9617 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9618
9619         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
9620         check.
9621
9622         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
9623         don't make another one.
9624
9625         PR optimization/15077
9626         * function.h (struct function): Add field saved_static_chain_decl.
9627         Fix comment for static_chain_decl.
9628         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
9629         * tree-inline.h (save_body): Add new arg.
9630         * tree-optimize.c (tree_rest_of_compilation): Handle saving
9631         static_chain_decl.
9632
9633 2004-07-27  Richard Henderson  <rth@redhat.com>
9634
9635         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
9636         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
9637         is_gimple_addressable.
9638         * tree-gimple.c (is_gimple_addressable): Rename from
9639         is_gimple_addr_expr_arg; accept INDIRECT_REF.
9640         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
9641         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
9642         rename to is_gimple_addressable.
9643
9644 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
9645
9646         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
9647
9648 2004-07-27  Richard Henderson  <rth@redhat.com>
9649
9650         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
9651         before rounding.
9652
9653 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
9654
9655         * libgcc2.c: Change all conditionals testing
9656         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
9657         * libgcc2.h: Likewise.
9658         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
9659         TYPE_PRECISION of float80_type to 80.
9660         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
9661         of fpreg_type and float80_type to 80.
9662         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
9663         * config/m68k/netbsd-elf.h:
9664         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
9665         to evaluate to 80 whenever they would formerly have evaluated to 96.
9666         * config/i386/sco5.h: Remove unnecessary redefinition of
9667         LONG_DOUBLE_TYPE_SIZE.
9668         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
9669         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
9670         XFmode, with a bitsize of 80.  Update commentary.
9671         * config/ia64/ia64-modes.def: Likewise.
9672         * config/m68k/m68k-modes.def: Likewise.
9673
9674 2004-07-27  Steven Bosscher  <stevenb@suse.de>
9675
9676         * cfgexpand.c (tree_expand_cfg): Fix comment.
9677
9678         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
9679         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
9680         Remove.
9681         (prepare_function_start): Don't set rtx_equal_function_value_matters.
9682         * integrate.c (copy_rtx_and_substitute): Don't test for it.
9683         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
9684         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
9685         here again.  Update leading comment.
9686         * rtl.c (rtx_equal_function_value_matters): Remove.
9687         (rtx_equal_p): Don't test for it.
9688         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
9689         Likewise.
9690
9691         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
9692         * rtl.c (note_insn_name): Likewise.
9693         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
9694         * final.c (final_scan_insn): Likewise.
9695
9696         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
9697         * passes.c (rest_of_handle_eh): Do it here.
9698
9699         * stmt.c (struct nesting): Remove struct nesting block member.
9700         (struct stmt_status): Remove x_block_start_count field.
9701         (current_block_start_count): Remove.
9702
9703 2004-07-27  Brian Booth  <bbooth@redhat.com>
9704
9705         * tree-optimize.c (register_one_dump_file): Update condition that uses
9706         static_pass_number.
9707         (dup_pass_1): Replace with...
9708         (next_pass_1): This.
9709         (NEXT_PASS): Call next_pass_1.
9710         (DUP_PASS): Remove.
9711         (init_tree_optimization_passes): Remove uses of DUP_PASS.
9712         (execute_one_pass): Update condition that uses
9713         static_pass_number.
9714         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
9715         integer.
9716
9717 2004-07-27  Nick Clifton  <nickc@redhat.com>
9718
9719         * config/m32r/m32r.c: Include integrate.h in order to get the
9720         prototype for get_hard_reg_initial_val().
9721
9722         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
9723         and tidy up indentation.
9724         (final_presence_set): Use absence_set instead, so that if there is
9725         nothing in the "o" pipe the "s" pipe can be scheduled.
9726
9727 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
9728
9729         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
9730         don't have PT_VARS nor PT_MALLOC set.
9731         Clear name tag from pointers that have not been dereferenced.
9732         (set_pt_anything, set_pt_malloc): Forward declare.
9733         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
9734         not type compatibility when determining if a pointer can be
9735         copy propagated.
9736
9737 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
9738
9739         * expr.h (canonicalize_condition, get_condition): Add an int argument.
9740         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
9741         it to check whether the condition is still valid at the jump insn.
9742         * ifcvt.c (noce_get_condition): Likewise.
9743         (noce_get_alt_condition): Update call to canonicalize_condition.
9744         * loop-iv.c (simplify_using_initial_values): Update call to
9745         get_condition.  Remove FIXME.
9746         (check_simple_exit): Update call to get_condition.
9747         * loop-unswitch.c (may_unswitch_on): Likewise.
9748         * loop.c (check_dbra_loop): Likewise.
9749         (canonicalize_condition, get_condition): Add an argument to say whether
9750         the condition must still be valid at INSN.
9751         (get_condition_for_loop): Update call to get_condition.  Require that
9752         the condition be valid at INSN.
9753         * predict.c (estimate_probability): Update call to get_condition.
9754         Remove unused earliest parameter.
9755         (expected_value_to_br_prob): Update call to canonicalize_condition.
9756
9757 2004-07-26  Eric Christopher  <echristo@redhat.com>
9758
9759         * tree-dfa.c (add_referenced_var): Register initializers of global
9760         variables.
9761
9762 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
9763
9764         * config/i386/i386.c (function_arg): Always treat 8-
9765         and 16-byte wide vectors the same, even if MMX/SSE
9766         are disabled.
9767         (contains_128bit_aligned_vector_p): Add comment.
9768
9769 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
9770
9771         * ra.h (enum node_type): Rename to:
9772         (enum ra_node_type).
9773         * ra-colorize.c: Likewise.
9774
9775 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
9776
9777         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
9778         after simplifying the jump.
9779
9780 2004-06-26  Richard Henderson  <rth@redhat.com>
9781
9782         * calls.c (combine_pending_stack_adjustment_and_call): Make
9783         preferred_unit_stack_boundary argument unsigned.  Make
9784         unadjusted_alignment unsigned.
9785         (expand_call): Make preferred_stack_boundary and
9786         preferred_unit_stack_boundary variables unsigned.
9787         * function.c (assign_stack_local_1): Make alignment unsigned.
9788         * function.h (struct function): Make stack_alignment_needed,
9789         preferred_stack_boundary unsigned.
9790         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
9791         (ix86_compute_frame_layout): Make stack_alignment_needed,
9792         preferred_alignment variables unsigned.
9793         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
9794
9795 2004-07-26  Tom Tromey  <tromey@redhat.com>
9796
9797         * tree.h: Fix typo in comment.
9798
9799 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
9800
9801         PR bootstrap/12804
9802         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
9803         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
9804         (ggc_free): Remove incorrect freeing.
9805         (sweep_pages): Advance PP for large pages.  Fix indentation.
9806
9807 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
9808
9809         PR rtl-optimization/16643
9810         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
9811         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
9812         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
9813         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
9814         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
9815         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9816         * rtl.h (tracer): Add a flags parameter.
9817         * tracer.c (tracer): Pass it to cfg_layout_initialise.
9818         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
9819         (rest_of_handle_reorder_blocks): Update calls to tracer and
9820         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
9821         (rest_of_handle_tracer): Pass 0 to tracer.
9822         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
9823
9824 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
9825
9826         PR target/16239
9827         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
9828         f->f.
9829
9830 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
9831
9832         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
9833         (BINFO_BASE_ACCESS): Adjust.
9834         (BINFO_BASE_ACCESS_APPEND): New.
9835         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
9836         * dbxout.c (dbxout_type): Adjust binfo access accessing.
9837         * dwarf2out.c (gen_member_die): Likewise.
9838         * tree-dump.c (deque_and_dump): Likewise.
9839
9840 2004-07-26  Falk Hueffner  <falk@debian.org>
9841
9842         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
9843         costs.
9844
9845 2004-07-25  Roger Sayle  <roger@eyesopen.com>
9846
9847         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
9848         value off of the stack if TARGET_USE_FFREEP.
9849
9850 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
9851
9852         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
9853         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
9854         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
9855         check on invocation of XRESIZEVEC ().
9856
9857 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
9858
9859         * c-common.c (disable_builtin_function): Rename variable n to
9860         new_disabled_builtin.
9861         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
9862         Rename local variable old to old_decl.
9863         * gensupport.c (shift_output_template): Rename parameter old to src.
9864         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
9865         old_rtx and newx to new_rtx.
9866
9867 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
9868
9869         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
9870         of c-pragma.h.
9871         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
9872         enum cpp_ttype.
9873         * c-lex.c: Likewise.
9874
9875 2004-07-25  Roger Sayle  <roger@eyesopen.com>
9876
9877         * fold-const.c (constant_boolean_node): Make extern.
9878         (make_range): Wrap long lines.
9879         (fold_cond_expr_with_comparison): Remove unnecessary call to
9880         pedantic_non_lvalue.  Add missing calls to fold_convert.
9881         (fold_truthop): Add missing calls to fold_convert.
9882         (fold): Likewise.
9883         * tree.h (constant_boolean_node): Add prototype here.
9884         * builtins.c (expand_builtin_strncmp): Add missing calls to
9885         fold_convert.
9886         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
9887         Call fold_convert and constant_boolean_node to correct types.
9888         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
9889         missing call to fold_convert to correct types.
9890
9891 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
9892             Brian Ryner  <bryner@brianryner.com>
9893
9894         PR c++/9283
9895         PR c++/15000
9896         * c-common.c (c_common_attribute_table): Allow
9897         handle_visibility_attribute to be called for types.
9898         (handle_visibility_attribute) When given a type, set the visibility
9899         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
9900         so that we can check later whether the attribute was present. Added
9901         warning if attribute applied to non class type.
9902         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
9903         decls and checking that they are consistent.
9904         * common.opt: Added -fvisibility.
9905         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
9906         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
9907         * flags.h, tree.h: Added assorted support defines for overall patch
9908         * opts.c: Added parsing support for -fvisibility.
9909         * tree.c (build_decl): Set visibility for all decls to be whatever
9910         is in force at that time.
9911         * varasm.c (default_binds_local_p_1): Reworked logic determining
9912         when to make a symbol locally bound.
9913         * doc/invoke.texi: Added documentation for -fvisibility and
9914         -fvisibility-inlines-hidden.
9915
9916 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9917
9918         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
9919         * c-common.c: Add missing casts from void * to other types.
9920         * c-decl.c: Likewise.
9921         * c-format.c: Likewise.
9922         * c-lex.c: Likewise.
9923         * c-pragma.c: Likewise.
9924         * c-typeck.c: Likewise.
9925         * defaults.h: Likewise.
9926         * genconstants.c: Likewise.
9927         * gengtype-lex.l: Likewise.
9928         * genmodes.c: Likewise.
9929         * read-rtl.c: Likewise.
9930         * rtl.c: Likewise.
9931
9932 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9933
9934         * bitmap.c: Use type-safe memory allocation macros from libiberty.
9935         * c-common.c: Likewise.
9936         * c-decl.c: Likewise.
9937         * c-lang.c: Likewise.
9938         * c-lex.c: Likewise.
9939         * c-opts.c: Likewise.
9940         * c-parse.in: Likewise.
9941         * c-typeck.c: Likewise.
9942         * genconditions.c: Likewise.
9943         * gengtype-lex.l: Likewise.
9944         * gengtype-yacc.y: Likewise.
9945         * gengtype.c: Likewise.
9946         * genmodes.c: Likewise.
9947         * gensupport.c: Likewise.
9948         * read-rtl.c: Likewise.
9949         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
9950         htab_find_slot().
9951
9952 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9953
9954         * c-decl.c (groktypename, groktypename_in_param_context): Rename
9955         variable typename to type_name.
9956         * c-lex.c (interpret_float): Likewise.
9957
9958 2004-07-25  Roger Sayle  <roger@eyesopen.com>
9959
9960         * convert.c (convert_to_real, convert_to_integer,
9961         convert_to_complex): Replace calls to build with calls to buildN.
9962         * coverage.c (tree_coverage_counter_ref): Likewise.
9963         * dojump.c (do_jump): Likewise.
9964         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
9965         * emit-rtl.c (component_ref_for_mem_expr,
9966         set_mem_attributes_minus_bitpos): Likewise.
9967         * explow.c (update_nonlocal_goto_save_area): Likewise.
9968         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
9969         expand_mult_add): Likewise.
9970         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
9971         store_constructor, get_inner_reference, expand_expr_real_1,
9972         try_casesi, try_tablejump): Likewise.
9973         * function.c (expand_function_start): Likewise.
9974         * stmt.c (emit_case_bit_tests, expand_end_case_type,
9975         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
9976         * stor-layout.c (place_union_field, layout_type): Likewise.
9977         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
9978         * varasm.c (copy_constant): Likewise.
9979
9980 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
9981
9982         * c-common.c: Rename all identifiers named `new'.
9983         * c-decl.c: Likewise.
9984         * gensupport.c: Likewise.
9985         * simplify-rtx.c: Likewise.
9986         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
9987         with XNEW().
9988         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
9989         with XNEWVEC().
9990
9991 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
9992
9993         PR c/15360
9994         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
9995         declarations until after calling pushdecl.
9996         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
9997         "extern" and not on whether the declaration is initialized.
9998
9999 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
10000
10001         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
10002         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
10003         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
10004         "cpplib.h", "c-pragma.h", "c-common.h".
10005         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
10006         (solaris_register_pragmas): New functions.
10007         * config/sol2-protos.h: New file.
10008         * config/sol2.c: New file.
10009         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
10010         (REGISTER_TARGET_PRAGMAS): New macros.
10011         (solaris_pending_aligns, solaris_pending_inits)
10012         (solaris_pending_finis): New variables.
10013         * config/t-sol2 (sol2-c.o): Update dependencies.
10014         (sol2.o): New rule.
10015         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
10016         SUBTARGET_INSERT_ATTRIBUTES.
10017         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
10018         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
10019         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
10020         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
10021         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
10022         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
10023         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
10024         * config/sparc/sparc.c (sparc_attribute_table): New.
10025         (TARGET_INSERT_ATTRIBUTES): Define in terms of
10026         SUBTARGET_INSERT_ATTRIBUTES.
10027         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
10028         is defined.
10029         * doc/extend.texi (Solaris Pragmas): New section.
10030
10031 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10032
10033         * c-common.c: Rename all identifiers named `class' to `cl'.
10034         * c-common.h: Likewise.
10035         * c-parse.in: Likewise.
10036         * c-typeck.c: Likewise.
10037         * genmodes.c: Likewise.
10038         * real.c: Likewise.
10039         * real.h: Likewise.
10040         * recog.c: Likewise.
10041         * recog.h: Likewise.
10042         * regrename.c: Likewise.
10043         * tree.h: Likewise.
10044         * c-common.c (builtin_function_2): Change type of 5th parameter from
10045         int to enum built_in_function. Change type of 8th parameter from int
10046         to bool.
10047         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
10048         with GGC_CNEW().
10049         * c-typeck.c (convert_arguments): Change type of formal_prec from
10050         int to unsigned int.
10051         * genmodes.c (blank_mode): Make a few negative constants unsigned.
10052         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
10053         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
10054         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
10055         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
10056         iterator to for_all_modes () instead of an enum because enums can't
10057         be incremented in C++.
10058
10059
10060 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
10061
10062         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
10063         hard registers.
10064
10065 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10066
10067         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
10068         Handle ARRAY_RANGE_REF like ARRAY_REF.
10069
10070 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
10071
10072         * c-typeck.c (digest_init): Don't allow arrays of signed or
10073         unsigned variants of wchar_t to be initialized by wide string
10074         constants.  Do allow arrays of enumerated types compatible with
10075         wchar_t to be initialized by wide string constants.  Refine tests
10076         distinguishing wide and narrow strings and arrays.  Give specific
10077         error for arrays of other integer types initialized by string
10078         constants.
10079         (output_init_element, process_init_element): Check for
10080         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
10081         initializing with string constants.
10082
10083 2004-07-25  Richard Henderson  <rth@redhat.com>
10084
10085         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
10086         on the RESULT_DECL.
10087         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
10088         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
10089         DECL_IGNORED_P to new decl.
10090
10091 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
10092
10093         * config/ia64/ia64.c (general_xfmode_operand)
10094         (destination_xfmode_operand): Delete.
10095         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
10096         * config/ia64/ia64.md (*movxf_internal): Use general_operand
10097         and destination_operand.
10098
10099 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
10100
10101         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
10102         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
10103
10104 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
10105             Zack Weinberg  <zack@codesourcery.com
10106
10107         PR 16684
10108         * c-decl.c (diagnose_mismatched_decls): Don't issue a
10109         redundant-declaration warning the first time a builtin is
10110         declared explicitly.
10111
10112 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10113
10114         * tree.h (staticp): Change return type to bool.
10115
10116 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10117
10118         * c-common.c (c_staticp): Last episode of the staticp saga.
10119
10120 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10121
10122         * c-common.h (c_staticp): Change return type from int to bool.
10123         * tree.c (staticp): Likewise.
10124         * langhooks.h (staticp): Likewise.
10125
10126 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10127
10128         * langhooks-def.h (lhd_staticp): Change return type from int to
10129         bool in prototype to match definition.
10130
10131 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10132
10133         * system.h (bool, true, false): Don't redefine as preprocessor macros
10134         in C++.
10135
10136 2004-07-24  Roger Sayle  <roger@eyesopen.com>
10137
10138         * expmed.c (init_expmed): A signed modulus by a power of two is
10139         considered cheap if its less than or equal to four instructions.
10140
10141 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10142
10143         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
10144         GGC_CNEWVAR): New macros.
10145
10146 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
10147
10148         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
10149         lists.
10150         * c-decl.c: Likewise.
10151         * c-format.c: Likewise.
10152         * c-lex.c: Likewise.
10153         * c-opts.c: Likewise.
10154         * c-pragma.c: Likewise.
10155         * c-typeck.c: Likewise.
10156         * gencheck.c: Likewise.
10157         * genconditions.c: Likewise.
10158         * genconfig.c: Likewise.
10159         * genflags.c: Likewise.
10160         * gengtype.c: Likewise.
10161         * gensupport.c: Likewise.
10162         * ggc-none.c: Likewise.
10163         * langhooks.c: Likewise.
10164         * statistics.h: Likewise.
10165         * stub-objc.c: Likewise.
10166         * java/decl.c: Likewise.
10167
10168 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
10169
10170         * config/m68k/m68k.c (output_scc_di): Fix coding style.
10171         (symbolic_operand): Fix prototype.
10172         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
10173         * config/m68k/m68k.md: Add constants for registers a0 and sp and
10174         use them, change from the "{...}" syntax to the simpler {...}
10175         syntax.
10176         (*cfv4_extendqisi2): Fix destination predicate.
10177         * config/m68k/m68k-protos.h: Remove various declarations also
10178         generated via PREDICATE_CODES.
10179
10180 2004-07-23  Mike Stump  <mrs@apple.com>
10181
10182         * c-typeck.c (convert_for_assignment): Tightened up pointer
10183         converstions that differ in signedness.
10184
10185 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
10186
10187         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
10188
10189 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10190
10191         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
10192         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
10193
10194         * gimplify.c (gimplify_compound_lval): Check for no handled
10195         operations, rather than checking for explicit list of nodes.
10196         (is_gimple_addr_expr_arg_or_indirect): New function.
10197         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
10198         redundant setting of TREE_INVARIANT.
10199         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
10200         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
10201
10202 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
10203
10204         PR tree-optimization/16688
10205         PR tree-optimization/16689
10206         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
10207         unnecessary initialization of 'tag'.
10208         (get_tmt_for): Check that the new type tag has the same alias
10209         set as the pointed-to type.
10210         (group_aliases): Only regular variables need to be removed
10211         from the alias set of a name tag.
10212         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
10213         propagation if the two types are not compatible.
10214         (merge_alias_info): Rename from replace_ssa_names_ann.
10215         Add more checking.
10216         (replace_exp_1): If both arguments are SSA_NAMEs, check that
10217         the propagation can be done.
10218         Only call merge_alias_info on pointers.
10219         (propagate_value): Likewise.
10220         * tree-ssa-copyrename.c: Include langhooks.h.
10221         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
10222         to do the merging.
10223         Do not coalesce variables with incompatible types.
10224         (rename_ssa_copies): Call replace_ssa_name_symbol.
10225         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
10226         the same type as the underlying _DECL.
10227         * tree-ssanames.c (replace_ssa_name_symbol): New function.
10228         * tree.h (replace_ssa_name_symbol): Declare.
10229
10230 2004-07-23  Richard Henderson  <rth@redhat.com>
10231
10232         PR c++/16277
10233         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
10234         unshare it properly.
10235         (gimplify_modify_expr_rhs): Push assignment from a conditional into
10236         the conditional for all non-register types.
10237
10238 2004-07-23  Richard Henderson  <rth@redhat.com>
10239
10240         * expr.c (expand_expr_real_1): Don't handle non-local variables.
10241         * expr.h (fix_lexical_addr): Remove.
10242         * function.c (NEED_SEPARATE_AP): Remove.
10243         (fix_lexical_addr): Remove.
10244         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
10245         not null decl_function_context.
10246         (create_alias_vars): Likewise.
10247         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
10248         (simple_goto_p): Likewise.
10249         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
10250         * tree-ssa-ccp.c (get_default_value): Likewise.
10251         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
10252         * tree.c (needs_to_live_in_memory): Likewise.
10253         * tree-flow-inline.h (may_be_aliased): Move...
10254         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
10255         when TREE_STATIC variables may be addressable.
10256
10257 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
10258
10259         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
10260
10261 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
10262
10263         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
10264         bitmap contents if GENERATOR_FILE is defined.
10265         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
10266         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
10267
10268 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
10269
10270         * c-decl.c (start_function): Form composite type of function types
10271         rather than copying type from previous prototype declaration.
10272
10273 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
10274
10275         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
10276         the const qualifier for the second argument in the C++ functions.
10277
10278         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
10279         specific pointer types.
10280
10281         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
10282         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
10283         for vector bool and/or vector pixel, add C++ and C missing support.
10284         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
10285         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
10286         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
10287         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
10288         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
10289         missing C++ and C support for vector bool and/or vector pixel.
10290         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
10291         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
10292         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
10293         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
10294         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
10295         C++ and C types used for vector bool and/or vector pixel.
10296         (vec_st, vec_stl): Add C++ support for vector pixel.
10297         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
10298         (vec_all_ne): Add C++ support for vector pixel.
10299
10300         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
10301         (vec_vmulesb): Add missing C++ function.
10302         (vec_perm): Fix type of third argument in C++ function.
10303         (vec_vsum4shs): Fix C++ function name.
10304         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
10305         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
10306         argument passed to the error handler in C macro.
10307         (vec_nmsub): Remove extra parens around argument names in C macro.
10308         (vec_packpx): Add missing parens in C macro.
10309
10310 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
10311
10312         * machmode.def: Remove vector modes.
10313         * config/alpha/alpha-modes.def: Add supported vector modes.
10314         * config/arm/arm-modes.def: Likewise.
10315         * config/frv/frv-modes.def: Likewise.
10316         * config/i386/i386-modes.def: Likewise.
10317         * config/rs6000/rs6000-modes.def: Likewise.
10318         * config/sh/sh-modes.def: Likewise.
10319
10320 2004-07-23  Matthias Klose  <doko@debian.org>
10321
10322         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
10323         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
10324         * config.h: Regenerate.
10325         * configure: Likewise.
10326
10327 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
10328
10329         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
10330         generated SYMBOL_REFs for labels.
10331         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
10332         Change prototype.
10333         (machopic_stub_name): Remove.
10334         (machopic_indirection_name): New function.
10335         (machopic_mcount_stub_name): Likewise.
10336         (machopic_classify_name): Remove.
10337         (machopic_function_base_sym): New function.
10338         (machpoic_classify_symbol): Likewise.
10339         (machopic_classify_ident): Remove.
10340         (machopic_define_ident): Likewise.
10341         (machopic_define_name): Likewise.
10342         (machopic_name_defined_p): Likewise.
10343         (machopic_ident_defined_p): Likewise.
10344         (darwin_strip_name_encoding): Likewise.
10345         (machopic_define_symbol): New function.
10346         * config/darwin.c (hashtab.h): Include.
10347         (machopic_defined_list): Remove.
10348         (machopic_classify_ident): Likewise.
10349         (machopic_classify_name): Likewise.
10350         (machopic_ident_defined_p): Likewise.
10351         (machopic_define_ident): Likewise.
10352         (machopic_define_name): Likewise.
10353         (machopic_symbol_defined_p): New function.
10354         (machopic_classify_symbol): Likewise.
10355         (machopic_data_defined_p): Use machopic_classify_symbol.
10356         (machopic_define_symbol): New function.
10357         (machopic_function_base_sym): New function.
10358         (machopic_non_lazy_pointers): Remove.
10359         (machopic_non_lazy_ptr_name): Likewise.
10360         (machopic_stubs): Likewise.
10361         (machopic_stub_name): Likewise.
10362         (NON_LAZY_POINTER_SUFFIX): New macro.
10363         (STUB_SUFFIX): Likewise.
10364         (machopic_indirection): New structure.
10365         (machopic_indirections): New variable.
10366         (machopic_indirection_hash): New function.
10367         (machopic_indirection_eq): Likewise.
10368         (machopic_indirection_name): Likewise.
10369         (machopic_mcount_stub_name): New function.
10370         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
10371         hash table.
10372         (machopic_indirect_data_reference): Rework to use new functions.
10373         (machopic_indirect_call_target): Likewise.
10374         (machopic_legitimize_pic_address): Likewise.
10375         (machopic_output_indirection): New function.
10376         (machopic_finish): Use it.
10377         (machopic_operand_p): Rework to use new functions.
10378         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
10379         (darwin_strip_name_encoding): Remove.
10380         (update_non_lazy_ptrs): Remove.
10381         (update_stubs): Likewise.
10382         (darwin_non_lazy_pcrel): Use new functions.
10383         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10384         (ASM_OUTPUT_LABELREF): Likewise.
10385         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10386         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
10387         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
10388         (TARGET_STRIP_NAME_ENCODING): Do not use
10389         darwin_strip_name_encoding.
10390         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
10391         darwin_strip_name_encoding.
10392         * config/i386/darwin.h (FUNCTION_PROFILER): Use
10393         machopic_mcount_stub_name.
10394         * config/i386/i386.c (x86_output_mi_thunk): Use
10395         machopic_indirection_name, not machopic_stub_name.
10396         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
10397         machopic_function_base_sym.
10398         (print_operand): Use machopic_classify_symbol.
10399         (rs6000_emit_prologue): Use machopic_function_base_sym.
10400         (output_profile_hook): Do not use machopic_stub_name.
10401         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
10402
10403 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10404
10405         PR c/7284
10406         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
10407         as multiplication.
10408
10409 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10410
10411         * doc/implement-c.texi: New file.
10412         * doc/extend.texi (C Implementation): Move to there.
10413         * doc/gcc.texi: Include implement-c.texi.
10414         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
10415
10416 2004-07-22  Jason Merrill  <jason@redhat.com>
10417
10418         * integrate.c (copy_decl_for_inlining): Remove invisible reference
10419         handling.
10420         * tree-inline.c (setup_one_parameter): Likewise.
10421
10422 2004-07-22  Brian Booth  <bbooth@redhat.com>
10423
10424         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
10425         (substitute_and_fold): Propigate into VUSE operands when possible.
10426         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
10427         (cp_lattice_meet): Handle merging of latticevalues when
10428         UNKNOWN_VAL is present.
10429         (visit_stmt): Visit assignments with V_MUST_DEFs.
10430         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
10431         (ccp_fold): Deal with RHS' that are constant and virtual.
10432         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
10433         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
10434         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
10435         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
10436         computing immediate uses.
10437         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
10438         transition.
10439         (replace_vuse_in): New function.
10440         (likely_value): Add check of vuse operands.
10441         (get_default_value): Set the default value of virtually defined
10442         variables to UKNOWN_VAL instead of VARYING.
10443
10444 2004-07-22  Richard Henderson  <rth@redhat.com>
10445
10446         * expr.c (emit_push_insn): Don't use set_mem_attributes.
10447
10448 2004-07-22  Richard Henderson  <rth@redhat.com>
10449
10450         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
10451         variables due to conditional compilation.
10452
10453 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
10454
10455         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
10456         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
10457         Release SSA names that have been re-renamed.
10458         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
10459         variable.
10460         * tree-ssa-alias.c (init_alias_info): If aliases have been
10461         computed before, clear existing alias information.
10462         (create_name_tags): Do no fixup PT_ANYTHING pointers.
10463         If the new name tag for a pointer is different than the one it
10464         had before, mark the old tag for renaming.
10465         (replace_may_alias): New function.
10466         (group_aliases): Call it.
10467         (setup_pointers_and_addressables): Always call get_tmt_for.
10468         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
10469         once.
10470         (set_pt_anything): New local function.
10471         (set_pt_malloc): New local function.
10472         (merge_pointed_to_info): Don't merge pointed-to variables from
10473         the original pointer if the destination is pointing to an
10474         unknown location.
10475         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
10476         (add_pointed_to_var): Do not add a variable to the points-to
10477         set if the pointer is already pointing to anywhere.
10478         (collect_points_to_info_r): If the defining statement is a PHI
10479         node, only merge pointed-to information if the argument has
10480         already been visited.
10481         (get_tmt_for): Only create a new tag if the pointer didn't
10482         have one already.
10483         (dump_alias_info): Emit more information.
10484         (dump_points_to_info_for): Likewise.
10485         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
10486         try to get the annotation of an SSA_NAME.
10487         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
10488         alias sets when checking is enabled.
10489         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
10490         (eliminate): Mark basic blocks that will need
10491         EH information cleaned up.
10492         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
10493         predecessor.
10494         Initialize need_eh_cleanup.
10495         (fini_pre): Call tree_purge_all_dead_eh_edges and
10496         cleanup_tree_cfg if needed.
10497         Free need_eh_cleanup.
10498         * tree-ssa.c (verify_ssa_name): New function.
10499         (verify_def): Call it.
10500         Re-arrange to avoid printing too many error messages.
10501         (verify_use): Likewise.
10502         (verify_phi_args): Likewise.
10503         (verify_flow_insensitive_alias_info): New function.
10504         (verify_flow_sensitive_alias_info): New function.
10505         (verify_alias_info): New function.
10506         (verify_ssa): Call verify_alias_info.
10507         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
10508         program.
10509         Re-arrange to avoid printing too many error messages.
10510         * tree-ssanames.c (make_ssa_name): Clear
10511         SSA_NAME_IN_FREE_LIST.
10512         (release_ssa_name): Never release a default definition.
10513         (release_defs): New function.
10514         * tree.h: Declare it.
10515         * tree-ssa-dce.c (remove_dead_stmt): Call it.
10516
10517 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
10518
10519         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
10520         If true, do a depth-first search.  Do a breadht-first search,
10521         otherwise.
10522         (walk_use_def_chains): Add new argument IS_DFS.
10523         Update all users.
10524         * tree-flow.h (walk_use_def_chains): Update prototype.
10525
10526 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
10527
10528         * config/cris/cris.md: Tweak formatting.
10529         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
10530         (mover2side, moverside, movemside, movei, op3, andu): Replace
10531         live define_peephole:s with define_peephole2 near-equivalents.
10532         Delete the rest.
10533         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
10534         word-size modes.
10535         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
10536         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
10537         "*mov_sidesi_mem" respectively.
10538
10539 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
10540
10541         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
10542         (gimplify_build1): Move from tree-complex.c do_unop.
10543         (gimplify_build2): Move from tree-complex.c do_binop.
10544         (gimplify_build3): New.
10545         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
10546         Adjust throughout to call the functions above.
10547         * tree-flow.h: Declare the functions above.
10548         * tree-nested.c (gimplify_val): Rename to...
10549         (tsi_gimplify_val): ... this.
10550
10551         * Makefile.in (tree_complex.o): Update dependencies.
10552         (stor-layout.o): Depend on regs.h.
10553         * c-common.c (handle_vector_size_attribute): Update for
10554         vector types without corresponding vector modes.
10555         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
10556         a corresponding vector mode is not available.
10557         * print-tree.c (print_node): Print nunits for vector types
10558         * regclass.c (have_regs_of_mode): New.
10559         (init_reg_sets_1): Initialize it and use it instead
10560         of allocatable_regs_of_mode.
10561         * regs.h (have_regs_of_mode): Declare it.
10562         * stor-layout.c (layout_type): Pick a mode for vector types.
10563         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
10564         build_replicated_const, do_unop, do_binop, do_plus_minus,
10565         do_negate, expand_vector_piecewise, expand_vector_parallel,
10566         expand_vector_addition, expand_vector_operations_1,
10567         expand_vector_operations, tree_lower_operations,
10568         pass_lower_vector_ssa, pass_pre_expand): New.
10569         (expand_complex_operations, pass_lower_complex): Remove.
10570         * tree-optimize.c (init_tree_optimization_passes): Adjust
10571         pass ordering for changes in tree-complex.c.
10572         * tree-pass.h: Declare new passes.
10573         * tree.c (finish_vector_type): Remove.
10574         (make_vector_type): New.
10575         (build_vector_type_for_mode, build_vector_type): Rewritten.
10576         * tree.def (VECTOR_TYPE): Document where the number of
10577         subparts is stored.
10578         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
10579         (make_vector): Remove declaration.
10580
10581 2004-07-21  Richard Henderson  <rth@redhat.com>
10582
10583         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
10584         TREE_THIS_VOLATILE, may_aliases, or optimization level.
10585         (remove_useless_vars): Dump debugging info.
10586         (expand_used_vars): Move ...
10587         * cfgexpand.c (expand_used_vars): ... here.  Make static.
10588         * tree-flow-inline.h (set_is_used): New.
10589         (set_default_def): Use get_var_ann.
10590         * tree-flow.h: Update decls.
10591         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
10592         (create_ssa_var_map): Use it.
10593         * tree-ssa.c (set_is_used): Remove.
10594
10595 2004-07-22  Ben Elliston  <bje@au.ibm.com>
10596
10597         * gdbinit.in: Set a breakpoint on internal_error.
10598
10599 2004-07-21  Richard Henderson  <rth@redhat.com>
10600
10601         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
10602         to create a new basic block.
10603
10604 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10605
10606         PR c/15052
10607         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
10608         return type on function definitions.  Move other warnings for
10609         qualified return type to -Wreturn-type.  Do not condition any such
10610         warnings on -pedantic.  Update comments.
10611         (start_function): Only copy function type from previous prototype
10612         declaration if return types are compatible.
10613         * c-typeck.c (function_types_compatible_p): Don't condition
10614         warning for incompatibility of volatile qualifiers on the return
10615         type on -pedantic.  Update comment.
10616         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
10617
10618 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10619
10620         * c-typeck.c (set_init_index): Require designator to be of integer
10621         type.
10622
10623 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10624
10625         PR c/11250
10626         * c-parse.in (init): Change to exprtype.
10627         (primary): Set original_code for STRING to STRING_CST.
10628         Call maybe_warn_string_init for compound literals.
10629         (initdcl, notype_initdcl): Call maybe_warn_string_init.
10630         (initval): Update.
10631         * c-tree.h (maybe_warn_string_init): New.
10632         (pop_init_level, process_init_element): Use struct c_expr.
10633         (struct c_expr): Update comment.
10634         * c-typeck.c (maybe_warn_string_init): New function.
10635         (digest_init): Call it.  Additional parameter strict_string.  All
10636         callers changed.
10637         (output_init_element): Likewise.
10638         (struct constructor_stack): Use struct c_expr for
10639         replacement_value.
10640         (really_start_incremental_init, push_init_level): Update.
10641         (pop_init_level): Update.  Return struct c_expr.
10642         (process_init_level): Update.  Take struct c_expr argument.
10643
10644 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
10645
10646         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
10647         commit.
10648
10649 2004-07-21  Eric Christopher  <echristo@redhat.com>
10650
10651         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
10652         removal.
10653         * c-decl.c (pop_scope): Ditto.
10654         * calls.c (expand_call): Remove call to current_nesting_level,
10655         update comment accordingly. Remove calls to expand_start_target_temps
10656         and expand_end_target_temps.
10657         * cfgexpand.c (construct_init_block): Remove call to
10658         expand_start_bindings_and_block.
10659         (construct_exit_block): Remove call to expand_end_bindings.
10660         * expr.c (safe_from_p): Remove BIND_EXPR handling.
10661         (expand_expr_real_1): Ditto. Fix formatting.
10662         (expand_vars): Delete.
10663         * stmt.c (POPSTACK): Remove block_stack.
10664         (stmt_status): Remove x_block_stack.
10665         (block_stack): Delete.
10666         (expand_start_bindings_and_block): Ditto.
10667         (expand_start_target_temps): Ditto.
10668         (expand_end_target_temps): Ditto.
10669         (current_nesting_level): Ditto.
10670         (warn_about_unused_variables): Ditto.
10671         (expand_end_bindings): Ditto.
10672         * tree.h: Remove declarations for above.
10673
10674 2004-07-21  Steven Bosscher  <stevenb@suse.de>
10675
10676         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
10677         * rtl.c (note_insn_name): Likewise.
10678         * print-rtl.c (print_rtx): Don't print it.
10679         * cfgrtl.h (can_delete_note_p): Don't handle it.
10680         (rtl_delete_block): Likewise.
10681         * passes.c (rest_of_handle_guess_branch_prob): Remove.
10682         (rest_of_compilation): Don't call it.
10683         * predict.c (process_note_predictions, process_note_prediction,
10684         note_prediction_to_br_prob): Remove.
10685         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
10686         * stmt.c (return_prediction): Remove.
10687         (expand_value_return): Don't call it.  Don't add prediction
10688         notes for return statements.
10689
10690 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
10691
10692         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
10693         once.
10694
10695 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
10696
10697         * c-common.c (vector_types_convertible_p): Use vector types'
10698         TYPE_SIZE and TREE_TYPE instead of their mode.
10699         * convert.c (convert_to_integer): Likewise.
10700         (convert_to_vector): Likewise.
10701         * fold-const.c (fold_convert): Likewise.
10702         * varasm.c (output_constant): Likewise.
10703         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
10704         Allow a VECTOR_TYPE initializer to be made of several vectors.
10705         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
10706         of cleared and need_to_clear, and use fold_convert.
10707         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
10708         integer vectors.
10709
10710 2004-07-20  Richard Henderson  <rth@redhat.com>
10711
10712         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
10713         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
10714
10715 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
10716
10717         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
10718         enormous cost if not TARGET_HARD_MUL.
10719
10720 2004-07-20  Andrew Pinski  <apinski@apple.com>
10721
10722         PR target/16557
10723         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
10724         (ASM_SPEC): here.
10725
10726 2004-07-21  Paul brook  <paul@codesourcery.com>
10727
10728         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
10729
10730 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10731
10732         * fold-const.c (operand_equal_p): Temporarily support NULL args.
10733         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
10734         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
10735
10736 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
10737
10738         * rtl.h (plus_constant): Delete.
10739         (plus_constant_wide): Rename to plus_constant.
10740         (plus_constant_for_output_wide): Delete vestigial prototype.
10741         (GEN_INT): Remove unnecessary cast.
10742         * tree.h (build_int_2, size_int_type): Delete.
10743         (build_int_2_wide): Rename to build_int_2.
10744         (size_int_wide): Rename to size_int_kind.
10745         (size_int_type_wide): Rename to size_int_type.
10746         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
10747         Remove unnecessary cast.
10748         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
10749         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
10750         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
10751         (size_int_type_wide): Rename size_int_type.
10752         (int_const_binop): Use size_int_type.
10753         * c-lex.c (interpret_integer): Use build_int_2.
10754         * final.c (split_double): Remove unnecessary casts.
10755         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
10756
10757 2004-07-20  Richard Henderson  <rth@redhat.com>
10758
10759         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
10760         (gimplify_compound_lval): Use is_gimple_tmp_reg.
10761         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
10762         (is_gimple_tmp_reg): New.
10763         * tree-gimple.h (is_gimple_tmp_reg): Declare.
10764
10765 2004-07-20  Richard Henderson  <rth@redhat.com>
10766
10767         * tree-pretty-print.c (dump_generic_node): Dump
10768         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
10769
10770 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
10771
10772         * tree-mudflap.c (mf_set_options_fndecl): New tree.
10773         (mudflap_init): Set it.
10774         (mudflap_register_call): Remove __mf_init call.
10775         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
10776         to pass "-ignore-reads" option to libmudflap if needed.
10777
10778 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
10779
10780         PR c++/14607
10781         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
10782         (MAKE_DECL_ONE_ONLY): Undefine.
10783         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
10784         readonly_data, one_only_data_section, forget_section): New prototypes.
10785         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
10786         functions.
10787         (pa_select_section): Add one-only (COMDAT) support.
10788         * pa.h (struct machine_function): Define.
10789         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
10790         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
10791         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
10792         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
10793         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
10794         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
10795         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
10796         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
10797         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
10798         for EXTRA_SECTION_FUNCTIONS.
10799         * doc/install.texi: Update binutils requirements.
10800
10801 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10802
10803         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
10804         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
10805         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
10806         size_t.
10807         (struct VEC): Use unsigned for num and alloc.
10808         * vec.c (struct vec_prefix): Likewise.
10809         (vec_o_reserve): Adjust.
10810
10811         * dbxout.c (dbxout_type): Fix printf format.
10812
10813         * tree.h (binfo_member): Remove.
10814         * tree.c (binfo_member): Remove.
10815
10816 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10817
10818         * tree.h: Include vec.h
10819         (DEF_VEC_P(tree)): New type.
10820         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
10821         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
10822         (BINFO_LANG_SLOT): Remove.
10823         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
10824         (struct tree_binfo): Turn base_binfos into a trailing
10825         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
10826         (binfo_lang_slots): Remove.
10827         * tree.c (binfo_lang_slots): Remove.
10828         (make_tree_binfo_stat): Take a base binfo count, not a
10829         lang slot count.  Adjust.
10830         * Makefile.in (TREE_H): Add vec.h
10831         * alias.c (record_component_aliases): Adjust BINFO access.
10832         * dbxout.c (dbxout_type): Likewise.
10833         * dwarf2out.c (gen_member_die): Likewise.
10834         * sdbout.c (sdbout_one_type): Likewise.
10835         * tree-dump.c (deque_and_dump): Likewise.
10836         * config/i386/i386.c (classify_argument,
10837         contains_128bit_aligned_vector_p): Likewise.
10838         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
10839         * doc/c-tree.texi (Classes): Update BINFO documentation.
10840
10841 2004-07-20  Steven Bosscher  <stevenb@suse.de>
10842
10843         * c-common.h (check_case_value): Remove prototype.
10844         (c_add_case_label): Adjust prototype.
10845         * c-common.c (check_case_value): Make static.
10846         (check_case_bounds): New function.
10847         (c_add_case_label): Use it.  Take new argument orig_type.
10848         * c-typeck.c (struct c_switch): New orig_type field.
10849         (c_start_case): Set it.
10850         (do_case): Pass it to c_add_case_label.
10851         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
10852         cases from here.  Add the labels in reverse order.
10853         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
10854         (add_case_node): Return nothing, don't check for duplicate cases.
10855         Insert new case nodes in a list, not in an AVL tree.
10856         (expand_end_case_type): Don't turn a case tree into a case list.
10857         (case_tree2list): Remove.
10858         * tree.h (add_case_node): Adjust prototype.
10859
10860 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
10861
10862         * genattr.c (struct range, struct function_unit,
10863         write_units, extend_range, init_range): Remove them.
10864         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
10865         Output "#define INSN_SCHEDULING" here.
10866         * genattrtab.c (struct range, struct function_unit_op,
10867         struct function_unit, struct dimension, enum operator,
10868         operate_exp, expand_units, simplify_knowing,
10869         encode_units_mask, simplify_by_exploding,
10870         find_and_mark_used_attributes, unmark_used_attributes,
10871         add_values_to_cover, increment_current_value,
10872         test_for_current_value, simplify_with_current_value,
10873         simplify_with_current_value_aux, gen_unit,
10874         write_unit_name, write_function_unit_info,
10875         write_complex_function, write_toplevel_expr,
10876         find_single_value, extend_range): Remove.
10877         (write_attr_get): Do not handle common_av->value
10878         being an FFS.
10879         (struct attr_desc): Remove func_units_p and blockage_p.
10880         (write_attr_valueq): Do not handle them.
10881         (find_attr): Do not clear them.
10882         (make_internal_attr): Do not initialize them.
10883         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
10884         * sched-vis.c (init_target_units, insn_print_units,
10885         init_block_visualization, print_block_visualization,
10886         visualize_scheduled_insns, visualize_no_unit,
10887         visualize_stall_cycles, visualize_alloc,
10888         visualize_free, target_units, get_visual_tbl_length,
10889         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
10890         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
10891         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
10892         * haifa-sched.c (blockage_range, clear_units,
10893         schedule_unit, actual_hazard, potential_hazard,
10894         insn_unit, unit_last_insn, unit_tick,
10895         actual_hazard_this_instance, potential_hazard,
10896         schedule_unit, max_insn_queue_index_value): Remove.
10897         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
10898         max_insn_queue_index.
10899         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
10900         * doc/md.texi (Processor pipeline description): Remove
10901         references to old pipeline descriptions.
10902         (Automaton pipeline description): Merge with the above.
10903         (Old pipeline description, Comparison of the two descriptions):
10904         Remove.
10905
10906         * bt-load.c (migrate_btr_def): Remove references to
10907         use_pipeline_interface.
10908         * haifa-sched.c (insn_cost, schedule_insn,
10909         schedule_block, advance_one_cycle, sched_init,
10910         queue_to_ready, sched_finish): Likewise.
10911         * modulo-sched.c (sms_schedule, advance_one_cycle,
10912         ps_has_conflicts): Likewise.
10913         * sched-rgn.c (init_ready): Likewise.
10914         (debug_dependencies): Likewise, and remove an "if (1)".
10915         * target.h (use_dfa_pipeline_interface): Remove.
10916         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10917         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10918         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10919         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10920         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10921         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10922         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10923         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10924         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10925         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10926         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10927         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10928         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10929         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10930         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10931         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10932         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10933         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10934         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
10935
10936 2004-07-19  Roger Sayle  <roger@eyesopen.com>
10937
10938         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
10939
10940 2004-07-19  Jeff Law  <law@redhat.com>
10941
10942         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
10943         (get_eq_expr_value): Use it.  Simplify slightly.
10944
10945 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
10946
10947         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
10948         (umulsidi3_32bit_r4000): Likewise.
10949
10950 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
10951
10952         * vec.h: Propagate location information properly.
10953         (VEC_T_iterate): Add result pointer parameter.
10954         (VEC_T_space): New.
10955         (VEC_T_reserve): Use it.
10956
10957 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
10958
10959         * Makefile.in (c-format.o): Depend on c-format.h.
10960         * c-format.h: New file.
10961         (struct format_char_info): Add CHAIN member.
10962         * c-format.c: Move some types and constants to c-format.h.
10963         (format_type_error): Set to -1.
10964         (struct function_format_info): Use an int for format_type.
10965         (decode_format_type): Return an int.  Return format_type_error
10966         on error.
10967         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
10968         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
10969         (scan_char_table, time_char_table, monetary_char_table): Initialize
10970         CHAIN to NULL.
10971         (n_format_types): New variable.
10972         (check_format_info_main): Handle CHAIN in format_char_info.
10973         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
10974         TARGET_N_FORMAT_TYPES.
10975         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
10976         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
10977         * config/sol2-c.c: New file.
10978         * config/t-sol2: New file.
10979         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
10980         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
10981         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
10982
10983         * doc/extend.texi (Target Format Checks): New section.
10984         (Function Attributes): Mention it.
10985         * doc/invoke.texi: Mention target format checks.
10986         * doc/sourcebuild.texi: Mention target format checks.
10987         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
10988         TARGET_FORMAT_TYPES.
10989
10990 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
10991
10992         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
10993         added.
10994         * config/s390/s390.c (regclass_map initializer): Register 35 added to
10995         ADDR_REGS.
10996         (load_multiple_operation, store_multiple_operation): Removed
10997         pointless sanity check.
10998         (s390_decompose_address): Added check for return_address_pointer_rtx.
10999         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
11000         (s390_return_address_offset): New function.
11001         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
11002         (FRAME_REGNO_P): Added check for register 35.
11003         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
11004         REG_ALLOC_ORDER): Appended entry for register 35.
11005         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
11006         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
11007         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
11008         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
11009         is eliminable using stack pointer or hard frame pointer.
11010         (REGISTER_NAMES): Added name for register 35.
11011         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
11012         pointless sanity check.
11013
11014 2004-07-19  Roger Sayle  <roger@eyesopen.com>
11015
11016         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
11017         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
11018         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
11019         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
11020         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
11021         (fold_relational_const): Tidy up handling of floating point
11022         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
11023         transformation; fold_relational_const assumes constant operands.
11024
11025 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
11026
11027         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
11028         directory.
11029
11030 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
11031
11032         * c-tree.h (struct c_expr): Define.
11033         (C_SET_EXP_ORIGINAL_CODE): Remove.
11034         (parser_build_binary_op, build_compound_expr): Update prototypes.
11035         * c-parse.in (%union): Add exprtype.
11036         (FUNC_NAME): Mark as ttype.
11037         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
11038         exprtype.
11039         (expr): Update.  Define directly in terms of expr_no_commas
11040         instead of using nonnull_exprlist.
11041         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
11042         offsetof_member_designator, typespec_nonreserved_nonattr, init,
11043         initval, designator, component_declarator,
11044         component_notype_declarator, enumerator, array_declarator,
11045         condition, exexpr, switch_statement, stmt_nocomp, stmt,
11046         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
11047         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
11048         where appropriate.
11049         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
11050         * c-common.c (c_common_truthvalue_conversion): Don't check
11051         C_EXP_ORIGINAL_CODE.
11052         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
11053         Don't use C_EXP_ORIGINAL_CODE.
11054         (default_conversion, default_function_array_conversion): Don't use
11055         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
11056         (internal_build_compound_expr): Merge into build_compound_expr.
11057         (build_compound_expr): Take two operands instead of a TREE_LIST.
11058         * objc/objc-act.c (get_super_receiver): Update calls to
11059         build_compound_expr.
11060
11061 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
11062
11063         * config/sh/sh.c (sh_use_dfa_interface): Remove.
11064         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
11065         hook_int_void_1.
11066         * config/sh/sh.md: Extract pipeline descriptions
11067         into separate files.
11068         * config/sh/sh1.md: New file, extracted from sh.md.
11069         * config/sh/sh4.md: New file, extracted from sh.md.
11070         * config/sh/shmedia.md: New file, extracted from sh.md
11071         and rewritten using new-style pipeline description.
11072
11073 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
11074
11075         * config/pa/pa.md: Delete the two remaining define_peephole
11076         patterns.
11077
11078 2004-07-18  Steven Bosscher  <stevenb@suse.de>
11079             Joseph S. Myers  <jsm@polyomino.org.uk>
11080
11081         * c-common.c (c_common_truthvalue_conversion): Don't warn if
11082         TREE_NO_WARNING is set.
11083
11084 2004-07-18  Roger Sayle  <roger@eyesopen.com>
11085
11086         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
11087         simplify_builtin_strncmp): Delete.
11088         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
11089         Change argument to accept an arglist instead of an "exp".  Assume
11090         that the return type is always integer_type_node.  Copy missing
11091         transformations from their now obsolete simplify_builtin_*
11092         equivalents.
11093         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
11094         fold_builtin_strcmp and fold_builtin_strncmp.
11095         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
11096         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
11097         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
11098
11099 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
11100
11101         * Makefile.in (tree-alias-common.o): Update dependencies.
11102
11103 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
11104
11105         * cfgloop.c (flow_loop_nested_p): Fix comment.
11106
11107 2004-07-17  Jason Merrill  <jason@redhat.com>
11108
11109         PR c++/16115
11110         * stor-layout.c (relayout_decl): New fn.
11111         * tree.h: Declare it.
11112         (DECL_BY_REFERENCE): New macro.
11113
11114 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
11115
11116         * libgcc2.c (__enable_execute_stack): New symbol.
11117         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
11118         and declare __enable_execute_stack.
11119         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
11120         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
11121         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
11122         ENABLE_EXECUTE_STACK.
11123         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
11124         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
11125         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
11126         ENABLE_EXECUTE_STACK.
11127         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11128         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
11129         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
11130         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
11131         ENABLE_EXECUTE_STACK.
11132         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11133         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11134         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11135         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
11136         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
11137         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
11138         (sparc64_initialize_trampoline): Likewise.
11139         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
11140
11141 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
11142
11143         * langhooks.h (builtin_function): New langhook.
11144         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
11145         (LANG_HOOKS_INITIALIZER): Update.
11146         * tree.h (builtin_function): Remove.
11147         * doc/tm.texi: Update.
11148         * c-tree.h (builtin_function): Declare.
11149         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
11150         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
11151         config/ia64/ia64.c, config/iq2000/iq2000.c,
11152         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
11153         config/stormy16/stormy16.c: All callers of builtin_function
11154         changed.
11155
11156 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
11157
11158         PR target/16556
11159         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
11160         Remove white space after the backslash.
11161
11162 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11163
11164         PR rtl-optimization/16294
11165         * resource.c (return_insn_p): New predicate.
11166         (mark_target_live_regs): Use it.  Special-case return insns.
11167         (init_resource_info): Use it.  Don't scan the epilogue past
11168         a return.
11169
11170 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11171
11172         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
11173         destroy dominance information.
11174         * passes.c (rest_of_handle_loop2):  Free dominance information.
11175         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
11176         jump threading.
11177         (thread_jumps): Update dominance information and remove unreachable
11178         blocks.
11179         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
11180         information and remove the unreachable block.
11181
11182 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
11183
11184         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
11185
11186 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
11187
11188         * doc/sourcebuild.texi: Remove libf2c entry.
11189
11190 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
11191
11192         * config/i386/i386.md (movv16qi_internal): Fix typo.
11193
11194 2004-07-17  Steven Bosscher  <stevenb@suse.de>
11195
11196         * final.c (final_scan_insn): Fix broken commit from previous
11197         patch.
11198
11199 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
11200
11201         * c-typeck.c (parser_build_binary_op): Condition warnings for
11202         X<=Y<=Z on -Wparentheses instead of -Wextra.
11203         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
11204         supported for C only.
11205
11206 2004-07-17  Steven Bosscher  <stevenb@suse.de>
11207
11208         * cfgcleanup.c (try_simplify_condjump): Don't remove line
11209         notes to avoid unreachable code warnings.
11210         * toplev.c (backend_init): Don't emit line notes for
11211         unreachable code warnings.
11212
11213         * combine.c (distribute_notes): Don't distribute a
11214         REG_VTABLE_REF note.
11215         * final.c (final_scan_insn): Don't handle it.
11216         * rtl.c (reg_note_name): Remove it.
11217         * rtl.h (enum reg_node): Dito.
11218
11219         * emit-rtl.c (force_line_numbers, restore_line_number_status):
11220         Remove.
11221         * rtl.h (force_line_numbers, restore_line_number_status):
11222         Remove prototypes.
11223
11224         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
11225         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
11226         (using_eh_for_cleanups): Also moved here.
11227
11228         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
11229         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
11230         to expand_start_case and add_case_node.
11231         * stmt.c (struct nesting): Cleanup unused fields condition_code,
11232         last_unconditional_cleanup, nominal_type, printname, and
11233         line_number_status.
11234         (struct fixup_goto): Remove.
11235         (struct stmt_status): Remove x_goto_fixup_chain field.
11236         (goto_fixup_chain): Remove.
11237         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
11238         pushcase, pushcase_range): Remove.
11239         (expand_start_bindings_and_block): Don't set unused fields in
11240         the nesting stack.
11241         (expand_start_case, add_case_node): Cleanup unused formal arguments.
11242         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
11243         instead of emit_jump_if_reachable.
11244         (emit_case_nodes): Likewise.
11245         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
11246         static.
11247         (update_eh_label): Work around left-over exception handing regions.
11248         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
11249         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
11250         (pass_cleanup_cfg_post_optimizing): New pass.
11251         (init_tree_optimization_passes): Run the new pass after all
11252         optimizations.
11253         * tree.h (pushcase, pushcase_range): Remove prototypes.
11254         (expand_start_case, add_case_node): Update prototypes.
11255
11256 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
11257
11258         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
11259
11260 2004-07-16  Richard Henderson  <rth@redhat.com>
11261
11262         * builtins.c (std_expand_builtin_va_arg): Remove.
11263         (expand_builtin_va_arg): Remove.
11264         * expr.h: Don't declare them.
11265         * gimplify.c (mark_decls_volatile_r): Remove.
11266         (copy_if_shared_r): Don't call it.
11267         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
11268         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
11269         * gimple-low.c (lower_stmt): Likewise.
11270         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
11271         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
11272         * tree-ssa-operands.c (get_expr_operands): Likewise.
11273         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
11274         EXPAND_BUILTIN_VA_ARG.
11275         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
11276         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
11277         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
11278         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
11279
11280 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
11281
11282         * tree-ssa-pre.c (insert_aux): Break out if we hit
11283         a critical edge.
11284
11285 2004-07-16  Richard Henderson  <rth@redhat.com>
11286
11287         * basic-block.h (remove_fake_exit_edges): Declare.
11288         * cfganal.c (remove_fake_predecessors): Rename from
11289         remove_fake_successors; iterate over predecessors.
11290         (remove_fake_exit_edges): New.
11291         * cfgcleanup.c (try_optimize_cfg): Use it.
11292         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
11293         * predict.c (estimate_probability): Likewise.
11294         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
11295         * tree-cfg.c (make_edges): Likewise.
11296         * tree-ssa-pre.c (fini_pre): Likewise.
11297         * profile.c (instrument_edges): Don't remove_fake_edges.
11298         (branch_prob): Do it earlier here.
11299
11300 2004-07-16  Richard Henderson  <rth@redhat.com>
11301
11302         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
11303         switchification wrt CONSTRUCTOR.  Document the reason.
11304
11305 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
11306
11307         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
11308         that prevented descriptive __mf_check source location strings.
11309
11310 2004-07-16  Richard Henderson  <rth@redhat.com>
11311
11312         * tree-def (WITH_SIZE_EXPR): New.
11313         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
11314         * expr.c (expand_expr_real_1): Likewise.
11315         * gimplify.c (maybe_with_size_expr): New.
11316         (gimplify_arg, gimplify_modify_expr): Use it.
11317         (gimplify_modify_expr_to_memcpy): Take size parameter.
11318         (gimplify_modify_expr_to_memset): Likewise.
11319         (gimplify_expr): Handle WITH_SIZE_EXPR.
11320         * tree-alias-common.c (find_func_aliases): Likewise.
11321         * tree-eh.c (tree_could_trap_p): Likewise.
11322         (tree_could_throw_p): Likewise.
11323         * tree-gimple.c (is_gimple_lvalue): Likewise.
11324         (get_call_expr_in): Likewise.
11325         * tree-inline.c (estimate_num_insns_1): Likewise.
11326         (expand_calls_inline): Likewise.
11327         * tree-nested.c (convert_call_expr): Likewise.
11328         * tree-pretty-print.c (dump_generic_node): Likewise.
11329         * tree-sra.c (sra_walk_expr): Likewise.
11330         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
11331         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
11332         * tree-ssa-operands.c (get_expr_operands): Likewise.
11333         * tree-tailcall.c (find_tail_calls): Likewise.
11334
11335         * calls.c (expand_call): Reset old_stack_allocated after
11336         calling emit_stack_restore.
11337
11338 2004-07-16  Richard Henderson  <rth@redhat.com>
11339
11340         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
11341         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
11342         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
11343         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
11344         copy_res_decl_for_inlining.
11345
11346         * tree-inline.c (declare_return_variable): New modify_dest argument.
11347         Use it as the return value, when possible or manditory.  Handle
11348         TREE_ADDRESSABLE types.
11349         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
11350         replacement of CALL_EXPR.
11351
11352 2004-07-16  Richard Henderson  <rth@redhat.com>
11353
11354         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
11355         * gimple-low.c (expand_var_p): Don't check it.
11356         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
11357         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
11358         * tree-ssa-operands.c (add_stmt_operand): Likewise.
11359         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
11360         (find_referenced_vars): Don't call them.
11361         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
11362
11363 2004-07-16  Richard Henderson  <rth@redhat.com>
11364
11365         * function.c (pass_by_reference): True for all variable sized types.
11366
11367 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
11368
11369         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
11370         * tree-pretty-print.c: Include tree-chrec.h.
11371         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
11372         and POLYNOMIAL_CHREC nodes.
11373
11374 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
11375
11376         * builtins.c (expand_builtin_stpcpy): Do not create temporary
11377         reg with VOIDmode.
11378
11379 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
11380
11381         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
11382
11383 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
11384
11385         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
11386         to BASE_REGNUM.
11387         * config/s390/s390.c: Likewise.
11388         * config/s390/s390.h: Likewise.
11389
11390 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11391
11392         * config/mips/mips.md (addsi3, adddi3): Remove special handling
11393         of $sp adds.  Remove REGNO checks from mips16 patterns.
11394
11395 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11396
11397         * config/mips/mips.md: Delete outdated comment.
11398
11399 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11400
11401         * config/mips/mips.c (get_float_compare_codes): Delete.
11402         (mips_emit_compare): New function, mostly extracted from
11403         get_float_compare_codes and gen_conditional_branch.
11404         (gen_conditional_branch, gen_conditional_move): Use it.
11405
11406 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
11407
11408         * genautomata.c (add_vect): Speedup by using integers as
11409         bit-vectors for walking through the comb_vect and finding
11410         a match.
11411
11412 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11413
11414         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
11415         operand is an uns_arith_operand; use subtraction otherwise.
11416         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
11417         not just arith_operands.
11418
11419 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11420
11421         * config/mips/mips-protos.h (gen_int_relational): Delete.
11422         (mips_emit_scc): Declare.
11423         * config/mips/mips.c (internal_test): Delete.
11424         (sle_operand, sleu_operand): New functions.
11425         (map_test_to_internal_test, gen_int_relational): Delete.
11426         (mips_emit_binary, mips_relational_operand_ok_p)
11427         (mips_emit_int_relational, mips_zero_if_equal)
11428         (mips_emit_scc): New functions.
11429         (gen_conditional_branch): Rework to use mips_emit_int_relational.
11430         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
11431         sleu_operand.
11432         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
11433         (sltu, sleu): Use mips_emit_scc.
11434         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
11435         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
11436         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
11437
11438 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11439
11440         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
11441
11442 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11443
11444         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
11445         (*sne_[sd]i): Likewise sne_[sd]i_zero.
11446         (*sgt_[sd]i): ...and sgt_[sd]i.
11447         (*slt_[sd]i): ...and slt_[sd]i.
11448         (*sgtu_[sd]i): ...and sgtu_[sd]i.
11449         (*sltu_[sd]i): ...and sltu_[sd]i.
11450         (*sleu_[sd]i): ...and sleu_[sd]i_const.
11451         Name previously unnamed mips16 patterns.  Formatting fixes.
11452
11453 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11454
11455         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
11456         (branch_type): Delete.
11457         (gen_conditional_branch, gen_conditional_move)
11458         (mips_gen_conditional_trap): Update after name change.  Get the
11459         comparison mode from cmp_operands[0].
11460         * config/mips/mips.h (cmp_type, branch_type): Delete.
11461         (cmp_operands): Renamed from branch_cmp.
11462         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
11463         name change.  Don't set branch_type.
11464         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
11465         mode class of cmp_operands[0] rather than branch_type.  Update after
11466         name change.
11467
11468 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11469
11470         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
11471         of 0...255 to 0 when inside a SET.
11472
11473 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
11474
11475         * config/mips/mips.md: Remove mips16 define_peepholes.
11476
11477 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
11478
11479         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
11480         (fini_pre): Remove fake edges.
11481
11482 2004-07-15  Richard Henderson  <rth@redhat.com>
11483
11484         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
11485         (get_indirect_ref_operands, get_call_expr_operands): ... these.
11486
11487 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
11488
11489         * vec.h (VEC_address): New function.
11490
11491 2004-07-14  Jason Merrill  <jason@redhat.com>
11492
11493         PR middle-end/15885
11494         * gimplify.c (gimplify_arg): New fn, split out from...
11495         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
11496
11497 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
11498
11499         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
11500         generate code which is generated by pushqi1 now
11501         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
11502
11503 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
11504
11505         * combine.c (simplify_set): match the mode of the constant 0 with
11506         the tested operand to match the compare behaviour and the
11507         simplify_relational_operation() expectation.
11508
11509 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
11510
11511         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
11512         ("bordered"): Same.
11513
11514 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
11515
11516         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
11517         unconditionally.
11518         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
11519
11520 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
11521
11522         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
11523         calls in mips16 code.
11524
11525 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
11526
11527         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
11528         the destination of the li as well as for the neg.
11529
11530 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
11531
11532         g++/15861
11533         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
11534         * cgraph.h: Update declaration.
11535         * c-decl.c (build_cdtor): Update call with default priority.
11536         * coverage.c (create_coverage): Ditto.
11537         * tree-mudflap.c (mf_init_fndecl): New tree.
11538         (mudflap_init): Set it.
11539         (mudflap_register_call): Arrange to call __mf_init before the first
11540         __mf_register call.
11541         (mudflap_finish_file): Mark the mudflap static initializer as extra
11542         high priority, to beat all C++ static constructors.
11543
11544 2004-07-15  Jeff Law  <law@redhat.com>
11545
11546         * loop.c (check_insn_for_givs): Restore check for code labels that was
11547         accidentally deleted by a recent checkin.
11548
11549 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
11550
11551         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
11552         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
11553
11554 2004-07-14  Richard Henderson  <rth@redhat.com>
11555
11556         * print-tree.c (print_node): Fix casts last change.
11557
11558 2004-07-15  Paul Brook  <paul@codesourcery.com>
11559
11560         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
11561         to TARGET_UNWIND_INFO.
11562         * except.c (output_function_exception_table): Ditto.
11563         * except.h: Ditto.
11564         * opts.c (decode_options): Ditto.
11565         * passes.c (rest_of_handle_final): Ditto.
11566         * final.c (final_start_function): Ditto.
11567         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
11568         target hook.
11569         * targhooks.h (default_unwind_emit): Declare.
11570         * targhooks.c (default_unwind_emit): New function.
11571         * target-def.h: Define and use TARGET_UNWIND_EMIT.
11572         * target.h (struct gcc_target): Add unwind_emit.
11573         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
11574         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
11575         Remove IA64_UNWIND_EMIT.
11576         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
11577
11578 2004-07-14  Richard Henderson  <rth@redhat.com>
11579
11580         * print-tree.c (print_node): Handle SSA_NAME.
11581
11582 2004-07-14  James E Wilson  <wilson@specifixinc.com>
11583
11584         PR target/16325
11585         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
11586         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
11587
11588 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
11589
11590         * expr.c (expand_assignment): Reenable bitfield += optimizations.
11591         Use alias set 0 for memory, do proper mode calculations and adjust
11592         address for memories.
11593
11594 2004-07-14  Per Bothner  <per@bothner.com>
11595
11596         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
11597         structure with extra column field.
11598         * tree.c (expand_location):  Also fill in column field.
11599         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
11600         gets confused by the two conditionally-compiled definitions.
11601
11602 2004-07-14  Eric Christopher  <echristo@redhat.com>
11603
11604         * calls.c (expand_call): Fix typo in comment.
11605
11606 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
11607
11608         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
11609         comparision of TFmode.
11610
11611 2004-07-14  Richard Henderson  <rth@redhat.com>
11612
11613         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
11614         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
11615         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
11616         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
11617         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
11618         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
11619         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
11620         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
11621         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
11622
11623 2004-07-14  Mike Stump  <mrs@apple.com>
11624
11625         * config/darwin.h (WINT_TYPE): Define to be int to match
11626         system header files.
11627
11628 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
11629
11630         * config/xtensa/xtensa.c (function_arg_advance): Check for args
11631         that must be passed in the stack.
11632         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
11633         arguments if the size is not a constant.
11634
11635 2004-07-14  Per Bothner  <per@bothner.com>
11636
11637         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
11638         instead of EXPR_LOCUS in a boolean context, which is always true
11639         if --enable-mapped-location.
11640         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
11641
11642 2004-07-14  Richard Henderson  <rth@redhat.com>
11643
11644         * dominance.c (struct dom_info): Add fake_exit_edge.
11645         (init_dom_info): Allocate it.
11646         (free_dom_info): Free it.
11647         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
11648         in two passes.
11649         (calc_idoms): Honor fake_exit_edge.
11650
11651 2004-07-13  Jason Merrill  <jason@redhat.com>
11652
11653         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
11654         (rhs_test_for): New fn.
11655         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
11656         * tree-gimple.h: Declare them.
11657         * gimplify.c (gimplify_modify_expr): Use the new fns.
11658
11659 2004-07-14  Richard Henderson  <rth@redhat.com>
11660
11661         * config/arm/arm-protos.h (arm_va_arg): Remove.
11662         * config/arm/arm.c (arm_va_arg): Remove.
11663         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
11664         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
11665
11666 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11667
11668         * pa.c (fix_range): New function to mark a range(s) of registers as
11669         fixed registers.
11670         (override_options): Call fix_range if the -mfixed-range option string
11671         is not empty.
11672         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
11673         * doc/invoke.texi (-mfixed-range): Document new option.
11674
11675 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
11676
11677         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
11678         for TARGET_64BIT.
11679         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
11680
11681 2004-07-14  Roger Sayle  <roger@eyesopen.com>
11682
11683         * expmed.c (expand_sdiv_pow2): New function to expand signed division
11684         by a positive power of two, split out from expand_divmod.  Provide
11685         an alternate implementation when shifts are expensive.  Lower the
11686         threshold for using a branchless implementation to BRANCH_COST >= 2.
11687         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
11688
11689 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
11690
11691         * tree-dfa.c (make_rename_temp): *Really* work just
11692         like create_tmp_var if called while outside SSA form.
11693
11694 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
11695
11696         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
11697         for division by zero.
11698         ("umodsi3"): Likewise.
11699
11700 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
11701
11702         * config/mips/mips.c (mips_output_move): When generating mips16 code,
11703         force loads of negative constants to be split.
11704         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
11705         Generalize SImode li/neg splitter to cope with other modes.
11706
11707 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
11708
11709         * expmed.c: Remove more references to QUEUED in the comments.
11710         * expr.c: Likewise.
11711
11712 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
11713
11714         Revert:
11715         2004-07-13  Richard Henderson  <rth@redhat.com>
11716         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
11717         correctly.
11718
11719 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
11720
11721         * tree-dfa.c (make_rename_temp): Work just like
11722         create_tmp_var if called while outside SSA form.
11723
11724 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
11725
11726         * expr.c (enqueue_insn, finish_expr_for_function,
11727         protect_from_queue, queued_subexp_p, mark_queue,
11728         emit_insns_enqueued_after_mark, emit_queue,
11729         expand_increment): Remove.
11730         (store_constructor): Expand increment as an assignment.
11731         (expand_expr_real_1 <case PREINCREMENT_EXPR,
11732         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
11733         case POSTDECREMENT_EXPR>): Abort.
11734         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
11735         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
11736         protect_from_queue, emit_queue, queued_subexp_p): Remove.
11737         * function.h (pending_chain, x_pending_chain): Remove.
11738         * rtl.def (QUEUED): Remove.
11739
11740         * emit-rtl.c (copy_insn_1, copy_most_rtx,
11741         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
11742         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
11743         encode_units_mask): Likewise.
11744         * local-alloc.c (equiv_init_varies_p): Likewise.
11745         * rtl.c (copy_rtx): Likewise.
11746         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
11747         * simplify-rtx.c (simplify_gen_subreg): Likewise.
11748         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
11749
11750         * builtins.c (expand_builtin, expand_builtin_apply,
11751         expand_builtin_mathfn, expand_builtin_mathfn_2,
11752         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
11753         Remove calls to emit_queue and protect_from_queue.
11754         * calls.c (expand_call, precompute_arguments,
11755         precompute_register_parameters, rtx_for_function_call,
11756         store_one_arg): Likewise.
11757         * dojump.c (do_compare_and_jump, do_jump): Likewise.
11758         * explow.c (memory_address): Likewise.
11759         * expmed.c (clear_by_pieces_1, clear_storage,
11760         clear_storage_via_libcall, emit_group_load,
11761         emit_group_store, emit_store_flag,
11762         expand_expr_real_1, store_by_pieces,
11763         store_constructor, store_expr, try_casesi,
11764         try_tablejump): Likewise.
11765         * function.c (expand_pending_sizes): Likewise.
11766         * optabs.c (emit_cmp_and_jump_insns,
11767         emit_conditional_add, emit_conditional_move,
11768         expand_fix, expand_float, prepare_cmp_insn): Likewise.
11769         * stmt.c (emit_case_bit_tests,
11770         expand_asm_expr, expand_computed_goto,
11771         expand_decl_init, expand_end_case_type,
11772         expand_end_stmt_expr, expand_expr_stmt_value,
11773         expand_return, expand_start_case,
11774         optimize_tail_recursion): Likewise.
11775         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
11776         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
11777
11778 2004-07-14  Ben Elliston  <bje@au.ibm.com>
11779
11780         * vec.h: Comment fix.
11781
11782 2004-07-13  Richard Henderson  <rth@redhat.com>
11783
11784         * target.h (struct gcc_target): Add calls.pass_by_reference.
11785         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
11786         * function.c (pass_by_reference): Use the hook.
11787         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
11788         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
11789         (hook_pass_by_reference_must_pass_in_stack): New.
11790         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
11791         (alpha_pass_by_reference): New.
11792         (TARGET_PASS_BY_REFERENCE): New.
11793         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11794         * config/arc/arc.c (arc_pass_by_reference): New.
11795         (TARGET_PASS_BY_REFERENCE): New.
11796         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11797         (FUNCTION_ARG_CALLEE_COPIES): True.
11798         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
11799         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
11800         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
11801         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11802         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11803         * config/cris/cris.c (cris_pass_by_reference): New.
11804         (TARGET_PASS_BY_REFERENCE): New.
11805         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
11806         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
11807         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11808         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
11809         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11810         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
11811         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
11812         (frv_function_arg_pass_by_reference): Remove.
11813         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11814         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
11815         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
11816         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
11817         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11818         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
11819         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
11820         (ia64_pass_by_reference): Rename from
11821         ia64_function_arg_pass_by_reference.
11822         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11823         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11824         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
11825         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
11826         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
11827         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11828         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
11829         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
11830         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
11831         (m32r_pass_by_reference): Adjust prototype.  Make static.
11832         Handle mode sizes correctly.
11833         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11834         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
11835         (m68hc11_function_arg_pass_by_reference): Remove.
11836         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11837         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
11838         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
11839         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11840         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
11841         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
11842         (mips_va_arg): Use pass_by_reference.
11843         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
11844         Handle mode sizes correctly.
11845         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11846         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
11847         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
11848         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
11849         (mmix_pass_by_reference): Rename from
11850         mmix_function_arg_pass_by_reference.
11851         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11852         (FUNCTION_ARG_CALLEE_COPIES): True.
11853         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
11854         (mn10300_pass_by_reference): New.
11855         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11856         (FUNCTION_ARG_CALLEE_COPIES): True.
11857         * config/pa/pa.c (pa_pass_by_reference): New.
11858         (TARGET_PASS_BY_REFERENCE): New.
11859         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11860         (FUNCTION_ARG_CALLEE_COPIES): True.
11861         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
11862         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
11863         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
11864         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11865         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
11866         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
11867         (s390_pass_by_reference): Rename from
11868         s390_function_arg_pass_by_reference.
11869         (s390_function_arg_advance): Don't query pass-by-ref.
11870         (s390_function_arg): Likewise.
11871         (s390_gimplify_va_arg): Use pass_by_reference.
11872         (s390_call_saved_register_used): Likewise.
11873         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11874         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
11875         (shcompact_byref, sh_pass_by_reference): New.
11876         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11877         (SHCOMPACT_BYREF): Remove.
11878         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
11879         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
11880         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
11881         (sparc_gimplify_va_arg): Use pass_by_reference.
11882         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11883         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11884         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
11885         (v850_pass_by_reference): New.
11886         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
11887         (FUNCTION_ARG_CALLEE_COPIES): True.
11888         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
11889         FUNCTION_ARG_PASS_BY_REFERENCE docs.
11890
11891 2004-07-14  Richard Henderson  <rth@redhat.com>
11892             Richard Sandiford  <rsandifo@redhat.com>
11893
11894         * config/mips/mips-protos.h (mips_va_arg): Delete.
11895         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
11896         * config/mips/mips.c: Include tree-gimple.h.
11897         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
11898         (mips_arg_info): Remove special handling of must_pass_in_stck args.
11899         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
11900         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
11901
11902 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
11903
11904         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
11905         arguments for COND_EXPR in big-endian adjustment code.
11906
11907 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11908
11909         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
11910         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
11911         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
11912         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
11913
11914 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
11915
11916         PR tree-optimization/16443
11917         * tree-ssa-alias.c: Add more description for
11918         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
11919         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
11920         clobbering of call-clobbered and addressable variables.  If
11921         there are any before aliases have been computed, add them.
11922
11923 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
11924
11925         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
11926         verification.
11927
11928 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
11929
11930         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
11931         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
11932         to the same type.
11933
11934 2004-07-13  Per Bothner  <per@bothner.com>
11935
11936         * collect2.c (main):  Handle --no-demangle and --demangle flags.
11937
11938 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
11939
11940         * Makefile.in (OBJS-common): Add tree-data-ref.o.
11941         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
11942         (tree-data-ref.o): New rule.
11943         * lambda.h: New file.
11944         * tree-data-ref.c: New file.
11945         * tree-data-ref.h: New file.
11946         * tree.c (int_cst_value, tree_fold_gcd): New functions.
11947         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
11948
11949 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11950
11951         PR target/13926
11952         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
11953         * config/sparc/sparc.c (output_ubranch): New function.
11954         * config/sparc/sparc.md (jump pattern): Use it.
11955
11956 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11957
11958         PR target/16494
11959         * config/sparc/sparc.c (output_cbranch): Properly guard
11960         the code handling far branches with TARGET_V9.
11961         * config/sparc/sparc.md (length attribute): Document the
11962         side-effect of having a length greater or equal to 3.
11963
11964 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11965             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
11966
11967         PR target/15186
11968         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
11969         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
11970
11971 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
11972             Martin Sebor  <sebor@roguewave.com>
11973
11974         PR target/12602
11975         * doc/invoke.texi (SPARC options): Document -threads
11976         and -pthreads on Solaris.
11977
11978 2004-07-13  Richard Henderson  <rth@redhat.com>
11979
11980         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
11981         by reference.
11982         (ind_gimplify_va_arg_expr): Remove.
11983         * tree.h (ind_gimplify_va_arg_expr): Remove.
11984         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
11985         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
11986         argsp to be null.
11987
11988         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
11989         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
11990         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
11991         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
11992         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
11993
11994 2004-07-13  Richard Henderson  <rth@redhat.com>
11995
11996         * function.c (pass_by_reference): New.
11997         (assign_parm_find_data_types): Use it.
11998         * calls.c (initialize_argument_information): Likewise.
11999         (emit_library_call_value_1): Likewise.
12000         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
12001         * function.h (pass_by_reference): Declare.
12002
12003 2004-07-13  Richard Henderson  <rth@redhat.com>
12004
12005         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
12006         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
12007         * expr.h (MUST_PASS_IN_STACK): Remove.
12008         * system.h (MUST_PASS_IN_STACK): Poison.
12009         * tree.h (must_pass_in_stack_var_size): Declare.
12010         (must_pass_in_stack_var_size_or_pad): Declare.
12011         * calls.c (must_pass_in_stack_var_size): New.
12012         (must_pass_in_stack_var_size_or_pad): Rename from
12013         default_must_pass_in_stack.
12014         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
12015         (TARGET_MUST_PASS_IN_STACK): New.
12016         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
12017         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
12018         (TARGET_MUST_PASS_IN_STACK): New.
12019         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
12020         * config/frv/frv.c (frv_must_pass_in_stack): New.
12021         (TARGET_MUST_PASS_IN_STACK): New.
12022         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
12023         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
12024         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
12025         (ix86_must_pass_in_stack): Make static.
12026         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
12027         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
12028         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
12029         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
12030         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
12031         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
12032         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
12033         (mcore_must_pass_on_stack): Remove.
12034         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
12035         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
12036         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
12037         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
12038         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
12039         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
12040         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
12041         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
12042         (TARGET_MUST_PASS_IN_STACK): New.
12043         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
12044         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
12045         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
12046         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
12047         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
12048         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
12049         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
12050         MUST_PASS_IN_STACK.
12051
12052         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
12053         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
12054         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
12055         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
12056         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
12057         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
12058         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
12059         config/xtensa/xtensa.c: Use target hook.
12060
12061 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
12062
12063         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
12064         * configure: Rebuilt.
12065
12066 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
12067
12068         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
12069         * config/mips/mips.h (mips_reg_names): Don't declare.
12070         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
12071         (TARGET_NAME_REGS): Delete.
12072         (TARGET_SWITCHES): Remove -mrnames.
12073         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
12074         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
12075         in REGISTER_NAMES.
12076         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
12077         (override_options): Remove handling of TARGET_NAME_REGS.
12078
12079 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
12080
12081         * config/mips/mips.h (TARGET_*): Boolify.
12082
12083 2004-07-12  Nick Clifton  <nickc@redhat.com>
12084
12085         * config.gcc: Add sh-*-symbianelf target.
12086         * config/sh/sh.c: Add new target macros:
12087         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
12088         TARGET_CXX_IMPORT_EXPORT_CLASS.
12089         (sh_file_start): Create a definition of the .directive section.
12090         (sh_attribute): Add dllimport and dllexport attributes.
12091         * config/sh/symbian-pre.h: New file.
12092         * config/sh/symbian-post.h: New file.
12093         * config/sh/symbian.c: New file. Contains Symbian specific
12094         functions.
12095         * config/sh/sh-protos.h: Add prototypes for new functions
12096         provided by symbian.c.
12097         * config/sh/t-symbian: New file.
12098         * doc/extend.texi: Document support for dllimport and dllexport
12099         attributes by the sh-symbianelf target.
12100
12101 2004-07-12  James E Wilson  <wilson@specifixinc.com>
12102
12103         * Makefile.in (AR): Use @AR@ not ar.
12104         (NM): New.
12105         (AR_FOR_TARGET): Use $(AR) not ar for native.
12106         (NM_FOR_TARGET): Use $(NM) not nm for native.
12107         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
12108         * configure: Regenerate.
12109
12110 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
12111
12112         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
12113         special case.
12114         (ashldi3_sp64): Likewise.
12115
12116 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12117
12118         PR target/16477
12119         * pa.c (function_arg): Update comment.
12120         * pa.h (BLOCK_REG_PADDING): Define.
12121
12122 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12123
12124         PR tree-optimization/16461
12125         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
12126         arguments of phi nodes.
12127
12128 2004-07-12  Devang Patel  <dpatel@apple.com>
12129
12130         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
12131
12132 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
12133
12134         * function.c (expand_function_start): Ensure r_save is in Pmode.
12135         * calls.c (prepare_call_address): Ensure static_chain_value is
12136         in Pmode.
12137         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
12138         r_save_area are in Pmode.
12139         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
12140         fnaddr, and static_chain are in Pmode.
12141
12142 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
12143
12144         PR target/16445
12145         * config/ia64/ia64.c (bundling): Don't count ignored insns.
12146
12147 2004-07-12  Richard Henderson  <rth@redhat.com>
12148
12149         * target.h (struct gcc_target): Move gimplify_va_arg_expr
12150         next to build_builtin_va_list.
12151         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
12152         * builtins.c (gimplify_va_arg_expr): Likewise.
12153         * gimplify.c (copy_if_shared_r): Likewise.
12154
12155 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
12156
12157         * passes.c (rest_of_decl_compilation): Don't defer call of
12158         assemble_variable if its DECL_RTL is already set.
12159
12160 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
12161
12162         * cfgloop.h (struct loop): Add nb_iterations field.
12163         (current_loops): Declare.
12164         * tree-chrec.c (chrec_not_analyzed_yet,
12165         chrec_dont_know, chrec_known, count_ev_in_wider_type,
12166         chrec_contains_symbols_defined_in_loop): Remove the temporary
12167         hooks.
12168         * tree-flow-inline.h (loop_containing_stmt): New function.
12169         * tree-scalar-evolution.c: Add implementation.
12170         * tree-scalar-evolution.h: Add declarations.
12171
12172 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
12173
12174         PR rtl-optimization/15921
12175         * Makefile.in (global.o): Add recog.h.
12176
12177         * global.c (recog.h): Add the include-clause.
12178         (bb_info): New member earlyclobber.
12179         (allocate_bb_info, free_bb_info): Initialize/finish the new
12180         member.
12181         (earlyclobber_regclass, earlyclobber_regclass_length): The new
12182         global variables.
12183         (check_earlyclobber, regclass_intersect,
12184         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
12185         New functions.
12186         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
12187         (make_accurate_live_analysis): Modify pavin.
12188
12189 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
12190
12191         * tree-cfg.c (find_taken_edge): Statically compute the truth
12192         value of a predicate comparing an SSA_NAME to itself.
12193
12194 2004-07-12  Roger Sayle  <roger@eyesopen.com>
12195
12196         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
12197         rs6000 doesn't have shift-and-add or shift-and-sub instructions
12198         by returning the cost of a multiplication plus an addition.
12199
12200 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
12201
12202         PR tree-optimization/14107
12203         * gimplify.c (gimplify_return_expr): Accept a
12204         RETURN_EXPR with an error argument.
12205         * tree-optimize.c (init_tree_optimization_passes):
12206         Run pass_warn_function_return at -O0.
12207
12208 2004-07-12  Roger Sayle  <roger@eyesopen.com>
12209
12210         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
12211         index entry.
12212
12213 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
12214
12215         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
12216         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
12217         * config/mips/3000.md: Add copyright notice.  Remove automota and
12218         function units; use generic ones instead.  Only define reservations
12219         for things that are different from generic.md.  Extend each clause
12220         to include r3900.
12221         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
12222         * config/mips/mips.md: Include them. Remove define_function_units.
12223         (alu, imuldiv): New automata and units.
12224
12225 2004-07-12  Ben Elliston  <bje@au.ibm.com>
12226
12227         * doc/invoke.texi (Optimize Options): Document -frename-registers
12228         not being enabled by default at -O3.
12229
12230 2004-07-11  Roger Sayle  <roger@eyesopen.com>
12231
12232         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
12233         floating point additions, to keep real immediate constant positive.
12234         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
12235         into X + C, and leave positive real constants as X - C.
12236
12237 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12238
12239         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
12240
12241 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12242
12243         PR tree-optimization/15654
12244         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
12245
12246 2004-07-11  Roger Sayle  <roger@eyesopen.com>
12247
12248         * builtins.c (fold_builtin_fputs): Don't bother converting the
12249         return type to integer_type_node, as we've already checked that
12250         the result will be ignored.
12251
12252         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
12253         that signed addition, subtraction, multiplication, division,
12254         remainder, negation and absolute value may potentially trap.
12255
12256         * fold-const.c (fold_ignored_result): New function to strip
12257         non-side-effecting tree nodes from an expression whose result
12258         is ignored.
12259         (fold_convert): Call fold_ignored_result when casting a value
12260         to VOID_TYPE.
12261         (omit_one_operand):  Call fold_ignored_result on the "omitted"
12262         operand when building a COMPOUND_EXPR.
12263         (pedantic_omit_one_operand): Likewise.
12264         * tree.h (fold_ignored_result): Prototype here.
12265         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
12266         when we're going to ignore the result.
12267
12268 2004-07-11  Richard Henderson  <rth@redhat.com>
12269
12270         PR tree-opt/16383
12271         * tree-ssa-ccp.c (fold_stmt_r): Split out...
12272         * tree.c (fields_compatible_p, find_compatible_field): ... new.
12273         * tree.h (fields_compatible_p, find_compatible_field): Declare.
12274         * tree-sra.c (sra_hash_tree): Hash fields by offset.
12275         (sra_elt_eq): Use fields_compatible_p.
12276         (generate_one_element_ref): Use find_compatible_field.
12277
12278 2004-07-11  Richard Henderson  <rth@redhat.com>
12279
12280         PR tree-opt/16422
12281         * tree-sra.c (generate_one_element_init): New.
12282         (generate_element_init): Use it.
12283         (scalarize_init): Push/pop gimplify context around it.
12284         (find_new_referenced_vars_1, find_new_referenced_vars): New.
12285         * gimplify.c (gimplify_expr): Allow SSA_NAME.
12286
12287 2004-07-11  Roger Sayle  <roger@eyesopen.com>
12288
12289         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
12290         combine.c's combine_insn_cost.
12291         * rtl.h (insn_rtx_cost): Prototype here.
12292         * combine.c (combine_insn_cost): Delete function.
12293         (combine_validate_cost): Update callers of combine_insn_cost to
12294         call insn_rtx_cost instead.
12295         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
12296         requesting the rtx_cost of call and/or jump instructions.
12297
12298         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
12299         rtx_cost directly.  Don't request/use the cost of call or jump
12300         instructions.  Return -1 if the cost of any instruction can't be
12301         determined (or the BB contains a function call).
12302         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
12303         -1 (i.e. can't determine the cost of any instruction or the basic
12304         block contains a subroutine call).
12305         (find_if_case_2): Likewise.
12306
12307 2004-07-11  Roger Sayle  <roger@eyesopen.com>
12308
12309         * rs6000.c (struct processor_costs): Change semantics of fields to
12310         include the COST_N_INSNS scaling, and update all initializers.
12311         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
12312         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
12313         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
12314         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
12315
12316 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12317
12318         * LANGUAGES: Remove obsolete information.
12319
12320 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
12321
12322         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
12323         SIGBUS signal frames, the PSW address points *to* the faulting
12324         instruction, not after it.
12325
12326 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
12327
12328         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
12329         added to TLS symbol addresses.
12330
12331 2004-07-11  Richard Henderson  <rth@redhat.com>
12332
12333         * expmed.c (init_expmed): Use stack-local structures for
12334         temporary rtl.  Don't recognize shifts.
12335
12336 2004-07-11  Richard Henderson  <rth@redhat.com>
12337
12338         * expr.c (store_expr): Don't fiddle subreg promotion for types
12339         with precision smaller than the mode.
12340
12341 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12342
12343         * tree.h (all_types_permanent): Remove.
12344
12345 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12346
12347         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
12348         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
12349         * langhooks.c (lhd_clear_binding_stack): Remove.
12350         * langhooks-def.h (lhd_clear_binding_stack,
12351         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
12352         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
12353         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
12354         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
12355         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
12356         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
12357         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
12358         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
12359         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
12360         * tree.h (poplevel): Don't declare.
12361         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
12362         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
12363         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
12364         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
12365         Remove.
12366
12367 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
12368
12369         PR tree-optimization/16437
12370         * c-common.c (shorten_compare): Don't mark result of conversion to
12371         narrower signed type as overflowing.
12372         * fold-const.c (decode_field_reference): Determine whether
12373         signedness comes from outer type using precision rather than size.
12374
12375 2004-07-11  Phil Edwards  <phil@codesourcery.com>
12376
12377         * configure.ac:  Alphabetize --enable-checking list, add
12378         missing valgrind entry.
12379         * configure:  Regenerate.
12380
12381 2004-07-11  Phil Edwards  <phil@codesourcery.com>
12382
12383         * doc/install.texi (Testing):  Fix syntax in "make check" example.
12384
12385 2004-07-10  James E Wilson  <wilson@specifixinc.com>
12386
12387         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
12388
12389 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12390
12391         PR rtl-optimization/16001
12392         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
12393         niter_expr.
12394
12395 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
12396
12397         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
12398
12399 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
12400             James Morrison  <phython@gcc.gnu.org>
12401
12402         * doc/contrib.texi (Contributors): Add gfortran contributors and
12403         fix a couple of typos.
12404
12405 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12406
12407         PR rtl-optimization/15387
12408         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
12409         to incoming args space correctly.
12410
12411 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12412
12413         * pa.c (output_indirect_call): Only use %r2 as the link register in
12414         indirect calls with the long PA 2.0 pc-relative branch.
12415
12416 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
12417
12418         * config/i386/i386.c (override_options): Pick a 64-bit CPU
12419         for the default tuning if TARGET_64BIT.
12420
12421 2004-07-10  Richard Henderson  <rth@redhat.com>
12422
12423         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
12424         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
12425
12426 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
12427
12428         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
12429         * expmed.c (store_bit_field, extract_bit_field): Remove last
12430         argument.
12431         * builtins.c (expand_builtin_signbit): Adjust callers.
12432         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
12433         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
12434         * ifcvt.c (noce_emit_move_insn): Likewise.
12435         * stmt.c (expand_return): Likewise.
12436         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
12437         store_field, expand_expr_real_1): Likewise.
12438
12439 2004-07-10  Richard Henderson  <rth@redhat.com>
12440
12441         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
12442
12443 2004-07-09  Mike Stump  <mrs@apple.com>
12444
12445         * config/darwin.c (no_dead_strip): Add.
12446         (HAVE_DEAD_STRIP): Add.
12447         (darwin_emit_unwind_label): Ensure that we don't dead code strip
12448         the .eh label.
12449
12450 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12451
12452         * tree-ssa-loop-im.c: New file.
12453         * Makefile.in (tree-ssa-loop-im.o): Add.
12454         * cfgloop.c (superloop_at_depth): New function.
12455         * cfgloop.h (superloop_at_depth): Declare.
12456         * common.opt (ftree-lim): New flag.
12457         * expr.c (array_ref_up_bound): New function.
12458         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
12459         * timevar.def (TV_LIM): New timevar.
12460         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
12461         computing immediate uses of a phi node.
12462         * tree-flow.h (struct tree_ann_common_d): Add aux field.
12463         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
12464         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
12465         * tree-pass.h (pass_lim): Declare.
12466         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
12467         functions.
12468         (pass_lim): New pass structure.
12469         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
12470         * tree.c (in_array_bounds_p): New function.
12471         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
12472         (in_array_bounds_p, array_ref_up_bound): Declare.
12473         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
12474         * doc/passes.texi (tree-ssa-loop-im.c): Document.
12475
12476 2004-07-09  Richard Henderson  <rth@redhat.com>
12477
12478         * builtins.c (expand_builtin_stpcpy): Don't modify len.
12479
12480         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
12481         with prejudice.
12482
12483 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
12484
12485         * flags.h: Delete redundant prototypes that are being generated
12486         in options.h from common.opt.
12487         * common.opt: Add in the expository comments formerly in flags.h.
12488
12489 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12490
12491         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
12492         available for use only when TARGET_MMX/_SSE is set, and check for
12493         variable argument function if any register count is non-zero.
12494         (function_arg): Correctly suppress repeated warnings for passing SSE
12495         vectors are arguments without SSE enabled.
12496         (ix86_function_arg_boundary): Without SSE enabled, the use of what
12497         would be SSE register modes does no longer influence the alignment.
12498
12499 2004-07-09  Richard Henderson  <rth@redhat.com>
12500
12501         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
12502         Always align upward to arg boundary.  Use size_in_bytes/round_up.
12503         Maintain type-correctness of constants.
12504         * stor-layout.c (round_up, round_down): Special-case powers of 2.
12505
12506 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
12507
12508         * config/sparc/sparc.c (*_costs): Scale instruction costs
12509         by COSTS_N_INSNS.
12510         (sparc_rtx_costs): Adjust as appropriate.
12511
12512 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12513
12514         * config/i386/mm3dnow.h: New.
12515         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
12516
12517 2004-07-09  Richard Henderson  <rth@redhat.com>
12518
12519         * simplify-rtx.c (simplify_const_relational_operation): Only
12520         look at bounds of scalar integers.
12521
12522 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12523
12524         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
12525
12526 2004-07-09  Andrew Pinski  <apinski@apple.com>
12527
12528         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
12529         always referenced.
12530         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
12531         UOBJC_METACLASS_decl.
12532
12533 2004-07-09  James E Wilson  <wilson@specifixinc.com>
12534
12535         PR target/16364
12536         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
12537         do return a parallel if hfa_mode == XFmode and mode == TImode.
12538
12539 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12540
12541         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
12542         permissible for unary plus.
12543
12544 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12545
12546         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
12547         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
12548         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
12549         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
12550         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
12551         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
12552         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
12553         (BUILTIN_xxxIMAX): New.
12554         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
12555         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
12556         BUILT_IN_PARITYIMAX.
12557
12558 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
12559
12560         * config/sparc/sparc.h (processor_costs): Define.
12561         (sparc_costs): Declare.
12562         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
12563         hypersparc_costs, sparclet_costs, ultrasparc_costs,
12564         ultrasparc3_costs): New.
12565         (sparc_override_options): Set sparc_costs as appropriate.
12566         (sparc_rtx_costs): Use sparc_costs instead of messy
12567         conditionals.
12568
12569 2004-07-09  Steven Bosscher  <stevenb@suse.de>
12570
12571         * doc/md.texi (Processor pipeline description): Mention that
12572         the old pipeline description is deprecated.
12573
12574         * config/rs6000/7450.md (automaton ppc7450): Split up, move
12575         mciu_7450 function unit to...
12576         (automaton ppc7450mciu): ...new automaton.
12577
12578         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
12579         (schedule_block): Don't consider inserting bubbles.
12580         (sched_init): Don't initialize DFA bubbles.
12581         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
12582         TARGET_SCHED_DFA_BUBBLE): Remove.
12583         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
12584         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
12585         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
12586
12587         * stmt.c (conditional_context): Remove prototype.
12588         * tree.h (conditional_context): Remove.
12589         * tree-cfg.c (pre_insert_on_edge): Remove.
12590
12591         * c-common.h (c_expand_asm_operands): Remove prototype.
12592         * c-typeck.c (c_expand_asm_operands): Remove.
12593
12594 2004-07-09  Jan Beulich  <jbeulich@novell.com>
12595
12596         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
12597         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
12598         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
12599         and V8QI are class SSE. All sufficiently small remaining vector modes
12600         must be passed in one or two integer registers.
12601         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
12602         returned in memory.
12603         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
12604         __builtin_ia32_pmuludq128 have non-uniform argument and return types
12605         and must thus be handled explicitly.
12606         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
12607         MMX and XMM regs.
12608         (movv8qi_internal, movv4hi_internal, movv2si_internal,
12609         movv2sf_internal): Permit moving between MMX and XMM registers (since
12610         MMX areguments and return values are passed in XMM registers).
12611         (sse2_umulsidi3): Correct type and mode.
12612
12613 2004-07-09  Richard Henderson  <rth@redhat.com>
12614
12615         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
12616
12617 2004-07-09  Eric Christopher  <echristo@redhat.com>
12618
12619         * config/rs6000/40x.md: Split into two automatons.
12620
12621 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
12622             Andrew Pinski  <apinski@apple.com>
12623
12624         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
12625         on when we have more than one input file.
12626         (c_common_parse_file): Restore loop over all input files.
12627         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
12628
12629         * c-decl.c (set_type_context): New function.
12630         (pop_scope): Use it to set context of types.  When we
12631         encounter a TYPE_DECL, set the context of the attached type too.
12632         (pop_file_scope): Don't call cpp_undef_all here.
12633         (diagnose_mismatched_decls): Do not complain about a second
12634         definition of an 'extern inline' function if it's not in the
12635         same translation unit.  Do not complain about inline
12636         declaration after use if the use was in a different
12637         translation unit.
12638         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
12639         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
12640         the external scope.
12641         (pushdecl_top_level): Likewise.
12642         (grokdeclarator): Clarify what is going on with setting
12643         DECL_EXTERNAL on function types, a little.
12644         (c_write_global_declarations): Don't do anything if
12645         -fsyntax-only or errors have been encountered.
12646
12647 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
12648
12649         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
12650
12651 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12652
12653         PR target/16459
12654         * pa.c (output_indirect_call): Use %r2 as the link register when
12655         calling $$dyncall with a pc-relative branch.
12656
12657 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
12658
12659         * doc/install.texi (Binaries): Mention OpenPKG.
12660
12661 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
12662
12663         Fix PR tree-optimization/15555
12664         * tree-dfa.c (dump_variable): If the variable is a pointer
12665         SSA_NAME, also dump its points-to information.
12666         * tree-flow.h (struct ptr_info_def): Add field
12667         is_dereferenced.
12668         (dump_points_to_info_for): Declare.
12669         (debug_points_to_info_for): Declare.
12670         * tree-optimize.c (init_tree_optimization_passes): Add a
12671         second alias analysis pass after DOM2.
12672         Move pass_del_pta to a later spot.
12673         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
12674         create a name tags when we find a dereferenced pointer.  Just
12675         mark the pointer dereferenced.
12676         (collect_points_to_info_for): Move code to clear points-to
12677         information to create_name_tags.
12678         (create_name_tags): New function.
12679         (compute_flow_sensitive_aliasing): Call it.
12680         (setup_pointers_and_addressables): Mark type tags for renaming
12681         here instead of ...
12682         (create_memory_tag): ... here.
12683         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
12684         (dump_points_to_info_for): Declare extern.
12685         (debug_points_to_info_for): New function.
12686
12687 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
12688
12689         * config/arc/arc.md: Switch to DFA-based scheduler description.
12690         * config/arc/arc.c: Switch to DFA-based scheduler description.
12691
12692 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
12693
12694         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
12695         pointer.
12696
12697 2004-07-09  Richard Henderson  <rth@redhat.com>
12698
12699         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
12700         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12701         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
12702         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
12703
12704         * config/v850/v850-protos.h (v850_va_arg): Remove.
12705         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12706         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
12707         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
12708         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
12709         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
12710
12711 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
12712
12713         PR target/12133
12714         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
12715         and DImode to use +/-4k offset.
12716
12717 2004-07-09  Richard Henderson  <rth@redhat.com>
12718
12719         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
12720         Remove.
12721         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12722         (xstormy16_gimplify_va_arg_expr): Rewrite from
12723         xstormy16_expand_builtin_va_arg.
12724         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
12725
12726         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
12727         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
12728
12729         * config/sh/sh-protos.h (sh_va_arg): Remove.
12730         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12731         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
12732         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
12733
12734         * config/pa/pa-protos.h (hppa_va_arg): Remove.
12735         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12736         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
12737         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
12738
12739         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
12740         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12741         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
12742         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
12743
12744 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
12745
12746         * config/sparc/sparc.md (return): Rewrite length formula.
12747         * config/sparc/sparc.c (output_return): Pass 1 as 5th
12748         argument to final_scan_insn when in a delay slot.
12749         (output_sibcall): Likewise.
12750
12751 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
12752
12753         * arm.c (arm_cpp_interwork): New variable.
12754         (arm_override_options): Set it if TARGET_INTERWORK was on the command
12755         line.
12756         * arm.h (arm_cpp_interwork): Declare it.
12757         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
12758         __THUMB_INTERWORK__ in the preprocessor.
12759
12760 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
12761
12762         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
12763
12764 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
12765
12766         PR target/16416
12767         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
12768         Override default settings to account for -m32 and -m64.
12769
12770 2004-07-08  Randolph Chung  <tausq@debian.org>
12771
12772         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
12773
12774 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
12775
12776         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
12777         before comparing it as such.
12778
12779 2004-07-08  Richard Henderson  <rth@redhat.com>
12780
12781         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
12782         temporary.  Use bit arithmetic to align.
12783
12784 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
12785
12786         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
12787         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
12788         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
12789         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
12790         add_labels_and_missing_jumps, find_jump_block,
12791         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
12792         Likewise.
12793         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
12794         link_btr_uses, move_btr_def): Likewise.
12795         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
12796         expand_builtin_expect_jump): Likewise.
12797         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
12798         * calls.c (expand_call, emit_library_call_value_1): Likewise.
12799         * cfganal.c (forwarder_block_p): Likewise.
12800         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
12801         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
12802         find_bb_boundaries): Likewise.
12803         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12804         merge_blocks_move_predecessor_nojumps,
12805         merge_blocks_move_successor_nojumps, insns_match_p,
12806         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
12807         try_optimize_cfg): Likewise.
12808         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
12809         * cfglayout.c (skip_insns_after_block, label_for_bb,
12810         record_effective_endpoints, insn_locators_initialize,
12811         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
12812         * cfgmainloop.c (create_loop_notes): Likewise.
12813         * cfgrtl.c (delete_insn, delete_insn_chain,
12814         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
12815         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
12816         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
12817         redirect_branch_edge, force_nonfallthru_and_redirect,
12818         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
12819         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
12820         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
12821         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
12822         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
12823         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
12824         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
12825         * combine.c (combine_instructions, can_combine_p, try_combine,
12826         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
12827         distribute_notes, distribute_links, insn_cuid): Likewise.
12828         * cse.c (fold_rtx, cse_insn, cse_around_loop,
12829         invalidate_skipped_block, cse_set_around_loop,
12830         cse_end_of_basic_block, cse_main, cse_basic_block,
12831         cse_condition_code_reg): Likewise.
12832         * cselib.c (cselib_process_insn): Likewise.
12833         * ddg.c (create_ddg): Likewise.
12834         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
12835         Likewise.
12836         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
12837         gen_label_die, dwarf2out_var_location): Likewise.
12838         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
12839         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
12840         last_call_insn, active_insn_p, next_label, prev_label,
12841         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
12842         add_insn_before, remove_insn, add_function_usage_to,
12843         reorder_insns, find_line_note, remove_unnecessary_notes,
12844         emit_insn_after_1, classify_insn): Likewise.
12845         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
12846         connect_post_landing_pads, sjlj_mark_call_sites,
12847         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
12848         can_throw_internal, can_throw_external, set_nothrow_function_flags,
12849         convert_to_eh_region_ranges): Likewise.
12850         * explow.c (optimize_save_area_alloca): Likewise.
12851         * expr.c (expand_expr_real): Likewise.
12852         * final.c (insn_current_reference_address, compute_alignments,
12853         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
12854         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
12855         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
12856         propagate_block_delete_insn, propagate_one_insn,
12857         init_propagate_block_info, propagate_block, libcall_dead_p,
12858         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
12859         Likewise.
12860         * function.c (instantiate_virtual_regs, reorder_blocks_1,
12861         expand_function_start, expand_function_end, contains,
12862         thread_prologue_and_epilogue_insns,
12863         reposition_prologue_and_epilogue_notes): Likewise.
12864         * gcse.c (constprop_register, bypass_conditional_jumps,
12865         insert_insn_end_bb, gcse_after_reload): Likewise.
12866         * genemit.c (gen_expand, gen_split): Likewise.
12867         * genpeep.c (gen_peephole, main): Likewise.
12868         * global.c (build_insn_chain): Likewise.
12869         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
12870         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
12871         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
12872         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
12873         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
12874         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
12875         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
12876         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
12877         dead_or_predicable): Likewise.
12878         * integrate.c (try_constants): Likewise.
12879         * jump.c (rebuild_jump_labels, cleanup_barriers,
12880         purge_line_number_notes, init_label_info, mark_all_labels,
12881         squeeze_notes, get_label_before, get_label_after,
12882         reversed_comparison_code_parts, simplejump_p, pc_set,
12883         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
12884         delete_barrier, delete_prior_computation, delete_computation,
12885         delete_related_insns, delete_for_peephole, redirect_jump):
12886         Likewise.
12887         * lcm.c (optimize_mode_switching): Likewise.
12888         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
12889         Likewise.
12890         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
12891         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
12892         * loop-iv.c (simplify_using_assignment): Likewise.
12893         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
12894         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
12895         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
12896         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
12897         check_insn_for_givs, check_final_value, update_giv_derive,
12898         basic_induction_var, product_cheap_p, check_dbra_loop,
12899         loop_insn_first_p, last_use_this_basic_block,
12900         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
12901         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
12902         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
12903         sms_schedule_by_order): Likewise.
12904         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
12905         * postreload.c (reload_cse_simplify_operands, reload_combine,
12906         reload_cse_move2add): Likewise.
12907         * predict.c (can_predict_insn_p, estimate_probability,
12908         expected_value_to_br_prob, process_note_predictions): Likewise.
12909         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
12910         * profile.c (branch_prob): Likewise.
12911         * ra-build.c (live_out_1, livethrough_conflicts_bb,
12912         detect_webs_set_in_cond_jump): Likewise.
12913         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
12914         ra_print_rtl_with_bb): Likewise.
12915         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
12916         * recog.c (next_insn_tests_no_inequality, find_single_use,
12917         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
12918         * reg-stack.c (next_flags_user, record_label_references,
12919         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
12920         compensate_edge, convert_regs_1): Likewise.
12921         * regclass.c (scan_one_insn): Likewise.
12922         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
12923         regmove_optimize, fixup_match_1, single_set_for_csa,
12924         combine_stack_adjustments_for_block): Likewise.
12925         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
12926         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
12927         find_equiv_reg): Likewise.
12928         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
12929         reload_as_needed, emit_input_reload_insns, do_output_reload,
12930         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
12931         Likewise.
12932         * reorg.c (find_end_label, emit_delay_sequence,
12933         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
12934         get_jump_flags, rare_destination, mostly_true_jump,
12935         try_merge_delay_insns, redundant_insn, own_thread_p,
12936         fill_simple_delay_slots, fill_slots_from_thread,
12937         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
12938         dbr_schedule): Likewise.
12939         * resource.c (find_basic_block, next_insn_no_annul,
12940         find_dead_or_set_registers, mark_target_live_regs): Likewise.
12941         * rtl.h (RTX_PREV): Likewise.
12942         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
12943         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
12944         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
12945         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
12946         tablejump_p, computed_jump_p, insns_safe_to_move_p,
12947         find_first_parameter_load, can_hoist_insn_p): Likewise.
12948         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
12949         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
12950         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
12951         schedule_ebbs): Likewise.
12952         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
12953         is_conditionally_protected, can_schedule_ready_p,
12954         add_branch_dependences, debug_dependencies): Likewise.
12955         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
12956         Likewise.
12957         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
12958         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
12959         set_dominates_use, ujump_to_loop_cont): Likewise.
12960         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
12961         * varasm.c (output_constant_pool_1): Likewise.
12962
12963 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12964
12965         * tree-scalar-evolution.c: New file.
12966         * tree-scalar-evolution.h: New file.
12967         * tree-ssa-loop-niter.c: New file.
12968         * Makefile.in (SCEV_H): New.
12969         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
12970         * cfgloop.h (struct loop): Add bounds field.
12971         * tree-flow.h (struct tree_niter_desc): New type.
12972         (number_of_iterations_cond, number_of_iterations_exit,
12973         loop_niter_by_eval, find_loop_niter_by_eval,
12974         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
12975         free_numbers_of_iterations_estimates): Declare.
12976         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
12977         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
12978         * doc/invoke.texi (max-iterations-to-track): Document.
12979
12980 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
12981
12982         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
12983         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
12984         (MODE_AFTER): Add cast appropriately.
12985         * config/sh/sh.md (movdi splitter): Likewise.
12986         (casesi_worker_2): Add const qualifier appropriately.
12987         (eh_return): Remove unused variable.
12988         (insv): Initialize v;
12989
12990 2004-07-08  Richard Henderson  <rth@redhat.com>
12991
12992         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
12993         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
12994         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
12995         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
12996         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
12997
12998         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
12999         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13000         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
13001         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
13002
13003         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
13004         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13005         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
13006         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
13007
13008         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
13009         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13010         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
13011         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
13012
13013         * config/i860/i860-protos.h (i860_va_arg): Remove.
13014         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13015         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
13016         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
13017
13018 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
13019
13020         * system.h: Prototype getpagesize if missing.
13021         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
13022         * configure: Regenerate.
13023         * config.in: Regenerate.
13024
13025 2004-07-08  Richard Henderson  <rth@redhat.com>
13026
13027         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
13028         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13029         (fr30_gimplify_va_arg_expr): New.
13030         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
13031         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
13032
13033 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
13034
13035         PR target/16414
13036         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
13037         of asm_noperands result.
13038
13039 2004-07-08  Richard Henderson  <rth@redhat.com>
13040
13041         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
13042         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13043         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
13044         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
13045
13046 2004-07-08  Richard Henderson  <rth@redhat.com>
13047
13048         * builtins.c (ind_gimplify_va_arg_expr): New.
13049         * tree.h (ind_gimplify_va_arg_expr): Declare.
13050         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
13051
13052 2004-07-08  Jan Beulich  <jbeulich@novell.com>
13053
13054         * expmed.c (extract_bit_field): Correct condition to use vec_extract
13055         patterns also on vector elements other than the first one.
13056         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
13057         break statements.
13058
13059 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
13060
13061         * config/rs6000/darwin-ldouble.c: Correct reference
13062         to the Linnainmaa paper.
13063
13064 2004-07-08  Richard Henderson  <rth@redhat.com>
13065
13066         * config/arc/arc-protos.h (arc_va_arg): Remove.
13067         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13068         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
13069         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
13070
13071         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
13072         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
13073         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
13074         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
13075
13076 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13077
13078         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
13079
13080 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
13081
13082         * c-decl.c (static_ctors, static_dtors): Make static.
13083         (pop_file_scope): Call c_common_write_pch and
13084         cgraph_finalize_compilation_unit here.
13085         (build_cdtor): Moved here from c-objc-common.c; simplify.
13086         (c_write_global_declarations_1): Clarify comment.
13087         (c_write_global_declarations): Close the external scope before
13088         doing anything else.  Call build_cdtor, cgraph_optimize, and
13089         mudflap_finish_file here.
13090         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
13091         Clarify comment.
13092         * c-objc-common.c: No need to include cgraph.h.
13093         (build_cdtor): Moved to c-decl.c.
13094         (c_objc_common_finish_file): Delete.
13095         * c-tree.h: Update to match.
13096         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
13097         (generate_static_references): Set TREE_USED before calling finish_decl.
13098         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
13099         on the static_instances_decl.
13100
13101 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
13102
13103         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
13104         decls when there is only one input translation unit.
13105         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
13106         change of 2004-07-05; do not treat declarations with
13107         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
13108         * opts.c (cur_in_fname): Delete.
13109         * opts.h: Likewise.
13110         * tree.c: Revert changes of 2004-07-05; no special treatment
13111         for TRANSLATION_UNIT_DECLs.
13112         * Makefile.in (tree.o): Update dependencies.
13113
13114 2004-07-08  Roger Sayle  <roger@eyesopen.com>
13115
13116         * builtins.c (fold_builtin_strcpy): Merge functionality from
13117         simplify_builtin_strcpy.  Add additional len argument.  No longer
13118         static.  Remove function prototype.
13119         (fold_builtin_strncpy): Likewise integrate functionality from
13120         simplify_builtin_strncpy.  Add additional slen argument.  No
13121         longer static.  Remove function prototype.
13122         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
13123         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
13124         types of "ignore" and "unlocked" parameters to bool.
13125         (fold_builtin_1):  Add additional ignore argument.  Call renamed
13126         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
13127         builtins.  Update arguments to fold_builtin_strncpy and
13128         fold_builtin_strcpy.  Add function prototype.
13129         (fold_builtin): Add additional Boolean ignore argument to pass
13130         to fold_builtin_1.
13131         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
13132         and fold_builtin_strncpy instead of simplify_builtin_fputs,
13133         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
13134
13135         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
13136         simplify_builtin_strncpy): Delete function prototypes.
13137         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
13138         fold_builtin_strncpy): Add function prototypes here.
13139         (fold_builtin): Update function prototype with new "bool ignore".
13140
13141         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
13142         (ccp_fold_builtin):  Update call to fold_builtin.  Call
13143         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
13144         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
13145         simplify_builtin_strncpy respectively.
13146         * fold-const.c (fold): Update call to fold_builtin.
13147
13148 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
13149
13150         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
13151         to strcpy.
13152
13153         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
13154         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
13155         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
13156         * calls.c: Remove ifdefs of macros above.
13157         * functions.c: Likewise.
13158         * expr.c: Likewise.
13159
13160 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13161
13162         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
13163         (arch attribute): Delete.
13164         (current_function_calls_alloca attribute): Rename into calls_alloca.
13165         (calls_eh_return): New attribute.
13166         (leaf_function): Likewise.
13167         (length attribute): Fix formula for sibcalls.
13168         (return insn): Correctly compute the 'length' attribute.
13169         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
13170
13171 2004-07-08  Richard Henderson  <rth@redhat.com>
13172
13173         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
13174         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
13175         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
13176         * tree-eh.c (lower_eh_constructs_1): Likewise.
13177         * tree-sra.c (sra_walk_modify_expr): Likewise.
13178         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
13179         (eliminate_unnecessary_stmts): Likewise.
13180         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
13181         * tree-tailcall.c (optimize_tail_call): Likewise.
13182         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
13183
13184 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
13185             Jakub Jelinek  <jakub@redhat.com>
13186
13187         * config/i386/i386.c (override_options): Enable
13188         SSE prefetches with -mtune, as long as we are
13189         compiling for i686 or higher.  All i686 processors
13190         accept SSE prefetches as NOPS, some i586's don't.
13191
13192 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13193
13194         PR target/10567
13195         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
13196
13197 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
13198
13199         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
13200         the handling of clobbering ASM_EXPRs.
13201
13202 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13203
13204         PR target/16430
13205         * config/sparc/sparc.c (function_value): In 64-bit mode,
13206         return the aggregates larger than 16 bytes like unions.
13207
13208 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13209
13210         PR target/16199
13211         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
13212         'temp' is zero, generate new pseudos as needed and emit the
13213         sequence of insns in single-assignment form.  Resync comments
13214         with code.
13215         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
13216         function before reload.
13217
13218 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
13219
13220         * vec.c (vec_assert_fail): Remove duplicate 'function'.
13221
13222         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
13223
13224         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
13225         Allocation is signed.
13226         (VEC_reserve): Return flag, allocation is signed.
13227
13228 2004-07-08  Richard Henderson  <rth@redhat.com>
13229
13230         * tree-ssa-ccp.c (fold_stmt): Get type directly from
13231         OBJ_TYPE_REF_OBJECT.
13232
13233 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
13234             Neil Booth  <neil@daikokuya.co.uk>
13235
13236         PR c/2511
13237         PR c/3325
13238         * c-decl.c (finish_struct): Ensure bit-fields are given the
13239         correct type.
13240         * c-common.c (c_common_signed_or_unsigned_type): For C, require
13241         the precision to match as well as the mode.
13242         * expr.c (reduce_to_bit_field_precision): New function.
13243         (expand_expr_real_1): Reduce expressions of bit-field type to
13244         proper precision.
13245         * langhooks.h (reduce_bit_field_operations): New hook.
13246         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13247         Define.
13248         * c-lang.c, objc/objc-lang.c
13249         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
13250         * objc/objc-act.c (check_ivars): Convert types to bit-field types
13251         before checking.
13252         * tree.c (build_nonstandard_integer_type): New function.
13253         * tree.h (build_nonstandard_integer_type): New prototype.
13254         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
13255         conversions between integer and boolean types as useless.
13256
13257 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
13258
13259         * c-common.c (c_common_nodes_and_builtins): Do not
13260         create __builtin_ptrdiff_t and __builtin_size_t.
13261
13262 2004-07-08  Andrew Pinski  <apinski@apple.com>
13263
13264         * Makefile.in (libbackend.o): Add -combine to the gcc
13265         command line.
13266
13267 2004-07-08  Nick Clifton  <nickc@redhat.com>
13268
13269         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
13270         Set to -Os.
13271
13272 2004-07-08  Richard Henderson  <rth@redhat.com>
13273
13274         * except.c (expand_eh_region_start, expand_eh_region_end,
13275         expand_eh_handler, expand_eh_region_end_cleanup,
13276         expand_start_all_catch, expand_start_catch, expand_end_catch,
13277         expand_end_all_catch, expand_eh_region_end_allowed,
13278         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
13279         expand_eh_region_end_fixup): Remove.
13280         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
13281         cleanups, outer_cleanups, label_chain, exception_region.
13282         (struct goto_fixup): Remove stack_level, cleanup_list_list.
13283         (struct label_chain): Remove.
13284         (struct stmt_status): Remove x_stack_block_stack.
13285         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
13286         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
13287         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
13288         end_cleanup_deferral, last_cleanup_this_contour,
13289         containing_blocks_have_cleanups_or_stack_level,
13290         any_pending_cleanups): Remove.
13291         (expand_null_return_1): Take no arguments.
13292         (expand_label, expand_naked_return, expand_return,
13293         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
13294         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
13295         expand_end_case_type): Don't use any of them.
13296         * calls.c (expand_call): Likewise.
13297         * dojump.c (do_jump): Likewise.
13298         * function.c (expand_function_end): Likewise.
13299         * expr.c (store_expr, expand_expr_real_1): Likewise.
13300         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
13301         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
13302         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
13303         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
13304         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
13305         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
13306         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
13307         for WITH_CLEANUP_EXPR.
13308         (gimple_push_cleanup): Likewise.
13309         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
13310         * print-tree.c (print_node): Likewise.
13311         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
13312         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
13313         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
13314         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
13315         (GOTO_SUBROUTINE_EXPR): Remove.
13316         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
13317         (DECL_TOO_LATE): Remove.
13318         * except.h, tree.h: Update decls.
13319
13320 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
13321
13322         * explow.c (optimize_save_area_alloca): Do not accept parameters.
13323         * passes.c (rest_of_handle_final): Handle symout.
13324         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
13325         Push timevar here.
13326         (rest_of_handle_sched): Break out SMS.  Remove ifs for
13327         flag_schedule_insns and flag_modulo_sched.
13328         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
13329         collect at the end.
13330         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
13331         (rest_of_handle_partition_blocks, rest_of_handle_sms,
13332         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
13333         rest_of_handle_mode_switching, rest_of_handle_jump,
13334         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
13335         rest_of_handle_jump2, rest_of_handle_postreload,
13336         rest_of_handle_flow2, rest_of_clean_state,
13337         rest_of_handle_shorten_branches,
13338         rest_of_handle_prologue_epilogue,
13339         rest_of_handle_branch_target_load_optimize): New.
13340         (rest_of_compilation): Call the above.  Remove ggc_collect
13341         calls moved to rest_of_handle_*.
13342         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
13343
13344         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
13345         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
13346         * except.h (set_nothrow_function_flags): Update comment.
13347         * function.c (current_function_nothrow): Remove.
13348         * output.h (current_function_nothrow): Remove.
13349         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
13350         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
13351
13352 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
13353
13354         PR bootstrap/16326
13355         * reorg.c: Revert 2004-06-30 change.
13356         (find_end_label): If HAVE_epilogue and !HAVE_return,
13357         return 0 instead of creating a label at the end of the insn chain.
13358         (optimize_skip): Account for the failure mode of find_end_label.
13359         (fill_simple_delay_slots): Likewise.
13360         (fill_slots_from_thread): Likewise.
13361         (relax_delay_slots): Likewise.
13362
13363 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
13364
13365         * tree-flow.h (addressable_vars): Declare.
13366         * tree-ssa-alias.c (addressable_vars): Define.
13367         (setup_pointers_and_addressables): Add addressable variables
13368         to addressable_vars.
13369         * tree-ssa-operands.c (get_stmt_operands): Move
13370         handling of ASM_EXPRs ...
13371         (get_asm_expr_operands): ... here.
13372         When the ASM_EXPR clobbers memory, also clobber addressable
13373         variables.
13374         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
13375         (delete_tree_ssa): Reset addressable_vars.
13376
13377 2004-07-07  Jan Beulich  <jbeulich@novell.com>
13378             Richard Henderson  <rth@redhat.com>
13379
13380         * varasm.c (assemble_variable): Use assemble_zeros for
13381         zero-initialized variables.
13382         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
13383         for SECCAT_BSS and SECCAT_TBSS.
13384
13385 2004-07-07  Jan Beulich  <jbeulich@novell.com>
13386
13387         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
13388
13389         * expmed.c (emit_store_flag): Also special-case double-word
13390         (in-)equality comparison against -1.
13391
13392         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
13393         passing arguments the containers for which are registers.
13394
13395         * calls.c (emit_library_call_value_1): Use mode of function parameter
13396         rather than that of argument since constants have none.
13397
13398 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
13399
13400         Introduce H8SX support.
13401         * expr.c (expand_strcpy): Renamed and moved to...
13402         * builtins.c (expand_movstr): ... here.  Tweak.
13403         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
13404         computed or has side effects.
13405         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
13406         unused, or if mempcpy fails.  Adjust the return value in the
13407         latter case.  Use movstr if everything else fails.
13408         * doc/md.texi (movstr): Document.
13409         (movmemM, clrmemM): Fix explanation of memory block operands.
13410         * config/h8300/h8300.md (stpcpy): Renamed to...
13411         (movstr): ... this.  Adjust.
13412         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
13413         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
13414         movmem* and clrstr* to clrmem*.
13415         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
13416         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
13417         GENERAL_REGS, always.
13418         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
13419         getting the stack pointer as addr.
13420         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
13421         from general_operand_dst.
13422         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
13423         variant of...
13424         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
13425         instead of requiring it to match only before reload.
13426         (stpcpy_internal_normal): New, normal-mode variant of...
13427         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
13428         `D' instead of requiring it to match only before reload.
13429         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
13430         mode argument.
13431         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
13432         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
13433         h8300_get_index.
13434         * config/h8300/h8300.md (attr type): Add call.
13435         (attr can_delay): If type is call, set it no.
13436         (call, call_value): Set type to call.
13437         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
13438         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
13439         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
13440         * tree.c (get_narrower): Don't narrow integral types into
13441         non-integral types.
13442         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
13443         frame_size *before* the first use.
13444         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
13445         on input.
13446         (peephole2): Don't widen instructions that push SP.  Move
13447         decrement of SP to the end of all stm-generating peepholes.
13448         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
13449         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
13450         and OR to set it to all ones.
13451         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
13452         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
13453         (call, call_value): Set can_delay to "no".
13454         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
13455         * config/h8300/h8300.md (extzv): Make subreg check more robust.
13456         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13457         * config/h8300/h8300.md (*brabit): Remove.
13458         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
13459         zero_extract.  Use bit_memory_operand as the predicate for
13460         operand 1 and 'WU' as the constraint.  Check the difference
13461         between the base length and the final one when deciding which
13462         type of branch to use.
13463         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13464         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
13465         Use convert_move to extend the result for TARGET_H8300SX.  Check
13466         for QImode memory references.  Optimize the case where the
13467         destination is a paradoxical subreg.
13468         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13469         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
13470         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
13471         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
13472         * config/h8300/h8300.md: Include mova.md
13473         (length_table): Add mova and mova_zero.
13474         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
13475         after all constant addresses for '%R', '%X', '%T' and '%S'.
13476         (h8300_mova_length): New function.
13477         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
13478         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
13479         dependencies for s-config, etc.
13480         * config/h8300/gemova.sh: New file.
13481         * config/h8300/mova.md: Generated.
13482         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
13483         * config/h8300/h8300.c (h8300_bitfield_length): New.
13484         (nibble_operand): Adjust.
13485         (h8300_binary_length): Handle conditional binary op.
13486         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
13487         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
13488         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
13489         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
13490         constraints.  WU is introduced as a variant of U that requires a
13491         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
13492         * config/h8300/h8300.md (attr type): Added bitbranch.
13493         (attr length_table): Added bitfield and bitbranch.
13494         (attr length): Compute bitbranch length.
13495         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
13496         least-significant bit of a byte.
13497         (brabit, brabc, brabs): New.
13498         (insv, extzv): Emit bfst and bfld on H8300SX.
13499         (bfld, bfst, seq, sne): New.
13500         (bstzhireg, cmpstz, bstz, bistz): New.
13501         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
13502         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
13503         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
13504         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
13505         (h8sx_unary_memory_operator): New function.
13506         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
13507         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
13508         * config/h8300/h8300.md: Add peepholes to combine reloads and
13509         arithmetic insns.
13510         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
13511         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
13512         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
13513         (and?i, ior?i, xor?i): Likewise.
13514         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
13515         * config/h8300/h8300.c: Move enums and prototypes to head of file.
13516         Various whitespace fixes.
13517         (h8300_constant_length): New function, split out from...
13518         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
13519         (h8300_classify_operand): Use IN_RANGE.
13520         (h8300_classify_operand): Use h8300_constant_length.
13521         (h8300_short_move_mem_p): Tighten size check.
13522         (h8sx_mergeable_memrefs_p): Tighten equality check.
13523         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
13524         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
13525         for -msx.
13526         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
13527         * config/h8300/crtn.asm: Likewise.
13528         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
13529         if __H8300SX__ is defined.
13530         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
13531         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
13532         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
13533         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
13534         addresses as mode-dependent.
13535         * config/h8300/h8300.c (print_operand_address): Update call to
13536         h8300_get_index.
13537         (h8300_get_index): Take a mode argument.  Rework to fix an
13538         earlier misunderstanding.
13539         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
13540         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
13541         into a register if TARGET_H8300SX.
13542         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
13543         TARGET_H8300SX.  Also disable related define_splits.
13544         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
13545         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
13546         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
13547         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
13548         * config/h8300/h8300.h (OK_FOR_Z): New macro.
13549         (EXTRA_CONSTRAINT_STR): Check it.
13550         * config/h8300/h8300.c (h8300_classify_operand): Accept null
13551         class arguments.
13552         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
13553         * config/h8300/h8300.md (length_table): Add mov_imm4.
13554         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
13555         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
13556         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
13557         be a label.
13558         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
13559         * config/h8300/h8300.c (h8300_reorg): New function.
13560         (TARGET_MACHINE_DEPENDENT_REORG): Define.
13561         * config/h8300/h8300.md (length): Subtract the length of the
13562         delay slot from (pc) when checking the range of forward branches.
13563         (delay_slot, can_delay): New attributes.
13564         (define_delay): Add bra/s handling.
13565         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
13566         (jump): Add delayed-branch handling.
13567         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
13568         * expr.c (expand_strcpy): New function.
13569         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
13570         (expand_builtin_stpcpy): Likewise.
13571         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
13572         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
13573         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
13574         handling to improve register allocation for -fno-omit-frame-pointer.
13575         (h8sx_split_movmd): Delete, moving er6 handling into...
13576         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
13577         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
13578         (movmd): Add calls to copy_rtx.
13579         (movmd_internal): In the second alternative, allow the initial and
13580         final destination registers to be different .  Update the splitter
13581         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
13582         instead of h8sx_split_movmd.
13583         (stpcpy, movsd): New expanders.
13584         (movsd_internal): New define_insn.
13585         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
13586         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
13587         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
13588         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
13589         and DESTINATION_REGS.
13590         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
13591         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
13592         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
13593         (h8300_move_ratio): Declare.
13594         (MOVE_RATIO): Use it.
13595         * config/h8300/h8300.c (h8300_move_ratio): New variable.
13596         (h8300_init_once): Initialize it.
13597         (h8300_reg_class_from_letter): New function.
13598         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
13599         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
13600         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
13601         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
13602         (movstrsi, movmd): New expanders.
13603         (movmd_internal): New insn.
13604         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
13605         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
13606         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
13607         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
13608         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
13609         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
13610         * config/h8300/h8300.c (nibble_operand): Fix warning.
13611         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
13612         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
13613         (movsf_h8300h): Disable for TARGET_H8300SX.
13614         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
13615         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
13616         h8300_stm_parallel and h8300_return_parallel.
13617         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
13618         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
13619         h8300_stm_parallel, h8300_return_parallel): New functions.
13620         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
13621         if TARGET_H8300SX.  Use h8300_push_pop.
13622         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
13623         and final pop when generating h8sx code.  Always emit some form
13624         of return insn.
13625         * config/h8300/h8300.md: Don't enforce register alignment in
13626         stm peepholes if TARGET_H8300SX.
13627         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
13628         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
13629         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
13630         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
13631         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
13632         (MULTILIB_DIRNAMES): Add a directory for it.
13633         (MULTILIB_MATCHES): Delete.
13634         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
13635         * final.c (walk_alter_subreg): Handle addresses with subregs
13636         inside a ZERO_EXTEND or AND.
13637         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
13638         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
13639         if TARGET_H8300SX.
13640         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
13641         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
13642         @(dd,Rn.w) and @(dd,ERn.L).
13643         (h8300_displacement_size): Take the whole address as argument.
13644         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
13645         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
13646         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
13647         (h8sx_mergeable_memrefs_p): Declare.
13648         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
13649         (HAVE_PRE_INCREMENT): Likewise.
13650         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
13651         addresses for TARGET_H8300SX,
13652         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
13653         and POST_DEC.
13654         (movb_length_table, movl_length_table): New tables.
13655         (movw_length_table): Define to movb_length_table.
13656         (h8300_displacement_size): New, split out from...
13657         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
13658         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
13659         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
13660         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
13661         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
13662         (compute_plussi_length, compute_plussi_cc): Update accordingly.
13663         (h8sx_unary_shift_operator): Get the mode from the operator.
13664         (binary_shift_operator): Likewise.
13665         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
13666         a memory reference, check whether the reference is offsettable.
13667         (length_table): Add movb, movw and movl.
13668         (movqi): Add new h8sx pattern.  Don't force one operand to be a
13669         register when generating h8sx code.
13670         (movhi, movsi, movsf): Likewise.
13671         (movstrictqi): Use the length_table attribute.
13672         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
13673         (addqi3): Split into a define_expand and define_insn.  Don't accept
13674         memory operands in the expander.  Use h8300_operands_match_p to
13675         check for matching operands in the define_insn.
13676         (subqi3, negqi2, one_cmplqi2): Likewise.
13677         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
13678         in any patterns that are unused in h8sx code.  In the h8sx patterns,
13679         use h8300_operands_match_p to check whether operands match.
13680         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
13681         one_cmpl[hs]i3): Likewise.
13682         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
13683         in the expander.
13684         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
13685         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
13686         (h8300_insn_length_from_table): Add a second parameter.
13687         (output_h8sx_shift): Declare.
13688         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
13689         (EXTRA_CONSTRAINT): Replace with...
13690         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
13691         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
13692         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
13693         and h8sx_binary_shift_operator.
13694         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
13695         for TARGET_H8300SX.
13696         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
13697         (bit_memory_operand, fix_bit_operand): Likewise.
13698         (h8300_length_table_for_insn): Remove.
13699         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
13700         instructions.
13701         (h8300_short_immediate_length, h8300_binary_length): New functions.
13702         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
13703         (output_plussi): Use sub to add negative constants.
13704         (compute_plussi_length): Adjust accordingly.
13705         (h8sx_single_shift_type): New enum.
13706         (h8sx_single_shift, h8sx_unary_shift_operator,
13707         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
13708         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
13709         single h8sx instruction.  Return false in this case.
13710         * config/h8300/h8300.md (length_table): Add short_immediate.
13711         (length): Pass the operand array to h8300_insn_length_from_table.
13712         (adjust_length): Assume "no" for insns with a length_table attribute.
13713         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
13714         (*addhi3_h8300hs): Don't use for h8sx.
13715         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
13716         and sub.w #xx:3.
13717         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
13718         1's predicate to nonimmediate_operand.  Only skip default expansion
13719         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
13720         for single h8sx shift instructions.
13721         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
13722         * config/h8300/h8300.c (nibble_operand): Split out of...
13723         (reg_or_nibble_operand): ... this.
13724         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
13725         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
13726         umulhisi3): Introduce expand, and introduce separate insns for
13727         sign- or zero-extended REG and already-extended CONST_INT.
13728         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
13729         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
13730         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
13731         (subhi3): Likewise.  Don't accept immediates for operand 1.
13732         Remove the early clobber from second alternative of the h8300s pattern.
13733         (subsi3): Generalize for h8sx.  Force operand 2 into a register
13734         on plain h8300 targets.
13735         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
13736         (subsi3_h8300h): Generalize for h8sx.
13737         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
13738         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
13739         * config/h8300/h8300.c (reg_or_nibble_operand): New.
13740         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
13741         (TARGET_H8300SXMUL): New.
13742         (CONST_OK_FOR_P): New.
13743         (CONST_OK_FOR_LETTER_P): Adjust.
13744         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
13745         umulhisi3): Accept 4-bit immediate on H8SX.
13746         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
13747         (udivsi3, divhi3, udivsi3, divsi3): New.
13748         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
13749         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
13750         * config/h8300/h8300.h (OK_FOR_Q): New macro.
13751         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
13752         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
13753         Add ADDRESSOF to the bit_operand entry.
13754         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
13755         (h8300_src_operand): Likewise.
13756         (bit_operand): Check nonimmediate_operand rather than general_operand.
13757         Accept any nonimmediate_operand in h8sx code.
13758         (h8300_and_costs): Initialize operands[1].
13759         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
13760         (h8300_operand_class): New enum.
13761         (h8300_length_table): New typedef.
13762         (addb_length_table, addw_length_table, addl_length_table,
13763         logicl_length_table): New tables.
13764         (logicb_length_table, logicw_length_table): New macros.
13765         (h8300_classify_operand, h8300_length_from_table,
13766         h8300_length_table_for_insn, h8300_unary_length,
13767         h8300_insn_length_from_table): New functions.
13768         (output_plussi): Only use adds and subs for register destinations.
13769         Disable redundant clause.
13770         (compute_plussi_cc): Likewise.
13771         (compute_plussi_length): Likewise.  Use h8300_length_from_table
13772         to work out the length of an insn.
13773         (output_logical_op): Only use narrower immediate instructions
13774         if the destination is a register.
13775         (compute_logical_op_cc): Likewise.
13776         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
13777         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
13778         * config/h8300/h8300.md (length_table): New attribute.
13779         (length): When an instruction has a length_table attribute, use
13780         h8300_insn_length_from_table to calculate its default length.
13781         (cmpqi): Use h8300_dst_operand for the first operand and
13782         h8300_src_operand for the second.
13783         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
13784         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
13785         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
13786         iorsi3, xorhi3, xorsi3): Likewise.
13787         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
13788         so that it allows any combination of operands for TARGET_H8300SX.
13789         (iorqi3, xorqi3): Likewise.
13790         (cmpqi): Use the length_table attribute.
13791         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
13792         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
13793         (cmpqi): Add 'Q' constraint.
13794         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
13795         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
13796         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
13797         * config/h8300/h8300.h (MASK_H8300SX): New macro.
13798         (TARGET_H8300S): True for both -ms and -msx.
13799         (TARGET_H8300SX): New macro.
13800         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
13801         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
13802         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
13803         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
13804         [Temporary change.]
13805         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
13806         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
13807         16-bit pointers and 32-bit ints.
13808         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
13809         CONST_DOUBLE with mode no wider than SImode.
13810         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
13811         output operand.
13812         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
13813         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
13814         or SUBREG thereof.
13815         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
13816         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
13817         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
13818
13819 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
13820
13821         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
13822
13823 2004-07-07  Per Bothner  <per@bothner.com>
13824
13825         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
13826
13827 2004-07-07  Mike Stump  <mrs@apple.com>
13828
13829         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
13830         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
13831         (machopic_finish): Likewise.
13832
13833 2004-07-07  Richard Henderson  <rth@redhat.com>
13834
13835         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
13836         through any value-preserving cast.
13837
13838 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
13839
13840         * function.c (assign_parm_find_data_types): Call
13841         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
13842
13843 2004-07-07  Steven Bosscher  <stevenb@suse.de>
13844
13845         * tree-cfg.c (group_case_labels): Remove case labels that have
13846         the same target as the default case.
13847
13848 2004-07-07  Steven Bosscher  <stevenb@suse.de>
13849
13850         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
13851         regardless of DECL_LANG_SPECIFIC being present or not.
13852         * tree.h (DECL_NUM_STMTS): Purge.
13853
13854 2004-07-07  Andrew Pinski  <apinski@apple.com>
13855
13856         * configure: Regenerate with the right autoconf.
13857
13858 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
13859
13860         * ifcvt.c (total_bb_rtx_cost): New function.
13861         (find_if_case_1): Compare rtx_cost of basic block to cost of
13862         BRANCH_COST insns.
13863         (find_if_case_2): Same.
13864
13865 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13866
13867         PR target/10567
13868         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
13869         (output_return): Likewise.
13870         (output_sibcall): Abort if !flag_delayed_branch.
13871         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
13872         (emit_and_preserve): New function.
13873         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
13874         indirect jump to the thunked-to function if !flag_delayed_branch.
13875         * config/sparc/sparc.md (delayed_branch): New attribute.
13876         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
13877         attribute to compute the length of the insn.
13878         (goto_handler_and_restore): Likewise.
13879
13880 2004-07-07  Andrew Pinski  <apinski@apple.com>
13881
13882         PR tree-optimization/15777
13883         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
13884
13885         * expr.c (expand_expr_real_1): Fix formating.
13886         BUFFER_REF and IN_EXPR are dead.
13887         * fold-const.c (non_lvalue): BUFFER_REF is dead.
13888         * tree-inline.c (estimate_num_insns_1): Likewise.
13889         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
13890         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
13891         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
13892
13893 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
13894
13895         * collect2.c (dump_file): Don't call cplus_demangle if
13896         HAVE_LD_DEMANGLE is defined.
13897         (main): Pass "--demangle" to ld if no_demangle is not 0 and
13898         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
13899         if HAVE_LD_DEMANGLE is defined.
13900
13901         * configure.ac (--with-demangler-in-ld): Added
13902         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
13903         --with-demangler-in-ld is used.
13904         * config.in: Regenerated.
13905         * configure: Likewise.
13906
13907 2004-07-07  Roger Sayle  <roger@eyesopen.com>
13908
13909         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
13910         for simple floating point operations "fp", double precision
13911         multiplication "dmul", and single and double precision division
13912         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
13913         (ppc630_cost): New table split from ppc620_cost, to distinguish
13914         differences in floating point latencies.
13915         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
13916         (rs6000_rtx_costs): Add support for single and double precision
13917         floating point addition, subtraction, multiplication, division,
13918         fused-multiply-add, fused-multiply-sub, negation, absolute value
13919         and negative absolute value.  Tweak MEM case to use prefered idiom.
13920
13921 2004-07-07  Richard Henderson  <rth@redhat.com>
13922
13923         * tree-flow-inline.h (may_propagate_copy): Move...
13924         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
13925         attempt to copy between types requiring conversion.
13926         * tree-flow.h (may_propagate_copy): Update decl.
13927         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
13928
13929 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
13930
13931         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
13932         from -mtune= option.
13933
13934 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
13935
13936         * builtins.c: Rename movstr*, except for movstrict*, to
13937         movmem* and clrstr* to clrmem*.
13938         * expr.c: Likewise.
13939         * expr.h: Likewise.
13940         * genopinit.c: Likewise.
13941         * integrate.c: Likewise.
13942         * local-alloc.c: Likewise.
13943         * optabs.c: Likewise.
13944         * optabs.h: Likewise.
13945         * config/alpha/alpha.h: Likewise.
13946         * config/alpha/alpha.md: Likewise.
13947         * config/arm/arm-protos.h: Likewise.
13948         * config/arm/arm.c: Likewise.
13949         * config/arm/arm.md: Likewise.
13950         * config/avr/avr.md: Likewise.
13951         * config/c4x/c4x.c: Likewise.
13952         * config/c4x/c4x.md: Likewise.
13953         * config/frv/frv.md: Likewise.
13954         * config/i386/i386-protos.h: Likewise.
13955         * config/i386/i386.c: Likewise.
13956         * config/i386/i386.h: Likewise.
13957         * config/i386/i386.md: Likewise.
13958         * config/i860/i860.c: Likewise.
13959         * config/i860/i860.md: Likewise.
13960         * config/ip2k/ip2k.md: Likewise.
13961         * config/ip2k/libgcc.S: Likewise.
13962         * config/ip2k/t-ip2k: Likewise.
13963         * config/m32r/m32r.c: Likewise.
13964         * config/m32r/m32r.md: Likewise.
13965         * config/mcore/mcore.md: Likewise.
13966         * config/mips/mips.c: Likewise.
13967         * config/mips/mips.md: Likewise.
13968         * config/ns32k/ns32k.c: Likewise.
13969         * config/ns32k/ns32k.h: Likewise.
13970         * config/ns32k/ns32k.md: Likewise.
13971         * config/pa/pa.c: Likewise.
13972         * config/pa/pa.md: Likewise.
13973         * config/pdp11/pdp11.h: Likewise.
13974         * config/pdp11/pdp11.md: Likewise.
13975         * config/rs6000/rs6000.c: Likewise.
13976         * config/rs6000/rs6000.md: Likewise.
13977         * config/s390/s390-protos.h: Likewise.
13978         * config/s390/s390.c: Likewise.
13979         * config/s390/s390.md: Likewise.
13980         * config/sh/lib1funcs.asm: Likewise.
13981         * config/sh/sh.c: Likewise.
13982         * config/sh/sh.md: Likewise.
13983         * config/sh/t-sh: Likewise.
13984         * config/sparc/sparc.h: Likewise.
13985         * config/vax/vax.md: Likewise.
13986         * config/xtensa/xtensa.c: Likewise.
13987         * config/xtensa/xtensa.md: Likewise.
13988         * doc/invoke.texi: Likewise.
13989         * doc/md.texi: Likewise.
13990         * doc/rtl.texi: Likewise.
13991
13992 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
13993
13994         PR target/16407
13995         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
13996         * config/mips/mips.c (mips_declare_common_object): New function,
13997         mostly split out from...
13998         (mips_output_aligned_decl_common): ...here.
13999         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
14000         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
14001         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
14002         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
14003
14004 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14005
14006         PR c/16392
14007         * function.c (assign_parms): Fix typo from previous change.
14008
14009 2004-07-07  Jason Merrill  <jason@redhat.com>
14010
14011         PR c++/15815
14012         * doc/extend.texi (C++ Interface): Correct information and
14013         discourage use.
14014
14015 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
14016
14017         PR target/16130
14018         PR target/16142
14019         PR target/16143
14020         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
14021         insn.
14022
14023 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
14024
14025         PR target/1679.
14026         * config/m32r/m32r.c (m32r_function_symbol): New function:
14027         Generate a symbol name RTX with the correct m32r specific flags
14028         set.
14029         (block_move_call): Use new function to generate correct symbol.
14030         * config/m32r/m32r-protos.h: Add prototype for new funcion.
14031         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
14032         function.
14033
14034 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
14035
14036         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
14037         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
14038         TYPE_BINFO_BASETYPE): Remove.
14039         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
14040         to ...
14041         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
14042         here.
14043         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
14044         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
14045         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
14046         (struct tree_binfo): Rename base_types to base_binfos.
14047         * alias.c (record_component_aliases): Adjust BINFO macros.
14048         * dbxout.c (dbxout_type): Likewise.
14049         * dwarf2out.c (gen_member_die): Likewise.
14050         * sdbout.c (sdbout_one_type): Likewise.
14051         * tree-dump.c (deque_and_dump): Likewise.
14052         * config/i386/i386.c (classify_argument,
14053         contains_128bit_aligned_vector_p): Likewise.
14054
14055 2004-07-07  Nick Clifton  <nickc@redhat.com>
14056
14057         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
14058         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
14059
14060 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
14061
14062         * vec.h: Fix the example use.
14063
14064 2004-07-06  Richard Henderson  <rth@redhat.com>
14065
14066         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
14067         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
14068         * tree-inline.c (copy_body_r, setup_one_parameter,
14069         initialize_inlined_parameters, expand_call_inline,
14070         declare_inline_vars): Don't check it.
14071         (expand_calls_inline): Remove old version, rename new version
14072         from gimple_expand_calls_inline.
14073         * tree-optimize.c (execute_gimple): Remove.
14074         (pass_gimple): Don't run anything.
14075
14076 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
14077
14078         * doc/sourcebuild.texi: Use semicolons instead of commas in
14079         section title.
14080
14081 2004-07-06  Richard Henderson  <rth@redhat.com>
14082
14083         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
14084         (sra_walk_modify_expr, scan_init): Likewise.
14085         (generate_element_zero): Check visited before scanning children.
14086         (generate_element_init): Set visited on error.
14087         (scalarize_init): Handle generate_element_init failure similar
14088         to use_block_copy.
14089
14090 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
14091
14092         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
14093         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
14094
14095 2004-07-06  Richard Henderson  <rth@redhat.com>
14096
14097         * config/i386/i386.c (legitimize_pic_address): Make static.
14098         (legitimize_address): Handle CONST with TLS operand.
14099         (ix86_expand_move): Don't call legitimize_pic_address directly.
14100         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
14101
14102 2004-07-06  Roger Sayle  <roger@eyesopen.com>
14103
14104         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
14105         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
14106         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
14107         is currently executed unconditionally, i.e. not in "else_bb".
14108
14109 2004-07-06  Steven Bosscher  <stevenb@suse.de>
14110
14111         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
14112         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14113         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
14114         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14115         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
14116         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14117         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
14118         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14119         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
14120         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14121         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
14122         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14123         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
14124         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14125         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
14126         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
14127
14128 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
14129
14130         * dojump.c (do_jump): REFERENCE_EXPR is dead.
14131         * expr.c (expand_expr_real_1): Ditto.
14132         * tree-inline.c (estimate_num_insns_1): Ditto.
14133         * tree-pretty-print.c (dump_generic_node): Ditto.
14134         (op_symbol): Ditto.
14135         * tree.def: Ditto.
14136
14137 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
14138
14139         * tree-ssa-pre.c (reference_node_pool): New pool.
14140         (find_or_generate_expression): Class 'r' is okay too.
14141         (create_value_expr_from): Ditto.
14142         (add_to_sets): LHS should not include vuses.
14143         (eliminate): Ditto.
14144         (compute_avail): Reverse ordering of tests.
14145         Valuize INDIRECT_REF as well.
14146
14147 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
14148
14149         PR rtl-optimization/16380
14150         * loop.c (check_dbra_loop): Sink comparison instructions if they
14151         do something other than set cc0.
14152
14153 2004-07-06  James E Wilson  <wilson@specifixinc.com>
14154
14155         * doc/interface.texi (longjmp and automatic variables): Delete
14156         paragraph recommending taking the address of a variable.
14157
14158 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14159
14160         * vec.h (VEC_embedded_alloc): Remove.
14161         (VEC_embedded_size, VEC_embedded_init): New.
14162         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
14163         MEM_STAT_INFO.
14164         (VEC_truncate): New.
14165         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
14166         (vec_embedded_alloc): Remove.
14167         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
14168         (vec_embedded_alloc): Remove.
14169
14170 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
14171
14172         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
14173         (gt-langhooks.h): Remove.
14174
14175 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
14176
14177         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
14178
14179 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
14180
14181         * config/sparc/sparc.c (get_pc_symbol): Rename into
14182         add_pc_to_pic_symbol.
14183         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
14184         (load_pic_register): Account for previous changes.
14185         Use reg_names.  Don't create the label twice.
14186         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
14187         UNSPEC_LOAD_PCREL_SYM.
14188         (get_pc): Rename into load_pcrel_sym.  Add predicate to
14189         operands.  Remove condition.
14190
14191 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14192
14193         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
14194         RECORD, UNION & QUAL_UNION is actually a binfo.
14195
14196         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
14197         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
14198         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
14199         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
14200         * dwarf2out.c (add_data_member_location_attribute): Likewise.
14201         (gen_inheritance_die): Likewise.
14202         * tree-dump.c (deque_and_dump): Likewise.
14203         * doc/c-tree.texi (Binfos): Add under reconstruction note.
14204
14205 2004-07-06  Steven Bosscher  <stevenb@suse.de>
14206
14207         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
14208         Define.
14209         * config/mcore/mcore.md: Model memory latency with a simple DFA
14210         pipeline description instead of a define_function_unit.
14211
14212 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14213
14214         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
14215         * langhooks.h (var_mod_type_p): Likewise.
14216         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
14217         * expr.c (count_type_elements): Properly handle return from
14218         array_type_nelts and properly test for overflow.
14219         * gimplify.c (gimplify_init_constructor): Properly handle return
14220         from array_type_nelts.
14221         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
14222         * integrate.c (copy_decl_for_inlining): Correct comments.
14223         * tree-inline.c (remap_decl): Update comments, remove dead code,
14224         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
14225         (remap_type): Only remap if variably modified by vars in function
14226         being inlined.
14227         (copy_body_r): Use compatible_type langhooks to see when can fold.
14228         (setup_one_parameter): Don't remap type.
14229         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
14230         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
14231         compute TREE_INVARIANT for decl case.
14232         (find_var_from_fn): New function.
14233         (variably_modified_type_p): Add arg and call new function.
14234         * tree.h (variably_modified_type_p): Add extra arg.
14235
14236 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
14237
14238         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
14239         (goto_handler_and_restore_v9): Delete disabled insn.
14240         (goto_handler_and_restore_v9_sp64): Likewise.
14241
14242 2004-07-05  Roger Sayle  <roger@eyesopen.com>
14243
14244         * calls.c (load_register_parameters): Call expand_shift instead
14245         of expand_binop with ashl_optab (or other shift optab) directly.
14246         * expr.c (emit_group_load, emit_group_store): Likewise.
14247         * function.c (assign_parm_setup_block): Likewise.
14248         * stmt.c (shift_return_value): Likewise.
14249
14250 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
14251
14252         * expr.c (expand_assignment): Disable the bitfield += optimizations.
14253
14254 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
14255
14256         * doc/sourcebuild.texi: Revert previous patch.
14257
14258 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
14259
14260         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
14261         TARGET_MEM_FUNCTIONS.
14262         * system.h: Poison TARGET_MEM_FUNCTIONS.
14263         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
14264         bcmp_libfunc, bzero_libfunc): Remove.
14265         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
14266         bzero_libfunc.
14267         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
14268         * doc/standards.texi: Don't mention calling BSD string functions.
14269         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
14270         * config/vax/t-memfuncs: New.
14271         * config/memcmp.c, config/memcpy.c, config/memmove.c,
14272         config/memset.c: New.
14273         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
14274         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
14275         vax/t-memfuncs.
14276         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
14277         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
14278         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
14279         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
14280         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
14281         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
14282         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
14283         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
14284         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
14285         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
14286
14287 2004-07-05  Richard Henderson  <rth@redhat.com>
14288
14289         * function.c (assign_parm_setup_reg): Properly rename variables in
14290         FUNCTION_ARG_CALLEE_COPIES section.
14291
14292 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
14293
14294         * tree-mudflap.c: Include cgraph.h.
14295         (mf_init_extern_trees): Rename to mudflap_init.  Export.
14296         Rewrite to create synthetic declarations instead of looking
14297         up declarations from mf-runtime.h.
14298         (mf_make_builtin, mf_make_cache_struct_type): New functions.
14299         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
14300         Correct commentary.
14301         (execute_mudflap_function_decls, mudflap_register_call):
14302         Don't call mf_init_extern_trees.
14303         (mudflap_finish_file): Use cgraph_build_static_cdtor.
14304
14305         * tree-mudflap.h: Update prototypes.
14306         * c-mudflap.c: Delete file.
14307         * c-common.c: Include tree-mudflap.h.
14308         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
14309         * Makefile.in: Remove all references to c-mudflap.o.
14310         Update dependencies.
14311
14312 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14313
14314         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
14315         displacements with the spatial-locality cache-control completer.
14316
14317 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
14318
14319         * langhooks.c: Don't include gt-langhooks.h.
14320         (var_labelno): Delete.
14321         (lhd_set_decl_assembler_name): Do not append a distinguishing
14322         number to file-scope internal-linkage declarations for the first
14323         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
14324         the declaration itself (if at block scope), or its containing
14325         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
14326         number.
14327
14328         * opts.c (cur_in_fname): New global.
14329         * opts.h: Declare it.
14330         * tree.c: Include opts.h.
14331         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
14332         DECL_UID equal to cur_in_fname.
14333         (copy_node_stat): Do not change DECL_UID when copying a
14334         TRANSLATION_UNIT_DECL.
14335         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
14336         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
14337
14338         * c-decl.c (c_static_assembler_name): Delete.
14339         * c-tree.h (c_static_assembler_name): Delete prototype.
14340         * c-lang.c, objc/objc-lang.c: Don't override
14341         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
14342
14343         * Makefile.in (tree.o): Update dependencies.
14344         (GTFILES): Remove langhooks.c.
14345
14346 2004-07-05  Roger Sayle  <roger@eyesopen.com>
14347
14348         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
14349         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
14350         Normalize "X % C" as "X % -C" for signed modulus and negative C.
14351         Optimize "X % -Y" as "X % Y" for signed modulus.
14352         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
14353         into "((unsigned) X % Y) == 0".
14354
14355 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
14356
14357         * sourcebuild.texi (Config Fragments): Use @comma{} in
14358         cross-reference to section title.
14359
14360 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14361
14362         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
14363         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
14364         (gimplify_target_expr, gimplify_expr): Likewise.
14365         (copy_if_shared_r): No longer need special case for BIND_EXPR.
14366         (unshare_body, unvisit_body): Only look at nested if BODY_P is
14367         whole function.
14368         (gimplify_compound_lval): See if we can strip any useless conversion.
14369         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
14370         from RHS, not LHS.
14371         (gimplify_modify_expr_to_memset): Likewise.
14372         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
14373         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
14374         (declare_inline_vars): Likewise.
14375         (walk_type_fields): New function.
14376         (walk_tree): Use it.
14377         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
14378
14379         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
14380         (sra_walk_modify_expr): Allow init function to fail.
14381         (scan_init): Now returns bool.
14382         (generate_element_init): If can't understand INIT, return false.
14383         (scalarize_init): Return false if generate_element_init does.
14384
14385         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
14386         print bounds.
14387
14388         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
14389         bounds if bounds aren't constant.
14390
14391         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
14392
14393         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
14394         to type hooks; remove bogus PARAMS.
14395
14396 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
14397
14398         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
14399         * dwarf2out.c (add_data_member_location_attribute): Check for
14400         TREE_BINFO.
14401         * tree.c (tree_node_kinds): Add "binfos".
14402         (binfo_lang_slots): New.
14403         (make_node_stat): Add TREE_BINFO.
14404         (make_tree_binfo_stat): New.
14405         (tree_node_structure): Add TREE_BINFO.
14406         * tree.def (TREE_BINFO): New.
14407         * tree.h (REC_OR_UNION_CHECK): Rename to ...
14408         (RECORD_OR_UNION_CHECK): ... here.
14409         (NOT_RECORD_OR_UNION_CHECK): New.
14410         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
14411         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
14412         RECORD_OR_UNION_CHECK.
14413         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
14414         (TYPE_LANG_SLOT_1): New.
14415         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
14416         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
14417         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
14418         (BINFO_ELTS): Remove.
14419         (BINFO_LANG_SLOT): New.
14420         (struct tree_binfo): New.
14421         (binfo_lang_slots): Declare.
14422         (enum tree_node_structure_enum): Add TS_BINFO.
14423         (union tree_node): Add binfo.
14424         (make_tree_binfo_stat): Declare.
14425         (make_tree_binfo): New.
14426         (enum tree_node_kind): Add binfo_kind.
14427
14428         * objc/objc-act.c (start_class, objc_declare_protocols,
14429         start_protocols): Use TYPE_LANG_SLOT_1.
14430         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
14431         to ...
14432         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
14433         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
14434         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
14435         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
14436
14437 2004-07-05  Steven Bosscher  <stevenb@suse.de>
14438
14439         * rtl.h (struct rtx_def): Remove the integrated flag.
14440         Use the return_val flag for MEM_SCALAR_P.
14441         Reshuffle and update flags in CLEAR_RTX_FLAGS.
14442
14443 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
14444
14445         PR target/16357
14446         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
14447         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
14448         move_by_pieces.
14449
14450 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
14451
14452         * var-tracking.c: Fix some comments.
14453         (frame_stack_adjust): New.
14454         (vt_stack_adjustments): Init stack_adjust of entry block to
14455         minus stack adjustment of function prologue.
14456         (adjust_stack_reference): Do not adjust if adjustment == 0.
14457         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
14458         (emit_notes_in_bb): Likewise.
14459         (vt_add_function_parameters): Do not adjust locations of
14460         function arguments.
14461         (vt_initialize): Compute the stack adjustment of function
14462         prologue and offset the initial "location" of frame_base_decl
14463         from the stack pointer after prologue.
14464
14465 2004-07-04  Richard Henderson  <rth@redhat.com>
14466
14467         * function.c (struct assign_parm_data_all): New.
14468         (struct assign_parm_data_one): New.
14469         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
14470         assign_parm_find_data_types, assign_parms_setup_varargs,
14471         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
14472         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
14473         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
14474         assign_parm_setup_block, assign_parm_setup_reg,
14475         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
14476         (assign_parms): ... here.
14477
14478 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
14479
14480         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
14481         now are bitmap_set_t's.
14482         (bitmap_insert_into_set): No point in inserting the value if
14483         it's invariant.
14484         (bitmap_set_contains): New function.
14485         (bitmap_set_replace_value): Add comment on why we do it
14486         this way.
14487         (set_contains): Removed.
14488         (bitmap_set_subtract_from_value_set): New name of
14489         set_subtract now that it's arguments are two different
14490         types of sets.
14491         Update callers.
14492         (bitmap_find_leader): Change algorithm used.
14493         (find_or_generate_expression): Update use of functions for new
14494         bitmap sets.
14495         (create_expression_by_pieces): Ditto.
14496         (insert_aux): Ditto.
14497         (insert): Ditto.
14498         (add_to_sets): Ditto.
14499         (init_pre): Ditto.
14500         (execute_pre): Ditto.
14501         (compute_avail): Ditto.
14502         Also ignore virtual phis.
14503
14504 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
14505
14506         * combine.c (simplify_comparison): Fix comment typo.
14507
14508 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
14509
14510         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
14511         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
14512         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
14513         (output_restore): Change parameter from 'insn' to 'pat'.
14514         (output_return): Adjust call to output_restore.
14515         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
14516         Adjust call to output_restore.
14517
14518 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
14519
14520         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
14521         and assert system is bsd.
14522
14523 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
14524
14525         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
14526         (TARGET_SWITCHES): Remove -mdebugc.
14527         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
14528         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
14529         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
14530         (sle_[sd]i_reg): Delete.
14531
14532 2004-07-04  Steven Bosscher  <stevenb@suse.de>
14533
14534         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
14535         Define.
14536         * config/iq2000/iq2000.md: Translate old pipeline description to an
14537         equivalent new one.
14538
14539 2004-07-04  Roger Sayle  <roger@eyesopen.com>
14540
14541         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
14542         Ensure the replacement rhs is valid gimple before performing
14543         the substitution.  Return false if these sanity checks fail.
14544         (fold_stmt): Only set changed to true, if set_rhs returns true.
14545         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
14546         succeeds.
14547
14548 2004-07-04  Richard Henderson  <rth@redhat.com>
14549
14550         PR c/16348
14551         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
14552
14553 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
14554
14555         * configure.ac (ranlib_flags): New variable.
14556         * Makefile.in (RANLIB_FLAGS): New variable.
14557         (libbackend.a): Use it.
14558         * configure: Regenerated.
14559
14560 2004-07-04  Roger Sayle  <roger@eyesopen.com>
14561
14562         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
14563         a "sign mask" instead of using ashr_optab directly.
14564
14565 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
14566
14567         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
14568         * doc/cppopts.texi: Clarify processing of command-line defines.
14569
14570 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
14571
14572         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
14573
14574 2004-07-04  Richard Henderson  <rth@redhat.com>
14575
14576         * rtl.def (ADDRESSOF): Remove.
14577         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
14578         (find_base_term, memrefs_conflict_p): Likewise.
14579         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
14580         (fold_rtx, cse_insn, set_live_p): Likewise.
14581         * dwarf2out.c (mem_loc_descriptor): Likewise.
14582         (add_location_or_const_value_attribute): Likewise.
14583         * emit-rtl.c (copy_insn_1): Likewise.
14584         * explow.c (memory_address): Likewise.
14585         * expmed.c (store_split_bit_field): Likewise.
14586         * expr.c (expand_expr_real_1): Likewise.
14587         * function.c (instantiate_decl
14588         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
14589         * genrecog.c (preds, validate_pattern): Likewise.
14590         * integrate.c (copy_rtx_and_substitute): Likewise.
14591         * recog.c (general_operand, register_operand): Likewise.
14592         (memory_address_p): Likwise.
14593         * reload1.c (eliminate_regs, elimination_effects): Likewise.
14594         * rtl.c (copy_rtx): Likewise.
14595         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
14596         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
14597         * rtlhooks.c (gen_lowpart_general): Likewise.
14598         * stmt.c (expand_asm_operands): Likewise.
14599         * web.c (entry_register, replace_ref, web_main): Likewise.
14600         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
14601         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
14602         * config/arm/arm.c (thumb_rtx_costs): Likewise.
14603         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
14604         * config/frv/frv.c (move_destination_operand, move_source_operand,
14605         condexec_dest_operand, condexec_source_operand,
14606         condexec_memory_operand): Likewise.
14607         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
14608         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
14609         (destination_xfmode_operand): Likewise.
14610         * config/mips/mips.h (PREDICATE_CODES): Likewise.
14611         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
14612         * config/s390/s390.c (general_s_operand): Likewise.
14613         * config/s390/s390.md (mov*): Likewise.
14614         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
14615
14616         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
14617         * expr.c (expand_expr_real_1): Likewise.
14618         * stmt.c (expand_decl): Likewise.
14619         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
14620
14621         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
14622         postponed_insns, put_var_into_stack, put_reg_into_stack,
14623         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
14624         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
14625         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
14626         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
14627         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
14628         purge_bitfield_addressof_replacements, purge_addressof_replacements,
14629         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
14630         struct insns_for_mem_walk_info, insns_for_mem_walk,
14631         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
14632         setjmp_protect_args): Remove.
14633         (push_function_context_to): Don't handle var_refs_queue.
14634         (pop_function_context_from, free_after_compilation): Likewise.
14635         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
14636         (assign_parms, allocate_struct_function): Likewise.
14637         (use_register_for_decl): New.
14638         (expand_function_end): Don't setjmp_protect.
14639         * function.h (struct emit_status): Update commentary.
14640         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
14641         (max_parm_reg, parm_reg_stack_loc): Remove.
14642         * passes.c (DFI_addressof): Remove.
14643         (dump_file_info): Remove addressof.
14644         (rest_of_handle_addressof): Remove.
14645         (rest_of_compilation): Don't call it.
14646         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
14647         * stmt.c (expand_decl): Use use_register_for_decl.
14648         * tree.h: Update decls.
14649         * web.c (mark_addressof): Remove.
14650         * doc/invoke.texi (-dF): Remove.
14651
14652 2004-07-03  Richard Henderson  <rth@redhat.com>
14653
14654         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
14655         instead of gen_mem_addressof.
14656         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
14657         TImode output register.
14658
14659 2004-07-03  Richard Henderson  <rth@redhat.com>
14660
14661         PR tree-optimization/16341
14662         * tree-sra.c (sra_walk_function): Increment to next stmt before
14663         processing the current stmt.
14664         (sra_insert_after): Always use BSI_SAME_STMT.
14665
14666 2004-07-03  Richard Henderson  <rth@redhat.com>
14667
14668         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
14669         fp plus with minus.
14670
14671 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
14672
14673         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
14674         with tree_int_cst_equal.
14675
14676 2004-07-03  Andreas Schwab  <schwab@suse.de>
14677
14678         * config/ia64/ia64.md: Define new attribute "empty".
14679         (prologue_use, nop_x, insn_group_barrier): Set it.
14680
14681         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
14682         skip over "empty" insns.
14683
14684 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14685
14686         * tree-inline.c (initialize_inlined_parameters): Pass proper function
14687         context to gimplify_body.
14688         (walk_tree): Don't walk into types twice.
14689         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
14690
14691         * tree-sra.c (generate_element_init): Remove any useless conversions.
14692
14693         * gimplify.c (gimplify_conversion): Remove stripping useless
14694         conversions from here.
14695         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
14696         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
14697         Unshare before substituting PLACEHOLDER_EXPR.
14698         (gimplify_modify_expr_to_memset): Likewise.
14699         Pass address of TO to memset, not TO itself.
14700         (gimplify_init_constructor): Make copy of OBJECT so we have it each
14701         time we make an expression (to match a PLACEHOLDER_EXPR).
14702
14703         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
14704         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
14705         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
14706         * tree-ssa-dom.c (local_fold): Likewise.
14707
14708         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
14709         * langhooks.h (strct lang_hooks): New field type_max_size.
14710         * function.c (assign_temp): Call it.
14711
14712 2004-07-03  Steven Bosscher  <stevenb@suse.de>
14713
14714         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
14715         * config/sh/sh.md: Convert the SH1 pipeline description to
14716         a DFA model.
14717
14718 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
14719
14720         * c-decl.c (struct c_binding): Remove contour field; add
14721         depth, invisible, nested fields.
14722         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
14723         (B_IN_EXTERNAL_SCOPE): New convenience macros.
14724         (bind): Add invisible and nested arguments. Initialize
14725         new fields of struct c_binding; adjust loop scanning for
14726         insertion point.
14727         (free_binding_and_advance): Clear structure with memset.
14728         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
14729         in file scope, even if it's in external scope too.
14730         (pushdecl): Adjust to match.  Create invisible file-scope
14731         declarations for block-scope forward declarations of static functions.
14732         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
14733         (undeclared_variable, lookup_label, declare_label, define_label)
14734         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
14735         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
14736         (store_parm_decls_oldstyle): Adjust to match.
14737         (diagnose_mismatched_decls): Correct handling of linkage clashes.
14738         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
14739
14740         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
14741         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
14742
14743 2004-07-02  Richard Henderson  <rth@redhat.com>
14744
14745         * c-decl.c (grokdeclarator): Don't frob current_function_decl
14746         around variable_size.
14747         (set_decl_nonlocal): Remove.
14748         (store_parm_decls): Add stmts for pending sizes.
14749         * calls.c (calls_function, calls_function_1): Remove.
14750         (precompute_arguments): Don't call it.
14751         * cfgexpand.c (set_save_expr_context): Remove.
14752         (tree_expand_cfg): Don't call it.
14753         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
14754         (dwarf2out_finish): Likewise.
14755         * expr.c (emit_block_move): Adjust addresses to BLKmode.
14756         (store_constructor): Don't pre-evaluate SAVE_EXPR.
14757         (safe_from_p): Don't queue SAVE_EXPRs.
14758         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
14759         or build plain VAR_DECLs.
14760         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
14761         (fold): Likewise.
14762         (fold_checksum_tree): Don't special-case SAVE_EXPR.
14763         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
14764         (put_var_into_stack): Don't handle SAVE_EXPR.
14765         (gen_mem_addressof): Likewise.
14766         * function.h (struct function): Remove x_save_expr_regs.
14767         (save_expr_regs): Remove.
14768         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
14769         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
14770         * stor-layout.c (variable_size): Don't set it.
14771         (force_type_save_exprs, force_type_save_exprs_1): Remove.
14772         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
14773         all callers.  Don't set SAVE_EXPR_CONTEXT.
14774         * tree-inline.h (remap_save_expr): Update decl.
14775         * tree.c (save_expr): Update build size.
14776         (first_rtl_op): Don't handle SAVE_EXPR.
14777         (unsave_expr_1, contains_placeholder_p): Likewise.
14778         (decl_function_context): Likewise.
14779         * tree.def (SAVE_EXPR): Remove args 1 and 2.
14780         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
14781         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
14782
14783 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
14784
14785         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
14786         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
14787         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
14788         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
14789         some first-person references and patronizing comments.  Based on
14790         printed manual.
14791         * doc/invoke.texi: Don't reference fortran@gnu.org.
14792         * doc/trouble.texi (Warning when a non-void function value is
14793         ignored): Rewrite.  From Russ Allbery and Chris Devers.
14794
14795 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
14796
14797         * tree-ssa-pre.c (bitmap_set_t): New.
14798         (bb_value_sets): avail_out is now a bitmap_set_t.
14799         (bitmap_find_leader): New function.
14800         (bitmap_value_insert_into_set): Ditto.
14801         (bitmap_set_copy): Ditto.
14802         (bitmap_value_replace_in_set): Ditto.
14803         (bitmap_set_contains_value): Ditto.
14804         (bitmap_set_new): Ditto.
14805         (bitmap_set_pool): New pool.
14806         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
14807         (insert_aux): Ditto.
14808         (add_to_sets): Ditto.
14809         (compute_avail): Ditto
14810         (eliminate): Ditto.
14811         (init_pre): Ditto.
14812         (fini_pre): Ditto.
14813         (execute_pre): Ditto.
14814
14815 2004-07-02  Roger Sayle  <roger@eyesopen.com>
14816
14817         * config/rs6000/rs6000.c (struct processor_costs): New structure
14818         used to hold instruction latencies/sizes for processor types.
14819         (rs6000_cost): New global variable pointing to current CPU's costs.
14820         (rs6000_override_options): Initialize rs6000_cost to point to the
14821         appropriate cost table based upon rs6000_cpu and optimize_size.
14822         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
14823         timings inline.
14824
14825 2004-07-02  Richard Henderson  <rth@redhat.com>
14826
14827         * expmed.c (make_tree): Don't use SET_DECL_RTL.
14828
14829 2004-07-02  Steven Bosscher  <stevenb@suse.de>
14830
14831         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
14832
14833 2004-07-01  Richard Henderson  <rth@redhat.com>
14834
14835         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
14836         (alpha_gp_save_rtx): Use assign_stack_local instead of
14837         gen_mem_addressof.
14838
14839 2004-07-01  Richard Henderson  <rth@redhat.com>
14840
14841         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
14842         (alpha_rtx_cost_data): Update to match.
14843         (alpha_rtx_cost_size): New.
14844         (alpha_rtx_costs): Honor optimize_size.
14845
14846 2004-07-01  Richard Henderson  <rth@redhat.com>
14847
14848         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
14849         * cfgexpand.c (tree_expand_cfg): Do it here.
14850         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
14851         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
14852         * config/mips/mips.c (mips_output_mi_thunk): And here.
14853         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
14854         * config/sh/sh.c (sh_output_mi_thunk): And here.
14855         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
14856
14857 2004-07-01  Richard Henderson  <rth@redhat.com>
14858
14859         * tree.def (RTL_EXPR): Remove.
14860         * c-typeck.c (lvalue_p): Don't handle it.
14861         * expr.c (safe_from_p): Likewise.
14862         (expand_expr_real_1): Likewise.
14863         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
14864         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
14865         * gengtype.c (adjust_field_tree_exp): Likewise.
14866         * stmt.c (warn_if_unused_value): Likewise.
14867         * tree-gimple.c (recalculate_side_effects): Likewise.
14868         * tree-pretty-print.c (dump_generic_node): Likewise.
14869         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
14870         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
14871         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
14872
14873         * stmt.c (struct stmt_status): Remove x_last_expr_type,
14874         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
14875         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
14876         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
14877         all the bits that tracked last_expr.
14878         (expand_end_bindings): Don't track last_expr.
14879         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
14880         (clear_last_expr): Remove.
14881         (expand_asm): Don't call it.
14882         (expand_asm_operands, expand_end_cond): Likewise.
14883         (expand_naked_return, expand_null_return_1): Likewise.
14884         * c-typeck.c (c_begin_compound_stmt): Likewise.
14885         * cfgexpand.c (expand_block): Use expand_expr_stmt.
14886         * expr.c (expand_expr_real_1): Likewise.
14887         * tree.h: Update prototypes.
14888
14889         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
14890         (struct emit_status): Remove sequence_rtl_expr.
14891         (struct function): Remove x_rtl_expr_chain.
14892         (seq_rtl_expr, rtl_expr_chain): Remove.
14893         * function.c (struct temp_slot): Remove rtl_expr.
14894         (assign_stack_temp_for_type): Don't set it.
14895         (free_temp_slots, pop_temp_slots): Don't check it.
14896         (free_after_compilation): Don't clear x_rtl_expr_chain.
14897         (fixup_var_refs): Don't search it.
14898         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
14899         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
14900         or seq_rtl_expr.
14901         (push_topmost_sequence): Likewise.
14902         (end_sequence, init_emit): Likewise.
14903         (start_sequence_for_rtl_expr): Remove.
14904         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
14905         * rtl.h (preserve_rtl_expr_result): Remove.
14906
14907 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14908
14909         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
14910         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
14911         typos.
14912
14913 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
14914
14915         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
14916         (STANDARD_STARTFILE_PREFIX_2): Define.
14917         (standard_startfile_prefix_1): Initialize to
14918         STANDARD_STARTFILE_PREFIX_1.
14919         (standard_startfile_prefix_2): Initialize to
14920         STANDARD_STARTFILE_PREFIX_2.
14921         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
14922         (STANDARD_STARTFILE_PREFIX_1): Define.
14923         (STANDARD_STARTFILE_PREFIX_2): Define.
14924         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
14925         (STANDARD_STARTFILE_PREFIX_2): Document.
14926
14927 2004-07-01  Richard Henderson  <rth@redhat.com>
14928
14929         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
14930         in order to disable scalarization.  Instead set a flag and wait
14931         for a candidate decl.
14932
14933 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
14934
14935         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
14936         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
14937         Use terminology "testsuite" and "enumerated".
14938
14939 2004-07-01  Richard Henderson  <rth@redhat.com>
14940
14941         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
14942         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
14943         (initial_return_save): Likewise.
14944         (flush_queued_reg_saves): Remap register numbers.
14945         (dwarf2out_return_reg): Likewise.
14946
14947 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14948
14949         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
14950
14951         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
14952         access functions for lower bound and element size and only output
14953         if lower bound nonzero or element size not same as that of type.
14954         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
14955
14956 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
14957
14958         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
14959
14960 2004-07-01  Per Bothner  <per@bothner.com>
14961
14962         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
14963
14964 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
14965
14966         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
14967         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
14968         first operand.  Don't optimize if the bitfield is volatile.
14969
14970 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
14971
14972         * c-pretty-print.c (pp_c_postfix_expression): Handle
14973         floating-point comparison operators.
14974         (pp_c_expression): Pass floating-point comparison
14975         operators to pp_c_postfix_expression.
14976
14977 2004-07-01  Roger Sayle  <roger@eyesopen.com>
14978
14979         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
14980         rtx_cost instead of "had_mult" to determine whether the transformed
14981         expression is cheaper than the original.
14982
14983 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
14984
14985         * alias.c (get_alias_set, canon_rtx, get_addr,
14986         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
14987         Use MEM_P.
14988         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
14989         expand_builtin): Likewise.
14990         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
14991         Likewise.
14992         * combine.c (can_combine_p, combinable_i3pat, try_combine,
14993         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
14994         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
14995         record_dead_and_set_regs_1, get_last_value_validate,
14996         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
14997         * cse.c (check_dependence, canon_hash, equiv_constant,
14998         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
14999         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
15000         count_reg_usage): Likewise.
15001         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
15002         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
15003         cselib_record_sets): Likewise.
15004         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
15005         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
15006         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
15007         * df.c (df_uses_record): Likewise.
15008         * dojump (do_jump): Likewise.
15009         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
15010         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
15011         decl_start_label): Likewise.
15012         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
15013         operand_subword, change_address_1, make_safe_from): Likewise.
15014         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
15015         stabilize, force_not_mem): Likewise.
15016         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
15017         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
15018         * expr.c (convert_move, convert_modes, emit_block_move,
15019         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
15020         emit_move_insn_1, expand_assignment, store_expr,
15021         store_constructor_field, store_constructor, store_field,
15022         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
15023         Likewise.
15024         * final.c (cleanup_subreg_operands, alter_subreg,
15025         get_mem_expr_from_op): Likewise.
15026         * flow.c (notice_stack_pointer_modification_1,
15027         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
15028         Likewise.
15029         * function.c (mark_temp_addr_taken, preserve_temp_slots,
15030         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
15031         optimize_bit_field, flush_addressof, purge_addressof_1,
15032         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
15033         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
15034         keep_stack_depressed): Likewise.
15035         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
15036         noce_process_if_block, find_memory): Likewise.
15037         * integrate.c (subst_constants, allocate_initial_values): Likewise.
15038         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
15039         update_equiv_regs): Likewise.
15040         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
15041         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
15042         * optabs.c (expand_abs, emit_unop_insn): Likewise.
15043         * passes.c (rest_of_handle_final): Likewise.
15044         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
15045         move2add_note_store): Likewise.
15046         * ra-build.c (detect_remat_webs): Likewise.
15047         * ra-debug.c (dump_static_insn_cost): Likewise.
15048         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
15049         * recog.c (validate_change, apply_change_group, cancel_changes,
15050         validate_replace_rtx_1, general_operand, register_operand,
15051         nonmemory_operand, push_operand, pop_operand, memory_operand,
15052         indirect_operand, asm_operand_ok, offsettable_memref_p,
15053         offsettable_nonstrict_memref_p, constrain_operands,
15054         store_data_bypass_p): Likewise.
15055         * reg-stack.c (subst_stack_regs_pat): Likewise.
15056         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
15057         copy_cost, reg_scan_mark_refs): Likewise.
15058         * regmove.c (optimize_reg_copy_3, stack_memref_p,
15059         combine_stack_adjustments_for_block): Likewise.
15060         * regrename.c (copyprop_hardreg_forward_1): Likewise.
15061         * reload.c (can_reload_into, push_reload, decompose, immune_p,
15062         find_reloads, find_reloads_address, find_reloads_address_1,
15063         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
15064         find_equiv_reg): Likewise.
15065         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
15066         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
15067         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
15068         delete_address_reloads): Likewise.
15069         * resource.c (mark_referenced_resources): Likewise.
15070         * rtlanal.c (get_jump_table_offset, count_occurrences,
15071         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
15072         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
15073         num_sign_bit_copies1): Likewise.
15074         * rtlhooks.c (gen_lowpart_general): Likewise.
15075         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
15076         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
15077         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
15078         sdbout_global_decl): Likewise.
15079         * simplify-rtx.c (simplify_subreg): Likewise.
15080         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
15081         expand_anon_union_decl, expand_end_case_type): Likewise.
15082         * unroll.c (calculate_giv_inc): Likewise.
15083         * var-tracking.c (stack_adjust_offset_pre_post,
15084         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
15085         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
15086         vt_add_function_parameters): Likewise.
15087         * varasm.c (make_var_volatile, notice_global_symbol,
15088         assemble_external, decode_addr_const, mark_weak,
15089         default_encode_section_info): Likewise.
15090
15091 2004-07-01  Steven Bosscher  <stevenb@suse.de>
15092
15093         * stmt.c (check_seenlabel): Remove.
15094         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
15095
15096 2004-07-01  Richard Henderson  <rth@redhat.com>
15097
15098         * function.h (struct function): Remove x_function_call_count.
15099         (function_call_count): Remove.
15100         * calls.c (expand_call): Don't set it.
15101         * integrate.c (copy_rtx_and_substitute): Likewise.
15102
15103         * function.h (struct function): Remove x_cleanup_label.
15104         (cleanup_label): Remove.
15105         * stmt.c (expand_value_return): Don't use it.
15106         * function.c (free_after_compilation): Don't set it.
15107         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
15108         * cfgexpand.c (tree_expand_cfg): Update call.
15109         * tree.h (expand_function_start): Update decl.
15110
15111 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
15112
15113         PR c/1027
15114         * c-lang.c (c_initialize_diagnostics): Move from here ...
15115         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
15116         (c_tree_printer): Use pretty-printer to format %T.
15117         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
15118         before '*' if not C++.
15119         (pp_c_direct_abstract_declarator): Don't try to print array upper
15120         bound for flexible array members.
15121         * c-tree.h: Include "diagnostic.h".
15122         (c_initialize_diagnostics): Declare.
15123         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
15124         * c-format.c (format_type_warning): New function.  Improve
15125         diagnostics for incorrect format argument types.
15126         (check_format_types): Use it.  Add two parameters.  Use the
15127         TYPE_MAIN_VARIANT of wanted_type.
15128         (check_format_info_main): Pass new parameters to
15129         check_format_types.
15130         (struct format_wanted_type): Update comment.
15131
15132 2004-07-01  Nick Clifton  <nickc@redhat.com>
15133
15134         * target.h (struct gcc_target): Add new field to struct cxx:
15135         import_export_class.
15136         * target-def.h (TARGET_CXX): Initialise the new field.
15137         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
15138         the new field.
15139         * doc/tm.texi: Document the new target hook.
15140
15141 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
15142
15143         * builtins.c (fold_builtin_classify): Fix typo.
15144
15145 2004-07-01  Richard Henderson  <rth@redhat.com>
15146
15147         * function.c (identify_blocks, identify_blocks_1): Remove.
15148         * function.h (identify_blocks): Remove.
15149         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
15150
15151 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
15152
15153         * builtins.c (fold_builtin_classify): New.
15154         (fold_builtin_unordered_cmp): Fix commentary.
15155         (fold_builtin): Use it.
15156         * builtins.def: Define builtins for isnan,
15157         isnanf, isnanl, finite, finitef, finitel,
15158         isinf, isinff, isinfl.
15159
15160 2004-07-01  Richard Henderson  <rth@redhat.com>
15161
15162         * function.h (struct function): Remove dont_emit_block_notes.
15163         * gimple-low.c (lower_function_body): Don't set it.
15164         * cfgexpand.c (expand_block): Don't check it.
15165         * cfglayout.c (insn_locators_initialize): Likewise.
15166         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
15167         * passes.c (rest_of_compilation): Likewise.
15168         * stmt.c (expand_start_bindings_and_block): Likewise.
15169         (expand_end_bindings): Likewise.
15170
15171 2004-07-01  Richard Henderson  <rth@redhat.com>
15172
15173         * cgraph.h (cgraph_build_static_cdtor): Declare.
15174         * cgraphunit.c (cgraph_build_static_cdtor): New.
15175         * c-objc-common.c (build_cdtor): Use it.
15176         * coverage.c (create_coverage): Likewise.
15177         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
15178         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
15179
15180 See ChangeLog.11 for earlier changes.