OSDN Git Service

* c-common.c (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-10-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2
3         * c-common.c (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
4         RID_PTRVALUE.
5         * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
6         declarations.
7         (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
8         __ptrextent__, __ptrvalue and __ptrvalue__.
9         (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
10         entries.
11
12 2004-10-16  Dale Johannesen  <dalej@apple.com>
13
14         * c-common.c (c_common_get_alias_set):  Use GGC for type_hash_table.
15
16 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
17
18         PR tree-optimization/17766
19         * basic-block.h (enum dom_state): DOM_CONS_OK removed.
20         (dom_info_available_p): Declare.
21         * cfghooks.c (split_block, make_forwarder_block): Use
22         dom_info_available_p.
23         * dominance.c (compute_dom_fast_query, calculate_dominance_info,
24         free_dominance_info, verify_dominators): Ditto.
25         (dom_info_available_p): New function.
26         * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
27         (thread_jumps): Use dom_info_available_p.
28         * tree-complex.c (expand_complex_div_wide): Ditto.
29         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
30
31 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
32
33         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
34         (find_best_candidate): Take also important candidates into account.
35         (find_optimal_iv_set): Initialize important_candidates bitmap.
36
37 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
38
39         PR tree-optimization/17560
40         * predict.c (tree_estimate_probability): Mark irreducible
41         loops.
42
43 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
44
45         PR rtl-optimization/17723
46         * cfgcleanup.c (merge_memattrs): Handle case when
47         MEM_SIZE == NULL_RTX.
48
49 2004-10-15  Andrew Pinski  <pinskia@physics.uc.edu>
50
51         * toplev.c (dump_file_name): Change type to be const.
52
53 2004-10-15  Joseph S. Myers  <jsm@polyomino.org.uk>
54
55         * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
56         non_lvalue to stop something being a null pointer constant.
57
58 2004-10-15  Aldy Hernandez  <aldyh@redhat.com>
59
60         * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
61         available for TARGET_FPRS.
62         (FUNCTION_VALUE_REGNO_P): Same.
63
64 2004-10-15  Geoffrey Keating  <geoffk@apple.com>
65
66         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
67         -maltivec in same style as other ISA options.
68
69 2004-10-15  Jon Grimm <jgrimm2@us.ibm.com>
70
71         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
72         definition.
73
74 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
75
76         * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
77         collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
78         gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
79         genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
80         gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
81         gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
82         lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
83         predict.def, predict.h, protoize.c, reload.h, resource.h,
84         rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
85         tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
86         unwind-sjlj.c, value-prof.h: Update copyright.
87
88 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
89
90         * pointer-set.c, tree-vectorizer.c: Fix comment typos.
91
92 2004-10-15  Diego Novillo  <dnovillo@redhat.com>
93
94         * tree-optimize.c (execute_one_pass): Stop timer right after
95         executing the pass.
96
97 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
98
99         Revert:
100         2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
101         PR middle-end/17967
102         Revert:
103                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
104                 (remove_useless_stmts_1):  Fold trees we know how to fold.
105
106 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
107
108         * configure.ac: Add .machine power4 directive when testing for
109         mfcr field.
110         * configure: Regenerate.
111
112 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
113
114         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
115
116 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
117
118         * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
119         always.
120
121 2004-10-14  Daniel Jacobowitz  <dan@codesourcery.com>
122
123         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
124         for 'f' if !TARGET_FPRS.
125
126 2004-10-14  Richard Henderson  <rth@redhat.com>
127
128         PR debug/14492
129         * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
130
131 2004-10-14  Richard Henderson  <rth@redhat.com>
132
133         PR c/17023
134         * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
135         as error_mark_node.
136         * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
137         instaed of current_function_decl non-null.
138
139 2004-10-14  Matt Austern  <austern@apple.com>
140
141         * pointer-set.c: New file, special-purpose hash table.
142         * pointer-set.h: New file.
143         * tree.h (struct pointer_set_t): Declare as opaque type.
144         (tree_walk): Last argument is pointer_set_t* now.
145         * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
146         (walk_type_fields): 
147         (walk_tree): Convert from htab_t to pointer_set_t for keeping
148         track of which nodes have already been visited.
149         (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
150         * cgraphunit.c (cgraph_create_edges): Likewise.
151         (cgraph_characterize_statics_local): Likewise.
152         * tree-dfa.c (collect_dfa_stats): Likewise.
153         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
154         pointer_set_t* now.
155         * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
156         * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
157         of walk_subtrees is pointer_set_t* now.
158         * Makefile.in (OBJS-common): add pointer-set.o
159         (tree-inline.o): Depends on pointer-set.h
160         (tree-dfa.o): Likewise
161         (cgraphunit.o): Likewise
162         
163 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
164
165         * config/rs6000/darwin.h (ASM_SPEC): Delete.
166         (TARGET_ASM_FILE_START): Define.
167         * config/darwin.h (ASM_SPEC): Define.
168         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
169         -mlong-double-128, it's the default.  Update comment about reason
170         for force_cpusubtype_ALL.
171         * config/rs6000/darwin-vecsave.asm: Supply .machine.
172         * config/rs6000/darwin-world.asm: Likewise.
173         * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
174         (symbolic_operand): Delete #if 0ed code.
175
176 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
177
178         * stmt.c (add_case_node): Make sure that we have integer
179         constant before calling tree_int_cst_compare.
180
181 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
182
183         PR middle-end/17967
184         Revert:
185                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
186                 (remove_useless_stmts_1):  Fold trees we know how to fold.
187
188 2004-10-14  Joseph S. Myers  <joseph@codesourcery.com>
189
190         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
191         config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
192         -m64.
193
194 2004-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
195
196         * reload.c (find_reloads): When reloading a PLUS with constant
197         operand, make sure the constant is pushed to the constant pool
198         if required.
199         * config/s390/s390.c (s390_secondary_input_reload_class): Remove
200         reload bug workaround.
201         (s390_expand_plus_operand): Likewise.
202
203 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
204
205         * opts.c (common_handle_option): Do not enable
206         flag_speculative_prefetching for -fprofile-generate/use.
207
208 2004-10-14  Devang Patel  <dpatel@apple.com>
209
210         PR 17635
211         * tree-if-conv.c (process_phi_nodes): Process latch block.
212         (combine_blocks): Process latch block and update loop structure.
213         
214 2004-10-14  Olga Golovanevsky  <olga@il.ibm.com>
215
216         * tree-vectorizer.c (vect_generate_tmps_on_preheader):
217         (vect_update_ivs_after_vectorizer):
218         (vect_transform_for_unknown_loop_bound):
219         (tree_duplicate_loop_to_edge):
220         (allocate_new_names):
221         (rename_use_op):
222         (rename_def_op):
223         (rename_variables_in_bb):
224         (free_new_names):
225         (rename_variables_in_loop):
226         (copy_phi_nodes):
227         (update_phis_for_duplicate_loop):
228         (update_phi_nodes_for_guard):
229         (make_loop_iterate_ntimes):
230         (tree_duplicate_loop_to_edge_cfg):
231         (add_loop_guard):
232         (vect_analyze_loop_with_symbolic_num_of_iters):
233         (verify_loop_for_duplication): 
234         (vect_gen_niters_for_prolog_loop):
235         (vect_update_niters_after_peeling):
236         (vect_update_inits_of_dr):
237         (vect_update_inits_of_drs):
238         (vect_build_loop_niters):
239         (vect_do_peeling_for_alignment): New functions.
240         (vect_transform_loop): Add unknown and known but indivisible loop
241         bound support; add peeling for unalignment support. 
242         (vect_analyze_loop_form): Support symbolic number of iterations.
243         (vect_transform_loop_bound): New input parameter.
244         (vect_get_loop_niters): Change input parameter type.
245         (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
246         (vectorizable_store): Allow unaligned access.
247         (vectorize_loops): Add rewrite_into_loop_closed_ssa.
248         (vect_analyze_data_refs_alignment): Allowed one unaligned
249         store.
250         * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined 
251         to use tree.
252         (LOOP_VINFO_INT_NITERS): New macro.
253         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
254         (do_peeling_for_alignment):
255         (unaligned_drs): New members of _loop_vec_info.
256         (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
257
258 2004-10-14  Ranjit Mathew  <rmathew@hotmail.com>
259
260         * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
261         (struct tree_string): Remove "const" qualifier for "str".
262
263 2004-10-14  Ira Rosen  <irar@il.ibm.com>
264
265         * tree-vectorizer.c (vect_analyze_data_refs): Call
266         vect_get_base_and_bit_offset to get memory tag for array ref.
267         (vect_create_addr_base_for_vector_ref): Remove redundant checks.
268
269 2004-10-14  Richard Earnshaw  <rearnsha@arm.com>
270
271         * configure.ac: Use $LN_S for creating symlinks (not $LN).
272         * configure: Regenerate.
273
274 2004-10-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
275
276         * doc/install.texi (*-*-solaris2*): Update with info about kernel
277         patches to solve spurious testsuite failures.
278
279 2004-10-14  Dorit Naishlos  <dorit@il.bim.com>
280
281         * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
282         Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
283         (vect_analyze_operations): Make sure the vectorization factor > 1. Add
284         gcc_assert under ENABLE_CHECKING.
285         (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
286         get_vectype_for_scalar_type).
287
288         (vect_get_vec_def_for_operand): Remove redundant variables.
289         (vect_transform_loop): Likewise.
290
291 2004-10-14  Richard Sandiford  <rsandifo@redhat.com>
292
293         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
294         global for -mcaller-super-interworking.
295         (CALLER_INTERWORKING_SLOT_SIZE): New macro.
296         * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
297         CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
298         not need a frame pointer.
299         (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
300         the soft frame pointer offset.
301         (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
302         * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
303         _interwork_{r7,r11}_call_via_rN if some arguments are passed on
304         the stack.  Use frame_pointer_needed to choose between them.
305         * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
306         (interwork_with_frame): New macro.
307         (interwork): Add _interwork_{r7,r11}_call_via_rN().
308
309 2004-10-14  Ben Elliston  <bje@au.ibm.com>
310
311         PR other/17900
312         * diagnostic.c (trim_filename): Fix logic bug in walking backwards
313         up the filename looking for a previous directory separator.
314
315 2004-10-14  Joseph S. Myers  <jsm@polyomino.org.uk>
316
317         * c-tree.h (enum c_typespec_kind, struct c_typespec,
318         parser_xref_tag): New.
319         (struct c_declspecs): Add tag_defined_p.  Adjust definition of
320         typedef_p.
321         (declspecs_add_type): Adjust prototypes.
322         * c-parse.in (%union): Add tstype.
323         (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
324         typespec_reserved_attr, typespec_nonreserved_nonattr,
325         structsp_attr, structsp_nonattr): Change to tstype.  Update
326         actions.
327         * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
328         (declspecs_add_type): Update to take struct c_typespec argument.
329         Set tag_defined_p and typedef_p as appropriate.
330         (xref_tag): Rename to parser_xref_tag and replace by wrapper.
331         Update to return struct c_typespec.
332         (shadow_tag_warned): Don't let empty declarations with qualifiers
333         or storage class specifiers redeclare a tag if a previous
334         declaration is visible.
335
336 2004-10-13  Richard Henderson  <rth@redhat.com>
337
338         PR debug/15860
339         * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
340         for DECL_INCOMING_RTL.
341
342 2004-10-14  Hans-Peter Nilsson  <hp@axis.com>
343
344         PR target/17984
345         * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
346         trunc_int_for_mode for constants used in shortened mode.
347
348 2004-10-13  Richard Henderson  <rth@redhat.com>
349
350         PR c/17384
351         * c-common.c (handle_mode_attribute): Disallow mode changes that
352         alter the CODE of the top-level type.
353  
354         * crtstuff.c (__FRAME_END__): Remove mode attribute.  Find 32-bit
355         integer from internal limits macros.
356         * config/i386/mm3dnow.h (__v2sf): Fix base type.
357
358 2004-10-13  Richard Henderson  <rth@redhat.com>
359  
360         PR debug/13841
361         * function.c (instantiate_decl): Recurse for CONCAT.
362
363 2004-10-13  David Edelsohn  <edelsohn@gnu.org>
364
365         * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
366         andi./andis.
367         (anddi3): Same.
368         (extzvdi_internal1): Add attribute "compare".
369         (extzvdi_internal2): Same.
370
371 2004-10-12  Tom Tromey  <tromey@redhat.com>
372
373         * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
374
375 2004-10-13  Dale Johannesen  <dalej@apple.com>
376
377         * doc/extend.texi (Extended Asm):  Rewrite asm volatile description.
378
379 2004-10-13  Frank Ch. Eigler  <fche@redhat.com>
380
381         * toplev.c (compile_file): Call mudflap_finish_file from here ...
382         * c-decl.c (c_write_global_declarations): ... instead of here ...
383         * cp/decl.c (cp_finish_file): ... and here.
384         * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
385
386 2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
387
388         * tree-ssa-dom.c (record_range): Free the element if we are not
389         going to use it.
390
391 2004-10-13  Tom Tromey  <tromey@redhat.com>
392
393         PR java/15578:
394         * gcc.c (option_map): Added --extdirs and --encoding.
395
396 2004-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
397
398         PR target/14454
399         * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
400         sparc_can_output_mi_thunk.
401         (sparc_output_mi_thunk): Simplify handling of delta offset.  Add
402         handling of vcall offset.
403         (sparc_can_output_mi_thunk): New predicate.
404         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
405         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
406         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
407
408         * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
409
410         * config/sparc/sparc.md (movdi): Remove redundant test.
411
412 2004-10-13  Paolo Bonzini  <bonzini@gnu.org>
413
414         * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
415         TDF_IPA from -fdump-tree-*-all.
416
417 2004-10-13  Paul Brook  <paul@codesourcery.com>
418
419         * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
420         * config/arm/arm.c (thumb_find_work_register): Update comments.
421         (arm_load_pic_register): Add argument for scratch register.
422         (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
423         * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
424
425 2004-10-13  Kazu Hirata  <kazu@cs.umass.edu>
426
427         * tree-data-ref.c: Fix comment typos.
428
429 2004-10-13  Jakub Jelinek  <jakub@redhat.com>
430             Zdenek Dvorak  <dvorakz@suse.cz>
431
432         PR tree-optimization/17724
433         * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
434
435 2004-10-13  Dorit Naishlos  <dorit@il.ibm.com>
436
437         * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
438         (altivec_builtin_mask_for_store): Likewise.
439         (altivec_init_builtins): Use lang_hooks.builtin_function to
440         create the decls for builtin_altivec_mask_for_load/store.
441
442 2004-10-13  Nick Clifton  <nickc@redhat.com>
443
444         * config/c4x/c4x.c: Remove inclusion of loop.h.
445
446 2004-10-12  Ben Elliston  <bje@au.ibm.com>
447
448         * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
449         (ei_container): New; renamed.
450         (ei_start, ei_last): New macros.
451         (ei_start_1, ei_last_1): Renamed from ei_start.
452         (ei_last_1, ei_end_p): Use ei_container() where applicable.
453         (ei_one_before_end_p, ei_next, ei_edge): Likewise.
454         * gcse.c (remove_reachable_equiv_notes): Use ei_container().
455
456 2004-10-11  Sebastian Pop  <pop@cri.ensmp.fr>
457
458         * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
459         * cfgloop.c (initialize_loops_parallel_p): New.
460         (flow_loops_find): Initialize the parallel_p field to true for all 
461         the loops.
462         * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
463         (estimate_numbers_of_iterations_loop): Infers the loop bounds from 
464         the size of the data accessed in the loop.
465         (struct nb_iter_bound): Moved... 
466         * cfgloop.h (struct nb_iter_bound): ... here.
467         (estimated_nb_iterations, parallel_p): New fields in struct loop.
468         (record_estimate): Declare extern here.
469         * tree-chrec.c: Fix comments.
470         (nb_vars_in_chrec): New function.
471         * tree-chrec.h (nb_vars_in_chrec): Declared here.
472         * tree-data-ref.c: Don't include lambda.h, that is already included 
473         in tree-data-ref.h.
474         (tree_fold_divides_p): Don't check for integer_onep.
475         (tree_fold_bezout): Removed.
476         (gcd): New static duplicated function.
477         (int_divides_p, dump_subscript): New.
478         (dump_data_dependence_relation): Use dump_subscript.
479         (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations, 
480         estimate_niter_from_size_of_data): New.
481         (analyze_array_indexes, analyze_array): Call 
482         estimate_niter_from_size_of_data during the detection of array 
483         references.  Pass in a pointer to the statement that contains the 
484         array reference.
485         (all_chrecs_equal_p): New.
486         (compute_distance_vector): Renamed compute_subscript_distance.
487         Deal with multivariate conflict functions.
488         (initialize_data_dependence_relation): Initialize DDR_AFFINE_P, 
489         DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
490         (non_affine_dependence_relation): New.
491         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine, 
492         analyze_siv_subscript, analyze_miv_subscript, 
493         analyze_overlapping_iterations, subscript_dependence_tester): 
494         Initialize and return last_conflicts function.
495         (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
496         compute_overlap_steps_for_affine_1_2): New.
497         (analyze_siv_subscript_affine_cst): Removed.
498         (analyze_subscript_affine_affine): Disprove dependences based on the 
499         iteration domains.  Solve the univariate dependence case as before, 
500         but use lambda_matrix_right_hermite instead of tree_fold_bezout.
501         Implement the multivariate case of 2 versus 1 variables.
502         (build_classic_dist_vector, build_classic_dir_vector): Implement some 
503         unhandled cases.
504         (find_data_references_in_loop): Compute and initialize 
505         loop->estimated_nb_iterations and loop->parallel_p.
506         (analyze_all_data_dependences): Modify the debug dump order.
507         * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
508         subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
509         (SUB_LAST_CONFLICT, subscript->last_conflict, 
510         data_dependence_relation->affine_p, data_dependence_relation->size_vect,
511         DDR_AFFINE_P, DDR_SIZE_VECT): New.
512         (find_data_references_in_loop, initialize_data_dependence_relation,
513         dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
514
515 2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>
516
517         * configure: Regenerate.
518
519 2004-10-12  Fariborz Jahanian <fjahanian@apple.com>
520
521         PR 17892
522         * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
523         (simplify_rhs_and_lookup_avail_expr): Disallow associativity
524         and constant folding of floating point MULT_EXPR/PLUS_EXPR 
525         expressions.
526
527 2004-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
528
529         * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
530         (s390_gimplify_va_arg): Likewise.
531
532 2004-10-12  Daniel Jacobowitz  <dan@debian.org>
533
534         * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
535         (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
536         (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
537         * regclass.c (record_address_regs): Remove ifdef.  Use
538         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
539         * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
540         definition.
541         (scan_rtx_address, replace_oldest_value_addr): Use
542         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
543         * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
544         unnecessary definitions.
545         (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
546         and MODE_BASE_REG_REG_CLASS.
547         * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
548         (MODE_BASE_REG_REG_CLASS): Define.
549         (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
550         (REG_MODE_OK_FOR_REG_BASE_P): Define.
551         * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
552         REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
553
554 2004-10-12  Daniel Berlin <dberlin@dberlin.org>
555
556         * tree-ssa-alias.c (verify_name_tags): New function.
557         (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
558         (verify_alias_info): Call verify_name_tags.
559
560 2004-10-12  Kazu Hirata  <kazu@cs.umass.edu>
561
562         PR rtl-optimization/17931
563         * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
564         ZERO_EXTRACT in it.
565
566 2004-10-12  Richard Earnshaw  <rearnsha@arm.com>
567
568         * arm.c (arm_print_operand): Use output_operand_lossage where possible
569         rather than aborting.
570
571 2004-10-12  Paul Brook  <paul@coudesourcery.com>
572
573         * config.gcc: Add armv6{k,z,zk}
574         * config/arm/arm-cores.def: Add arm1176 and mpcore.
575         * config/arm/tune.md: Regenerate.
576         * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
577         Define.
578         (all_architectures): Add armv6k, armv6z, armv6zk.
579         * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
580         * doc/invoke.texi: Document new arch and cpu values.
581
582 2004-10-12  Paul Brook  <paul@coodesourcery.com>
583
584         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
585         meabi=4.
586
587 2004-10-12  Paul Brook  <paul@codesourcery.com>
588
589         * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
590         Handle negative constants.
591
592 2004-10-12  Joseph S. Myers  <jsm@polyomino.org.uk>
593
594         PR c/17301
595         * c-typeck.c (convert_arguments): Return error_mark_node if there
596         are too few arguments.
597         (build_function_call): Handle error_mark_node return from
598         convert_arguments.
599
600 2004-10-06  Paolo Bonzini  <bonzini@gnu.org>
601
602         * configure.ac (symbolic_link): Replace with $LN_S.
603         (Assembler/Linker): Hard link from gas and binutils trees.
604         * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
605         * configure: Regenerate.
606
607 2004-10-12  Paul Brook  <paul@codesourcery.com>
608
609         * configure.ac: Don't look for host assembler when building a canadian
610         cross.
611         * configure: Regenerate.
612
613 2004-10-11  Roger Sayle  <roger@eyesopen.com>
614
615         PR other/17361
616         * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
617         (c_common_init_options): Remove #ifdef CL_F77 code.  Scan command
618         line options for "-lang-asm" and if found allow any of the C-family
619         front-end options.
620         (c_common_handle_option): Remove last use of permit_fortran_options.
621
622 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
623
624         * config/s390/s390.c (print_operand): Support 'S' format flag.
625         * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
626         ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
627         ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
628         ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
629         ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
630         ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
631         ("*movstricthi"): Likewise.
632         ("*load_multiple_di", "*load_multiple_si"): Likewise.
633         ("*store_multiple_di", "*store_multiple_si"): Likewise.
634         ("*sethiqisi", "*sethihisi"): Likewise.
635         ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
636         ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
637         ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
638         ("*xorqi3", "*xc", "*xc_zero"): Likewise.
639         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
640
641         ("*tmhi_full"): Fix incorrect op_type attribute.
642
643         ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
644         ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
645         ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
646         ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
647
648 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu
649
650         PR middle-end/16266
651         * function.c (temp_slots_at_level): Fix typo which creates too
652         many temp stack slots levels.
653
654 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
655
656         * config/s390/s390.c (s390_trampoline_template): Generate shorter
657         trampoline code.
658         (s390_trampoline_instantiate): Adapt.
659         * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
660
661 2004-10-11  Roger Sayle  <roger@eyesopen.com>
662
663         PR middle-end/17657
664         * stmt.c (add_case_node): Add additional type argument.  Declare
665         as static to match prototype.  Convert the upper and lower bounds
666         to the specified index type.  Optimize away case ranges/values 
667         that are outside the index type's bounds.  Truncate case ranges
668         that span the index type's bounds.
669         (expand_case): Avoid unnessary computation and memory allocation
670         when index type is error_mark_node.  Pass index_type as required
671         by change to add_case_node API.  No need to convert case range
672         bounds to index_type, this is now done by add_case_node.
673
674 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
675
676         * config/s390/s390-protos.h (s390_offset_p): Add prototype.
677         * config/s390/s390.c (s390_offset_p): New function.
678         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
679         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
680         transform Q->Q alternatives to *clc pattern.
681         ("*clc"): Move.
682         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
683         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
684         to transform Q->Q alternatives to *mvc pattern.
685         ("*mvc"): Move.  Add peephole to merge adjacent MVCs.
686         ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
687         "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
688         transform Q->Q alternatives to *nc pattern.
689         ("*nc"): New insn.  New peephole to merge adjacent NCs.
690         ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
691         "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
692         transform Q->Q alternatives to *oc pattern.
693         ("*oc"): New insn.  New peephole to merge adjacent OCs.
694         ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
695         transform Q->Q alternatives to *xc pattern.
696         ("*xc"): New insn.  New peephole to merge adjacent XCs.
697         ("*xc_zero"): Move.  Add peephole to merge adjacent XCs.
698
699 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
700
701         * gimplify.c (gimple_push_condition): Make sure that we don't
702         have any saved condition cleanup if we were at the top level.
703
704 2004-10-11  Richard Sandiford  <rsandifo@redhat.com>
705
706         * config/frv/frv.md (*adddi3_internal): Change name to...
707         (adddi3): ...replacing the exisiting define_expand.  Combine
708         alternatives.  Fix the range of the constant constraints ('J' instead
709         of 'NOP').  Remove bogus operands[2] check.  Use simplify_gen_subreg
710         to extract the lower and upper halves of the DImode operands.
711         Always use addi3_lower and adddi3_upper, not the subdi3 forms.
712         (adddi3_lower): Fix the range of the constant constraints and
713         remove the bogus operands[2] check.
714         (adddi3_upper): Use gpr_or_int10_operand as the predicate for
715         operand 2.  Use addxi to handle constant operands.
716         (subdi3_lower, subdi3_upper): Don't handle constant operands.
717
718 2004-10-11  Nathan Sidwell  <nathan@codesourcery.com>
719
720         * gengtype-lex.l: Add commented } & ) characters to unconfuse
721         editor's paren matching. Allow #define inside a struct.
722
723 2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
724
725         PR middle-end/17703
726         part of PR c++/17657
727         * fold-const.c (fold_build_cleanup_point_expr): New function.
728         * tree.h (fold_build_cleanup_point_expr): Prototype.
729
730 2004-10-10  Eric Christopher  <echristo@redhat.com>
731
732         * dwarf2out.c: Move attribute to subprogram declaration
733         instead of subroutine type.
734
735 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
736
737         * basic-block.h: Remove the prototypes for can_hoist_insn_p,
738         hoist_insn_after, and hoist_insn_to_edge.
739         * rtl.h: Remove the prototypes for reg_referenced_between_p,
740         no_jumps_between_p, and insn_dependent_p.
741         * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
742         insn_dependent_p, insn_dependent_p_1, hoist_test_store,
743         can_hoist_insn_p, hoist_update_store, hoist_insn_after,
744         hoist_insn_to_edge): Remove.
745
746 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
747
748         PR c/17881
749         * c-decl.c (grokparms): Don't warn for parameters of incomplete
750         type in declarations that are not definitions except for the case
751         of parameters of void type.
752
753 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
754
755         * tree-cfg.c: Fix comment typos.
756
757 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
758
759         PR c/17301
760         * builtins.c (expand_builtin_va_start): Check for too few
761         arguments to va_start.
762
763 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
764
765         PR c/17189
766         * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
767         fields a pedwarn.  Pedwarn here for unnamed structs/unions if
768         pedantic.
769         * c-parse.in (component_decl): Don't pedwarn here for unnamed
770         fields.
771
772 2004-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
773
774         PR tree-optimization/17906
775         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
776         copy non-gimple reg arguments.
777
778 2004-10-09  Roger Sayle  <roger@eyesopen.com>
779
780         PR rtl-optimization/17853
781         * simplify-rtx.c (simplify_relational_operation): Correct comment.
782         Reorganize handling of comparison operations with floating point
783         results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
784         Likewise, introduce support for comparison operations with vector
785         result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
786
787         * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
788         * doc/tm.texi: Likewise.
789
790 2004-10-09  Steven Bosscher  <stevenb@suse.de>
791
792         * regs.h (struct reg_info_def): Remove the last_node_uid and
793         changes_mode fields.
794         (REGNO_LAST_NOTE_UID): Don't define.
795         * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
796         * regmove.c (copy_src_to_dest): Likewise.
797
798 2004-10-09  Roger Sayle  <roger@eyesopen.com>
799
800         PR middle-end/17894
801         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
802         relational comparison operator op needs to be swapped/reversed when
803         C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.
804
805 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
806
807         PR tree-opt/17902
808         * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
809         instead of bsi_start.
810         (value_replacement): Likewise.
811         (abs_replacement): Likewise
812
813 2004-10-09  Steven Bosscher  <stevenb@suse.de>
814
815         * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
816         (expand_gimple_cond_expr, expand_gimple_tailcall,
817         expand_gimple_basic_block): Use it to dump RTL for each stmt.
818         (tree_expand_cfg): Announce full RTL function dump.
819         * tree-optimize.c (execute_one_pass): Use normal RTL printing,
820         not the graph version.
821         * tree-pretty-print.c (dump_generic_node): Allow empty statements
822         in the arms of a COND_EXPR for lowered nodes.
823
824 2004-10-08  Joseph S. Myers  <joseph@codesourcery.com>
825
826         * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
827         atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
828         strtoufix16, strtoufix32, strtoufix64): Declare.
829
830 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
831
832         * c-lex.c (interpret_float): Give a pedwarn rather than a warning
833         for an out-of-range floating point constant.
834         * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
835         warning if the target format does not support infinities.
836
837 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
838
839         * emit-rtl.c (last_label_num, base_label_num): Remove.
840         (max_label_num): Always return label_num.
841         (set_new_last_label_num, restore_emit_status): Remove.
842         (init_emit): Don't initialize last_label_num.
843         * function.c (pop_function_context_from): Don't call
844         restore_emit_status.
845         * function.h: Remove the prototype for restore_emit_status.
846         * rtl.h: Remove the prototype for set_new_last_label_num.
847
848 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
849
850         * stmt.c (expand_decl_init): Remove.
851         * tree.h: Remove the corresponding prototype.
852
853 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
854
855         * integrate.c (try_constants, subst_constants, mark_stores):
856         Remove.
857         * integrate.h: Remove the prototype for try_constants.
858
859 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
860
861         * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
862         (convert_for_assignment): Handle ic_argpass_nonproto.  Add
863         comments about its relevance to errors.
864         (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
865
866 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
867
868         PR c/16999
869         * c-ppoutput.c (cb_ident): Don't quote string as it is already
870         quoted.
871
872 2004-10-08  Diego Novillo  <dnovillo@redhat.com>
873
874         * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
875         reference_node_pool.
876
877 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
878
879         * tree-cfg.c: Fix a comment typo.
880
881 2004-10-08  Andreas Krebbel  <krebbel1@de.ibm.com>
882
883         * config/s390/s390.c (s390_register_info): Don't save fprs for
884         -msoft-float.
885         (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
886
887 2004-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
888
889         * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
890         (TARGET_DEFAULT): Use symbolic values.
891         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
892         (TARGET_DEFAULT): Use symbolic values.
893         * config/s390/s390.c (s390_backchain_string): Initialize to
894         TARGET_DEFAULT_BACKCHAIN.
895
896 2004-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
897
898         * builtins.c (expand_builtin_mempcpy): Move tree handling code to
899         fold_builtin_mempcpy.  Accept a type parameter.  Delete duplicate
900         code.
901         (expand_builtin_strcat): Accept a type parameter.
902         (fold_builtin_mempcpy): Accept a type and endp parameter.
903
904         * builtins.c (expand_builtin_strncpy): Delete duplicate code.
905         Accept an `exp' instead of an `arglist'.
906
907 2004-10-08  Nathan Sidwell  <nathan@codesourcery.com>
908
909         * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
910         reverting my 2004-09-07 patch to use build_int_cst.
911
912 2004-10-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
913
914         PR target/17245
915         * config/sparc/sparc.c (input_operand): Remove redundant code
916         for handling LO_SUM.
917         (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
918         <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
919         Otherwise only accept it for TFmode if quad move insns are available.
920
921 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
922
923         * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
924         common cases will be caught earlier than others.
925
926 2004-10-08  Michael Matz  <matz@suse.de>
927
928         * loop-doloop.c (doloop_optimize): Extend count.
929
930 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
931
932         * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
933         (prefetch): Convert to expander.
934
935 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
936
937         * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
938         first argument of CALL.
939         (tls_local_dynamic): Likewise.
940
941 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
942
943         * c-typeck.c (enum impl_conv): New.
944         (convert_for_assignment): Use it.  Take tree for function called
945         instead of its name.  Handle ObjC selectors for diagnostics at
946         start of function.  Select diagnostic text within the function
947         using full sentences for diagnsotics.  Use %qE to name functions
948         in diagnostics.
949         (convert_arguments, build_modify_expr,
950         c_convert_parm_for_inlining, digest_init, c_finish_return): Update
951         callers to convert_for_assignment.
952         (warn_for_assignment): Remove.
953
954 2004-10-08  Nick Clifton  <nickc@redhat.com>
955
956         * config/sh/symbian.c (symbian_possibly_export_base_class):
957         Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
958         TYPE_CONTAINS_VPTR_P.
959
960 2004-10-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
961
962         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
963         fixed registers form all_used_regs. Update call_really_used_regs.
964         (CALL_REALLY_USED_REGISTERS): Define.
965         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
966         with call_really_used_regs.
967
968 2004-10-08  Alan Modra  <amodra@bigpond.net.au>
969
970         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
971         for -profile as well as -p and -pg.
972
973 2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>
974
975         * libgcc2.c (__moddi3): Cast &w to UDWtype*.
976
977 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
978
979         * tree-cfg.c (tree_block_forwards_to): Remove.
980         * tree-flow.h: Remove the corresponding prototype.
981
982 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
983
984         * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
985         for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
986
987 2004-10-07  Geoffrey Keating  <geoffk@apple.com>
988
989         Radar 3813796
990         * config/rs6000/rs6000.c (rs6000_generate_compare): When
991         flag_trapping_math is in effect, don't generate subtract
992         instructions.
993
994 2004-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
995
996         * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
997         * config/s390/s390.c (s390_narrow_logical_operator): New function.
998         (s390_extra_constraint_str): Add 'A' constraints.
999         (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
1000         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
1001         (CONSTRAINT_LEN): Likewise.
1002         * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
1003         ("*andsi3_zarch", "*andsi3_esa"): Likewise.
1004         ("*andhi3_zarch", "*andhi3_esa"): Likewise.
1005         ("*iordi3"): Add OI alternative and splitter.
1006         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
1007         ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
1008         ("*xordi3"): Add XI alternative and splitter.
1009         ("*xorsi3", "*xorhi3"): Likewise.
1010
1011 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
1012
1013         * config/mips/mips.c (mips_function_rodata_section): New function.
1014         (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
1015
1016 2004-10-07  Devang Patel  <dpatel@apple.com>
1017
1018         * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
1019         UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
1020         UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
1021         UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
1022         UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
1023         UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
1024         UNSPEC_VCONDU_V16QI): New constant defines.
1025         (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
1026         vconduv16qi): New patterns.
1027         * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
1028         * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
1029         (get_vec_cmp_insn): Same.
1030         (get_vsel_insn): Same.
1031         (rs6000_emit_vector_compare): Same.
1032         (rs6000_emit_vector_select): Same.
1033         (INSN_NOT_AVAILABLE): New.
1034
1035 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
1036
1037         PR tree-optimization/17749
1038         * tree-tailcall.c (find_tail_calls): Check that parameter is
1039         a gimple_reg.
1040
1041 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
1042
1043         * config/ia64/ia64.c: Fix a comment typo.
1044
1045 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1046
1047         * doc/install.texi (*-*-solaris2*): Fix marker for URL.
1048
1049 2004-10-07  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
1050
1051         PR c++/17115
1052         * tree-inline.c (expand_call_inline): Do not warn for functions
1053         marked with attribute noinline.
1054
1055 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1056
1057         PR target/17862
1058         * config/sparc/sparc.c (sparc_output_mi_thunk): Set
1059         current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
1060
1061         * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
1062         of 0 as 4th argument to pass_by_reference.
1063         Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
1064
1065 2004-10-06  Eric Christopher  <echristo@redhat.com>
1066
1067         * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
1068         attribute.
1069
1070 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
1071
1072         PR target/17770
1073         * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
1074
1075 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
1076
1077         PR rtl-optimization/17791
1078         * loop-doloop.c (doloop_modify): Take number of iterations as
1079         argument.
1080         (doloop_optimize): Extend or shorten the number of iterations
1081         when changing mode of counter register.
1082         * loop-iv.c (lowpart_subreg): Export.
1083         * rtl.h (lowpart_subreg): Declare.
1084
1085 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
1086
1087         PR tree-optimization/17806
1088         * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
1089         * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
1090         flags moved to split_edge.
1091
1092 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
1093
1094         PR middle-end/17835
1095         * expmed.c (expand_sdiv_pow2): Force a stack adjustment
1096         before tentatively building the conditional move sequence.
1097
1098 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
1099
1100         PR target/16815
1101         * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
1102         check.
1103         * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
1104         function_arg_padding.
1105
1106 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
1107
1108         PR bootstrap/17857
1109         * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
1110
1111 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
1112
1113         * hooks.c (hook_int_void_1, hook_void_int): Remove.
1114         * hooks.h: Remove the corresponding prototypes.
1115
1116 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
1117
1118         PR middle-end/17849
1119         * tree-nested.c (walk_stmt_info): Add changed field.
1120         (convert_nonlocal_reference): Set changed to when we
1121         change a decl to unnested decl.
1122         <case ADDR_EXPR>: Instead of checking if the immediate part
1123         of the ADDR_EXPR changed, check the field changed.
1124         Use recompute_tree_invarant_for_addr_expr instead of unsetting
1125         TREE_INVARIANT.
1126         (convert_local_reference):  Set changed to when we
1127         change a decl to unnested decl.
1128         <case ADDR_EXPR>: Instead of checking if the immediate part
1129         of the ADDR_EXPR changed, check the field changed.
1130         Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
1131
1132 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
1133
1134         * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
1135         * dwarf2out.c (dwarf2out_init): Remove references to
1136         DWARF2_GENERATE_TEXT_SECTION_LABEL.
1137         * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
1138         * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
1139
1140 2004-10-06  Joseph S. Myers  <jsm@polyomino.org.uk>
1141
1142         * c-typeck.c (convert_arguments): Take expression for called
1143         function rather than its name.  Handle ObjC selectors directly
1144         rather than relying on warn_for_assignment to do so.  Call warning
1145         directly rather than warn_for_assignment.  Use %qE in diagnostics.
1146         Say "argument" rather than "arg" in diagnostics.
1147         (build_function_call): Update call to convert_arguments.
1148
1149 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
1150
1151         PR debug/17787
1152         * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
1153         ENUMs specially instead of just saying we do.
1154
1155 2004-10-06  Eric Christopher  <echristo@redhat.com>
1156
1157         * dwarf2.h: Sync with include/elf/dwarf2.h
1158
1159 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
1160
1161         * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
1162         and TREE_VEC nodes.
1163
1164 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
1165
1166         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
1167         to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
1168
1169 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
1170
1171         * lambda-code.c (compute_nest_using_fourier_motzkin): New
1172         function.
1173         (lambda_compute_auxillary_space): Split from here.
1174
1175 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
1176
1177         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
1178         * tree-flow.h: Add prototype.
1179         * lambda-code.c (invariant_in_loop_and_outer_loops): Use
1180         expr_invariant_in_loop.
1181
1182 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
1183
1184         * tree-cfg.c (thread_jumps): Remove a duplicate check for
1185         EXIT_BLOCK_PTR.
1186
1187 2004-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
1188
1189         * config/s390/s390-protos.h (s_imm_operand): Remove.
1190         (s390_pool_operand): Add prototype.
1191         * config/s390/s390.c (general_s_operand): Remove.
1192         (s_imm_operand): Remove.
1193         (s_operand): Merge contents of general_s_operand.
1194         (s390_pool_operand): New function.
1195         * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
1196         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
1197         ("*cmpdi_ccu"): Merge Q->Q alternative.
1198         ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
1199         ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
1200         ("*cli"): Remove.
1201         ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
1202         ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
1203         ("*movstricthi"): Use memory_operand instead of s_imm_operand.
1204
1205 2004-10-06  Steve Ellcey  <sje@cup.hp.com>
1206
1207         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
1208         call ia64_function_arg_boundary.
1209         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
1210         * config/ia64/ia64.c (ia64_function_arg_boundary): New.
1211         (ia64_function_arg_advance): Do not put 128 bit floats into
1212         FP registers.
1213
1214 2004-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1215
1216         * builtins.c (expand_builtin_strcpy): Delete duplicate code.
1217         Accept an expression instead of an arglist.
1218         (expand_builtin_stpcpy): Accept an expression instead of an
1219         arglist.
1220
1221 2004-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1222
1223         PR target/16007
1224         * doc/install.texi (*-*-solaris2*): Mention potential problem
1225         with Sun assembler + GNU linker and C++ programs.
1226         Document status of binutils 2.15 release.
1227
1228 2004-10-06  Jan Hubicka  <jh@suse.cz>
1229
1230         * cse.c (cse_main): Kill push/pop context.
1231
1232 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
1233
1234         * pretty-print.c: Include tree.h.
1235         (pp_base_prepare_to_format): New function, logic from
1236         text_specifies_location.
1237         (pp_base_format_text): Use gcc_assert.
1238         * pretty-print.h (pp_prepare_to_format): New macro.
1239         (pp_base_prepare_to_format): Prototype.
1240         * diagnostic.c (text_specifies_location): Delete.
1241         (bug_report_request): Delete.
1242         (diagnostic_set_info): Don't call text_specifies_location.
1243         (diagnostic_action_after_output): Put text from
1244         bug_report_request inline here.  Use gcc_unreachable.
1245         (diagnostic_report_current_function): Fix comment.
1246         (diagnostic_report_diagnostic): Clarify logic for error recursion.
1247         Call pp_prepare_to_format before diagnostic_starter.
1248         (trim_filename): Use IS_DIR_SEPARATOR.
1249         (fatal_error, internal_error): Use gcc_unreachable.
1250         (error_recursion): Call diagnostic_action_after_output to
1251         issue the bug_report_request message and exit.
1252         * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
1253
1254         * c-parse.in: Add list of diagnostic messages to insulate
1255         translation template from version of yacc/bison used to
1256         compile the grammar.
1257
1258 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
1259
1260         PR 16406
1261         * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
1262
1263 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1264
1265         * basic-block.h: Remove the prototype for
1266         flow_preorder_transversal_compute.
1267         * cfganal.c (dfst_node): Remove.
1268         (flow_preorder_transversal_compute): Likewise.
1269         * rtl.h: Remove the prototype for get_jump_table_offset.
1270         * rtlanal.c (get_jump_table_offset): Remove.
1271
1272 2004-10-05  Richard Henderson  <rth@redhat.com>
1273
1274         PR 17756
1275         * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
1276
1277 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
1278
1279         PR bootstrap/17817
1280         * Makefile.in: Stage the build directory too.
1281
1282 2004-10-05  Aldy Hernandez  <aldyh@redhat.com>
1283
1284         * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
1285
1286         * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
1287         (frv_emit_move): Same.
1288
1289         * config/frv/frv.c (frv_emit_move): New.
1290         (frv_legitimize_address): New.
1291
1292         * config/frv/frv.md ("movsi"): Call frv_emit_move.
1293         ("movqi"): Same.
1294         ("movhi"): Same.
1295         ("movdi"): Same.
1296         ("movsf"): Same.
1297         ("movdf"): Same.
1298
1299 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1300
1301         * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
1302         system headers.
1303
1304 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1305
1306         * c-decl.c (pushdecl): When an extern declaration at block scope
1307         refers to a visible entity with internal linkage, use the old DECL
1308         rather than the new one.
1309
1310 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1311
1312         * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
1313         comments.
1314
1315 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1316
1317         * tree-cfg.c (thread_jumps): Remove a duplicate check for
1318         an infinite loop.
1319
1320 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1321
1322         * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
1323         of FOR_BB_BETWEEN.  Remove a useless check for unreachable
1324         blocks.
1325
1326 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1327
1328         * tree-cfg.c (cleanup_tree_cfg): Don't call
1329         delete_unreachable_blosk() after thread_jumps().
1330         (thread_jumps): Always remove basic blocks as they become
1331         unreachable.
1332
1333 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1334
1335         * tree-cfg.c (cleanup_tree_cfg): Remove variable
1336         something_changed.  Simplify the while loop.
1337
1338 2004-10-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1339
1340         * builtins.c (expand_builtin_memmove): Delete duplicate code
1341         and accept a tree type for the result.
1342         (expand_builtin_bcopy): Accept a tree type for the result.
1343         (fold_builtin_memmove): Accept an arglist and tree type for
1344         the result.
1345
1346 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
1347
1348         * config/s390/s390.c (s390_dump_pool): Remove return value.
1349         Use gen_pool_align, gen_pool_section_start/end instead of
1350         gen_pool_start/end_31/64.
1351         * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
1352         (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
1353         ("pool_start_31", "pool_end_31"): Remove.
1354         ("pool_start_64", "pool_end_64"): Likewise.
1355         ("pool_align", "pool_section_start", "pool_section_end": New insns.
1356
1357         * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
1358         (TARGET_CANNOT_COPY_INSN_P): Define.
1359         (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
1360         (struct constant_pool): New member 'execute'.
1361         (s390_add_execute, s390_find_execute): New functions.
1362         (s390_execute_label, s390_execute_target): Likewise.
1363         (s390_dump_pool): Output in-pool execute target templates.
1364         (s390_dump_execute): New function.
1365         (s390_alloc_pool, s390_free_pool): Handle execute templates.
1366         (s390_mainpool_start, s390_mainpool_finish): Likewise.
1367         (s390_chunkify_start, s390_chunkify_finish): Likewise.
1368         * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
1369         ("*execute"): New insn pattern.
1370         ("movmem_short", "*movmem_short"): Use splitters to generate
1371         explicit execute pattern, remove embedded execute.
1372         ("clrmem_short", "*clrmem_short"): Likewise.
1373         ("cmpmem_short", "*cmpmem_short"): Likewise.
1374
1375 2004-10-05  Daniel Berlin  <dberlin@dberlin.org>
1376
1377         * tree-ssa.c (verify_ssa): Verify phi arguments only
1378         contain renamed names.
1379
1380 2004-10-05  Alan Modra  <amodra@bigpond.net.au>
1381
1382         * config/rs6000/linux.h: Formatting, whitespace.
1383         * config/rs6000/linux64.h: Likewise.
1384         * config/rs6000/rs6000-protos.h: Likewise.
1385         * config/rs6000/rs6000.c: Likewise.
1386         (easy_vector_splat_const): Add fall thru comments.
1387         (output_vec_const_move): Likewise.
1388
1389 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
1390
1391         * Makefile.in: Update -Wno-error exceptions for move to build dir.
1392
1393 2004-10-05  Chao-Ying Fu  <fu@mips.com>
1394             Richard Sandiford  <rsandifo@redhat.com>
1395
1396         * doc/invoke.texi (-mpaired-single): Link to the new description of the
1397         built-in functions.  Document dependencies.
1398         (-mips3d): Add link here too.
1399         * doc/extend.texi (MIPS Paired-Single Support): New section.
1400
1401 2004-10-04  Chao-ying Fu  <fu@mips.com>
1402
1403         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
1404
1405 2004-10-04  Diego Novillo  <dnovillo@redhat.com>
1406
1407         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
1408         Initialize OPT_STATS to 0.
1409
1410 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
1411
1412         * tree-data-ref.c: Fix comment typos.
1413
1414 2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>
1415
1416         * tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
1417         the predicate cannot be computed, don't initialize the result to
1418         false.
1419
1420 2004-10-01  Eric Christopher  <echristo@redhat.com>
1421
1422         * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
1423         locally defined enum.
1424         * dwarf2out.c (add_calling_convention_attribute): Don't
1425         emit DW_CC_normal.
1426
1427 2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
1428
1429         PR c/17178, PR c/17820
1430         * c-decl.c (pop_scope): Do not warn about unused static
1431         variables as they warned in the middle-end.
1432
1433 2004-10-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1434
1435         * builtins.c (expand_builtin_memcpy): Delete duplicate code
1436         and make the first parameter the expression not the arglist.
1437
1438 2004-10-03  Ulrich Weigand  <uweigand@de.ibm.com>
1439
1440         * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
1441         as valid modes to expand address expressions.
1442
1443 2004-10-03  Joseph S. Myers  <jsm@polyomino.org.uk>
1444
1445         * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
1446         c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
1447         c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
1448         code formatting conventions.
1449
1450 2004-10-03  Richard Sandiford  <rsandifo@redhat.com>
1451
1452         * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
1453
1454 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
1455
1456         PR tree-optimization/16632
1457         * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
1458         fold (A & C) == D into 0, fold ~C.  Similarly, for the case
1459         where | is used instead of &.
1460
1461 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
1462
1463         * ginclude/stddef.h: Fix a comment typo.
1464
1465 2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1466
1467         PR target/17443
1468         * config.gcc (i?86-*-solaris2*): Restore correct logic
1469         for --enable-threads option.
1470         (sparc64-*-solaris2*): Likewise.
1471         (sparc-*-solaris2*): Likewise.
1472
1473 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
1474
1475         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
1476         (OS_MISSING_POWERPC64): Move, and comment.
1477         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
1478         (OS_MISSING_POWERPC64): Move, and comment.
1479
1480 2004-10-02  Ian Lance Taylor  <ian@wasabisystems.com>
1481
1482         * arm.c (output_call_mem): Add missing \t.
1483
1484 2004-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1485
1486         * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
1487         expand_builtin_strncmp): Delete duplicate code.
1488
1489 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
1490
1491         * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
1492         take check-base and -limit arguments.
1493         (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
1494         check ranges for ARRAY_REF and COMPONENT_REF.
1495         (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
1496         instrumentation.
1497
1498 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
1499
1500         * c-objc-common.c (c_tree_printer): Correct description of %E.
1501         Don't fall through after printing an expression.
1502
1503 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
1504
1505         * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
1506
1507 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
1508
1509         * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
1510         delete_unrechable_blocks() only when necessary.
1511
1512 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
1513
1514         * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
1515         (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
1516         (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
1517         __gthread_recursive_mutex_unlock): New functions.
1518
1519 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
1520
1521         * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
1522         * config/s390/tpf-eh.c: Remove file.
1523         * config/s390/tpf-unwind.h: New file.
1524         * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
1525         (MD_UNWIND_SUPPORT): Define.
1526
1527 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
1528
1529         * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
1530
1531 2004-10-01  Ulrich Weigand  <uweigand@de.ibm.com>
1532
1533         * config/s390/s390-protos.h (s390_comparison): Add prototype.
1534         * config/s390/s390.c (s390_comparison): New function.
1535         (s390_branch_condition_mask): Return -1 for invalid comparisons.
1536         (s390_branch_condition_mnemonic): Assert valid comparison.
1537         * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
1538         * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
1539         "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
1540         s390_comparison instead of comparison_operator.
1541
1542         * config/s390/s390.md (UNSPEC_CMPINT): New constant.
1543         ("cmpmemdi"): Remove.
1544         ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
1545         ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
1546         ("cmpint_si"): Rename to ...
1547         ("*cmpint_si"): ... this.  Use UNSPEC_CMPINT.
1548         ("cmpint_di", "*cmpint_di"): Likewise.
1549         * config/s390/s390.c (s390_canonicalize_comparison): Remove
1550         redundant UNSPEC_CMPINT conversions.
1551         (s390_expand_cmpmem): Adapt to cmpint pattern changes.
1552
1553 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
1554
1555         * collect2.c (COLLECT_PARSE_FLAG): Remove.
1556         (main): Remove a reference to COLLECT_PARSE_FLAG
1557         * system.h: Poison COLLECT_PARSE_FLAG.
1558         * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
1559
1560 2004-10-01  Paul Brook  <paul@codesourcery.com>
1561
1562         * config/arm/crti.asm: Give _init and _fini function type.
1563
1564 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
1565
1566         * common.opt (ftree-loop-ivcanon): Enable by default.
1567         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
1568         Enable complete loop unrolling.
1569         (canonicalize_induction_variables, tree_unroll_loops_completely):
1570         Reset scev info.
1571
1572 2004-10-01  Paul Brook  <paul@codesourcery.com>
1573
1574         * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
1575         not register number.
1576         (thumb_find_work_register): Search full register range.
1577
1578 2004-10-01  Andrew Pinski  <pinskia@physics.uc.edu>
1579
1580         PR tree-opt/17343
1581         * tree-cfg.c (group_case_labels): Get the label and not
1582         the case expr for the default case.
1583         When the label we looking at is the default, decrement the
1584         new_size.
1585
1586 2004-10-01  Jan Hubicka  <jh@suse.cz>
1587
1588         * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
1589         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1590         * toplev.h (tree_rest_of_compilation): Update prototype.
1591         * tree-optimize.c (tree_rest_of_compilation):  Kill nested_p argument.
1592
1593 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
1594
1595         * tree-cfg.c (cleanup_tree_cfg): Pull a call to
1596         cleanup_control_flow() out of the while loop.
1597
1598 2004-10-01  Paolo Bonzini  <bonzini@gnu.org>
1599
1600         * tree-vectorizer.c (vectorizable_operation): Fail unless
1601         the mode for the vector type is indeed a vector mode.
1602
1603 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
1604
1605         * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
1606         chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
1607         of convert.
1608         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
1609         add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
1610         follow_ssa_edge_in_rhs): Ditto.
1611         * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
1612         (dump_iv): Dump base_object.
1613         (dump_use, dump_cand): Use dump_iv.
1614         (determine_base_object): New function.
1615         (alloc_iv): Initialize base_object field.
1616         (record_use): Clear the ssa_name field of iv.
1617         (get_computation_cost_at): Do not use difference of addresses of
1618         two different objects.
1619         (may_eliminate_iv): Do not require the loop to have just single exit.
1620         * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
1621         (nonzero_p): New function.
1622         (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
1623         tree_simplify_using_condition, simplify_using_initial_conditions,
1624         loop_niter_by_eval, find_loop_niter_by_eval,
1625         estimate_numbers_of_iterations_loop, compare_trees,
1626         upper_bound_in_type, lower_bound_in_type,
1627         can_count_iv_in_wider_type_bound): Use buildN instead of build.  Use
1628         fold_convert or build_int_cst_type instead of convert.  Use (non)zero_p
1629         instead of integer_(non)zerop.
1630
1631 2004-10-01  Jakub Jelinek  <jakub@redhat.com>
1632
1633         Revert
1634         2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1635
1636         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
1637         and TI_VA_LIST_FPR_COUNTER_FIELD.
1638         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
1639         * tree-pass.h (pass_stdarg): Add.
1640         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
1641         * tree-stdarg.c: New file.
1642         * Makefile.in (OBJS-common): Add tree-stdarg.o.
1643         (tree-stdarg.o): Add dependencies.
1644         * function.h (struct function): Add va_list_gpr_size and
1645         va_list_fpr_size fields.
1646         * function.c (allocate_struct_function): Initialize them.
1647
1648         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
1649         va_list_{g,f}pr_counter_field.
1650         (ix86_setup_incoming_varargs): Don't do anything if reg_save
1651         area will not be used.  Only save registers that tree-stdarg.c
1652         detected they need saving.
1653         (ix86_va_start): Don't set up fields that won't be used.
1654
1655         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
1656         va_list_{g,f}pr_counter_field.
1657         (setup_incoming_varargs): Don't do anything if reg_save
1658         area will not be used.  Only save registers that tree-stdarg.c
1659         detected they need saving.
1660         (rs6000_va_start): Don't set up fields that won't be used.
1661
1662 2004-09-30  Eric Christopher  <echristo@redhat.com>
1663
1664         * dwarf2.h (dwarf_calling_convention): Add enum for renesas
1665         sh abi.
1666         * dwarf2out.c (add_calling_convention_attribute): New function.
1667         (gen_subroutine_type_die): Use.
1668         * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
1669         * target.h (gcc_target): Add dwarf_calling_convention.
1670         * hooks.c (hook_int_tree_0): New function.
1671         * hooks.h: Prototype.
1672         * config/sh/sh.c: Include dwarf2.h.
1673         (sh_dwarf_calling_convention): New function.
1674         (TARGET_DWARF_CALLING_CONVENTION): Use.
1675         * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
1676
1677 2004-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1678
1679         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
1680         expand_builtin_strrchr, expand_builtin_strpbrk,
1681         expand_builtin_strncat, expand_builtin_strspn,
1682         expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
1683         code.
1684
1685 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1686
1687         * config/s390/s390-protos.h (s390_expand_logical_operator): Add
1688         prototype.
1689         (s390_logical_operator_ok_p): Likewise.
1690         * config/s390/s390.c (s390_expand_logical_operator): New function.
1691         (s390_logical_operator_ok_p): Likewise.
1692         * config/s390/s390.md ("anddi3"): New expander.
1693         ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
1694         ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
1695         ("andsi3"): Use s390_expand_logical_operator.
1696         ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
1697         ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
1698         ("andhi3"): New expander.
1699         ("*andhi3_zarch", "*andhi3_esa"): New patterns.
1700         ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
1701         ("andqi3"): New expander.
1702         ("*andqi3_zarch", "*andqi3_esa"): New patterns.
1703         ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
1704         ("iordi3"): New expander.
1705         ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
1706         ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
1707         ("iorsi3"): Use s390_expand_logical_operator.
1708         ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
1709         ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
1710         ("iorhi3"): New expiorer.
1711         ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
1712         ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
1713         ("iorqi3"): New expiorer.
1714         ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
1715         ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
1716         ("xordi3"): New expander.
1717         ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
1718         ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
1719         ("xorsi3"): New expander.
1720         ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
1721         ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
1722         ("xorhi3"): New expander.
1723         ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
1724         ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
1725         ("xorqi3"): New expander.
1726         ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
1727         ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
1728
1729 2004-09-30  Roger Sayle  <roger@eyesopen.com>
1730
1731         * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
1732         (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
1733         machine mode as the result.
1734
1735 2004-09-30  Ben Elliston  <bje@au.ibm.com>
1736
1737         PR bootstrap/17761
1738         * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
1739         FOR_EACH_EDGE macros.
1740
1741 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
1742
1743         * c-tree.h (readonly_error): Remove.
1744         * c-typeck (enum lvalue_use): New.
1745         (lvalue_or_else, readonly_error): Use it.  All callers changed.
1746         (readonly_error): Make static.
1747
1748 2004-09-30  Jan Hubicka  <jh@suse.cz>
1749
1750         PR debug/13974
1751         * cfgrtl.c (try_redirect_by_replacing_jump,
1752         force_nonfallthru_and_redirect, commit_one_edge_insertion,
1753         cfg_layout_merge_blocks):  Do not attach any line number information
1754         to newly inserted instructions.
1755         * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
1756         emit_insn_*_noloc.
1757         (emit_*insn_before, emit_insn*_after): New.
1758         (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
1759         existing locators.
1760         * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
1761         (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
1762
1763 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1764
1765         * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
1766         (s390_return_address_offset): Remove.
1767         (s390_can_eliminate): Add prototype.
1768         (s390_initial_elimination_offset): Add prototype.
1769         * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
1770         (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
1771         * config/s390/s390.c (s390_arg_frame_offset): Remove.
1772         (s390_return_address_offset): Remove.
1773         (s390_can_eliminate, s390_initial_elimination_offset): New functions.
1774         (struct machine_function): New member split_branches_pending_p.
1775         (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
1776         (s390_mainpool_finish): Likewise.  Clear base_reg if pool empty.
1777         (s390_optimize_prologue): Remove base_used argument.  Call
1778         s390_update_frame_layout instead of s390_register_info.  Handle
1779         prologue/epilogue insns that touch only RETURN_REGNUM.
1780         (s390_reorg): Remove base_used.  Clear split_branches_pending_p.
1781         (s390_register_info): Remove base_used and return_addr_used
1782         arguments, compute special register usage inline.  Return live
1783         register data to caller.
1784         (s390_frame_info): Remove arguments, do not call s390_register_info.
1785         (s390_init_frame_layout): New function.
1786         (s390_update_frame_layout): Likewise.
1787         (s390_emit_prologue): Call s390_update_frame_layout; some code
1788         move to there.  Do not emit pool placeholder insn if unnecessary.
1789
1790 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
1791
1792         * config/s390/s390.c (legitimate_reload_constant_p): Remove
1793         floating point constant workaround.
1794         (s390_secondary_input_reload_class): Handle PLUS reloads
1795         with too-large constant.
1796         (s390_expand_plus_operand): Likewise.
1797         * config/s390/s390.md ("movdi"): Do not call force_const_mem.
1798         ("movsi"): Likewise.  Also, remove workaround for non-general
1799         operands.
1800         ("movdf"): Do not call force_const_mem.
1801         ("movsf"): Likewise.  Merge expander with *movsf insn.
1802         ("*movsf"): Remove, merge with movsf expander.
1803
1804 2004-09-30  Paul Brook  <paul@codesourcery.com>
1805
1806         * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
1807         (ENDFILE_SPEC): Define.
1808         * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
1809
1810 2004-09-30  Richard Henderson  <rth@redhat.com>
1811
1812         * config/alpha/qrnnd.asm: Mark for noexecstack.
1813
1814 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
1815
1816         * protoize.c, tree-cfg.c: Fix comment typos.
1817
1818 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
1819
1820         PR c/17730
1821         * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
1822
1823 2004-09-30  Diego Novillo  <dnovillo@redhat.com>
1824
1825         * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
1826         expressions...
1827         (add_pointed_to_expr): ... here.
1828         Call add_pointed_to_expr for variables with DECL_INITIAL set.
1829         * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
1830         pointer variable, if set.
1831
1832 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
1833
1834         * config/sh/sh.c: Follow spelling conventions.
1835
1836 2004-09-29  Richard Henderson  <rth@redhat.com>
1837
1838         * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
1839         * doc/tm.texi (DWARF_ZERO_REG): New.
1840
1841         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
1842         alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
1843         * config/alpha/alpha.h (DWARF_ZERO_REG): New.
1844
1845 2004-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
1846
1847         * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
1848         with a PLUS as source operand.
1849         (expand_movstr): Likewise.
1850         (expand_builtin_stpcpy): Likewise.
1851
1852 2004-09-29  Richard Henderson  <rth@redhat.com>
1853
1854         PR 17739
1855         * tree-gimple.c (is_gimple_reg): Reject hard registers.
1856         (is_gimple_asm_val): New.
1857         * tree-gimple.h (is_gimple_asm_val): Declare.
1858         * gimplify.c (gimplify_asm_expr): Use it.
1859         * tree-pretty-print.c (print_declaration): Dump hard regs.
1860         * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
1861         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
1862         * tree-ssa-pre.c (is_undefined_value): Likewise.
1863         * tree-ssa-copy.c (may_propagate_copy): Likewise.
1864         (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
1865         * tree-ssa.c (warn_uninit): Likewise.
1866         * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
1867
1868 2004-09-29  Fariborz Jahanian <fjahanian@apple.com>
1869
1870         * c-decl.c (merge_decls): Use comptype when comparing
1871         types to decide on DECL_SIZE save of olddecl.
1872
1873 2004-09-29  Daniel Berlin  <dberlin@dberlin.org>
1874
1875         * tree.h (INDIRECT_REF_P): New macro.
1876         * alias.c (get_alias_set): Use it
1877         (nonoverlapping_memrefs_p): Ditto.
1878         * emit-rtl.c (mem_expr_equal_p): Ditto.
1879         (set_mem_attributes_minus_bitpos): Ditto.
1880         (is_gimple_addressable): Ditto.
1881         (get_base_address): Ditto.
1882         * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
1883         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
1884         * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
1885         * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
1886         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
1887         (add_address_candidates): Ditto.
1888         (rewrite_address_base): Ditto.
1889
1890 2004-09-30  Ben Elliston  <bje@au.ibm.com>
1891
1892         * tree-flow.h (struct bb_ann_d): Remove num_preds member.
1893         * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
1894         (rewrite_ssa_into_ssa): Likewise.
1895         * tree-phinodes.c (create_phi_node): Access the number of
1896         predecessor edges using EDGE_COUNT() and not num_preds.
1897
1898 2004-09-29  Joseph S. Myers  <jsm@polyomino.org.uk>
1899
1900         PR c/7425
1901         * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
1902
1903 2004-09-29  Eric Christopher  <echristo@redhat.com>
1904
1905         * fold-const.c (tree_swap_operands_p): Remove duplicated code.
1906
1907 2004-09-29  Hans-Peter Nilsson  <hp@axis.com>
1908
1909         * config/cris/cris.md (moverside, movemside): With MEM, make sure
1910         the address is (plus reg mem).
1911
1912 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
1913
1914         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
1915
1916 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
1917
1918         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
1919         cascaded if ... else if with a switch.
1920
1921 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1922
1923         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
1924
1925 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1926
1927         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
1928         and TI_VA_LIST_FPR_COUNTER_FIELD.
1929         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
1930         * tree-pass.h (pass_stdarg): Add.
1931         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
1932         * tree-stdarg.c: New file.
1933         * Makefile.in (OBJS-common): Add tree-stdarg.o.
1934         (tree-stdarg.o): Add dependencies.
1935         * function.h (struct function): Add va_list_gpr_size and
1936         va_list_fpr_size fields.
1937         * function.c (allocate_struct_function): Initialize them.
1938
1939         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
1940         va_list_{g,f}pr_counter_field.
1941         (ix86_setup_incoming_varargs): Don't do anything if reg_save
1942         area will not be used.  Only save registers that tree-stdarg.c
1943         detected they need saving.
1944         (ix86_va_start): Don't set up fields that won't be used.
1945
1946         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
1947         va_list_{g,f}pr_counter_field.
1948         (setup_incoming_varargs): Don't do anything if reg_save
1949         area will not be used.  Only save registers that tree-stdarg.c
1950         detected they need saving.
1951         (rs6000_va_start): Don't set up fields that won't be used.
1952
1953 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1954
1955         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
1956         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
1957         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
1958         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
1959         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
1960         ATTR_NONNULL_1_4): New.
1961
1962 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
1963
1964         PR tree-optimization/17697
1965         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
1966         cfg if needed.
1967
1968 2004-09-28  Per Bothner  <per@bothner.com>
1969
1970         * profile.c (branch_prob): Pass correct value to output_location,
1971         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
1972
1973 2004-09-28  Richard Henderson  <rth@redhat.com>
1974
1975         PR 15089
1976         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
1977         * tree-flow.h (may_propagate_copy_into_asm): Declare.
1978         * tree-ssa-ccp.c (replace_uses_in): Use it.
1979         * tree-ssa-dom.c (cprop_operand): Likewise.
1980
1981 2004-09-28 Jeff Law  <law@redhat.com>
1982
1983         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
1984         that no outgoing edges be left in the duplicate block.  Do no
1985         update information on outgoing edges or PHI nodes in target
1986         blocks here.
1987         (remove_ctrl_stmt_and_useless_edges): Renamed from
1988         remove_last_stmt_and_useless_edges.  Handle case where the
1989         block is empty or has no control statements.  Do not update edge
1990         flags here.
1991         (thread_block): Create a template block rather than copying the
1992         original block every time.  Create outgoing edges from the
1993         duplicate blocks and update PHIs at the target of the outgoing
1994         edges here.  Fix edge flags for the original block if necessary.
1995         * cfghooks (duplicate_block): No longer assert that the original
1996         block has incoming edges.
1997
1998 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
1999
2000         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
2001         Reg Vars to enforce register allocation with general constraints.
2002         (Explicit Reg Vars): Clarify relation to asm statements.
2003         (Local Reg Vars): Similar.
2004
2005 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
2006
2007         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
2008         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
2009         build_control_flow, new_edge): Remove.
2010         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
2011         (bitlst, bitlst_table_last, bitlst_table): Remove.
2012         (bblst): Store basic_block pointer instead of block index.
2013         (bblst_table): Likewise.
2014         (edgelst): Store edge pointer instead of edge index.
2015         (edgelst_table, edgelst_last): New variables.
2016         (extract_bitlst): Rename to ...
2017         (extract_edgelst): ... this.  Return edge pointers, not indices.
2018         (split_edges): Update call.
2019         (rgn_edges): Store edge pointers instead of indices.
2020         (edge_to_bit): Remove.
2021         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
2022         (SET_EDGE_TO_BIT): New macro.
2023         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
2024         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
2025         data structures instead of haifa_edge et al.  Use edge pointers
2026         instead of edge indices everywhere.
2027         (compute_dom_prob_ps): Use standard CFG data structures.  Account
2028         for exit edges.
2029         (compute_trg_info): Likewise.
2030         (propagate_deps): Likewise.
2031         (debug_candidate): Account for bblst data structure change.
2032         (check_live_1, update_live_1, is_pfree): Likewise.
2033         (IS_REACHABLE): Use standard CFG data structures.
2034         (init_ready_list): Update bblst_table/edgelst_table allocation.
2035         (schedule_region): Update alloc/cleanup code to data structure
2036         changes.  Use edge->aux to store per-region edge index.
2037         (init_regions): No longer call build_control_flow.  Do not
2038         create edge list any more.
2039
2040 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
2041
2042         * cse.c (cse_insn): Avoid creating direct non-local jumps.
2043         * combine.c (can_combine_p): Likewise.
2044         * local-alloc. (update_equiv_regs): Likewise.
2045
2046 2004-09-28  Richard Henderson  <rth@redhat.com>
2047
2048         PR 17531
2049         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
2050         Don't check VOIDmode here.  Force PLUS operands to common type.
2051         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
2052         Pmode if given a non pointer type.
2053
2054 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2055
2056         PR 17531
2057         * optabs.c (expand_binop): Force constants to the correct mode.
2058
2059 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
2060
2061         * config/s390/s390.c (s390_adjust_cost): Remove.
2062         (TARGET_SCHED_ADJUST_COST): Do not redefine.
2063         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
2064         * config/s390/s390.md ("main_pool"): Use "larl" type
2065         attribute if TARGET_CPU_ZARCH.
2066
2067 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
2068
2069         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
2070         variable.
2071
2072 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
2073
2074         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
2075         name to the pass.
2076
2077 2004-09-28  Steven Bosscher  <stevenb@suse.de>
2078
2079         * common.opt (flag_gcse_sm): Disable by default.
2080         (flag_gcse_las): Likewise.
2081         (flag_web): Likewise.  Create from this file.
2082         * flags.h: Remove flag_web declaration.
2083         * toplev.c (flag_web): Likewise.
2084         (process_options): Never set flag_web.
2085
2086 2004-09-28  Steven Bosscher  <stevenb@suse.de>
2087
2088         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
2089         * tree-ssa-propagate.c: Include vec.h.
2090         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
2091         instead of varrays.
2092         (cfg_blocks_add): Assert the block is not already in the worklist.
2093         Update uses of interesting_ssa_edges and varying_ssa_edges.
2094         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
2095         ssa_propagate): Likewise.
2096
2097 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
2098
2099         PR c/16409
2100         * c-decl.c (start_decl): Check for initializing incomplete array
2101         of VLAs.
2102         (build_compound_literal): Check for TYPE being error_mark_node.
2103         * c-parse.in (primary): Check for VLA compound literals.
2104
2105 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
2106
2107         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
2108         with --disable-checking.
2109
2110 2004-09-28  Devang Patel  <dpatel@apple.com>
2111
2112         * tree-pretty-print.c (dump_generic_node): Print vector types.
2113
2114 2004-09-28  Nick Clifton  <nickc@redhat.com>
2115
2116         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
2117         invocation of the function sh_init_cumulative_args.
2118         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
2119         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
2120         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
2121         * config/sh/sh.c (sh_init_cumulative_args): New function based
2122         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
2123         heuristic added to determine the setting of force_mem when a
2124         library function is being called.
2125
2126 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
2127
2128         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
2129         Skip constant arguments.
2130
2131 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
2132
2133         * tree-ssa-alias.c (create_name_tags): If PTR points to a
2134         volatile type, mark the tag volatile.
2135         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
2136         volatile.
2137
2138 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
2139
2140         * tree.def (vec_cond_expr): Fix. Change 'e'
2141         to tcc_expression.
2142
2143 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
2144
2145         * basic-block.h: Fix a comment typo.
2146
2147 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
2148
2149         * optabs.c, optabs.h: Fix comment typos.
2150
2151 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
2152
2153         * config/sparc/sparc.md (call_address_struct_value_sp32):
2154         Properly mask the immediate field of the 'unimp' instruction.
2155         (call_symbolic_struct_value_sp32): Likewise.
2156
2157 2004-09-28  Ben Elliston  <bje@au.ibm.com>
2158             Steven Bosscher  <stevenb@suse.de>
2159             Andrew Pinski  <pinskia@physics.uc.edu>
2160
2161         Merge from edge-vector-branch:
2162         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
2163         (struct edge_def): Remove pred_next, succ_next members.
2164         (struct basic_block_def): Remove pred, succ members.  Add preds
2165         and succs members of type VEC(edge).
2166         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
2167         (BRANCH_EDGE): Likewise.
2168         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
2169         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
2170         (edge_iterator): New.
2171         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
2172         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
2173         (FOR_EACH_EDGE): New.
2174         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
2175         where applicable.
2176         (rotate_loop): Likewise.
2177         (find_traces_1_route): Likewise.
2178         (bb_to_key): Likewise.
2179         (connect_traces): Likewise.
2180         (copy_bb_p): Likewise.
2181         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
2182         (add_labels_and_missing_jumps): Likewise.
2183         (fix_up_fall_thru_edges): Likewise.
2184         (find_jump_block): Likewise.
2185         (fix_crossing_conditional_branches): Likewise.
2186         (fix_crossing_unconditional_branches): Likewise.
2187         (add_reg_crossing_jump_notes): Likewise.
2188         * bt-load.c (augment_live_range): Likewise.
2189         * cfg.c (clear_edges): Likewise.
2190         (unchecked_make_edge): Likewise.
2191         (cached_make_edge): Likewise.
2192         (make_single_succ_edge): Likewise.
2193         (remove_edge): Likewise.
2194         (redirect_edge_succ_nodup): Likewise.
2195         (check_bb_profile): Likewise.
2196         (dump_flow_info): Likewise.
2197         (alloc_aux_for_edges): Likewise.
2198         (clear_aux_for_edges): Likewise.
2199         (dump_cfg_bb_info): Likewise.
2200         * cfganal.c (forwarder_block_p): Likewise.
2201         (can_fallthru): Likewise.
2202         (could_fall_through): Likewise.
2203         (mark_dfs_back_edges): Likewise.
2204         (set_edge_can_fallthru_flag): Likewise.
2205         (find_unreachable_blocks): Likewise.
2206         (create_edge_list): Likewise.
2207         (verify_edge_list): Likewise.
2208         (add_noreturn_fake_exit_edges): Likewise.
2209         (connect_infinite_loops_to_exit): Likewise.
2210         (flow_reverse_top_sort_order_compute): Likewise.
2211         (flow_depth_first_order_compute): Likewise.
2212         (flow_preorder_transversal_compute): Likewise.
2213         (flow_dfs_compute_reverse_execute): Likewise.
2214         (dfs_enumerate_from): Likewise.
2215         (compute_dominance_frontiers_1): Likewise.
2216         * cfgbuild.c (make_edges): Likewise.
2217         (compute_outgoing_frequencies): Likewise.
2218         (find_many_sub_basic_blocks): Likewise.
2219         (find_sub_basic_blocks): Likewise.
2220         * cfgcleanup.c (try_simplify_condjump): Likewise.
2221         (thread_jump): Likewise.
2222         (try_forward_edges): Likewise.
2223         (merge_blocks_move): Likewise.
2224         (outgoing_edges_match): Likewise.
2225         (try_crossjump_to_edge): Likewise.
2226         (try_crossjump_bb): Likewise.
2227         (try_optimize_cfg): Likewise.
2228         (merge_seq_blocks): Likewise.
2229         * cfgexpand.c (expand_gimple_tailcall): Likewise.
2230         (expand_gimple_basic_block): Likewise.
2231         (construct_init_block): Likewise.
2232         (construct_exit_block): Likewise.
2233         * cfghooks.c (verify_flow_info): Likewise.
2234         (dump_bb): Likewise.
2235         (delete_basic_block): Likewise.
2236         (split_edge): Likewise.
2237         (merge_blocks): Likewise.
2238         (make_forwarder_block): Likewise.
2239         (tidy_fallthru_edges): Likewise.
2240         (can_duplicate_block_p): Likewise.
2241         (duplicate_block): Likewise.
2242         * cfglayout.c (fixup_reorder_chain): Likewise.
2243         (fixup_fallthru_exit_predecessor): Likewise.
2244         (can_copy_bbs_p): Likewise.
2245         (copy_bbs): Likewise.
2246         * cfgloop.c (flow_loops_cfg_dump): Likewise.
2247         (flow_loop_entry_edges_find): Likewise.
2248         (flow_loop_exit_edges_find): Likewise.
2249         (flow_loop_nodes_find): Likewise.
2250         (mark_single_exit_loops): Likewise.
2251         (flow_loop_pre_header_scan): Likewise.
2252         (flow_loop_pre_header_find): Likewise.
2253         (update_latch_info): Likewise.
2254         (canonicalize_loop_headers): Likewise.
2255         (flow_loops_find): Likewise.
2256         (get_loop_body_in_bfs_order): Likewise.
2257         (get_loop_exit_edges): Likewise.
2258         (num_loop_branches): Likewise.
2259         (verify_loop_structure): Likewise.
2260         (loop_latch_edge): Likewise.
2261         (loop_preheader_edge): Likewise.
2262         * cfgloopanal.c (mark_irreducible_loops): Likewise.
2263         (expected_loop_iterations): Likewise.
2264         * cfgloopmanip.c (remove_bbs): Likewise.
2265         (fix_bb_placement): Likewise.
2266         (fix_irreducible_loops): Likewise.
2267         (remove_path): Likewise.
2268         (scale_bbs_frequencies): Likewise.
2269         (loopify): Likewise.
2270         (unloop): Likewise.
2271         (fix_loop_placement): Likewise.
2272         (loop_delete_branch_edge): Likewise.
2273         (duplicate_loop_to_header_edge): Likewise.
2274         (mfb_keep_just): Likewise.
2275         (create_preheader): Likewise.
2276         (force_single_succ_latches): Likewise.
2277         (loop_split_edge_with): Likewise.
2278         (create_loop_notes): Likewise.
2279         * cfgrtl.c (rtl_split_block): Likewise.
2280         (rtl_merge_blocks): Likewise.
2281         (rtl_can_merge_blocks): Likewise.
2282         (try_redirect_by_replacing_jump): Likewise.
2283         (force_nonfallthru_and_redirect): Likewise.
2284         (rtl_tidy_fallthru_edge): Likewise.
2285         (commit_one_edge_insertion): Likewise.
2286         (commit_edge_insertions): Likewise.
2287         (commit_edge_insertions_watch_calls): Likewise.
2288         (rtl_verify_flow_info_1): Likewise.
2289         (rtl_verify_flow_info): Likewise.
2290         (purge_dead_edges): Likewise.
2291         (cfg_layout_redirect_edge_and_branch): Likewise.
2292         (cfg_layout_can_merge_blocks_p): Likewise.
2293         (rtl_flow_call_edges_add): Likewise.
2294         * cse.c (cse_cc_succs): Likewise.
2295         * df.c (hybrid_search): Likewise.
2296         * dominance.c (calc_dfs_tree_nonrec): Likewise.
2297         (calc_dfs_tree): Likewise.
2298         (calc_idoms): Likewise.
2299         (recount_dominator): Likewise.
2300         * domwalk.c (walk_dominator_tree): Likewise.
2301         * except.c (emit_to_new_bb_before): Likewise.
2302         (connect_post_landing_pads): Likewise.
2303         (sjlj_emit_function_enter): Likewise.
2304         (sjlj_emit_function_exit): Likewise.
2305         (finish_eh_generation): Likewise.
2306         * final.c (compute_alignments): Likewise.
2307         * flow.c (calculate_global_regs_live): Likewise.
2308         (initialize_uninitialized_subregs): Likewise.
2309         (init_propagate_block_info): Likewise.
2310         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2311         * gcse.c (find_implicit_sets): Likewise.
2312         (bypass_block): Likewise.
2313         (bypass_conditional_jumps): Likewise.
2314         (compute_pre_data): Likewise.
2315         (insert_insn_end_bb): Likewise.
2316         (insert_store): Likewise.
2317         (remove_reachable_equiv_notes): Likewise.
2318         * global.c (global_conflicts): Likewise.
2319         (calculate_reg_pav): Likewise.
2320         * graph.c (print_rtl_graph_with_bb): Likewise.
2321         * ifcvt.c (mark_loop_exit_edges): Likewise.
2322         (merge_if_block): Likewise.
2323         (find_if_header): Likewise.
2324         (block_jumps_and_fallthru_p): Likewise.
2325         (find_if_block): Likewise.
2326         (find_cond_trap): Likewise.
2327         (block_has_only_trap): Likewise.
2328         (find_if_case1): Likewise.
2329         (find_if_case_2): Likewise.
2330         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2331         (perfect_nestify): Likewise.
2332         * lcm.c (compute_antinout_edge): Likewise.
2333         (compute_laterin): Likewise.
2334         (compute_available): Likewise.
2335         (compute_nearerout): Likewise.
2336         * loop-doloop.c (doloop_modify): Likewise.
2337         * loop-init.c (loop_optimizer_init): Likewise.
2338         * loop-invariant.c (find_exits): Likewise.
2339         * loop-iv.c (simplify_using_initial_values): Likewise.
2340         (check_simple_exit): Likewise.
2341         (find_simple_exit): Likewise.
2342         * loop-unroll.c (peel_loop_completely): Likewise.
2343         (unroll_loop_constant_iterations): Likewise.
2344         (unroll_loop_runtime_iterations): Likewise.
2345         * loop-unswitch.c (may_unswitch_on): Likewise.
2346         (unswitch_loop): Likewise.
2347         * modulo-sched.c (generate_prolog_epilog): Likewise.
2348         (sms_schedule): Likewise.
2349         * postreload-gcse.c (eliminate_partially_redundant_load):
2350         Likewise.
2351         * predict.c (can_predict_insn_p): Likewise.
2352         (set_even_probabilities): Likewise.
2353         (combine_predictions_for_bb): Likewise.
2354         (predict_loops): Likewise.
2355         (estimate_probability): Likewise.
2356         (tree_predict_by_opcode): Likewise.
2357         (tree_estimate_probability): Likewise.
2358         (last_basic_block_p): Likewise.
2359         (propagate_freq): Likewise.
2360         (estimate_loops_at_level): Likewise.
2361         (estimate_bb_frequencies): Likewise.
2362         * profile.c (instrument_edges): Likewise.
2363         (get_exec_counts): Likewise.
2364         (compute_branch_probabilities): Likewise.
2365         (branch_prob): Likewise.
2366         * ra-build.c (live_in): Likewise.
2367         * ra-rewrite.c (rewrite_program2): Likewise.
2368         * ra.c (reg_alloc): Likewise.
2369         * reg-stack.c (reg_to_stack): Likewise.
2370         (convert_regs_entry): Likewise.
2371         (compensate_edge): Likewise.
2372         (convert_regs_1): Likewise,
2373         (convert_regs_2): Likewise.
2374         (convert_regs): Likewise.
2375         * regrename.c (copyprop_hardreg_forward): Likewise.
2376         * reload1.c (fixup_abnormal_edges): Likewise.
2377         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
2378         (sbitmap_insersection_of_preds): Likewise.
2379         (sbitmap_union_of_succs): Likewise.
2380         (sbitmap_union_of_preds): Likewise.
2381         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
2382         (fix_basic_block_boundaries): Likewise.
2383         (sched_ebbs): Likewise.
2384         * sched-rgn.c (build_control_flow): Likewise.
2385         (find_rgns): Likewise.
2386         * tracer.c (find_best_successor): Likewise.
2387         (find_best_predecessor): Likewise.
2388         (tail_duplicate): Likewise.
2389         * tree-cfg.c (make_edges): Likewise.
2390         (make_ctrl_stmt_edges): Likewise.
2391         (make_goto_expr_edges): Likewise.
2392         (tree_can_merge_blocks_p): Likewise.
2393         (tree_merge_blocks): Likewise.
2394         (cfg_remove_useless_stmts_bb): Likewise.
2395         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
2396         (tree_block_forwards_to): Likewise.
2397         (cleanup_control_expr_graph): Likewise.
2398         (find_taken_edge): Likewise.
2399         (dump_cfg_stats): Likewise.
2400         (tree_cfg2vcg): Likewise.
2401         (disband_implicit_edges): Likewise.
2402         (tree_find_edge_insert_loc): Likewise.
2403         (bsi_commit_edge_inserts): Likewise.
2404         (tree_split_edge): Likewise.
2405         (tree_verify_flow_info): Likewise.
2406         (tree_make_forwarder_block): Likewise.
2407         (tree_forwarder_block_p): Likewise.
2408         (thread_jumps): Likewise.
2409         (tree_try_redirect_by_replacing_jump): Likewise.
2410         (tree_split_block): Likewise.
2411         (add_phi_args_after_copy_bb): Likewise.
2412         (rewrite_to_new_ssa_names_bb): Likewise.
2413         (dump_function_to_file): Likewise.
2414         (print_pred_bbs): Likewise.
2415         (print_loop): Likewise.
2416         (tree_flow_call_edges_add): Likewise.
2417         (split_critical_edges): Likewise.
2418         (execute_warn_function_return): Likewise.
2419         (extract_true_false_edges_from_block): Likewise.
2420         * tree-if-conv.c (tree_if_conversion): Likewise.
2421         (if_convertable_bb_p): Likewise.
2422         (find_phi_replacement_condition): Likewise.
2423         (combine_blocks): Likewise.
2424         * tree-into-ssa.c (compute_global_livein): Likewise.
2425         (ssa_mark_phi_uses): Likewise.
2426         (ssa_rewrite_initialize_block): Likewise.
2427         (rewrite_add_phi_arguments): Likewise.
2428         (ssa_rewrite_phi_arguments): Likewise.
2429         (insert_phi_nodes_for): Likewise.
2430         (rewrite_into_ssa): Likewise.
2431         (rewrite_ssa_into_ssa): Likewise.
2432         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
2433         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
2434         (rewrite_trees): Likewise.
2435         * tree-pretty-print.c (dump_bb_header): Likewise.
2436         (dump_implicit_edges): Likewise.
2437         * tree-sra.c (insert_edge_copies): Likewise.
2438         (find_obviously_necessary_stmts): Likewise.
2439         (remove_data_stmt): Likewise.
2440         * tree-ssa-dom.c (thread_across_edge): Likewise.
2441         (dom_opt_finalize_block): Likewise.
2442         (single_incoming_edge_ignoring_loop_edges): Likewise.
2443         (record_equivalences_from_incoming_edges): Likewise.
2444         (cprop_into_successor_phis): Likewise.
2445         * tree-ssa-live.c (live_worklist): Likewise.
2446         (calculate_live_on_entry): Likewise.
2447         (calculate_live_on_exit): Likewise.
2448         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
2449         (copy_loop_headers): Likewise.
2450         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2451         (fill_always_executed_in): Likewise.
2452         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
2453         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
2454         (compute_phi_arg_on_exit): Likewise.
2455         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
2456         (get_loops_exit): Likewise.
2457         (split_loop_exit_edge): Likewise.
2458         (ip_normal_pos): Likewise.
2459         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
2460         Likewise.
2461         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
2462         (replace_phi_with_stmt): Likewise.
2463         (value_replacement): Likewise.
2464         * tree-ssa-pre.c (compute_antic_aux): Likewise.
2465         (insert_aux): Likewise.
2466         (init_pre): Likewise.
2467         * tree-ssa-propagate.c (simulate_stmt): Likewise.
2468         (simulate_block): Likewise.
2469         (ssa_prop_init): Likewise.
2470         * tree-ssa-threadupdate.c (thread_block): Likewise.
2471         (create_block_for_threading): Likewise.
2472         (remove_last_stmt_and_useless_edges): Likewise.
2473         * tree-ssa.c (verify_phi_args): Likewise.
2474         (verify_ssa): Likewise.
2475         * tree_tailcall.c (independent_of_stmt_p): Likewise.
2476         (find_tail_calls): Likewise.
2477         (eliminate_tail_call): Likewise.
2478         (tree_optimize_tail_calls_1): Likewise.
2479         * tree-vectorizer.c (vect_transform_loop): Likewise.
2480         * var-tracking.c (prologue_stack_adjust): Likewise.
2481         (vt_stack_adjustments): Likewise.
2482         (vt_find_locations): Likewise.
2483         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2484         * config/i386/i386.c (ix86_pad_returns): Likewise.
2485         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2486         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2487
2488 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
2489
2490         PR target/16532
2491         * config/sparc/sparc.c (struct machine_function): New field
2492         'leaf_function_p' and 'prologue_data_valid_p'.
2493         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
2494         to conveniently access the above fields.
2495         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
2496         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
2497         of the generic flavor 'current_function_uses_only_leaf_regs'.
2498         (eligible_for_sibcall_delay): Likewise.
2499         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
2500         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
2501         (sparc_asm_function_prologue): Add sanity check for the assumption
2502         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
2503         (sparc_can_use_return_insn_p): New function.
2504         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
2505         (output_restore): Likewise.
2506         (output_sibcall): Likewise.
2507         (sparc_output_mi_thunk): Likewise.
2508         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
2509         * config/sparc/sparc.md (return): New expander.
2510
2511         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
2512
2513 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
2514
2515         PR c++/17642
2516         * stor-layout.c (layout_decl): Use fold_convert, not convert.
2517         (bit_from_pos): Likewise.
2518         (byte_from_pos): Likewise.
2519         (pos_from_bit): Likewise.
2520         (normalize_offset): Likewise.
2521         (place_field): Likewise.
2522         (finalize_type_size): Likewise.
2523         (layout_type): Likewise.
2524         * tree.c (build_index_type): Likewise.
2525
2526 2004-09-27  Devang Patel  <dpatel@apple.com>
2527
2528         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
2529         * genopinit.c (optabs): New entry for vcond_gen_code and
2530         vcondu_gen_code.
2531         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
2532         (get_rtx_code): New function.
2533         (vector_compare_rtx): New function.
2534         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
2535         (expand_vec_cond_expr_p): New function.
2536         (expand_vec_cond_expr): New function.
2537         (get_vcond_icode): New function.
2538         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
2539         (vcond_gen_code, vcondu_gen_code): Same.
2540
2541 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
2542
2543         * Makefile.in (STAGESTUFF): Split into ...
2544         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
2545         (mostlyclean): Update.
2546         (stage1-start, stage2-start, stage3-start, stage4-start,
2547         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
2548         Move the STAGEMOVESTUFF.
2549
2550 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2551
2552         * system.h (getpagesize): Return 'int' instead of 'long'.
2553
2554 2004-09-27  Michael Matz <matz@suse.de>
2555
2556         PR bootstrap/17698
2557         PR bootstrap/17702
2558         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
2559         bmp_iter_and_init): Shift by bit_in_word.
2560
2561 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
2562
2563         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
2564         * configure.ac: Don't sinclude it here.
2565         * configure: Regenerate.
2566
2567 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
2568
2569         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
2570         Handle AND pattern
2571
2572 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
2573
2574         PR c/13804
2575         * c-typeck.c (build_component_ref): Name type involved in
2576         diagnostic for structure or union without a member of the given
2577         name.
2578
2579 2004-09-27  DJ Delorie  <dj@redhat.com>
2580
2581         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
2582         .comm alignment is bytes, not bits.
2583
2584 2004-09-27  Devang Patel  <dpatel@apple.com>
2585
2586         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
2587         (print_call_name): Do not print VEC_COND_EXPR.
2588
2589 2004-09-27  Devang Patel  <dpatel@apple.com>
2590
2591         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
2592
2593 2004-09-27  Jan Hubicka  <jh@suse.cz>
2594
2595         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
2596
2597 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
2598
2599         * bitmap.h: Fix a comment typo.
2600
2601 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
2602
2603         * libgcc2.c (getpagesize): Change type of return value to int.
2604
2605 2004-09-26  Matt Austern  <austern@apple.com>
2606
2607         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
2608         using mmap.
2609
2610 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2611
2612         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
2613         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
2614         (bitmap_iterator): New type.
2615         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
2616         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
2617         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
2618         bmp_iter_and_init, bmp_iter_and_next): New functions.
2619         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
2620         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
2621         use iterator-style EXECUTE_IF_IN_BITMAP macros.
2622         * bitmap.c (bitmap_print): Ditto.
2623         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
2624         btr_def_live_range): Ditto.
2625         * cfganal.c (compute_dominance_frontiers_1) Ditto.
2626         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
2627         Ditto.
2628         * ddg.c (build_inter_loop_deps): Ditto.
2629         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
2630         Ditto.
2631         * except.c (remove_eh_handler): Ditto.
2632         * flow.c (reg_set_to_hard_reg_set): Ditto.
2633         * gcse.c (clear_modify_mem_tables): Ditto.
2634         * global.c (build_insn_chain): Ditto.
2635         * ifcvt.c (dead_or_predicable): Ditto.
2636         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
2637         Ditto.
2638         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
2639         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
2640         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
2641         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
2642         tree_purge_all_dead_eh_edges): Ditto.
2643         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
2644         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
2645         rewrite_ssa_into_ssa): Ditto.
2646         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
2647         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
2648         Ditto.
2649         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
2650         compute_flow_sensitive_aliasing, maybe_create_global_var,
2651         dump_points_to_info_for): Ditto.
2652         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
2653         * tree-ssa-dse.c (dse_finalize_block): Ditto.
2654         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
2655         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
2656         Ditto.
2657         * tree-ssa-loop-ivopts.c (find_induction_variables,
2658         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
2659         determine_use_iv_costs, determine_set_costs, find_best_candidate,
2660         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
2661         Ditto.
2662         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
2663         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
2664         add_call_read_ops): Ditto.
2665         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
2666
2667 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2668
2669         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
2670         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
2671
2672 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
2673
2674         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
2675         reflect size of memory regions being compared.
2676
2677 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
2678
2679         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
2680         expressions.  Always clear MEM_SIZE and alias set.
2681
2682 2004-09-26  Roger Sayle  <roger@eyesopen.com>
2683             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2684
2685         PR middle-end/17112
2686         * stor-layout.c (compute_record_mode): For records with a single
2687         field, only use the field's mode if its size matches what we'd
2688         have choosen for the record ourselves.  This forces the use of
2689         BLKmode for packed records that don't completely fill a mode.
2690
2691 2004-09-26  Roger Sayle  <roger@eyesopen.com>
2692
2693         PR middle-end/17151
2694         * combine.c (force_to_mode): Remove dubious early return test that
2695         inhibits further optimization.
2696
2697 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
2698
2699         * profile.c: Fix a comment typo.
2700
2701 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2702
2703         PR bootstrap/17591
2704         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
2705         with varying offset.
2706         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
2707         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
2708         ARRAY_REFS.
2709         (expr_invariant_in_loop_p): New function.
2710         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
2711         component_ref_field_offset for COMPONENT_REFs.  Do not allow
2712         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
2713         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
2714         MISALIGNED_INDIRECT_REFs.
2715         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
2716         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
2717         MISALIGNED_INDIRECT_REFs.
2718
2719 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
2720
2721         PR c/11459
2722         * gcc.c (cpp_options, cc1_options): Preserve relative order of
2723         -std and -ansi options.
2724
2725 2004-09-26  Jan Hubicka  <jh@suse.cz>
2726
2727         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
2728         for nested functions whose proper parent has not been output.
2729
2730         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
2731         when re-constructing profile previously invalidated by loop.
2732
2733 2004-09-25  Dale Johannesen  <dalej@apple.com>
2734
2735         * tree-gimple.c:  Move GIMPLE definition...
2736         * doc/tree-ssa.texi:  here.
2737
2738 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2739
2740         * tree-vectorizer.c: Fix a comment typo.
2741
2742 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2743
2744         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
2745         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
2746         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
2747         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
2748
2749 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2750
2751         * tree-ssa-loop-unswitch.c: Fix a comment typo.
2752
2753 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
2754
2755         * doc/passes.texi: Fix a typo.
2756
2757 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2758
2759         * tree-optimize.c (init_tree_optimization_passes): Add
2760         pass_record_bounds.
2761         * tree-pass.h (pass_record_bounds): Declare.
2762         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
2763         New pass.
2764
2765 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2766
2767         PR tree-optimization/17474
2768         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
2769         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
2770
2771 2004-09-25  Jan Hubicka  <jh@suse.cz>
2772
2773         * predict.c (counts_to_freqs): Make global.
2774         * predict.h (counts_to_freqa): Declare.
2775         * profile.c (compute_branch_probabilities): Compute frequencies
2776         * tree-profile.c (do_tree_profiling): Refine conditional on when
2777         tree profiling pass is needed.
2778
2779         * passes.c (rest_of_handle_cfg): Disable const/pure function
2780         detection when doing tree based profiling.
2781
2782         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
2783         conditional.
2784
2785 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
2786
2787         * config/mips/mips.h (struct mips_args): Clarify comments.
2788         * config/mips/mips.c (struct mips_arg_info): Likewise.
2789         (mips_arg_info): Don't allow fpr_p to affect the register or
2790         stack alignment.  Remove o64 silliness.
2791         (function_arg): Deal with the o32 float,float case specially.
2792
2793 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
2794
2795         * config/mips/mips.md (loadx, storex): Define for V2SF.
2796
2797 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2798
2799         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
2800         * config/s390/s390.c (s390_back_chain_rtx): New function.
2801         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
2802         Call anti_adjust_stack.
2803         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
2804         only if compiling with back chain.
2805         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
2806         back chain only if back chain enabled.  Use s390_back_chain_rtx.
2807
2808 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
2809
2810         * doc/trouble.texi: Remove obsolete information.  Update
2811         information on how to regenerate fixincluded headers.
2812
2813 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
2814
2815         PR c/12951
2816         * doc/invoke.texi: Document that
2817         -Wno-error-implicit-function-declaration is not accepted.
2818
2819 2004-09-24  Richard Henderson  <rth@redhat.com>
2820
2821         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
2822         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
2823         on TARGET_MAX.
2824         (alpha_expand_mov): Allow unaligned vectors.
2825         (alpha_expand_unaligned_store): Use CONST0_RTX.
2826         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
2827
2828 2004-09-24 Jeff Law  <law@redhat.com>
2829
2830         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
2831         aliasing rules.
2832         (simplify_cond_and_lookup_avail_expr): Likewise.
2833
2834 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2835
2836         PR c/12802
2837         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
2838         title.  Document interaction with -fms-extensions.
2839         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
2840         section.
2841
2842 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2843
2844         PR c/12713
2845         * doc/extend.texi: Document interaction of attribute noreturn and
2846         longjmp.
2847
2848 2004-09-24  Richard Henderson  <rth@redhat.com>
2849
2850         PR rtl-opt/17503
2851         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
2852         (som_hash, som_eq): New.
2853         (init_subregs_of_mode, record_subregs_of_mode): New.
2854         (cannot_change_mode_set_regs): Rewrite for htab implementation.
2855         (invalid_mode_change_p): Likewise.
2856         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
2857         * flow.c (mark_used_regs): Likewise.
2858         (life_analysis): Use init_subregs_of_mode.
2859         * regs.h (subregs_of_mode): Remove.
2860         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
2861
2862 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
2863
2864         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
2865         type with the copy of the conditional.
2866
2867 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
2868
2869         PR tree-opt/16954
2870         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
2871         Prevent renaming if the aliasing sets of the type which the
2872         pointer points to are different.
2873
2874 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2875
2876         PR c/17188
2877         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
2878         declarations of enumerators.
2879         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
2880         for redefinition.  Check for nested redefinition.
2881         (finish_struct): Don't check for nested redefinition.
2882         (start_enum): Check for nested redefinition.
2883
2884 2004-09-24  Devang Patel  <dpatel@apple.com>
2885
2886         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
2887         only when necesssary.
2888         (combine_blocks): Combine loop header and exit block.
2889
2890 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
2891
2892         * hooks.c (hook_tree_tree_bool_null): New.
2893         * hooks.h (hook_tree_tree_bool_null): Declare it.
2894         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
2895         * targhooks.c (default_fold_builtin): Remove.
2896         * targhooks.h (default_fold_builtin): Remove.
2897
2898 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2899
2900         PR rtl-optimization/17625
2901         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
2902
2903 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
2904
2905         PR tree-opt/17624
2906         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
2907         Reject if any of the operands occur in an abnormal PHI.
2908
2909 2004-09-24  Andreas Schwab  <schwab@suse.de>
2910
2911         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
2912         rules.
2913
2914 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2915
2916         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
2917         if the GNU assembler is used.
2918         (sparc-*-solaris2*): Likewise.
2919         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
2920         (dbxout_function_end): Protect N_ENSYM with it.
2921         (dbxout_begin_prologue): Protect N_BNSYM with it.
2922         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
2923         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
2924         * config/sparc/sol2-gas.h: New file.
2925
2926 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
2927
2928         PR bootstrap/17369
2929         * Makefile.in (@set_gcc_lib_path@): Added.
2930
2931         * configure.ac: Include ../config/gcc-lib-path.m4. Use
2932         TL_AC_GNU_MAKE_GCC_LIB_PATH.
2933         * configure: Regenerated.
2934
2935 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2936
2937         PR c/6980
2938         * c-typeck.c (build_c_cast): Improve wording of
2939         -Wbad-function-cast diagnostic.
2940
2941 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
2942
2943         PR target/17626
2944         * config/cris/cris.md (moverside, movemside): Rename variable
2945         "reg" to "otherop".  To generate canonical RTX, check that otherop
2946         isn't constant instead of checking that operand 1 is a register.
2947
2948 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
2949
2950         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
2951
2952 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
2953             Jakub Jelinek  <jakub@redhat.com>
2954
2955         * tree-flow.h (find_new_referenced_vars): Add prototype.
2956         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
2957         Move to...
2958         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
2959         ... here.
2960         (mark_new_vars_to_rename): Walk through all operands.
2961         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
2962         (execute_fold_all_builtins): Use it.
2963         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
2964
2965 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
2966
2967         * gthr-tpf.h: New file.
2968         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
2969         * gthr.h: Use gthr-tpf.h on TPF OS.
2970
2971 2004-09-23 Jeff Law  <law@redhat.com>
2972
2973         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
2974         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
2975         (substitute_and_fold):  Likewise.
2976         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
2977         except invariants from SSA_NAME_VALUE.
2978         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
2979         and SET_SSA_NAME_EQUIV.
2980         (restore_vars_to_original_value, record_const_or_copy): Likewise.
2981         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
2982         (record_equality, cprop_into_successor_phis): Likewise.
2983         (record_equivalences_from_stmt, cprop_operand): Likewise.
2984         (lookup_avail_expr): Likewise.
2985         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
2986         from SSA_NAME_VALUE.
2987         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
2988         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
2989         annotation from the VALUE_HANDLE field.
2990
2991 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
2992
2993         PR c++/13989
2994         PR c++/9844
2995         * tree.c (reconstruct_complex_type): Remove extra "this".
2996         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
2997         Add V4SFmode to case statement.
2998
2999 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
3000
3001         PR c/16833
3002         * doc/extend.texi, doc/invoke.texi: Document interaction of
3003         -fno-builtin with format checks.  Note that built-in functions
3004         have effects beyond generating code that avoids calls to those
3005         functions.
3006
3007 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
3008
3009         PR tree-optimization/17533
3010         * dominance.c (verify_dominators): Tolerate even more incorrect
3011         dominance data during error message printing.
3012         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
3013         and edges more correctly.
3014
3015 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
3016
3017         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
3018         New tree-codes.
3019         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
3020         MISALIGNED_INDIRECT_REF.
3021         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
3022         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
3023         Likewise.
3024         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
3025         (find_interesting_uses_address): Likewise.
3026         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
3027         (build_fold_addr_expr_with_type): Likewise.
3028         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
3029         * print-rtl.c (print_mem_expr): Likewise.
3030         * tree-dump.c (dequeue_and_dump): Likewise.
3031         * tree-eh.c (tree_could_trap_p): Likewise.
3032         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
3033         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
3034         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
3035         Likewise.
3036         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3037         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
3038         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
3039         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
3040         (add_address_candidates, rewrite_address_base): Likewise.
3041         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
3042         Likewise.
3043         * tree.c (staticp, build1_stat): Likewise.
3044
3045         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
3046         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
3047         * tree-ssa-operands.c (get_expr_operands): Likewise.
3048         * expr.c (expand_expr_real_1): Likewise.
3049
3050         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
3051         optabs.
3052         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
3053         for the new optabs.
3054         (expand_ternary_op): New function.
3055         * genopinit.c (optabs): Handle the new optabs.
3056         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
3057         (init_optabs): Initialize vec_realign_load_optab.
3058         (expand_ternary_op): New functions.
3059
3060         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
3061         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
3062         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
3063         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
3064         * target.h (struct vectorize): New member for struct gcc_target.
3065         (misaligned_mem_ok): New member for targetm.vectorize.
3066         (builtin_mask_for_load): Likewise.
3067         (builtin_mask_for_store): Likewise.
3068         * targethooks.c (default_vect_misaligned_mem_ok): New function.
3069         * targethooks.h (default_vect_misaligned_mem_ok): New function.
3070
3071         * config/rs6000/altivec.md (build_vector_mask_for_load): New
3072         define_expand.
3073         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
3074         (vec_realign_load_v16qi): New define_insn.
3075         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
3076         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
3077         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
3078         (altivec_builtin_mask_for_store): New variables.
3079         (rs6000_builtin_mask_for_load): New function. Implements
3080         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
3081         (rs6000_builtin_mask_for_store): New function. Implements
3082         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
3083         (rs6000_expand_builtin): Expand the target builtins
3084         builtin_mask_for_load and builtin_mask_for_store.
3085         (altivec_init_builtins): Initialize the new target builtins.
3086         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
3087         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
3088
3089         * tree-vectorizer.c (vect_create_data_ref): Renamed to
3090         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
3091         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
3092         (vectorizable_store): Call vect_create_data_ref_ptr with additional
3093         arguments, and create an indirect_ref with its return value data_ref.
3094         Check aligned_access_p.
3095         (vectorizable_load): Handle misaligned loads, using software-pipelined
3096         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
3097         vec_realign_load_optab is supported, or using a scheme without
3098         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
3099         misaligned_mem_ok is supported.
3100
3101         (vect_finish_stmt_generation): Typo.
3102         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
3103         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
3104         presence of misaligned loads.
3105         (vect_analyze_data_ref_access): Add check for constant init.
3106         (vect_get_symbl_and_dr): Remove duplicate line.
3107         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
3108
3109 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
3110
3111         * builtins.c: Fix a comment typo.
3112
3113 2004-09-23  Jan Hubicka  <jh@suse.cz>
3114
3115         * profile.c (branch_prob): Do not verify flow info in the middle of the
3116         pass.
3117
3118 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3119
3120         * cfgloop.h (update_single_exits_after_duplication): Declare.
3121         (loopify, split_loop_bb): Declaration changed.
3122         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
3123         of rtx.
3124         (loopify): Added redirect_all_edges argument.
3125         (update_single_exits_after_duplication): Export.
3126         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
3127         * tree-flow.h (tree_duplicate_loop_to_header_edge,
3128         tree_ssa_loop_version): Declare.
3129         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
3130         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
3131         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
3132         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
3133
3134         * tree-ssa-loop-unswitch.c: New file.
3135         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
3136         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
3137         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
3138         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
3139         * tree-pass.h (pass_unswitch): Declare.
3140         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
3141         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
3142         * doc/passes.texi: Documen tree level loop unswitching.
3143
3144 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
3145
3146         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
3147
3148 2004-09-22  Eric Christopher  <echristo@redhat.com>
3149
3150         * builtins.c (simplify_builtin_va_start): Remove.
3151         (simplify_builtin): Ditto.
3152         (fold_builtin_strchr): Ditto.
3153         (simplify_builtin_*): Rename remainders to fold_builtin_*.
3154         (expand_builtin): Fix up for above changes.
3155         (fold_builtin_1): Add new folders. Change for above.
3156         (expand_builtin_va_start): Call fold_builtin_next_arg.
3157         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
3158         * tree.h: Remove prototype for simplify_builtin.
3159
3160 2004-09-23  Jan Hubicka  <jh@suse.cz>
3161
3162         PR debug/17389
3163         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
3164         of fully inlined functions.
3165         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
3166         inlined.
3167
3168         * cfgexpand.c (add_reg_br_prob_note): New function.
3169         (expand_gimple_cond_expr): Use it.
3170         (tree_expand_cfg): No longer kill the profile.
3171         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
3172         only if it is present.
3173         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
3174         * predict.c (combine_predictions_for_insn): Set the probabilities
3175         based on REG_BR_PROB note if present.
3176         * predict.c (branch_prob): Profile is read only with
3177         flag_branch_probabilities.
3178
3179 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
3180
3181         * aclocal.m4: Add in gettext's m4 includes.
3182         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
3183         * configure.ac: Add in check for iconv.h
3184         * configure: Regenerate.
3185
3186 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
3187
3188         * aclocal.m4: Update for rename of gettext-sister.m4.
3189
3190 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
3191
3192         Fix PR tree-optimization/17587
3193         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
3194         (insert_aux): Instead of here.
3195
3196 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
3197
3198         PR tree-optimization/16721
3199         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
3200         * tree-ssa-alias.c (create_memory_tag): Move setting of
3201         TREE_THIS_VOLATILE ...
3202         (get_tmt_for): ... here.
3203
3204 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3205
3206         * config/sparc/sparc.md (cmove splitter): Fix formatting.
3207         (conditional_trap expander): Reject inappropriate CCmodes.
3208         (conditional trap insn): Use V9 syntax if possible.
3209
3210 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
3211
3212         PR c/16566
3213         * c-typeck.c (build_component_ref): Don't special-case
3214         COMPOUND_EXPR.
3215
3216 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
3217
3218         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
3219         returns NULL.
3220
3221 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
3222
3223         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
3224         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
3225         TRUTH_XOR_EXPR): Mention the restriction on types.
3226
3227 2004-09-22  Matt Austern  <austern@apple.com>
3228
3229         * config/darwin.c (darwin_make_decl_one_only):
3230         Allow coalesced symbol to appear in static archive's table of contents
3231
3232 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
3233
3234         PR tree-optimization/17512
3235         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
3236         special cases.
3237
3238 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
3239
3240         * dbxout.c (get_lang_number): Do not define if
3241         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
3242
3243 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
3244
3245         PR target/15583
3246         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
3247         builtin_define ("__USE_INIT_FINI__").
3248
3249 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
3250
3251         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
3252         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
3253         * config/s390/s390.h (TARGET_TPF): New macro.
3254         * config/s390/s390.md ("eh_return"): New expander.
3255         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
3256         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
3257         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
3258         * config/s390/tpf.h (TARGET_TPF): Define to 1.
3259         (STACK_POINTER_OFFSET): Increase to 448.
3260         (TARGET_DEFAULT): Set -mtpf-trace on as default.
3261         (TPF_LOC_DIFF_OFFSET): New macro.
3262         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
3263         encoding.
3264         (__isPATrange): Add prototype.
3265         (MD_FALLBACK_FRAME_STATE_FOR): Define.
3266         * config/s390/tpf-eh.c: New file.
3267
3268 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
3269
3270         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
3271         operands in an integer comparison.
3272         * tree-cfg.c (find_taken_edge): Call fold() to determine
3273         whether the predicate is known.
3274
3275 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
3276
3277         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
3278         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
3279         Create build and doc directories along with the language directories.
3280         Don't create doc directory separately.
3281         * configure: Regenerate.
3282         * Makefile.in: Create all object and executables files built
3283         with the build compiler in a build/ directory.
3284         (genobjnames): Add missing build objects.
3285         (STAGESTUFF): Don't stage the gen* programs.
3286         (ggc-none.o): Define dependencies for the target compiler.
3287         (build-print-rtl.o): Rename to build/print-rtl.o.
3288         (build-errors.o): Rename to build/errors.o.
3289         (build-varray.o): Rename to build/varray.o.
3290         (maintainerclean): Delete the contents of the build directory.
3291         ($(genobjs): %.o): Explicitly use -o.
3292         (build/insn-conditions.o): Delete specfic rule to use generic rule.
3293         (build/gengtype-lex.o): Likewise.
3294         (build/gengtype-yacc.o): Likewise.
3295         (build/gcov-iov.o): Likewise.
3296
3297 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
3298
3299         * vec.h (VEC_space): Return true if there _is_ space.
3300         (VEC_reserve): Adjust.
3301
3302 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
3303
3304         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
3305         use FPRs for scalar, complex and vector types only.
3306
3307 2004-09-21 Jeff Law  <law@redhat.com>
3308
3309         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
3310         the opt_stats_d structure.
3311         (vrp_data): Change from a varray into a hash table.
3312         (vrp_hash_elt): New structure for elements in the vrp hash table.
3313         (vrp_hash, vrp_eq):New functions for hashing and testing equality
3314         in the vrp hash table.
3315         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
3316         initialization slightly to make it easier to read.  No longer need
3317         to grow/clear the varray.  Instead empty and delete the hash table.
3318         (dom_opt_finalize_block): Update due to change of VRP_DATA from
3319         a varray to a hash table.
3320         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
3321
3322         * tree-ssa-ccp.c (get_default_value): If we have a constant
3323         value recorded for an SSA_NAME, then use that constant as
3324         the initial lattice value.
3325         (substitute_and_fold): Transfer equivalences discovered into
3326         SSA_NAME_EQUIV.
3327
3328         * tree.h (SSA_NAME_EQUIV): Add comments.
3329         (SET_SSA_NAME_EQUIV): Similarly.
3330
3331 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
3332
3333         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
3334
3335         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
3336
3337 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
3338
3339         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
3340         (finish_decl): Likewise.
3341
3342 2004-09-21  Devang Patel  <dpatel@apple.com>
3343
3344         * tree.def (VEC_COND_EXPR): New tree node.
3345         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
3346
3347 2004-09-21  Stan Shebs  <shebs@apple.com>
3348
3349         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
3350         * config/rs6000/darwin-world.asm: Likewise.
3351
3352 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
3353
3354         * tree-ssa.c (verify_def): Use print_generic_stmt,
3355         not debug_generic_stmt.
3356         (verify_use): Ditto.
3357         (verify_phi_args): Ditto.
3358         (verify_ssa): Ditto.
3359
3360 2004-09-21  Paul Brook  <paul@codesourcery.com>
3361
3362         * varasm.c (default_assemble_integer): Return false for values wider
3363         than the target word size.  Works around GAS bug.
3364
3365 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
3366
3367         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
3368         gets value 0.
3369         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
3370         if it has value 0.
3371
3372 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
3373
3374         * c-typeck.c (build_function_call): Give name of object
3375         we are attempting to call in error message.
3376         * c-objc-common.c (c_tree_printer): Call pp_expression,
3377         not return false, for 'E' case.
3378
3379 2004-09-21  Steven Bosscher  <stevenb@suse.de>
3380
3381         PR rtl-optimization/17482
3382         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
3383         load_killed_in_block_p): Clarify comments.
3384         (record_last_reg_set_info): Make static inline.
3385         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
3386         (record_opr_changes): New function to replace the above.
3387         (compute_hash_table): Clarify comments.  Use record_opr_changes.
3388         (reg_set_between_after_reload_p): Clean up.
3389         (reg_used_between_after_reload_p): Likewise.
3390         (eliminate_partially_redundant_load): Clarify comments.
3391
3392 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3393
3394         PR rtl-optimization/17266
3395         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
3396
3397 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
3398
3399         PR rtl-optimization/14851
3400         * rtlanal.c (commutative_operand_precedence): Calculate
3401         precedence of stripped constant.
3402
3403 2004-09-20 Jeff Law  <law@redhat.com>
3404            Jan Hubicka  <jh@suse.cz>
3405
3406         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
3407         initialize key elements here.
3408         (release_ssa_name): Zero the released SSA_NAME here.
3409         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
3410         (struct tree_ssa_name): Add new "equiv" field.
3411         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
3412         (tree_ssa_dominator_optimize): No longer allocate, resize or
3413         clear CONST_AND_COPIES.
3414         (get_value_for, set_value_for): Kill.
3415         (thread_across_edge): Get/set the equivalency using
3416         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
3417         (restore_vars_to_original_value): Likewise.
3418         (record_equivalences_from_phis): Likewise.
3419         (record_dominating_conditions): Likewise.
3420         (record_const_or_copy, record_equality): Likewise.
3421         (lookup_avail_expr): Likewise.
3422         (record_equivalences_from_stmt, cprop_operand): Likewise.
3423         (cprop_into_successor_phis): No longer need to pass around
3424         CONST_AND_COPIES.  Callers updated. Get equivalences via
3425         SSA_NAME_EQUIV.
3426         (cprop_into_phis): Likewise.
3427
3428 2004-09-20  Matt Austern <austern@apple.com>
3429             Zack Weinberg  <zack@codesourcery.com>
3430
3431         * c-common.c (fix_string_type): Build the unqualified array
3432         type unconditionally, then use c_build_qualified_type to get
3433         the proper const-qualified variant, and set its
3434         TYPE_MAIN_VARIANT to refer to the unqualified type.
3435         * c-lex.c (c_lex_return_raw_string): New global.
3436         (c_lex_with_flags): Honor it.
3437         * c-pragma.h: Declare it.
3438
3439 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
3440
3441         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
3442
3443 2004-09-21  Jan Hubicka  <jh@suse.cz>
3444
3445         PR middle-end/17126
3446         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
3447         (tree_rest_of_compilation): Cleanup.
3448
3449 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
3450
3451         * config/s390/s390.c (s390_select_rtx_section): Remove.
3452         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
3453
3454 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3455
3456         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
3457         note to pretend a direct save from the original register when an
3458         intermediate register is used for the save.
3459
3460 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3461
3462         * tsystem.h (alloca): Provide a default definition.
3463
3464         Revert:
3465         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3466             * unwind-dw2.c: Call __builtin_alloca, not alloca.
3467
3468 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
3469
3470         PR tree-opt/17558
3471         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
3472         aliasing sets are the same rather than just conflicting.
3473
3474 2004-09-20  Jan Hubicka  <jh@suse.cz>
3475
3476         PR middle-end/16460
3477
3478         * cgraph.c (cgraph_unnest_node): New function.
3479         (c_finalize): Rename to ....
3480         (c_warn_unused_result_recursivly): ... this one; do only the warning
3481         (finish_function): Finalize the toplevel function; do not lower nested tree.
3482         * cgraph.h (cgraph_unnest_node): Declare.
3483         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
3484         nestedness datastructure.
3485         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
3486         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
3487         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
3488
3489 2004-09-20  Richard Henderson  <rth@redhat.com>
3490
3491         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
3492         from some_small_symbolic_operand_1; export.
3493         (some_small_symbolic_operand): Remove.
3494         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
3495         extra C check.
3496         * config/alpha/predicates.md (some_small_symbolic_operand): New.
3497
3498 2004-09-20  Jan Hubicka  <jh@suse.cz>
3499
3500         * predict.c (return_prediction): New function.
3501         (apply_return_prediction): Likewise.
3502         (tree_bb_level_predictions): Likewise.
3503         (tree_estimate_probability): Add noreturn exit edges; call
3504         bb_level_predictions; fix logic of return heuristics.
3505         (predict_paths_leading_to):  Rescuesce from old CVS version of
3506         process_note_prediction function.
3507         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
3508
3509 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
3510
3511         * config/s390/s390.c (s390_frame_info): Added alignment statement for
3512         floating point register area on stack.
3513
3514 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
3515
3516         * predict.c (expr_expected_value): Use *_CLASS_P macros.
3517
3518 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
3519
3520         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
3521         generating useless garbage.
3522
3523 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
3524
3525         * builtins.c (fold_builtin): Call the new omonymous
3526         target hook for machine-dependent built-ins.
3527         * target-def.h (TARGET_FOLD_BUILTIN): New.
3528         * target.h (struct gcc_target): Add the fold_builtin hook.
3529         * targhooks.c (default_fold_builtin): New.
3530         * targhooks.h (default_fold_builtin): Declare it.
3531
3532 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
3533
3534         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
3535         comment typos.
3536
3537 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
3538
3539         PR target/17565
3540         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
3541
3542 2004-09-20  Jan Hubicka  <jh@suse.cz>
3543
3544         * predict.c (estimate_probability): Remove unnecesary code.
3545
3546 2004-09-19  Ira Rosen  <irar@il.ibm.com>
3547
3548         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
3549         (STMT_VINFO_VECT_DR_BASE): Declare.
3550         (VECT_SMODULO): Declare.
3551         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
3552         (vect_compute_array_base_alignment): New function.
3553         (vect_analyze_data_ref_access): Check array indices. Remove one
3554         dimensional arrays restriction.
3555         (vect_get_ptr_offset): New function.
3556         (vect_get_symbl_and_dr): New function.
3557         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
3558         (former name vect_get_base_decl_and_bit_offset).
3559         (vect_create_index_for_array_ref): Removed.
3560         (vect_create_index_for_vector_ref): New function.
3561         (vect_create_addr_base_for_vector_ref): New function.
3562         (vect_create_data_ref): Handle additional data refs. Call
3563         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
3564         (vect_compute_data_ref_alignment): Support the changes. Call
3565         vect_get_base_and_bit_offset.
3566         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
3567         data refs. Store vect_dr_base.
3568         (vect_analyze_data_ref_accesses): Support nonconstant init.
3569         (new_stmt_vec_info): Initialize vect_dr_base field.
3570         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
3571         (get_vectype_for_scalar_type): Check for BLKmode.
3572         * tree-chrec.h (initial_condition_in_loop_num): Declare.
3573         * tree-chrec.c (initial_condition_in_loop_num): New function.
3574         (chrec_component_in_loop_num): New function.
3575         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
3576         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
3577         to be pointer to varray_type.
3578
3579 2004-09-19  Jan Hubicka  <jh@suse.cz>
3580
3581         * basic-block.h (update_bb_profile_after_threading): Declare.
3582         * cfg.c (update_bb_profile_after_threading): Break out from ...
3583         * cfgcleanup.c (try_forward_edges): ... here; use it.
3584         * tree-ssa-dom.c (thread_across_edge): Use it.
3585         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
3586         profile of the new BB.
3587
3588 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
3589
3590         * tree-ssa-pre.c (insert_into_set): Don't put
3591         is_gimple_min_invariant values into the set.
3592
3593 2004-09-19  Andreas Jaeger  <aj@suse.de>
3594
3595         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
3596         prototype.
3597
3598 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
3599
3600         * config/cris/cris.h: Preserve the original spelling in a
3601         quote.
3602
3603 2004-09-18 Jeff Law  <law@redhat.com>
3604
3605         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
3606         global varrays to replace the block local varrays.
3607         (struct dom_walk_block_data): Remove, no longer used.
3608         (get_eq_expr_value): No longer need to pass around pointers to local
3609         varrays.  Callers updated.  Unused markers added to unused parameters.
3610         (record_range, record_equivalences_from_stmt): Likewise.
3611         (record_equivalences_from_incoming_edge): Likewise.
3612         (record_var_is_nonzero): Likewise.  Update now that we have a
3613         single global varray of SSA_NAMEs that need restoring.
3614         (dom_opt_initialize_block_local_data): Kill, no longer used.
3615         (tree_ssa_dominator_optimize): Initialize new global varrays.
3616         Update callbacks in dominator walker structure.
3617         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
3618         VRP_VARIABLES_STACK.
3619         (restore_nonzero_vars_to_original_value): Update now that we have
3620         a single global varray of SSA_NAMEs that need restoring.
3621         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
3622         Remove unused variables.
3623         (optimize_stmt): Remove unused variable.
3624
3625 2004-09-18  Jan Hubicka  <jh@suse.cz>
3626
3627         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
3628
3629         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
3630         verify_cgraph call.
3631
3632 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
3633
3634         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
3635         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
3636         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
3637         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
3638         tree-ssa-operands.c, tree-ssa-phiopt.c,
3639         tree-ssa-threadupdate.c: Fix comment typos.
3640
3641 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
3642
3643         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
3644         config/arm/README-interworking, config/arm/arm-cores.def,
3645         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
3646         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
3647         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
3648         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
3649         config/frv/frv.md, config/i386/winnt.c,
3650         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
3651         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
3652         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
3653         config/mcore/mcore.c, config/mips/mips.h,
3654         config/mn10300/mn10300.md, config/pa/pa.c,
3655         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
3656         config/rs6000/rs6000.c, config/sh/symbian.c,
3657         config/sparc/sparc.h: Fix comment typos.  Follow spelling
3658         conventions.
3659
3660 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
3661
3662         PR c/17424
3663         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
3664
3665 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
3666
3667         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
3668         remove TREE_ADDRESSABLE from RESULT_DECL.
3669
3670 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
3671
3672         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
3673
3674 2004-09-18  Jan Hubicka  <jh@suse.cz>
3675
3676         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
3677         NULL.
3678         * tree-ssa-alias.c (init_alias_info): Likewise.
3679         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
3680         (verify_ssa): Likewise.
3681         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
3682
3683 2004-09-18  Jan Hubicka  <jh@suse.cz>
3684
3685         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
3686         huge offset.
3687
3688 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3689
3690         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
3691         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
3692         DW_EH_PE_sdata* for data.
3693         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3694
3695 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
3696
3697         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
3698         shared anyway.
3699
3700         PR pch/13361
3701         * c-typeck.c (constructor_asmspec): Delete.
3702         (struct initializer_stack): Delete field 'asmspec'.
3703         (start_init): Delete saving of asmspec.
3704         (finish_init): Don't update constructor_asmspec.
3705         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
3706         * stmt.c (expand_asm): Duplicate strings from tree.
3707         (expand_asm_operands): Likewise.
3708         * tree.c (tree_size): Update computation of size of STRING_CST.
3709         (make_node): Don't make STRING_CST nodes.
3710         (build_string): Allocate string with tree node.
3711         (tree_code_size): Clean up assertions, don't allow requests
3712         for "the size of a STRING_CST".
3713         * tree.def (STRING_CST): Update comment.
3714         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
3715         (tree_string): Place contents of string in tree node.
3716         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
3717         from tree.
3718
3719 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
3720
3721         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
3722         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
3723
3724 2004-09-17  Jones Desougi  <jones@ingate.com>
3725
3726         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
3727         * configure, config.in: Regenerate.
3728
3729 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
3730
3731         * tree.c, tree.h (tree_class_strings): Make array const.
3732         Reindent per coding convention.  Move asterisk to proper place
3733         per coding convention.
3734
3735 2004-09-18  Andreas Schwab  <schwab@suse.de>
3736
3737         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
3738         (tree-vectorizer.o): Likewise.
3739         (targhooks.o): Likewise.
3740
3741 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
3742             Zack Weinberg  <zack@codesourcery.com>
3743
3744         * alias.c (find_base_decl): Remove unreachable case '3' block.
3745         * expr.c (safe_from_p): Abort if passed a type.
3746         * tree-gimple.c (recalculate_side_effects): Abort if passed
3747         anything other than an expression.
3748         * tree-ssa-pre.c (phi_translate): Return expr immediately if
3749         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
3750         Abort on un-handled tree classes.
3751         (valid_in_set): Likewise.
3752         * tree.c (tree_code_class_strings): New static data.
3753
3754         * tree.h (enum tree_code_class): New.
3755         (tree_code_class_strings): Declare.
3756         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
3757         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
3758         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
3759         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
3760         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
3761
3762         * tree.def, c-common.def, objc/objc-tree.def: Use
3763         tree_code_class enumeration constants instead of code letters.
3764
3765         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
3766         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
3767         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
3768         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
3769         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
3770         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
3771         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
3772         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
3773         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
3774         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
3775         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
3776         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
3777         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
3778         Update to match.
3779
3780         * LANGUAGES: Add note about change.
3781
3782 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
3783
3784         PR tree-optimization/17319
3785         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
3786         examine pointers on the LHS of an assignment.
3787         (collect_points_to_info_r): Handle RETURN_EXPR.
3788
3789 2004-09-17 Jeff Law  <law@redhat.com>
3790
3791         * tree-ssa-dom.c (const_and_copies_stack): New.
3792         (dom_walk_block_data): Remove const_and_copies field.
3793         (record_const_or_copy): No longer need to pass in varray_type *.
3794         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
3795         Callers updated.
3796         (record_equality): Similarly.
3797         (restore_vars_to_original_value): Similarly.  Revamp to use new
3798         single global stack rather than per-block stacks.
3799         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
3800         (thread_across_edge): Remove now unused parameters.
3801         (dom_opt_initialize_block_local_data): No longer test the block
3802         local CONST_AND_COPIES.
3803         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
3804
3805 2004-09-17  Jan Hubicka  <jh@suse.cz>
3806
3807         PR tree-optimization/17509
3808         * tree-optimize.c (update_inlined_to_pointers): New function.
3809         (tree_rest_of_compilation): Use it.
3810
3811 2004-09-17  Devang Patel  <dpatel@apple.com>
3812
3813         * dbxout.c (get_lang_number): New.
3814         (dbxout_init): Include lang number in N_SO  stab.
3815         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
3816         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
3817
3818 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
3819
3820         PR tree-optimization/17273
3821         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
3822         replacement is a constant.
3823
3824 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
3825
3826         * c-tree.h (enum c_typespec_keyword): New.
3827         (struct c_declspecs): Adjust description of "type".  Remove
3828         specbits, explicit_int_p and explicit_char_p.  Rename
3829         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
3830         short_p, signed_p, unsigned_p and complex_p.
3831         (finish_declspecs): New.
3832         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
3833         typename): Call finish_declspecs.
3834         * c-decl.c (finish_declspecs): New.
3835         (declspecs_add_type): Check for combinations which cannot occur in
3836         valid specifier lists.  Update comments.
3837         (shadow_tag_warned): Remove checks done in finish_declspecs.
3838         Don't report useless type name if type defaulted to int.
3839         (grokdeclarator): Remove checks and actions done in
3840         finish_declspecs.  Don't allow for type being NULL.  Update for
3841         datastructures changes.  Initialize decl_attr.
3842         (build_null_declspecs, quals_from_declspecs): Update for
3843         datastructures changes.
3844
3845 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
3846
3847         * doc/extend.texi: Fix duplicated word.
3848
3849 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
3850
3851         * doc/invoke.texi: Remove stray explanation on
3852         -freduce-all-givs and -fmove-all-movables.
3853
3854 2004-09-17  James Morrison  <phython@gcc.gnu.org>
3855
3856         * doc/cfg.texi: Use @smallexample.
3857         * doc/md.texi: Likewise.
3858         * doc/tree-ssa.texi: Likewise.
3859         * doc/extend.texi: Likewise.  Use @r{} in comments.
3860         * doc/trouble.texi: Use @r{} in comments.
3861
3862 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
3863
3864         * configure.ac (gcc_cv_gld_version): Handle whitespace before
3865         "VERSION=".
3866         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
3867         * configure: Regenerate.
3868
3869 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
3870
3871         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
3872         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
3873         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
3874         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
3875         slashes in substitutions.
3876         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
3877
3878 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
3879
3880         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
3881         gimplify.c, lambda-code.c, optabs.c, predict.c,
3882         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
3883         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
3884         conventions.
3885
3886 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
3887
3888         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
3889         doc/extend.texi, doc/install.texi, doc/invoke.texi,
3890         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
3891         doc/trouble.texi: Use @option around options.
3892
3893 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
3894
3895         * Makefile.in (gen-protos.o): Depend on errors.h.
3896
3897 2004-09-17  Steven Bosscher  <stevenb@suse.de>
3898
3899         PR tree-optimization/17513
3900         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
3901         for successors of the entry block.
3902
3903 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
3904
3905         PR rtl-optimization/15187
3906         * ifcvt.c (noce_try_cmove_arith): Exit early if total
3907         insn_rtx_cost of both branches > BRANCH_COST
3908
3909 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
3910
3911         PR tree-optimization/17528
3912         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
3913         erase the may-alias set for a tag when merging it with
3914         another.
3915
3916 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3917
3918         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
3919         for 32-bit TARGET_SHMEDIA.
3920         (call_value): Likewise.
3921
3922 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
3923
3924         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
3925         test apply only to TREE_STATIC and DECL_EXTERNAL.
3926
3927 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3928
3929         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
3930         * basic-block.h (get_dominated_by_region): Declare.
3931         * dominance.c (get_dominated_by_region): New function.
3932         * tree-cfg.c: Include cfglayout.h.
3933         (tree_duplicate_bb): Duplicate also phi nodes.
3934         (struct ssa_name_map_entry): New type.
3935         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
3936         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
3937         allocate_ssa_names, rewrite_to_new_ssa_names_def,
3938         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
3939         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
3940         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
3941         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
3942         rewrite_to_new_ssa_names, allocate_ssa_names,
3943         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
3944         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
3945         (copy_loop_headers): Use tree_duplicate_sese_region.
3946
3947 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
3948
3949         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
3950
3951 2004-09-16 Jeff Law  <law@redhat.com>
3952
3953         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
3954         (rewrite_block_data): Remove, no longer used.
3955         (rewrite_initialize_block_local_data): Remove, no longer used.
3956         (rewrite_initialize_block): Mark parameters as unused as needed.
3957         Change references to the block local block_defs to be block_defs_stack.
3958         Push a marker onto the block_defs_stack.
3959         (ssa_rewrite_initialize_block): Similarly.
3960         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
3961         (ssa_register_new_def): No longer needs varray argument.  Use
3962         block_defs_stack instead.  No longer handle possibly null block_defs
3963         varray.  Reverse order of items we push on the stack to make it
3964         easier to identify our marker.
3965         (register_new_def): No longer handle possibly null block_defs
3966         varray.
3967         (rewrite_finalize_block): Revamp to look for markers in the global
3968         block_defs_stack varray rather than wiping a block local varray.
3969         Mark arguments as unused as needed.
3970         (ssa_rewrite_finalize_block): Similarly.
3971         (rewrite_into_ssa): Update initialization of dom walker structure
3972         to reflect that we don't need block local data anymore.  Initialize
3973         the block_defs_stack varray.
3974         (rewrite_ssa_into_ssa): Similarly.
3975         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
3976         (struct dom_walk_data): Kill block_defs field.
3977         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
3978         (thread_across_edge): Use the global block_defs_stack instead of
3979         the old block_defs varray.
3980         (dom_opt_initialize_block_local_data): Update now that we don't have
3981         block_defs field to check anymore.
3982         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
3983         (restore_currdefs_to_original_value): Use the new block_defs_stack
3984         instead of a block local varray.
3985         (dom_opt_finalize_block): Similarly.
3986         (record_equivalencs_from_phis): Similarly.
3987         (optimize_stmt, register_definitions_for_stmt): Similarly.
3988
3989 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
3990
3991         PR tree-optimization/17517
3992         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
3993         coalesce same-root variables without checking for abnormal PHI usage.
3994
3995 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
3996
3997         * cfgloop.h (duplicate_loop):  Add prototype.
3998         * cfgloopmanip.c (duplicate_loop): Make non-static.
3999         * lambda-code.c (perfect_nestify): Factor out test whether
4000         we can handle this loop into separate function.
4001         Call it.
4002         (can_convert_to_perfect_nest): New function.
4003         (replace_uses_of_x_with_y): Add modify_stmt call.
4004         * tree-loop-linear.c (linear_transform_loops): Call
4005         rewrite_into_loop_closed_ssa and free_df.
4006
4007 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
4008
4009         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
4010         loop invariant as well.
4011         (perfect_nestify): new function.
4012         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
4013         upper bounds, and steps.
4014         Set outerinductionvar properly.
4015         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
4016         parameters.
4017         Return NULL if we need a perfect loop and can't make one.
4018         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
4019         (not_interesting_stmt): New function.
4020         (phi_loop_edge_uses_def): Ditto.
4021         (stmt_uses_phi_result): Ditto.
4022         (stmt_is_bumper_for_loop): Ditto.
4023         (perfect_nest_p): Ditto.
4024         (nestify_update_pending_stmts): Ditto.
4025         (replace_uses_of_x_with_y): Ditto.
4026         (stmt_uses_op): Ditto.
4027         (perfect_nestify): Ditto.
4028         * lambda-mat.c (lambda_matrix_id_p): New function.
4029         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
4030         * lambda.h: Update prototypes.
4031         * tree-loop-linear (linear_transform_loop): Use new
4032         perfect_nest_p. Detect and ignore identity transform.
4033         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
4034
4035 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
4036
4037         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
4038         Gather also strides of accessed data.  Pass in the data references
4039         array.
4040         (try_interchange_loops): Add a new heuristic for handling the temporal
4041         locality.  Pass in the data references array.
4042         (linear_transform_loops): Pass the data references array to
4043         try_interchange_loops.
4044
4045 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
4046
4047         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
4048
4049 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
4050
4051         * doc/c-tree.texi (Classes): Remove index entries for
4052         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
4053
4054 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4055
4056         * fold-const.c (fold): Fold difference of addresses.
4057         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
4058         get_inner_reference.
4059         * tree-ssa-loop-ivopts.c (peel_address): Removed.
4060         (ptr_difference_const): Moved to fold-const.c.
4061         (split_address_cost): Use get_inner_reference instead of peel_address.
4062         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
4063         * tree.h (ptr_difference_const): Export.
4064
4065         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
4066         variable type to the dump.  Fix indentation.
4067         (idx_find_step): Handle nonconstant array_ref_element_size and
4068         array_ref_low_bound.
4069         (idx_record_use): Handle array_ref_element_size and
4070         array_ref_low_bound.
4071         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
4072         statements correctly.
4073         (get_computation_at, iv_value): Do not unshare expressions here.
4074         (rewrite_use_outer): Unshare the expression before it is emitted
4075         to code.
4076         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
4077         Moved to tree.c.
4078         * tree.c (unsigned_type_for, signed_type_for): Moved from
4079         tree-ssa-loop-niter.c.  Use langhooks.
4080         * tree.h (signed_type_for): Export.
4081
4082 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
4083
4084         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
4085         prototype.
4086
4087 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
4088
4089         PR target/11572
4090         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
4091         Add two parameters to extra_includes.
4092         (C_INCPATH_INIT): Remove.
4093         * c-incpath.c (register_include_chains): Call extra_pre_includes
4094         before adding the standard include directory.
4095         Update call to extra_includes.
4096         (!defined TARGET_EXTRA_INCLUDES): Update
4097         hook_void_charptr_charptr_int and add !define
4098         TARGET_EXTRA_PRE_INCLUDES.
4099         (!define TARGET_EXTRA_INCLUDES): Define as
4100         hook_void_charptr_charptr_int.
4101         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
4102         (target_c_incpath): Always declare.
4103         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
4104         empty function.
4105         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
4106         * config/darwin.h: (darwin_register_frameworks): Update for
4107         the two new parameters.
4108         (darwin_register_objc_includes): Add prototype.
4109         (TARGET_EXTRA_PRE_INCLUDES): Define.
4110         * config/darwin-c.c (darwin_register_objc_includes): New function.
4111         (darwin_register_frameworks): Update for the two new parameters.
4112         (target_c_incpath): Remove.
4113         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
4114         the compile line.
4115         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
4116         parameters.
4117         (TARGET_EXTRA_PRE_INCLUDES): Document.
4118
4119         * gcc.c (spec_function): Add replace-outfile.
4120         (replace_outfile_spec_function): New function.
4121         * config/darwin.h (LINK_SPEC): Add replace
4122         -lobjc with -lobjc-gnu if -fgnu-runtime is
4123         supplied.
4124         * invoke.texi (replace-outfile): Document.
4125
4126 2004-09-13  Jan Hubicka  <jh@suse.cz>
4127
4128         * predict.c (expr_expected_value, strip_builtin_expect): New function.
4129         (tree_predict_by_opcode): Use it.
4130         (tree_estimate_probability): Add, for now disabled,
4131         strip_builtin_expect call.
4132
4133 2004-09-15  James E Wilson  <wilson@specifixinc.com>
4134
4135         PR target/17455
4136         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
4137         if current_function_decl is a sibcall.
4138
4139 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
4140
4141         * varasm.c (default_function_rdodata_section): Make sure to pass
4142         along a decl for a link-once section.
4143
4144 2004-09-15  Richard Henderson  <rth@redhat.com>
4145
4146         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
4147         warning with code disable.  Fix formatting.
4148
4149 2004-09-15  Steven Bosscher  <stevenb@suse.de>
4150
4151         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
4152         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
4153         after propagating into an ADDR_EXPR.
4154
4155 2004-09-15  Andrew Pinski  <apinski@apple.com>
4156
4157         PR rtl-opt/17427
4158         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
4159         Move it out of gcc_assert.
4160
4161 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
4162
4163         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
4164         except.c, fold-const.c, function.c, langhooks.c, params.c,
4165         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
4166         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
4167         for quoting in diagnostics going through pretty-print.c.  Use ''
4168         for quoting in other diagnostic text.
4169         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
4170         translation.
4171         * Makefile.in (langhooks.o): Update dependencies.
4172         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
4173         formats.
4174
4175 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
4176
4177         * configure.ac: Check for COMDAT support.  Robustify check for
4178         SHF_MERGE support.
4179         * configure: Regenerated.
4180         * config.in: Likewise.
4181         * langhooks-def.h (lhd_comdat_group): New function.
4182         (LANG_HOOKS_COMDAT_GROUP): New macro.
4183         (LANG_HOOKS_DECLS): Use it.
4184         * langhooks.c (lhd_comdat_group): Define.
4185         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
4186         * output.h (named_section_flags): Make it a macro.
4187         (named_section_real): New function.
4188         (default_no_named_section): Add decl parameter.
4189         (default_elf_asm_named_section): Likewise.
4190         (default_coff_asm_named_section): Likewise.
4191         (default_pe_asm_named_section): Likewise.
4192         * target.h (gcc_target): Adjust type of named_section.
4193         * varasm.c (named_section_flags): Rename to named_section_real.
4194         Add decl parameter.
4195         (default_no_named_section): Add decl parameter.
4196         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
4197         with the case that ASM_COMMENT_START is "@".
4198         (default_coff_asm_named_section): Add decl parameter.
4199         (default_pe_asm_named_section): Likewise.
4200         * config/alpha/alpha.c (vms_asm_named_section): Add decl
4201         parameter.
4202         (unicosmk_asm_named_section): Likewise.
4203         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
4204         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
4205         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
4206         * config/cris/cris-protos.h (cris_target_asm_named_section):
4207         Likewise.
4208         * config/cris/cris.c (cris_target_asm_named_section):
4209         Likewise.
4210         * config/darwin/darwin-protos.h (darwin_asm_named_section):
4211         Likewise.
4212         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
4213         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
4214         * config/i386/i386-protos.h (i386_pe_asm_named_section):
4215         Likewise.
4216         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
4217         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
4218         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
4219         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
4220         Likewise.
4221         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
4222         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
4223         * cp/cp-tree.h (cxx_comdat_group): Declare.
4224         * cp/decl.c (cxx_comdat_group): New function.
4225
4226 2004-09-15  Jan Hubicka  <jh@suse.cz>
4227
4228         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
4229         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
4230
4231         * tree-cfg.c (remove_bb): Release SSA defs.
4232
4233 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
4234
4235         * doc/tm.texi: Follow spelling conventions.
4236
4237 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
4238
4239         * tree-ssa-dom.c: Fix comment typos.
4240
4241 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
4242
4243         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
4244         include ccr.
4245         (ppc_fallback_frame_state): Save location of CR.
4246
4247 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
4248
4249         * expr.c (string_constant): Handle also read-only variables
4250         initialized to string literals.
4251
4252         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
4253         into memcpy (x, y, 1) if memcpy can be expanded inline.
4254
4255 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4256
4257         PR tree-optimization/17468
4258         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
4259         definition inside a block precede uses.
4260         * tree-tailcall.c (adjust_return_value): Emit statements in the
4261         correct order.
4262
4263 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
4264
4265         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
4266
4267 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
4268
4269         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
4270
4271 2004-09-14 Jeff Law  <law@redhat.com>
4272
4273         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
4274         (struct dom_walk_block_data): Remove avail_exprs member.
4275         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
4276         (lookup_avail_expr): No longer need to pass in address of
4277         the block local available exprs stack.  All callers changed.
4278         (simplify_cond_and_lookup_avail_expr): Similarly.
4279         (simplify_switch_and_lookup_avail_expr): Similarly.
4280         (get_eq_expr_value, record_cond): Likewise.
4281         (record_dominating_conditions): Likewise.
4282         (update_rhs_and_lookup_avail_expr): Likewise.
4283         (record_equivalences_from_stmt): Likewise.
4284         (dom_opt_initialize_block_local_data): No longer test state of
4285         block local avail_exprs.
4286         (dom_opt_initialize_block): Mark unwind point in the global
4287         avail_expr stack.
4288         (remove_expressions_from_table): Update to unwind to the
4289         most recent unwind marker in the global avail_expr stack.
4290         All callers changed.
4291         (dom_opt_finalize_block): Mark unwind point in the global
4292         avail_expr stack as needed.
4293         (record_cond): Push elements into the global avail_exprs stack.
4294
4295         * tree-dfa.c (free_df_for_stmt): No longer static.
4296         (free_df): Update comments.
4297         * tree-flow.h (free_df_for_stmt): Prototype.
4298         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
4299         call release_defs.
4300
4301 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
4302
4303         PR tree-optimization/17252
4304         * tree-ssa-alias.c (may_alias_p): Don't assume that a
4305         pointer may not point to itself when using relaxed
4306         aliasing rules.
4307
4308 2004-09-14  Richard Henderson  <rth@redhat.com>
4309
4310         PR middle-end/17397
4311         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
4312         while folding <ADDR_EXPR <INDIRECT_REF X>>.
4313
4314 2004-09-14  Andrew Pinski  <apinski@apple.com>
4315
4316         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
4317         sets of the pointers but the aliasing sets of what they point to.
4318
4319 2004-09-14  Roger Sayle  <roger@eyesopen.com>
4320
4321         PR rtl-optimization/9771
4322         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
4323         conditional compilation in init_reg_sets_1.
4324         (init_reg_sets_1): Let global_regs[i] take priority over the frame
4325         (but not stack) pointer exceptions to regs_invalidated_by_call.
4326         (globalize_reg): Globalizing a fixed register may need to update
4327         regs_invalidated_by_call.
4328
4329 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
4330
4331         PR tree-optimization/15262
4332         * tree-dfa.c (dump_variable): Also print the type of the
4333         variable.
4334         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
4335         memory tags are of conflicting alias sets but have no aliased
4336         symbols in common, add one tag to the alias set of the other.
4337         (setup_pointers_and_addressables): Remove hack to deal with
4338         programs with no aliased symbols.
4339         (may_alias_p): Don't special case aggregate types.
4340
4341 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
4342
4343         PR c/15498
4344         * doc/invoke.texi (Environment Variables): Correct example locale.
4345
4346 2004-09-14  Jan Hubicka  <jh@suse.cz>
4347
4348         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
4349
4350 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
4351
4352         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
4353
4354 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
4355
4356         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
4357         restrict_p.
4358         (struct c_declarator): Change u.array.quals and pointer_quals to
4359         int.  Add u.array.attrs.
4360         (quals_from_declspecs): New.
4361         * c-decl.c (quals_from_declspecs): New.
4362         (shadow_tag_warned): Give more specific message for useless type
4363         qualifiers.
4364         (build_array_declarator, set_array_declarator_inner,
4365         grokdeclarator, make_pointer_declarator, build_null_declspecs,
4366         declspecs_add_qual): Update for changed structures.
4367
4368 2004-09-14  Jeff Law  <law@redhat.com>
4369
4370         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
4371         to a global varray.
4372         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
4373         (dom_opt_initialize_block_local_data): No longer test state
4374         of stmts_to_rescan.
4375         (dom_opt_finalize_block): Update due to change in scope of
4376         stmts_to_rescan.
4377         (optimize_stmt): Similarly.
4378
4379 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
4380
4381         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
4382         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
4383         comment typos.  Follow spelling conventions.
4384
4385 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
4386
4387         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
4388         config/i386/predicates.md, config/sparc/sparc.c: Follow
4389         spelling conventions.
4390
4391 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4392             Steven Bosscher  <stevenb@suse.de>
4393
4394         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
4395         * basic-block.h (struct reorder_block_def): Add copy_number field.
4396         * cfgloop.h (biv_p): Declare.
4397         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
4398         * common.opt (fsplit-ivs-in-unroller): New flag.
4399         * loop-iv.c (biv_p): New function.
4400         * loop-unroll.c: Include hashtab.h and recog.h.
4401         (struct iv_to_split, struct split_ivs_info): New types.
4402         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
4403         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
4404         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
4405         insert_base_initialization, split_iv): New functions.
4406         (peel_loop_completely, unroll_loop_constant_iterations,
4407         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
4408         Use them.
4409         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
4410
4411 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4412
4413         * tree-cfg.c (thread_jumps): Update dominators correctly in
4414         case destination of threaded edge dominates its source.
4415
4416 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4417
4418         * unroll.c: Removed.
4419         * loop.h: Removed.
4420         * Makefile.in (LOOP_H, unroll.o): Removed.
4421         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
4422         dependency.
4423         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
4424         reference.
4425         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
4426         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
4427         * loop.c: Do not include loop.h.
4428         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
4429         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
4430         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
4431         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
4432         struct loop_regs, struct loop_movables, struct loop_info): Moved
4433         from loop.h.
4434         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
4435         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
4436         find_common_reg_term, loop_iterations, final_giv_value): Moved
4437         from unroll.c.
4438         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
4439         loop_dump_stream, for_each_insn_in_loop, express_from,
4440         extend_value_for_giv, loop_iv_add_mult_emit_before,
4441         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
4442         loop_insn_first_p, get_condition_for_loop,
4443         loop_insn_emit_before, loop_insn_hoist,
4444         loop_insn_sink): Made static.
4445         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
4446         reference.
4447         (strength_reduce): Do not call unroller.
4448         (record_giv): Do not initialize unrolled field.
4449         (prescan_loop): Do not set loop_info->preconditioned.
4450         * passes.c: Do not include loop.h.
4451         (rest_of_handle_loop_optimize): Do not call unroller.
4452         * predict.c: Do not include loop.h.
4453         * rtl.h (NOTE_PRECONDITIONED): Removed.
4454         * stmt.c: Do not include loop.h.
4455         * toplev.c: Do not include loop.h.
4456         (process_options): Do not handle flag_old_unroll_loops.
4457
4458         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
4459         Documentation removed.
4460         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
4461
4462 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
4463
4464         * Makefile.in (STAGE1_CHECKING): New variable.
4465         (stage1_build): Use it.
4466         * tree-ssa.c (verify_ssa): Preserve state of dominance
4467         information.
4468
4469 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
4470
4471         * config/i386/i386.c (output_fp_compare): Add generation
4472         of ftst instruction.
4473         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
4474         Use output_fp_compare () function.
4475         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
4476         (fix_truncdi_memory): Remove operands[5] copy.
4477
4478 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
4479
4480         * config/m32r/m32r.md, config/m68k/m68kelf.h,
4481         config/mcore/mcore.md, config/rs6000/linux64.h,
4482         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
4483         typos.
4484
4485 2004-09-13  James E Wilson  <wilson@specifixinc.com>
4486
4487         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
4488         * gen-protos.c: Include errors.h.
4489         (progname): Delete.
4490
4491 2004-09-14  Jan Hubicka  <jh@suse.cz>
4492
4493         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
4494         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
4495         (predict_loops): Use number_of_iterations_exit to predict
4496         number of iterations on trees.
4497
4498 2004-09-13  Dale Johannesen  <dalej@apple.com>
4499
4500         PR 17408
4501         PR 17409
4502         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
4503         objects declared extern.
4504
4505 2004-09-14  Paul Brook  <paul@codesourcery.com>
4506
4507         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
4508         HOST_WIDE_INT.
4509
4510 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
4511
4512         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
4513         Only use TYPE_BINFO for aggregates.
4514
4515 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
4516
4517         * expmed.c (synth_mult): Initialize latency.  Check cost before
4518         checking ops count.
4519
4520 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
4521
4522         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
4523         add_call_clobber_ops and add_call_read_ops.
4524         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
4525         the number of vdefs and vuses inserted based on analysis of global
4526         variables across calls.  * tree-dfa.c (find_referenced_vars):
4527         Needed to reset static var maps before each function is compiled.
4528         * cgraphunit.c:
4529         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
4530         static_vars_info,functions_to_static_vars_info,module_statics_escape,
4531         all_module_statics,searchc_env,dfs_info): New fields to support
4532         analysis of static global variables.
4533         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
4534         cgraph_reset_static_var_maps, get_global_static_vars_info,
4535         get_global_statics_not_read, get_global_statics_not_written,
4536         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
4537         check_rhs_var, check_lhs_var, get_asm_expr_operands,
4538         process_call_for_static_vars, scan_for_static_refs,
4539         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
4540         clear_static_vars_maps, cgraph_propagate_bits,
4541         cgraph_characterize_statics): New. Functions to support analysis
4542         of static global variables.
4543         (cgraph_mark_local_and_external_functions): Renamed from:
4544         (cgraph_mark_local_functions)
4545         (cgraph_expand_all_functions): Remove call to
4546         cgraph_mark_local_and_external_functions.
4547         (cgraph_optimize): Added driver to analyze static variables whose
4548         scope is within the compilation unit.  * cgraph.h (struct
4549         cgraph_local_info, GTY): Added statics_read, statics_written,
4550         local, calls_read_all, calls_write_all, for_functions_valid.
4551         (struct cgraph_node): Added next_cycle.  * cgraph.c
4552         (dump_cgraph_node): Added print routines for new fields.  *
4553         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
4554         list.
4555
4556 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
4557
4558         * c-decl.c (grokdeclarator): Correct comments about where storage
4559         class specifiers are rejected by grammar and add corresponding
4560         asserts.  Diagnose typedefs and parameters declared inline.
4561         Change warning for inline main to a pedwarn.  Only diagnose inline
4562         main if hosted.
4563         (declspecs_add_scspec): Allow duplicate "inline".
4564
4565 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
4566
4567         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
4568         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
4569
4570 2004-09-13  Richard Henderson  <rth@redhat.com>
4571
4572         PR 17436
4573         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
4574         (tree_type): Replace spare with contains_placeholder_bits.
4575         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
4576         make static.  Remove seen_types list.
4577         (type_contains_placeholder_p): New.
4578
4579 2004-09-13  James E Wilson  <wilson@specifixinc.com>
4580
4581         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
4582         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
4583         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
4584         bdesc_arrays instead of mips_bdesc.
4585         (mips_init_builtins): Likewise.
4586         * config/mips/mips.h (TARGET_SB1): New.
4587         (HAVE_SQRT_P): Delete.
4588         * config/mips/mips.md (divide_condition): Support V2SF.
4589         (sqrt_condition, recip_condition): New.
4590         (div<mode>3): Use ANYF instead of SCALARF.
4591         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
4592         MODE.
4593         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
4594         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
4595         instead of MODE.
4596         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
4597         instead of SCALARF.  Use UNITMODE instead of MODE.
4598
4599 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
4600
4601         * config.in: Regenerate after removal of libbanshee.
4602
4603 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
4604
4605         PR tree-optimization/17400
4606         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
4607         coalesce partitions when one occurs in an abnormal PHI.
4608
4609 2004-09-13  Andrew Pinski  <apinski@apple.com>
4610
4611         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
4612         name to _new_size.
4613
4614 2004-09-13  Richard Henderson  <rth@redhat.com>
4615
4616         PR inline-asm/6806
4617         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
4618         (cselib_invalidate_rtx_note_stores): New.
4619         (cselib_record_sets, cselib_process_insn): Update to match.
4620         * cselib.h (cselib_invalidate_rtx): Declare.
4621         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
4622
4623 2004-09-13  Richard Henderson  <rth@redhat.com>
4624
4625         PR tree-opt/10528
4626         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
4627         after copying its argument.
4628
4629 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
4630
4631         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
4632         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
4633         in diagnostics.  Use %' for English apostrophes.
4634         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
4635         (pedwarn_c90, pedwarn_c99): Use it.
4636         * c-decl.c (lookup_label): Quote label name in diagnostic.
4637         * c-parse.in (yyprint): Use ' instead of ` for left quote.
4638         * c-typeck.c (warn_for_assignment): Likewise.
4639
4640 2004-09-13  Jan Hubicka  <jh@suse.cz>
4641
4642         * i386.c (x86_schedule): New global variable.
4643         (override_options): Disable scheduling when not supported.
4644         * i386.h (x86_schedule): Declare.
4645         (TARGET_SCHEDULE): New macro.
4646
4647 2004-09-12  Richard Henderson  <rth@redhat.com>
4648
4649         PR c++/16254
4650         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
4651         * tree.c, tree.h (has_cleanups): Remove.
4652
4653 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4654
4655         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
4656         arguments of the phi nodes correctly.
4657
4658 2004-09-12  Jan Hubicka  <jh@suse.cz>
4659
4660         * ggc-common.c (cmp_statistics): Fix sorting.
4661
4662 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
4663
4664         PR target/16795
4665         * expmed.c (expand_divmod): If cheap power of 2 divide is
4666         available, use it for negative constant as well.
4667
4668 2004-09-12  Andrew Pinski  <apinski@apple.com>
4669
4670         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
4671         size of 0.
4672
4673         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
4674
4675 2004-09-12  Richard Henderson  <rth@redhat.com>
4676
4677         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
4678         or minus one.
4679         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
4680         post-reload, and scratch NULL.
4681         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
4682         (x86_shift_adj_2): Use ix86_expand_clear.
4683         (ashldi3): Remove CMOVE expansion difference.
4684         (ashldi3_1): Remove.
4685         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
4686         add constraints for immediates.  New peephole for split-with-temp.
4687         Run splitter after peep2 pass.
4688         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
4689         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
4690         (setcc_2): Rename with *.
4691         * config/i386/predicates.md (reg_or_pm1_operand): New.
4692         (ashldi_input_operand): New.
4693
4694 2004-09-12  Richard Henderson  <rth@redhat.com
4695
4696         * print-rtl.c (print_decl_name): New.
4697         (print_mem_expr): Use it.
4698
4699 2004-09-12  Richard Henderson  <rth@redhat.com
4700
4701         PR 17186, part deux
4702         * except.c (sjlj_emit_function_exit): Fix logic locating
4703         sjlj_exit_after in final block.
4704
4705 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
4706
4707         * common.opt: Remove flags -fmove-all-movables and
4708         -freduce-all-givs.
4709         * loop-invariant.c (find_invariants_to_move):
4710         Remove all uses of flag_move_all_movables.
4711         * loop.c (move_movables): Remove all uses of
4712         flag_move_all_movables.
4713         (strength_reduce): Remove all uses of
4714         flag_reduce_all_givs.
4715         * doc/invoke.texi: Remove documentation of flags
4716         -fremove-all-movables and -freduce-all-givs.
4717
4718 2004-09-11  Roger Sayle  <roger@eyesopen.com>
4719
4720         PR middle-end/17411
4721         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
4722         change. elt->type may be a floating point type, so use fold_convert.
4723
4724 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
4725
4726         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
4727         the thing referenced as used, not the stub itself.
4728
4729 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
4730
4731         * c-tree.h (enum c_storage_class): New.
4732         (struct c_declspecs): Add storage_class, inline_p and thread_p.
4733         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
4734         declarations and "auto" or "register" in file scope empty
4735         declarations.  Give more specific warnings for other cases of
4736         storage class specifiers in empty declarations.
4737         (grokdeclarator): Update for new structures.  Don't check for
4738         multiple storage classes.  Diagnose file-scope "register" if
4739         pedantic.
4740         (build_null_declspecs): Update.
4741         (declspecs_add_scspec): Update.  Diagnose multiple storage class
4742         specifiers and invalid uses of "__thread".
4743
4744 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
4745
4746         * tree.c (tree_code_size): New function, bulk of code from tree_size.
4747         (tree_size, make_node): Use it.
4748         * tree-ssa-pre.c (init_pre): Use it.
4749         * tree.h: Prototype it.
4750
4751 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4752
4753         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
4754         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
4755         redirect_immediate_use): Use PHI_DF.
4756         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
4757         (bb_for_stmt): Use PHI_BB.
4758         (get_immediate_uses): Use PHI_DF.
4759         * tree-ssa-dse.c (max_stmt_uid): New variable.
4760         (get_stmt_uid): New function.
4761         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
4762         node annotations.
4763         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
4764         (max_uid): Renamed to max_stmt_uid.
4765         (get_stmt_uid): New function.
4766         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
4767         phi node annotations.
4768         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
4769         * tree.h (PHI_BB, PHI_DF): New accessor functions.
4770         (struct tree_phi_node): Add bb and df fields.
4771
4772 2004-09-11  Richard Henderson  <rth@redhat.com>
4773
4774         PR middle-end/17416
4775         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
4776         in conflict loop.
4777
4778 2004-09-11  Jan Hubicka  <jh@suse.cz>
4779
4780         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
4781         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
4782         * i386.md (i387_cw): Add 'uninitialized' mode.
4783
4784         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
4785         (output_location): Break out from ....
4786         (branch_prob): ... here; handle gcov output on trees.
4787         * toplev.c (process_options): No longer be sorry about coverage for
4788         trees.
4789
4790 2004-09-11  Steven Bosscher  <stevenb@suse.de>
4791
4792         PR c++/17412
4793         * fold-const.c (fold): Do not try to fold the operand of a
4794         CLEANUP_POINT_EXPR if that operand does itself not have any
4795         operands.
4796
4797         PR middle-end/17417
4798         * langhooks.c (lhd_decl_printable_name): Make sure that this
4799         function is called with is a decl node that has an identifier.
4800         * tree-pretty-print.c (dump_function_name): New function to
4801         wrap PRINT_FUNCTION_NAME and dump_decl_name.
4802         (print_call_name): Use it.
4803
4804 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
4805
4806         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
4807         "config.h" if not.
4808
4809 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
4810
4811         * tree-ssa-alias.c (collect_points_to_info_r): Handle
4812         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
4813         to OFFSET.
4814
4815 2004-09-11  Richard Henderson  <rth@redhat.com>
4816
4817         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
4818         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
4819         operand of the ADDR_EXPR.
4820         (expand_expr_real_1): Update to match.
4821
4822 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
4823
4824         PR target/17277
4825         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
4826         choose 64-bit version.
4827
4828 2004-09-11  Richard Henderson  <rth@redhat.com>
4829
4830         PR c/17396
4831         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
4832
4833 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
4834
4835         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
4836         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
4837         Insert @: after i.e. or e.g.
4838
4839 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
4840
4841         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
4842         D.xxx rather than <Dxxx>.
4843
4844 2004-09-10  Adam Nemet  <anemet@lnxw.com>
4845
4846         * configure.ac (AC_MSG_CHECKING(what linker to use)):
4847         in_tree_ld_is_elf should be true for LynxOS.
4848         * configure: Regenerate.
4849
4850 2004-09-10  Adam Nemet  <anemet@lnxw.com>
4851
4852         * Makefile.in (all.cross): Add srcextra.
4853
4854 2004-09-10  Roger Sayle  <roger@eyesopen.com>
4855
4856         PR middle-end/17024
4857         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
4858         floating point comparison operators.  Change aborts to gcc_asserts.
4859
4860 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
4861
4862         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
4863
4864 2004-09-10  James E Wilson  <wilson@specifixinc.com>
4865
4866         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
4867         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
4868
4869         * convert.c (convert_to_vector): Replace recursive call with
4870         error_mark_node.
4871
4872         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
4873         Add integer argument named constant.  Use const_tiny_rtx instead of
4874         CONST0_RTX.
4875         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
4876         and CONST1_RTX.
4877         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
4878         vector types.
4879         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
4880         of gen_rtx_raw_CONST_VECTOR.
4881
4882 2004-09-10  Eric Christopher  <echristo@redhat.com>
4883
4884         PR c/16046
4885         * c-parse.in (attribute): Add NULL_TREE for error case
4886         for error recovery.
4887
4888 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
4889
4890         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
4891         (extract_interface_info): Delete prototype.
4892         * c-decl.c (extract_interface_info): Delete stub.
4893         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
4894         it's not already been done ...
4895         (init_c_lex): ... not here.
4896         (fe_file_change): Don't call extract_interface_info.
4897
4898 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
4899
4900         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
4901         typedef_p and typedef_signed_p.
4902         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
4903         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
4904         Check typedef_p and typedef_signed_p, not typedef_decl.
4905         (grokfield): Check typedef_p, not typedef_decl.
4906         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
4907         not typedef_decl.
4908         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
4909         typedef_decl.
4910
4911 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4912
4913         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
4914
4915 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
4916
4917         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
4918         temporary variables.
4919
4920         * dbxout.c (dbxout_block): Update for
4921         current_function_func_begin_label a string.
4922         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
4923         * except.c (dw2_output_call_site_table): Likewise.
4924         * toplev.c (current_function_func_begin_label): Likewise.
4925         * tree.h (current_function_func_begin_label): Likewise.
4926         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
4927
4928         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
4929         loop.
4930
4931         * config/darwin.c: Include target.h.
4932         (struct machopic_indirection): Make ptr_name a string.
4933         (machopic_indirection_hash): Update for ptr_name a string.
4934         (machopic_indirection_eq): Likewise.
4935         (machopic_indirection_name): Likewise.
4936         (machopic_output_indirection): Likewise.
4937         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
4938         string.  Don't expect stub names to be in the identifier hash table.
4939         Do call strip_name_encoding before looking up entry in ID hash table.
4940         * config/t-darwin (darwin.o): Add target.h to dependencies.
4941
4942         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
4943         of fprintf for register names.
4944
4945         * output.h (unlikely_section_label): Delete declaration.
4946         (unlikely_text_section_name): Likewise.
4947         * varasm.c (unlikely_section_label_printed): Make static.
4948         (unlikely_section_label): Likewise.
4949         (unlikely_text_section_name): Likewise.
4950         (assemble_start_function): Use reconcat.
4951
4952         * rtl.def (REG): Add comment to describe third field.
4953
4954 2004-09-10  Andrew Pinski  <apinski@apple.com>
4955
4956         * config/darwin.c (machopic_mcount_stub_name): Call
4957         machopic_indirection_name instead of making the string
4958         ourselves.
4959
4960 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
4961
4962         Revert
4963
4964         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
4965
4966             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
4967             memory tag is call clobbered, so are its aliases.
4968             (group_aliases): When two memory tags being grouped, if one is
4969             call clobbered, so are the other and its aliases.
4970             (add_may_alias): Remove call-clobbering stuff.
4971             (replace_may_alias): Likewise.
4972             (merge_pointed_to_info): Merge pt_global_mem
4973
4974 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4975
4976         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
4977         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
4978         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
4979         tree-scalar-evolution.c, tree-ssa-copyrename.c,
4980         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
4981
4982 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
4983
4984         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
4985         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
4986         pair.  Remove match_dup from inputs.  Remove masaccs handling.
4987         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
4988         (masaccs, mdasaccs): Turn into define_insns.
4989
4990 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
4991
4992         * tree-tailcall.c (process_assignment): Only do accumulator transforms
4993         for floating-point types if flag_unsafe_math_optimizations.
4994
4995 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
4996
4997         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
4998         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
4999         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
5000         config/h8300/h8300.md, config/i386/gmm_malloc.h,
5001         config/ia64/ia64.md, config/ip2k/libgcc.S,
5002         config/mips/mips-ps-3d.md, config/mips/mips.c,
5003         config/rs6000/rs6000.c, config/s390/s390.c,
5004         config/sh/symbian.c: Fix comment typos.
5005
5006 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
5007
5008         * config/s390/s390.c (s390_emit_prologue): Added missing
5009         "{}" brackets.
5010
5011 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
5012
5013         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
5014         typos.  Follow spelling conventions.
5015
5016 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
5017
5018         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
5019         in diagnostic.  Don't dereference NULL TYPE_NAME.
5020
5021 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
5022
5023         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
5024         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
5025         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
5026         value-prof.c: Fix comment typos.  Follow spelling conventions.
5027
5028 2004-09-10  Jan Hubicka  <jh@suse.cz>
5029
5030         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
5031         * tree-split_edge.c (tree_split_edge): Likewise.
5032         (thread_jumps): Likewise.
5033
5034 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
5035
5036         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
5037         typos.
5038
5039 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
5040
5041         * cgraph.h (cgraph_dump_file): Do not declare.
5042         * cgraphunit.c (cgraph_dump_file): Declare as static.
5043         (init_cgraph): New.
5044         * toplev.c (cgraph_dump_file): Do not declare.
5045         (compile_file): Call init_cgraph.
5046         * tree-dump.c (dump_files): Add IPA dump file, remove
5047         XML dump of call graph.
5048         (get_dump_file_name): Support IPA dump file naming scheme.
5049         * tree.h (enum tree_dump_index): Add IPA dump file, remove
5050         XML dump of call graph.
5051         * doc/invoke.texi (Debugging Options): Document the new options.
5052
5053 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
5054
5055         * doc/extend.texi: Document the FR-V built-in functions.
5056
5057 2004-09-09  James E Wilson  <wilson@specifixinc.com>
5058
5059         * doc/sourcebuild.texi: Delete libbanshee reference.
5060
5061 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
5062
5063         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
5064
5065 2004-09-09  James E Wilson  <wilson@specifixinc.com>
5066
5067         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
5068         before calling vector_types_convertible_p.
5069         (digest_init): Check that inside_init has VECTOR_TYPE before calling
5070         vector_types_convertible_p.  Don't give another error if
5071         convert_for_assignment returns error_mark_node.
5072
5073 2004-09-09  Roger Sayle  <roger@eyesopen.com>
5074
5075         PR middle-end/17055
5076         * fold-const.c (build_zero_vector): New function to construct a
5077         vector (either floating point or integer) of zeros.
5078         (fold_convert): Internally, enable conversions of integer zero
5079         to arbitrary vector types, using the new build_zero_vector.
5080
5081 2004-09-09  Roger Sayle  <roger@eyesopen.com>
5082
5083         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
5084         expand a left shift by an immediate constant as either an ashl or
5085         a sequence of additions.
5086         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
5087         instead of calling gen_ashlsi3 with a constant directly.
5088
5089 2004-09-09  Roger Sayle  <roger@eyesopen.com>
5090
5091         * config/i386/i386.c (ix86_split_long_move): When optimizing for
5092         size, and the low and high parts of a DImode constant are equal,
5093         copy one register to another instead of loading the same immediate
5094         value twice.
5095
5096 2004-09-09  Richard Henderson  <rth@redhat.com>
5097
5098         PR middle-end/17367
5099         * function.c (assign_parm_setup_block): Only put PARALLELs into
5100         a register if use_register_for_decl.
5101
5102 2004-09-09  Eric Christopher  <echristo@redhat.com>
5103
5104         * ra-colorize.c (reset_lists): Move variable declaration inside
5105         ENABLE_CHECKING to avoid unused variable warnings when
5106         not --enable-checking.
5107         (check_colors): Ditto.
5108
5109 2004-09-09  Mike Stump  <mrs@apple.com>
5110
5111         * version.c (version_string): Bump to 4.0.0.
5112         * doc/include/gcc-common.texi (version-GCC): Likewise.
5113
5114 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
5115
5116         * doc/extend.texi (nothrow attribute): The attribute is not
5117         implemented in 3.2 and earlier.
5118
5119 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
5120
5121         * genrecog.c (compute_predicate_codes): Use op0_codes
5122         instead of codes.
5123
5124 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
5125
5126         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
5127         implementation changes.
5128
5129 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
5130
5131         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
5132         a PARALLEL instead of a SET due to added clobbers.
5133
5134 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
5135
5136         * reload.c (find_reloads_address): Pass correct operand to
5137         maybe_memory_address_p.
5138
5139 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
5140
5141         * Makefile.in: Remove libbanshee, tree-alias-*.
5142         Remove tree-alias-common.h dependencies.
5143         * common.opt: Remove -ftree-points-to.
5144         * configure.ac: Remove libbanshee.
5145         * flags.h: Remove pta_type, flag_tree_points_to.
5146         * gengtype.c (open_base_files): Remove tree-alias-type.h.
5147         * opts.c (OPT_ftree_points_to): Remove.
5148         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
5149         * tree-dfa.c: Remove tree-alias-common.h
5150         * tree-into-ssa.c: Ditto.
5151         * tree-outof-ssa.c: Ditto.
5152         * tree-ssa-copyrename.c: Ditto.
5153         * tree-ssa-live.c: Ditto.
5154         * tree-optimize.c: Ditto.
5155         * tree-ssa.c: Ditto.
5156         Remove pass_build_pta, pass_del_pta.
5157         * tree-pass.h: Ditto.
5158         * tree-ssa-alias.c: Remove tree-alias-common.h.
5159         (struct alias_stats_d): Remove pta_queries, pta_resolved.
5160         (pass_may_alias): Remove PROP_pta requirement.
5161         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
5162         (get_tmt_for): Ditto.
5163         (dump_alias_stats): Ditto.
5164         * doc/passes.texi: Remove blurb about points-to analysis.
5165         * fortran/Make-lang.in: Remove tree-alias-*.o.
5166
5167 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
5168
5169         * genattrtab.c (write_insn_cases): New function, split out from
5170         write_attr_case.  Correctly handle define_peepholes when printing
5171         the instruction name.
5172         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
5173
5174 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
5175
5176         PR target/17377
5177         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
5178         * config/cris/cris.c (cris_return_address_on_stack): New function.
5179         * config/cris/cris.md ("return"): For location of return address,
5180         also check cris_return_address_on_stack.
5181
5182 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
5183
5184         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
5185         calling phi_ssa_name_p.
5186
5187 2004-09-09  Richard Henderson  <rth@redhat.com>
5188
5189         PR c/17322
5190         * c-typeck.c (valid_compound_expr_initializer): Use only
5191         initializer_constant_valid_p, and not TREE_CONSTANT.
5192         (digest_init): Likewise.
5193         (output_init_element): Likewise.
5194
5195 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5196
5197         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
5198         live_out_1, prune_hardregs_for_mode, init_one_web_common,
5199         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
5200         record_conflict, compare_and_free_webs, init_webs_defs_uses,
5201         parts_to_webs_1, parts_to_webs, reset_conflicts,
5202         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
5203         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
5204         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
5205         put_move, remove_move, combine, select_spill, colorize_one_web,
5206         try_recolor_web, insert_coalesced_conflicts, check_colors,
5207         break_precolored_alias, restore_conflicts_from_coalesce,
5208         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
5209         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
5210         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
5211         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
5212         check_df): Likewise.
5213         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
5214         real_arithmetic, real_compare, real_exponent, real_ldexp,
5215         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
5216         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
5217         real_digit, real_nan, real_maxval, round_for_format, real_convert,
5218         real_to_target, real_from_target, real_hash, encode_ieee_single,
5219         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
5220         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
5221         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
5222         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
5223         extract_insn, peep2_next_insn, peep2_reg_dead_p,
5224         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
5225         if_test_bypass_p): Likewise.
5226         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
5227         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
5228         emit_swap_insn, swap_to_top, move_for_stack_reg,
5229         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
5230         compensate_edge, convert_regs_1): Likewise.
5231         * regclass.c (init_reg_sets, init_reg_sets_1,
5232         memory_move_secondary_cost): Likewise.
5233         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
5234         Likewise.
5235         * reload.c (push_secondary_reload, find_valid_class, push_reload,
5236         operands_match_p, decompose, immune_p, find_reloads,
5237         find_reloads_toplev, find_reloads_address_1, subst_reloads,
5238         copy_replacements, refers_to_regno_for_reload_p,
5239         reg_overlap_mentioned_for_reload_p): Likewise.
5240         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
5241         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
5242         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
5243         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
5244         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
5245         do_output_reload, fixup_abnormal_edges): Likewise.
5246         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
5247         fill_slots_from_thread, relax_delay_slots): Likewise.
5248         * resource.c (mark_referenced_resources, mark_set_resources):
5249         Likewise.
5250         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
5251         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
5252         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
5253         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
5254         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
5255         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
5256         * rtlhooks.c (gen_lowpart_general): Likewise.
5257         * sbitmap.c (sbitmap_difference): Likewise.
5258         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
5259         sched_analyze, add_forward_dependence): Likewise.
5260         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
5261         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
5262         schedule_insns): Likewise.
5263         * sched-vis.c (print_pattern): Likewise.
5264         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
5265         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
5266         simplify_const_relational_operation, simplify_ternary_operation,
5267         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
5268         Likewise.
5269         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
5270         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
5271         resolve_operand_name_1, expand_return, expand_decl,
5272         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
5273         * stor-layout.c (put_pending_size, smallest_mode_for_size,
5274         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
5275         set_sizetype, get_mode_bounds): Likewise.
5276
5277 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
5278
5279         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
5280         * config/arm/pecoff.h, config/i386/beos-elf.h
5281         * config/i386/cygming.h, config/i386/i386-interix.h:
5282         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
5283         comment cloned from manual.
5284         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
5285
5286 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
5287
5288         * builtins.c (build_va_arg_indirect_ref): New function.
5289         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
5290         build_fold_indirect_ref.
5291         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
5292         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
5293         * tree.h: Declare new function.
5294
5295 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5296
5297         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
5298         dumping for development builds.
5299         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
5300         development builds only.
5301         * genattrtab.c (write_eligible_delay): Fix typo in previous
5302         commit.
5303         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
5304         gcc_assert.
5305
5306 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5307
5308         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
5309         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
5310         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
5311         hoist_code, extract_mentioned_regs_helper, compute_store_table,
5312         insert_store): Use gcc_assert and gcc_unreachable.
5313         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
5314         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
5315         ggc_record_overhead): Likewise.
5316         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
5317         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
5318         ggc_pop_context, clear_marks, validate_free_objects,
5319         ggc_pch_read): Likewise.
5320         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
5321         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
5322         ggc_push_context, check_cookies, ggc_collect,
5323         ggc_print_statistics): Likewise.
5324         * gimple-low.c (lower_function_body, lower_stmt,
5325         lower_bind_expr): Likewise.
5326         * gimplify.c (gimple_tree_eq, push_gimplify_context,
5327         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
5328         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
5329         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
5330         gimplify_case_label_expr, gimplify_exit_block_expr,
5331         canonicalize_component_ref, gimplify_compound_lval,
5332         gimplify_self_mod_expr, gimplify_call_expr,
5333         gimplify_init_ctor_eval, gimplify_init_constructor,
5334         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
5335         gimplify_expr, check_pointer_types_r,
5336         force_gimple_operand): Likewise.
5337         * global.c (global_alloc, build_insn_chain): Likewise.
5338         * graph.c (clean_graph_dump_file,
5339         finish_graph_dump_file): Likewise.
5340         gcov-io.c (gcov_open): Use GCOV_CHECK.
5341
5342 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
5343
5344         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
5345
5346 2004-09-09  Jan Hubicka  <jh@suse.cz>
5347
5348         middle-end/17128
5349         * tree-inline.c (expand_call_inline): Make overactive sanity check
5350         happy.
5351
5352 2004-09-09  Jan Hubicka  <jh@suse.cz>
5353
5354         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
5355         VIEW_CONVERT_EXPR.
5356
5357 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5358
5359         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
5360         (gengtype.o): Depend on errors.h.
5361         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
5362         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
5363         attr_alt_subset_p, attr_alt_subset_of_compl_p,
5364         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
5365         write_test_expr, write_attr_value, write_eligible_delay,
5366         make_internal_attr, make_numeric_value): Likewise.
5367         * genautomata.c (regexp_name, get_str_vect,
5368         gen_presence_absence_set, automaton_decl_hash,
5369         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
5370         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
5371         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
5372         test_unit_reserv, it_is_empty_reserv_sets,
5373         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
5374         reserv_sets_and, output_cycle_reservs, get_free_state,
5375         intersected_state_reservs_p, states_union, remove_arc,
5376         copy_insn_regexp, transform_1, transform_2, transform_3,
5377         regexp_transform_func, store_alt_unit_usage,
5378         check_regexp_units_distribution, process_seq_for_forming_states,
5379         process_alts_for_forming_states, make_automaton,
5380         form_arcs_marked_by_insn, create_composed_state,
5381         set_out_arc_insns_equiv_num, partition_equiv_class,
5382         process_insn_equiv_class, set_insn_equiv_classes,
5383         units_to_automata_heuristic_distr, form_regexp,
5384         longest_path_length, output_dfa_max_issue_rate, add_vect,
5385         out_state_arcs_num, add_vect_el, output_trans_table,
5386         output_state_alts_table, output_dead_lock_vect,
5387         output_max_insn_queue_index_def,
5388         output_min_insn_conflict_delay_func,
5389         output_internal_insn_latency_func, output_print_reservation_func,
5390         output_cpu_unit_reservation_p, output_state_arcs,
5391         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
5392         make_default_insn_latency_attr,
5393         form_important_insn_automata_lists): Likewise.
5394         * genemit.c (gen_exp, output_add_clobbers,
5395         output_added_clobbers_hard_reg_p): Likewise.
5396         * genextract.c (print_path, main): Likewise.
5397         * genflags.c (gen_macro): Likewise.
5398         * gengenrtl.c: Include errors.h
5399         (type_from_format, accessor_from_format): Likewise.
5400         * gengtype.c (get_file_basename, output_mangled_typename,
5401         walk_type, write_types_process_field,
5402         write_types_local_process_field): Likewise.
5403         * genmodes.c (complete_mode): Likewise.
5404         * genopinit.c (gen_insn): Likewise.
5405         * genoutput.c (output_insn_data, check_constraint_len,
5406         constraint_len): Likewise.
5407         * genpreds.c (add_mode_tests):Likewise.
5408         * gen-protos.c (add_hash): Likewise.
5409         * genrecog.c (find_operand, find_matching_operand,
5410         validate_pattern, add_to_sequence, maybe_both_true,
5411         nodes_identical_1, merge_trees, write_switch, write_cond,
5412         write_action, is_unconditional, make_insn_sequence,
5413         debug_decision_2): Likewise.
5414         * gensupport.c (is_predicable, collect_insn_data,
5415         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
5416
5417 2004-09-09  Jan Hubicka  <jh@suse.cz>
5418
5419         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
5420         * cfgbuild.c (compute_outgoing_frequencies): When probability is
5421         missing, guess it.
5422         (find_many_sub_basic_blocks): Do update profile only when it is
5423         present.
5424         * predict.c (set_even_probabilities): Break out from ...
5425         (combine_predictions_for_insn): ... here; deal with
5426         !can_predict_insn_p insns.
5427         (combine_predictions_for_bb): Use set_even_probabilities.
5428         (bb_estimate_probability_locally): Break out from ....
5429         (estimate_probability): ... here.
5430         (guess_outgoing_edge_probabilities): New entry point.
5431
5432 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
5433
5434         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
5435         handle_braces, process_brace_body, main, used_arg,
5436         set_multilib_dir, print_multilib_info): Use fatal, not abort.
5437
5438         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
5439
5440         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
5441         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
5442         Morgan's theorem in last checkin.
5443
5444 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5445             Nathan Sidwell  <nathan@codesourcery.com>
5446
5447         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
5448         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
5449         * timevar.c (timevar_push, timevar_pop, timevar_start,
5450         timevar_stop): Likewise.
5451         * toplev.c (default_pch_valid_p): Likewise.
5452         * tracer.c (tail_duplicate): Likewise.
5453         * tree-alias-common.c (get_alias_var_decl,
5454         get_values_from_constructor, create_alias_var, delete_alias_vars,
5455         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
5456         Likewise.
5457         * tree.c (tree_size, make_node_stat, copy_node_stat,
5458         build_int_cst_wide, integer_all_onesp, list_length, chainon,
5459         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
5460         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
5461         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
5462         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
5463         build_method_type_directly, decl_type_context, get_callee_fndecl,
5464         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
5465         tree_fold_gcd): Likewise.
5466         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
5467         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
5468         cleanup_control_expr_graph, find_taken_edge,
5469         find_taken_edge_switch_expr, phi_alternatives_equal,
5470         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
5471         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
5472         tree_split_edge, tree_verify_flow_info, thread_jumps,
5473         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
5474         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
5475         chrec_fold_multiply_poly_poly): Likewise.
5476         * tree-complex.c (extract_component, expand_complex_division,
5477         expand_complex_comparison, expand_complex_operations_1,
5478         build_replicated_const, expand_vector_operations_1): Likewise.
5479         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
5480         build_classic_dir_vector): Likewise.
5481         * tree-dfa.c (compute_immediate_uses_for_phi,
5482         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
5483         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
5484         * tree-dump.c (dequeue_and_dump): Likewise.
5485         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
5486         record_in_finally_tree, replace_goto_queue_1,
5487         maybe_record_in_goto_queue, verify_norecord_switch_expr,
5488         do_return_redirection): Likewise.
5489         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
5490         add_to_dst_predicate_list, find_phi_replacement_condition,
5491         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
5492         Likewise.
5493         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
5494         initialize_inlined_parameters, declare_return_variable,
5495         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
5496         optimize_inline_calls, copy_tree_r): Likewise.
5497         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
5498         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
5499         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
5500         tsi_split_statement_list_after, tsi_split_statement_list_before):
5501         Likewise.
5502         * tree-mudflap.c (mf_varname_tree): Likewise.
5503         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
5504         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
5505         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5506         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
5507         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
5508         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
5509         Likewise.
5510         * tree-phinodes.c (resize_phi_node, add_phi_arg,
5511         remove_all_phi_nodes_for): Likewise.
5512         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
5513         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
5514         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
5515         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
5516         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
5517         generate_one_element_ref, generate_element_copy,
5518         generate_element_zero, scalarize_copy, scalarize_init,
5519         scalarize_ldst): Likewise.
5520         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
5521         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
5522         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
5523         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
5524         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
5525         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
5526         widen_bitfield, ccp_fold_builtin): Likewise.
5527         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
5528         replace_exp_1, propagate_tree_value): Likewise.
5529         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
5530         * tree-ssa-dce.c (set_control_dependence_map_bit,
5531         find_control_dependence, find_pdom, mark_operand_necessary,
5532         mark_stmt_if_obviously_necessary,
5533         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
5534         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
5535         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
5536         eliminate_redundant_computations, avail_expr_eq): Likewise.
5537         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
5538         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
5539         duplicate_blocks): Likewise.
5540         * tree-ssa-loop-im.c (for_each_index, set_level,
5541         is_call_clobbered_ref): Likewise.
5542         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
5543         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
5544         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
5545         peel_address, ptr_difference_cost, may_replace_final_value,
5546         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
5547         rewrite_use, rewrite_uses): Likewise.
5548         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
5549         check_loop_closed_ssa_use): Likewise.
5550         * tree-ssanames.c (make_ssa_name): Likewise.
5551         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
5552         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
5553         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
5554         get_indirect_ref_operands, add_stmt_operand): Likewise.
5555         * tree-ssa-pre.c (value_exists_in_set_bitmap,
5556         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
5557         phi_translate, valid_in_set, compute_antic,
5558         find_or_generate_expression, create_expression_by_pieces, insert_aux,
5559         create_value_expr_from, eliminate): Likewise.
5560         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
5561         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
5562         Likewise.
5563         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
5564         eliminate_tail_call): Likewise.
5565         * tree-vectorizer.c (vect_create_index_for_array_ref,
5566         vect_align_data_ref, vect_create_data_ref,
5567         vect_create_destination_var, vect_get_vec_def_for_operand,
5568         vect_finish_stmt_generation, vect_transform_stmt,
5569         vect_transform_loop_bound, vect_transform_loop,
5570         vect_analyze_operations): Likewise.
5571         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
5572         Likewise.
5573         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
5574         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
5575         bsi_after_labels, bsi_last): Likewise.
5576         * tree-ssa-live.c (var_union, change_partition_var,
5577         create_ssa_var_map, calculate_live_on_entry, root_var_init,
5578         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
5579         Likewise.
5580         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
5581         tpa_find_tree): Likewise.
5582         (register_ssa_partition_check): Declare.
5583         (register_ssa_partition): use it.
5584         * tree-ssa-live.c: Include errors.h.
5585         (register_ssa_partition_check): New.
5586         * tree-ssa-operands.c: Include errors.h.
5587         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
5588
5589 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
5590             Catherine Moore  <clm@redhat.com>
5591
5592         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
5593         (FRV_CPU_FR405): New processor enums.
5594         (frv_issue_rate, frv_acc_group): Declare.
5595         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
5596         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
5597         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
5598         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
5599         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
5600         handled by CPP_SPEC.
5601         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
5602         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
5603         (ACC_MASK): New macro.
5604         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
5605         (TARGET_MEDIA_FR450): New macro.
5606         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
5607         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
5608         (LABEL_ALIGN_AFTER_BARRIER): Define.
5609         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
5610         (IACC_FIRST, IACC_LAST): New pair of SPRs.
5611         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
5612         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
5613         (REGISTER_NAMES): Add entries for new registers.
5614         (REG_CLASS_CONTENTS): Update for new register ranges.
5615         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
5616         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
5617         (PACKING_FLAG_USED_P): Delete.
5618         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
5619         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
5620         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
5621         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
5622         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
5623         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
5624         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
5625         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
5626         (CPU_UNITS_QUERY): Define to 1.
5627         * config/frv/frv.c: Include gt-frv.h
5628         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
5629         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
5630         (frv_insn_group): New enumeration.
5631         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
5632         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
5633         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
5634         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
5635         gap left by REGSTATE_LIVE.
5636         (regstate_t): New typedef.
5637         (TARGET_MACHINE_DEPENDENT_REORG): Define.
5638         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
5639         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
5640         Initialize frv_unit_codes[] and frv_type_to_unit[].
5641         (frv_conditional_register_usage): Remove redundant fixing of
5642         accumulator registers.
5643         (frv_insn_packing_flag): Update specification.
5644         (frv_function_prologue): Don't set frv_insn_packing_flag here.
5645         Zero out frv_nops[].
5646         (frv_expand_epilogue): Remove comments about the no-longer-present
5647         SIBCALL_P argument.
5648         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
5649         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
5650         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
5651         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
5652         packing is disabled and if INSN can only issue to M1.
5653         (call_operand): Check TARGET_LONG_CALLS.
5654         (acc_operand, even_acc_operand, quad_acc_operand)
5655         (accg_operand): Simplify.  Don't accept pseudo registers.
5656         (output_move_single): Handle SPR<-zero moves.
5657         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
5658         (frv_registers_update, frv_registers_used_p): Delete.
5659         (frv_registers_set_p): Delete.
5660         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
5661         (frv_issues_to_branch_unit_p): New function.
5662         (frv_packet): New structure.
5663         (frv_cond_flags, frv_regstate_conflict_p): New functions.
5664         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
5665         (frv_registers_update_1, frv_registers_update): New functions.
5666         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
5667         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
5668         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
5669         (frv_sort_insn_group, frv_reorder_packet): New functions.
5670         (frv_pack_insns): Use frv_reorder_packet.
5671         (frv_packet_address): New variable.
5672         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
5673         (frv_register_nop, frv_reorg): New functions.
5674         (bdesc_1arg): Add __SCUTSS.
5675         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
5676         __SUBSS, __SLASS and __SCAN.
5677         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
5678         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
5679         (frv_init_builtins): Register the above builtins.
5680         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
5681         registers.  Turn the referenced accumulators into global registers.
5682         (frv_read_iacc_argument): New function.
5683         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
5684         (frv_split_iacc_move): New function.
5685         (frv_expand_builtin): Handle the new builtins.
5686         * config/frv/frv.md: Replace old schedulers with new order-independent
5687         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
5688         packing algorithm.
5689         (cpu): Add fr550, fr450 and fr405.
5690         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
5691         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
5692         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
5693         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
5694         (fnop, mnop): New patterns.
5695         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
5696         New constants.
5697         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
5698         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
5699         registers.
5700         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
5701         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
5702         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
5703         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
5704         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
5705         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
5706         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
5707         (frv_prefetch0, frv_prefetch): New patterns.
5708         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
5709         -mcpu=simple.  Add -mcpu=fr550.
5710         (MULTILIB_DIRNAMES): Update accordingly.
5711         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
5712         -mcpu=fr450.
5713         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
5714         -mlong-calls and -malign-labels options for FR-V.
5715
5716 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5717
5718         PR c/8420
5719         * c-tree.h (struct c_declspecs): New.
5720         (struct c_declarator, struct c_type_name, struct c_parm): Update
5721         element types.
5722         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
5723         start_function, start_decl, build_c_parm,
5724         make_pointer_declarator): Update prototypes.
5725         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
5726         declspecs_add_scspec, declspecs_add_attrs): New.
5727         (split_specs_attrs): Remove.
5728         * c-parse.in (%union): Add dsptype.
5729         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
5730         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
5731         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
5732         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
5733         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
5734         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
5735         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
5736         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
5737         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
5738         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
5739         maybe_type_quals_attrs): Change to dsptype.
5740         (struct c_declspec_stack): New.
5741         (current_declspecs, declspec_stack): Change type.
5742         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
5743         structures.
5744         (extdefs): Likewise.
5745         (setspecs): Likewise.
5746         (fndef): Use current_declspecs for empty declspecs list.
5747         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
5748         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
5749         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
5750         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
5751         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
5752         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
5753         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
5754         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
5755         structures and helper functions.  Update comments.
5756         (typespec_nonattr): Correct comment.
5757         (maybe_type_quals_attrs, typename): Update to new structures.
5758         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
5759         shadow_tag, shadow_tag_warned, start_function, start_decl,
5760         build_c_parm, make_pointer_declarator,
5761         set_array_declarator_inner, groktypename): Update to new
5762         structures.
5763         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
5764         declspecs_add_scspec, declspecs_add_attrs): New.
5765         (split_specs_attrs): Remove.
5766         (shadow_tag_warned): Make warning for useless type names a
5767         pedwarn.  Give hard error for long, short, signed, unsigned or
5768         _Complex used with struct, union or enum in empty declaration.
5769         Make found_tag a bool.
5770         (grokdeclarator): Remove checks now done at parse time.
5771
5772 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5773
5774         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
5775         c_declarator, struct c_type_name, struct c_parm): New.
5776         (build_array_declarator, set_array_declarator_inner,
5777         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
5778         start_function, start_decl, build_c_parm, build_attrs_declarator,
5779         build_function_declarator, make_pointer_declarator, c_cast_expr,
5780         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
5781         (build_id_declarator): New.
5782         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
5783         structures.
5784         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
5785         ARG_INFO_OTHERS): Remove.
5786         (build_id_declarator): New.
5787         (build_array_declarator, set_array_declarator_inner, groktypename,
5788         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
5789         grokfield, start_function, store_parm_decls_newstyle,
5790         store_parm_decls_oldstyle, store_parm_decls,
5791         build_c_parm, build_attrs_declarator, build_function_declarator,
5792         make_pointer_declarator, grokdeclarator): Update to new
5793         structures.
5794         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
5795         parmtype.
5796         (declarator, notype_declarator, after_type_declarator,
5797         parm_declarator, parm_declarator_starttypename,
5798         parm_declarator_nostarttypename, array_declarator, typename,
5799         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
5800         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
5801         parmlist_1, parmlist_2, parmlist_or_identifiers,
5802         parmlist_or_identifiers_1): Use these types.
5803         (primary, after_type_declarator, parm_declarator_starttypename,
5804         notype_declarator, component_decl, component_declarator,
5805         component_notype_declarator, typename, absdcl,
5806         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
5807         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
5808
5809 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5810
5811         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
5812         in_typeof, record_maybe_used_decl, pop_maybe_used,
5813         c_expr_sizeof_expr, c_expr_sizeof_type): New.
5814         * c-decl.c (parser_obstack): New.
5815         (c_init_decl_processing): Initialize parser_obstack.
5816         (c_write_global_declarations_1): Check for used but undefined
5817         static functions.
5818         * c-parse.in (%union): Add otype.
5819         (save_obstack_position): New.
5820         (extdefs): Use it.
5821         (unary_expr): Update in_sizeof and in_alignof.  Use
5822         c_expr_sizeof_expr and c_expr_sizeof_type.
5823         (sizeof): Update in_sizeof.
5824         (alignof): Update in_alignof.
5825         (typeof): Update in_typeof.
5826         (typespec_nonreserved_nonattr): Call pop_maybe_used.
5827         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
5828         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
5829         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
5830         (build_external_ref): Set C_DECL_USED or call
5831         record_maybe_used_decl if appropriate.
5832         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
5833
5834 2004-09-08  Eric Christopher  <echristo@redhat.com>
5835
5836         * builtins.c: Fix prototype for fold_builtin_atan.
5837
5838 2004-09-08  Eric Christopher  <echristo@redhat.com>
5839
5840         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
5841         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
5842         fold_builtin_atan): New functions. Migrate function bodies...
5843         (fold_builtin_1): ... from here.
5844
5845 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
5846
5847         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
5848         save_size.
5849
5850 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
5851
5852         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
5853         * config/rs6000/power5.md (power5-lmul): Same.
5854
5855 2004-09-08  Richard Henderson  <rth@redhat.com>
5856
5857         PR rtl-opt/17186
5858         * function.c (expand_function_end): Have fall-off-the-end
5859         return path jump around return register setup.
5860
5861 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
5862
5863         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
5864         (output_return): Do not test for the presence of the 'unimp' insn.
5865         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
5866         as predicates instead of custom ones.  Return raw strings when
5867         possible.
5868         (output_sibcall): Likewise.  Concatenate strings.
5869         (output_ubranch): Remove kludge for TurboSPARC.
5870         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
5871         (output_v9branch): Likewise.
5872         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
5873         <#>: Set sparc_indent_opcode if the delay slot is filled.
5874         <(>: Likewise.
5875         <)>: New operand to emit the displacement from the saved PC on return.
5876         <@>: Remove.
5877         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
5878         (ASM_OUTPUT_OPCODE): New macro.
5879         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
5880         * config/sparc/sparc.md (normal_branch, inverted_branch,
5881         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
5882         inverted_fpe_branch): Adjust call to output_cbranch.
5883         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
5884         call to output_v9branch.
5885         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
5886         (output_v9branch): Likewise.
5887
5888 2004-09-08  Devang Patel  <dpatel@apple.com>
5889
5890         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
5891         -segs_read_only_addr and -segs_read_write_addr.
5892         (WORD_SWITCH_TAKES_ARG): Same.
5893         (LINK_SPEC): Same.
5894         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
5895         -segs_read_write_addr.
5896
5897 2004-09-08  Richard Henderson  <rth@redhat.com>
5898
5899         * function.c (reference_callee_copied): New.
5900         (assign_parm_setup_reg): Use it.
5901         * calls.c (initialize_argument_information): Likewise.
5902         (emit_library_call_value_1): Likewise.
5903         * function.h (reference_callee_copied): Declare.
5904
5905         * target.h (struct gcc_target): Add callee_copies.
5906         * target-def.h (TARGET_CALLEE_COPIES): New.
5907         (TARGET_PASS_BY_REFERENCE): Update default.
5908         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5909         * targhooks.c (hook_callee_copies_named): New.
5910         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
5911         hook_pass_by_reference_false.
5912         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
5913         * targhooks.h: Update decls.
5914         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
5915         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5916         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
5917         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
5918         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5919         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
5920         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5921         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
5922         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5923         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
5924         (mips_callee_copies): New.
5925         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5926         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
5927         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5928         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
5929         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5930         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
5931         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5932         * config/sh/sh.c (sh_callee_copies): New.
5933         (TARGET_CALLEE_COPIES): New.
5934         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5935         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
5936         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
5937         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
5938         for FUNCTION_ARG_CALLEE_COPIES.
5939         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
5940
5941 2004-09-08  Devang Patel  <dpatel@apple.com>
5942
5943         * tree-if-conv.c (find_phi_replacement_condition): Return true
5944         edge block.
5945         (replace_phi_with_cond_modify_expr): Select conditional expr args
5946         based on true edge basic block.
5947
5948 2004-09-08  Jan Hubicka  <jh@suse.cz>
5949
5950         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
5951         variables being alias set.
5952
5953 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
5954
5955         * final.c (shorten_branches, final, get_insn_template,
5956         output_alternate_entry_point, final_scan_insn, alter_subreg,
5957         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
5958         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
5959         * fix-header.c (lookup_std_proto): Likewise.
5960         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
5961         verify_local_live_at_start, update_life_info, mark_reg,
5962         calculate_global_regs_live, allocate_reg_life_data,
5963         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
5964         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
5965         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
5966         * fold-const.c (force_fit_type, div_and_round_double,
5967         may_negate_without_overflow_p, int_const_binop, const_binop,
5968         size_binop, size_diffop, fold_convert_const, fold_convert,
5969         invert_tree_comparison, swap_tree_comparison,
5970         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
5971         range_binop, make_range, fold_cond_expr_with_comparison,
5972         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
5973         fold_abs_const, fold_not_const, fold_relational_const, round_up,
5974         round_down): Likewise.
5975         * function.c (find_function_data, assign_stack_temp_for_type,
5976         instantiate_virtual_regs_lossage, aggregate_value_p,
5977         assign_parm_find_entry_rtl, assign_parm_setup_block,
5978         expand_function_start, expand_function_end, keep_stack_depressed,
5979         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
5980
5981 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
5982
5983         * Makefile.in (tree-loop-linear.o): Added.
5984         (OBJS-common): Add tree-loop-linear.o
5985         * common.opt: New flag, ftree-loop-linear.
5986         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
5987         * tree-flow.h: Add prototype for linear_transform_loops.
5988         * tree-optimize.c: Add linear transform after vectorization.
5989         * tree-pass.h: Add struct pass_linear_transform.
5990         * tree-ssa-loop.c: Add pass_linear_transform.
5991         * tree-loop-linear.c: New file.
5992         * lambda-code.c: gcc_assertify.
5993         (gcc_loop_to_lambda_loop): Handle all exit tests.
5994         Handle case where we have (invariant >= induction var).
5995         (find_induction_var_from_exit_cond): Ditto.
5996
5997 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
5998
5999         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
6000         memory tag is call clobbered, so are its aliases.
6001         (group_aliases): When two memory tags being grouped, if one is
6002         call clobbered, so are the other and its aliases.
6003         (add_may_alias): Remove call-clobbering stuff.
6004         (replace_may_alias): Likewise.
6005         (merge_pointed_to_info): Merge pt_global_mem
6006
6007 2004-09-08  Jan Hubicka  <jh@suse.cz>
6008
6009         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
6010         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
6011         (cgraph_expand_function): Remove stale cgraph edges of currently
6012         compiled function; fix non-unit-at-a-time code copying function
6013         node for later reuse.
6014
6015 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
6016
6017         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
6018         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
6019         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
6020         (vec_gc_free, vec_heap_free): New.
6021         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
6022         (DEF_VEC_P): Add allocator argument. Adjust.
6023         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
6024         (DEF_VEC_O): Add allocator argument. Adjust.
6025         (VEC(free)): New.
6026
6027         * tree.h (tree): Define a GC'd vector.
6028         * lamba-code.c (lambda_loop): Likewise.
6029         * value-prof.h (histogram_value): Likewise.
6030
6031 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
6032
6033         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
6034         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
6035         gen_lowpart_common, gen_highpart, gen_highpart_mode,
6036         subreg_highpart_offset, operand_subword, operand_subword_force,
6037         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
6038         set_mem_alias_set, change_address_1, verify_rtx_sharing,
6039         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
6040         try_split, add_insn_after, add_insn_before, remove_insn,
6041         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
6042         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
6043         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
6044         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
6045         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
6046         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
6047         record_path_before_1, check_path_after_1, check_path_after): Likewise.
6048         * except.c (gen_eh_region, resolve_one_fixup_region,
6049         remove_unreachable_regions, convert_from_eh_region_ranges_1,
6050         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
6051         connect_post_landing_pads, sjlj_emit_function_exit,
6052         remove_exception_handler_label, remove_eh_handler,
6053         reachable_next_level, collect_one_action_chain,
6054         output_function_exception_table): Likewise.
6055         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
6056         optimize_save_area_alloca, allocate_dynamic_stack_space,
6057         probe_stack_range, hard_function_value): Likewise.
6058         * expmed.c (mode_for_extraction, store_bit_field,
6059         store_fixed_bit_field, extract_bit_field, expand_shift,
6060         expand_mult_const, expand_mult, choose_multiplier,
6061         expand_mult_highpart, expand_divmod, emit_store_flag,
6062         do_cmp_and_jump): Likewise.
6063         * expr.c (convert_move, convert_modes, move_by_pieces,
6064         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
6065         move_block_from_reg, gen_group_rtx, emit_group_load,
6066         emit_group_move, emit_group_store, use_reg, use_regs,
6067         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
6068         emit_move_insn, emit_move_insn_1, emit_push_insn,
6069         expand_assignment, store_expr, count_type_elements,
6070         store_constructor, store_field, safe_from_p, expand_var,
6071         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
6072
6073 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
6074
6075         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
6076         gcc_assert and gcc_unreachable.
6077         * ddg.c (create_ddg_dependence, add_deps_for_def,
6078         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
6079         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
6080         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
6081         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
6082         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
6083         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
6084         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
6085         dataflow_set_copy, hybrid_search, diagnostic.c,
6086         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
6087         * dojump.c (do_jump): Likewise.
6088         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
6089         compute_dom_fast_query, calculate_dominance_info,
6090         free_dominance_info, get_immediate_dominator,
6091         set_immediate_dominator, get_dominated_by,
6092         redirect_immediate_dominators, nearest_common_dominator,
6093         dominated_by_p, verify_dominators, recount_dominator,
6094         iterate_fix_dominators, add_to_dominance_info,
6095         delete_from_dominance_info): Likewise.
6096         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
6097         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
6098         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
6099         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
6100         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
6101         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
6102         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
6103         output_call_frame_info, output_loc_operands, build_cfa_loc,
6104         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
6105         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
6106         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
6107         splice_child_die, attr_checksum, same_dw_val_p,
6108         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
6109         unmark_dies, value_format, output_loc_list, output_die,
6110         output_pubnames, output_aranges, base_type_die, is_base_type,
6111         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
6112         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
6113         field_byte_offset, add_data_member_location_attribute,
6114         add_const_value_attribute, rtl_for_decl_location,
6115         add_location_or_const_value_attribute, add_byte_size_attribute,
6116         add_bit_offset_attribute, add_bit_size_attribute,
6117         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
6118         decl_start_label, gen_formal_parameter_die,
6119         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
6120         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
6121         force_decl_die, force_type_die, gen_decl_die,
6122         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
6123         dwarf2out_finish): Likewise.
6124
6125 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
6126
6127         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
6128         * builtins.c: Include tree-mudflap.h.
6129
6130 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
6131
6132         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
6133         force operand 0.0 into register in XFmode. Also do not force
6134         operand 0.0 into register if !TARGET_CMOVE.
6135         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
6136         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
6137         implement ftst x87 instruction.
6138         (*fp_jcc_7): New insn pattern. Change corresponding split
6139         pattern to handle "general_operand" instead of
6140         "nonimmediate_operand".
6141
6142 2004-09-08  Ben Elliston  <bje@au.ibm.com>
6143
6144         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
6145
6146 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
6147
6148         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
6149         generated from standard va_arg expansion.
6150         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
6151         marked nodes.
6152         (mf_varname_tree, mf_file_function_line_tree): Add some support
6153         for column numbers if compiled with USE_MAPPED_LOCATION.
6154
6155 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
6156
6157         * c-decl.c (groktypename_in_parm_context): Remove function.
6158         * c-tree.h (groktypename_in_parm_context): Remove prototype.
6159
6160 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
6161
6162         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
6163         * c-parse.in: Include c-common.h instead of objc-act.h.
6164         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
6165         myparms, myparm): Remove %type declarations.
6166         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
6167         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
6168         declarations.
6169         (objc_inherit_code, objc_public_flag): Remove.
6170         (typespec_nonreserved_nonattr): Call
6171         objc_get_protocol_qualified_type() instead of get_static_reference()
6172         and get_protocol_reference().
6173         (stmt_nocomp): Call grokparm() on @catch parameter.
6174         (objcdef): Move semantic action to objc_finish_implementation().
6175         (classdef): Move semantic action to objc_start_class_interface(),
6176         objc_continue_interface(), objc_finish_interface(),
6177         objc_start_class_implementation(), objc_continue_implementation(),
6178         objc_start_category_interface() and
6179         objc_start_category_implementation().
6180         (protocoldef): Move semantic actions to objc_start_protocol() and
6181         objc_finish_interface().
6182         (ivar_decl_list): Remove nonterminal.
6183         (visibility_spec): Move semantic actions to objc_set_visibility().
6184         (ivar_decls): Remove assignment to $$.
6185         (ivar_decl): Rephrase in terms of component_decl; call
6186         objc_add_instance_variable().
6187         (ivars, ivar_declarator): Remove nonterminals.
6188         (opt_semi): New nonterminal.
6189         (methodtype): Remove semantic actions.
6190         (methoddef): Move semantic actions to objc_set_method_type(),
6191         objc_start_method_definition() and objc_finish_method_definition().
6192         (methodproto): Move semantic actions to objc_set_method_type() and
6193         objc_add_method_declaration().
6194         (methoddecl): Use objc_typename instead of typename; move semantic
6195         actions to objc_build_method_signature().
6196         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
6197         (optparmlist): Express in terms of optparms and optellipsis.
6198         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
6199         nonterminals.
6200         (keyworddecl): Use objc_typename instead of typename.
6201         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
6202         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
6203
6204 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
6205
6206         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
6207         (MD_FALLBACK_FRAME_STATE_FOR): Update.
6208         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
6209         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
6210         (MD_FROB_UPDATE_CONTEXT): Remove default.
6211         (uw_update_context_1): Instead #ifdef invocation.
6212         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
6213         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
6214         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
6215         (MD_UNWIND_SUPPORT): Undefine this instead.
6216         * config/i386/gnu.h: Likewise.
6217         * config/alpha/linux-unwind.h: New file, macro converted to
6218         function, extracted from..
6219         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
6220         (MD_UNWIND_SUPPORT): Define.
6221         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
6222         * config/i386/linux-unwind.h, config/i386/linux.h,
6223         config/i386/linux64.h: Likewise.
6224         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
6225         MD_HANDLE_UNWABI too.
6226         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
6227         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
6228         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
6229         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
6230         * config/sparc/linux-unwind.h, config/sparc/linux.h,
6231         config/sparc/linux64.h: Likewise.
6232         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
6233         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
6234         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
6235         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
6236         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
6237
6238 2004-09-07  Jan Hubicka  <jh@suse.cz>
6239
6240         * cse.c (fold_rtx):  Avoid building of
6241         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
6242
6243         * tree-ssa-pre.c (grand_bitmap_obstack): New.
6244         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
6245         (init_pre): Initialize obstack.
6246         (fini_pre): Free obstack.
6247
6248 2004-09-07  David Daney  <ddaney@avtrex.com>
6249
6250         * config.gcc: Added support for --with-divide=[breaks|traps] for
6251         mips targets.
6252         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
6253         (TARGET_DIVIDE_TRAPS): New macro.
6254         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
6255         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
6256         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
6257         GENERATE_DIVIDE_TRAPS.
6258         (mips_output_division): Emit conditional trap if
6259         GENERATE_DIVIDE_TRAPS is set.
6260         * doc/install.texi: Document --with-divide.
6261         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
6262
6263 2004-09-07  Caroline Tice  <ctice@apple.com>
6264
6265         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
6266         EDGE_CROSSING, to flags test case.
6267
6268 2004-09-07  Jan Hubicka  <jh@suse.cz>
6269
6270         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
6271         class too.
6272
6273 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
6274
6275         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
6276         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
6277         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
6278         or gcc_unreachable.
6279         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
6280         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
6281         alloc_aux_for_edges, free_aux_for_edges): Likewise.
6282         * cfgcleanup.c (try_forward_edges,
6283         merge_blocks_move_predecessor_nojumps,
6284         merge_blocks_move_successor_nojumps): Likewise.
6285         * cfgexpand.c (expand_gimple_cond_expr,
6286         expand_gimple_tailcall): Likewise.
6287         * cfghooks.c (duplicate_block): Likewise.
6288         * cfglayout.c (record_effective_endpoints,
6289         insn_locators_initialize, change_scope, fixup_reorder_chain,
6290         verify_insn_chain, fixup_fallthru_exit_predecessor,
6291         duplicate_insn_chain, cfg_layout_finalize): Likewise.
6292         * cfgloopanal.c (check_irred): Likewise.
6293         * cfgloop.c (superloop_at_depth, flow_loops_free,
6294         flow_loop_entry_edges_find, flow_loops_find,
6295         flow_loop_outside_edge_p, get_loop_body,
6296         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
6297         get_loop_exit_edges, num_loop_branches, cancel_loop,
6298         verify_loop_structure): Likewise.
6299         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
6300         duplicate_loop_to_header_edge, create_preheader,
6301         create_loop_notes): Likewise.
6302         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
6303         edirect_branch_edge, force_nonfallthru_and_redirect,
6304         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
6305         commit_edge_insertions, commit_edge_insertions_watch_calls,
6306         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
6307         cfg_layout_redirect_edge_and_branch_force,
6308         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
6309         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
6310         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
6311         cgraph_varpool_node): Likewise.
6312         * cgraphunit.c (cgraph_finalize_function,
6313         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
6314         cgraph_expand_function, cgraph_remove_unreachable_nodes,
6315         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6316         cgraph_mark_inline, cgraph_expand_all_functions,
6317         cgraph_build_static_cdtor): Likewise.
6318         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
6319         simplify_logical, distribute_notes, insn_cuid): Likewise.
6320         * conflict.c (conflict_graph_add, print_conflict): Likewise.
6321         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
6322         coverage_checksum_string): Likewise.
6323         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
6324         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
6325         cse_cc_succs, cse_condition_code_reg): Likewise.
6326         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
6327         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
6328         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
6329         cselib_record_set): Likewise.
6330
6331 2004-09-07  Jan Hubicka  <jh@suse.cz>
6332
6333         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
6334
6335 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
6336
6337         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
6338         fold_convert.
6339         (fold_builtin_strpbrk): Likewise.
6340         * expr.c (array_ref_low_bound): Likewise.
6341         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
6342         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
6343         * tree-sra.c (generate_element_zero): Likewise.
6344         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
6345         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
6346         add_old_iv_candidates, add_iv_candidates): Likewise.
6347         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
6348
6349 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
6350
6351         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
6352         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
6353         c_expand_expr, boolean_increment, nonnull_check_p,
6354         check_function_arguments_recurse, fold_offsetof_1): Likewise.
6355         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
6356         builtin_define_type_max): Likewise.
6357         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
6358         implicit_decl_warning, builtin_function, build_compound_literal,
6359         complete_array_type, grokdeclarator, get_parm_info,
6360         start_function, store_parm_decls_oldstyle,
6361         c_write_global_declarations): Likewise.
6362         * c-format.c (get_constant, decode_format_attr,
6363         maybe_read_dollar_number, get_flag_spec, check_format_arg,
6364         check_format_types, format_type_warning,
6365         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
6366         init_dynamic_diag_info, handle_format_attribute): Likewise.
6367         * c-gimplify.c (push_context, pop_context, finish_bc_block):
6368         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
6369         * c-objc-common.c (c_tree_printer): Likewise.
6370         * c-pch.c (pch_init): Likewise.
6371         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
6372         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
6373         * c-typeck.c (c_incomplete_type_error, composite_type,
6374         common_pointer_type, common_type, same_translation_unit_p,
6375         tagged_types_tu_compatible_p, finish_init, pop_init_level,
6376         set_designator, set_nonincremental_init_from_string,
6377         process_init_element, c_finish_if_stmt): Likewise.
6378         * caller-save.c (init_caller_save, save_call_clobbered_regs,
6379         insert_restore, insert_save, insert_one_insn): Likewise.
6380         * calls.c (emit_call_1, compute_argument_block_size,
6381         precompute_arguments, expand_call, emit_library_call_value_1,
6382         store_one_arg): Likewise.
6383
6384 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
6385
6386         * configure.ac (enable-checking): Add release option. Reorganize
6387         to avoid repetition.
6388         * configure: Rebuilt.
6389         * doc/install.texi (enable-checking): Amend documentation.
6390
6391 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
6392
6393         PR bootstrap/17313
6394         * Makefile.in (specs.ready): Depend on cc1$(exeext).
6395
6396 2004-09-06  James E Wilson  <wilson@specifixinc.com>
6397
6398         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
6399         movdf_hardfloat_32bit): Split fG into two alternatives.
6400         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
6401
6402         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
6403
6404 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
6405
6406         * final.c (output_in_slot): Delete.
6407         (final_scan_insn): Revert 2004-09-03 change.
6408         (output_asm_insn): Likewise.
6409         * config/sparc/sparc.c (output_return): Likewise.
6410         (output_sibcall): Likewise.
6411
6412 2004-09-06  Jan Hubicka  <jh@suse.cz>
6413
6414         * loop.c (loop_dump_aux): Do not print RTL when not available.
6415         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
6416         frontend specific type nodes.
6417         (produce_memory_decl_rtl): Break out from ...
6418         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
6419         (get_computation_at): Avoid random tree sharing.
6420         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
6421
6422 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
6423
6424         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
6425         unnecessary commands.
6426
6427 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
6428
6429         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
6430         (bitmap.o): Likewise.
6431
6432 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
6433
6434         Unify the management of RTL and tree-level dump files.
6435
6436         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
6437         Don't print function name to the dump file, the pass manager
6438         would do this for us. Add code from the top of
6439         rest_of_compilation, up to the initial RTL dump.
6440         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
6441         close the DFI_sibling dump file.
6442         (rest_of_compilation): Don't do that here.  Remove code up to the
6443         initial RTL dump.
6444         (init_optimization_passes): Remove.
6445         (pass_rest_of_compilation): Change pass name to NULL.
6446         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
6447         Do not call init_optimization_passes.
6448         * toplev.h (init_optimization_passes): Remove.
6449
6450         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
6451         finish_graph_dump_file): Remove SUFFIX parameter.
6452         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
6453         finish_graph_dump_file): Likewise.
6454
6455         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
6456         * cfgexpand.c (pass_expand): Adjust.
6457         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
6458         * passes.c (pass_rest_of_compilation): Adjust.
6459         * predict.c (pass_profile): Adjust.
6460         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
6461         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
6462         pass_split_crit_edges, pass_warn_function_return): Adjust.
6463         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
6464         * tree-dfa.c (pass_referenced_vars): Adjust.
6465         * tree-eh.c (pass_lower_eh): Adjust.
6466         * tree-if-conv.c (pass_build_ssa): Adjust.
6467         * tree-into-ssa.c (pass_build_ssa): Adjust.
6468         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
6469         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
6470         * tree-nrv.c (pass_nrv): Adjust.
6471         * tree-optimize.c (pass_gimple, pass_all_optimizations,
6472         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
6473         pass_init_datastructures): Adjust.
6474         * tree-outof-ssa.c (pass_del_ssa): Adjust.
6475         * tree-profile.c (pass_tree_profile): Adjust.
6476         * tree-sra.c (pass_sra): Adjust.
6477         * tree-ssa-alias.c (pass_may_alias): Adjust.
6478         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
6479         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
6480         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
6481         * tree-ssa-dom.c (pass_dominator): Adjust.
6482         * tree-ssa-dse.c (pass_dse): Adjust.
6483         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
6484         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
6485         * tree-ssa-loop-ch.c (pass_ch): Adjust.
6486         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
6487         pass_loop_done, pass_complete_unroll, pass_iv_canon,
6488         pass_iv_optimize, pass_vectorize): Adjust.
6489         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
6490         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
6491         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
6492         pass_late_warn_uninnitialized): Adjust.
6493         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
6494
6495         * Makefile.in (tree-dump.o): Add new dependencies.
6496         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
6497         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
6498         Likewise.
6499         * toplev.c (dump_file_name): New.
6500         * tree-dump.c (dump_enable_all): Add LETTER parameter.
6501         (struct dump_file_info): Add NUM and LETTER fields.
6502         (dump_files): Adjust and add RTL dump files.
6503         (dump_register): Add NUM and LETTER fields.
6504         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
6505         (dump_begin): Use get_dump_file_name.
6506         (dump_switch_p_1): Adjust call to dump_enable_all.
6507         * tree-dump.h (dump_register): Adjust prototype.
6508         * tree-optimize.c (register_one_dump_file): Take dump file index.
6509         Support flags for RTL dumps.
6510         (register_dump_files): Fill in NUM field of struct dump_file_info.
6511         Track properties both when the gate is executed and when it is not.
6512         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
6513         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
6514         dumps of RTL.
6515         * tree-pass.h (dump_file_name): New.
6516         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
6517         New.
6518
6519         * Makefile.in (passes.o): Add new dependencies.
6520         * passes.c (struct dump_file_info, enum dump_file_index,
6521         dump_file_tbl, init_optimization_passes): Remove.
6522         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
6523         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
6524         dump_enabled_p.
6525         (finish_optimization_passes): Update finish_graph_dump_file loop.
6526         (enable_rtl_dump_file): Remove.
6527         * tree-dump.c (dump_files): Adjust and add RTL dump files.
6528         (enable_rtl_dump_file): Add here.
6529         * tree.h (enum tree_dump_index): Add RTL dump file indices.
6530         * doc/invoke.texi (Debugging options): Document new RTL debugging
6531         options.  Update.
6532
6533 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
6534
6535         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
6536         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
6537         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
6538         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
6539         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
6540         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
6541         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
6542         vec.h: Fix comment formatting.
6543
6544 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
6545
6546         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
6547         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
6548         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
6549         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
6550         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
6551         tree-ssa-loop-niter.c, tree-ssa-operands.c,
6552         tree-ssa-operands.h, tree-ssa-propagate.c,
6553         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
6554         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
6555
6556 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
6557
6558         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
6559         vectorizer is enabled.
6560
6561 2004-09-05  Andreas Jaeger  <aj@suse.de>
6562
6563         * tree-if-conv.c: Spell check comments and clean up whitespace.
6564
6565 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6566
6567         * tree-ssa-loop-ivopts.c: New file.
6568         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
6569         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
6570         target_pres_cost, target_spill_cost): Declare.
6571         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
6572         spill_cost): Renamed to ...
6573         (target_avail_regs, target_res_regs, target_small_cost,
6574         target_pres_cost, target_spill_cost): ... and exported.
6575         (init_set_costs, global_cost_for_size): Work with renamed variables.
6576         * common.opt (flag_ivopts): New flag.
6577         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
6578         REF_ORIGINAL.
6579         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
6580         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
6581         generating SSA form.
6582         (force_gimple_operand): New function.
6583         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
6584         * tree-cfg.c (stmt_bsi): New function.
6585         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
6586         PARAM_IV_MAX_CONSIDERED_USES): New.
6587         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
6588         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
6589         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
6590         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
6591         * tree-nested.c (build_addr): Export.
6592         * tree-optimize.c (init_tree_optimization_passes): Add
6593         pass_iv_optimize.
6594         * tree-pass.h (pass_iv_optimize): Declare.
6595         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
6596         IMAGPART_EXPR.
6597         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
6598         as a phi node argument.
6599         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
6600         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
6601         functions.
6602         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
6603         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
6604         pass_iv_optimize): New pass.
6605         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
6606         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
6607         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
6608         * tree.h (REF_ORIGINAL): New macro.
6609         (build_int_cst_type, unsigned_type_for, zero_p,
6610         cst_and_fits_in_hwi, build_addr): Declare.
6611         * doc/invoke.texi (-fivopts): Document.
6612         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
6613         PARAM_IV_MAX_CONSIDERED_USES): Document.
6614         * doc/passes.texi: Document induction variable optimizations pass.
6615
6616 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6617
6618         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
6619         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
6620         * c-common.c (c_common_attribute_table): Accept parameters to
6621         sentinel attribute.
6622         (check_function_sentinel, handle_sentinel_attribute): Likewise.
6623         * doc/extend.texi: Update accordingly.
6624
6625 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6626
6627         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
6628         New.
6629         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
6630         attribute.
6631         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
6632         New functions.
6633         (c_common_attribute_table): Add `sentinel' attribute.
6634         (check_function_arguments): Handle `sentinel' attribute.
6635         * doc/extend.texi: Document `sentinel' attribute.
6636
6637 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
6638
6639         * configure: Regenerated.
6640
6641 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6642
6643         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
6644
6645         * tree.c (save_expr): No longer TREE_READONLY.
6646
6647 2004-09-04  Jan Hubicka  <jh@suse.cz>
6648
6649         * passes.c (rest_of_clean_state):  Fix merge conflict made during
6650         commiting the patch.
6651
6652 2004-09-04  Jan Hubicka  <jh@suse.cz>
6653
6654         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
6655
6656 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
6657
6658         * doc/md.texi (shift patterns): New anchor.  Add reference to
6659         TARGET_SHIFT_TRUNCATION_MASK.
6660         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
6661         * target.h (shift_truncation_mask): New target hook.
6662         * targhook.h (default_shift_truncation_mask): Declare.
6663         * targhook.c (default_shift_truncation_mask): Define.
6664         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
6665         (TARGET_INITIALIZER): Include it.
6666         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
6667         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
6668         reject all out-of-range values.  Fix sign-extension code for modes
6669         whose width is smaller than HOST_BITS_PER_WIDE_INT.
6670         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
6671         (expand_superword_shift, expand_subword_shift): Likewise.
6672         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
6673         (expand_binop): Use them to implement double-word shifts.
6674         * config/arm/arm.c (arm_shift_truncation_mask): New function.
6675         (TARGET_SHIFT_TRUNCATION_MASK): Define.
6676
6677 2004-09-04  Jan Hubicka  <jh@suse.cz>
6678
6679         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
6680         (mix): New macro copied from hashtab.c
6681         (iterative_hash_hashval_t, iterative_hash_pointer,
6682         iterative_hash_host_wide_int): New functions based on hashtab.c
6683         implementation.
6684
6685 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
6686
6687         * config/mips/mips.md (mask): New mode attribute.
6688         (zero_extendsidi2): Add memory alternative.
6689         (*zero_extendsidi2_mem): Delete.
6690         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
6691         memory_operand in the TARGET_MIPS16 check.
6692         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
6693         Redefine using :GPR and :SHORT.
6694         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
6695
6696 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
6697
6698         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
6699         using rint_optab.
6700         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
6701         expand_builtin_mathfn.
6702         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
6703         btrunc?f patterns for btrunc_optab. Implement rint_optab using
6704         rint?f patterns.
6705         * optabs.c (init_optabs): Initialize rint_optab.
6706         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
6707         Add new OTI_rint.
6708         (btrunc_optab): Rename macro from trunc_optab.
6709         (rint_optab): Define corresponding macro.
6710
6711         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
6712         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
6713
6714         * config/i386/i386-protos.h (emit_i387_cw_initialization):
6715         Change prototype. Add new int parameter.
6716         * config/i386/i386.c (emit_i387_cw_initialization):
6717         Handle new rounding modes.
6718
6719         * config/i386/i386.h (enum fp_cw_mode): Delete.
6720         (MODE_NEEDED): Handle new rounding modes.
6721         (EMIT_MODE_SET): Change condition to handle new rounding modes.
6722
6723         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
6724         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
6725         represent different rounding modes of frndint insn.
6726         (type): Add frndint type.
6727         (i387, length, memory): Handle this type.
6728         (i387_cw): New attribute definition.
6729         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
6730         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
6731         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
6732         Add "i387_cw" attribute defined to "trunc".
6733         (x86_fnstcw_1): Remove comment.
6734         (*frndintxf2): Rename insn definition to frndintxf2. Move
6735         insn definition near rint?f2 expanders.
6736         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
6737         rintf and rintl built-ins as inline x87 intrinsics.
6738         (frndintxf2_floor): New pattern to implement floor rounding
6739         mode with frndint x87 instruction.
6740         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
6741         floorf and floorl built-ins as inline x87 intrinsics.
6742         (frndintxf2_ceil): New pattern to implement ceil rounding
6743         mode with frndint x87 instruction.
6744         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
6745         ceilf and ceill built-ins as inline x87 intrinsics.
6746         (frndintxf2_trunc): New pattern to implement trunc rounding
6747         mode with frndint x87 instruction.
6748         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
6749         truncf and truncl built-ins as inline x87 intrinsics.
6750         (frndintxf2_mask_pm): New pattern to implement rounding
6751         mode with exceptions with frndint x87 instruction.
6752         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
6753         implement nearbyint, nearbyintf and nearbyintl built-ins as
6754         inline x87 intrinsics.
6755
6756 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
6757
6758         * config/mips/mips.md (SHORT): New mode macro.
6759         (size): New mode attribute.
6760         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
6761         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
6762         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
6763         !ISA_HAS_SEB_SEH.
6764         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
6765         *extend[qh]isi2_hw patterns and extending them to di.
6766         (extendqihi2): Implement as define_insn_and_split that produces
6767         extendqisi2 after reload.
6768
6769 2004-09-03  Devang Patel  <dpatel@apple.com>
6770
6771         * Makefile.in (OBJS-common): Add tree-if-conv.o
6772         (tree-if-conv.o): New rule.
6773         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
6774         (get_loop_body_in_bfs_order): New.
6775         * cfgloop.h (get_loop_body_in_bfs_order): New.
6776         * tree-flow.h (enum move_pos): Move here from ..
6777         * tree-ssa-loop-im.c (enum move_pos): here.
6778         (movement_possibility): Make externally visible.
6779         * tree-optimize.c (init_tree_optimization_passes): New entry for
6780         if conversion pass.
6781         * tree-pass.h (pass_if_conversion): New.
6782         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
6783         * tree-if-conv.c: New file.
6784         * doc/passes.texi: Document tree if-conversion pass.
6785         * doc/tree-ssa.texi: Same.
6786
6787 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
6788
6789         PR target/14925:
6790         Makefile.in (LIB2ADDEHSTATIC): New.
6791         (LIB2ADDEHSHARED): New.
6792         (LIBUNWIND): New.
6793         (LIBUNWINDDEP): New.
6794         (SHLIBUNWIND_LINK): New.
6795         (SHLIBUNWIND_INSTALL): New.
6796         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
6797         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
6798         (clean): Remove libunwind*
6799         (stage1-start): Remove and copy stage1/libunwind*.
6800         (stage2-start): Remove and copy stage2/libunwind*.
6801         (stage3-start): Remove and copy stage3/libunwind*.
6802         (stage4-start): Remove and copy stage4/libunwind*.
6803         (stageprofile-start): Remove and copy stageprofile/libunwind*.
6804         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
6805
6806         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
6807         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
6808         tmake_file if --with-system-libunwind isn't used.
6809
6810         * config/ia64/t-glibc-libunwind: New file.
6811         * config/t-libunwind-elf: Likewise.
6812         * unwind-compat.c: Likewise.
6813         * unwind-compat.h: Likewise.
6814         * unwind-dw2-fde-compat.c: Likewise.
6815
6816         * config/ia64/t-glibc (LIB2ADDEH): Updated.
6817         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
6818
6819         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
6820         aliases if needed.
6821         * unwind-dw2-fde-glibc.c: Likewise.
6822         * unwind-dw2.c: Likewise.
6823
6824         * config/t-libunwind (LIB2ADDEH): Updated.
6825         (LIB2ADDEHSTATIC): New.
6826         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
6827         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
6828
6829         * configure.ac: Change --enable-libunwind-exceptions to
6830         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
6831         * configure: Regenerated.
6832         * config.in: Updated.
6833
6834         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
6835         above and mention --with-system-libunwind.
6836         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
6837         removed in gcc 3.4.3 and later.
6838
6839         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
6840         USE_LIBUNWIND_EXCEPTIONS is defined.
6841
6842         * mklibgcc.in: Support libunwind.
6843
6844 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
6845
6846         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
6847         m_NOCONA.
6848
6849 2004-09-03  Richard Henderson  <rth@redhat.com>
6850
6851         PR middle-end/9997
6852         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
6853         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
6854         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
6855         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
6856         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
6857         resize_stack_vars_conflict, add_stack_var_conflict,
6858         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
6859         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
6860         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
6861         expand_one_static_var, expand_one_hard_reg_var,
6862         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
6863         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
6864         (expand_used_vars): Rewrite.
6865         * Makefile.in (cfgexpand.o): Update dependencies.
6866
6867 2004-09-04  Jan Hubicka  <jh@suse.cz>
6868
6869         * cfg.c (free_edge): Use ggc_free.
6870         (expunge_block): Use ggc_free.
6871         * passes.c (rest_of_clean_state): Free after compilation.
6872         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
6873         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
6874
6875 2004-09-03  James E Wilson  <wilson@specifixinc.com>
6876
6877         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
6878         DECL_EXTERNAL check.
6879
6880 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6881
6882         * final.c (output_in_slot): New global variable.
6883         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
6884         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
6885         'output_in_slot' before invoking output_asm_insn.
6886         (output_asm_insn): Add a space after the tab if 'output_in_slot'
6887         is set.
6888         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
6889         final_scan_insn.
6890         (output_sibcall): Likewise.
6891
6892 2004-09-03  Jan Hubicka  <jh@suse.cz>
6893
6894         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
6895         * tree-ssanames (init_ssanames): Likewise.
6896
6897 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
6898
6899         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
6900         objc_declare_protocols, objc_start_protocol,
6901         objc_start_class_interface, objc_start_category_interface,
6902         objc_continue_interface, objc_finish_interface,
6903         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
6904         objc_start_class_implementation, objc_start_category_implementation,
6905         objc_continue_implementation, objc_finish_implementation,
6906         objc_add_method_declaration, objc_start_method_definition,
6907         objc_finish_method_definition, objc_build_keyword_decl,
6908         objc_build_method_signature, objc_build_encode_expr,
6909         objc_build_protocol_expr, objc_build_selector_expr,
6910         objc_build_message_expr, objc_build_string_object,
6911         objc_get_class_reference, objc_get_protocol_qualified_type,
6912         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
6913
6914 2004-09-03  James E Wilson  <wilson@specifixinc.com>
6915
6916         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
6917
6918         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
6919         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
6920         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
6921         (mips_recip1_<fmt>): Use frdiv1 type.
6922         (mips_recip2_<fmt>): Use frdiv2 type.
6923         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
6924         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
6925         and frsqrt1.
6926         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
6927
6928 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
6929
6930         * reload.c (find_reloads): Swap operand_loc pointers for
6931         find_dummy_reload if we have swapped two operands.
6932
6933 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
6934
6935         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
6936         to get the tablejump-insn before the jump-table label.
6937
6938 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
6939
6940         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
6941         objc_declare_protocols, objc_build_message_expr,
6942         objc_finish_message_expr, objc_build_selector_expr,
6943         objc_build_protocol_expr, objc_build_encode_expr,
6944         objc_build_string_object, objc_get_protocol_qualified_type,
6945         objc_get_class_reference, objc_get_class_ivars,
6946         objc_start_class_interface, objc_start_category_interface,
6947         objc_start_protocol, objc_continue_interface, objc_finish_interface,
6948         objc_start_class_implementation, objc_start_category_implementation,
6949         objc_continue_implementation, objc_finish_implementation,
6950         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
6951         objc_add_method_declaration, objc_start_method_definition,
6952         objc_finish_method_definition, objc_add_instance_variable,
6953         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
6954         objc_finish_try_stmt, objc_begin_catch_clause,
6955         objc_finish_catch_clause, objc_build_finally_clause,
6956         objc_build_synchronized, objc_static_init_needed_p,
6957         objc_generate_static_init_call): New prototypes.
6958
6959 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
6960
6961         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
6962         is only one reg.
6963         (ia64_function_value): Ditto.
6964
6965 2004-09-03  Jan Beulich  <jbeulich@novell.com>
6966
6967         * config.gcc: Resurrect NetWare as a target. Handle special case of
6968         Novell linker to be used (specified through --with-ld=) and threading
6969         model of either Posix (default) or NKS.
6970         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
6971         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
6972         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
6973         * config/i386/netware.c, config/i386/netware.h: New.
6974         * config/i386/nwld.c, config/i386/nwld.h: New.
6975         * config/i386/netware-crt0.c: New.
6976         * config/i386/netware-libgcc.c: New.
6977         * config/i386/netware-libgcc.def: New.
6978         * config/i386/netware-libgcc.exp: New.
6979         * config/i386/t-netware, config/i386/t-nwld: New.
6980         * gthr-nks.h: New.
6981         * doc/install.texi: Document NKS threading model.
6982
6983 2004-09-03  Jan Beulich  <jbeulich@novell.com>
6984
6985         PR c/7054
6986         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
6987         * tree.h (initial_max_fld_align): Declare
6988         * stor-layout.c (initial_max_fld_align): Define and initialize.
6989         (maximum_field_alignment): Initialize to the same value.
6990         * common.opt: Add -fpack-struct= variant of switch.
6991         * opts.c: Handle -fpack-struct= variant of switch.
6992         * c-pragma.c: Change #pragma pack() handling so that it becomes
6993         compatible to other compilers: accept individual 'push' argument,
6994         make final pop restore (command line) default, correct interaction
6995         of push/pop and sole specification of a new alignment (so that the
6996         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
6997         to #pragma pack(push, <n>).
6998         * doc/extend.texi: New node "Structure-Packing Pragmas" under
6999         "Pragmas", describing #pragma pack.
7000         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
7001         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
7002         Document new TARGET_DEFAULT_PACK_STRUCT.
7003
7004 2004-09-03  Devang Patel  <dpatel@apple.com>
7005
7006         * dwarf2out.c (gen_field_die). Equate decl number to die.
7007
7008 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
7009
7010         PR target/15832
7011         * global.c (modify_reg_pav): New function.
7012         (make_accurate_live_analysis): Call the new function.  Move pavin
7013         modification by earlyclobber set into the new function.
7014
7015 2004-09-03  Andreas Schwab  <schwab@suse.de>
7016
7017         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
7018         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
7019         extended.
7020
7021 2004-09-02  Jan Beulich  <jbeulich@novell.com>
7022
7023         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
7024         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
7025         not unwind code specific ones.
7026         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
7027         Remove unwind code specific dependencies.
7028         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
7029         Remove gbl-ctors.h.
7030         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
7031         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
7032         * tsystem.h: Declare memcpy and memset when inhibit_libc.
7033
7034 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
7035
7036         * combine.c (try_combine): Delay modifying of insns which cannot
7037         be easily undone.
7038
7039 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
7040
7041         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
7042         tree-loop-im.
7043         * gcc/tree-ssa-loop.c: Ditto
7044         * gcc/tree-ssa-loop-ivcanon.c: Ditto
7045         * gcc/doc/invoke.texi: Ditto.
7046
7047 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
7048
7049         * c-decl.c (store_parm_decls_newstyle): Make static.
7050         (store_parm_decls_from): New function.
7051         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
7052         (store_parm_decls_from): New prototype.
7053
7054 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
7055
7056         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
7057         HImode with STRICT_ALIGNMENT.
7058
7059 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
7060
7061         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
7062         (TARGET_OS_CPP_BUILTINS): Likewise.
7063         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
7064         TARGET_BPABI_CPP_BUILTINS.
7065
7066 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
7067
7068         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
7069
7070 2004-09-02  Eric Christopher  <echristo@redhat.com>
7071
7072         * builtins.c (expand_builtin_cabs): Delete.
7073         (expand_builtin): If unable to fold the values do a normal
7074         library call for builtin_cab*.
7075         (fold_builtin_cabs): Depend on optimize and optimize_size.
7076         * optabs.c (expand_cmplxdiv_straight): Delete.
7077         (expand_cmplxdiv_wide): Ditto.
7078         (expand_vector_binop): Ditto.
7079         (expand_vector_unop): Ditto.
7080         (expand_complex_abs): Delete.
7081         (expand_binop): Remove calls to above functions.
7082         Remove open coding of complex arithmetic.
7083         (expand_unop): Ditto.
7084         * optabs.h: Remove prototypes.
7085
7086 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
7087
7088         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
7089         * c-tree.h (store_parm_decls_newstyle): New prototype.
7090
7091 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
7092
7093         * config/rs6000/rs6000.c (expand_block_clear): Use vector
7094         instructions if available.
7095         (expand_block_move): Likewise.
7096
7097 2004-09-03  Jan Hubicka  <jh@suse.cz>
7098
7099         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
7100
7101 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
7102
7103         * config/arm/symbian.h (LIB_SPEC): Define to empty.
7104         * config/arm/t-symbian (SHLIB_LC): Likewise.
7105
7106 2004-09-02  Paul Brook  <paul@codesourcery.com>
7107
7108         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
7109
7110 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
7111
7112         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
7113         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
7114         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
7115         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
7116         (mips_issue_rate): Remove unreachable abort.
7117         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
7118         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
7119         (mips_block_move_straight, print_operand_address, mips_file_start)
7120         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
7121         (mips_output_conditional_branch, mips_expand_builtin_direct)
7122         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
7123         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
7124         with gcc_assert.
7125
7126 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
7127
7128         * config/mips/mips.md (*lea_high64): Change split condition to
7129         flow2_completed.  Add a peephole2 to generate a more parallel version.
7130
7131 2004-09-02  Jan Hubicka  <jh@suse.cz>
7132
7133         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
7134         GGC.
7135
7136         * ggc-page.c: include tree-flow.h.
7137         (extra_order_size_table): Add stmt_ann_d.
7138         (STAT_LABEL): Rename from ....
7139         (LABEL): ... this one.
7140         * Makefile.in (ggc-page.o): Add dependency.
7141
7142         * ggc-common.c (ggc_force_collect): New global variable.
7143         (loc_description): Add fields "freed", "collected"
7144         (ptr_hash): New static hash
7145         (ptr_hash_entry): New structure.
7146         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
7147         (ggc_record_overhead): Take ptr argument, record it
7148         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
7149         (cmp_statistics): Imrove sorting.
7150         (dump_ggc_loc_statistics): Output newly collected statistics
7151         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
7152         (ggc_free): Call ggc_free_overhead.
7153         (ggc_collect): Force collection when asked to be forced.
7154         (ggc_collect): Call ggc_prune_overhead_list.
7155         * ggc.h (ggc_force_collect): Declare
7156         (ggc_record_overhead): Update prototype.
7157         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
7158
7159 2004-09-02  James E Wilson  <wilson@specifixinc.com>
7160
7161         * common.opt (ftrapping-math): Default to on.
7162
7163 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
7164
7165         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
7166
7167 2004-09-02  Denis Chertykov  <denisc@overta.ru>
7168
7169         PR target/16884
7170         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
7171         match_scratch.
7172         (*movmemqi_insn): Likewise.
7173         (*movmemhi): Likewise.
7174         (clrmemhi): Likewise.
7175         (*clrmemqi): Likewise.
7176         (*clrmemhi): Likewise.
7177
7178 2004-09-02  Paul Brook  <paul@codesourcery.com>
7179
7180         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
7181         default_use_cxa_atexit=yes.
7182
7183 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
7184
7185         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
7186         (struct kernel_old_ucontext): Delete.
7187         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
7188         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
7189         when IN_LIGGCC2.
7190
7191 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
7192
7193         * toplev.c (process_options): Fix typo.
7194
7195 2004-09-01  Richard Henderson  <rth@redhat.com>
7196
7197         PR middle-end/17258
7198         * calls.c (initialize_argument_information): Tighten pass-through
7199         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
7200         Use build_fold_addr_expr.
7201         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
7202         that assumes ADDR_EXPR allocates stack space.
7203         * fold-const.c (build_fold_addr_expr_with_type): Look through
7204         WITH_SIZE_EXPR.
7205
7206 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
7207
7208         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
7209         * ggc.h (ggc_alloc_rtx): Delete.
7210
7211 2004-09-01  Roger Sayle  <roger@eyesopen.com>
7212
7213         * expmed.c (enum alg_code): Remove long unused enumeration values.
7214         (struct mult_cost): New structure to hold the "score" of a synthetic
7215         multiply sequence, including both a rtx_cost and a latency field.
7216         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
7217         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
7218         (struct algorithm): Change type of cost field to be mult_cost.
7219         (synth_mult): Change type of cost_limit argument to be a
7220         pointer to a mult_cost.  Update all cost comparisons to use the
7221         new mult_cost infrastructure.  For alg_add_factor and
7222         alg_sub_factor operations, latency is lower than the rtx_cost.
7223         (choose_mult_variant):  Update calls to synth_mult.  Perform
7224         cost comparisons using the new mult_cost infrastructure.
7225         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
7226         to optain the total rtx_cost of a synth_mult "algorithm".
7227
7228 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
7229
7230         * config/rs6000/power4.md: Increase store latency to 12.
7231         * config/rs6000/power5.md: Same.
7232
7233 2004-09-01  James E Wilson  <wilson@specifixinc.com>
7234
7235         PR target/14064
7236         * config/avr/avr.c (avr_unique_section): Delete prototype and
7237         definition.
7238         (TARGET_ASM_UNIQUE_SECTION): Delete.
7239
7240 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
7241
7242         * c-parse.in (primary): Call objc_build_message_expr(),
7243         objc_build_selector_expr(), objc_build_protocol_expr(),
7244         objc_build_encode_expr() and objc_build_string_object() instead of
7245         build_message_expr(), build_selector_expr(), build_protocol_expr(),
7246         build_encode_expr() and build_objc_string_object(), respectively.
7247         (component_decl_list2): Call objc_get_class_ivars() instead of
7248         get_class_ivars_from_name().
7249         (keyworddecl): Call objc_build_keyword_decl() instead of
7250         build_keyword_decl().
7251         (receiver): Call objc_get_class_reference() instead of
7252         get_class_reference().
7253         (reswords): Add blank line before @@ifobjc section, for clarity.
7254
7255 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
7256
7257         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
7258         to Altivec vetors.
7259
7260 2004-09-01  Wu Yongwei  <adah@sh163.net>
7261             Danny Smith  <dannysmith@users.sourceforge.net>
7262
7263         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
7264         not Windows 'DWORD'.
7265         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
7266         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
7267         (__gthr_win32_recursive_mutex_init_function): Add prototype for
7268         __GTHREAD_HIDE_WIN32API case..
7269         (__gthr_win32_recursive_mutex_lock): Likewise.
7270         (__gthr_win32_recursive_mutex_trylock): Likewise.
7271         (__gthr_win32_recursive_mutex_unlock): Likewise.
7272         (__gthread_recursive_mutex_init_function); Add definition for
7273         __GTHREAD_HIDE_WIN32API case.
7274         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
7275         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
7276         call to InterlockedDecrement.
7277
7278 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7279
7280         * tree-tailcall.c (find_tail_calls): Also fail is statement has
7281         volatile operands.
7282
7283         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
7284
7285         * doc/c-tree.texi: Document new operands for ARRAY_REF and
7286         COMPONENT_REF.
7287
7288 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7289
7290         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
7291         * common.opt (fspeculative-prefetching): New.
7292         * flags.h (flag_speculative_prefetching_set): Declare.
7293         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
7294         values.
7295         * opts.c (flag_sepculative_prefetching_set): New variable.
7296         (common_handle_option): Handle -fspeculative-prefetching.
7297         * passes.c (rest_of_compilation): Ditto.
7298         * profile.c (instrument_values, compute_value_histograms, branch_prob):
7299         Use vectors instead of arrays.
7300         * toplev.c (process_options): Handle -fspeculative-prefetching.
7301         * rtl-profile.c: Include ggc.h.
7302         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
7303         rtl_gen_one_value_profiler_no_edge_manipulation,
7304         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
7305         argument changed.
7306         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
7307         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
7308         argument changed.
7309         * value-prof.c: Include ggc.h.
7310         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
7311         macros.
7312         (insn_prefetch_values_to_profile, find_mem_reference_1,
7313         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
7314         speculative_prefetching_transform): New.
7315         (value_profile_transformations): Call speculative_prefetching_transform.
7316         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
7317         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
7318         tree_find_values_to_profile, find_values to profile): Use vectors
7319         instead of arrays.
7320         (free_profiled_values): Removed.
7321         * value-prof.h (struct histogram_value): Renamed to
7322         struct histogram_value_t.
7323         (histogram_value, histogram_values): New types.
7324         (find_values_to_profile): Declaration changed.
7325         (free_profiled_values): Removed.
7326         (struct profile_hooks): Type of argument of the hooks changed to
7327         histogram_value.
7328         * doc/invoke.texi (-fspeculative-prefetching): Document.
7329
7330 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7331
7332         PR rtl-optimization/16408
7333         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
7334
7335 2004-09-01  Richard Henderson  <rth@redhat.com>
7336
7337         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
7338         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
7339
7340 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
7341
7342         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
7343
7344 2004-09-01  Mike Stump  <mrs@apple.com>
7345
7346         * config/darwin.c (machopic_symbol_defined_p): In addition to
7347         being SYMBOL_REF_LOCAL_P, a symbol must also be
7348         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
7349         defined in this output file, or translation unit in the case
7350         of IMA not being used.
7351         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
7352         never need .indirect_symbol when indirecting.
7353
7354 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
7355
7356         * Makefile.in (bb-reorder.o): Add several dependencies.
7357
7358 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
7359
7360         * fold-const.c (operand_equal_p): Require equal sign also for
7361         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
7362
7363 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
7364
7365         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
7366         for use in configargs.h.  Put the cname in a separate variable.  Use
7367         that to set target_cpu_default2.
7368
7369 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
7370             Nick Clifton  <nickc@redhat.com>
7371
7372         * config/sh/sh.md ("length"): Increase branch length when
7373         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
7374         constant, 2 byte for aligning the constant.
7375
7376 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
7377
7378         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
7379         CPU.
7380         (arm7tdmi-s): New CPU name.
7381         * arm/arm.c (ARM_CORE): Update for new format.
7382         * arm/arm.h (ARM_CORE): Likewise.
7383         * arm/gentune.sh: Update for extra field.
7384         * config.gcc: Likewise.
7385         * arm/arm-tune.md: Regenerate.
7386         * doc/invoke.texi: Document the real processor names for ARM cpus.
7387
7388 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
7389
7390         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
7391         (floatdidf): New functions.
7392         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
7393         (floatdisf): New functions.
7394         * t-arm-elf: Use them.
7395
7396 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
7397
7398         * c-common.h (lookup_interface): Remove prototype.
7399         (is_class_name): Rename to objc_is_class_name.
7400         (lookup_objc_ivar): Rename to objc_lookup_ivar.
7401         (get_current_scope): Rename to objc_get_current_scope.
7402         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
7403         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
7404         (yylexname): Call objc_is_class_name() instead of is_class_name().
7405         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
7406         instead of lookup_objc_ivar().
7407         * stub-objc.c (lookup_interface): Remove stub.
7408         (is_class_name): Rename to objc_is_class_name.
7409         (lookup_objc_ivar): Rename to objc_lookup_ivar.
7410
7411 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
7412
7413         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
7414         * config/arm/lib1funcs.asm: Do not include supplemental .S files
7415         when compiling for Symbian.
7416         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
7417         (TARGET_OS_CPP_BUILTINS): Likewise.
7418         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
7419
7420 2004-08-31  Stan Shebs  <shebs@apple.com>
7421
7422         * toplev.c (process_options): Ensure debug_hooks is initialized.
7423
7424 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
7425
7426         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
7427         * target.h (cxx): Add export_class_data.
7428         * config/arm/arm.c (arm_cxx_export_class_data): New function.
7429         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
7430         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
7431
7432 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7433
7434         * config/sh/sh.c (output_branch): Check the insn length possibly
7435         in the delayed slot.
7436
7437 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7438
7439         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
7440         blank after ')'.
7441         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
7442
7443         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
7444         (c_sizeof_of_alignof_type): Likewise.
7445         * expr.c (array_ref_element_size): Likewise.
7446         (highest_pow2_factor_for_target): Likewise.
7447         * gimplify.c (canonicalize_addr_expr): Likewise.
7448         (gimplify_compound_lval): Likewise.
7449         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
7450         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
7451         * varasm.c (assemble_variable): Likewise.
7452         (output_constant_def_contents): Alignments are unsigned.
7453
7454 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7455             Jeff Law  <law@redhat.com>
7456
7457         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
7458         gets modified.
7459
7460 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
7461
7462         * hooks.c (hook_bool_void_true): New function.
7463         * hooks.h (hook_bool_void_true): Declare.
7464         * target-def.h (TARGET_CXX): Add
7465         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
7466         * target.h (struct cxx): Add key_method_may_be_inline.
7467         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
7468         function.
7469         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
7470         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
7471         __THUMB_INTERWORK.
7472
7473 2004-08-31  Denis Chertykov  <denisc@overta.ru>
7474
7475         PR target/15417
7476         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
7477         frame pointer register only in Pmode while reload in progress.
7478
7479 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
7480
7481         PR target/15334
7482         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
7483         because it breaks the 32-bit shift patterns that rely on a match_dup.
7484
7485 2004-08-31  Matt Austern  <austern@apple.com>
7486
7487         * config/darwin.c (darwin_make_decl_one_only): Allocate section
7488         names once per compilation, instead of once per symbol.
7489
7490 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
7491
7492         * Makefile.in (build_subdir): New substitution.
7493         (fixinc.sh): Simplify heavily since fixincludes is already built.
7494         (stmp-fixinc): Depend on specs.ready.
7495         (install-mkheaders): Use new location of fixincludes.
7496         (clean): Do not descend into fixinc.
7497         (FORBUILD): Replace with ../$(build_subdir).
7498         * configure.ac (build_subdir): Substitute.
7499         (FORBUILD): Do not set.
7500         (all_outputs): Remove fixinc/Makefile.
7501         (default commands): Do not create links in fixinc.
7502         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
7503         the fixincludes configuration steps and substituting
7504         @FIXINCL@ in fixinc.in.
7505         * fixinc.in: New, from fixinc/fixincl.sh.
7506
7507         * fixinc/*: Removed.
7508
7509 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
7510
7511         * attribs.c (strip_attrs): Remove.
7512         (split_specs_attrs): Move ...
7513         * c-decl.c: ... to here.
7514         * tree.h (split_specs_attrs, strip_attrs): Remove.
7515         * c-tree.h (split_specs_attrs): Declare.
7516
7517 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
7518
7519         * read-rtl.c: Disable RTL checking.
7520         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
7521
7522 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
7523
7524         * config/mips/mips.md (fcond): New code macro and attribute.
7525         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
7526         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
7527         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
7528
7529 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
7530
7531         Revert:
7532         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
7533         PR rtl-optimization/16590
7534         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
7535
7536 2004-08-30  Andrew Pinski  <apinski@apple.com>
7537
7538         * hard-reg-set.h:
7539         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
7540         * ChangeLog: Fix previous ChangeLog entry.
7541
7542         PR rtl-opt/13987
7543         * config.host (use_long_long_for_widest_fast_int): New, default is
7544         off.
7545         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
7546         * configure.ac: If use_long_long_for_widest_fast_int, then
7547         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
7548         * configure: Regenerate.
7549         * config.in: Regenerate.
7550         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
7551         New: widest integer type supported efficiently in hardware for the
7552         host.
7553         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
7554         HOST_BITS_PER_WIDEST_FAST_INT.
7555         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
7556         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
7557         HOST_WIDEST_FAST_INT
7558         instead of HOST_WIDE_INT.
7559         (HARD_REG_SET_LONGS): Likewise.
7560         (UHOST_BITS_PER_WIDE_INT): Likewise.
7561         Change the checks for the fast cases to be based on
7562         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
7563
7564 2004-08-30  Steven Bosscher  <stevenb@suse.de>
7565
7566         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
7567         not the pointers.
7568
7569 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
7570
7571         PR 12738
7572         PR 17205
7573         Radar 3460526
7574         Radar 3775729
7575         * c-decl.c (grokdeclarator): Produce error for 'static' on local
7576         function declaration.
7577
7578 2004-08-30  Richard Henderson  <rth@redhat.com>
7579
7580         * expr.c (array_ref_element_size): Force aligned_size back to
7581         sizetype.
7582         (component_ref_field_offset): Similarly for aligned_offset.
7583         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
7584         low-bound, element-size, field-offset fields rather than
7585         computed values.
7586
7587 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7588
7589         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
7590         redundant code.
7591
7592 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
7593
7594         * c-tree.h (struct language_function): Add arg_info element.
7595         * c-decl.c (current_function_arg_info): New.
7596         (grokdeclarator, store_parm_decls): Use it instead of
7597         DECL_ARGUMENTS.
7598         (c_push_function_context, c_pop_function_context): Save and
7599         restore it.
7600
7601 2004-08-30  Richard Henderson  <rth@redhat.com>
7602
7603         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
7604         COMPONENT_REF to pointer arithmetic.
7605         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
7606         constant "c" as a valid constant initializer.  Allow narrowing of
7607         differences against the same base object, for any base object.
7608
7609 2004-08-30  Richard Henderson  <rth@redhat.com>
7610
7611         * expr.c (expand_expr_addr_expr): New.
7612         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
7613
7614 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
7615
7616         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
7617         (mips_fp_condition): New enum.
7618         (mips_fp_conditions): New array.
7619         (print_fcc_operand): Delete.
7620         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
7621         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
7622         (builtin_description): Add "cond" field.
7623         (DIRECT_BUILTIN): Initialize it.
7624         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
7625         into INSN and CODE.  Initialize the "cond" field.
7626         (CMP_BUILTINS): Update accordingly.
7627         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
7628         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
7629         mips_fp_condition as argument.  Make it the final operand of the
7630         comparison instruction.
7631         (mips_expand_builtin): Update accordingly.
7632         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
7633         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
7634         the gaps.
7635         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
7636         Don't use the 'Q' operand prefix; just print the operand normally.
7637         (mips_cabs_*, mips_c_*): Delete, replacing with...
7638         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
7639         patterns.  Split the 4s versions into 2 ps patterns after reload.
7640
7641 2004-08-30  Richard Henderson  <rth@redhat.com>
7642
7643         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
7644         assuming an ADDR_EXPR is non-null.
7645
7646 2004-08-30  Jason Merrill  <jason@redhat.com>
7647
7648         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
7649
7650 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
7651
7652         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
7653         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
7654         gcc_assert and gcc_unreachable instead of abort.
7655         * alloc-pool.c (abort, fancy_abort): Remove.
7656         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
7657         gcc_assert or gcc_unreachable.
7658         * attribs.c (init_attributes, decl_attributes): Likewise.
7659         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
7660         mark_bb_for_unlikely_executed_section,
7661         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
7662         fix_crossing_unconditional_branches):  Likewise.
7663         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
7664         bitmap_operation):  Likewise.
7665         * bt-load.c (insn_sets_btr_p, augment_live_range,
7666         move_btr_def):  Likewise.
7667         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
7668         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
7669         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
7670         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
7671         expand_builtin_memcmp, expand_builtin_args_info,
7672         std_gimplify_va_arg_expr, expand_builtin_unop,
7673         expand_builtin_fputs, expand_builtin_profile_func,
7674         expand_builtin_fork_or_exec, fold_builtin_bitop,
7675         fold_builtin_classify, fold_builtin_fputs): Likewise.
7676
7677 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
7678
7679         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
7680         * gcov.c (abort): Remove undef.
7681
7682         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
7683         (struct tree_binfo): Remove primary field.
7684
7685 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
7686
7687         * fixinc/Makefile.in (machname.h): Remove.
7688         (fixincl.x): Do not pass $@ to genfixes.
7689         * fixinc/genfixes: Remove code to produce machname.h.
7690         * fixinc/fixincl.sh: Move it here instead.
7691         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
7692         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
7693         return a bool indicating whether pz_mn_name_pat is NULL.
7694         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
7695         Declare extern C variables for the ENV_TABLE.
7696         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
7697         instead use the result of mn_get_regexps.
7698         * fixinc/fixtests.c: Likewise.
7699
7700 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
7701
7702         * configure.ac: Do not run fixincludes after stage1 during
7703         toplevel bootstrap.
7704         * configure: Regenerate.
7705
7706 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
7707
7708         * sched-deps.c (get_condition): Partially revert previous, by never
7709         trying to extract the condition from a condjump.
7710
7711 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
7712
7713         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
7714         (handle_visibility_attribute, c_determine_visibility): Likewise.
7715         * c-common.h (my_friendly_assert): Remove.
7716
7717 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
7718
7719         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
7720         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
7721         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
7722         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
7723         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
7724
7725 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
7726
7727         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
7728         in COMPONENT_REF nodes.
7729
7730 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7731
7732         PR c++/15378
7733         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
7734         global_dc->warning_as_error_requested.
7735         * diagnostic.c (diagnostic_initialize): Tidy.
7736         * diagnostic.h (diagnostic_context::x_data): Remove
7737         (diagnostic_context::issue_warnings_are_errors_message): Rename
7738         from warnings_are_errors_message.
7739         (diagnostic_context::warning_as_error_requested): New.
7740
7741 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
7742
7743         * sched-deps.c (get_condition): Fix breakage in previous patch.
7744
7745 2004-08-30  Paul Brook  <paul@codesourcery.com>
7746
7747         * doc/install.texi: Fix broken mpfr link.
7748
7749 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
7750
7751         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
7752         other FreeBSD platforms.
7753
7754 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
7755
7756         * arm.h (REVERSE_CONDITION): Define.
7757         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
7758
7759 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
7760
7761         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
7762         just the codes, call reversed_comparison_code ().
7763         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
7764         (not_reg_cond): Use reversed_comparison_code.
7765         (and_reg_cond): Likewise.
7766         * ifcvt.c (cond_exec_process_if_block): Likewise.
7767         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
7768
7769 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
7770
7771         * sched-deps.c (get_condition): Rewrite using jump support functions.
7772         Use reversed_comparison_code.
7773         (conditions_mutex_p): Use reversed_comparison_code.
7774
7775 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7776
7777         * config/mips/mips.c (override_options): Disable hot/cold partitioning
7778         for MIPS16.
7779
7780 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7781
7782         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
7783         (mips_function_type): Move to mips.c.
7784         * config/mips/mips.c (mips_builtin_type): New enum.
7785         (builtin_description): Replace code and ftype with builtin_type
7786         and function_type.
7787         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
7788         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
7789         (CODE_FOR_mips_abs_ps): Define.
7790         (mips_bdesc): Use new macros.
7791         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
7792         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
7793         (mips_expand_builtin_direct): New function.
7794         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
7795         builtin.  Replace boolean parameter with builtin_type.
7796         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
7797         (mips_expand_4s_compare_builtin): Delete, replacing with...
7798         (mips_expand_builtin_compare): ...this new function.
7799
7800 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
7801
7802         PR rtl-optimization/16590
7803         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
7804
7805 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
7806
7807         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
7808         * tree-ssa-propagate.c: Fix documentation.
7809
7810 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7811
7812         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
7813         (mov[sd]fcc): Likewise.
7814
7815 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7816
7817         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
7818
7819 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7820
7821         * config/mips/mips.md (divide_condition): New mode attribute.
7822         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
7823         (sqrt[sd]f3): Redefine using SCALARF.
7824         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
7825         patterns.
7826
7827 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7828
7829         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
7830         (loadx, storex, fmt, UNITMODE): New mode attributes.
7831         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
7832         (mul[sd]f3): Redefine using :SCALARF.
7833         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
7834         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
7835         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
7836         Check TARGET_FUSED_MADD for V2SF too.
7837         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
7838         were already named.
7839         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
7840         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
7841
7842 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7843
7844         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
7845         V2SF_type_node if it will be needed.
7846
7847 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7848
7849         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
7850         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
7851         (mips_prepare_builtin_target): New function.
7852         (mips_expand_builtin): Use them.  Update calls to subroutines.
7853         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
7854         cmp_choice with a boolean argument to select between movt and movf.
7855         Take the comparison's icode as an argument, not the function's fcode.
7856         (mips_expand_compare_builtin): New function.  Rename existing function
7857         to mips_expand_scalar_compare_builtin.
7858         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
7859         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
7860         comparison's icode as an argument, not the builtin's fcode.
7861
7862 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7863
7864         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
7865         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
7866         registers are false and -1 if all registers are true.
7867         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
7868         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
7869         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
7870         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
7871         (bc1any2t, bc1any2f): Likewise CCV2.
7872         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
7873
7874 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
7875
7876         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
7877         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
7878         UNSPEC rather than an IF_THEN_ELSE.
7879         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
7880         mips_cond_move_tf_ps by name.
7881
7882 2004-08-29  Chao-ying Fu  <fu@mips.com>
7883             James E Wilson  <wilson@specifixinc.com>
7884
7885         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
7886         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
7887         * config/mips/mips-ps-3d.md: New file.
7888         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
7889         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7890         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
7891         (mips_output_move): Emit "mov.ps" for V2SFmode.
7892         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
7893         MODE_VECTOR_FLOAT.
7894         (override_options): Check if TARGET_MIPS3D and there was an explicit
7895         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
7896         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
7897         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
7898         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
7899         and allow CCV2 and CCV4 to occupy two and four CC registers.
7900         (print_fcc_operand): New function.
7901         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
7902         %Z to call print_fcc_operand.
7903         (mips_function_value): Handle MODE_VECTOR_FLOAT.
7904         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
7905         (mips_vector_mode_supported_p): New function.
7906         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
7907         (builtin_description): New struct.
7908         (mips_bdesc): New array of struct builtin_description.
7909         (mips_expand_builtin, mips_init_builtins,
7910         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
7911         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
7912         functions.
7913         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
7914         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
7915         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
7916         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
7917         "-mips3d", and "-mno-mips3d".
7918         (ASM_SPEC): Map -mips3d to -mips3d in gas.
7919         (EXTRA_CONSTRAINT_Y): New macro.
7920         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
7921         multi-letter constraint 'Y'.
7922         (CONSTRAINT_LEN): New macro.
7923         (enum mips_builtins): New for MIPS builtin functions.
7924         (enum mips_function_type): New for the types of MIPS builtin functions.
7925         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
7926         * config/mips/mips.md: New constants for paired single and MIPS-3D
7927         instructions.  Include the new mips-ps-3d.md file.
7928         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
7929         movv2sf_hardfloat_64bit): New named patterns.
7930         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
7931         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
7932         sdxc1_v2sf_di): New unnamed patterns.
7933         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
7934         const_vector support.
7935         (const_0_or_1_operand): New predicate.
7936         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
7937
7938 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
7939
7940         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
7941         (tree-ssa-propagate.o): New rule.
7942         (GTFILES): Add tree-ssa-propagate.c.
7943         * tree-flow.h (struct stmt_ann_d): Remove field
7944         in_ccp_worklist.
7945         * tree-ssa-propagate.c: New file.
7946         * tree-ssa-propagate.h: New file.
7947         * tree-ssa-ccp.c: Re-write to use the routines from
7948         tree-ssa-propagate.c.
7949
7950 2004-08-28  Andrew Pinski  <apinski@apple.com>
7951
7952         * tree-ssa-loop.c: Remove extra include of basic-block.h.
7953
7954 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
7955
7956         * c-common.h: Update comments about ObjC/ObjC++ entry points.
7957         (objc_is_reserved_word): New prototype.
7958         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
7959         separate section; these are call-backs.
7960         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
7961         ObjC/ObjC++ "@" keywords.
7962         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
7963         prototypes; they already live in c-common.h.
7964         * stub-objc.c: Update copyright notice.
7965         (objc_is_reserved_word): New stub.
7966
7967 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
7968
7969         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
7970         even when not checking.
7971
7972 2004-08-27  Jason Merrill  <jason@redhat.com>
7973
7974         PR c++/13684
7975         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
7976         (gimple_push_cleanup): Add eh_only parm.
7977         (gimplify_target_expr): Pass it.
7978         * c.opt (-fno-threadsafe-statics): New option.
7979         * c-opts.c (c_common_handle_option): Handle it.
7980         * c-common.h (flag_threadsafe_statics): Declare it.
7981         * c-common.c (flag_threadsafe_statics): Record it.
7982         * doc/invoke.texi: Document it.
7983         * tsystem.h (_GNU_SOURCE): Define.
7984         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
7985         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
7986         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
7987         (__gthread_recursive_mutex_init_function): New fn.
7988         (__gthread_recursive_mutex_lock): New fn.
7989         (__gthread_recursive_mutex_trylock): New fn.
7990         (__gthread_recursive_mutex_unlock): New fn.
7991         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
7992         * gthr-win32.h, gthr-vxworks.h: Likewise.
7993         * gthr.h: Document.
7994
7995 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
7996
7997         * config/rs6000/rs6000.c (rs6000_override_options): Increase
7998         maximum skip to 15.  Set function alignment, jump alignment, and
7999         loop alignment to 16 for processors that form dispatch groups.
8000         (rs6000_rtx_costs): outer_code is used.
8001
8002 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
8003
8004         * stor-layout.c (sizetype_set): Remove.
8005         (set_sizetype): Don't test or set it.
8006
8007         * tree.h (size_int_type): Remove.
8008         * fold-const.c: Do not #include gt-fold-const.h.
8009         (size_htab_hash, size_htab_eq): Remove.
8010         (size_int_kind): Use build_int_cst.
8011         (new_const, size_htab): Remove.
8012         (size_int_type): Remove.
8013         (round_up): Use build_int_cst.
8014         (round_down): Likewise. Remove spurious constant build.
8015
8016 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
8017
8018         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
8019         Add is_release variable, use it for --enable-werror and
8020         --enable-checking defaults.
8021         * system.h (gcc_assert, gcc_unreachable): New.
8022         * doc/install.texi (--enable-checking): Update.
8023         * configure, config.in: Rebuilt.
8024
8025 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
8026
8027         * rtl.h (read_rtx): Change prototype.
8028         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
8029         line number.  Return true on success.
8030         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
8031         callers accordingly.
8032
8033 2004-08-26  Richard Henderson  <rth@redhat.com>
8034
8035         * c-typeck.c (build_offsetof): Remove.
8036         * c-tree.h (build_offsetof): Remove.
8037         * c-common.c (fold_offsetof_1, fold_offsetof): New.
8038         * c-common.h (fold_offsetof): Declare.
8039         * c-parse.in (offsetof_base): New.
8040         (offsetof_member_designator): Use it.  Build references, not just
8041         a tree list.
8042         (primary): Use fold_offsetof, not build_offsetof.
8043
8044 2004-08-26  Richard Henderson  <rth@redhat.com>
8045
8046         * tree.c (staticp): Return the static object.
8047         * tree.h (staticp): Update decl.
8048         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
8049         * langhooks.c (lhd_staticp): Return NULL_TREE.
8050         * langhooks-def.h (lhd_staticp): Update decl.
8051         * c-common.c (c_staticp): Return the static object.
8052         * c-common.h (c_staticp): Update decl.
8053
8054 2004-08-26  Richard Henderson  <rth@redhat.com>
8055
8056         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
8057         modes.
8058
8059 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
8060
8061         PR c/13801
8062         * c-decl.c (struct c_binding): Add type and inner_comp fields.
8063         (bind): Set type and inner_comp fields.
8064         (pop_scope): Restore type of decl to the correct type from an
8065         outer scope.  Give error when popping file scope for incomplete
8066         arrays completed incompatibly with default initialization in an
8067         inner scope.
8068         (diagnose_mismatched_decls): Handle externs with initializers at
8069         block scope.
8070         (pushdecl): Set type of external declaration at block scope based
8071         only on the visible declarations.  Save type when changing the
8072         type of a declaration.  Merge an external declaration at block
8073         scope with a visible static declaration at file scope.
8074         (implicitly_declare): Give recycled old declaration the new type
8075         except for incompatible declarations of built-in functions, saving
8076         the old type.
8077
8078 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
8079
8080         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
8081
8082 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
8083
8084         * tree-alias-common.c (gate_pta): New function.
8085         (pass_build_pta): Use it.
8086         (pass_del_pta): Use it.
8087         (delete_alias_vars): Don't check flag_tree_points_to.
8088
8089 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
8090
8091         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
8092         TFmode as additional register mode cloberred by call.
8093
8094 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
8095
8096         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
8097         parallel pattern for library call returning DImode in
8098         mixed mode.
8099
8100 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
8101
8102         * config/rs6000/rs6000.c (function_arg): Generate parallel
8103         pattern for more split args.
8104
8105 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
8106
8107         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
8108         either gen_movdi_di_update or gen_movdi_si_update depending on
8109         target mode.
8110         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
8111         to generate two versions.
8112
8113 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
8114
8115         * Makefile.in (lambda-code.o): New.
8116         (lambda-trans.o): Ditto.
8117         (TREE_DATA_REF_H): Ditto.
8118         (LAMBDA_H): Ditto.
8119         (lambda-mat.o): Use LAMBDA_H.
8120         (tree-data-ref.o): Ditto.
8121         * lambda-code.c: New file.  Lambda code generation algorithm.
8122         * lambda-trans.c: Ditto. Lambda transformation matrix support.
8123         * lambda.h: Add lambda loop structures.
8124         Add lambda loopnest structures.
8125         Add lambda body vector structure.
8126         Add lambda linear expression structures.
8127         Add prototypes for functions in new files.
8128         * lambda-mat.c: Include tree.h
8129
8130 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
8131             Sebastian Pop  <pop@cri.ensmp.fr>
8132
8133         * tree-data-ref.h: Include lambda.h
8134         (free_dependence_relation): Declared here.
8135         (free_dependence_relations): Ditto.
8136         (free_data_refs): Ditto.
8137         * tree-data-ref.c (free_dependence_relation): New function.
8138         (free_dependence_relations): Ditto.
8139         (free_data_refs): Ditot.
8140         (analyze_all_data_dependences): Free datarefs and dependence_relations.
8141         (build_classic_dist_vector): Store in the dependence_relations the
8142         information. Each arc in the dependence_relations graph is labelled
8143         with the distance and direction vectors.
8144         (build_classic_dir_vector): Ditto.
8145         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
8146         Now computes again the whole dependence graph including read-read
8147         relations.
8148         (compute_data_dependences_for_loop): Now dependence_relations contains
8149         all the data, and thus it doesn't need to initialize the classic_dir
8150         and classic_dist vectors.
8151         (analyze_all_data_dependences): Adjusted for using the new interface of
8152         compute_data_dependences_for_loop.  Remove the statistics dump.
8153
8154 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
8155
8156         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
8157         (xtensa_expand_block_move): Update comment.
8158         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
8159
8160 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
8161
8162         PR target/13506
8163         * toplev.c (crash_signal): If we crashed while emitting
8164         a user asm, then die more gracefully.
8165
8166 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8167
8168         PR target/17119.
8169         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
8170         checking for a valid constant, regardless of sign.
8171
8172 2004-08-25  Richard Henderson  <rth@redhat.com>
8173
8174         PR target/16974
8175         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
8176         if the constant satisfies add_operand.
8177
8178 2004-08-25  Richard Henderson  <rth@redhat.com>
8179
8180         PR debug/10695
8181         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
8182         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
8183         unwind info for >16-bit frames.
8184
8185 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
8186
8187         PR target/17171
8188         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
8189
8190 2004-08-25  Richard Henderson  <rth@redhat.com>
8191
8192         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
8193         (TARGET_CANNOT_FORCE_CONST_MEM): New.
8194
8195 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
8196
8197         * doc/tree-ssa.texi: Document new operand iterator.
8198
8199 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
8200
8201         PR target/16480
8202         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
8203         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
8204         as PLUS base regs.
8205
8206 2005-08-28  Paul Brook  <paul@codesourcery.com>
8207
8208         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
8209         -mfpu=vfp -march=armv5t
8210         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
8211
8212 2004-08-25  Richard Henderson  <rth@redhat.com>
8213
8214         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
8215         * target.h (struct gcc_target): Add scalar_mode_supported_p.
8216         * targhooks.c (default_scalar_mode_supported_p): New.
8217         * targhooks.h (default_scalar_mode_supported_p): Declare.
8218         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
8219
8220         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
8221         before attempting to create types.  Tidy.
8222         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
8223
8224         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
8225         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
8226
8227 2004-08-25  Richard Henderson  <rth@redhat.com>
8228
8229         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
8230         set REAL_MODE_FORMAT for TFmode.
8231
8232 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
8233
8234         * c-decl.c (grokparm): New function.
8235         * c-tree.h (grokparm): New prototype.
8236
8237 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
8238
8239         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
8240         iterator controlling structure.
8241         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
8242         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
8243         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
8244         iterator flags.
8245         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
8246         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
8247         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
8248         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
8249         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
8250         Empty operand pointers.
8251         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
8252         (op_iter_next_use): New.  Return next use_operand_p.
8253         (op_iter_next_def): New.  Return next def_operand_p.
8254         (op_iter_next_tree): New.  Return next operands as a tree.
8255         (op_iter_init): New.  Initialize an iterator structure.
8256         (op_iter_init_use): New.  Initialize structure and get the first use.
8257         (op_iter_init_def): New.  Initialize structure and get the first def.
8258         (op_iter_init_tree): New.  Initialize structure and get the first tree.
8259         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
8260         (op_iter_init_maydef): New.  Initialize structure and get the first
8261         V_MAY_DEF operands.
8262         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
8263         * tree-dfa.c (compute_immediate_uses_for_stmt,
8264         redirect_immediate_uses): Use new operand iterator.
8265         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
8266         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
8267         operands instead of using *_disappeared_p routines.
8268         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
8269         ssa_rewrite_stmt): Use new operand iterator.
8270         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
8271         rewrite_trees): Use new operand iterator.
8272         * tree-pretty-print.c (dump_vops): Use new operand iterator.
8273         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
8274         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
8275         dump_points_to_info): Use new operand iterator.
8276         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
8277         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
8278         operand iterator.
8279         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
8280         propagate_necessity): Use new operand iterator.
8281         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
8282         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
8283         a parameter instead of a stmt_ann_t.
8284         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
8285         build_tree_conflict_graph): Use new operand iterator.
8286         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
8287         rewrite_mem_refs): Use new operand iterator.
8288         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
8289         check_loop_closed_ssa_use): Use new operand iterator.
8290         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
8291         * tree-ssanames.c (release_defs): Use new operand iterator.
8292         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
8293
8294 2004-08-25  Adam Nemet  <anemet@lnxw.com>
8295
8296         * tlink.c (initial_cwd): New variable.
8297         (tlink_init): Initialize it.
8298         (recompile_files): Use tlink_execute() instead of system().  Don't
8299         duplicate verbose output of collect_execute.  Restore initial_cwd.
8300         Update comment before the function.
8301
8302 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
8303
8304         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
8305         accept) a cast from one Objective-C pointer type to another.
8306
8307 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
8308
8309         * doc/install.texi: Document that libstdc++-v3 requires
8310         now automake 1.9.1.
8311
8312 2004-08-25  Caroline Tice  <ctice@apple.com>
8313
8314         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
8315         to comments at start of function.
8316         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
8317         comment.
8318         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
8319         merge_blocks_move_predecessor_nojumps,
8320         merge_blocks_move_successor_nojumps, merge_blocks_move,
8321         try_crossjump_to_edge, try_crossjump_bb): Likewise.
8322         * cfglayout.c (fixup_reorder_chain): Likewise.
8323         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
8324         cfg_layout_can_merge_blocks_p):  Likewise.
8325         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
8326         * passes.c (rest_of_compilation): Update comments for calling
8327         optimization that partitions hot/cold basic blocks.
8328         * doc/invoke.texi:  Update documentation of
8329         freorder-blocks-and-partition flag.
8330
8331 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
8332
8333         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
8334         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
8335
8336 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
8337
8338         * config/mips/mips.md (any_shift): New code macro.
8339         (optab, insn): New code attributes.
8340         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
8341         Use the standard rather than internal patterns for the MIPS16
8342         double-shift optimization.
8343         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
8344         Redefine using :GPR and any_shift.
8345         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
8346         to cover all three shifts.
8347         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
8348         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
8349         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
8350
8351 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
8352
8353         * gimplify.c (lookup_tmp_var): Separate temporaries when not
8354         optimizing.
8355
8356 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8357
8358         PR libstdc++/17005 (fix for HP-UX 11.11)
8359         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
8360         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
8361         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
8362         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
8363         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
8364         (LINK_SPEC): Handle march=1.0 option.
8365         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
8366         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
8367         (SUBTARGET_OPTIONS): New define.
8368         (LINK_SPEC): Handle march=1.0 option.
8369         (STARTFILE_SPEC): New define.
8370         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
8371         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
8372         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
8373         (SUBTARGET_OPTIONS): New define.
8374         (LINK_SPEC): Handle march=1.0 option.
8375         (STARTFILE_SPEC): New define.
8376         * config/pa/pa.c (override_options): Add code to process -munix= option.
8377         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
8378         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
8379         defines.
8380         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
8381         (SUBTARGET_OPTIONS): Provide default define.
8382         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
8383         STANDARD_STARTFILE_PREFIX_2): New defines.
8384         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
8385         (ENDFILE_SPEC): Use %O.
8386         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
8387         Mention issue caused by changing namespace and runtime to UNIX 95/98.
8388         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
8389         Document -munix=std option.
8390
8391 2004-08-25  Steven Bosscher  <stevenb@suse.de>
8392
8393         * cse.c (cse_around_loop, cse_check_loop_start,
8394         cse_set_around_loop): Remove.
8395         (cse_basic_block): Remove the around_loop argument.
8396         (cse_end_of_basic_block): Remove the after_loop argument.
8397         (cse_main): Likewise.
8398         * rtl.h (cse_main): Update prototype.
8399         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
8400         rest_of_handle_gcse): Update cse_main calls.
8401
8402 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
8403
8404         * tree.h  (build_int_cst): New, sign extended constant.
8405         (build_int_cstu): New, zero extended constant.
8406         (build_int_cst_wide): Renamed from build_int_cst.
8407         * tree.c (build_int_cst, build_int_cstu): New.
8408         (build_int_cst_wide): Renamed from build_int_cst.
8409         (make_vector_type, build_common_tree_nodes,
8410         build_common_tree_nodes_2): Adjust build_int_cst calls.
8411         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
8412         expand_builtin_strpbrk, expand_builtin_fputs,
8413         build_string_literal, expand_builtin_printf,
8414         expand_builtin_sprintf, fold_builtin_classify_type,
8415         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
8416         fold_builtin_toascii, fold_builtin_isdigit,
8417         simplify_builtin_strstr, simplify_builtin_strpbrk,
8418         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
8419         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
8420         DEF_ATTR_INT): Likewise.
8421         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
8422         Likewise.
8423         * c-lex.c (interpret_integer, lex_charconst): Likewise.
8424         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
8425         * c-pretty-print.c (pp_c_integer_constant): Likewise.
8426         * c-typeck.c (really_start_incremental_init, push_init_level,
8427         set_nonincremental_init_from_string): Likewise.
8428         * calls.c (load_register_parameters): Likewise.
8429         convert.c (convert_to_pointer): Likewise.
8430         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
8431         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
8432         build_gcov_info): Likewise.
8433         * except.c (init_eh, assign_filter_values): Likewise.
8434         * expmed.c (store_fixed_bit_field, extract_bit_field,
8435         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
8436         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
8437         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
8438         * expr.c (convert_move, emit_group_load, emit_group_store,
8439         expand_assignment, store_constructor, store_field,
8440         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
8441         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
8442         invert_truthvalue, optimize_bit_field_compare,
8443         decode_field_reference, all_ones_mask_p, constant_boolean_node,
8444         fold_div_compare, fold, fold_read_from_constant_string,
8445         fold_negate_const, fold_abs_const, fold_not_const, round_up,
8446         round_down): Likewise.
8447         * function.c (assign_parm_setup_block): Likewise.
8448         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
8449         Likewise.
8450         * stor-layout.c (layout_type, initialize_sizetypes,
8451         set_min_and_max_values_for_integral_type): Likewise.
8452         * tree-chrec.c (chrec_fold_multiply_poly_poly,
8453         reset_evolution_in_loop): Likewise.
8454         * tree-chrec.h (build_polynomial_chrec): Likewise.
8455         * tree-complex.c (build_replicated_const): Likewise.
8456         * tree-eh.c (honor_protect_cleanup_actions,
8457         lower_try_finally_onedest, lower_try_finally_copy,
8458         lower_try_finally_switch): Likewise.
8459         * tree-mudflap.c (mf_build_string, mx_register_decls,
8460         mudflap_register_call, mudflap_enqueue_constant): Likewise.
8461         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
8462         * tree-pretty-print.c (dump_generic_node): Likewise.
8463         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
8464         Likewise.
8465         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
8466         * tree-ssa-loop-niter.c (number_of_iterations_cond,
8467         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
8468         Likewise.
8469         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
8470         canonicalize_loop_induction_variables): Likewise.
8471         * tree-vectorizer.c (vect_create_index_for_array_ref,
8472         vect_transform_loop_bound, vect_compute_data_ref_alignment):
8473         Likewise.
8474
8475         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
8476         alpha_gimplify_va_arg_1): Likewise.
8477         * config/arm/arm.c (arm_get_cookie_size): Likewise.
8478         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
8479         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
8480         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
8481         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
8482         mips_gimplify_va_arg_expr): Likewise.
8483         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
8484         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
8485         add_compiler_branch_island): Likewise.
8486         * config/s390/s390.c (s390_va_start): Likewise.
8487         * config/sh/sh.c (sh_va_start): Likewise.
8488         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
8489         Likewise.
8490         * config/xtensa/xtensa.c (xtensa_va_start,
8491         xtensa_gimplify_va_arg_expr): Likewise.
8492
8493         * objc/objc-act.c (build_objc_string_object,
8494         build_objc_symtab_template, init_def_list, init_objc_symtab,
8495         init_module_descriptor, generate_static_references,
8496         build_selector_translation_table, get_proto_encoding,
8497         build_typed_selector_reference, build_selector_reference,
8498         build_next_objc_exception_stuff,
8499         build_method_prototype_list_template, generate_descriptor_table,
8500         generate_protocols, build_protocol_initializer,
8501         build_ivar_list_template, build_method_list_template,
8502         build_ivar_list_initializer, generate_ivars_list,
8503         generate_dispatch_table, generate_protocol_list,
8504         build_category_initializer, build_shared_structure_initializer,
8505         generate_shared_structures, handle_impent,
8506         generate_objc_image_info): Likewise.
8507
8508 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
8509
8510         * cfglayout.c (duplicate_insn_chain): Remove references to
8511         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
8512         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
8513         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
8514         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
8515         and NOTE_INSN_LOOP_CONT.
8516         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
8517         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
8518         and NOTE_INSN_LOOP_CONT.
8519         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
8520         check_dbra_loop, loop_dump_aux): Remove references to removed notes
8521         and fields.
8522         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
8523         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
8524         references to removed notes and fields.
8525         (subtract_reg_term, ujump_to_loop_cont): Remove.
8526
8527 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
8528
8529         * doc/install.texi: Document that libcpp does not require
8530         Automake any longer.  Document that Automake 1.9.1 should
8531         work everywhere.
8532
8533 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
8534
8535         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
8536         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
8537         DWARF_DEBUGGING_INFO from choice-of-definition chain;
8538         restructure using C89 features (#elif, #error).
8539         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
8540         * config/sh/sh.h: Remove references to DWARF_DEBUG.
8541         * doc/invoke.texi: Remove references to DWARF version 1;
8542         clarify why -gdwarf-2<n> doesn't work.
8543
8544 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
8545
8546         * basic-block.h (BB_SET_PARTITION): Clear old value first.
8547         * cfg.c (clear_bb_flags): Don't clear partition setting.
8548         * ifcvt.c (find_if_case_1): Remove ??? comment.
8549
8550 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
8551
8552         PR target/17052
8553         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
8554         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
8555         current_function_stdarg in place of sysv_varargs_p.
8556         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
8557         sysv_varargs_p.
8558
8559 2004-08-24  Richard Henderson  <rth@redhat.com>
8560
8561         PR target/16298
8562         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
8563         random codes within CONST.
8564
8565 2004-08-24  James E Wilson  <wilson@specifixinc.com>
8566
8567         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
8568         -freorder-blocks-and-partition.
8569
8570 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8571
8572         PR middle-end/17044
8573         * tree-ssa-threadupdate.c (redirection_data): Make static.
8574         (thread_block): Use ggc_alloc_cleared to allocate struct
8575         redirection_data.  Don't free elements in redirection_data.
8576
8577 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8578
8579         * config/mips/predicates.md (small_data_pattern): Match prefetches.
8580
8581 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8582
8583         PR tree-optimization/17016
8584         * tree-ssa-loop-niter.c (number_of_iterations_cond,
8585         number_of_iterations_exit): Use POINTER_TYPE_P instead
8586         of testing for POINTER_TYPE.
8587
8588 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8589
8590         * tree-ssa-loop-ivcanon.c: New file.
8591         * tree-ssa-loop-manip.c (create_iv): New function.
8592         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
8593         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
8594         * cfgloop.c (mark_single_exit_loops): New function.
8595         (verify_loop_structure): Verify single-exit loops.
8596         * cfgloop.h (struct loop): Add single_exit field.
8597         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
8598         (mark_single_exit_loops): Declare.
8599         (tree_num_loop_insns): Declare.
8600         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
8601         (duplicate_loop_to_header_edge): Use it.
8602         * common.opt (fivcanon): New flag.
8603         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
8604         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
8605         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
8606         (bsi_insert_on_edge_immediate): New function.
8607         * tree-flow.h (bsi_insert_on_edge_immediate,
8608         canonicalize_induction_variables, tree_unroll_loops_completely,
8609         create_iv): Declare.
8610         * tree-optimize.c (init_tree_optimization_passes): Add
8611         pass_iv_canon and pass_complete_unroll.
8612         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
8613         * tree-scalar-evolution.c (get_loop_exit_condition,
8614         get_exit_conditions_rec, number_of_iterations_in_loop,
8615         scev_initialize): Use single_exit information.
8616         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
8617         missing assumptions.
8618         (loop_niter_by_eval):  Return number of iterations as unsigned
8619         int.
8620         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
8621         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
8622         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
8623         New passes.
8624         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
8625         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
8626         the defining statement is ready.
8627         * tree-vectorizer.c (vect_create_iv_simple): Removed.
8628         (vect_create_index_for_array_ref, vect_transform_loop_bound):
8629         Use create_iv.
8630         (vect_transform_loop_bound): Use single_exit information.
8631         (vect_analyze_loop_form): Cleanup bogus tests.
8632         (vectorize_loops): Do not call flow_loop_scan.
8633         * tree.h (may_negate_without_overflow_p): Declare.
8634         * fold-const.c (may_negate_without_overflow_p): Split out from ...
8635         (negate_expr_p): ... this function.
8636         (tree_expr_nonzero_p): Handle overflowed constants correctly.
8637         * doc/invoke.texi (-fivcanon): Document.
8638         * doc/passes.texi: Document canonical induction variable creation.
8639
8640 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8641
8642         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
8643         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
8644         using the mode of the operand to decide between them.
8645         * config/mips/mips.md (MOVECC): New mode macro.
8646         (ccreg): New mode attribute.
8647         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
8648         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
8649         (mov[sd]icc): Redefine using :GPR.
8650
8651 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8652
8653         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
8654         (mips_prefetch_cookie): New function.
8655         * config/mips/mips.c (print_operand_address): Fix handling of
8656         ADDRESS_CONST_INT.
8657         (mips_emit_prefetch): Delete.
8658         (mips_prefetch_cookie): New function.
8659         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
8660         mode of QImode for the address_operand.  Use mips_prefetch_cookie
8661         to calculate the first "pref" operand.
8662         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
8663         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
8664
8665 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
8666
8667         * arm.md: Include predicates.md.
8668         * predicates.md: New file.
8669         * arm.c (s_register_operand, arm_hard_register_operand)
8670         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
8671         (arm_immediate_operand, arm_neg_immediate_operand)
8672         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
8673         (arm_add_operand, arm_addimm_operand, arm_not_operand)
8674         (offsettable_memory_operand, alignable_memory_operand)
8675         (arm_reload_memory_operand, arm_float_rhs_operand)
8676         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
8677         (index_operand, shiftable_operator, logical_binary_operator)
8678         (shift_operator, equality_operator, arm_comparison_operator)
8679         (minmax_operator, cc_register, dominant_cc_register)
8680         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
8681         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
8682         (const_shift_operand, load_multiple_operation)
8683         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
8684         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
8685         (cirrus_register_operand, cirrus_fp_register)
8686         (cirrus_shift_const): Delete, replaced with equivalents in
8687         predicates.md.
8688         (shift_op): Handle ROTATE.
8689         * arm-protos.h: Delete declarations for above.
8690         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
8691         * t-arm (MD_INCLUDES): Add predicates.md.
8692         (s-preds): Depends on MD_INCLUDES.
8693
8694 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8695
8696         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
8697         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
8698         patterns.  Redefine using :GPR.  Give the match_operator a mode.
8699         Use '%2' rather than '%z2' for operand 2.
8700
8701 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8702
8703         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
8704         attribute.
8705
8706 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8707
8708         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
8709         of internal patterns.
8710         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
8711         Redefine using :P.
8712         (tablejump): Use expand_binop to calculate address.  Adjust names
8713         of internal patterns.
8714         (tablejump[sd]i): Renamed from tablejump_internal[12].
8715         Redefine using :P.
8716         (tablejump_mips16[12]): Delete.
8717
8718 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8719
8720         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
8721         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
8722         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
8723         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
8724         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
8725
8726 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
8727
8728         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
8729         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
8730         using :GPR.
8731         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
8732         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
8733         (*branch_equality[sd]i_inverted): Likewise
8734         branch_equality{,_di}_inverted.
8735         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
8736         Redefine using :GPR.
8737
8738 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
8739
8740         * rtl.def: Reorganize, placing all codes used only in machine
8741         descriptions at the end.
8742
8743         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
8744         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
8745         rtx_name, rtx_format arrays by direct reference to rtl.def,
8746         first undefining GENERATOR_FILE.  Define enum insn_note and
8747         note_insn_name array by direct reference to insn-notes.def.
8748         (adjust_field_rtx_def): Remove local definition of rtx_name.
8749         Use symbolic names for insn notes.
8750         * Makefile.in (gengtype.o): Update dependencies.
8751
8752 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
8753
8754         * basic-block.h (struct basic_block_def): Reorder fields to
8755         eliminate interior padding.  Remove 'partition' field.
8756         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
8757         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
8758         (BB_COPY_PARTITION): New macros.
8759         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
8760         Replace all references to the 'partition' field of a basic
8761         block with new macros.
8762
8763         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
8764         * final.c (final_scan_insn): Don't handle it.
8765         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
8766         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
8767         * sched-rgn.c (sched_is_disabled_for_current_region_p):
8768         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
8769
8770 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
8771
8772         * c-decl.c (c_init_decl_processing): Adjust
8773         build_common_tree_nodes call.
8774         * expmed.c (const_mult_add_overflow_p): Use
8775         build_distinct_type_copy.
8776         * stor-layout.c (early_type_list): Remove.
8777         (layout_type): Don't append to early_type_list.
8778         (initialize_sizetypes): Add signed_p argument.
8779         (set_sizetype): Overwrite the stub type nodes directly.
8780         * tree.c (copy_node_stat): Clear a type's value cache here ...
8781         (build_distinct_type): ... not here.
8782         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
8783         * tree.h (initialize_sizetypes): Add signed_p argument.
8784         (build_common_tree_nodes): Likewise.
8785
8786         * objc/objc-act.c (get_static_reference): Use
8787         build_variant_type_copy.
8788         (get_protocol_reference): Likewise.
8789         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
8790
8791 2004-08-24  Richard Henderson  <rth@redhat.com>
8792             Andrew Pinski  <apinski@apple.com>
8793
8794         * gimplify.c (gimplify_array_ref_to_plus): Delete.
8795         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
8796         for ARRAY_REF.
8797
8798         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
8799         ARRAY_REF also to get to the STRING_CST.
8800
8801 2004-08-24  Paul Brook  <paul@codesourcery.com>
8802
8803         * config/arm/arm.c (arm_override_options): Update error message.
8804         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
8805         TARGET_HARD_FLOAT_ABI.
8806         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
8807         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
8808
8809 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8810
8811         PR target/17093
8812         * config/m32r.md (movsi_sda): Add SI mode specification to
8813         UNSPEC.
8814
8815 2004-08-24  Nick Clifton  <nickc@redhat.com>
8816
8817         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
8818         of seth_add3_operand.
8819
8820 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
8821
8822         * Makefile.in (PROTO_OBJS): Add errors.o.
8823         * protoize.c (fancy_abort): Remove.
8824         * mips-tfile.c (fancy_abort): Add parameters.
8825
8826 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
8827
8828         * doc/trouble.texi (C++ misunderstandings): Fix example code.
8829
8830 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
8831
8832         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
8833         (host-default.o): Add dependency on HOOKS_H.
8834         * config/x-linux: Likewise.
8835         * config/x-solaris: Likewise.
8836         * config/i386/x-mingw32: Likewise.
8837         * config/rs6000/x-darwin: Likewise.
8838
8839 2004-08-23  James E Wilson  <wilson@specifixinc.com>
8840
8841         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
8842         DEF_REG_NOTE.
8843
8844 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
8845
8846         PR c/14492
8847         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
8848
8849 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
8850
8851         * cfg.c (check_bb_profile): Fix typos.
8852         * function.c (assign_parm_is_stack_parm): Likewise.
8853         * tree-nested.c: Likewise.
8854
8855 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
8856
8857         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
8858         Remove TYPECODE.
8859         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
8860
8861 2004-08-23  Eric Christopher  <echristo@redhat.com>
8862
8863         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
8864         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
8865         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
8866         * target.h: Ditto.
8867         * hooks.h: Include machmode.h.
8868         (hook_bool_mode_false): Declare.
8869         * hooks.c (hook_bool_mode_false): Define.
8870         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
8871         * stor-layout.c (layout_type): Ditto.
8872         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
8873         Define to target macro.
8874         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
8875         * config/arm/arm.c: Ditto. Use.
8876         * config/arm/arm.h: Ditto.
8877         * config/arm/arm-protos.h: Ditto.
8878         * config/i386/i386.c: Ditto.
8879         * config/i386/i386.h: Ditto.
8880         * config/rs6000/rs6000.c: Ditto.
8881         * config/rs6000/rs6000.h: Ditto.
8882         * config/sh/sh.c: Ditto.
8883         * config/sh/sh.h: Ditto.
8884         * config/sh/sh-protos.h: Ditto.
8885         * config/sh/sh.md: Use.
8886         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
8887         to TARGET_VECTOR_MODE_SUPPORTED_P.
8888
8889 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
8890
8891         * Makefile.in (BUILD_ERRORS): Set to build-errors.
8892         (errors.o): New target for host.
8893         (build-errors.o): New target for build.
8894         (genobjs): Replace errors.o with build-errors.
8895         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
8896         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
8897         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
8898         (fix-header.o): Add errors.h
8899         * collect2.c (fancy_abort): Add parameters.
8900         * collect2.h (fancy_abort): Don't declare.
8901         * errors.h (fancy_abort): Don't declare.
8902         * errors.c: Include either bconfig.h or config.h.
8903         (fancy_abort): Trim filename.
8904         * fix-header.c (v_fatal, fatal): Remove.
8905         (progname): Remove definition.
8906         (main): Set progname here.
8907         * gcc.c (fancy_abort): Add parameters.
8908         * gcc.h (fancy_abort): Remove declaration.
8909         * gcov.c (fancy_abort): Remove.
8910         * rtl.h (fancy_abort): Don't declare.
8911         (abort): Don't define.
8912         * tree.h (fancy_abort): Don't declare.
8913         (abort): Don't define.
8914         * system.h (fancy_abort): Declare.
8915         (abort): Define to fancy_abort.
8916         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
8917
8918         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
8919         (usize_type, ubitsizetype): Remove.
8920         * stor-layout.c (set_sizetype): Don't initialize usizetype,
8921         ubitsizetype.
8922         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
8923
8924         * tree.h (build_distinct_type_copy): New.
8925         (build_type_copy): ... here.  Rename to ...
8926         (build_variant_type_copy): ... here.
8927         * tree.c (build_qualified_type): Rename build_type_copy call.
8928         (build_distinct_type_copy): New, broken out of ...
8929         (build_type_copy): ... here.  Rename to ...
8930         (build_variant_type_copy): ... here.  Use
8931         build_distinct_type_copy.
8932         (build_common_tree_nodes_2): Rename build_type_copy call.
8933         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
8934         call.
8935         (handle_packed_attribute, handle_unused_attribute,
8936         handle_transparanet_union_attribute, handle_aligned_attribute,
8937         handle_deprecated_attribute): Likewise.
8938         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
8939         Likewise.
8940         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
8941         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
8942         build_distinct_type_copy.
8943
8944 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8945
8946         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
8947         attribute.
8948
8949 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8950
8951         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
8952         loads and stores.
8953         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
8954         formerly unnamed patterns.  Redefine using :P for the address.  Remove
8955         explicit length attributes.
8956
8957 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8958
8959         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
8960         New functions.
8961         (single_reachable_address): Use them.
8962         (schedule_sm): Add dump.
8963         (is_call_clobbered_ref): New function.
8964         (determine_lsm_reg): Check whether the reference is call clobbered.
8965         Only work for gimple_reg_type values.
8966
8967 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8968
8969         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
8970         $31 store insns.  Redefine using :GPR.
8971
8972 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8973
8974         * config/mips/mips.md (P): New mode macro.
8975         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
8976         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
8977         Add mode attributes.
8978
8979 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8980
8981         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
8982         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
8983         later constants to cover the gap.
8984         (load, store): New mode attributes.
8985         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
8986         Use new unspec constants.
8987
8988 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
8989
8990         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
8991         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
8992         to use register_operand rather than uns_arith_operand as the predicate
8993         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
8994         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
8995         Redefine using :GPR.  Make same predicate change here.  Extend the
8996         commutativity of operands 1 and 2 from the SImode version to the
8997         DImode one.
8998         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
8999         but with no predicate changes.
9000         (*nor[sd]i3): Redefine using :GPR.
9001
9002 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9003
9004         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
9005         noreturn functions.
9006
9007 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
9008
9009         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
9010         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
9011         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
9012         rather than "%z2" (with a fake const0_rtx for operand 2).
9013         (ffs[sd]i2): Redefine using :GPR.
9014         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
9015
9016 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
9017
9018         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
9019
9020 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
9021
9022         * config/mips/mips.md (any_extend): New code macro.
9023         (u, su): New code attributes.
9024         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
9025         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
9026         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
9027         (*{s,u}mul_acc_di): Redefine using any_extend.
9028         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
9029         to reflect real insn names.
9030         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
9031         with an any_extend template.
9032         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
9033         Add '*' to name.
9034
9035 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
9036
9037         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
9038         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
9039         (mul[sd]i3_r4000): Redefine using :GPR.
9040         (mulsi3_mult3): Don't check TARGET_MAD separately.
9041         (muldi3_mult3): Moved after mulsi_mult3.
9042
9043 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
9044
9045         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
9046         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
9047         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
9048         (TARGET_GAS, TARGET_MIPS_AS): Delete.
9049         (TARGET_GPWORD): Define to true for n32 on IRIX.
9050         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
9051         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
9052         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
9053         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
9054         (MDEBUG_ASM_SPEC): Delete, folding into...
9055         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
9056         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
9057         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
9058         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
9059         to define asm_abi_default_spec.
9060         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
9061         (TARGET_ASM_SELECT_SECTION): Delete.
9062         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
9063         for non-mips16 code, removing previous workaround for SGI assemblers.
9064         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
9065         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
9066         (override_options): Remove !TARGET_GAS and !have_named_sections code.
9067         (print_operand): Fold TARGET_GAS conditionals into asm strings.
9068         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
9069         ASM_STABS_OP and ASM_STABN_OP.
9070         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
9071         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
9072         (mips_output_function_prologue): Remove !TARGET_GAS code.
9073         (mips_select_rtx_section): Remove !have_named_sections code.
9074         (mips_select_section): Delete.
9075         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
9076         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
9077         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
9078         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
9079         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
9080         * config/mips/windiss.h (ASM_SPEC): Likewise.
9081
9082 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
9083
9084         * read-rtl.c (map_value, mapping, macro_group): New structures.
9085         (BELLWETHER_CODE): New macro.
9086         (modes, codes, bellwether_codes): New variables.
9087         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
9088         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
9089         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
9090         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
9091         (add_map_value, initialize_macros): New functions.
9092         (def_hash, def_hash_eq_p): Generalize to anything that points to,
9093         or starts with, a char * field.
9094         (find_macro, read_mapping, check_code_macro): New functions.
9095         (read_rtx_1): New, split out from read_rtx.  Handle the new
9096         define_{mode,code}_{macro,attr} constructs.  Use find_macro
9097         to parse the name of a code or mode.  Use BELLWETHER_CODE to
9098         extract the format and to choose a suitable code for rtx_alloc.
9099         Modify recursive invocations to use read_rtx_1.
9100         (read_rtx): Call initialize_macros.  Apply code and mode macros
9101         to the rtx returned by read_rtx_1.  Cache everything after the
9102         first macro expansion for subsequent read_rtx calls.
9103         * doc/md.texi: Document new .md constructs.
9104         * config/mips/mips.md (GPR): New mode macro.
9105         (d, si8_di5): New mode attributes.
9106         (any_cond): New code macro.
9107         (add[sd]i3): Redefine using :GPR.
9108         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
9109         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
9110         previously unnamed MIPS16 patterns.
9111         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
9112         lines.  Don't match (plus (const_int 0) ...).
9113         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
9114         Use a define_split to generate the addition.
9115         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
9116         (subsi3_internal): Delete.
9117         (*subsi3_extended): Renamed from subsi3_internal_2.
9118         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
9119         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
9120         using an any_cond template.
9121
9122 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
9123
9124         * read-rtl.c (read_rtx): Tidy use of format_ptr.
9125
9126 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
9127
9128         * read-rtl.c (string_obstack): New file-scope variable.
9129         (read_string, read_quoted_string, read_braced_string)
9130         (read_escape): Remove obstack parameter and use string_obstack instead.
9131         (read_rtx): Remove function-local rtl_obstack and initialize
9132         string_obstack instead.  Update call to read_string.
9133
9134 2004-08-22  Andrew Pinski  <apinski@apple.com>
9135
9136         PR c/15262
9137         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
9138         expression is not constant.
9139         (c_finish_return): Do not go through INDIRECT_REF when looking
9140         for the inner expression of an ADDR_EXPR for warning about.
9141
9142 2004-08-22  Richard Henderson  <rth@redhat.com>
9143
9144         PR 17075
9145         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
9146         create new blocks and fall through.
9147         (expand_gimple_basic_block): Update to match.
9148
9149 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
9150
9151         * reload.c (find_reloads_address): Make return value tri-state.
9152         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
9153         (find_reloads): Assume that reloaded addresses match 'o' or
9154         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
9155         returned 1 (not -1).  Omit optional reloads for address operands
9156         only if find_reloads_address returned 1 (not -1).
9157
9158         * config/s390/s390.c (legitimize_reload_address): New function.
9159         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
9160         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
9161         legitimize_reload_address.
9162
9163 2004-08-22  Richard Hendersion  <rth@redhat.com>
9164
9165         * tree.h (SAVE_EXPR_RESOLVED_P): New.
9166         * gimplify.c (gimplify_save_expr): Use it.
9167         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
9168         on the temporary variable.
9169
9170 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
9171
9172         * fold-const.c (rtl_expr_nonnegative_p): Delete.
9173         * tree.h (rtl_expr_nonnegative_p): Remove.
9174
9175 2004-08-22  Steven Bosscher  <stevenb@suse.de>
9176
9177         * config/i386/ppro.md (ppro_complex_insn): Add missing check
9178         for cpu==pentiumpro.
9179
9180         * combine.c (struct reg_stat): Fix comment typo.
9181
9182 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
9183
9184         * c-tree.h (c_sizeof_nowarn): Remove.
9185
9186 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
9187
9188         * c-decl.c (set_array_declarator_type): Rename to
9189         set_array_declarator_inner.
9190         (build_c_parm, build_attrs_declarator, build_function_declarator):
9191         New functions.
9192         (make_pointer_declarator): Call build_attrs_declarator.
9193         * c-tree.h (set_array_declarator_type): Rename to
9194         set_array_declarator_inner.
9195         (build_c_parm, build_attrs_declarator, build_function_declarator):
9196         New prototypes.
9197         * c-parse.in (after_type_declarator,
9198         parm_declarator_starttypename, parm_declarator_nostarttypename,
9199         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
9200         firstparm): Use these functions
9201
9202 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
9203
9204         * c-decl.c (build_array_declarator, set_array_declarator_type,
9205         start_decl, grokdeclarator, grokparms): Change boolean parameters
9206         to type bool.
9207         * c-tree.h (build_array_declarator, set_array_declarator_type,
9208         start_decl): Update prototypes.
9209         * c-decl.c, c-parse.in: All callers changed.
9210
9211 2004-08-21  Mike Stump  <mrs@apple.com>
9212
9213         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
9214         (darwin_fix_and_continue): Likewise.
9215         (darwin_fix_and_continue_switch): Likewise.
9216         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
9217         (darwin_fix_and_continue): Likewise.
9218         (darwin_fix_and_continue_switch): Likewise.
9219
9220 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
9221
9222         PR  c++/16030
9223         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
9224         Remove, merging into ...
9225         (gen_stdcall_or_fastcall_suffix): New function, returning tree
9226         rather than const char*, and accepting additional parameter.
9227         Don't add suffix to '*'-prefixed symbols or variadic functions.
9228         (i386_pe_encode_section_info): Adjust for call to new function.
9229         Call change_decl_assembler_name.
9230
9231 2004-08-20  Mike Stump  <mrs@apple.com>
9232
9233         * config/darwin.c (machopic_indirect_data_reference): Mark
9234         stubs as defined.
9235         * config/386/386.c (darwin_local_data_pic): Add.
9236         (legitimate_constant_p): Reorder so that PLUS handling runs
9237         before darwin_local_data_pic to match the ordering in
9238         legitimate_pic_address_disp_p and so that MINUS runs after
9239         darwin_local_data_pic as otherwise the darwin_local_data_pic
9240         logic can be skipped, which would be very bad.
9241         (legitimate_pic_address_disp_p): Move from from here to
9242         darwin_local_data_pic so it can be reused.
9243
9244 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
9245
9246         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
9247         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
9248         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
9249         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
9250         (RS6000_ABI_NAME): Define as "linux".
9251         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
9252         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
9253         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
9254         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
9255         * config/rs6000/rs6000.c (dot_symbols): New global var.
9256         (rs6000_output_function_entry): New function, modified for
9257         !DOT_SYMBOLS..
9258         (print_operand <case 'z'>): ..extracted from here.
9259         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
9260         (rs6000_output_function_epilogue): Likewise.
9261         (rs6000_elf_declare_function_name): Likewise.
9262         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
9263         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
9264         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
9265         * configure: Regenerate.
9266         * config.in: Regenerate.
9267
9268 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
9269
9270         * reload.c (find_reloads_address): Fix thinko in previous change.
9271
9272         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
9273         a CONST_INT.
9274
9275 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
9276
9277         PR rtl-optimization/17099
9278         * combine.c (force_to_mode): Check if inner_mask has any bits set
9279         outside of GET_MODE (x) instead of op_mode.
9280
9281 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
9282
9283         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
9284         fragment.
9285         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
9286         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
9287         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
9288         architecture.
9289         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
9290         configurations.
9291         * config/arm/t-symbian: New file.
9292
9293 2004-08-20  Andrew Pinski  <apinski@apple.com>
9294
9295         * regrename.c (kill_value_regno): ANSIfy.
9296
9297 2004-08-20  Dale Johannesen  <dalej@apple.com>
9298
9299         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
9300
9301 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
9302
9303         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
9304         (kill_value_regno): New function, derived from kill_value.
9305         (kill_value): Update.
9306         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
9307
9308 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
9309
9310         Fix PR tree-optimization/17111
9311         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
9312         of non-value_handles.
9313         (bitmap_set_contains): All constants are in every set.
9314
9315 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
9316
9317         * fold-const.c (round_up, round_down): Use build_int_cst.
9318         Optimize common case.
9319
9320 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
9321             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9322
9323         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
9324         one_only_data_section): Rename to som_readonly_data_section,
9325         som_one_only_readonly_data_section and som_one_only_data_section.
9326         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
9327         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
9328         conditional defines.
9329         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
9330         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
9331         string values.
9332         (pa_select_section): Use renamed section functions.
9333         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
9334         SOM_READONLY_DATA_SECTION_FUNCTION,
9335         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
9336         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
9337         Define here ...
9338         * config/pa/som.h: ... not here.
9339         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
9340         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
9341         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
9342         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
9343         (READONLY_DATA_SECTION): Use som_readonly_data_section.
9344
9345 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
9346
9347         * fold-const.c (int_const_binop): Don't generate non-overflowing
9348         size-types specially.
9349         (fold_convert_const): Likewise.
9350
9351         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
9352         clear cache on copied sizetype.
9353
9354 2004-08-20  Ben Elliston  <bje@au.ibm.com>
9355
9356         * configure.ac: Don't escape apostrophe in --enable-coverage help.
9357         * configure: Regenerate.
9358
9359 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
9360
9361         PR 5620
9362         * gcc.c (struct stat input_stat): Don't define if
9363         HOST_LACKS_INODE_NUMBERS
9364         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
9365         than stat to determine if temp file is same as input file.
9366         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
9367         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
9368
9369 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
9370
9371         * configure.ac (mips*-*-*): Print an error if not using GAS.
9372         * configure: Regenerated.
9373         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
9374         comments about buggy MIPSpro assemblers.
9375         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
9376         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
9377         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
9378         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
9379         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
9380         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
9381         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
9382         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
9383         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
9384         of more general IRIX 6 definitions.
9385         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
9386         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
9387         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
9388         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
9389         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
9390         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
9391         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
9392         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
9393         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
9394         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
9395         (LINK_SPEC): Move most of definition to iris.h.
9396         (SUBTARGET_LINK_SPEC): New macro.
9397         (IRIX_STARTFILE_SPEC): Fold into...
9398         (STARTFILE_SPEC): ...here.
9399         (IRIX_ENDFILE_SPEC): Fold into...
9400         (ENDFILE_SPEC): ...here.
9401         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
9402         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
9403         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
9404         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
9405         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
9406         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
9407         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
9408         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
9409         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
9410         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
9411         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
9412         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
9413         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
9414         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
9415         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
9416         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
9417         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
9418         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
9419         (TARGET_IRIX6): Define to 1.
9420         (DRIVER_SELF_SPECS): Define.
9421         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
9422         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
9423         (SUBTARGET_LINK_SPEC): New macro.
9424         (IRIX_STARTFILE_SPEC): Fold into...
9425         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
9426         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
9427         (LIB_SPEC, LIBGCC_SPEC): Use them.
9428         (LIB_SPEC): Remove !mabi=* case.
9429         (IRIX_ENDFILE_SPEC): Fold into...
9430         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
9431         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
9432         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
9433         (TARGET_IRIX6): New macro.
9434         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
9435         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
9436         (LABEL_AFTER_LOC): Delete.
9437         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
9438         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
9439         (mips_build_builtin_va_list): Check TARGET_IRIX6.
9440         (override_options): Remove TARGET_SGI_O32_AS-related code.
9441         (irix_output_external_libcall): Make static.
9442         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
9443         LABEL_AFTER_LOC.
9444         (mips_file_start): Tidy guard for ABI sections.  Remove use of
9445         ABICALLS_ASM_OP; use .abicalls instead.
9446         (mips_output_aligned_decl_common, mips_declare_object_name)
9447         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
9448         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
9449         .globl foo .text directives.
9450         (irix_asm_named_section_1, irix_asm_named_section)
9451         (irix_section_align_entry, irix_section_align_htab)
9452         (irix_orig_asm_out_file, irix_section_align_entry_eq)
9453         (irix_section_align_entry_hash, irix_asm_output_align)
9454         (irix_file_start, irix_section_align_1, copy_file_data)
9455         (irix_file_end, irix_section_type_flags): Delete.
9456         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
9457         Use standard section syntax.  Remove protective "jr $31".
9458         (__gcc_fini): Likewise .gcc_fini.
9459         * config/mips/irix-crtn.asm: Adjust sections accordingly.
9460         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
9461         iris5gas.h.
9462         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
9463         from t-irix-gld.
9464         (EXTRA_MULTILIB_PARTS): Define.
9465         * config/mips/t-iris6: Remove bogus comment.
9466         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
9467         * config/mips/iris5gas.h, config/mips/iris5gld.h,
9468         config/mips/iris6gas.h, config/mips/iris6gld.h,
9469         config/mips/t-iris5-as, config/mips/t-iris5-gas
9470         config/mips/t-irix-gld: Delete.
9471         * config/mips/iris.h: New file.
9472         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
9473
9474 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
9475
9476         * postreload.c (reload_cse_move2add): Allow any condjump, but check
9477         that the implicit set isn't clobbered in the jump insn.
9478
9479 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
9480
9481         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
9482         * optabs.c (init_optabs): Don't check it.
9483         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
9484         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
9485
9486 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
9487
9488         * config/s390/s390.md (s390_warn_framesize_string)
9489         (s390_warn_dynamic_string, s390_stack_size_string)
9490         (s390_stack_guard_string): New global string variables.
9491         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
9492         (s390_stack_guard): New global variables.
9493         (override_options): Added checks for the new options.
9494         (s390_emit_prologue): Emit stack check and trap code and perform
9495         compile time stack size checking.
9496
9497         * config/s390/s390.h (TARGET_OPTIONS): Added new options
9498         "warn-framesize", "warn-dynamicstack", "stack-size" and
9499         "stack-guard".
9500
9501         * doc/invoke.texi: Added documentation for the new options.
9502
9503 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
9504
9505         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
9506         to eliminate warning.
9507         (linear_search_fdes): Declare p as unsigned.
9508         (binary_search_mixed_encoding_fdes): Likewise.
9509         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
9510         to eliminate warning.
9511         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
9512         type cast.
9513
9514 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
9515
9516         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
9517         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
9518         instead of one.  Check for strictly legitimate address.
9519         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
9520         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
9521
9522 2004-08-19  Eric Christopher  <echristo@redhat.com>
9523
9524         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
9525         * langhooks.h (unsave_expr_now): Ditto.
9526         * tree.h (unsave_expr_1): Remove prototype.
9527         (lhd_unsave_expr_now): Rename to unsave_expr_now.
9528         * tree-inline.c (unsave_expr_1): Move here
9529         from tree.c. Make static.
9530         (unsave_expr_now): Rename from lhd_unsave_expr_now.
9531         * tree-sra.c: Fix up for rename.
9532         * tree-ssa-copy.c: Ditto.
9533         * tree-eh.c: Ditto.
9534         * tree.c (unsave_expr_1): Move to tree-inline.c.
9535
9536 2004-08-19  Caroline Tice  <ctice@apple.com>
9537
9538         * config/i386/cygming.h (switch_to_section):  Fix typo (change
9539         in_unlikely_text_section to in_unlikely_executed_text).
9540
9541 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
9542
9543         * vec.h (VEC_lower_bound): New macro.
9544
9545 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
9546
9547         PR target/16446
9548         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
9549         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
9550         treat each ABI separately.  Deal with n32/n64 complex float arguments.
9551         (function_arg): Add associated complex handling here.
9552
9553 2004-08-19  Richard Henderson  <rth@redhat.com>
9554
9555         * config/arm/arm.c (arm_gen_load_multiple): Use
9556         adjust_automodify_address.  Take base memory and offset instead
9557         of unchanging/struct/scalar bits.
9558         (arm_gen_store_multiple): Likewise.
9559         (arm_gen_movmemqi): Use adjust_automodify_address.
9560         * config/arm/arm-protos.h: Update decls.
9561         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
9562         (store_multiple): Similarly.
9563
9564 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
9565
9566         * regclass.c (globalize_reg): Update call_really_used_regs.
9567
9568 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
9569
9570         * doc/invoke.texi (integer-share-limit): Document.
9571
9572         * tree.h (TYPE_CACHED_VALUES_P): New.
9573         (TYPE_CACHED_VALUES): New.
9574         (TYPE_ORIG_SIZE_TYPE): Adjust.
9575         * tree.def (INTEGER_CST): Update documentation.
9576         * tree.c: Inlcude params.h.
9577         (build_int_cst): Cache small values.
9578         (build_type_copy): Do not copy the value cache.
9579         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
9580         unneeded zeroing.
9581         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
9582         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
9583         cache.
9584         * fold-const.c (force_fit_type): Copy value when setting
9585         overflows.
9586         (int_const_binop): Likewise.
9587         * stor-layout.c: Include params.h
9588         (set_sizetype): Create values cache.
9589         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
9590         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
9591         * params.h (INTEGER_SHARE_LIMIT): New.
9592         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
9593
9594 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
9595
9596         * gimplify.c (gimplify_minimax_expr): Remove.
9597         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
9598
9599 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
9600
9601         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
9602         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
9603
9604 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
9605
9606         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
9607
9608 2004-08-18  Andrew Pinski  <apinski@apple.com>
9609
9610         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
9611
9612 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
9613
9614         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
9615         (__aeabi_ul2f): Likewise.
9616
9617 2004-08-18  Richard Henderson  <rth@redhat.com>
9618
9619         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
9620         move to rtl completely.
9621         (struct meminsnbuf, xtensa_emit_block_move): Remove.
9622         (xtensa_find_mode_for_size): Remove.
9623         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
9624         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
9625
9626 2004-08-18  Richard Henderson  <rth@redhat.com>
9627
9628         * config/mcore/mcore.c (mode_from_align): Remove DImode.
9629         (block_move_sequence): Rewrite to use adjust_address.
9630         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
9631         Return boolean indicating success/failure.
9632         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
9633         * config/mcore/mcore.md (movmemsi): Update to match.
9634
9635 2004-08-18  Mike Stump  <mrs@apple.com>
9636
9637         * doc/invoke.texi (-mfix-and-continue): Add support for
9638         fast turn around debugging.
9639         (-ffix-and-continue): Likewise.
9640         (-mindirect-data): Likewise.
9641         (-findirect-data): Likewise.
9642         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
9643         (indirect_data): Likewise.
9644         (machopic_data_defined_p): Likewise.
9645         (machopic_output_indirection): Likewise.
9646         (darwin_encode_section_info): Likewise.
9647         (darwin_fix_and_continue): Likewise.
9648         (darwin_fix_and_continue_switch): Likewise.
9649         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
9650         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
9651         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
9652         (SUBTARGET_OPTIONS): Likewise.
9653         (darwin_fix_and_continue): Likewise.
9654         (darwin_fix_and_continue_switch): Likewise.
9655         (TARGET_FIX_AND_CONTINUE): Likewise.
9656         * config/rs6000.c (rs6000_emit_prologue): Likewise.
9657
9658 2004-08-19  Steven Bosscher  <stevenb@suse.de>
9659
9660         * basic-block.h (struct edge_def): Remove crossing_edge.
9661         (EDGE_CROSSING): New define.
9662         (EDGE_ALL_FLAGS): Update.
9663         * bb-reorder.c (find_traces_1_round, better_edge_p,
9664         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
9665         find_jump_block, fix_crossing_conditional_branches,
9666         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
9667         Replace all occurences of crossing_edge with an edge flag check
9668         or set/reset.
9669         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
9670         try_crossjump_bb): Likewise.
9671         * cfglayout.c (fixup_reorder_chain): Likewise.
9672         * cfgrtl.c (force_nonfallthru_and_redirect,
9673         commit_one_edge_insertion): Likewise.
9674
9675         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
9676         * tree-flow.h (compute_dominance_frontiers): Move prototype...
9677         * basic-block.h:  ...here.
9678         * tree-cfg.c (compute_dominance_frontiers_1,
9679         compute_dominance_frontiers): Move from here...
9680         * cfganal.c: ...to here.  Include timevar.h.
9681
9682 2004-08-18  James E Wilson  <wilson@specifixinc.com>
9683
9684         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
9685         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
9686
9687         * config/mips/mips.md (type): Add frdiv.
9688         (divsf3+1, divsf3+2): Change type to frdiv.
9689         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
9690         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
9691
9692         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
9693         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
9694         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
9695         * config/mips/5000.md (r5k_fdiv_single): Likewise.
9696         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
9697         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
9698         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
9699         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
9700         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
9701         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
9702         Likewise.
9703         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
9704
9705 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
9706
9707         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
9708         get regression tester working again.
9709
9710 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
9711
9712         * insn-notes.def, reg-notes.def: New files.
9713         * rtl.h: Use them to define enum insn_note and enum reg_note.
9714         * rtl.c: Use them to define note_insn_name and reg_note_name.
9715         * Makefile.in (RTL_BASE_H): Update.
9716
9717         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
9718         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
9719
9720 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
9721
9722         * arm.c (arm_size_rtx_costs): New function.
9723         (arm_override_options): Use it if optimizing for space.
9724
9725 2004-08-18  Richard Henderson  <rth@redhat.com>
9726
9727         * emit-rtl.c (gen_const_mem): New.
9728         * rtl.h (gen_const_mem): Declare.
9729         * expr.c (do_tablejump): Use it.
9730         * varasm.c (force_const_mem): Likewise.
9731         * config/darwin.c (machopic_indirect_data_reference): Likewise.
9732         (machopic_legitimize_pic_address): Likewise.
9733         * config/arm/arm.c (legitimize_pic_address): Likewise.
9734         * config/i386/i386.c (legitimize_pic_address): Likewise.
9735         (legitimize_tls_address): Likewise.
9736         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
9737         * config/ia64/ia64.md (load_fptr): Likewise.
9738         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
9739         * config/pa/pa.c (legitimize_pic_address): Likewise.
9740         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
9741         (rs6000_emit_move): Likewise.
9742         * config/s390/s390.c (legitimize_pic_address): Likewise.
9743         (legitimize_tls_address): Likewise.
9744         * config/s390/s390.md (casesi): Likewise.
9745         * config/sh/sh.c (sh_reorg): Likewise.
9746         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
9747         * config/v850/v850.md (casesi): Likewise.
9748
9749         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
9750         * config/sh/sh.c (prepare_move_operands): Remove incorrect
9751         use of MEM_READONLY_P.
9752
9753 2004-08-18  Steven Bosscher  <stevenb@suse.de>
9754
9755         * Makefile.in (OBJS-common): Add postreload-gcse.c.
9756         Add new postreload-gcse.o.
9757         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
9758         (lookup_as_function, insert, rehash_using_reg, use_related_value,
9759         equiv_constant): Use SAFE_HASH instead of safe_hash.
9760         (exp_equiv_p): Export.  Add for_gcse argument when comparing
9761         for GCSE.
9762         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
9763         find_comparison_args, fold_rtx, cse_insn): Update callers.
9764         (hash_rtx): New function derived from old canon_hash and bits
9765         from gcse.c hash_expr_1.
9766         (canon_hash_string): Rename to hash_rtx_string.
9767         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
9768         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
9769         (cselib_lookup): Update this caller.
9770         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
9771         Make static.
9772         (hash_expr): Call hash_rtx.
9773         (ldst_entry): Likewise.
9774         (expr_equiv_p): Call exp_equiv_p.
9775         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
9776         reg_used_on_edge, reg_set_between_after_reload_p,
9777         reg_used_between_after_reload_p, get_avail_load_store_reg,
9778         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
9779         get_bb_avail_insn, hash_scan_set_after_reload,
9780         compute_hash_table_after_reload,
9781         eliminate_partially_redundant_loads, gcse_after_reload,
9782         get_bb_avail_insn, gcse_after_reload_main): Remove.
9783         * postreload-gcse.c: New file, reincarnating most of the above.
9784         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
9785         (gcse_after_reload_main): Update prototype.
9786         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
9787         * passes.c (rest_of_handle_gcse2): Use it.
9788
9789 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
9790
9791         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
9792         (pass_loop_done): Likewise.
9793
9794 2004-08-18  Andrew Pinski  <apinski@apple.com>
9795
9796         * config/rs6000/darwin.md: Delete the altivec patterns which are
9797         handled differently now.
9798         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
9799         (macho_correct_pic_di): Likewise.
9800         (call_indirect_nonlocal_darwin64): Likewise.
9801         Delete the save world/saveFP/saveVec patterns.
9802
9803         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
9804         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
9805         * config/rs6000/rs6000.md: Include darwin.md.
9806         (builtin_setjmp_receiver): Add DImode case.
9807         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
9808         Darwin bits.
9809
9810 2004-08-18  Matt Austern  <austern@apple.com>
9811
9812         Dead code stripping
9813         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
9814         * darwin.c (darwin_file_end): Mark file as potentially strippable.
9815
9816 2004-08-18  Richard Henderson  <rth@redhat.com>
9817
9818         * alias.c (readonly_fields_p): Remove.
9819         (objects_must_conflict_p): Don't call it.
9820         * tree.h (readonly_fields_p): Remove.
9821         * langhooks.h (struct lang_hooks): Remove honor_readonly.
9822         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
9823
9824 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
9825
9826         * tree-dfa.c (add_referenced_var): Only global variables are
9827         call-clobbered.
9828         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
9829         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
9830         all pointers dereferenced if the statement dereferences them.
9831         (create_name_tags): Do not create memory tags for pointers
9832         that have PT_ANYTHING set.
9833         Also check if PT_VARS is not empty before creating a name tag.
9834         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
9835         variables that share the same alias set with a pointer that
9836         may point anywhere.
9837         (add_may_alias): Add FIXME comment to remove clobbering
9838         aliased variables and tags.
9839         (replace_may_alias): Likewise.
9840         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
9841         (merge_pointed_to_info): If the original variable has not
9842         points-to information, call set_pt_anything.
9843         (add_pointed_to_var): Do not prevent adding a pointed-to
9844         variable if the pointers is PT_ANYTHING.
9845         If the variable is a global, set PT_GLOBAL_MEM.
9846         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
9847         pointer type only come in PTR+OFFSET flavours.
9848         Always call merge_pointed_to_info on PHI arguments that are
9849         SSA_NAMEs.
9850         (get_nmt_for): Mark call-clobbered tags whose pointer points
9851         to global memory.
9852         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
9853         values.
9854         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
9855         FLAGS.
9856         (add_stmt_operand): Abort if the caller tried to add a killing
9857         definition for a memory tag.
9858         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
9859         unnecessary checks.
9860
9861 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
9862
9863         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
9864         from call_used_regs.  Update call_really_used_regs.
9865         (CALL_REALLY_USED_REGISTERS): Define.
9866         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
9867         Replace call_used_regs with call_really_used_regs.
9868         (calc_live_regs, sh_media_register_for_return): Likewise.
9869         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
9870         * sh.md (return_media): Likewise.
9871
9872 2004-08-18  Andrew Pinski  <apinski@apple.com>
9873
9874         * config/darwin.c (machopic_legitimize_pic_address): Only set
9875         MEM_READONLY_P in the non TARGET_TOC case.
9876
9877 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
9878
9879         * rtl.def (NIL): Delete.
9880         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
9881         Tighten the syntax a little.
9882
9883         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
9884         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
9885         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
9886         * config/i386/predicates.md, config/m32r/m32r.h
9887         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
9888         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
9889         * config/sparc/sparc.h, doc/tm.texi:
9890         Replace all occurrences of NIL with UNKNOWN.
9891
9892 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
9893
9894         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
9895         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
9896         sequence inline.  Move drop_through_label code into this
9897         block, being the only place it is used.  Adjust comments.
9898
9899 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
9900
9901         * config/rs6000/altivec.md: Add new patterns for calls to
9902         save_world/rest_world functions.
9903
9904         * config/rs6000/rs6000-protos.h: (save_world_operation,
9905         restore_world_operation) new declarations.
9906
9907         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
9908         field added.
9909         (rs6000_stack_info): Set world_save_p field.
9910         (save_world_operation): New function.
9911         (restore_world_operation): New function.
9912         (compute_save_world_info): New function.
9913         (rs6000_stack_info): Call compute_save_world_info.
9914         (rs6000_emit_prologue): Check for world_save_p and generate
9915         pattern to call save_world for saving all non-volatile and
9916         special registers.
9917         (rs6000_emit_epilogue): Check for world_save_p and generate
9918         pattern to call rest_world to restore saved registers.
9919
9920         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
9921         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
9922         (rs6000_reg_names): New entries added for save_world_operation and
9923         restore_world_operation.
9924
9925 2004-08-18  Caroline Tice  <ctice@apple.com>
9926
9927         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
9928         "-freorder-blocks-and-partition" to the flags used in second
9929         stage of profiledbootstrap.
9930         * bb-reorder.c (push_to_next_round_p): Add new variable,
9931         next_round_is_last; set and use variable to make sure, when
9932         partitioning, that the last trace construction round consists
9933         of all (and only) cold basic blocks.
9934         (rotate_loop): Don't copy blocks that end in a section
9935         crossing jump.
9936         (copy_bb): Correctly initialize "partition" of duplicated bb.
9937         (add_unlikely_executed_notes): Add a comment.
9938         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
9939         to make sure, if function contains hot blocks, that the
9940         successors of ENTRY_BLOCK_PTR are hot; also, only look for
9941         crossing edges if the architecture supports named sections.
9942         (mark_bb_for_unlikely_executed_section): Modify to always
9943         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
9944         the basic block note insn.
9945         (fix_crossing_unconditional_branches): Remove extra space.
9946         (fix_edges_for_rarely_executed_code): Modify to only do
9947         partitioning work if the architecture supports named sections.
9948         (reorder_basic_blocks): Modify to only add
9949         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
9950         supports named sections.
9951         * c-common.c (handle_section_attribute): Initialize new global
9952         variable, user_defined_section_attribute, to true if user has
9953         specified one.
9954         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
9955         forward edges that cross section boundaries.
9956         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
9957         partitioning information if the architecture supports named
9958         sections.
9959         * cfgrtl.c (target.h): Add statement to include this.
9960         (rtl_split_block): Make sure newly created bb gets correct
9961         partition.
9962         (try_redirect_by_replacing_jump): Make sure redirection isn't
9963         attempting to cross section boundaries.
9964         (force_nonfallthru_and_redirect): Only do partition fix up if
9965         architecture supports named sections.
9966         (rtl_split_edge): Make sure newly created bb ends up in
9967         correct partition.
9968         (commit_one_edge_insertion): Remove code that incorrectly
9969         updated basic block partition; Make sure partition fix up only
9970         happens if architecture supports named sections and it's not
9971         already done.
9972         (rtl_verify_flow_info_1): Fix if-condition on test/error
9973         condition that fallthru edges are not allowed to cross section
9974         boundaries.
9975         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
9976         * final.c (final_scan_insn): Remove redundant test from if-statement;
9977         change calls to text_section into calls to function_section; add code
9978         to only to partitioning fix up if architecture supports named
9979         sections.
9980         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
9981         partition.
9982         (if_convert): Add targetm.have_named_sections to test.
9983         * output.h (unlikely_section_label): Extern declaration for new global
9984         variable.
9985         (unlikely_text_section_name): Likewise.
9986         * opts.c (decode_options): If both partitioning and DWARF debugging
9987         are turned on, issue a warning that this doesn't work, and change
9988         partitiong to basic block reordering (without hot/cold partitions).
9989         * passes.c (rest_of_handle_final): Re-set new global variable,
9990         user_defined_section_attribute, to false.
9991         (rest_of_compilation): Change options for calling partitioning
9992         function: Don't call if the user defined the section attribute, and
9993         don't call if DECL_ONE_ONLY is true for the current function.
9994         * predict.c (choose_function_section): Return immediately if we
9995         are doing hot/cold partitioning (i.e. let the basic block partitioning
9996         determine where the function belongs).
9997         * reg-stack.c (emit_swap_insn): Add condition to step over
9998         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
9999         * toplev.c (user_defined_section_attribute): New global variable.
10000         * toplev.h (user_defined_section_attribute): Extern declaration
10001         for new global variable.
10002         * varasm.c (unlikely_section_label): New global variable.
10003         (unlikely_text_section_name): New global variable.
10004         (unlikely_text_section): Add code to initialize
10005         unlikely_text_section_name if necessary; modify to use
10006         unlikely_text_section_name and unlikely_section_label; also to use
10007         named_section properly.
10008         (in_unlikely_text_section):  Modify to work correctly with
10009         named_section and to use unlikely_text_section_name.
10010         (named_section):  Add code to work properly with cold section.
10011         (function_section): Clean up if-statement.
10012         * config/darwin.c (darwin_asm_named_section): Return to original
10013         code, removing use of SECTION_FORMAT_STRING.
10014         * config/arm/pe.h (switch_to_section):  Add case for
10015         in_unlikely_executed_text to switch statement.
10016         * config/i386/cygming.h (switch_to_section): Likewise.
10017         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
10018         (SECTION_FORMAT_STRING): Likewise.
10019         * config/mcore/mcore.h (switch_to_section): Likewise.
10020         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
10021         (SECTION_FORMAT_STRING): Remove.
10022
10023 2004-08-18  Roger Sayle  <roger@eyesopen.com>
10024
10025         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
10026         -ffixed-reg safe, by preserving the meanings of zero and one.
10027         (CALL_USED_REGISTERS): Likewise.
10028         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
10029
10030 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10031
10032         * config/sh/sh.c (split_branches): Check the result of
10033         next_active_insn.
10034         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
10035         Call rtl_register_cfg_hooks.
10036
10037 2004-08-18  Richard Henderson  <rth@redhat.com>
10038
10039         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
10040         * alias.c (true_dependence): Update to match new semantics.
10041         (canon_true_dependence, write_dependence_p): Likewise.
10042         (anti_dependence, output_dependence): Update write_dependence_p args.
10043         (unchanging_anti_dependence): Remove.
10044         * calls.c (purge_mem_unchanging_flag): Remove.
10045         (fixup_tail_calls): Don't call it.
10046         (expand_call): Don't add unchanging memory to function usage.
10047         * expr.c (emit_block_move_via_libcall): Likewise.
10048         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
10049         (get_subtarget): Don't use RTX_UNCHANGING_P.
10050         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
10051         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
10052         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
10053         * cse.c (insert): Don't use RTX_UNCHANGING_P.
10054         (cse_insn, canon_hash): Use MEM_READONLY_P.
10055         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
10056         instead of RTX_UNCHANGING_P.
10057         * explow.c (maybe_set_unchanging): Remove.
10058         * expr.h (maybe_set_unchanging): Remove.
10059         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
10060         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
10061         (assign_parm_setup_reg, expand_function_start): Likewise.
10062         * integrate.c (copy_rtx_and_substitute): Likewise.
10063         * ra-rewrite.c (emit_colors): Likewise.
10064         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
10065         (fixup_match_1): Likewise.
10066         * reload1.c (reload, alter_reg): Likewise.
10067         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
10068         not RTX_UNCHANGING_P.
10069         (equiv_init_varies_p): Likewise.
10070         * loop-invariant.c (check_maybe_invariant): Likewise.
10071         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
10072         * loop.c (note_addr_stored): Likewise.
10073         (prescan_loop): Likewise. Don't check function usage for clobbered
10074         unchanging memory.
10075         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
10076         not RTX_UNCHANGING_P.
10077         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
10078         * varasm.c (force_const_mem): Likewise.
10079         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
10080         * web.c (entry_register): Likewise.
10081         * tree-gimple.h (get_base_address): Move decl ...
10082         * tree.h: ... here.
10083         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
10084
10085         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
10086         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
10087         (alpha_set_memflags): Update to match.
10088
10089         * config/darwin.c (machopic_indirect_data_reference): Set
10090         MEM_READONLY_P instead of RTX_UNCHANGING_P.
10091         (machopic_indirect_call_target): Likewise.
10092         (machopic_legitimize_pic_address): Likewise.
10093         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
10094         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
10095         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
10096         * config/frv/frv.md (symGOT2reg): Likewise.
10097         * config/i386/i386.c (legitimize_pic_address,
10098         legitimize_tls_address, ix86_split_to_parts): Likewise.
10099         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
10100         * config/ia64/ia64.md (load_fptr): Likewise.
10101         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
10102         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
10103         * config/mcore/mcore.c (block_move_sequence): Likewise.
10104         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
10105         * config/pa/pa.c (legitimize_pic_address): Likewise.
10106         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
10107         (rs6000_emit_move): Likewise.
10108         * config/s390/s390.c (legitimize_pic_address): Likewise.
10109         (legitimize_tls_address): Likewise.
10110         * config/s390/s390.md (casesi): Likewise.
10111         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
10112         * config/sh/sh.md (symGOT2reg): Likewise.
10113         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
10114         * config/v850/v850.md (casesi): Likewise.
10115
10116         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
10117         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
10118         * config/mips/mips.c (mips_restore_gp): Likewise.
10119         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
10120         * config/sh/sh.c (sh_reorg): Likewise.
10121
10122 2004-08-18  Richard Henderson  <rth@redhat.com>
10123
10124         * tree.h (struct tree_decl): Add gimple_formal_temp.
10125         (DECL_GIMPLE_FORMAL_TEMP_P): New.
10126         * gimplify.c (pop_gimplify_context): Clear it.
10127         (lookup_tmp_var): Set it, if is_formal.
10128         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
10129         Use is_gimple_val for VECTOR.  Simplify return value.
10130         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
10131         (gimplify_expr): Likewise.
10132         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
10133         is_gimple_tmp_rhs for clarity.  Update all callers.
10134         (is_gimple_reg_rhs): Simplify logic.
10135         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
10136         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
10137         (is_gimple_formal_tmp_reg): Similarly.
10138         * tree-gimple.h: Update decls.
10139         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
10140         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
10141         * tree-ssa-live.c (var_union, type_var_init): Likewise.
10142
10143 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
10144
10145         * c4x.c (legitimize_operands): Remove calls to
10146         preserve_subexpressions_p.
10147
10148 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
10149
10150         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
10151         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
10152
10153 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
10154
10155         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
10156         Objective-C++ extensions.
10157         * gengtype.c (get_file_basename): Match entire subdirectory name
10158         ('cp', 'objc', 'objcp') rather than just its suffix.
10159         (get_base_file_bitmap): Allow for files to belong to more than one
10160         language.
10161         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
10162         used by more than one front-end.
10163
10164 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
10165
10166         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
10167         avoid use of preserve_subexpressions_p.
10168
10169 2004-08-17  Richard Henderson  <rth@redhat.com>
10170
10171         PR 17051
10172         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
10173
10174 2004-08-17  DJ Delorie  <dj@redhat.com>
10175
10176         * doc/extend.texi: Document new xstormy16 attribute.
10177
10178         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
10179         (xstormy16_splittable_below100_or_register): New.
10180         (combine_bnp): New.
10181         (xstormy16_reorg): New.
10182         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10183
10184         * config/stormy16/stormy16.md (movqi_internal): Make name public.
10185         (movhi_internal): Likewise.
10186         (cbhranchhi): Likewise.
10187         (cbhranchhi_neg): Likewise.
10188         (andhi3): Only allow splittable below100 operands.
10189         (iorhi3): Likewise.
10190         (peephole2): New and/zero_extend->and peephole.
10191         (peephole2): New load/ior/save->set1 peephole.
10192         (peephole2): New load/and/save->clr1 peephole.
10193         (bclrx, bclrx2, bclr7, bclr15): New.
10194         (bsetx, bsetx2, bset7, bset15): New.
10195
10196         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
10197         liberal about acceptable 'B' masks.
10198
10199         * config/stormy16/stormy16-protos.h
10200         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
10201         xstormy16_below100_operand, xstormy16_below100_or_register,
10202         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
10203         (PREDICATE_CODES): Add new predicates.
10204
10205         * config/stormy16/stormy16.c
10206         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
10207         xstormy16_below100_operand, xstormy16_below100_or_register,
10208         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
10209         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
10210         (xstormy16_legitimate_address_p): Allow below100 symbols.
10211         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
10212         (xstormy16_expand_move): Leave below100 operands as-is.
10213         (xstormy16_encode_section_info): Encode below100 symbols.
10214         (xstormy16_strip_name_encoding): New.
10215         (xstormy16_print_operand): Print 'b' as shift mask.
10216         (xstormy16_attribute_table): Add below100 attributes.
10217         (xstormy16_handle_below100_attribute): New.
10218
10219         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
10220         (XSTORMY16_SECTION_FUNCTION): New.
10221         (EXTRA_SECTION_FUNCTIONS): Define using the above.
10222         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
10223         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
10224         (ASM_OUTPUT_LABELREF): Define.
10225
10226         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
10227         (movhi_internal): Add below100 support.
10228         (andhi3): Add below100 support.
10229         (iorhi3): Add below100 support.
10230         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
10231
10232 2004-08-17  James E Wilson  <wilson@specifixinc.com>
10233
10234         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
10235         of VOIDmode for comparison code mode.
10236         * config/mips/mips.md: For conditional move patterns, use mode of
10237         first compare operand for comparison mode, instead of VOIDmode.
10238
10239         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
10240         normal and -ffast-math code.
10241
10242 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
10243
10244         PR c++/15871
10245         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
10246
10247 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
10248
10249         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
10250
10251 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
10252
10253         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
10254         for non Darwin targets.
10255         (*call_value_nonlocal_darwin64): Likewise.
10256
10257 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
10258
10259         * config/rs6000/rs6000.c (rs6000_function_value): Check for
10260         altivec mode for altivec return register.
10261
10262 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
10263
10264         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
10265         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
10266         * config/rs6000/rs6000.md: Include darwin.md.
10267         (builtin_setjmp_receiver): Add DImode case.
10268         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
10269         Darwin bits.
10270
10271 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
10272
10273         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
10274         trees.
10275         * tree-vectorizer.h: New File: Same.
10276         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
10277         * common.opt (ftree-vectorize): New flag to enable vectorization.
10278         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
10279         vectorization pass.
10280         * tree-data-ref.h (init_data_ref): Additional argument.
10281         (array_base_name_differ_p): Moved to tree-data-ref.c.
10282         * tree-data-ref.c (array_base_name_differ_p): Revised.
10283         (initialize_data_dependence_relation): Call array_base_name_differ_p
10284         with an extra argument.
10285         (analyze_all_data_dependences): Same.
10286         (init_data_ref): Additional argument is_read to set DR_IS_READ.
10287         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
10288         file.
10289         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
10290         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
10291         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
10292         vectorization pass.
10293         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
10294         (tree_ssa_loop_done): Call scev_finalize.
10295         (tree_vectorize): Define the new vectorization pass.
10296         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
10297         size of the vector they support (until support for multiple vector
10298         sizes is added to the vectorizer).
10299         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
10300         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
10301         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
10302         documentation.
10303
10304 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
10305
10306         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
10307         usage.
10308         (generate_protocol_list, handle_impent): Likewise.
10309
10310 2004-08-17  Roger Sayle  <roger@eyesopen.com>
10311
10312         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
10313         ensure that call_used_regs is a superset of both fixed_regs and
10314         call_really_used_regs.
10315
10316 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
10317
10318         PR target/17019
10319         * arm.md (addsi3_cbranch_scratch): Correct case labels.
10320
10321 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
10322
10323         PR middle-end/17036
10324         * fold-const.c (fold): Check for integer operand when
10325         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
10326         Pinski  <pinskia@physics.uc.edu>.
10327
10328 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
10329
10330         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
10331         No need to check if in a cross configuration.
10332         * configure: Regenerate.
10333
10334         * calls.c (precompute_register_parameters):
10335         Inline preserve_subexpressions_p ().
10336         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
10337         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
10338         Likewise.
10339         * expr.c (get_subtarget): Likewise.
10340         * rtl.h (preserve_subexpressions_p): Remove.
10341         * stmt.c (preserve_subexpressions_p): Remove.
10342
10343         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
10344         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
10345         Abort on gimplified cases.
10346
10347 2004-08-16  James E Wilson  <wilson@specifixinc.com>
10348
10349         * tree.h (VECTOR_FLOAT_TYPE_P): New.
10350         (FLOAT_TYPE_P): Use it.
10351         * c-typeck.c (build_binary_op): After convert calls, check for
10352         check for ERROR_MARK operands.
10353
10354 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
10355
10356         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
10357         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
10358         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
10359         (genobjs static pattern rule): Remove %.c dependency.
10360         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
10361         Rename rules; delete commands; fix dependencies.
10362         (mostlyclean): Do not delete temporary source copies.
10363         * configure.ac: Delete all references to BUILD_PREFIX and
10364         BUILD_PREFIX_1.
10365         * configure: Regenerate.
10366
10367         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
10368         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
10369         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
10370         with #ifndef GENERATOR_FILE so that nothing from those headers
10371         is used.
10372
10373         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
10374
10375 2004-08-16  Adam Nemet  <anemet@lnxw.com>
10376
10377         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
10378
10379 2004-08-16  Andrew Pinski  <apinski@apple.com>
10380
10381         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
10382         extraneous semicolon.
10383
10384 2004-08-16  Devang Patel  <dpatel@apple.com>
10385
10386         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
10387         * print-tree.c (print_node): Print DECL_PRESERVE_P.
10388         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
10389         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
10390         * target.h (struct gcc_target): New member, mark_decl_preserved.
10391         * hooks.c (hook_void_charptr): Rename to ...
10392         (hook_void_constcharptr): ... new name.
10393         * hooks.h (hook_void_charptr): Rename to ..
10394         (hook_void_constcharptr): ... new name.
10395         * tree.h (DECL_PRESERVE_P): New #define.
10396         (struct tree_decl): New member, preserve_flag.
10397         * varasm.c (assemble_start_function): Mark decl preserved.
10398         (assemble_variable): Same.
10399         * darwin.c (darwin_mark_decl_preserved): New function.
10400         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
10401         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
10402         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
10403
10404 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
10405
10406         * c-decl.c (grokdeclarator): Allow for function definition where
10407         innermost declarator has attributes.
10408
10409 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
10410
10411         * except.c (get_exception_filter, build_post_landing_pads,
10412         dw2_build_landing_pads): Use target-specific mode for 'filter'.
10413         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
10414         * target.h (eh_return_filter_mode): New field added.
10415         * targhooks.c (default_eh_return_filter_mode): Defined.
10416         * targhooks.h (default_eh_return_filter_mode): Declared.
10417         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
10418
10419 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
10420
10421         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
10422         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
10423         * configure: Regenerate.
10424
10425 2004-08-16  Stan Shebs  <shebs@apple.com>
10426
10427         Basic support for 64-bit Darwin.
10428         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
10429         (machopic_legitimize_pic_address): Similarly, plus use Pmode
10430         instead of SImode.
10431         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
10432         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
10433         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
10434         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
10435         (PROCESSOR_DEFAULT64): Define.
10436         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
10437         Darwin.
10438         * config/rs6000/rs6000.md: Include darwin.md.
10439         (builtin_setjmp_receiver): Add DImode case.
10440         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
10441         Darwin.
10442         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
10443         (rs6000_emit_move): Add DImode case to Darwin bits.
10444         (machopic_output_stub): Use .quad if 64-bit.
10445         * invoke.texi: Document -m32 and -m64.
10446
10447 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
10448
10449         * doc/extend.texi (AltiVec builtins): Document additional differences
10450         from the Motorola AltiVec PIM.
10451
10452 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10453
10454         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
10455         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
10456         (struct tree_common): Update public_flag documentation.
10457
10458 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
10459
10460         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10461         Check for artificial variables, not is_gimple_tmp_var.
10462         * tree-ssa-live.c (var_union): Likewise.
10463
10464 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10465
10466         * calls.c (load_register_parameters): Remove spurious FIXME token.
10467
10468 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
10469
10470         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
10471         (c-lang.o): Depend on c-objc-common.h.
10472         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
10473         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
10474         * c-lang.c: Include c-objc-common.h.
10475         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
10476         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
10477         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
10478         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
10479         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
10480         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
10481         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
10482         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
10483         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
10484         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
10485         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
10486         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
10487         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
10488         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
10489         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
10490         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
10491         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
10492         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
10493         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
10494         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
10495         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
10496         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
10497         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
10498         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
10499         Move to c-objc-common.h.
10500         * c-objc-common.c: Include c-objc-common.h.
10501         * c-objc-common.h: New file.
10502
10503 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
10504             Andrew Pinski  <pinskia@physics.uc.edu>
10505
10506         PR target/14931
10507         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
10508         style.
10509
10510 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
10511
10512         * tree.h (build_int_cst): New.
10513         (build_int_2): Remove.
10514         * tree.c (build_int_2): Remove.
10515         (build_int_cst): New.
10516         (make_vector_type, build_common_tree_nodes,
10517         build_common_tree_nodes_2): Use build_int_cst.
10518         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
10519         expand_builtin_strpbrk, expand_builtin_fputs,
10520         build_string_literal, expand_builtin_printf,
10521         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
10522         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
10523         fold_builtin_isdigit, simplify_builtin_strstr,
10524         simplify_builtin_strpbrk, fold_builtin_fputs,
10525         simplify_builtin_sprintf): Use build_int_cst.
10526         * c-common.c (start_fname_decls, fix_string_type,
10527         c_common_nodes_and_builtins, c_init_attributes,
10528         shorten_compare): Likewise.
10529         * c-decl.c (complete_array_type,
10530         check_bitfield_type_and_width): Likewise.
10531         * c-lex.c (interpret_integer, lex_charconst): Likewise.
10532         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
10533         * c-pretty-print.c (pp_c_integer_constant): Likewise.
10534         * c-typeck.c (really_start_incremental_init, push_init_level,
10535         set_nonincremental_init_from_string): Likewise.
10536         * calls.c (load_register_parameters): Likewise.
10537         * convert.c (convert_to_pointer): Likewise.
10538         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
10539         build_fn_info_type, build_ctr_info_value, build_gcov_info):
10540         Likewise.
10541         * except.c (init_eh, assign_filter_values, assign_filter_values):
10542         Likewise.
10543         * expmed.c (store_fixed_bit_field, extract_bit_field,
10544         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
10545         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
10546         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
10547         * expr.c (convert_move, emit_group_load, emit_group_store,
10548         expand_assignment, store_constructor, store_field,
10549         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
10550         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
10551         invert_truthvalue, optimize_bit_field_compare,
10552         decode_field_reference, all_ones_mask_p, constant_boolean_node,
10553         fold_div_compare, fold, fold_read_from_constant_string,
10554         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
10555         * function.c (assign_parm_setup_block): Likewise.
10556         * stmt.c (shift_return_value, expand_end_case_type,
10557         estimate_case_costs): Likewise.
10558         * stor-layout.c (layout_type, initialize_sizetypes,
10559         set_min_and_max_values_for_integral_type): Likewise.
10560         * tree-chrec.c (chrec_fold_multiply_poly_poly,
10561         reset_evolution_in_loop): Likewise.
10562         * tree-chrec.h (build_polynomial_chrec): Likewise.
10563         * tree-complex.c (build_replicated_const): Likewise.
10564         * tree-eh.c (honor_protect_cleanup_actions,
10565         lower_try_finally_onedest, lower_try_finally_copy,
10566         lower_try_finally_switch): Likewise.
10567         * tree-mudflap.c (mf_build_string, mx_register_decls,
10568         mudflap_register_call, mudflap_enqueue_constant): Likewise.
10569         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
10570         * tree-pretty-print.c (dump_generic_node): Likewise.
10571         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
10572         Likewise.
10573         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
10574         * tree-ssa-loop-niter.c (number_of_iterations_cond,
10575         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
10576         Likewise.
10577
10578         * config/alpha/alpha.c (alpha_initialize_trampoline,
10579         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
10580         * config/arm/arm.c (arm_get_cookie_size): Likewise.
10581         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
10582         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
10583         * config/i860/i860.c (i860_va_start): Likewise.
10584         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
10585         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
10586         mips_gimplify_va_arg_expr): Likewise.
10587         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10588         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
10589         add_compiler_branch_island): Likewise.
10590         * config/s390/s390.c (s390_va_start): Likewise.
10591         * config/sh/sh.c (sh_va_start): Likewise.
10592         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
10593         Likewise.
10594         * config/xtensa/xtensa.c (xtensa_va_start,
10595         xtensa_gimplify_va_arg_expr): Likewise.
10596
10597         * objc/objc-act.c (build_objc_string_object,
10598         build_objc_symtab_template, init_def_list, init_objc_symtab,
10599         init_module_descriptor, generate_static_references,
10600         build_selector_translation_table, get_proto_encoding,
10601         build_typed_selector_reference, build_selector_reference,
10602         build_next_objc_exception_stuff,
10603         build_method_prototype_list_template, generate_descriptor_table,
10604         generate_protocols, build_protocol_initializer,
10605         build_ivar_list_template, build_method_list_template,
10606         build_ivar_list_initializer, generate_ivars_list,
10607         generate_dispatch_table, generate_protocol_list,
10608         build_category_initializer, build_shared_structure_initializer,
10609         generate_shared_structures, handle_impent,
10610         generate_objc_image_info): Use build_int_cst.
10611
10612 2004-08-15  Ben Elliston  <bje@au.ibm.com>
10613
10614         * vec.h: Comment improvements.
10615
10616 2004-08-14  Roger Sayle  <roger@eyesopen.com>
10617
10618         * c-common.c (shorten_compare, pointer_int_sum,
10619         c_common_truthvalue_conversion, boolean_increment): Replace calls
10620         to build with calls to buildN.
10621         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
10622         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
10623         gimplify_switch_stmt): Likewise.
10624         * c-typeck.c (default_function_array_conversion,
10625         build_component_ref, build_array_ref, build_function_call,
10626         pointer_diff, build_unary_op, build_conditional_expr,
10627         build_compound_expr, build_modify_expr, c_finish_goto_label,
10628         c_finish_goto_ptr, c_finish_return, c_finish_loop,
10629         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
10630         build_binary_op): Likewise.
10631
10632 2004-08-15  Steven Bosscher  <stevenb@suse.de>
10633
10634         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
10635
10636 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10637
10638         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
10639         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
10640         * fixinc/fixincl.x: Rebuilt.
10641
10642 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
10643
10644         * config/mips/mips-protos.h (mips_symbolic_constant_p)
10645         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
10646         (mips_small_data_pattern_p): Declare.
10647         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
10648         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
10649         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
10650         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
10651         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
10652         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
10653         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
10654         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
10655         (pc_or_label_operand, call_insn_operand, move_operand)
10656         (consttable_operand, symbolic_operand, general_symbolic_operand)
10657         (global_got_operand, local_got_operand, stack_operand)
10658         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
10659         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
10660         (mips_small_data_pattern_p): Replace previous small_data_pattern
10661         predicate.  Turn into a bool () (rtx) function.
10662         * config/mips/predicates.md: New file.
10663         * config/mips/mips.md: Include it.  Use the target-independent
10664         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
10665         trap_comparison_operator and equality_op to equality_operator.
10666         Replace uses of small_int with the equivalent const_arith_operand.
10667         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
10668         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
10669         to fcc_reload_operand.
10670         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
10671
10672 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10673
10674         PR libstdc++/17005 partial fix.
10675         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
10676         except when generating ANSI/C89 code.
10677
10678 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
10679
10680         * c-common.c (shorten_compare): Use force_fit_type directly.
10681
10682 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
10683             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
10684             Dave Korn  <dk@artimi.com>
10685
10686         * doc/install.texi (Building): Avoid duplicate reference to GNU
10687         make requirement.
10688         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
10689
10690 2004-08-14  Richard Henderson  <rth@redhat.com>
10691
10692         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
10693         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
10694
10695 2004-08-13  Richard Henderson  <rth@redhat.com>
10696
10697         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
10698         for constant_call_address_operand.
10699         (call_value_pop_1, call_value_1): Likewise.
10700         (sibcall_value_1, call_value_1_rex64): Likewise.
10701
10702 2004-08-13  James E Wilson  <wilson@specifixinc.com>
10703
10704         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
10705         Correct mode from SFmode to DFmode.
10706
10707 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
10708
10709         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
10710         __cstring_object and __image_info sections with the no_dead_strip
10711         attribute.
10712
10713 2004-08-13  Roger Sayle  <roger@eyesopen.com>
10714             David Billinghurst  <David.Billinghurst@riotinto.com>
10715
10716         PR libgfortran/15930
10717         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
10718         * fixinc/fixincl.x: Regenerate.
10719         * fixinc/tests/base/internal/math_core.h: New file.
10720
10721 2004-08-13  Richard Henderson  <rth@redhat.com>
10722
10723         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
10724         (dbxout_function_end): Remove ifdefs for it.
10725         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
10726
10727 2004-08-13  Richard Henderson  <rth@redhat.com>
10728
10729         * Makefile.in (insn-preds.o): Depend on TREE_H.
10730         * genpreds.c (write_insn_preds_c): Include tree.h.
10731         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
10732         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
10733         const48_operand, and_operand, or_operand, mode_width_operand,
10734         mode_mask_operand, mul8_operand, const0_operand,
10735         hard_fp_register_operand, hard_int_register_operand,
10736         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
10737         samegp_function_operand, direct_call_operand, small_symbolic_operand,
10738         global_symbolic_operand, call_operand, symbolic_operand,
10739         dtp16_symbolic_operand, dtp32_symbolic_operand,
10740         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
10741         gottp_symbolic_operand, alpha_comparison_operator,
10742         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
10743         signed_comparison_operator, alpha_fp_comparison_operator,
10744         divmod_operator, fix_operator, aligned_memory_operand,
10745         unaligned_memory_operand, reg_or_unaligned_mem_operand,
10746         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
10747         reg_no_subreg_operand, addition_operation): Move to predicates.md.
10748         (reg_or_const_int_operand): Remove.  Replace all users with
10749         reg_or_cint_operand.
10750         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
10751         (resolve_reload_operand): Split out of aligned_memory_operand.
10752         * config/alpha/alpha-protos.h: Update for exports.
10753         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
10754         * config/alpha/alpha.md: Include predicates.md.
10755         * config/alpha/predicates.md: New file.
10756
10757 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
10758
10759         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
10760         fields with a pointer to the instruction definition.
10761         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
10762         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
10763         (write_attr_case, write_const_num_delay_slots): Update accordingly.
10764         (write_attr_case, write_const_num_delay_slots): Write the name of
10765         an insn next to its case statement.
10766         * genoutput.c (data): Add a filename field.
10767         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
10768         (output_insn_data): Print the location of each insn definition.
10769         * genrecog.c (write_action): Print the name of an insn above
10770         the statement that returns its code.
10771
10772 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
10773
10774         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
10775         * config/libgloss.h: Likewise.
10776         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
10777         * c4x/c4x-modes.def: Likewise.
10778         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
10779         (c4x_rptb_nop_p): Likewise.
10780         (c4x_rptb_valid_p): Likewise.
10781         (c4x_rptb_insert): Likewise.
10782         (c4x_address_conflict): Likewise.
10783         * config/c4x/c4x.md: Likewise.
10784         * config/frv/frv.md: Likewise.
10785         * config/i386/athlon.md: Likewise.
10786         * config/i386/i386.md: Likewise.
10787         * config/i386/predicates.md: Likewise.
10788         * config/ia64/ia64.c: Likewise.
10789         * config/ia64/itanium1.md: Likewise.
10790         * config/ia64/itanium2.md: Likewise.
10791         * config/iq2000/iq2000.md: Likewise.
10792         * config/mcore/mcore.c: Likewise.
10793         * config/mips/mips.c: Likewise.
10794         * config/mips/r3900.h: Likewise.
10795         * config/mips/sb1.md: Likewise.
10796         * config/pa/milli64.S: Likewise.
10797         * config/pa/pa.c: Likewise.
10798         * config/pa/pa.h: Likewise.
10799         * config/rs6000/8540.md: Likewise.
10800
10801 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
10802
10803         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
10804
10805 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
10806
10807         * sh.md (cbranch define_delay) Use cond_delay_slot for
10808         non-anulled condition too.
10809
10810 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
10811
10812         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
10813         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
10814         any_parallel_operand, lmw_operation, stmw_operation,
10815         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
10816         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
10817         any_parallel_operand.
10818         (return_and_restore_fpregs_{si,di}): Same.
10819
10820 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
10821
10822         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
10823         if pred->singleton != PARALLEL, issue a warning and pretend it was.
10824         Also issue a warning for any predicate we don't know about.
10825
10826 2004-08-12  Richard Henderson  <rth@redhat.com>
10827
10828         * config/i386/i386.c (internal_label_prefix): Export.
10829         (internal_label_prefix_len, struct ix86_address,
10830         ix86_decompose_address, maybe_get_pool_constant,
10831         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
10832         memory_address_length): Export.
10833         (any_fp_register_operand, fp_register_operand,
10834         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
10835         x86_64_general_operand, x86_64_szext_general_operand,
10836         x86_64_nonmemory_operand, x86_64_movabs_operand,
10837         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
10838         x86_64_zext_immediate_operand, const_int_1_31_operand,
10839         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
10840         tls_symbolic_operand, global_dynamic_symbolic_operand,
10841         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
10842         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
10843         constant_call_address_operand, const0_operand, const1_operand,
10844         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
10845         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
10846         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
10847         general_no_elim_operand, nonmemory_no_elim_operand,
10848         index_register_operand, q_regs_operand, flags_reg_operand,
10849         non_q_regs_operand, zero_extended_scalar_load_operand,
10850         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
10851         ix86_comparison_operator, ix86_carry_flag_operator,
10852         fcmov_comparison_operator, promotable_binary_operator,
10853         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
10854         mult_operator, div_operator, arith_or_logical_operator,
10855         memory_displacement_operand, cmpsi_operand, long_memory_operand,
10856         aligned_operand): Move to predicates.md as define_predicates.
10857         (tls_symbolic_operand_1): Remove.
10858         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
10859         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
10860         (legitimize_address): Merge tls_symbolic_operand contents.
10861         (ix86_expand_move): Likewise.
10862         * config/i386/i386-protos.h: Update for exports.
10863         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
10864         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
10865         * config/i386/i386.md: Include predicates.md.
10866         * config/i386/predicates.md: New file.
10867
10868 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
10869
10870         PR c++/16924
10871         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
10872         SYMBOL_REF_DECL.
10873         (i386_pe_mark_dllimport): Likewise.
10874         (i386_pe_encode_section_info): Likewise, when overriding
10875         dllimport attribute.
10876
10877 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
10878
10879         * configure.ac: When testing for flex, nm, ar, and bison, check
10880         that they will actually be built.
10881         * configure: Regenerate.
10882
10883 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
10884
10885         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
10886         (MOVE_MAX_PIECES): Define.
10887
10888 2004-08-12  Devang patel  <dpatel@apple.com>
10889
10890         * dbxout.c (dbxout_begin_prologue): New function.
10891         (dbx_debug_hooks): Use new begin prologue hook.
10892         (dbxout_function_end): Emit N_ENSYM.
10893         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
10894
10895 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
10896
10897         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
10898         argument is float*.
10899
10900         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
10901         for vec_dss.
10902
10903         * doc/extend.texi (AltiVec builtins): Fix description for recent
10904         changes.  Update operation list to match current support.
10905
10906 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
10907
10908         * config/s390/s390.c (struct s390_frame_layout): New struct as element
10909         of struct machine_function.
10910         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
10911         changed all uses.
10912         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
10913         changed all uses.
10914         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
10915         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
10916         (s390_frame_area, s390_register_info): New functions.
10917         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
10918         for base register.
10919         (s390_return_addr_rtx, s390_return_address_offset)
10920         (s390_va_start, s390_gimplify_va_arg)
10921         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
10922         layouts.
10923         (s390_frame_info): Functionality partly moved to s390_register_info.
10924         Made adaptions for new stack layout.
10925         (save_gprs, restore_gprs): Changed meaning of second parameter and
10926         adapted all callers.
10927
10928         * config/s390/s390.h (s390_backchain_string): New global variable.
10929         (MASK_BACKCHAIN): Removed definition.
10930         (TARGET_BACKCHAIN): Changed check.
10931         (TARGET_KERNEL_BACKCHAIN): New macro.
10932         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
10933         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
10934         "kernel-backchain".
10935         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
10936
10937         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
10938         as condition.  Adjusted for new stack layout.
10939
10940         * doc/invoke.texi: Added documentation for new option
10941         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
10942         "-mno-backchain".
10943
10944 2004-08-12  Paul Brook  <paul@codesourcery.com>
10945
10946         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
10947         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
10948
10949 2004-08-12  David Daney  <ddaney@avtrex.com>
10950
10951         * java/gcj.texi:  Add subsection on signal usage.
10952
10953 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
10954
10955         * expr.c (move_by_pieces): Set alignment for move to minimum of
10956         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
10957         alignment, but not less than the original alignment.
10958         (move_by_pieces_ninsns): Same.
10959         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
10960         (store_by_pieces_1): Same.
10961
10962 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
10963
10964         PR tree-optimization/16867
10965         * tree.c (is_global_var): New function.
10966         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
10967         Call is_global_var.
10968         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
10969         Update all users.
10970         (is_global_var): Declare.
10971         * tree-dfa.c (dump_variable): Display global and addressable
10972         attributes.
10973         (add_referenced_var): Clarify documentation when marking
10974         variables call-clobbered.
10975         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
10976         instead of needs_to_live_in_memory.
10977         (mark_call_clobbered): If the variable is a tag, mark it
10978         DECL_EXTERNAL.
10979         * tree-gimple.c (is_gimple_reg): Don't check for
10980         TREE_ADDRESSABLE.
10981         (is_gimple_non_addressable): Likewise.
10982         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
10983         needs to be marked call-clobbered.
10984         (setup_pointers_and_addressables): Call is_global_var instead
10985         of needs_to_live_in_memory.
10986         * tree-ssa-dce.c (need_to_preserve_store): Remove.
10987         Update all users with is_global_var.
10988         (mark_stmt_if_obviously_necessary): Fix processing of aliased
10989         stores.  Don't check the virtual definitions.  Rather, check
10990         whether the store is going into global memory.
10991         (find_obviously_necessary_stmts): Get the symbol from the PHI
10992         result.
10993         * tree-ssa-operands.c (get_call_expr_operands): Do not add
10994         clobbering may-defs if the call does not have side effects.
10995
10996 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
10997
10998         PR c++/16276
10999         * output.h (default_function_rodata_section,
11000         default_no_function_rodata_section): New prototypes.
11001         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
11002         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
11003         (TARGET_ASM_OUT): Add it.
11004         * varasm.c (default_function_rodata_section,
11005         default_no_function_rodata_section): New functions.
11006         * final.c (final_scan_insn): Call
11007         targetm.asm_out.function_rodata_section instead of
11008         readonly_data_section.
11009         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
11010         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
11011         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
11012         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
11013         Likewise.
11014         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
11015         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
11016         Likewise.
11017         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
11018         Likewise.
11019         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
11020         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
11021         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
11022
11023 2004-08-12  Paul Brook  <paul@codesourcery.com>
11024
11025         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
11026         frame info.
11027         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
11028         DWARF2_UNWIND_INFO.
11029
11030 2004-08-12  Ben Elliston  <bje@au.ibm.com>
11031
11032         PR target/16286
11033         * config/rs6000/altivec.h: Change vector to __vector throughout.
11034         (Except for the `vector' macro itself).
11035
11036 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
11037
11038         * genpreds.c: Add capability to generate predicate bodies as
11039         well as function prototypes.  Write function prototypes for
11040         the generic predicates too.
11041         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
11042         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
11043         (write_match_code, write_predicate_expr, write_one_predicate_function)
11044         (parse_option): New functions.
11045         (output_predicate_decls): Delete.
11046         (main): Read the machine description, process DEFINE_PREDICATE or
11047         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
11048         as appropriate.
11049
11050         * genrecog.c (struct decision_test): Replace index with
11051         struct pred_data pointer.
11052         (next_index): Remove, unused.
11053         (pred_table, preds, special_mode_pred_table): Delete.
11054         (compute_predicate_codes, process_define_predicate): New functions.
11055         (validate_pattern, add_to_sequence, write_switch): Update for
11056         new data structures.
11057         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
11058         Check both error_count and have_error.
11059
11060         * gensupport.c (in_fname, first_predicate): New globals.
11061         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
11062         (predicate_table, last_predicate, old_pred_table)
11063         (old_special_pred_table): New statics.
11064         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
11065         (add_predicate, init_predicate_table): New functions.
11066         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
11067         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
11068         it or max_include_len.  Call init_predicate_table.
11069         (read_rtx): Run the predicate queue after the attribute queue
11070         but before all the others.
11071         * gensupport.h (in_fname, struct pred_data, first_predicate)
11072         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
11073         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
11074         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
11075         * dummy-conditions.c: Don't include bconfig.h, system.h,
11076         coretypes.h, tm.h, or system.h.  Do include stddef.h.
11077         Duplicate declaration of struct c_test from gensupport.h.
11078
11079         * Makefile.in (OBJS-common): Add insn-preds.o.
11080         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
11081         (insn-preds.c, insn-preds.o): New rules.
11082         (s-preds): Also generate insn-preds.c.
11083         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
11084         Update dependencies.
11085         (print-rtl.o, print-rtl1.o): Correct dependencies.
11086
11087         * recog.h: Delete prototypes of predicate functions.
11088
11089         * doc/md.texi (Predicates): New section with complete
11090         documentation of operand/operator predicates.  Remove some
11091         incomplete documentation of predicates from other places.
11092         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
11093         PREDICATE_CODES; indicate that both are deprecated in favor
11094         of define_predicate/define_special_predicate.
11095
11096         * config/ia64/ia64.c: All predicate function definitions moved
11097         to ia64.md, except
11098         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
11099         (ia64_expand_load_address, ia64_expand_move):
11100         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
11101
11102         * config/ia64/ia64.md: All predicates now defined here.
11103         (symbolic_operand): Is now a special predicate.
11104
11105         * config/ia64/ia64.h: Declare ia64_section_threshold.
11106         (PREDICATE_CODES): Delete.
11107
11108 2004-08-12  Richard Henderson  <rth@redhat.com>
11109
11110         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
11111         * c-semantics.c (add_stmt): Set it.
11112         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
11113         before instantiating a variable sized type.
11114
11115 2004-08-12  Richard Henderson  <rth@redhat.com>
11116
11117         * stor-layout.c (round_up, round_down): Move ...
11118         * fold-const.c (round_up, round_down): ... here.  Use
11119         multiple_of_p to avoid any arithmetic at all.
11120
11121 2004-08-12  Richard Henderson  <rth@redhat.com>
11122
11123         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
11124         (gimplify_init_ctor_preeval_1): New.
11125         (gimplify_init_ctor_preeval): New.
11126         (gimplify_init_ctor_eval): New.
11127         (gimplify_init_constructor): Use them.  Always gimplify the LHS
11128         object first.
11129
11130 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
11131
11132         (This patch is part of merge of objc-improvements-branch
11133         into mainline.)
11134
11135         * doc/frontends.texi: Mention Objective-C++ in addition to
11136         Objective-C.
11137         * doc/install.texi: Add 'obj-c++' to list of configurable
11138         languages.
11139         * doc/invoke.texi: Rename Objective-C option headings to
11140         indicate they also apply to Objective-C++.  List file
11141         extensions for Objective-C++ sources.  Mention that
11142         ObjC and ObjC++ compilations may also use C and C++ options,
11143         respectively.  Point users to doc/standards.texi for
11144         further info on ObjC and ObjC++.
11145         * doc/sourcebuild.texi: Mention the objcp/ directory and
11146         the Objective-C++ sources it contains.
11147         * doc/standards.texi: Update link to Apple ObjC site;
11148         add link to gcc readings.html WWW doc.
11149
11150 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
11151
11152         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
11153         and 2004-07-14 changes.
11154
11155 2004-08-12  Paul Brook  <paul@codesourcery.com>
11156
11157         * doc/invoke.texi: Fix typo.
11158
11159 2004-08-11 Devang Patel  <dpatel@apple.com>
11160
11161         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
11162         and -no_dead_strip_inits_and_terms.
11163         (LINK_SPEC): Same.
11164         * doc/invoke.texi (Darwin Options): Document -dead_strip and
11165         -no_dead_strip_inits_and_terms.
11166
11167 2004-08-11  Paul Brook  <paul@codesourcery.com>
11168
11169         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
11170         (arm_load_pic_register): ... to this.
11171         * config/arm/arm.c (arm_finalize_pic): Rename ...
11172         (arm_load_pic_register): ... to this.  Always output insns at the
11173         current location.  Load via low reg in thumb mode.
11174         (arm_expand_prologue): Call arm_load_pic_register.
11175         (thumb_expand_prologue): Ditto.
11176         * config/arm/arm.h (FINALIZE_PIC): Remove.
11177         * config/arm/arm.md (builtin_setjmp_receiver): Call
11178         arm_load_pic_register.
11179
11180 2004-08-11  Paul Brook  <paul@codesourcery.com>
11181
11182         * arm.c (thumb_force_lr_save): Add prototype.
11183         (thumb_compute_save_reg_mask): New function.
11184         (thumb_find_work_register): New function.
11185         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
11186         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
11187         Don't clobber r3 when removing pretend args.
11188         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
11189         (thumb_output_function_prologue): Use new functions.
11190         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
11191         * arm.h (THUMB_REG_PUSHED_P): Remove.
11192
11193 2004-08-11  James E Wilson  <wilson@specifixinc.com>
11194
11195         PR rtl-optimization/16490
11196         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
11197         global_live_at_end for new basic block if already set for other blocks.
11198
11199 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
11200
11201         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
11202
11203         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
11204         (mfcr rlwinm rlwinm patterns): Set length to 12.
11205
11206 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
11207
11208         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
11209         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
11210         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
11211         (start_ssa_stmt_operands): Delete.
11212         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
11213         struct stmt_operands_d.
11214         (build_ssa_operands): New extern entry point.
11215         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
11216         building code, replace with create_ssa_artficial_load_stmt().
11217         * tree-ssa-operands.c (struct voperands_d): Delete.
11218         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
11219         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
11220         (free_uses, free_defs, free_vuses, free_v_may_defs,
11221         free_v_must_defs): Remove dealloc parameter.
11222         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
11223         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
11224         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
11225         vector comparisons, ssa_name reuse, and allocations here.
11226         (verify_start_operands): Delete.
11227         (finalize_ssa_stmt_operands): Set new operands by calling finalize
11228         routines.
11229         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
11230         (append_def, append_usei): Simplify to simple accumulation.
11231         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
11232         duplicates and simple accumulation.
11233         (free_ssa_operands): Free vectors in a stmt_operand structure.
11234         (build_ssa_operands): New. Create a new stmt_operand structure from
11235         a stmt and an old set of stmt_operands.
11236         (get_stmt_operands): Simplify and call build_ssa_operands.
11237         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
11238         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
11239         add_call_read_ops): Don't pass prev_vops around anymore.
11240         (note_addressable): Return if no stmt annotation.
11241         (copy_virtual_operands): Access v_may_def operands through a struct.
11242         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
11243         hash tables without treating the stmt as a real stmt.
11244         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
11245         v_may_def def and use through a struct instead of 2 array elements.
11246         (struct v_may_def_optype_d): Use v_may_def_operand_type.
11247         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
11248
11249 2004-08-11  Nick Clifton  <nickc@redhat.com>
11250
11251         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
11252         this funciton's behaviour.  Return true when the current function
11253         has a section attribute and -mlong-calls is in effect.
11254         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
11255         short-call marker when -mlong-calls is in effect and the function
11256         has a section attribute.
11257
11258 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
11259
11260         * stmt.c (expand_return): If asked to return the RESULT_DECL,
11261         just call expand_value_return on result_rtl.
11262
11263 2004-08-10  Richard Henderson  <rth@redhat.com>
11264
11265         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
11266         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
11267         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
11268         (add_location_or_const_value_attribute): ... not here.  Use
11269         loc_descriptor_from_tree if possible.
11270         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
11271         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
11272         values specially.
11273         (loc_descriptor_from_tree): New.  Update callers.
11274         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
11275         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
11276         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
11277         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
11278         and BUILT_IN_STACK_RESTORE.
11279         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
11280         * stmt.c (expand_stack_alloc): Remove.
11281         * tree-mudflap.c (mx_register_decls): Don't look for
11282         BUILT_IN_STACK_ALLOC.
11283         * tree-nested.c (convert_local_reference): Likewise.
11284         * tree.h (DECL_VALUE_EXPR): New.
11285
11286 2004-08-10  Richard Henderson  <rth@redhat.com>
11287
11288         * stor-layout.c (round_up): Check for 0/1 before dividing.
11289         (round_down): Likewise.
11290
11291         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
11292
11293 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
11294
11295         * config.gcc (arm*-*-eabi*): New target.
11296         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
11297         (TARGET_LIB_INT_CMP_BIASED): Likewise.
11298         * expmed.c (expand_divmod): Try a two-valued divmod function as a
11299         last resort.
11300         * gthr.h: Remove bogus tokens at end of #pragma.
11301         * optabs.c (expand_twoval_binop_libfunc): New function.
11302         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
11303         (prepare_float_lib_cmp): Try reversing the condition.
11304         (debug_optab_libfuncs): New function.
11305         * optabs.h (expand_twoval_binop_libfunc): Declare.
11306         * config/arm/arm.c (arm_init_libfuncs): New function.
11307         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
11308         (TARGET_INIT_LIBFUNCS): Define it.
11309         * config/arm/arm.h (TARGET_BPABI): New macro.
11310         * config/arm/arm-protos.h
11311         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
11312         * config/arm/bpabi.S: New file.
11313         * config/arm/bpabi.c: Likewise.
11314         * config/arm/bpabi.h: Likewise.
11315         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
11316         (__aeabi_drsub): Likewise.
11317         (__aeabi_dsub): Likewise.
11318         (__aeabi_dadd): Likewise.
11319         (__aeabi_ui2d): Likewise.
11320         (__aeabi_i2d): Likewise.
11321         (__aeabi_f2d): Likewise.
11322         (__aeabi_dmul): Likewise.
11323         (__aeabi_ddiv): Likewise.
11324         (__aeabi_cdrcmple): Likewise.
11325         (__aeabi_cdcmpeq): Likewise.
11326         (__aeabi_cdcmple): Likewise.
11327         (__aeabi_dcmpeq): Likewise.
11328         (__aeabi_dcmplt): Likewise.
11329         (__aeabi_dcmple): Likewise.
11330         (__aeabi_dcmpge): Likewise.
11331         (__aeabi_dcmpgt): Likewise.
11332         (__aeabi_dcmpun): Likewise.
11333         (__aeabi_d2iz): Likewise.
11334         (__aeabi_d2uiz): Likewise.
11335         (__aeabi_d2f): Likewise.
11336         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
11337         (__aeabi_frsub): Likewise.
11338         (__aeabi_fsub): Likewise.
11339         (__aeabi_fadd): Likewise.
11340         (__aeabi_ui2f): Likewise.
11341         (__aeabi_i2f): Likewise.
11342         (__aeabi_fmul): Likewise.
11343         (__aeabi_fdiv): Likewise.
11344         (__aeabi_cfrcmple): Likewise.
11345         (__aeabi_cfcmpeq): Likewise.
11346         (__aeabi_cfcmple): Likewise.
11347         (__aeabi_fcmpeq): Likewise.
11348         (__aeabi_fcmplt): Likewise.
11349         (__aeabi_fcmple): Likewise.
11350         (__aeabi_fcmpge): Likewise.
11351         (__aeabi_fcmpgt): Likewise.
11352         (__aeabi_fcmpun): Likewise.
11353         (__aeabi_f2iz): Likewise.
11354         (__aeabi_f2uiz): Likewise.
11355         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
11356         (__aeabi_uidivmod): New function or alias.
11357         (__aeabi_idivmod): Likewise.
11358         (__aeabi_idiv0): Likewise.
11359         (__aeabi_ldiv0): Likewise.
11360         (__aeabi_llsr): Likewise.
11361         (__aeabi_lasr): Likewise.
11362         (__aeabi_llsl): Likewise.
11363         (bpabi.S): Include it.
11364         * config/arm/libgcc-bpabi.ver: New file.
11365         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
11366         (LINK_SPEC): Remove.
11367         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
11368         __aeabi_ulcmp.
11369         * config/arm/t-bpabi: New file.
11370         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
11371         (TARGET_LIB_INT_CMP_BIASED): Likewise.
11372
11373 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
11374
11375         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
11376         * config/rs6000/rs6000.md (clrmemsi): New pattern.
11377         * config/rs6000/rs6000.c (expand_block_clear): New function.
11378         (expand_block_move): Convert alignment to bits.  Use SImode and
11379         HImode for unaligned addresses if not STRICT_ALIGNMENT.
11380
11381 2004-08-10  Caroline Tice  <ctice@apple.com>
11382
11383         * varasm.c (unlikely_section_label): New global variable.
11384         (unlikely_text_section_name): New global variable.
11385         (text_section):  Remove alignment statement.
11386         (unlikely_text_section): Remove alignment statement; use
11387         unlikely_section_label rather than hard-coded string.
11388         (assemble_start_function): Initialize unlikely_section_label and
11389         unlikely_text_section_name;  make sure cold section is properly
11390         aligned at start of function; output unlikely_section_label if
11391         appropriate.
11392
11393 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
11394
11395         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
11396         * config/s390/s390.c (s390_canonicalize_comparison): New function.
11397         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
11398         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
11399         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
11400         ("*tmqi_mem"): Remove SUBREG from pattern.
11401         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
11402         ("*andsi3_cconly"): Likewise.
11403
11404 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
11405
11406         PR target/16909
11407         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
11408
11409 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
11410
11411         * doc/sourcebuild.texi (compat testing): Document available test
11412         framework commands.  Use the preferred spelling of DejaGnu.
11413
11414 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
11415
11416         * lambda.h: Add matrix type, and prototypes for remainder of
11417         matrix and vector functions.
11418         (lambda_vector_mult_const): New function.
11419         (lambda_vector_negate): Ditto.
11420         (lambda_vector_add): Ditto.
11421         (lambda_vector_add_mc): Ditto.
11422         (lambda_vector_copy): Ditto.
11423         (lambda_vector_zerop): Ditto.
11424         (lambda_vector_equal): Ditto.
11425         (lambda_vector_min_nz): Ditto.
11426         (lambda_vector_first_nz): Ditto.
11427         (lambda_vector_matrix_mult): Ditto.
11428         * lambda-mat.c: New file.
11429         * Makefile.in (lambda-mat.o): New.
11430
11431 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
11432
11433         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
11434         after linking stmt into the program.
11435         (bsi_remove): Don't call modify_stmt.
11436         * tree-complex.c (update_complex_assignment,
11437         expand_complex_comparison): Call modify_stmt after changing the stmt.
11438         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
11439         removing the stmt.
11440         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
11441         the stmt, and only if needed.
11442         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
11443         expression.
11444         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
11445         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
11446         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
11447         (eliminate_redundant_computations): Don't pass an annotation. Call
11448         modify_stmt rather than setting the annotation directly.
11449         (record_equivalences_from_stmt): Remove unused local 'j'.
11450         (cprop_operand): Take a stmt rather than an annotation as a parameter.
11451         Call modify_stmt.
11452         (cprop_into_stmt): Pass stmt rather than annotation.
11453         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
11454         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
11455         modify_stmt.
11456         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
11457
11458 2004-08-10  Jason Merrill  <jason@redhat.com>
11459
11460         PR middle-end/16948
11461         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
11462         the RESULT_DECL.
11463
11464 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
11465
11466         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
11467         hash function.
11468
11469 2004-08-10  Roger Sayle  <roger@eyesopen.com>
11470
11471         * config/mips/mips.md: New reciprocal square root patterns that
11472         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
11473
11474 2004-08-10  Paul Brook  <paul@codesourcery.com>
11475
11476         * config/arm/arm-protos.h (arm_set_return_address,
11477         thumb_set_return_address): Add prototypes.
11478         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
11479         * config/arm/arm.c (arm_compute_func_type,
11480         use_return_insn, arm_compute_save_reg0_reg12_mask,
11481         arm_compute_save_reg_mask, arm_output_function_prologue,
11482         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
11483         current_function_calls_eh_return.
11484         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
11485         old eh code.
11486         (arm_set_return_address, thumb_set_return_address): New functions.
11487         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
11488         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
11489         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
11490         (epilogue): Use the stackadj register.
11491         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
11492
11493 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
11494
11495         PR target/3144
11496         * expr.c (move_by_pieces_ninsns): Add max_size argument.
11497         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
11498         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
11499         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
11500         but using MOVE_RATIO.
11501         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
11502         (can_store_by_pieces): Change max_size type to unsigned int.
11503         (store_by_pieces_1): Likewise.  Pass max_size to
11504         move_by_pieces_ninsns.
11505         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
11506         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
11507         to move_by_pieces_ninsns.
11508         (STORE_BY_PIECES_P): Define.
11509         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
11510         to move_by_pieces_ninsns.
11511         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
11512
11513         * config/i386/i386.h (CLEAR_RATIO): Define.
11514
11515 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11516
11517         * expr.c (expand_expr_real_1): Add back code that was not dead.
11518
11519 2004-08-09  Andrew Pinski  <apinski@apple.com>
11520
11521         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
11522         which is found to be compatible before returning the aliasing set.
11523
11524 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
11525
11526         * ggc-zone.c (struct alloc_zone): Add statistics counters.
11527         (always_collect): New flag.
11528         (ggc_alloc_zone_1): Update statistics support.  Don't include
11529         overhead in allocated counter.
11530         (sweep_pages): Update allocated counter for large pages.  Don'y
11531         include overhead.
11532         (ggc_collect_1): Always collect.
11533         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
11534         whether to collect.
11535         (SCALE, LABEL): New macros.
11536         (ggc_print_statistics): Add statistics support.
11537
11538 2004-08-09  Roger Sayle  <roger@eyesopen.com>
11539
11540         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
11541         (init_expmed): Fix potential overrun problem with "all.reg".
11542         (expand_sdiv2_pow2): Add an alternate implementation for signed
11543         division, if the target provides a suitable conditional move insn.
11544
11545 2004-08-09  Paul Brook  <paul@codesourcery.com>
11546         Richard Henderson  <rth@redhat.com>
11547
11548         * unwind-dw2.c (uw_install_context_1): Update target saved stack
11549         pointer.
11550
11551 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
11552
11553         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
11554         Check DATA limit only if there's no AS limit.  Ignore insanely
11555         low DATA limits.
11556         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
11557         but take care that the AS limit isn't overrun.
11558         * doc/invoke.texi: Update documentation of min-heapsize parameter.
11559
11560 2004-08-09  Jeff Law  <law@redhat.com>
11561
11562         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
11563         (tree-ssa-threadupdate.o): Add dependencies.
11564         * tree-ssa-threadupdate.c: New file.
11565         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
11566         (rewrite_vars_out_of_ssa): Remove prototype.
11567         (cleanup_tree_cfg): Returns a bool.
11568         * tree.h (thread_through_all_blocks): Prototype.
11569         * tree-outof-ssa.c  (SSANORM_*): Move into here.
11570         (remove_ssa_form): Now static.
11571         (rewrite_vars_out_of_ssa): Kill.
11572         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
11573         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
11574         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
11575         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
11576         anything was changed.
11577         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
11578         from the PHI's annotation rather than the edge associated with
11579         the new argument.
11580         * tree-ssa-dom.c (redirection_edges): Kill.
11581         (redirect_edges_and_update_ssa_graph): Kill.
11582         (tree_ssa_dominator_optimize): Do not reset forwardable flag
11583         for blocks anymore.  Do not initialize redirection_edges.
11584         Call thread_through_all_blocks.  Simplify code for cleanup
11585         of the CFG and iterating.  No longer call cleanup_tree_cfg
11586         outside the iteration loop.
11587         (thread_across_edge): No longer mess with forwardable blocks.
11588
11589 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
11590
11591         * explow.c (memory_address): Use memory_address_p.
11592         * recog.c (general_operand): Likewise.
11593         * regrename.c: No need to define REG_OK_STRICT.
11594
11595 2004-08-09  Steven Bosscher  <stevenb@suse.de>
11596
11597         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
11598         New timers.
11599         * gcse.c: Include timevar.h.
11600         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
11601         and global_copy_prop_count.
11602         (local_const_prop_count, local_copy_prop_count): New static globals.
11603         (gcse_main): Set the right timevar for each pass.
11604         (cprop_jump): Increment global_const_prop_count when a constant is
11605         propagated.  Add "GLOBAL" to dump output.
11606         (cprop_insn): Increment global_const_prop_count when a constant is
11607         propagated, or global_copy_prop_count when a copy is propagated.
11608         (do_local_cprop): Likewise for local_const_prop_count and
11609         local_copy_prop_count.
11610         (one_cprop_pass): Initialize const/cprop counters to zero.
11611         Print out results of local and global const/cprop separately.
11612         (bypass_block): Break over-length line.
11613         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
11614         for bb-reorder.o and tracer.o.
11615
11616 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11617
11618         * Makefile.in (GTFILES): Remove stmt.c
11619         (stmt.o): Do not depend on gt-stmt.h.
11620         * emit-rtl.c (emit_line_note): Do not call
11621         set_file_and_line_for_stmt.
11622         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
11623         do everything.
11624         * function.c (free_after_parsing): Do not free STMT field.
11625         (allocate_struct_function): Do not call init_stmt_for_function.
11626         (assign_stack_temp_for_type): Do not accept values of keep
11627         other than 0 or 1.
11628         (init_temp_slots): Do not initialize removed variables.
11629         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
11630         and X_VAR_TEMP_SLOT_LEVEL fields.
11631         * rtl.h (set_file_and_line_for_stmt): Remove.
11632         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
11633         struct stmt_status, cond_stack, case_stack, nesting_stack,
11634         nesting_depth, emit_locus, set_file_and_line_for_stmt,
11635         same_case_target_p, init_stmt_for_function, emit_nop,
11636         expand_start_cond, expand_start_elseif, expand_start_else,
11637         expand_elseif, expand_end_cond): Remove.
11638         (preserve_subexpressions_p): Remove references to CFUN->STMT.
11639         (expand_start_case, expand_end_case_type): Remove, merge into...
11640         (expand_case): ... this one, including other bits from
11641         expand_expr_real_1.  Inline same_case_target_p.  Turn members
11642         of CASE_STACK into local variables.
11643         (emit_case_bit_tests): Inline same_case_target_p.
11644         (add_case_node): Add HEAD argument, return new head of the list,
11645         do not handle default label here.
11646         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
11647         expand_start_elseif, current_nesting_level, expand_start_case,
11648         expand_end_case_type, expand_end_case, add_case_node,
11649         init_stmt_for_function, expand_elseif): Remove prototypes.
11650         (expand_case): Add prototype.
11651
11652 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11653
11654         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
11655
11656 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
11657
11658         * expr.c (var_rtx): Remove.
11659         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
11660         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
11661         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
11662         Abort.
11663         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
11664         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
11665         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
11666
11667 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
11668         Ayal Zaks <zaks@il.ibm.com>
11669
11670         * common.opt (freschedule-modulo-scheduled-loops): New flag.
11671         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
11672         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
11673         when -freschedule-modulo-scheduled-loops flag is not specified.
11674         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
11675         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
11676         More accurate placing of insn in row of partial schedule.
11677         (ps_insn_find_column): New function.
11678         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
11679         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
11680         (schedule_region): Use sched_is_disabled_for_current_region_p.
11681         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
11682
11683 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11684
11685         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
11686         change.
11687
11688 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11689
11690         * config/i386/i386.c (ix86_expand_clrmem): Properly call
11691         gen_strset for 64bit target.
11692
11693 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
11694
11695         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
11696
11697 2004-08-07  Jason Merrill  <jason@redhat.com>
11698
11699         Make return in memory explicit.
11700         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
11701         (assign_parm_find_data_types): Remove code for old front end
11702         invisible reference handling.
11703         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
11704         (expand_function_end): Likewise.
11705         * gimplify.c (gimplify_return_expr): Handle a dereferenced
11706         RESULT_DECL.
11707         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
11708         (declare_return_variable): Handle DECL_BY_REFERENCE.
11709         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
11710         (cp_genericize_r): Use convert_from_reference.
11711         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
11712         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
11713
11714         * c-common.c (c_warn_unused_result): Check TREE_USED before
11715         warning about a CALL_EXPR with an unused value.
11716
11717 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
11718
11719         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
11720         to the compiler.  Use -fshort-wchar by default.
11721
11722 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
11723
11724         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
11725         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
11726         threshhold.
11727         * doc/invoke.texi (param): Document min-crossjump-insns.
11728
11729 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
11730
11731         PR c/13282
11732         * c.opt (Wmissing-field-initializers): New option.
11733         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
11734         * c-typeck.c (pop_init_level): Guard the missing field warning with
11735         warn_missing_field_initializers rather than extra_warnings.
11736         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
11737         some of the explanation from...
11738         (-Wextra): ...here.  Say that the missing field warning can be
11739         seperately controlled by -Wmissing-field-initializers.
11740
11741 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
11742
11743         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
11744         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
11745         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
11746         * tree.def (ENTRY_VALUE_EXPR): Remove.
11747
11748 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
11749
11750         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
11751         the places where it is actually needed.  Don't use repz; stosb
11752         for -Os with sufficiently small constant sizes.
11753         For sufficiently small repz; stos{l,q} repeat counts use a sequence
11754         of stos{l,q} instructions instead.
11755
11756 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11757
11758         PR tree-optimization/16807
11759         * loop-iv.c (dump_iv_info): Dump invariants correctly.
11760         (iv_subreg, iv_extend): Express value of invariant purely in
11761         base field.
11762
11763 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
11764
11765         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
11766         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
11767
11768 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
11769
11770         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
11771         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
11772         pre_dec_operand.
11773         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
11774         pattern until reload is finished to allow better code generation
11775         and split them completely into separate instrunctions.
11776         (*andsi3_split): New pattern.
11777
11778 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
11779
11780         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
11781         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
11782         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
11783         * tree.h (handle_dll_attribute): Declare.  Test
11784         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
11785         * c-common.h (c_determine_visibility): Declare.
11786         * c-common.c (c_determine_visibility): New function.
11787         * c-decl.c (finish_decl): Use it.
11788         (finish_function): Likewise.
11789         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
11790         zero, by default.  Use #if, not #ifdef, to test it.
11791         * config/arm/arm.c (arm_attribute_table): Use
11792         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
11793         #if.
11794         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
11795         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
11796         to 1.
11797         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
11798         * config/i386/i386.c (ix86_attribute_table): Use
11799         handle_dll_attribute for dllimport/dllexport.  Test
11800         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
11801         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
11802         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
11803         it to 1.
11804         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
11805         with #if.
11806         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
11807         it to 1.
11808         * doc/extend.texi (dllexport): Clarify and correct documentation.
11809         (dllimport): Likewise.
11810         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
11811         handle_dll_attribute.
11812
11813 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11814
11815         * tree-ssa-loop-manip.c: New file.
11816         * Makefile.in (tree-ssa-loop-manip.o): Add.
11817         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
11818         Declare.
11819         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
11820         form.
11821         (tree_ssa_loop_done): Verify loop closed ssa form.
11822         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
11823
11824 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11825
11826         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
11827         pa_asm_output_aligned_local): New functions.
11828         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
11829         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
11830         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
11831         pa_asm_output_aligned_common.
11832         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
11833         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
11834         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
11835         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
11836         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
11837         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
11838         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
11839         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
11840         common data.
11841
11842 2004-08-05  Andrew Pinski  <apinski@apple.com>
11843
11844         * objc/objc-act.c (build_objc_string_object): Mark the address
11845         expression as constant.
11846
11847 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
11848
11849         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
11850         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
11851         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
11852
11853 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
11854
11855         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
11856         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
11857         out, and associated obsolete comments.
11858
11859 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
11860
11861         * tree.h (force_fit_type): Return a tree, take three flags.
11862         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
11863         TREE_CONSTANT_OVERFLOW here.
11864         (int_const_binop, const_binop): Adjust.
11865         (size_int_type): Do sign extension here.
11866         (fold_convert_const, optimize_bit_field_compare,
11867         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
11868         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
11869         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
11870
11871 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11872
11873         PR tree-optimization/16864
11874         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
11875         for ssa names without default_def.
11876
11877 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
11878
11879         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
11880         frame pointer, restore eax with an ebp-relative address.
11881
11882 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
11883
11884         PR 14516
11885         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
11886         * c-common.h (make_rtl_for_local_static): Delete.
11887         * c-decl.c (shadow_tag_warned): Clean up comment.
11888         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
11889         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
11890         * c-semantics.c (make_rtl_for_local_static): Delete.
11891         * expr.c (init_block_move_fn): Use set_user_assembler_name.
11892         (init_block_clear_fn): Likewise.
11893         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
11894         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
11895         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
11896         * tree.h (make_decl_rtl): Remove second parameter.
11897         (set_user_assembler_name): New.
11898         * varasm.c (set_user_assembler_name): New.
11899         (make_decl_rtl): Remove second parameter.  Update callers in many
11900         files.
11901
11902 2004-08-05  Adam Nemet  <anemet@lnxw.com>
11903
11904         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
11905         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
11906         to LynxOS 4.0.
11907         * gthr-lynx.h: New file.
11908         * config/lynx-ng.h: Remove file.
11909         * config/lynx.h: Update to LynxOS 4.0.
11910         * config/t-lynx: New file.
11911         * config/i386/lynx-ng.h: Remove file.
11912         * config/i386/lynx.h: Update to LynxOS 4.0.
11913         * config/rs6000/lynxbase.h: Remove file.
11914         * config/rs6000/lynx.h: Update to LynxOS 4.0.
11915         * config/rs6000/t-lynx: New file.
11916         * doc/install.texi (Options specification): Remove reference to
11917         LynxOS from systems where --with-gnu-as makes a difference.
11918
11919 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
11920
11921         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
11922         __UINTMAX_TYPE__.
11923         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
11924         __INTMAX_MAX__.
11925         (c_cpp_builtins): Call it.
11926         * doc/cpp.texi: Update.
11927
11928 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
11929
11930         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
11931         cost.
11932
11933 2004-08-04  Jan Hubicka  <jh@suse.cz>
11934
11935         * basic-block.h (profile_staus): New global variable.
11936         * cfg.c (profile_status): Declare.
11937         (check_bb_profile): Break out from ....; use profile_status
11938         (dump_flow_info): ... here.
11939         * cfgbuild.c (find_basic_blocks): Set profile_status.
11940         * cfgexpand.c (tree_expand_cfg): Likewise.
11941         * predict.c (estimate_probability): Likewise.
11942         * profile.c (branch_prob): Likewise.
11943         * tree-cfg.c (build_tree_cfg): Likewise.
11944         (dump_function_to_file): Use check_bb_profile.
11945         * tree-pretty-print (dump_bb_header): Likewise.
11946         * tree-profile.c (do_tree_profiling): Cleanup.
11947
11948 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
11949
11950         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
11951         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
11952         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
11953         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
11954         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
11955         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
11956         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
11957         (ggc-none.o, errors.o): Move rule to generators section;
11958         correct dependencies.
11959         (min-insn-modes.o): Move rule to generators section; remove
11960         unnecessary explicit command; correct dependencies.
11961         (print-rtl.o, print-rtl1.o): Correct dependencies.
11962         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
11963         (mostlyclean): Update.
11964
11965         * errors.c: Include bconfig.h not config.h.  Correct comment.
11966         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
11967         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
11968         * print-rtl.c: Don't include tm_p.h.
11969
11970         * rtl.h: Move forward-decl of struct function down where it's
11971         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
11972         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
11973
11974 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11975             Jeff Law  <law@redhat.com>
11976
11977         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
11978         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
11979         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
11980         manipulate the duplicated ssa names.
11981         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
11982         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
11983         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
11984         New functions.
11985         (release_ssa_name): Do not release ssa names that may have multiple
11986         definitions.
11987         * tree.h (release_ssa_name_force, mark_for_rewrite,
11988         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
11989         marked_ssa_names): Declare.
11990         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
11991         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
11992         Update call to rewrite_ssa_into_ssa.
11993
11994 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
11995
11996         * defaults.h (TARGET_DECLSPEC): New macro.
11997         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
11998         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
11999         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
12000         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
12001         __declspec support.
12002         (TARGET_DECLSPEC): Define.
12003         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
12004         __declspec support.
12005         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
12006         __declspec support.
12007         (TARGET_DECLSPEC): Define.
12008         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
12009         __declspec support.
12010         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
12011         support.
12012         * doc/tm.texi (TARGET_DECLSPEC): Document.
12013
12014         * doc/extend.texi: Fix typo in comment.
12015
12016 2004-08-04  Paul Brook  <paul@codesourcery.com>
12017
12018         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
12019         (TARGET_CXX): Use it.
12020         * target.h (struct gcc_target): Add cdtor_returns_this.
12021         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
12022         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
12023         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
12024
12025 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
12026
12027         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
12028         low/high pair. Do range checking directly.
12029         (interpret_integer): Adjust.
12030
12031 2004-08-04  Nick Clifton  <nickc@redhat.com>
12032
12033         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
12034         GCC ABI.
12035         * doc/invoke.texi: Document this new switch and also the -mrenesas
12036         switch.
12037
12038 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
12039
12040         * cfglayout.c (insn_locators_initialize): Update the current
12041         location before initializing a location.
12042
12043 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
12044
12045         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
12046         (dbxout_function_end): Return after emitting the "Lscope" symbol
12047         under the same conditions that this function formerly wasn't called.
12048         Add explanatory comments.
12049
12050         PR 14860
12051         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
12052         on the new decl.
12053
12054         PR 13956
12055         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
12056         functions, broken out of dbxout_block.
12057         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
12058         stabs too, if it contains symbols.  Use the begin_label and
12059         the Lscope label (emitted by dbxout_function_end) for the
12060         range of this block.
12061
12062 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
12063
12064         * doc/install.texi: Update autoconf version requirements.
12065
12066 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
12067
12068         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
12069         * recog.c (general_operand, immediate_operand, nonmemory_operand)
12070         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
12071         * regclass.c (record_reg_classes): Likewise.
12072         * reload.c (find_reloads): Likewise.
12073         * reload1.c (reload): Likewise.
12074
12075 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
12076
12077         * gensupport.c (init_md_reader_args_cb): Renamed from
12078         init_md_reader_args.  Add third option, callback function for
12079         parsing program-specific options.  Add diagnosis of incorrect
12080         number of input files.
12081         (init_md_reader): Fold into init_md_reader_args_cb.
12082         (init_md_reader_args): Now a thin wrapper around
12083         init_md_reader_args_cb.
12084         * gensupport.h: Update prototypes.
12085
12086         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
12087         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
12088         * genrecog.c: No need to diagnose lack of an input file;
12089         init_md_reader_args will handle it.
12090         * genconditions.c: Likewise, and use init_md_reader_args.
12091         * genconstants.c: Likewise, and no need to call read_md_rtx.
12092
12093 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
12094
12095         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
12096         declarations.
12097
12098 2004-08-03  Mike Stump  <mrs@apple.com>
12099
12100         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
12101         for frameworks.
12102         * doc/invoke.texi (Darwin Options): Update to reflect above.
12103
12104 2004-08-03  Roger Sayle  <roger@eyesopen.com>
12105
12106         PR middle-end/16790
12107         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
12108         truncations, not just global truncations.
12109
12110 2004-08-03  Andrew Pinski  <apinski@apple.com>
12111
12112         PR bootstrap/16865
12113         * loop-iv.c (simplify_using_assignment): Initialize lhs.
12114
12115 2004-08-03  Paul Brook  <paul@codesourcery.com>
12116
12117         * gcc/doc/install.texi: Document MPFR requirement.
12118
12119 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
12120
12121         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
12122         and mmap() explicitly instead of relying on preset autoconf cache
12123         variables.
12124         * configure: Regenerate.
12125
12126 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
12127
12128         PR target/16570
12129         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
12130         to tmake_file.
12131         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
12132         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
12133         to tmake_file.
12134
12135         * config/i386/t-gmm_malloc: New file.
12136         * config/i386/t-pmm_malloc: Likewise.
12137
12138         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
12139
12140 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
12141             Tanguy Fautrà <tfautre@pandora.be>
12142
12143         * config/i386/pmm_malloc.h: New file.
12144
12145 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
12146
12147         * config/i386/gmm_malloc.h: New file.
12148
12149 2004-08-03  Dale Johannesen  <dalej@apple.com>
12150
12151         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
12152         * c-common.c: Include opts.h.
12153         (c_common_get_alias_set): Fix check for a single input file.
12154         * toplev.c: Remove current_file_decl.
12155         * tree.h: Ditto.
12156
12157 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
12158
12159         * config.gcc (arm*-*-symbianelf*): New target.
12160         * config/arm/symbian.h: New file.
12161
12162         * gthr-gnat.c: Add visibility #pragmas.
12163         * gthr-gnat.h : Likewise.
12164         * gthr.h: Likewise.
12165         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
12166         (__ffsDI2): Likewise.
12167         (__clzSI2): Likewise.
12168         (__ctzSI2): Likewise.
12169         (__ctzDI2): Likewise.
12170         (__popcountSI2): Likewise.
12171         (__popcountDI2): Likewise.
12172         (__paritySI2): Likewise.
12173         (__parityDI2): Likewise.
12174         * libgcc2.h: Add visibility #pragmas.
12175         (__clzDI2): Add prototype.
12176         (__clzSI2): Likewise.
12177         (__ctzSI2): Likewise.
12178         (__ffsDI2): Likewise.
12179         (__ffsSI2): Likewise.
12180         (__ctzDI2): Likewise.
12181         (__popcountSI2): Likewise.
12182         (__popcountDI2): Likewise.
12183         (__paritySI2): Likewise.
12184         (__parityDI2): Likewise.
12185         * unwind-dw2-fde.h: Add visibility #pragmas.
12186         * unwind.h: Likewise.
12187
12188 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
12189             Dale Johannesen  <dalej@apple.com>
12190             Roger Sayle  <roger@eyesopen.com>
12191
12192         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
12193         constants more accurately.  Adjust costs for FMA instructions.
12194         Add cases for most logical and float operations.  Recurse into
12195         most operands.
12196
12197 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
12198
12199         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
12200
12201 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
12202
12203         * ra-build.c (conflicts_between_webs): For webs that cross a call add
12204         conflicts to regs_invalidated_by_call.
12205
12206 2004-08-03  Paul Brook  <paul@codesourcery.com>
12207
12208         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
12209
12210 2004-08-03  Jan Hubicka  <jh@suse.cz>
12211
12212         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
12213         ARRAY_REF argument.
12214
12215 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
12216
12217         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
12218         arm968es, arm10e, arm1020e, arm1022e.
12219         * invoke.texi: Update list of ARM cores.
12220         * arm-tune.md: Regenerate.
12221
12222 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
12223
12224         * arm/gentune.sh: New file.
12225         * arm/t-arm: New file.
12226         * arm/arm-tune.md: New file (autogenerated).
12227         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
12228         * arm.md (attribute tune): Delete.  Include arm-tune.md.
12229
12230 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
12231
12232         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
12233         penultimate parameter.  All callers adjusted.
12234         (struct prefix_list): Remove used_flag_ptr.
12235         (find_a_file): Do not set *pl->used_flag_ptr.
12236         (warn_B, warn_std_ptr): Remove.
12237
12238 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
12239             Mostafa Hagog <mustafa@il.ibm.com>
12240
12241         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
12242
12243 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
12244
12245         * dwarf2out.c (output_call_frame_info): Don't change data format
12246         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
12247         label.  Use 'true' not '1'.
12248         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
12249         required.
12250
12251 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12252
12253         * gdbinit.in: Reflect previous changes to rtunion_def.
12254
12255 2004-08-02  Roger Sayle  <roger@eyesopen.com>
12256
12257         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
12258         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
12259
12260 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12261
12262         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
12263         vec_p_reserve.
12264         * langhooks.h (lang_hooks::builtin_function): Rename parameter
12265         from "class" to "bt_class".
12266
12267 2004-08-02  Paul Brook  <paul@codesourcery.com>
12268
12269         PR rtl-optimization/15068
12270         * flow.c (init_propagate_block_info): Check condition is reversible.
12271
12272 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12273
12274         * gengtype.h (options::info): Change type to const char *.
12275         (enum gc_used_enum): Move out of struct type scope.
12276         * gengtype.c (create_option): Convert initializer for option::info to
12277         appropiate type.
12278         (adjust_field_type, walk_type, write_func_for_structure,
12279         write_root, write_roots): Remove pointless cast.
12280
12281 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
12282
12283         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
12284
12285 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12286
12287         * rtl.h (union rtunion_def): Have all members  start with the
12288         prefix "rt_".
12289         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
12290         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
12291         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
12292         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
12293         access.
12294         * gengtype.c (adjust_field_rtx_def): Likewise.
12295         * rtlanal.c (loc_mentioned_in_p): Likewise.
12296
12297 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
12298
12299         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
12300         Replace uses of mips/elf64.h with mips/elf.h
12301         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
12302         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
12303         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
12304         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
12305         (HANDLE_SYSV_PRAGMA): Delete.
12306         (ASM_OUTPUT_DEF): Fix formatting.
12307         * config/mips/elf64.h: Delete.
12308
12309 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
12310
12311         * config/ia64/ia64.c (got_symbolic_operand): Do require a
12312         symbol+offset operand to have its offset be zero mod 0x3fff
12313         when GOT entries are in use.  Clarify logic in SYMBOL_REF
12314         case.  Clarify comments.
12315         (ia64_expand_load_address): Split a symbol+offset load when
12316         the offset is nonzero mod 0x3fff, not 0x1fff.
12317
12318 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
12319
12320         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
12321         if trying to *store* to a non-offsettable address.
12322         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
12323         a nonoffsettable address.
12324         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
12325         Clean up.
12326         (movti_string): Don't move GPRs to a nonoffsettable address.
12327         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
12328
12329 2004-08-02  Ben Elliston  <bje@au.ibm.com>
12330
12331         PR target/16155
12332         * config/rs6000/altivec.h: Replace typeof with __typeof__.
12333
12334 2004-08-01  Richard Henderson  <rth@redhat.com>
12335
12336         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
12337         variable sized types.
12338
12339 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
12340
12341         * doc/invoke.texi: In the MIPS options section, remove the passage
12342         saying that -mexplicit-relocs is usually disabled for -mabicalls
12343         -fno-unit-at-a-time.
12344         * config/mips/mips.c (override_options): Remove the code that enforced
12345         this rule.
12346
12347 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
12348
12349         * config/mips/mips.md (cprestore): Provide two alternatives, one for
12350         an in-range offset and one for an out-of-range offset.  Wrap the latter
12351         in .set macro/.set nomacro if it's inside a .set nomacro block.
12352
12353 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
12354
12355         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
12356         (mips_restore_gp): Declare.
12357         * config/mips/mips.c (mips_add_offset): Add a scratch register
12358         argument.  Reimplement in rtl only, reusing MIPS16 logic from
12359         mips_output_mi_thunk.
12360         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
12361         to mips_add_offset.
12362         (mips_gp_save_slot): Delete.
12363         (mips_restore_gp): New function.
12364         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
12365         * config/mips/mips.md (exception_receiver): Turn into a
12366         define_insn_and_split.  Use mips_restore_gp to do the split.
12367         (call_internal, call_value_internal, call_value_multiple_internal): Use
12368         mips_restore_gp to restore $gp.
12369
12370 2004-07-31  Andrew Pinski  <apinski@apple.com>
12371
12372         PR other/16842
12373         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
12374
12375 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
12376
12377         * c-decl.c (diagnose_mismatched_decls): Give error for external
12378         redeclaration of identifier declared with no linkage, not just
12379         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
12380         error for redeclaration with no linkage.
12381
12382 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
12383             Fariborz Jahanian <fjahanian@apple.com>
12384
12385         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
12386         non-offsettable addresses even for DImode.
12387         (rs6000_split_multireg_move): Cope with non-offsettable addresses
12388         being moved into multiple GPRs.
12389
12390         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
12391         to 64.
12392         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
12393         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
12394         to 128.
12395         * config/rs6000/darwin-ldouble.c (isless): New macro.
12396         (inf): New macro.
12397         (nonfinite): New macro.
12398         (FPKINF): Delete.
12399         (_xlqadd): Completely rewrite.
12400         (_xlqmul): Correct overflow handling.
12401         (_xlqdiv): Correct overflow handling.
12402         * config/rs6000/darwin-ldouble-format: New file.
12403
12404 2004-07-30  Roger Sayle  <roger@eyesopen.com>
12405             Richard Henderson  <rth@redhat.com>
12406
12407         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
12408         9 into the equivalent lea instruction.
12409
12410 2004-07-30  Richard Henderson  <rth@redhat.com>
12411
12412         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
12413         with DECL_INITIAL if fb_lvalue.
12414         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
12415         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
12416         with <Cxxx>.
12417         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
12418
12419 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
12420
12421         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
12422         pointer escapes through a function call, assume that the
12423         callee will dereference it.
12424         (add_pointed_to_var): Assume that VALUE is always an
12425         ADDR_EXPR.
12426         (collect_points_to_info_r): Only call add_pointed_to_var if
12427         the value is an ADDR_EXPR.
12428
12429 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
12430
12431         * tree-ssa-alias.c (create_alias_map_for): Do not get the
12432         alias set of the inner type of ARRAY_TYPEs.
12433
12434 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
12435
12436         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
12437         setting a non-register to UNDEFINED right before the call to
12438         set_lattice_value.
12439
12440 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
12441
12442         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
12443
12444 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
12445
12446         * tree-ssa.c (verify_flow_sensitive_alias_info): When
12447         comparing points-to sets of different pointers, make sure the
12448         second pointer is actually referenced in the code.
12449
12450 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
12451
12452         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
12453         (got_symbolic_operand): Remove unreachable code.
12454         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
12455         setjmp_operand; add entry for tls_symbolic_operand.
12456         * config/ia64/ia64-protos.h: Remove all prototypes of
12457         predicate functions.
12458
12459 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
12460
12461         * c-common.h (lang_post_pch_load): New variable.
12462         * c-pch.c (lang_post_pch_load): Define it.
12463         (c_common_read_pch): Use it.
12464         * cgraphunit.c (record_call_1): Give the front end a chance to
12465         record additional needed entities when a variable is marked as
12466         needed.
12467         * tlink.c (recompile_files): Robustify.
12468         (scan_linker_output): If a symbol is assigned to a file,
12469         but after recompilation is not present there, issue an error
12470         message.
12471
12472 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12473
12474         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
12475         Take orig_loop argument and pass it to set_level.
12476         (schedule_sm): Pass the correct orig_loop to force_move_till.
12477
12478 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12479
12480         * cfgloop.c (update_latch_info): Update dominator of the new block.
12481         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
12482         info.
12483         * dominance.c (verify_dominators): Check that the dominance tree is
12484         connected.
12485         (recount_dominator): Ignore unreachable blocks.
12486         (iterate_fix_dominators): Cleanup old dominance information before
12487         recomputing it.
12488
12489 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
12490
12491         * tree-ssa-operands.c (get_expr_operands): Revert changes
12492         to ADDR_EXPR processing introduced by:
12493             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12494             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
12495
12496 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
12497
12498         * doc/implement-c.texi: Add C90 subclause references.  Point to
12499         preprocessor documentation instead of duplicating it.  Add points
12500         only present in C90.  Fill in documentation for all points.
12501
12502 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12503
12504         * pa.c (output_movb): Correct typo.
12505
12506 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
12507
12508         * ra.h (single_reg_in_regclass): Declare.
12509         * ra.c (single_reg_in_regclass): Define.
12510         (first_hard_reg): New.
12511         (init_ra): Initialize single_reg_in_regclass.
12512         * ra-colorize.c (ok_class): New.
12513         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
12514
12515 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
12516
12517         * gcov-io.h: Allow zero tag as EOF indicator.
12518         (gcov_is_eof): Remove.
12519         (gcov_truncate): Remove.
12520         * gcov-io.c (gcov_seek): Always SEEK_SET.
12521         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
12522         EOF tag.
12523         * coverage.c (read_counts_file): Don't use gcov_is_eof.
12524         * gcov-dump.c (dump_file): Likewise.
12525         * gcov.c (read_graph_file, read_count_file): Likewise.
12526
12527         * c-decl.c (complete_array_type): Don't gratuitously copy
12528         maxindex.  Check it always has a type.
12529
12530 2004-07-29  Steven Bosscher  <stevenb@suse.de>
12531
12532         * rtl.c (currently_expanding_to_rtl): New.
12533         * rtl.h (currently_expanding_to_rtl): Export it.
12534         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
12535
12536         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
12537         inliner hack.
12538         * config/sh/sh.c: Replace rtx_equal_function_value_matters
12539         with currently_expanding_to_rtl.
12540         * config/sh/sh.md: Likewise.
12541         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
12542
12543 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
12544
12545         Introduce sh2a support.
12546         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
12547         * config.gcc: Build multilibs for sh2a and sh2a-single by
12548         default.
12549         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
12550         default.  Split their tests out of the corresponding SH4
12551         multilibs.
12552         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
12553         multilibs for SH2a.
12554         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
12555         * config.gcc: Handle sh2a multilibs and cpu selection.
12556         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
12557         * config/sh/t-mlib-sh2a: New.
12558         * config/sh/t-mlib-sh2a-nofpu: New.
12559         * config/sh/t-mlib-sh2a-single: New.
12560         * config/sh/t-mlib-sh2a-single-only: New.
12561         2004-07-09  Nick Clifton  <nickc@redhat.com>
12562         Issue 43400
12563         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
12564         -ml and -m2a are used together.
12565         2004-03-23  DJ Delorie  <dj@redhat.com>
12566         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
12567         when we have a double-sized FPU.
12568         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
12569         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
12570         is set.
12571         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
12572         -msh2a-single and -msh2a-single-only
12573         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
12574         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
12575         is set.
12576         2004-02-20  DJ Delorie  <dj@delorie.com>
12577         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
12578         2004-02-20  Fred Fish <fnf@redhat.com>,
12579         Corinna Vinschen <vinschen@redhat.com>
12580         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
12581         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
12582         2004-02-18  DJ Delorie  <dj@redhat.com>
12583         * config/sh/sh.c (broken_move): Add support for movi20.
12584         * config/sh/sh.h: Likewise.
12585         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
12586         * config/sh/sh.md (udivsi3_sh2a): New.
12587         (udivsi3): Call it.
12588         (divsi3_sh2a): New.
12589         (divsi3): Call it.
12590         (mul_r): New.
12591         (ashlsi3_sh2a): New.
12592         (ashrsi3_sh2a): New.
12593         (lshrsi3_sh2a): New.
12594         (movsi_i): Disable for sh2a.
12595         (movsi_ie): Add movi20.
12596         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
12597         sh2a, for -m2a-nofpu mode.
12598         2004-02-13  DJ Delorie  <dj@redhat.com>
12599         * config/sh/lib1funcs.asm: Handle double vs single better.
12600         * config/sh/sh.h: Likewise.
12601         2004-02-09  DJ Delorie  <dj@redhat.com>
12602         * config/sh/crt1.asm: Add support for sh2a.
12603         * config/sh/elf.h: Likewise.
12604         * config/sh/lib1funcs.asm: Likewise.
12605         * config/sh/sh.c: Likewise.
12606         * config/sh/sh.md: Likewise.
12607         * config/sh/sh.h: Likewise.
12608         * config/sh/t-sh: Likewise.
12609
12610 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
12611
12612         * config/frv/frv.md (movqi_internal, movhi_internal,
12613         movsi_internal): Add backup alternatives for memory inputs.
12614
12615 2004-07-28  Matt Austern  <austern@apple.com>
12616
12617         * config/darwin.c (darwin_one_byte_bool): New global variable.
12618         * config/darwin.h (darwin_one_byte_bool): Declare.
12619         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
12620         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
12621         value of darwin_one_byte_bool.
12622         * doc/invoke.texi: Document -mone-byte-bool flag.
12623
12624 2004-07-28  Eric Christopher  <echristo@redhat.com>
12625
12626         * c-common.c (c_common_unsafe_for_reeval): Delete.
12627         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
12628         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
12629         * calls.c (fix_unsafe_tree): Delete.
12630         (expand_call): Delete code which used above.
12631         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
12632         * expr.c (expand_expr_real_1): Ditto.
12633         * fold-const.c (non_lvalue): Ditto.
12634         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
12635         (lhd_unsafe_for_reeval): Ditto.
12636         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
12637         * langhooks.h (unsafe_for_reeval): Ditto.
12638         (unsave_expr_now): Adjust comment.
12639         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
12640         (estimate_num_insns_1): Ditto.
12641         * tree-pretty-print.c (dump_generic_node): Ditto.
12642         * tree.c (expr_align): Ditto.
12643         (unsave_expr): Delete.
12644         (unsafe_for_reeval): Ditto.
12645         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
12646         * tree.def (UNSAVE_EXPR): Delete.
12647         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
12648
12649 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
12650
12651         * tree.h (enum tls_model): Move ...
12652         * coretypes.h: ... here.
12653
12654 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
12655
12656         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
12657
12658 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
12659
12660         * cse.c (validate_canon_reg): New function, split out from...
12661         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
12662
12663 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12664
12665         * tree-ssa-alias.c (maybe_create_global_var): Don't just
12666         return if .GLOBAL_VAR has been created.
12667
12668 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12669
12670         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
12671         every variable that may have aliases, not just tags.
12672
12673 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
12674
12675         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
12676         move_from_CR_eq_bit.
12677         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
12678
12679
12680         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
12681         e500_flip_eq_bit.
12682
12683         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
12684         output_e500_flip_eq_bit.
12685
12686         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
12687         output_e500_flip_eq_bit.
12688         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
12689         output_e500_flip_eq_bit.
12690         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
12691         (print_operand): case D.  Get to EQ bit.
12692
12693 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
12694
12695         * gcov.c (function_summary): Add missing \n.
12696
12697 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
12698
12699         Introduce sh4a support.
12700         * config.gcc: Handle sh4a multilibs and cpu selection.
12701         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
12702         * config/sh/t-mlib-sh4a: New.
12703         * config/sh/t-mlib-sh4al: New.
12704         * config/sh/t-mlib-sh4a-nofpu: New.
12705         * config/sh/t-mlib-sh4a-single: New.
12706         * config/sh/t-mlib-sh4a-single-only: New.
12707         2004-02-20  DJ Delorie  <dj@redhat.com>
12708         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
12709         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
12710         2003-08-22  Eric Christopher  <echristo@redhat.com>
12711         * config/sh/sh4a.md: Update for chip errata.
12712         2003-08-07  Eric Christopher  <echristo@redhat.com>
12713         * config/sh/sh4a.md: New file. sh4a processor description.
12714         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
12715         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
12716         of -m4a-nofpu.
12717         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
12718         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
12719         * doc/invoke.texi (SH Options): Document -m4al.
12720         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
12721         * config/sh/sh.c (expand_block_move): Remove commented-out code
12722         checked in by mistake.
12723         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
12724         single elements from SFmode vectors.
12725         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
12726         register.
12727         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
12728         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
12729         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
12730         sh_fsca_int2sf): Remove variable declarations.
12731         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
12732         sh_fsca_int2sf): New functions.
12733         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
12734         sh_fsca_int2sf_rtx): New static variables.
12735         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
12736         sh_fsca_int2sf): Declare.
12737         * config/sh/sh.md: Adjust.
12738         * doc/invoke.texi (SH Options): Document new options.
12739         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
12740         compatibility from SH4 code.
12741         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
12742         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
12743         early.
12744         (memory_movsrc_operand): Renamed to...
12745         (unaligned_load_operand): ... this.  Simplified.
12746         * config/sh/sh.h (PREDICATE_CODES): Adjust.
12747         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
12748         input operand to SImode, and adjust the others.  Introduce
12749         post-increment by peephole.
12750         * config/sh/sh.c (expand_block_move): Give the target address the
12751         same mode as the temp reg.
12752         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
12753         copying.
12754         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
12755         Introduce support for SH4a.
12756         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
12757         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
12758         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
12759         sh_fsca_int2sf): New.
12760         (sh_init_builtins): Initialize them.
12761         (print_operand): Support `d'.
12762         (expand_block_move): Use movua if src is misaligned.
12763         (memory_movsrc_operand): New.
12764         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
12765         and one of the SH4 macros.
12766         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
12767         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
12768         SELECT_SH4A_SINGLE): New.
12769         (TARGET_NONE): Add SH4A_BIT.
12770         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
12771         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
12772         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
12773         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
12774         (enum processor_type): Added PROCESSOR_SH4A.
12775         (PREDICATE_CODES): Add memory_movsrc_operand.
12776         * config/sh/sh.md: Removed unused variables.
12777         (attr cpu): Add sh4a.
12778         (attr type): Add movua, fsrra and fsca.
12779         (prefetch): New, for SH4.
12780         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
12781         (toggle_sz): Set type to fp.
12782         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
12783         (movua, extv, extzv): New.
12784         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
12785         and 4a-single-only.
12786
12787 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12788
12789         * tree-optimize.c (init_tree_optimization_passes): Schedule
12790         pass_may_alias right after the program is renamed into SSA.
12791         * tree-pass.h (PROP_alias): Define.
12792         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
12793         * tree-sra.c (pass_sra): Likewise.
12794         * tree-ssa-ccp.c (pass_ccp): Likewise.
12795         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
12796         * tree-ssa-dce.c (pass_dce): Likewise.
12797         * tree-ssa-dom.c (pass_dominator): Likewise.
12798         * tree-ssa-dse.c (pass_dse): Likewise.
12799         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
12800         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12801         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
12802         * tree-ssa-pre.c (pass_pre): Likewise.
12803         * tree-tailcall.c (pass_tail_recursion): Likewise.
12804         * tree-ssa.c (pass_redundant_phi): Likewise.
12805         * tree-ssa-alias.c (aliases_computed_p): Remove.
12806         Update all users.
12807         (init_alias_info): Do not mark all type tags for renaming
12808         unconditionally.
12809         Clear may_aliases from every symbol.
12810         (setup_pointers_and_addressables): If a pointer has not been
12811         dereferenced and it had a type tag, clear it and mark the old
12812         tag for renaming.
12813
12814 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
12815
12816         PR tree-optimization/16705
12817         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
12818         .GLOBAL_VAR.
12819
12820 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12821
12822         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
12823         check.
12824
12825         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
12826         don't make another one.
12827
12828         PR optimization/15077
12829         * function.h (struct function): Add field saved_static_chain_decl.
12830         Fix comment for static_chain_decl.
12831         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
12832         * tree-inline.h (save_body): Add new arg.
12833         * tree-optimize.c (tree_rest_of_compilation): Handle saving
12834         static_chain_decl.
12835
12836 2004-07-27  Richard Henderson  <rth@redhat.com>
12837
12838         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
12839         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
12840         is_gimple_addressable.
12841         * tree-gimple.c (is_gimple_addressable): Rename from
12842         is_gimple_addr_expr_arg; accept INDIRECT_REF.
12843         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
12844         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
12845         rename to is_gimple_addressable.
12846
12847 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
12848
12849         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
12850
12851 2004-07-27  Richard Henderson  <rth@redhat.com>
12852
12853         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
12854         before rounding.
12855
12856 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
12857
12858         * libgcc2.c: Change all conditionals testing
12859         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
12860         * libgcc2.h: Likewise.
12861         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
12862         TYPE_PRECISION of float80_type to 80.
12863         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
12864         of fpreg_type and float80_type to 80.
12865         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
12866         * config/m68k/netbsd-elf.h:
12867         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
12868         to evaluate to 80 whenever they would formerly have evaluated to 96.
12869         * config/i386/sco5.h: Remove unnecessary redefinition of
12870         LONG_DOUBLE_TYPE_SIZE.
12871         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
12872         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
12873         XFmode, with a bitsize of 80.  Update commentary.
12874         * config/ia64/ia64-modes.def: Likewise.
12875         * config/m68k/m68k-modes.def: Likewise.
12876
12877 2004-07-27  Steven Bosscher  <stevenb@suse.de>
12878
12879         * cfgexpand.c (tree_expand_cfg): Fix comment.
12880
12881         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
12882         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
12883         Remove.
12884         (prepare_function_start): Don't set rtx_equal_function_value_matters.
12885         * integrate.c (copy_rtx_and_substitute): Don't test for it.
12886         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
12887         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
12888         here again.  Update leading comment.
12889         * rtl.c (rtx_equal_function_value_matters): Remove.
12890         (rtx_equal_p): Don't test for it.
12891         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
12892         Likewise.
12893
12894         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
12895         * rtl.c (note_insn_name): Likewise.
12896         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
12897         * final.c (final_scan_insn): Likewise.
12898
12899         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
12900         * passes.c (rest_of_handle_eh): Do it here.
12901
12902         * stmt.c (struct nesting): Remove struct nesting block member.
12903         (struct stmt_status): Remove x_block_start_count field.
12904         (current_block_start_count): Remove.
12905
12906 2004-07-27  Brian Booth  <bbooth@redhat.com>
12907
12908         * tree-optimize.c (register_one_dump_file): Update condition that uses
12909         static_pass_number.
12910         (dup_pass_1): Replace with...
12911         (next_pass_1): This.
12912         (NEXT_PASS): Call next_pass_1.
12913         (DUP_PASS): Remove.
12914         (init_tree_optimization_passes): Remove uses of DUP_PASS.
12915         (execute_one_pass): Update condition that uses
12916         static_pass_number.
12917         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
12918         integer.
12919
12920 2004-07-27  Nick Clifton  <nickc@redhat.com>
12921
12922         * config/m32r/m32r.c: Include integrate.h in order to get the
12923         prototype for get_hard_reg_initial_val().
12924
12925         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
12926         and tidy up indentation.
12927         (final_presence_set): Use absence_set instead, so that if there is
12928         nothing in the "o" pipe the "s" pipe can be scheduled.
12929
12930 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
12931
12932         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
12933         don't have PT_VARS nor PT_MALLOC set.
12934         Clear name tag from pointers that have not been dereferenced.
12935         (set_pt_anything, set_pt_malloc): Forward declare.
12936         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
12937         not type compatibility when determining if a pointer can be
12938         copy propagated.
12939
12940 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
12941
12942         * expr.h (canonicalize_condition, get_condition): Add an int argument.
12943         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
12944         it to check whether the condition is still valid at the jump insn.
12945         * ifcvt.c (noce_get_condition): Likewise.
12946         (noce_get_alt_condition): Update call to canonicalize_condition.
12947         * loop-iv.c (simplify_using_initial_values): Update call to
12948         get_condition.  Remove FIXME.
12949         (check_simple_exit): Update call to get_condition.
12950         * loop-unswitch.c (may_unswitch_on): Likewise.
12951         * loop.c (check_dbra_loop): Likewise.
12952         (canonicalize_condition, get_condition): Add an argument to say whether
12953         the condition must still be valid at INSN.
12954         (get_condition_for_loop): Update call to get_condition.  Require that
12955         the condition be valid at INSN.
12956         * predict.c (estimate_probability): Update call to get_condition.
12957         Remove unused earliest parameter.
12958         (expected_value_to_br_prob): Update call to canonicalize_condition.
12959
12960 2004-07-26  Eric Christopher  <echristo@redhat.com>
12961
12962         * tree-dfa.c (add_referenced_var): Register initializers of global
12963         variables.
12964
12965 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
12966
12967         * config/i386/i386.c (function_arg): Always treat 8-
12968         and 16-byte wide vectors the same, even if MMX/SSE
12969         are disabled.
12970         (contains_128bit_aligned_vector_p): Add comment.
12971
12972 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
12973
12974         * ra.h (enum node_type): Rename to:
12975         (enum ra_node_type).
12976         * ra-colorize.c: Likewise.
12977
12978 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
12979
12980         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
12981         after simplifying the jump.
12982
12983 2004-06-26  Richard Henderson  <rth@redhat.com>
12984
12985         * calls.c (combine_pending_stack_adjustment_and_call): Make
12986         preferred_unit_stack_boundary argument unsigned.  Make
12987         unadjusted_alignment unsigned.
12988         (expand_call): Make preferred_stack_boundary and
12989         preferred_unit_stack_boundary variables unsigned.
12990         * function.c (assign_stack_local_1): Make alignment unsigned.
12991         * function.h (struct function): Make stack_alignment_needed,
12992         preferred_stack_boundary unsigned.
12993         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
12994         (ix86_compute_frame_layout): Make stack_alignment_needed,
12995         preferred_alignment variables unsigned.
12996         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
12997
12998 2004-07-26  Tom Tromey  <tromey@redhat.com>
12999
13000         * tree.h: Fix typo in comment.
13001
13002 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
13003
13004         PR bootstrap/12804
13005         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
13006         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
13007         (ggc_free): Remove incorrect freeing.
13008         (sweep_pages): Advance PP for large pages.  Fix indentation.
13009
13010 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
13011
13012         PR rtl-optimization/16643
13013         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
13014         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
13015         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
13016         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
13017         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
13018         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13019         * rtl.h (tracer): Add a flags parameter.
13020         * tracer.c (tracer): Pass it to cfg_layout_initialise.
13021         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
13022         (rest_of_handle_reorder_blocks): Update calls to tracer and
13023         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
13024         (rest_of_handle_tracer): Pass 0 to tracer.
13025         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
13026
13027 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
13028
13029         PR target/16239
13030         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
13031         f->f.
13032
13033 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
13034
13035         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
13036         (BINFO_BASE_ACCESS): Adjust.
13037         (BINFO_BASE_ACCESS_APPEND): New.
13038         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
13039         * dbxout.c (dbxout_type): Adjust binfo access accessing.
13040         * dwarf2out.c (gen_member_die): Likewise.
13041         * tree-dump.c (deque_and_dump): Likewise.
13042
13043 2004-07-26  Falk Hueffner  <falk@debian.org>
13044
13045         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
13046         costs.
13047
13048 2004-07-25  Roger Sayle  <roger@eyesopen.com>
13049
13050         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
13051         value off of the stack if TARGET_USE_FFREEP.
13052
13053 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
13054
13055         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
13056         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
13057         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
13058         check on invocation of XRESIZEVEC ().
13059
13060 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
13061
13062         * c-common.c (disable_builtin_function): Rename variable n to
13063         new_disabled_builtin.
13064         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
13065         Rename local variable old to old_decl.
13066         * gensupport.c (shift_output_template): Rename parameter old to src.
13067         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
13068         old_rtx and newx to new_rtx.
13069
13070 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
13071
13072         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
13073         of c-pragma.h.
13074         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
13075         enum cpp_ttype.
13076         * c-lex.c: Likewise.
13077
13078 2004-07-25  Roger Sayle  <roger@eyesopen.com>
13079
13080         * fold-const.c (constant_boolean_node): Make extern.
13081         (make_range): Wrap long lines.
13082         (fold_cond_expr_with_comparison): Remove unnecessary call to
13083         pedantic_non_lvalue.  Add missing calls to fold_convert.
13084         (fold_truthop): Add missing calls to fold_convert.
13085         (fold): Likewise.
13086         * tree.h (constant_boolean_node): Add prototype here.
13087         * builtins.c (expand_builtin_strncmp): Add missing calls to
13088         fold_convert.
13089         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
13090         Call fold_convert and constant_boolean_node to correct types.
13091         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
13092         missing call to fold_convert to correct types.
13093
13094 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
13095             Brian Ryner  <bryner@brianryner.com>
13096
13097         PR c++/9283
13098         PR c++/15000
13099         * c-common.c (c_common_attribute_table): Allow
13100         handle_visibility_attribute to be called for types.
13101         (handle_visibility_attribute) When given a type, set the visibility
13102         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
13103         so that we can check later whether the attribute was present. Added
13104         warning if attribute applied to non class type.
13105         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
13106         decls and checking that they are consistent.
13107         * common.opt: Added -fvisibility.
13108         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
13109         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
13110         * flags.h, tree.h: Added assorted support defines for overall patch
13111         * opts.c: Added parsing support for -fvisibility.
13112         * tree.c (build_decl): Set visibility for all decls to be whatever
13113         is in force at that time.
13114         * varasm.c (default_binds_local_p_1): Reworked logic determining
13115         when to make a symbol locally bound.
13116         * doc/invoke.texi: Added documentation for -fvisibility and
13117         -fvisibility-inlines-hidden.
13118
13119 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13120
13121         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
13122         * c-common.c: Add missing casts from void * to other types.
13123         * c-decl.c: Likewise.
13124         * c-format.c: Likewise.
13125         * c-lex.c: Likewise.
13126         * c-pragma.c: Likewise.
13127         * c-typeck.c: Likewise.
13128         * defaults.h: Likewise.
13129         * genconstants.c: Likewise.
13130         * gengtype-lex.l: Likewise.
13131         * genmodes.c: Likewise.
13132         * read-rtl.c: Likewise.
13133         * rtl.c: Likewise.
13134
13135 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13136
13137         * bitmap.c: Use type-safe memory allocation macros from libiberty.
13138         * c-common.c: Likewise.
13139         * c-decl.c: Likewise.
13140         * c-lang.c: Likewise.
13141         * c-lex.c: Likewise.
13142         * c-opts.c: Likewise.
13143         * c-parse.in: Likewise.
13144         * c-typeck.c: Likewise.
13145         * genconditions.c: Likewise.
13146         * gengtype-lex.l: Likewise.
13147         * gengtype-yacc.y: Likewise.
13148         * gengtype.c: Likewise.
13149         * genmodes.c: Likewise.
13150         * gensupport.c: Likewise.
13151         * read-rtl.c: Likewise.
13152         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
13153         htab_find_slot().
13154
13155 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13156
13157         * c-decl.c (groktypename, groktypename_in_param_context): Rename
13158         variable typename to type_name.
13159         * c-lex.c (interpret_float): Likewise.
13160
13161 2004-07-25  Roger Sayle  <roger@eyesopen.com>
13162
13163         * convert.c (convert_to_real, convert_to_integer,
13164         convert_to_complex): Replace calls to build with calls to buildN.
13165         * coverage.c (tree_coverage_counter_ref): Likewise.
13166         * dojump.c (do_jump): Likewise.
13167         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
13168         * emit-rtl.c (component_ref_for_mem_expr,
13169         set_mem_attributes_minus_bitpos): Likewise.
13170         * explow.c (update_nonlocal_goto_save_area): Likewise.
13171         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
13172         expand_mult_add): Likewise.
13173         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
13174         store_constructor, get_inner_reference, expand_expr_real_1,
13175         try_casesi, try_tablejump): Likewise.
13176         * function.c (expand_function_start): Likewise.
13177         * stmt.c (emit_case_bit_tests, expand_end_case_type,
13178         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
13179         * stor-layout.c (place_union_field, layout_type): Likewise.
13180         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
13181         * varasm.c (copy_constant): Likewise.
13182
13183 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13184
13185         * c-common.c: Rename all identifiers named `new'.
13186         * c-decl.c: Likewise.
13187         * gensupport.c: Likewise.
13188         * simplify-rtx.c: Likewise.
13189         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
13190         with XNEW().
13191         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
13192         with XNEWVEC().
13193
13194 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
13195
13196         PR c/15360
13197         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
13198         declarations until after calling pushdecl.
13199         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
13200         "extern" and not on whether the declaration is initialized.
13201
13202 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
13203
13204         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
13205         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
13206         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
13207         "cpplib.h", "c-pragma.h", "c-common.h".
13208         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
13209         (solaris_register_pragmas): New functions.
13210         * config/sol2-protos.h: New file.
13211         * config/sol2.c: New file.
13212         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
13213         (REGISTER_TARGET_PRAGMAS): New macros.
13214         (solaris_pending_aligns, solaris_pending_inits)
13215         (solaris_pending_finis): New variables.
13216         * config/t-sol2 (sol2-c.o): Update dependencies.
13217         (sol2.o): New rule.
13218         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
13219         SUBTARGET_INSERT_ATTRIBUTES.
13220         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
13221         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
13222         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
13223         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
13224         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
13225         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
13226         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
13227         * config/sparc/sparc.c (sparc_attribute_table): New.
13228         (TARGET_INSERT_ATTRIBUTES): Define in terms of
13229         SUBTARGET_INSERT_ATTRIBUTES.
13230         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
13231         is defined.
13232         * doc/extend.texi (Solaris Pragmas): New section.
13233
13234 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13235
13236         * c-common.c: Rename all identifiers named `class' to `cl'.
13237         * c-common.h: Likewise.
13238         * c-parse.in: Likewise.
13239         * c-typeck.c: Likewise.
13240         * genmodes.c: Likewise.
13241         * real.c: Likewise.
13242         * real.h: Likewise.
13243         * recog.c: Likewise.
13244         * recog.h: Likewise.
13245         * regrename.c: Likewise.
13246         * tree.h: Likewise.
13247         * c-common.c (builtin_function_2): Change type of 5th parameter from
13248         int to enum built_in_function. Change type of 8th parameter from int
13249         to bool.
13250         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
13251         with GGC_CNEW().
13252         * c-typeck.c (convert_arguments): Change type of formal_prec from
13253         int to unsigned int.
13254         * genmodes.c (blank_mode): Make a few negative constants unsigned.
13255         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
13256         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
13257         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
13258         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
13259         iterator to for_all_modes () instead of an enum because enums can't
13260         be incremented in C++.
13261
13262
13263 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
13264
13265         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
13266         hard registers.
13267
13268 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13269
13270         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
13271         Handle ARRAY_RANGE_REF like ARRAY_REF.
13272
13273 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
13274
13275         * c-typeck.c (digest_init): Don't allow arrays of signed or
13276         unsigned variants of wchar_t to be initialized by wide string
13277         constants.  Do allow arrays of enumerated types compatible with
13278         wchar_t to be initialized by wide string constants.  Refine tests
13279         distinguishing wide and narrow strings and arrays.  Give specific
13280         error for arrays of other integer types initialized by string
13281         constants.
13282         (output_init_element, process_init_element): Check for
13283         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
13284         initializing with string constants.
13285
13286 2004-07-25  Richard Henderson  <rth@redhat.com>
13287
13288         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
13289         on the RESULT_DECL.
13290         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13291         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
13292         DECL_IGNORED_P to new decl.
13293
13294 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
13295
13296         * config/ia64/ia64.c (general_xfmode_operand)
13297         (destination_xfmode_operand): Delete.
13298         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
13299         * config/ia64/ia64.md (*movxf_internal): Use general_operand
13300         and destination_operand.
13301
13302 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
13303
13304         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
13305         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
13306
13307 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
13308             Zack Weinberg  <zack@codesourcery.com
13309
13310         PR 16684
13311         * c-decl.c (diagnose_mismatched_decls): Don't issue a
13312         redundant-declaration warning the first time a builtin is
13313         declared explicitly.
13314
13315 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13316
13317         * tree.h (staticp): Change return type to bool.
13318
13319 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13320
13321         * c-common.c (c_staticp): Last episode of the staticp saga.
13322
13323 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13324
13325         * c-common.h (c_staticp): Change return type from int to bool.
13326         * tree.c (staticp): Likewise.
13327         * langhooks.h (staticp): Likewise.
13328
13329 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13330
13331         * langhooks-def.h (lhd_staticp): Change return type from int to
13332         bool in prototype to match definition.
13333
13334 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13335
13336         * system.h (bool, true, false): Don't redefine as preprocessor macros
13337         in C++.
13338
13339 2004-07-24  Roger Sayle  <roger@eyesopen.com>
13340
13341         * expmed.c (init_expmed): A signed modulus by a power of two is
13342         considered cheap if its less than or equal to four instructions.
13343
13344 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13345
13346         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
13347         GGC_CNEWVAR): New macros.
13348
13349 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
13350
13351         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
13352         lists.
13353         * c-decl.c: Likewise.
13354         * c-format.c: Likewise.
13355         * c-lex.c: Likewise.
13356         * c-opts.c: Likewise.
13357         * c-pragma.c: Likewise.
13358         * c-typeck.c: Likewise.
13359         * gencheck.c: Likewise.
13360         * genconditions.c: Likewise.
13361         * genconfig.c: Likewise.
13362         * genflags.c: Likewise.
13363         * gengtype.c: Likewise.
13364         * gensupport.c: Likewise.
13365         * ggc-none.c: Likewise.
13366         * langhooks.c: Likewise.
13367         * statistics.h: Likewise.
13368         * stub-objc.c: Likewise.
13369         * java/decl.c: Likewise.
13370
13371 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
13372
13373         * config/m68k/m68k.c (output_scc_di): Fix coding style.
13374         (symbolic_operand): Fix prototype.
13375         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
13376         * config/m68k/m68k.md: Add constants for registers a0 and sp and
13377         use them, change from the "{...}" syntax to the simpler {...}
13378         syntax.
13379         (*cfv4_extendqisi2): Fix destination predicate.
13380         * config/m68k/m68k-protos.h: Remove various declarations also
13381         generated via PREDICATE_CODES.
13382
13383 2004-07-23  Mike Stump  <mrs@apple.com>
13384
13385         * c-typeck.c (convert_for_assignment): Tightened up pointer
13386         converstions that differ in signedness.
13387
13388 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
13389
13390         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
13391
13392 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13393
13394         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
13395         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
13396
13397         * gimplify.c (gimplify_compound_lval): Check for no handled
13398         operations, rather than checking for explicit list of nodes.
13399         (is_gimple_addr_expr_arg_or_indirect): New function.
13400         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
13401         redundant setting of TREE_INVARIANT.
13402         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
13403         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
13404
13405 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
13406
13407         PR tree-optimization/16688
13408         PR tree-optimization/16689
13409         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
13410         unnecessary initialization of 'tag'.
13411         (get_tmt_for): Check that the new type tag has the same alias
13412         set as the pointed-to type.
13413         (group_aliases): Only regular variables need to be removed
13414         from the alias set of a name tag.
13415         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
13416         propagation if the two types are not compatible.
13417         (merge_alias_info): Rename from replace_ssa_names_ann.
13418         Add more checking.
13419         (replace_exp_1): If both arguments are SSA_NAMEs, check that
13420         the propagation can be done.
13421         Only call merge_alias_info on pointers.
13422         (propagate_value): Likewise.
13423         * tree-ssa-copyrename.c: Include langhooks.h.
13424         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
13425         to do the merging.
13426         Do not coalesce variables with incompatible types.
13427         (rename_ssa_copies): Call replace_ssa_name_symbol.
13428         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
13429         the same type as the underlying _DECL.
13430         * tree-ssanames.c (replace_ssa_name_symbol): New function.
13431         * tree.h (replace_ssa_name_symbol): Declare.
13432
13433 2004-07-23  Richard Henderson  <rth@redhat.com>
13434
13435         PR c++/16277
13436         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
13437         unshare it properly.
13438         (gimplify_modify_expr_rhs): Push assignment from a conditional into
13439         the conditional for all non-register types.
13440
13441 2004-07-23  Richard Henderson  <rth@redhat.com>
13442
13443         * expr.c (expand_expr_real_1): Don't handle non-local variables.
13444         * expr.h (fix_lexical_addr): Remove.
13445         * function.c (NEED_SEPARATE_AP): Remove.
13446         (fix_lexical_addr): Remove.
13447         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
13448         not null decl_function_context.
13449         (create_alias_vars): Likewise.
13450         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
13451         (simple_goto_p): Likewise.
13452         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
13453         * tree-ssa-ccp.c (get_default_value): Likewise.
13454         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
13455         * tree.c (needs_to_live_in_memory): Likewise.
13456         * tree-flow-inline.h (may_be_aliased): Move...
13457         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
13458         when TREE_STATIC variables may be addressable.
13459
13460 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
13461
13462         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
13463
13464 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
13465
13466         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
13467         bitmap contents if GENERATOR_FILE is defined.
13468         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
13469         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
13470
13471 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
13472
13473         * c-decl.c (start_function): Form composite type of function types
13474         rather than copying type from previous prototype declaration.
13475
13476 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
13477
13478         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
13479         the const qualifier for the second argument in the C++ functions.
13480
13481         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
13482         specific pointer types.
13483
13484         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
13485         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
13486         for vector bool and/or vector pixel, add C++ and C missing support.
13487         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
13488         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
13489         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
13490         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
13491         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
13492         missing C++ and C support for vector bool and/or vector pixel.
13493         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
13494         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
13495         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
13496         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
13497         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
13498         C++ and C types used for vector bool and/or vector pixel.
13499         (vec_st, vec_stl): Add C++ support for vector pixel.
13500         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
13501         (vec_all_ne): Add C++ support for vector pixel.
13502
13503         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
13504         (vec_vmulesb): Add missing C++ function.
13505         (vec_perm): Fix type of third argument in C++ function.
13506         (vec_vsum4shs): Fix C++ function name.
13507         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
13508         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
13509         argument passed to the error handler in C macro.
13510         (vec_nmsub): Remove extra parens around argument names in C macro.
13511         (vec_packpx): Add missing parens in C macro.
13512
13513 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
13514
13515         * machmode.def: Remove vector modes.
13516         * config/alpha/alpha-modes.def: Add supported vector modes.
13517         * config/arm/arm-modes.def: Likewise.
13518         * config/frv/frv-modes.def: Likewise.
13519         * config/i386/i386-modes.def: Likewise.
13520         * config/rs6000/rs6000-modes.def: Likewise.
13521         * config/sh/sh-modes.def: Likewise.
13522
13523 2004-07-23  Matthias Klose  <doko@debian.org>
13524
13525         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
13526         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
13527         * config.h: Regenerate.
13528         * configure: Likewise.
13529
13530 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
13531
13532         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
13533         generated SYMBOL_REFs for labels.
13534         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
13535         Change prototype.
13536         (machopic_stub_name): Remove.
13537         (machopic_indirection_name): New function.
13538         (machopic_mcount_stub_name): Likewise.
13539         (machopic_classify_name): Remove.
13540         (machopic_function_base_sym): New function.
13541         (machpoic_classify_symbol): Likewise.
13542         (machopic_classify_ident): Remove.
13543         (machopic_define_ident): Likewise.
13544         (machopic_define_name): Likewise.
13545         (machopic_name_defined_p): Likewise.
13546         (machopic_ident_defined_p): Likewise.
13547         (darwin_strip_name_encoding): Likewise.
13548         (machopic_define_symbol): New function.
13549         * config/darwin.c (hashtab.h): Include.
13550         (machopic_defined_list): Remove.
13551         (machopic_classify_ident): Likewise.
13552         (machopic_classify_name): Likewise.
13553         (machopic_ident_defined_p): Likewise.
13554         (machopic_define_ident): Likewise.
13555         (machopic_define_name): Likewise.
13556         (machopic_symbol_defined_p): New function.
13557         (machopic_classify_symbol): Likewise.
13558         (machopic_data_defined_p): Use machopic_classify_symbol.
13559         (machopic_define_symbol): New function.
13560         (machopic_function_base_sym): New function.
13561         (machopic_non_lazy_pointers): Remove.
13562         (machopic_non_lazy_ptr_name): Likewise.
13563         (machopic_stubs): Likewise.
13564         (machopic_stub_name): Likewise.
13565         (NON_LAZY_POINTER_SUFFIX): New macro.
13566         (STUB_SUFFIX): Likewise.
13567         (machopic_indirection): New structure.
13568         (machopic_indirections): New variable.
13569         (machopic_indirection_hash): New function.
13570         (machopic_indirection_eq): Likewise.
13571         (machopic_indirection_name): Likewise.
13572         (machopic_mcount_stub_name): New function.
13573         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
13574         hash table.
13575         (machopic_indirect_data_reference): Rework to use new functions.
13576         (machopic_indirect_call_target): Likewise.
13577         (machopic_legitimize_pic_address): Likewise.
13578         (machopic_output_indirection): New function.
13579         (machopic_finish): Use it.
13580         (machopic_operand_p): Rework to use new functions.
13581         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
13582         (darwin_strip_name_encoding): Remove.
13583         (update_non_lazy_ptrs): Remove.
13584         (update_stubs): Likewise.
13585         (darwin_non_lazy_pcrel): Use new functions.
13586         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
13587         (ASM_OUTPUT_LABELREF): Likewise.
13588         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13589         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
13590         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
13591         (TARGET_STRIP_NAME_ENCODING): Do not use
13592         darwin_strip_name_encoding.
13593         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
13594         darwin_strip_name_encoding.
13595         * config/i386/darwin.h (FUNCTION_PROFILER): Use
13596         machopic_mcount_stub_name.
13597         * config/i386/i386.c (x86_output_mi_thunk): Use
13598         machopic_indirection_name, not machopic_stub_name.
13599         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
13600         machopic_function_base_sym.
13601         (print_operand): Use machopic_classify_symbol.
13602         (rs6000_emit_prologue): Use machopic_function_base_sym.
13603         (output_profile_hook): Do not use machopic_stub_name.
13604         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
13605
13606 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13607
13608         PR c/7284
13609         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
13610         as multiplication.
13611
13612 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13613
13614         * doc/implement-c.texi: New file.
13615         * doc/extend.texi (C Implementation): Move to there.
13616         * doc/gcc.texi: Include implement-c.texi.
13617         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
13618
13619 2004-07-22  Jason Merrill  <jason@redhat.com>
13620
13621         * integrate.c (copy_decl_for_inlining): Remove invisible reference
13622         handling.
13623         * tree-inline.c (setup_one_parameter): Likewise.
13624
13625 2004-07-22  Brian Booth  <bbooth@redhat.com>
13626
13627         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
13628         (substitute_and_fold): Propigate into VUSE operands when possible.
13629         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
13630         (cp_lattice_meet): Handle merging of latticevalues when
13631         UNKNOWN_VAL is present.
13632         (visit_stmt): Visit assignments with V_MUST_DEFs.
13633         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
13634         (ccp_fold): Deal with RHS' that are constant and virtual.
13635         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
13636         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
13637         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
13638         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
13639         computing immediate uses.
13640         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
13641         transition.
13642         (replace_vuse_in): New function.
13643         (likely_value): Add check of vuse operands.
13644         (get_default_value): Set the default value of virtually defined
13645         variables to UKNOWN_VAL instead of VARYING.
13646
13647 2004-07-22  Richard Henderson  <rth@redhat.com>
13648
13649         * expr.c (emit_push_insn): Don't use set_mem_attributes.
13650
13651 2004-07-22  Richard Henderson  <rth@redhat.com>
13652
13653         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
13654         variables due to conditional compilation.
13655
13656 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
13657
13658         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
13659         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
13660         Release SSA names that have been re-renamed.
13661         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
13662         variable.
13663         * tree-ssa-alias.c (init_alias_info): If aliases have been
13664         computed before, clear existing alias information.
13665         (create_name_tags): Do no fixup PT_ANYTHING pointers.
13666         If the new name tag for a pointer is different than the one it
13667         had before, mark the old tag for renaming.
13668         (replace_may_alias): New function.
13669         (group_aliases): Call it.
13670         (setup_pointers_and_addressables): Always call get_tmt_for.
13671         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
13672         once.
13673         (set_pt_anything): New local function.
13674         (set_pt_malloc): New local function.
13675         (merge_pointed_to_info): Don't merge pointed-to variables from
13676         the original pointer if the destination is pointing to an
13677         unknown location.
13678         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
13679         (add_pointed_to_var): Do not add a variable to the points-to
13680         set if the pointer is already pointing to anywhere.
13681         (collect_points_to_info_r): If the defining statement is a PHI
13682         node, only merge pointed-to information if the argument has
13683         already been visited.
13684         (get_tmt_for): Only create a new tag if the pointer didn't
13685         have one already.
13686         (dump_alias_info): Emit more information.
13687         (dump_points_to_info_for): Likewise.
13688         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
13689         try to get the annotation of an SSA_NAME.
13690         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
13691         alias sets when checking is enabled.
13692         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
13693         (eliminate): Mark basic blocks that will need
13694         EH information cleaned up.
13695         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
13696         predecessor.
13697         Initialize need_eh_cleanup.
13698         (fini_pre): Call tree_purge_all_dead_eh_edges and
13699         cleanup_tree_cfg if needed.
13700         Free need_eh_cleanup.
13701         * tree-ssa.c (verify_ssa_name): New function.
13702         (verify_def): Call it.
13703         Re-arrange to avoid printing too many error messages.
13704         (verify_use): Likewise.
13705         (verify_phi_args): Likewise.
13706         (verify_flow_insensitive_alias_info): New function.
13707         (verify_flow_sensitive_alias_info): New function.
13708         (verify_alias_info): New function.
13709         (verify_ssa): Call verify_alias_info.
13710         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
13711         program.
13712         Re-arrange to avoid printing too many error messages.
13713         * tree-ssanames.c (make_ssa_name): Clear
13714         SSA_NAME_IN_FREE_LIST.
13715         (release_ssa_name): Never release a default definition.
13716         (release_defs): New function.
13717         * tree.h: Declare it.
13718         * tree-ssa-dce.c (remove_dead_stmt): Call it.
13719
13720 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
13721
13722         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
13723         If true, do a depth-first search.  Do a breadht-first search,
13724         otherwise.
13725         (walk_use_def_chains): Add new argument IS_DFS.
13726         Update all users.
13727         * tree-flow.h (walk_use_def_chains): Update prototype.
13728
13729 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
13730
13731         * config/cris/cris.md: Tweak formatting.
13732         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
13733         (mover2side, moverside, movemside, movei, op3, andu): Replace
13734         live define_peephole:s with define_peephole2 near-equivalents.
13735         Delete the rest.
13736         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
13737         word-size modes.
13738         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
13739         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
13740         "*mov_sidesi_mem" respectively.
13741
13742 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
13743
13744         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
13745         (gimplify_build1): Move from tree-complex.c do_unop.
13746         (gimplify_build2): Move from tree-complex.c do_binop.
13747         (gimplify_build3): New.
13748         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
13749         Adjust throughout to call the functions above.
13750         * tree-flow.h: Declare the functions above.
13751         * tree-nested.c (gimplify_val): Rename to...
13752         (tsi_gimplify_val): ... this.
13753
13754         * Makefile.in (tree_complex.o): Update dependencies.
13755         (stor-layout.o): Depend on regs.h.
13756         * c-common.c (handle_vector_size_attribute): Update for
13757         vector types without corresponding vector modes.
13758         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
13759         a corresponding vector mode is not available.
13760         * print-tree.c (print_node): Print nunits for vector types
13761         * regclass.c (have_regs_of_mode): New.
13762         (init_reg_sets_1): Initialize it and use it instead
13763         of allocatable_regs_of_mode.
13764         * regs.h (have_regs_of_mode): Declare it.
13765         * stor-layout.c (layout_type): Pick a mode for vector types.
13766         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
13767         build_replicated_const, do_unop, do_binop, do_plus_minus,
13768         do_negate, expand_vector_piecewise, expand_vector_parallel,
13769         expand_vector_addition, expand_vector_operations_1,
13770         expand_vector_operations, tree_lower_operations,
13771         pass_lower_vector_ssa, pass_pre_expand): New.
13772         (expand_complex_operations, pass_lower_complex): Remove.
13773         * tree-optimize.c (init_tree_optimization_passes): Adjust
13774         pass ordering for changes in tree-complex.c.
13775         * tree-pass.h: Declare new passes.
13776         * tree.c (finish_vector_type): Remove.
13777         (make_vector_type): New.
13778         (build_vector_type_for_mode, build_vector_type): Rewritten.
13779         * tree.def (VECTOR_TYPE): Document where the number of
13780         subparts is stored.
13781         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
13782         (make_vector): Remove declaration.
13783
13784 2004-07-21  Richard Henderson  <rth@redhat.com>
13785
13786         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
13787         TREE_THIS_VOLATILE, may_aliases, or optimization level.
13788         (remove_useless_vars): Dump debugging info.
13789         (expand_used_vars): Move ...
13790         * cfgexpand.c (expand_used_vars): ... here.  Make static.
13791         * tree-flow-inline.h (set_is_used): New.
13792         (set_default_def): Use get_var_ann.
13793         * tree-flow.h: Update decls.
13794         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
13795         (create_ssa_var_map): Use it.
13796         * tree-ssa.c (set_is_used): Remove.
13797
13798 2004-07-22  Ben Elliston  <bje@au.ibm.com>
13799
13800         * gdbinit.in: Set a breakpoint on internal_error.
13801
13802 2004-07-21  Richard Henderson  <rth@redhat.com>
13803
13804         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
13805         to create a new basic block.
13806
13807 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13808
13809         PR c/15052
13810         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
13811         return type on function definitions.  Move other warnings for
13812         qualified return type to -Wreturn-type.  Do not condition any such
13813         warnings on -pedantic.  Update comments.
13814         (start_function): Only copy function type from previous prototype
13815         declaration if return types are compatible.
13816         * c-typeck.c (function_types_compatible_p): Don't condition
13817         warning for incompatibility of volatile qualifiers on the return
13818         type on -pedantic.  Update comment.
13819         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
13820
13821 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13822
13823         * c-typeck.c (set_init_index): Require designator to be of integer
13824         type.
13825
13826 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13827
13828         PR c/11250
13829         * c-parse.in (init): Change to exprtype.
13830         (primary): Set original_code for STRING to STRING_CST.
13831         Call maybe_warn_string_init for compound literals.
13832         (initdcl, notype_initdcl): Call maybe_warn_string_init.
13833         (initval): Update.
13834         * c-tree.h (maybe_warn_string_init): New.
13835         (pop_init_level, process_init_element): Use struct c_expr.
13836         (struct c_expr): Update comment.
13837         * c-typeck.c (maybe_warn_string_init): New function.
13838         (digest_init): Call it.  Additional parameter strict_string.  All
13839         callers changed.
13840         (output_init_element): Likewise.
13841         (struct constructor_stack): Use struct c_expr for
13842         replacement_value.
13843         (really_start_incremental_init, push_init_level): Update.
13844         (pop_init_level): Update.  Return struct c_expr.
13845         (process_init_level): Update.  Take struct c_expr argument.
13846
13847 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
13848
13849         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
13850         commit.
13851
13852 2004-07-21  Eric Christopher  <echristo@redhat.com>
13853
13854         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
13855         removal.
13856         * c-decl.c (pop_scope): Ditto.
13857         * calls.c (expand_call): Remove call to current_nesting_level,
13858         update comment accordingly. Remove calls to expand_start_target_temps
13859         and expand_end_target_temps.
13860         * cfgexpand.c (construct_init_block): Remove call to
13861         expand_start_bindings_and_block.
13862         (construct_exit_block): Remove call to expand_end_bindings.
13863         * expr.c (safe_from_p): Remove BIND_EXPR handling.
13864         (expand_expr_real_1): Ditto. Fix formatting.
13865         (expand_vars): Delete.
13866         * stmt.c (POPSTACK): Remove block_stack.
13867         (stmt_status): Remove x_block_stack.
13868         (block_stack): Delete.
13869         (expand_start_bindings_and_block): Ditto.
13870         (expand_start_target_temps): Ditto.
13871         (expand_end_target_temps): Ditto.
13872         (current_nesting_level): Ditto.
13873         (warn_about_unused_variables): Ditto.
13874         (expand_end_bindings): Ditto.
13875         * tree.h: Remove declarations for above.
13876
13877 2004-07-21  Steven Bosscher  <stevenb@suse.de>
13878
13879         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
13880         * rtl.c (note_insn_name): Likewise.
13881         * print-rtl.c (print_rtx): Don't print it.
13882         * cfgrtl.h (can_delete_note_p): Don't handle it.
13883         (rtl_delete_block): Likewise.
13884         * passes.c (rest_of_handle_guess_branch_prob): Remove.
13885         (rest_of_compilation): Don't call it.
13886         * predict.c (process_note_predictions, process_note_prediction,
13887         note_prediction_to_br_prob): Remove.
13888         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
13889         * stmt.c (return_prediction): Remove.
13890         (expand_value_return): Don't call it.  Don't add prediction
13891         notes for return statements.
13892
13893 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
13894
13895         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
13896         once.
13897
13898 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
13899
13900         * c-common.c (vector_types_convertible_p): Use vector types'
13901         TYPE_SIZE and TREE_TYPE instead of their mode.
13902         * convert.c (convert_to_integer): Likewise.
13903         (convert_to_vector): Likewise.
13904         * fold-const.c (fold_convert): Likewise.
13905         * varasm.c (output_constant): Likewise.
13906         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
13907         Allow a VECTOR_TYPE initializer to be made of several vectors.
13908         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
13909         of cleared and need_to_clear, and use fold_convert.
13910         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
13911         integer vectors.
13912
13913 2004-07-20  Richard Henderson  <rth@redhat.com>
13914
13915         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
13916         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
13917
13918 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
13919
13920         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
13921         enormous cost if not TARGET_HARD_MUL.
13922
13923 2004-07-20  Andrew Pinski  <apinski@apple.com>
13924
13925         PR target/16557
13926         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
13927         (ASM_SPEC): here.
13928
13929 2004-07-21  Paul brook  <paul@codesourcery.com>
13930
13931         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
13932
13933 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13934
13935         * fold-const.c (operand_equal_p): Temporarily support NULL args.
13936         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
13937         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
13938
13939 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
13940
13941         * rtl.h (plus_constant): Delete.
13942         (plus_constant_wide): Rename to plus_constant.
13943         (plus_constant_for_output_wide): Delete vestigial prototype.
13944         (GEN_INT): Remove unnecessary cast.
13945         * tree.h (build_int_2, size_int_type): Delete.
13946         (build_int_2_wide): Rename to build_int_2.
13947         (size_int_wide): Rename to size_int_kind.
13948         (size_int_type_wide): Rename to size_int_type.
13949         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
13950         Remove unnecessary cast.
13951         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
13952         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
13953         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
13954         (size_int_type_wide): Rename size_int_type.
13955         (int_const_binop): Use size_int_type.
13956         * c-lex.c (interpret_integer): Use build_int_2.
13957         * final.c (split_double): Remove unnecessary casts.
13958         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
13959
13960 2004-07-20  Richard Henderson  <rth@redhat.com>
13961
13962         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
13963         (gimplify_compound_lval): Use is_gimple_tmp_reg.
13964         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
13965         (is_gimple_tmp_reg): New.
13966         * tree-gimple.h (is_gimple_tmp_reg): Declare.
13967
13968 2004-07-20  Richard Henderson  <rth@redhat.com>
13969
13970         * tree-pretty-print.c (dump_generic_node): Dump
13971         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
13972
13973 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
13974
13975         * tree-mudflap.c (mf_set_options_fndecl): New tree.
13976         (mudflap_init): Set it.
13977         (mudflap_register_call): Remove __mf_init call.
13978         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
13979         to pass "-ignore-reads" option to libmudflap if needed.
13980
13981 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
13982
13983         PR c++/14607
13984         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
13985         (MAKE_DECL_ONE_ONLY): Undefine.
13986         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
13987         readonly_data, one_only_data_section, forget_section): New prototypes.
13988         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
13989         functions.
13990         (pa_select_section): Add one-only (COMDAT) support.
13991         * pa.h (struct machine_function): Define.
13992         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
13993         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
13994         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
13995         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
13996         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
13997         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
13998         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
13999         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
14000         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
14001         for EXTRA_SECTION_FUNCTIONS.
14002         * doc/install.texi: Update binutils requirements.
14003
14004 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14005
14006         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
14007         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
14008         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
14009         size_t.
14010         (struct VEC): Use unsigned for num and alloc.
14011         * vec.c (struct vec_prefix): Likewise.
14012         (vec_o_reserve): Adjust.
14013
14014         * dbxout.c (dbxout_type): Fix printf format.
14015
14016         * tree.h (binfo_member): Remove.
14017         * tree.c (binfo_member): Remove.
14018
14019 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
14020
14021         * tree.h: Include vec.h
14022         (DEF_VEC_P(tree)): New type.
14023         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
14024         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
14025         (BINFO_LANG_SLOT): Remove.
14026         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
14027         (struct tree_binfo): Turn base_binfos into a trailing
14028         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
14029         (binfo_lang_slots): Remove.
14030         * tree.c (binfo_lang_slots): Remove.
14031         (make_tree_binfo_stat): Take a base binfo count, not a
14032         lang slot count.  Adjust.
14033         * Makefile.in (TREE_H): Add vec.h
14034         * alias.c (record_component_aliases): Adjust BINFO access.
14035         * dbxout.c (dbxout_type): Likewise.
14036         * dwarf2out.c (gen_member_die): Likewise.
14037         * sdbout.c (sdbout_one_type): Likewise.
14038         * tree-dump.c (deque_and_dump): Likewise.
14039         * config/i386/i386.c (classify_argument,
14040         contains_128bit_aligned_vector_p): Likewise.
14041         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
14042         * doc/c-tree.texi (Classes): Update BINFO documentation.
14043
14044 2004-07-20  Steven Bosscher  <stevenb@suse.de>
14045
14046         * c-common.h (check_case_value): Remove prototype.
14047         (c_add_case_label): Adjust prototype.
14048         * c-common.c (check_case_value): Make static.
14049         (check_case_bounds): New function.
14050         (c_add_case_label): Use it.  Take new argument orig_type.
14051         * c-typeck.c (struct c_switch): New orig_type field.
14052         (c_start_case): Set it.
14053         (do_case): Pass it to c_add_case_label.
14054         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
14055         cases from here.  Add the labels in reverse order.
14056         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
14057         (add_case_node): Return nothing, don't check for duplicate cases.
14058         Insert new case nodes in a list, not in an AVL tree.
14059         (expand_end_case_type): Don't turn a case tree into a case list.
14060         (case_tree2list): Remove.
14061         * tree.h (add_case_node): Adjust prototype.
14062
14063 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
14064
14065         * genattr.c (struct range, struct function_unit,
14066         write_units, extend_range, init_range): Remove them.
14067         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
14068         Output "#define INSN_SCHEDULING" here.
14069         * genattrtab.c (struct range, struct function_unit_op,
14070         struct function_unit, struct dimension, enum operator,
14071         operate_exp, expand_units, simplify_knowing,
14072         encode_units_mask, simplify_by_exploding,
14073         find_and_mark_used_attributes, unmark_used_attributes,
14074         add_values_to_cover, increment_current_value,
14075         test_for_current_value, simplify_with_current_value,
14076         simplify_with_current_value_aux, gen_unit,
14077         write_unit_name, write_function_unit_info,
14078         write_complex_function, write_toplevel_expr,
14079         find_single_value, extend_range): Remove.
14080         (write_attr_get): Do not handle common_av->value
14081         being an FFS.
14082         (struct attr_desc): Remove func_units_p and blockage_p.
14083         (write_attr_valueq): Do not handle them.
14084         (find_attr): Do not clear them.
14085         (make_internal_attr): Do not initialize them.
14086         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
14087         * sched-vis.c (init_target_units, insn_print_units,
14088         init_block_visualization, print_block_visualization,
14089         visualize_scheduled_insns, visualize_no_unit,
14090         visualize_stall_cycles, visualize_alloc,
14091         visualize_free, target_units, get_visual_tbl_length,
14092         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
14093         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
14094         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
14095         * haifa-sched.c (blockage_range, clear_units,
14096         schedule_unit, actual_hazard, potential_hazard,
14097         insn_unit, unit_last_insn, unit_tick,
14098         actual_hazard_this_instance, potential_hazard,
14099         schedule_unit, max_insn_queue_index_value): Remove.
14100         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
14101         max_insn_queue_index.
14102         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
14103         * doc/md.texi (Processor pipeline description): Remove
14104         references to old pipeline descriptions.
14105         (Automaton pipeline description): Merge with the above.
14106         (Old pipeline description, Comparison of the two descriptions):
14107         Remove.
14108
14109         * bt-load.c (migrate_btr_def): Remove references to
14110         use_pipeline_interface.
14111         * haifa-sched.c (insn_cost, schedule_insn,
14112         schedule_block, advance_one_cycle, sched_init,
14113         queue_to_ready, sched_finish): Likewise.
14114         * modulo-sched.c (sms_schedule, advance_one_cycle,
14115         ps_has_conflicts): Likewise.
14116         * sched-rgn.c (init_ready): Likewise.
14117         (debug_dependencies): Likewise, and remove an "if (1)".
14118         * target.h (use_dfa_pipeline_interface): Remove.
14119         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14120         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14121         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14122         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14123         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14124         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14125         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14126         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14127         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14128         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14129         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14130         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14131         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14132         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14133         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14134         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14135         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14136         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14137         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
14138
14139 2004-07-19  Roger Sayle  <roger@eyesopen.com>
14140
14141         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
14142
14143 2004-07-19  Jeff Law  <law@redhat.com>
14144
14145         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
14146         (get_eq_expr_value): Use it.  Simplify slightly.
14147
14148 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
14149
14150         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
14151         (umulsidi3_32bit_r4000): Likewise.
14152
14153 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
14154
14155         * vec.h: Propagate location information properly.
14156         (VEC_T_iterate): Add result pointer parameter.
14157         (VEC_T_space): New.
14158         (VEC_T_reserve): Use it.
14159
14160 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
14161
14162         * Makefile.in (c-format.o): Depend on c-format.h.
14163         * c-format.h: New file.
14164         (struct format_char_info): Add CHAIN member.
14165         * c-format.c: Move some types and constants to c-format.h.
14166         (format_type_error): Set to -1.
14167         (struct function_format_info): Use an int for format_type.
14168         (decode_format_type): Return an int.  Return format_type_error
14169         on error.
14170         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
14171         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
14172         (scan_char_table, time_char_table, monetary_char_table): Initialize
14173         CHAIN to NULL.
14174         (n_format_types): New variable.
14175         (check_format_info_main): Handle CHAIN in format_char_info.
14176         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
14177         TARGET_N_FORMAT_TYPES.
14178         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
14179         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
14180         * config/sol2-c.c: New file.
14181         * config/t-sol2: New file.
14182         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
14183         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
14184         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
14185
14186         * doc/extend.texi (Target Format Checks): New section.
14187         (Function Attributes): Mention it.
14188         * doc/invoke.texi: Mention target format checks.
14189         * doc/sourcebuild.texi: Mention target format checks.
14190         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
14191         TARGET_FORMAT_TYPES.
14192
14193 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
14194
14195         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
14196         added.
14197         * config/s390/s390.c (regclass_map initializer): Register 35 added to
14198         ADDR_REGS.
14199         (load_multiple_operation, store_multiple_operation): Removed
14200         pointless sanity check.
14201         (s390_decompose_address): Added check for return_address_pointer_rtx.
14202         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
14203         (s390_return_address_offset): New function.
14204         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
14205         (FRAME_REGNO_P): Added check for register 35.
14206         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
14207         REG_ALLOC_ORDER): Appended entry for register 35.
14208         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
14209         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
14210         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
14211         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
14212         is eliminable using stack pointer or hard frame pointer.
14213         (REGISTER_NAMES): Added name for register 35.
14214         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
14215         pointless sanity check.
14216
14217 2004-07-19  Roger Sayle  <roger@eyesopen.com>
14218
14219         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
14220         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
14221         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
14222         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
14223         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
14224         (fold_relational_const): Tidy up handling of floating point
14225         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
14226         transformation; fold_relational_const assumes constant operands.
14227
14228 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
14229
14230         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
14231         directory.
14232
14233 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
14234
14235         * c-tree.h (struct c_expr): Define.
14236         (C_SET_EXP_ORIGINAL_CODE): Remove.
14237         (parser_build_binary_op, build_compound_expr): Update prototypes.
14238         * c-parse.in (%union): Add exprtype.
14239         (FUNC_NAME): Mark as ttype.
14240         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
14241         exprtype.
14242         (expr): Update.  Define directly in terms of expr_no_commas
14243         instead of using nonnull_exprlist.
14244         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
14245         offsetof_member_designator, typespec_nonreserved_nonattr, init,
14246         initval, designator, component_declarator,
14247         component_notype_declarator, enumerator, array_declarator,
14248         condition, exexpr, switch_statement, stmt_nocomp, stmt,
14249         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
14250         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
14251         where appropriate.
14252         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
14253         * c-common.c (c_common_truthvalue_conversion): Don't check
14254         C_EXP_ORIGINAL_CODE.
14255         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
14256         Don't use C_EXP_ORIGINAL_CODE.
14257         (default_conversion, default_function_array_conversion): Don't use
14258         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
14259         (internal_build_compound_expr): Merge into build_compound_expr.
14260         (build_compound_expr): Take two operands instead of a TREE_LIST.
14261         * objc/objc-act.c (get_super_receiver): Update calls to
14262         build_compound_expr.
14263
14264 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
14265
14266         * config/sh/sh.c (sh_use_dfa_interface): Remove.
14267         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
14268         hook_int_void_1.
14269         * config/sh/sh.md: Extract pipeline descriptions
14270         into separate files.
14271         * config/sh/sh1.md: New file, extracted from sh.md.
14272         * config/sh/sh4.md: New file, extracted from sh.md.
14273         * config/sh/shmedia.md: New file, extracted from sh.md
14274         and rewritten using new-style pipeline description.
14275
14276 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
14277
14278         * config/pa/pa.md: Delete the two remaining define_peephole
14279         patterns.
14280
14281 2004-07-18  Steven Bosscher  <stevenb@suse.de>
14282             Joseph S. Myers  <jsm@polyomino.org.uk>
14283
14284         * c-common.c (c_common_truthvalue_conversion): Don't warn if
14285         TREE_NO_WARNING is set.
14286
14287 2004-07-18  Roger Sayle  <roger@eyesopen.com>
14288
14289         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
14290         simplify_builtin_strncmp): Delete.
14291         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
14292         Change argument to accept an arglist instead of an "exp".  Assume
14293         that the return type is always integer_type_node.  Copy missing
14294         transformations from their now obsolete simplify_builtin_*
14295         equivalents.
14296         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
14297         fold_builtin_strcmp and fold_builtin_strncmp.
14298         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
14299         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
14300         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
14301
14302 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
14303
14304         * Makefile.in (tree-alias-common.o): Update dependencies.
14305
14306 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
14307
14308         * cfgloop.c (flow_loop_nested_p): Fix comment.
14309
14310 2004-07-17  Jason Merrill  <jason@redhat.com>
14311
14312         PR c++/16115
14313         * stor-layout.c (relayout_decl): New fn.
14314         * tree.h: Declare it.
14315         (DECL_BY_REFERENCE): New macro.
14316
14317 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
14318
14319         * libgcc2.c (__enable_execute_stack): New symbol.
14320         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
14321         and declare __enable_execute_stack.
14322         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
14323         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
14324         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
14325         ENABLE_EXECUTE_STACK.
14326         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
14327         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
14328         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
14329         ENABLE_EXECUTE_STACK.
14330         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14331         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
14332         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
14333         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
14334         ENABLE_EXECUTE_STACK.
14335         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14336         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14337         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14338         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
14339         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
14340         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
14341         (sparc64_initialize_trampoline): Likewise.
14342         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
14343
14344 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
14345
14346         * langhooks.h (builtin_function): New langhook.
14347         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
14348         (LANG_HOOKS_INITIALIZER): Update.
14349         * tree.h (builtin_function): Remove.
14350         * doc/tm.texi: Update.
14351         * c-tree.h (builtin_function): Declare.
14352         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
14353         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
14354         config/ia64/ia64.c, config/iq2000/iq2000.c,
14355         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
14356         config/stormy16/stormy16.c: All callers of builtin_function
14357         changed.
14358
14359 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
14360
14361         PR target/16556
14362         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
14363         Remove white space after the backslash.
14364
14365 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
14366
14367         PR rtl-optimization/16294
14368         * resource.c (return_insn_p): New predicate.
14369         (mark_target_live_regs): Use it.  Special-case return insns.
14370         (init_resource_info): Use it.  Don't scan the epilogue past
14371         a return.
14372
14373 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14374
14375         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
14376         destroy dominance information.
14377         * passes.c (rest_of_handle_loop2):  Free dominance information.
14378         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
14379         jump threading.
14380         (thread_jumps): Update dominance information and remove unreachable
14381         blocks.
14382         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
14383         information and remove the unreachable block.
14384
14385 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
14386
14387         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
14388
14389 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
14390
14391         * doc/sourcebuild.texi: Remove libf2c entry.
14392
14393 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
14394
14395         * config/i386/i386.md (movv16qi_internal): Fix typo.
14396
14397 2004-07-17  Steven Bosscher  <stevenb@suse.de>
14398
14399         * final.c (final_scan_insn): Fix broken commit from previous
14400         patch.
14401
14402 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
14403
14404         * c-typeck.c (parser_build_binary_op): Condition warnings for
14405         X<=Y<=Z on -Wparentheses instead of -Wextra.
14406         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
14407         supported for C only.
14408
14409 2004-07-17  Steven Bosscher  <stevenb@suse.de>
14410
14411         * cfgcleanup.c (try_simplify_condjump): Don't remove line
14412         notes to avoid unreachable code warnings.
14413         * toplev.c (backend_init): Don't emit line notes for
14414         unreachable code warnings.
14415
14416         * combine.c (distribute_notes): Don't distribute a
14417         REG_VTABLE_REF note.
14418         * final.c (final_scan_insn): Don't handle it.
14419         * rtl.c (reg_note_name): Remove it.
14420         * rtl.h (enum reg_node): Dito.
14421
14422         * emit-rtl.c (force_line_numbers, restore_line_number_status):
14423         Remove.
14424         * rtl.h (force_line_numbers, restore_line_number_status):
14425         Remove prototypes.
14426
14427         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
14428         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
14429         (using_eh_for_cleanups): Also moved here.
14430
14431         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
14432         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
14433         to expand_start_case and add_case_node.
14434         * stmt.c (struct nesting): Cleanup unused fields condition_code,
14435         last_unconditional_cleanup, nominal_type, printname, and
14436         line_number_status.
14437         (struct fixup_goto): Remove.
14438         (struct stmt_status): Remove x_goto_fixup_chain field.
14439         (goto_fixup_chain): Remove.
14440         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
14441         pushcase, pushcase_range): Remove.
14442         (expand_start_bindings_and_block): Don't set unused fields in
14443         the nesting stack.
14444         (expand_start_case, add_case_node): Cleanup unused formal arguments.
14445         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
14446         instead of emit_jump_if_reachable.
14447         (emit_case_nodes): Likewise.
14448         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
14449         static.
14450         (update_eh_label): Work around left-over exception handing regions.
14451         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
14452         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
14453         (pass_cleanup_cfg_post_optimizing): New pass.
14454         (init_tree_optimization_passes): Run the new pass after all
14455         optimizations.
14456         * tree.h (pushcase, pushcase_range): Remove prototypes.
14457         (expand_start_case, add_case_node): Update prototypes.
14458
14459 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
14460
14461         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
14462
14463 2004-07-16  Richard Henderson  <rth@redhat.com>
14464
14465         * builtins.c (std_expand_builtin_va_arg): Remove.
14466         (expand_builtin_va_arg): Remove.
14467         * expr.h: Don't declare them.
14468         * gimplify.c (mark_decls_volatile_r): Remove.
14469         (copy_if_shared_r): Don't call it.
14470         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
14471         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
14472         * gimple-low.c (lower_stmt): Likewise.
14473         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
14474         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
14475         * tree-ssa-operands.c (get_expr_operands): Likewise.
14476         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
14477         EXPAND_BUILTIN_VA_ARG.
14478         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
14479         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
14480         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
14481         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
14482
14483 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
14484
14485         * tree-ssa-pre.c (insert_aux): Break out if we hit
14486         a critical edge.
14487
14488 2004-07-16  Richard Henderson  <rth@redhat.com>
14489
14490         * basic-block.h (remove_fake_exit_edges): Declare.
14491         * cfganal.c (remove_fake_predecessors): Rename from
14492         remove_fake_successors; iterate over predecessors.
14493         (remove_fake_exit_edges): New.
14494         * cfgcleanup.c (try_optimize_cfg): Use it.
14495         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
14496         * predict.c (estimate_probability): Likewise.
14497         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
14498         * tree-cfg.c (make_edges): Likewise.
14499         * tree-ssa-pre.c (fini_pre): Likewise.
14500         * profile.c (instrument_edges): Don't remove_fake_edges.
14501         (branch_prob): Do it earlier here.
14502
14503 2004-07-16  Richard Henderson  <rth@redhat.com>
14504
14505         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
14506         switchification wrt CONSTRUCTOR.  Document the reason.
14507
14508 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
14509
14510         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
14511         that prevented descriptive __mf_check source location strings.
14512
14513 2004-07-16  Richard Henderson  <rth@redhat.com>
14514
14515         * tree-def (WITH_SIZE_EXPR): New.
14516         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
14517         * expr.c (expand_expr_real_1): Likewise.
14518         * gimplify.c (maybe_with_size_expr): New.
14519         (gimplify_arg, gimplify_modify_expr): Use it.
14520         (gimplify_modify_expr_to_memcpy): Take size parameter.
14521         (gimplify_modify_expr_to_memset): Likewise.
14522         (gimplify_expr): Handle WITH_SIZE_EXPR.
14523         * tree-alias-common.c (find_func_aliases): Likewise.
14524         * tree-eh.c (tree_could_trap_p): Likewise.
14525         (tree_could_throw_p): Likewise.
14526         * tree-gimple.c (is_gimple_lvalue): Likewise.
14527         (get_call_expr_in): Likewise.
14528         * tree-inline.c (estimate_num_insns_1): Likewise.
14529         (expand_calls_inline): Likewise.
14530         * tree-nested.c (convert_call_expr): Likewise.
14531         * tree-pretty-print.c (dump_generic_node): Likewise.
14532         * tree-sra.c (sra_walk_expr): Likewise.
14533         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
14534         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
14535         * tree-ssa-operands.c (get_expr_operands): Likewise.
14536         * tree-tailcall.c (find_tail_calls): Likewise.
14537
14538         * calls.c (expand_call): Reset old_stack_allocated after
14539         calling emit_stack_restore.
14540
14541 2004-07-16  Richard Henderson  <rth@redhat.com>
14542
14543         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
14544         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
14545         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
14546         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
14547         copy_res_decl_for_inlining.
14548
14549         * tree-inline.c (declare_return_variable): New modify_dest argument.
14550         Use it as the return value, when possible or manditory.  Handle
14551         TREE_ADDRESSABLE types.
14552         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
14553         replacement of CALL_EXPR.
14554
14555 2004-07-16  Richard Henderson  <rth@redhat.com>
14556
14557         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
14558         * gimple-low.c (expand_var_p): Don't check it.
14559         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
14560         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
14561         * tree-ssa-operands.c (add_stmt_operand): Likewise.
14562         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
14563         (find_referenced_vars): Don't call them.
14564         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
14565
14566 2004-07-16  Richard Henderson  <rth@redhat.com>
14567
14568         * function.c (pass_by_reference): True for all variable sized types.
14569
14570 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
14571
14572         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
14573         * tree-pretty-print.c: Include tree-chrec.h.
14574         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
14575         and POLYNOMIAL_CHREC nodes.
14576
14577 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
14578
14579         * builtins.c (expand_builtin_stpcpy): Do not create temporary
14580         reg with VOIDmode.
14581
14582 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
14583
14584         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
14585
14586 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
14587
14588         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
14589         to BASE_REGNUM.
14590         * config/s390/s390.c: Likewise.
14591         * config/s390/s390.h: Likewise.
14592
14593 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14594
14595         * config/mips/mips.md (addsi3, adddi3): Remove special handling
14596         of $sp adds.  Remove REGNO checks from mips16 patterns.
14597
14598 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14599
14600         * config/mips/mips.md: Delete outdated comment.
14601
14602 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14603
14604         * config/mips/mips.c (get_float_compare_codes): Delete.
14605         (mips_emit_compare): New function, mostly extracted from
14606         get_float_compare_codes and gen_conditional_branch.
14607         (gen_conditional_branch, gen_conditional_move): Use it.
14608
14609 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
14610
14611         * genautomata.c (add_vect): Speedup by using integers as
14612         bit-vectors for walking through the comb_vect and finding
14613         a match.
14614
14615 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14616
14617         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
14618         operand is an uns_arith_operand; use subtraction otherwise.
14619         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
14620         not just arith_operands.
14621
14622 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14623
14624         * config/mips/mips-protos.h (gen_int_relational): Delete.
14625         (mips_emit_scc): Declare.
14626         * config/mips/mips.c (internal_test): Delete.
14627         (sle_operand, sleu_operand): New functions.
14628         (map_test_to_internal_test, gen_int_relational): Delete.
14629         (mips_emit_binary, mips_relational_operand_ok_p)
14630         (mips_emit_int_relational, mips_zero_if_equal)
14631         (mips_emit_scc): New functions.
14632         (gen_conditional_branch): Rework to use mips_emit_int_relational.
14633         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
14634         sleu_operand.
14635         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
14636         (sltu, sleu): Use mips_emit_scc.
14637         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
14638         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
14639         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
14640
14641 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14642
14643         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
14644
14645 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14646
14647         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
14648         (*sne_[sd]i): Likewise sne_[sd]i_zero.
14649         (*sgt_[sd]i): ...and sgt_[sd]i.
14650         (*slt_[sd]i): ...and slt_[sd]i.
14651         (*sgtu_[sd]i): ...and sgtu_[sd]i.
14652         (*sltu_[sd]i): ...and sltu_[sd]i.
14653         (*sleu_[sd]i): ...and sleu_[sd]i_const.
14654         Name previously unnamed mips16 patterns.  Formatting fixes.
14655
14656 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14657
14658         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
14659         (branch_type): Delete.
14660         (gen_conditional_branch, gen_conditional_move)
14661         (mips_gen_conditional_trap): Update after name change.  Get the
14662         comparison mode from cmp_operands[0].
14663         * config/mips/mips.h (cmp_type, branch_type): Delete.
14664         (cmp_operands): Renamed from branch_cmp.
14665         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
14666         name change.  Don't set branch_type.
14667         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
14668         mode class of cmp_operands[0] rather than branch_type.  Update after
14669         name change.
14670
14671 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14672
14673         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
14674         of 0...255 to 0 when inside a SET.
14675
14676 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
14677
14678         * config/mips/mips.md: Remove mips16 define_peepholes.
14679
14680 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
14681
14682         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
14683         (fini_pre): Remove fake edges.
14684
14685 2004-07-15  Richard Henderson  <rth@redhat.com>
14686
14687         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
14688         (get_indirect_ref_operands, get_call_expr_operands): ... these.
14689
14690 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
14691
14692         * vec.h (VEC_address): New function.
14693
14694 2004-07-14  Jason Merrill  <jason@redhat.com>
14695
14696         PR middle-end/15885
14697         * gimplify.c (gimplify_arg): New fn, split out from...
14698         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
14699
14700 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
14701
14702         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
14703         generate code which is generated by pushqi1 now
14704         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
14705
14706 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
14707
14708         * combine.c (simplify_set): match the mode of the constant 0 with
14709         the tested operand to match the compare behaviour and the
14710         simplify_relational_operation() expectation.
14711
14712 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
14713
14714         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
14715         ("bordered"): Same.
14716
14717 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
14718
14719         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
14720         unconditionally.
14721         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
14722
14723 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
14724
14725         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
14726         calls in mips16 code.
14727
14728 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
14729
14730         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
14731         the destination of the li as well as for the neg.
14732
14733 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
14734
14735         g++/15861
14736         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
14737         * cgraph.h: Update declaration.
14738         * c-decl.c (build_cdtor): Update call with default priority.
14739         * coverage.c (create_coverage): Ditto.
14740         * tree-mudflap.c (mf_init_fndecl): New tree.
14741         (mudflap_init): Set it.
14742         (mudflap_register_call): Arrange to call __mf_init before the first
14743         __mf_register call.
14744         (mudflap_finish_file): Mark the mudflap static initializer as extra
14745         high priority, to beat all C++ static constructors.
14746
14747 2004-07-15  Jeff Law  <law@redhat.com>
14748
14749         * loop.c (check_insn_for_givs): Restore check for code labels that was
14750         accidentally deleted by a recent checkin.
14751
14752 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
14753
14754         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
14755         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
14756
14757 2004-07-14  Richard Henderson  <rth@redhat.com>
14758
14759         * print-tree.c (print_node): Fix casts last change.
14760
14761 2004-07-15  Paul Brook  <paul@codesourcery.com>
14762
14763         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
14764         to TARGET_UNWIND_INFO.
14765         * except.c (output_function_exception_table): Ditto.
14766         * except.h: Ditto.
14767         * opts.c (decode_options): Ditto.
14768         * passes.c (rest_of_handle_final): Ditto.
14769         * final.c (final_start_function): Ditto.
14770         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
14771         target hook.
14772         * targhooks.h (default_unwind_emit): Declare.
14773         * targhooks.c (default_unwind_emit): New function.
14774         * target-def.h: Define and use TARGET_UNWIND_EMIT.
14775         * target.h (struct gcc_target): Add unwind_emit.
14776         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
14777         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
14778         Remove IA64_UNWIND_EMIT.
14779         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
14780
14781 2004-07-14  Richard Henderson  <rth@redhat.com>
14782
14783         * print-tree.c (print_node): Handle SSA_NAME.
14784
14785 2004-07-14  James E Wilson  <wilson@specifixinc.com>
14786
14787         PR target/16325
14788         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
14789         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
14790
14791 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
14792
14793         * expr.c (expand_assignment): Reenable bitfield += optimizations.
14794         Use alias set 0 for memory, do proper mode calculations and adjust
14795         address for memories.
14796
14797 2004-07-14  Per Bothner  <per@bothner.com>
14798
14799         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
14800         structure with extra column field.
14801         * tree.c (expand_location):  Also fill in column field.
14802         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
14803         gets confused by the two conditionally-compiled definitions.
14804
14805 2004-07-14  Eric Christopher  <echristo@redhat.com>
14806
14807         * calls.c (expand_call): Fix typo in comment.
14808
14809 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
14810
14811         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
14812         comparision of TFmode.
14813
14814 2004-07-14  Richard Henderson  <rth@redhat.com>
14815
14816         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
14817         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
14818         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
14819         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
14820         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
14821         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14822         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
14823         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
14824         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
14825
14826 2004-07-14  Mike Stump  <mrs@apple.com>
14827
14828         * config/darwin.h (WINT_TYPE): Define to be int to match
14829         system header files.
14830
14831 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
14832
14833         * config/xtensa/xtensa.c (function_arg_advance): Check for args
14834         that must be passed in the stack.
14835         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
14836         arguments if the size is not a constant.
14837
14838 2004-07-14  Per Bothner  <per@bothner.com>
14839
14840         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
14841         instead of EXPR_LOCUS in a boolean context, which is always true
14842         if --enable-mapped-location.
14843         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
14844
14845 2004-07-14  Richard Henderson  <rth@redhat.com>
14846
14847         * dominance.c (struct dom_info): Add fake_exit_edge.
14848         (init_dom_info): Allocate it.
14849         (free_dom_info): Free it.
14850         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
14851         in two passes.
14852         (calc_idoms): Honor fake_exit_edge.
14853
14854 2004-07-13  Jason Merrill  <jason@redhat.com>
14855
14856         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
14857         (rhs_test_for): New fn.
14858         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
14859         * tree-gimple.h: Declare them.
14860         * gimplify.c (gimplify_modify_expr): Use the new fns.
14861
14862 2004-07-14  Richard Henderson  <rth@redhat.com>
14863
14864         * config/arm/arm-protos.h (arm_va_arg): Remove.
14865         * config/arm/arm.c (arm_va_arg): Remove.
14866         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
14867         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
14868
14869 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14870
14871         * pa.c (fix_range): New function to mark a range(s) of registers as
14872         fixed registers.
14873         (override_options): Call fix_range if the -mfixed-range option string
14874         is not empty.
14875         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
14876         * doc/invoke.texi (-mfixed-range): Document new option.
14877
14878 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
14879
14880         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
14881         for TARGET_64BIT.
14882         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
14883
14884 2004-07-14  Roger Sayle  <roger@eyesopen.com>
14885
14886         * expmed.c (expand_sdiv_pow2): New function to expand signed division
14887         by a positive power of two, split out from expand_divmod.  Provide
14888         an alternate implementation when shifts are expensive.  Lower the
14889         threshold for using a branchless implementation to BRANCH_COST >= 2.
14890         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
14891
14892 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14893
14894         * tree-dfa.c (make_rename_temp): *Really* work just
14895         like create_tmp_var if called while outside SSA form.
14896
14897 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
14898
14899         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
14900         for division by zero.
14901         ("umodsi3"): Likewise.
14902
14903 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
14904
14905         * config/mips/mips.c (mips_output_move): When generating mips16 code,
14906         force loads of negative constants to be split.
14907         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
14908         Generalize SImode li/neg splitter to cope with other modes.
14909
14910 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14911
14912         * expmed.c: Remove more references to QUEUED in the comments.
14913         * expr.c: Likewise.
14914
14915 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
14916
14917         Revert:
14918         2004-07-13  Richard Henderson  <rth@redhat.com>
14919         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
14920         correctly.
14921
14922 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14923
14924         * tree-dfa.c (make_rename_temp): Work just like
14925         create_tmp_var if called while outside SSA form.
14926
14927 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
14928
14929         * expr.c (enqueue_insn, finish_expr_for_function,
14930         protect_from_queue, queued_subexp_p, mark_queue,
14931         emit_insns_enqueued_after_mark, emit_queue,
14932         expand_increment): Remove.
14933         (store_constructor): Expand increment as an assignment.
14934         (expand_expr_real_1 <case PREINCREMENT_EXPR,
14935         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
14936         case POSTDECREMENT_EXPR>): Abort.
14937         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
14938         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
14939         protect_from_queue, emit_queue, queued_subexp_p): Remove.
14940         * function.h (pending_chain, x_pending_chain): Remove.
14941         * rtl.def (QUEUED): Remove.
14942
14943         * emit-rtl.c (copy_insn_1, copy_most_rtx,
14944         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
14945         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
14946         encode_units_mask): Likewise.
14947         * local-alloc.c (equiv_init_varies_p): Likewise.
14948         * rtl.c (copy_rtx): Likewise.
14949         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
14950         * simplify-rtx.c (simplify_gen_subreg): Likewise.
14951         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
14952
14953         * builtins.c (expand_builtin, expand_builtin_apply,
14954         expand_builtin_mathfn, expand_builtin_mathfn_2,
14955         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
14956         Remove calls to emit_queue and protect_from_queue.
14957         * calls.c (expand_call, precompute_arguments,
14958         precompute_register_parameters, rtx_for_function_call,
14959         store_one_arg): Likewise.
14960         * dojump.c (do_compare_and_jump, do_jump): Likewise.
14961         * explow.c (memory_address): Likewise.
14962         * expmed.c (clear_by_pieces_1, clear_storage,
14963         clear_storage_via_libcall, emit_group_load,
14964         emit_group_store, emit_store_flag,
14965         expand_expr_real_1, store_by_pieces,
14966         store_constructor, store_expr, try_casesi,
14967         try_tablejump): Likewise.
14968         * function.c (expand_pending_sizes): Likewise.
14969         * optabs.c (emit_cmp_and_jump_insns,
14970         emit_conditional_add, emit_conditional_move,
14971         expand_fix, expand_float, prepare_cmp_insn): Likewise.
14972         * stmt.c (emit_case_bit_tests,
14973         expand_asm_expr, expand_computed_goto,
14974         expand_decl_init, expand_end_case_type,
14975         expand_end_stmt_expr, expand_expr_stmt_value,
14976         expand_return, expand_start_case,
14977         optimize_tail_recursion): Likewise.
14978         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
14979         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
14980
14981 2004-07-14  Ben Elliston  <bje@au.ibm.com>
14982
14983         * vec.h: Comment fix.
14984
14985 2004-07-13  Richard Henderson  <rth@redhat.com>
14986
14987         * target.h (struct gcc_target): Add calls.pass_by_reference.
14988         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
14989         * function.c (pass_by_reference): Use the hook.
14990         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
14991         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
14992         (hook_pass_by_reference_must_pass_in_stack): New.
14993         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
14994         (alpha_pass_by_reference): New.
14995         (TARGET_PASS_BY_REFERENCE): New.
14996         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
14997         * config/arc/arc.c (arc_pass_by_reference): New.
14998         (TARGET_PASS_BY_REFERENCE): New.
14999         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15000         (FUNCTION_ARG_CALLEE_COPIES): True.
15001         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
15002         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
15003         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
15004         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15005         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15006         * config/cris/cris.c (cris_pass_by_reference): New.
15007         (TARGET_PASS_BY_REFERENCE): New.
15008         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
15009         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
15010         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15011         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
15012         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15013         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
15014         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
15015         (frv_function_arg_pass_by_reference): Remove.
15016         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15017         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
15018         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
15019         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
15020         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15021         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
15022         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
15023         (ia64_pass_by_reference): Rename from
15024         ia64_function_arg_pass_by_reference.
15025         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15026         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15027         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
15028         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
15029         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
15030         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15031         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
15032         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
15033         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
15034         (m32r_pass_by_reference): Adjust prototype.  Make static.
15035         Handle mode sizes correctly.
15036         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15037         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
15038         (m68hc11_function_arg_pass_by_reference): Remove.
15039         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15040         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
15041         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
15042         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15043         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
15044         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
15045         (mips_va_arg): Use pass_by_reference.
15046         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
15047         Handle mode sizes correctly.
15048         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15049         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
15050         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
15051         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
15052         (mmix_pass_by_reference): Rename from
15053         mmix_function_arg_pass_by_reference.
15054         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15055         (FUNCTION_ARG_CALLEE_COPIES): True.
15056         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
15057         (mn10300_pass_by_reference): New.
15058         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15059         (FUNCTION_ARG_CALLEE_COPIES): True.
15060         * config/pa/pa.c (pa_pass_by_reference): New.
15061         (TARGET_PASS_BY_REFERENCE): New.
15062         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15063         (FUNCTION_ARG_CALLEE_COPIES): True.
15064         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
15065         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
15066         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
15067         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15068         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
15069         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
15070         (s390_pass_by_reference): Rename from
15071         s390_function_arg_pass_by_reference.
15072         (s390_function_arg_advance): Don't query pass-by-ref.
15073         (s390_function_arg): Likewise.
15074         (s390_gimplify_va_arg): Use pass_by_reference.
15075         (s390_call_saved_register_used): Likewise.
15076         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15077         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
15078         (shcompact_byref, sh_pass_by_reference): New.
15079         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15080         (SHCOMPACT_BYREF): Remove.
15081         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
15082         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
15083         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
15084         (sparc_gimplify_va_arg): Use pass_by_reference.
15085         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15086         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15087         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
15088         (v850_pass_by_reference): New.
15089         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15090         (FUNCTION_ARG_CALLEE_COPIES): True.
15091         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
15092         FUNCTION_ARG_PASS_BY_REFERENCE docs.
15093
15094 2004-07-14  Richard Henderson  <rth@redhat.com>
15095             Richard Sandiford  <rsandifo@redhat.com>
15096
15097         * config/mips/mips-protos.h (mips_va_arg): Delete.
15098         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
15099         * config/mips/mips.c: Include tree-gimple.h.
15100         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
15101         (mips_arg_info): Remove special handling of must_pass_in_stck args.
15102         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
15103         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
15104
15105 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
15106
15107         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
15108         arguments for COND_EXPR in big-endian adjustment code.
15109
15110 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15111
15112         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
15113         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
15114         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
15115         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
15116
15117 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
15118
15119         PR tree-optimization/16443
15120         * tree-ssa-alias.c: Add more description for
15121         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
15122         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
15123         clobbering of call-clobbered and addressable variables.  If
15124         there are any before aliases have been computed, add them.
15125
15126 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
15127
15128         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
15129         verification.
15130
15131 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
15132
15133         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
15134         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
15135         to the same type.
15136
15137 2004-07-13  Per Bothner  <per@bothner.com>
15138
15139         * collect2.c (main):  Handle --no-demangle and --demangle flags.
15140
15141 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
15142
15143         * Makefile.in (OBJS-common): Add tree-data-ref.o.
15144         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
15145         (tree-data-ref.o): New rule.
15146         * lambda.h: New file.
15147         * tree-data-ref.c: New file.
15148         * tree-data-ref.h: New file.
15149         * tree.c (int_cst_value, tree_fold_gcd): New functions.
15150         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
15151
15152 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
15153
15154         PR target/13926
15155         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
15156         * config/sparc/sparc.c (output_ubranch): New function.
15157         * config/sparc/sparc.md (jump pattern): Use it.
15158
15159 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
15160
15161         PR target/16494
15162         * config/sparc/sparc.c (output_cbranch): Properly guard
15163         the code handling far branches with TARGET_V9.
15164         * config/sparc/sparc.md (length attribute): Document the
15165         side-effect of having a length greater or equal to 3.
15166
15167 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
15168             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
15169
15170         PR target/15186
15171         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
15172         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
15173
15174 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
15175             Martin Sebor  <sebor@roguewave.com>
15176
15177         PR target/12602
15178         * doc/invoke.texi (SPARC options): Document -threads
15179         and -pthreads on Solaris.
15180
15181 2004-07-13  Richard Henderson  <rth@redhat.com>
15182
15183         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
15184         by reference.
15185         (ind_gimplify_va_arg_expr): Remove.
15186         * tree.h (ind_gimplify_va_arg_expr): Remove.
15187         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
15188         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
15189         argsp to be null.
15190
15191         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
15192         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
15193         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
15194         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
15195         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
15196
15197 2004-07-13  Richard Henderson  <rth@redhat.com>
15198
15199         * function.c (pass_by_reference): New.
15200         (assign_parm_find_data_types): Use it.
15201         * calls.c (initialize_argument_information): Likewise.
15202         (emit_library_call_value_1): Likewise.
15203         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
15204         * function.h (pass_by_reference): Declare.
15205
15206 2004-07-13  Richard Henderson  <rth@redhat.com>
15207
15208         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
15209         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
15210         * expr.h (MUST_PASS_IN_STACK): Remove.
15211         * system.h (MUST_PASS_IN_STACK): Poison.
15212         * tree.h (must_pass_in_stack_var_size): Declare.
15213         (must_pass_in_stack_var_size_or_pad): Declare.
15214         * calls.c (must_pass_in_stack_var_size): New.
15215         (must_pass_in_stack_var_size_or_pad): Rename from
15216         default_must_pass_in_stack.
15217         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
15218         (TARGET_MUST_PASS_IN_STACK): New.
15219         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
15220         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
15221         (TARGET_MUST_PASS_IN_STACK): New.
15222         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
15223         * config/frv/frv.c (frv_must_pass_in_stack): New.
15224         (TARGET_MUST_PASS_IN_STACK): New.
15225         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
15226         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
15227         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
15228         (ix86_must_pass_in_stack): Make static.
15229         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
15230         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
15231         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
15232         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
15233         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
15234         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
15235         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
15236         (mcore_must_pass_on_stack): Remove.
15237         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
15238         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
15239         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
15240         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
15241         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
15242         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
15243         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
15244         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
15245         (TARGET_MUST_PASS_IN_STACK): New.
15246         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
15247         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
15248         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
15249         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
15250         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
15251         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
15252         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
15253         MUST_PASS_IN_STACK.
15254
15255         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
15256         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
15257         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
15258         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
15259         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
15260         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
15261         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
15262         config/xtensa/xtensa.c: Use target hook.
15263
15264 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
15265
15266         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
15267         * configure: Rebuilt.
15268
15269 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
15270
15271         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
15272         * config/mips/mips.h (mips_reg_names): Don't declare.
15273         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
15274         (TARGET_NAME_REGS): Delete.
15275         (TARGET_SWITCHES): Remove -mrnames.
15276         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
15277         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
15278         in REGISTER_NAMES.
15279         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
15280         (override_options): Remove handling of TARGET_NAME_REGS.
15281
15282 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
15283
15284         * config/mips/mips.h (TARGET_*): Boolify.
15285
15286 2004-07-12  Nick Clifton  <nickc@redhat.com>
15287
15288         * config.gcc: Add sh-*-symbianelf target.
15289         * config/sh/sh.c: Add new target macros:
15290         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
15291         TARGET_CXX_IMPORT_EXPORT_CLASS.
15292         (sh_file_start): Create a definition of the .directive section.
15293         (sh_attribute): Add dllimport and dllexport attributes.
15294         * config/sh/symbian-pre.h: New file.
15295         * config/sh/symbian-post.h: New file.
15296         * config/sh/symbian.c: New file. Contains Symbian specific
15297         functions.
15298         * config/sh/sh-protos.h: Add prototypes for new functions
15299         provided by symbian.c.
15300         * config/sh/t-symbian: New file.
15301         * doc/extend.texi: Document support for dllimport and dllexport
15302         attributes by the sh-symbianelf target.
15303
15304 2004-07-12  James E Wilson  <wilson@specifixinc.com>
15305
15306         * Makefile.in (AR): Use @AR@ not ar.
15307         (NM): New.
15308         (AR_FOR_TARGET): Use $(AR) not ar for native.
15309         (NM_FOR_TARGET): Use $(NM) not nm for native.
15310         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
15311         * configure: Regenerate.
15312
15313 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
15314
15315         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
15316         special case.
15317         (ashldi3_sp64): Likewise.
15318
15319 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15320
15321         PR target/16477
15322         * pa.c (function_arg): Update comment.
15323         * pa.h (BLOCK_REG_PADDING): Define.
15324
15325 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15326
15327         PR tree-optimization/16461
15328         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
15329         arguments of phi nodes.
15330
15331 2004-07-12  Devang Patel  <dpatel@apple.com>
15332
15333         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
15334
15335 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
15336
15337         * function.c (expand_function_start): Ensure r_save is in Pmode.
15338         * calls.c (prepare_call_address): Ensure static_chain_value is
15339         in Pmode.
15340         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
15341         r_save_area are in Pmode.
15342         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
15343         fnaddr, and static_chain are in Pmode.
15344
15345 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
15346
15347         PR target/16445
15348         * config/ia64/ia64.c (bundling): Don't count ignored insns.
15349
15350 2004-07-12  Richard Henderson  <rth@redhat.com>
15351
15352         * target.h (struct gcc_target): Move gimplify_va_arg_expr
15353         next to build_builtin_va_list.
15354         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
15355         * builtins.c (gimplify_va_arg_expr): Likewise.
15356         * gimplify.c (copy_if_shared_r): Likewise.
15357
15358 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
15359
15360         * passes.c (rest_of_decl_compilation): Don't defer call of
15361         assemble_variable if its DECL_RTL is already set.
15362
15363 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
15364
15365         * cfgloop.h (struct loop): Add nb_iterations field.
15366         (current_loops): Declare.
15367         * tree-chrec.c (chrec_not_analyzed_yet,
15368         chrec_dont_know, chrec_known, count_ev_in_wider_type,
15369         chrec_contains_symbols_defined_in_loop): Remove the temporary
15370         hooks.
15371         * tree-flow-inline.h (loop_containing_stmt): New function.
15372         * tree-scalar-evolution.c: Add implementation.
15373         * tree-scalar-evolution.h: Add declarations.
15374
15375 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
15376
15377         PR rtl-optimization/15921
15378         * Makefile.in (global.o): Add recog.h.
15379
15380         * global.c (recog.h): Add the include-clause.
15381         (bb_info): New member earlyclobber.
15382         (allocate_bb_info, free_bb_info): Initialize/finish the new
15383         member.
15384         (earlyclobber_regclass, earlyclobber_regclass_length): The new
15385         global variables.
15386         (check_earlyclobber, regclass_intersect,
15387         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
15388         New functions.
15389         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
15390         (make_accurate_live_analysis): Modify pavin.
15391
15392 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
15393
15394         * tree-cfg.c (find_taken_edge): Statically compute the truth
15395         value of a predicate comparing an SSA_NAME to itself.
15396
15397 2004-07-12  Roger Sayle  <roger@eyesopen.com>
15398
15399         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
15400         rs6000 doesn't have shift-and-add or shift-and-sub instructions
15401         by returning the cost of a multiplication plus an addition.
15402
15403 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
15404
15405         PR tree-optimization/14107
15406         * gimplify.c (gimplify_return_expr): Accept a
15407         RETURN_EXPR with an error argument.
15408         * tree-optimize.c (init_tree_optimization_passes):
15409         Run pass_warn_function_return at -O0.
15410
15411 2004-07-12  Roger Sayle  <roger@eyesopen.com>
15412
15413         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
15414         index entry.
15415
15416 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
15417
15418         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
15419         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
15420         * config/mips/3000.md: Add copyright notice.  Remove automota and
15421         function units; use generic ones instead.  Only define reservations
15422         for things that are different from generic.md.  Extend each clause
15423         to include r3900.
15424         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
15425         * config/mips/mips.md: Include them. Remove define_function_units.
15426         (alu, imuldiv): New automata and units.
15427
15428 2004-07-12  Ben Elliston  <bje@au.ibm.com>
15429
15430         * doc/invoke.texi (Optimize Options): Document -frename-registers
15431         not being enabled by default at -O3.
15432
15433 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15434
15435         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
15436         floating point additions, to keep real immediate constant positive.
15437         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
15438         into X + C, and leave positive real constants as X - C.
15439
15440 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15441
15442         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
15443
15444 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15445
15446         PR tree-optimization/15654
15447         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
15448
15449 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15450
15451         * builtins.c (fold_builtin_fputs): Don't bother converting the
15452         return type to integer_type_node, as we've already checked that
15453         the result will be ignored.
15454
15455         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
15456         that signed addition, subtraction, multiplication, division,
15457         remainder, negation and absolute value may potentially trap.
15458
15459         * fold-const.c (fold_ignored_result): New function to strip
15460         non-side-effecting tree nodes from an expression whose result
15461         is ignored.
15462         (fold_convert): Call fold_ignored_result when casting a value
15463         to VOID_TYPE.
15464         (omit_one_operand):  Call fold_ignored_result on the "omitted"
15465         operand when building a COMPOUND_EXPR.
15466         (pedantic_omit_one_operand): Likewise.
15467         * tree.h (fold_ignored_result): Prototype here.
15468         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
15469         when we're going to ignore the result.
15470
15471 2004-07-11  Richard Henderson  <rth@redhat.com>
15472
15473         PR tree-opt/16383
15474         * tree-ssa-ccp.c (fold_stmt_r): Split out...
15475         * tree.c (fields_compatible_p, find_compatible_field): ... new.
15476         * tree.h (fields_compatible_p, find_compatible_field): Declare.
15477         * tree-sra.c (sra_hash_tree): Hash fields by offset.
15478         (sra_elt_eq): Use fields_compatible_p.
15479         (generate_one_element_ref): Use find_compatible_field.
15480
15481 2004-07-11  Richard Henderson  <rth@redhat.com>
15482
15483         PR tree-opt/16422
15484         * tree-sra.c (generate_one_element_init): New.
15485         (generate_element_init): Use it.
15486         (scalarize_init): Push/pop gimplify context around it.
15487         (find_new_referenced_vars_1, find_new_referenced_vars): New.
15488         * gimplify.c (gimplify_expr): Allow SSA_NAME.
15489
15490 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15491
15492         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
15493         combine.c's combine_insn_cost.
15494         * rtl.h (insn_rtx_cost): Prototype here.
15495         * combine.c (combine_insn_cost): Delete function.
15496         (combine_validate_cost): Update callers of combine_insn_cost to
15497         call insn_rtx_cost instead.
15498         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
15499         requesting the rtx_cost of call and/or jump instructions.
15500
15501         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
15502         rtx_cost directly.  Don't request/use the cost of call or jump
15503         instructions.  Return -1 if the cost of any instruction can't be
15504         determined (or the BB contains a function call).
15505         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
15506         -1 (i.e. can't determine the cost of any instruction or the basic
15507         block contains a subroutine call).
15508         (find_if_case_2): Likewise.
15509
15510 2004-07-11  Roger Sayle  <roger@eyesopen.com>
15511
15512         * rs6000.c (struct processor_costs): Change semantics of fields to
15513         include the COST_N_INSNS scaling, and update all initializers.
15514         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
15515         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
15516         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
15517         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
15518
15519 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15520
15521         * LANGUAGES: Remove obsolete information.
15522
15523 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
15524
15525         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
15526         SIGBUS signal frames, the PSW address points *to* the faulting
15527         instruction, not after it.
15528
15529 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
15530
15531         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
15532         added to TLS symbol addresses.
15533
15534 2004-07-11  Richard Henderson  <rth@redhat.com>
15535
15536         * expmed.c (init_expmed): Use stack-local structures for
15537         temporary rtl.  Don't recognize shifts.
15538
15539 2004-07-11  Richard Henderson  <rth@redhat.com>
15540
15541         * expr.c (store_expr): Don't fiddle subreg promotion for types
15542         with precision smaller than the mode.
15543
15544 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15545
15546         * tree.h (all_types_permanent): Remove.
15547
15548 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15549
15550         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
15551         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
15552         * langhooks.c (lhd_clear_binding_stack): Remove.
15553         * langhooks-def.h (lhd_clear_binding_stack,
15554         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
15555         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
15556         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
15557         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15558         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
15559         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
15560         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
15561         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
15562         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
15563         * tree.h (poplevel): Don't declare.
15564         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
15565         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15566         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
15567         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
15568         Remove.
15569
15570 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
15571
15572         PR tree-optimization/16437
15573         * c-common.c (shorten_compare): Don't mark result of conversion to
15574         narrower signed type as overflowing.
15575         * fold-const.c (decode_field_reference): Determine whether
15576         signedness comes from outer type using precision rather than size.
15577
15578 2004-07-11  Phil Edwards  <phil@codesourcery.com>
15579
15580         * configure.ac:  Alphabetize --enable-checking list, add
15581         missing valgrind entry.
15582         * configure:  Regenerate.
15583
15584 2004-07-11  Phil Edwards  <phil@codesourcery.com>
15585
15586         * doc/install.texi (Testing):  Fix syntax in "make check" example.
15587
15588 2004-07-10  James E Wilson  <wilson@specifixinc.com>
15589
15590         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
15591
15592 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15593
15594         PR rtl-optimization/16001
15595         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
15596         niter_expr.
15597
15598 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
15599
15600         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
15601
15602 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
15603             James Morrison  <phython@gcc.gnu.org>
15604
15605         * doc/contrib.texi (Contributors): Add gfortran contributors and
15606         fix a couple of typos.
15607
15608 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15609
15610         PR rtl-optimization/15387
15611         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
15612         to incoming args space correctly.
15613
15614 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15615
15616         * pa.c (output_indirect_call): Only use %r2 as the link register in
15617         indirect calls with the long PA 2.0 pc-relative branch.
15618
15619 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
15620
15621         * config/i386/i386.c (override_options): Pick a 64-bit CPU
15622         for the default tuning if TARGET_64BIT.
15623
15624 2004-07-10  Richard Henderson  <rth@redhat.com>
15625
15626         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
15627         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
15628
15629 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
15630
15631         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
15632         * expmed.c (store_bit_field, extract_bit_field): Remove last
15633         argument.
15634         * builtins.c (expand_builtin_signbit): Adjust callers.
15635         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
15636         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
15637         * ifcvt.c (noce_emit_move_insn): Likewise.
15638         * stmt.c (expand_return): Likewise.
15639         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
15640         store_field, expand_expr_real_1): Likewise.
15641
15642 2004-07-10  Richard Henderson  <rth@redhat.com>
15643
15644         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
15645
15646 2004-07-09  Mike Stump  <mrs@apple.com>
15647
15648         * config/darwin.c (no_dead_strip): Add.
15649         (HAVE_DEAD_STRIP): Add.
15650         (darwin_emit_unwind_label): Ensure that we don't dead code strip
15651         the .eh label.
15652
15653 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15654
15655         * tree-ssa-loop-im.c: New file.
15656         * Makefile.in (tree-ssa-loop-im.o): Add.
15657         * cfgloop.c (superloop_at_depth): New function.
15658         * cfgloop.h (superloop_at_depth): Declare.
15659         * common.opt (ftree-lim): New flag.
15660         * expr.c (array_ref_up_bound): New function.
15661         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
15662         * timevar.def (TV_LIM): New timevar.
15663         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
15664         computing immediate uses of a phi node.
15665         * tree-flow.h (struct tree_ann_common_d): Add aux field.
15666         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
15667         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
15668         * tree-pass.h (pass_lim): Declare.
15669         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
15670         functions.
15671         (pass_lim): New pass structure.
15672         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
15673         * tree.c (in_array_bounds_p): New function.
15674         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
15675         (in_array_bounds_p, array_ref_up_bound): Declare.
15676         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
15677         * doc/passes.texi (tree-ssa-loop-im.c): Document.
15678
15679 2004-07-09  Richard Henderson  <rth@redhat.com>
15680
15681         * builtins.c (expand_builtin_stpcpy): Don't modify len.
15682
15683         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
15684         with prejudice.
15685
15686 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
15687
15688         * flags.h: Delete redundant prototypes that are being generated
15689         in options.h from common.opt.
15690         * common.opt: Add in the expository comments formerly in flags.h.
15691
15692 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15693
15694         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
15695         available for use only when TARGET_MMX/_SSE is set, and check for
15696         variable argument function if any register count is non-zero.
15697         (function_arg): Correctly suppress repeated warnings for passing SSE
15698         vectors are arguments without SSE enabled.
15699         (ix86_function_arg_boundary): Without SSE enabled, the use of what
15700         would be SSE register modes does no longer influence the alignment.
15701
15702 2004-07-09  Richard Henderson  <rth@redhat.com>
15703
15704         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
15705         Always align upward to arg boundary.  Use size_in_bytes/round_up.
15706         Maintain type-correctness of constants.
15707         * stor-layout.c (round_up, round_down): Special-case powers of 2.
15708
15709 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
15710
15711         * config/sparc/sparc.c (*_costs): Scale instruction costs
15712         by COSTS_N_INSNS.
15713         (sparc_rtx_costs): Adjust as appropriate.
15714
15715 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15716
15717         * config/i386/mm3dnow.h: New.
15718         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
15719
15720 2004-07-09  Richard Henderson  <rth@redhat.com>
15721
15722         * simplify-rtx.c (simplify_const_relational_operation): Only
15723         look at bounds of scalar integers.
15724
15725 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15726
15727         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
15728
15729 2004-07-09  Andrew Pinski  <apinski@apple.com>
15730
15731         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
15732         always referenced.
15733         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
15734         UOBJC_METACLASS_decl.
15735
15736 2004-07-09  James E Wilson  <wilson@specifixinc.com>
15737
15738         PR target/16364
15739         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
15740         do return a parallel if hfa_mode == XFmode and mode == TImode.
15741
15742 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15743
15744         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
15745         permissible for unary plus.
15746
15747 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15748
15749         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
15750         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
15751         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
15752         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
15753         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
15754         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
15755         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
15756         (BUILTIN_xxxIMAX): New.
15757         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
15758         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
15759         BUILT_IN_PARITYIMAX.
15760
15761 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
15762
15763         * config/sparc/sparc.h (processor_costs): Define.
15764         (sparc_costs): Declare.
15765         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
15766         hypersparc_costs, sparclet_costs, ultrasparc_costs,
15767         ultrasparc3_costs): New.
15768         (sparc_override_options): Set sparc_costs as appropriate.
15769         (sparc_rtx_costs): Use sparc_costs instead of messy
15770         conditionals.
15771
15772 2004-07-09  Steven Bosscher  <stevenb@suse.de>
15773
15774         * doc/md.texi (Processor pipeline description): Mention that
15775         the old pipeline description is deprecated.
15776
15777         * config/rs6000/7450.md (automaton ppc7450): Split up, move
15778         mciu_7450 function unit to...
15779         (automaton ppc7450mciu): ...new automaton.
15780
15781         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
15782         (schedule_block): Don't consider inserting bubbles.
15783         (sched_init): Don't initialize DFA bubbles.
15784         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
15785         TARGET_SCHED_DFA_BUBBLE): Remove.
15786         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
15787         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
15788         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
15789
15790         * stmt.c (conditional_context): Remove prototype.
15791         * tree.h (conditional_context): Remove.
15792         * tree-cfg.c (pre_insert_on_edge): Remove.
15793
15794         * c-common.h (c_expand_asm_operands): Remove prototype.
15795         * c-typeck.c (c_expand_asm_operands): Remove.
15796
15797 2004-07-09  Jan Beulich  <jbeulich@novell.com>
15798
15799         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
15800         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
15801         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
15802         and V8QI are class SSE. All sufficiently small remaining vector modes
15803         must be passed in one or two integer registers.
15804         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
15805         returned in memory.
15806         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
15807         __builtin_ia32_pmuludq128 have non-uniform argument and return types
15808         and must thus be handled explicitly.
15809         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
15810         MMX and XMM regs.
15811         (movv8qi_internal, movv4hi_internal, movv2si_internal,
15812         movv2sf_internal): Permit moving between MMX and XMM registers (since
15813         MMX areguments and return values are passed in XMM registers).
15814         (sse2_umulsidi3): Correct type and mode.
15815
15816 2004-07-09  Richard Henderson  <rth@redhat.com>
15817
15818         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
15819
15820 2004-07-09  Eric Christopher  <echristo@redhat.com>
15821
15822         * config/rs6000/40x.md: Split into two automatons.
15823
15824 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
15825             Andrew Pinski  <apinski@apple.com>
15826
15827         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
15828         on when we have more than one input file.
15829         (c_common_parse_file): Restore loop over all input files.
15830         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
15831
15832         * c-decl.c (set_type_context): New function.
15833         (pop_scope): Use it to set context of types.  When we
15834         encounter a TYPE_DECL, set the context of the attached type too.
15835         (pop_file_scope): Don't call cpp_undef_all here.
15836         (diagnose_mismatched_decls): Do not complain about a second
15837         definition of an 'extern inline' function if it's not in the
15838         same translation unit.  Do not complain about inline
15839         declaration after use if the use was in a different
15840         translation unit.
15841         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
15842         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
15843         the external scope.
15844         (pushdecl_top_level): Likewise.
15845         (grokdeclarator): Clarify what is going on with setting
15846         DECL_EXTERNAL on function types, a little.
15847         (c_write_global_declarations): Don't do anything if
15848         -fsyntax-only or errors have been encountered.
15849
15850 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
15851
15852         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
15853
15854 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15855
15856         PR target/16459
15857         * pa.c (output_indirect_call): Use %r2 as the link register when
15858         calling $$dyncall with a pc-relative branch.
15859
15860 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
15861
15862         * doc/install.texi (Binaries): Mention OpenPKG.
15863
15864 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
15865
15866         Fix PR tree-optimization/15555
15867         * tree-dfa.c (dump_variable): If the variable is a pointer
15868         SSA_NAME, also dump its points-to information.
15869         * tree-flow.h (struct ptr_info_def): Add field
15870         is_dereferenced.
15871         (dump_points_to_info_for): Declare.
15872         (debug_points_to_info_for): Declare.
15873         * tree-optimize.c (init_tree_optimization_passes): Add a
15874         second alias analysis pass after DOM2.
15875         Move pass_del_pta to a later spot.
15876         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
15877         create a name tags when we find a dereferenced pointer.  Just
15878         mark the pointer dereferenced.
15879         (collect_points_to_info_for): Move code to clear points-to
15880         information to create_name_tags.
15881         (create_name_tags): New function.
15882         (compute_flow_sensitive_aliasing): Call it.
15883         (setup_pointers_and_addressables): Mark type tags for renaming
15884         here instead of ...
15885         (create_memory_tag): ... here.
15886         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
15887         (dump_points_to_info_for): Declare extern.
15888         (debug_points_to_info_for): New function.
15889
15890 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
15891
15892         * config/arc/arc.md: Switch to DFA-based scheduler description.
15893         * config/arc/arc.c: Switch to DFA-based scheduler description.
15894
15895 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
15896
15897         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
15898         pointer.
15899
15900 2004-07-09  Richard Henderson  <rth@redhat.com>
15901
15902         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
15903         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15904         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
15905         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
15906
15907         * config/v850/v850-protos.h (v850_va_arg): Remove.
15908         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15909         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
15910         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
15911         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
15912         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
15913
15914 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
15915
15916         PR target/12133
15917         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
15918         and DImode to use +/-4k offset.
15919
15920 2004-07-09  Richard Henderson  <rth@redhat.com>
15921
15922         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
15923         Remove.
15924         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15925         (xstormy16_gimplify_va_arg_expr): Rewrite from
15926         xstormy16_expand_builtin_va_arg.
15927         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
15928
15929         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
15930         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
15931
15932         * config/sh/sh-protos.h (sh_va_arg): Remove.
15933         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15934         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
15935         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
15936
15937         * config/pa/pa-protos.h (hppa_va_arg): Remove.
15938         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15939         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
15940         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
15941
15942         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
15943         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
15944         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
15945         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
15946
15947 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15948
15949         * config/sparc/sparc.md (return): Rewrite length formula.
15950         * config/sparc/sparc.c (output_return): Pass 1 as 5th
15951         argument to final_scan_insn when in a delay slot.
15952         (output_sibcall): Likewise.
15953
15954 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
15955
15956         * arm.c (arm_cpp_interwork): New variable.
15957         (arm_override_options): Set it if TARGET_INTERWORK was on the command
15958         line.
15959         * arm.h (arm_cpp_interwork): Declare it.
15960         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
15961         __THUMB_INTERWORK__ in the preprocessor.
15962
15963 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
15964
15965         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
15966
15967 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15968
15969         PR target/16416
15970         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
15971         Override default settings to account for -m32 and -m64.
15972
15973 2004-07-08  Randolph Chung  <tausq@debian.org>
15974
15975         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
15976
15977 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
15978
15979         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
15980         before comparing it as such.
15981
15982 2004-07-08  Richard Henderson  <rth@redhat.com>
15983
15984         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
15985         temporary.  Use bit arithmetic to align.
15986
15987 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
15988
15989         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
15990         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
15991         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
15992         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
15993         add_labels_and_missing_jumps, find_jump_block,
15994         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
15995         Likewise.
15996         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
15997         link_btr_uses, move_btr_def): Likewise.
15998         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
15999         expand_builtin_expect_jump): Likewise.
16000         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
16001         * calls.c (expand_call, emit_library_call_value_1): Likewise.
16002         * cfganal.c (forwarder_block_p): Likewise.
16003         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
16004         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
16005         find_bb_boundaries): Likewise.
16006         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
16007         merge_blocks_move_predecessor_nojumps,
16008         merge_blocks_move_successor_nojumps, insns_match_p,
16009         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
16010         try_optimize_cfg): Likewise.
16011         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
16012         * cfglayout.c (skip_insns_after_block, label_for_bb,
16013         record_effective_endpoints, insn_locators_initialize,
16014         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
16015         * cfgmainloop.c (create_loop_notes): Likewise.
16016         * cfgrtl.c (delete_insn, delete_insn_chain,
16017         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
16018         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
16019         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
16020         redirect_branch_edge, force_nonfallthru_and_redirect,
16021         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
16022         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
16023         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
16024         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
16025         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
16026         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
16027         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
16028         * combine.c (combine_instructions, can_combine_p, try_combine,
16029         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
16030         distribute_notes, distribute_links, insn_cuid): Likewise.
16031         * cse.c (fold_rtx, cse_insn, cse_around_loop,
16032         invalidate_skipped_block, cse_set_around_loop,
16033         cse_end_of_basic_block, cse_main, cse_basic_block,
16034         cse_condition_code_reg): Likewise.
16035         * cselib.c (cselib_process_insn): Likewise.
16036         * ddg.c (create_ddg): Likewise.
16037         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
16038         Likewise.
16039         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
16040         gen_label_die, dwarf2out_var_location): Likewise.
16041         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
16042         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
16043         last_call_insn, active_insn_p, next_label, prev_label,
16044         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
16045         add_insn_before, remove_insn, add_function_usage_to,
16046         reorder_insns, find_line_note, remove_unnecessary_notes,
16047         emit_insn_after_1, classify_insn): Likewise.
16048         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
16049         connect_post_landing_pads, sjlj_mark_call_sites,
16050         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
16051         can_throw_internal, can_throw_external, set_nothrow_function_flags,
16052         convert_to_eh_region_ranges): Likewise.
16053         * explow.c (optimize_save_area_alloca): Likewise.
16054         * expr.c (expand_expr_real): Likewise.
16055         * final.c (insn_current_reference_address, compute_alignments,
16056         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
16057         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
16058         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
16059         propagate_block_delete_insn, propagate_one_insn,
16060         init_propagate_block_info, propagate_block, libcall_dead_p,
16061         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
16062         Likewise.
16063         * function.c (instantiate_virtual_regs, reorder_blocks_1,
16064         expand_function_start, expand_function_end, contains,
16065         thread_prologue_and_epilogue_insns,
16066         reposition_prologue_and_epilogue_notes): Likewise.
16067         * gcse.c (constprop_register, bypass_conditional_jumps,
16068         insert_insn_end_bb, gcse_after_reload): Likewise.
16069         * genemit.c (gen_expand, gen_split): Likewise.
16070         * genpeep.c (gen_peephole, main): Likewise.
16071         * global.c (build_insn_chain): Likewise.
16072         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
16073         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
16074         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
16075         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
16076         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
16077         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
16078         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
16079         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
16080         dead_or_predicable): Likewise.
16081         * integrate.c (try_constants): Likewise.
16082         * jump.c (rebuild_jump_labels, cleanup_barriers,
16083         purge_line_number_notes, init_label_info, mark_all_labels,
16084         squeeze_notes, get_label_before, get_label_after,
16085         reversed_comparison_code_parts, simplejump_p, pc_set,
16086         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
16087         delete_barrier, delete_prior_computation, delete_computation,
16088         delete_related_insns, delete_for_peephole, redirect_jump):
16089         Likewise.
16090         * lcm.c (optimize_mode_switching): Likewise.
16091         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
16092         Likewise.
16093         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
16094         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
16095         * loop-iv.c (simplify_using_assignment): Likewise.
16096         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
16097         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
16098         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
16099         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
16100         check_insn_for_givs, check_final_value, update_giv_derive,
16101         basic_induction_var, product_cheap_p, check_dbra_loop,
16102         loop_insn_first_p, last_use_this_basic_block,
16103         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
16104         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
16105         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
16106         sms_schedule_by_order): Likewise.
16107         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
16108         * postreload.c (reload_cse_simplify_operands, reload_combine,
16109         reload_cse_move2add): Likewise.
16110         * predict.c (can_predict_insn_p, estimate_probability,
16111         expected_value_to_br_prob, process_note_predictions): Likewise.
16112         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
16113         * profile.c (branch_prob): Likewise.
16114         * ra-build.c (live_out_1, livethrough_conflicts_bb,
16115         detect_webs_set_in_cond_jump): Likewise.
16116         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
16117         ra_print_rtl_with_bb): Likewise.
16118         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
16119         * recog.c (next_insn_tests_no_inequality, find_single_use,
16120         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
16121         * reg-stack.c (next_flags_user, record_label_references,
16122         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
16123         compensate_edge, convert_regs_1): Likewise.
16124         * regclass.c (scan_one_insn): Likewise.
16125         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16126         regmove_optimize, fixup_match_1, single_set_for_csa,
16127         combine_stack_adjustments_for_block): Likewise.
16128         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
16129         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
16130         find_equiv_reg): Likewise.
16131         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
16132         reload_as_needed, emit_input_reload_insns, do_output_reload,
16133         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
16134         Likewise.
16135         * reorg.c (find_end_label, emit_delay_sequence,
16136         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
16137         get_jump_flags, rare_destination, mostly_true_jump,
16138         try_merge_delay_insns, redundant_insn, own_thread_p,
16139         fill_simple_delay_slots, fill_slots_from_thread,
16140         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
16141         dbr_schedule): Likewise.
16142         * resource.c (find_basic_block, next_insn_no_annul,
16143         find_dead_or_set_registers, mark_target_live_regs): Likewise.
16144         * rtl.h (RTX_PREV): Likewise.
16145         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
16146         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
16147         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
16148         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
16149         tablejump_p, computed_jump_p, insns_safe_to_move_p,
16150         find_first_parameter_load, can_hoist_insn_p): Likewise.
16151         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
16152         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
16153         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
16154         schedule_ebbs): Likewise.
16155         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
16156         is_conditionally_protected, can_schedule_ready_p,
16157         add_branch_dependences, debug_dependencies): Likewise.
16158         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
16159         Likewise.
16160         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
16161         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
16162         set_dominates_use, ujump_to_loop_cont): Likewise.
16163         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
16164         * varasm.c (output_constant_pool_1): Likewise.
16165
16166 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16167
16168         * tree-scalar-evolution.c: New file.
16169         * tree-scalar-evolution.h: New file.
16170         * tree-ssa-loop-niter.c: New file.
16171         * Makefile.in (SCEV_H): New.
16172         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
16173         * cfgloop.h (struct loop): Add bounds field.
16174         * tree-flow.h (struct tree_niter_desc): New type.
16175         (number_of_iterations_cond, number_of_iterations_exit,
16176         loop_niter_by_eval, find_loop_niter_by_eval,
16177         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
16178         free_numbers_of_iterations_estimates): Declare.
16179         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
16180         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
16181         * doc/invoke.texi (max-iterations-to-track): Document.
16182
16183 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
16184
16185         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
16186         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
16187         (MODE_AFTER): Add cast appropriately.
16188         * config/sh/sh.md (movdi splitter): Likewise.
16189         (casesi_worker_2): Add const qualifier appropriately.
16190         (eh_return): Remove unused variable.
16191         (insv): Initialize v;
16192
16193 2004-07-08  Richard Henderson  <rth@redhat.com>
16194
16195         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
16196         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
16197         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
16198         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
16199         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
16200
16201         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
16202         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
16203         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
16204         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
16205
16206         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
16207         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
16208         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
16209         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
16210
16211         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
16212         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
16213         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
16214         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
16215
16216         * config/i860/i860-protos.h (i860_va_arg): Remove.
16217         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
16218         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
16219         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
16220
16221 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
16222
16223         * system.h: Prototype getpagesize if missing.
16224         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
16225         * configure: Regenerate.
16226         * config.in: Regenerate.
16227
16228 2004-07-08  Richard Henderson  <rth@redhat.com>
16229
16230         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
16231         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
16232         (fr30_gimplify_va_arg_expr): New.
16233         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
16234         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
16235
16236 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
16237
16238         PR target/16414
16239         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
16240         of asm_noperands result.
16241
16242 2004-07-08  Richard Henderson  <rth@redhat.com>
16243
16244         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
16245         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
16246         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
16247         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
16248
16249 2004-07-08  Richard Henderson  <rth@redhat.com>
16250
16251         * builtins.c (ind_gimplify_va_arg_expr): New.
16252         * tree.h (ind_gimplify_va_arg_expr): Declare.
16253         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
16254
16255 2004-07-08  Jan Beulich  <jbeulich@novell.com>
16256
16257         * expmed.c (extract_bit_field): Correct condition to use vec_extract
16258         patterns also on vector elements other than the first one.
16259         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
16260         break statements.
16261
16262 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
16263
16264         * config/rs6000/darwin-ldouble.c: Correct reference
16265         to the Linnainmaa paper.
16266
16267 2004-07-08  Richard Henderson  <rth@redhat.com>
16268
16269         * config/arc/arc-protos.h (arc_va_arg): Remove.
16270         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
16271         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
16272         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
16273
16274         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
16275         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
16276         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
16277         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
16278
16279 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16280
16281         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
16282
16283 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
16284
16285         * c-decl.c (static_ctors, static_dtors): Make static.
16286         (pop_file_scope): Call c_common_write_pch and
16287         cgraph_finalize_compilation_unit here.
16288         (build_cdtor): Moved here from c-objc-common.c; simplify.
16289         (c_write_global_declarations_1): Clarify comment.
16290         (c_write_global_declarations): Close the external scope before
16291         doing anything else.  Call build_cdtor, cgraph_optimize, and
16292         mudflap_finish_file here.
16293         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
16294         Clarify comment.
16295         * c-objc-common.c: No need to include cgraph.h.
16296         (build_cdtor): Moved to c-decl.c.
16297         (c_objc_common_finish_file): Delete.
16298         * c-tree.h: Update to match.
16299         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
16300         (generate_static_references): Set TREE_USED before calling finish_decl.
16301         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
16302         on the static_instances_decl.
16303
16304 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
16305
16306         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
16307         decls when there is only one input translation unit.
16308         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
16309         change of 2004-07-05; do not treat declarations with
16310         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
16311         * opts.c (cur_in_fname): Delete.
16312         * opts.h: Likewise.
16313         * tree.c: Revert changes of 2004-07-05; no special treatment
16314         for TRANSLATION_UNIT_DECLs.
16315         * Makefile.in (tree.o): Update dependencies.
16316
16317 2004-07-08  Roger Sayle  <roger@eyesopen.com>
16318
16319         * builtins.c (fold_builtin_strcpy): Merge functionality from
16320         simplify_builtin_strcpy.  Add additional len argument.  No longer
16321         static.  Remove function prototype.
16322         (fold_builtin_strncpy): Likewise integrate functionality from
16323         simplify_builtin_strncpy.  Add additional slen argument.  No
16324         longer static.  Remove function prototype.
16325         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
16326         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
16327         types of "ignore" and "unlocked" parameters to bool.
16328         (fold_builtin_1):  Add additional ignore argument.  Call renamed
16329         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
16330         builtins.  Update arguments to fold_builtin_strncpy and
16331         fold_builtin_strcpy.  Add function prototype.
16332         (fold_builtin): Add additional Boolean ignore argument to pass
16333         to fold_builtin_1.
16334         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
16335         and fold_builtin_strncpy instead of simplify_builtin_fputs,
16336         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
16337
16338         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
16339         simplify_builtin_strncpy): Delete function prototypes.
16340         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
16341         fold_builtin_strncpy): Add function prototypes here.
16342         (fold_builtin): Update function prototype with new "bool ignore".
16343
16344         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
16345         (ccp_fold_builtin):  Update call to fold_builtin.  Call
16346         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
16347         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
16348         simplify_builtin_strncpy respectively.
16349         * fold-const.c (fold): Update call to fold_builtin.
16350
16351 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
16352
16353         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
16354         to strcpy.
16355
16356         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
16357         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
16358         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
16359         * calls.c: Remove ifdefs of macros above.
16360         * functions.c: Likewise.
16361         * expr.c: Likewise.
16362
16363 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16364
16365         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
16366         (arch attribute): Delete.
16367         (current_function_calls_alloca attribute): Rename into calls_alloca.
16368         (calls_eh_return): New attribute.
16369         (leaf_function): Likewise.
16370         (length attribute): Fix formula for sibcalls.
16371         (return insn): Correctly compute the 'length' attribute.
16372         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
16373
16374 2004-07-08  Richard Henderson  <rth@redhat.com>
16375
16376         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
16377         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
16378         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
16379         * tree-eh.c (lower_eh_constructs_1): Likewise.
16380         * tree-sra.c (sra_walk_modify_expr): Likewise.
16381         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
16382         (eliminate_unnecessary_stmts): Likewise.
16383         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
16384         * tree-tailcall.c (optimize_tail_call): Likewise.
16385         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
16386
16387 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
16388             Jakub Jelinek  <jakub@redhat.com>
16389
16390         * config/i386/i386.c (override_options): Enable
16391         SSE prefetches with -mtune, as long as we are
16392         compiling for i686 or higher.  All i686 processors
16393         accept SSE prefetches as NOPS, some i586's don't.
16394
16395 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16396
16397         PR target/10567
16398         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
16399
16400 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
16401
16402         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
16403         the handling of clobbering ASM_EXPRs.
16404
16405 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16406
16407         PR target/16430
16408         * config/sparc/sparc.c (function_value): In 64-bit mode,
16409         return the aggregates larger than 16 bytes like unions.
16410
16411 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16412
16413         PR target/16199
16414         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
16415         'temp' is zero, generate new pseudos as needed and emit the
16416         sequence of insns in single-assignment form.  Resync comments
16417         with code.
16418         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
16419         function before reload.
16420
16421 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
16422
16423         * vec.c (vec_assert_fail): Remove duplicate 'function'.
16424
16425         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
16426
16427         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
16428         Allocation is signed.
16429         (VEC_reserve): Return flag, allocation is signed.
16430
16431 2004-07-08  Richard Henderson  <rth@redhat.com>
16432
16433         * tree-ssa-ccp.c (fold_stmt): Get type directly from
16434         OBJ_TYPE_REF_OBJECT.
16435
16436 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
16437             Neil Booth  <neil@daikokuya.co.uk>
16438
16439         PR c/2511
16440         PR c/3325
16441         * c-decl.c (finish_struct): Ensure bit-fields are given the
16442         correct type.
16443         * c-common.c (c_common_signed_or_unsigned_type): For C, require
16444         the precision to match as well as the mode.
16445         * expr.c (reduce_to_bit_field_precision): New function.
16446         (expand_expr_real_1): Reduce expressions of bit-field type to
16447         proper precision.
16448         * langhooks.h (reduce_bit_field_operations): New hook.
16449         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
16450         Define.
16451         * c-lang.c, objc/objc-lang.c
16452         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
16453         * objc/objc-act.c (check_ivars): Convert types to bit-field types
16454         before checking.
16455         * tree.c (build_nonstandard_integer_type): New function.
16456         * tree.h (build_nonstandard_integer_type): New prototype.
16457         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
16458         conversions between integer and boolean types as useless.
16459
16460 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
16461
16462         * c-common.c (c_common_nodes_and_builtins): Do not
16463         create __builtin_ptrdiff_t and __builtin_size_t.
16464
16465 2004-07-08  Andrew Pinski  <apinski@apple.com>
16466
16467         * Makefile.in (libbackend.o): Add -combine to the gcc
16468         command line.
16469
16470 2004-07-08  Nick Clifton  <nickc@redhat.com>
16471
16472         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
16473         Set to -Os.
16474
16475 2004-07-08  Richard Henderson  <rth@redhat.com>
16476
16477         * except.c (expand_eh_region_start, expand_eh_region_end,
16478         expand_eh_handler, expand_eh_region_end_cleanup,
16479         expand_start_all_catch, expand_start_catch, expand_end_catch,
16480         expand_end_all_catch, expand_eh_region_end_allowed,
16481         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
16482         expand_eh_region_end_fixup): Remove.
16483         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
16484         cleanups, outer_cleanups, label_chain, exception_region.
16485         (struct goto_fixup): Remove stack_level, cleanup_list_list.
16486         (struct label_chain): Remove.
16487         (struct stmt_status): Remove x_stack_block_stack.
16488         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
16489         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
16490         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
16491         end_cleanup_deferral, last_cleanup_this_contour,
16492         containing_blocks_have_cleanups_or_stack_level,
16493         any_pending_cleanups): Remove.
16494         (expand_null_return_1): Take no arguments.
16495         (expand_label, expand_naked_return, expand_return,
16496         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
16497         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
16498         expand_end_case_type): Don't use any of them.
16499         * calls.c (expand_call): Likewise.
16500         * dojump.c (do_jump): Likewise.
16501         * function.c (expand_function_end): Likewise.
16502         * expr.c (store_expr, expand_expr_real_1): Likewise.
16503         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
16504         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
16505         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
16506         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
16507         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
16508         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
16509         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
16510         for WITH_CLEANUP_EXPR.
16511         (gimple_push_cleanup): Likewise.
16512         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
16513         * print-tree.c (print_node): Likewise.
16514         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
16515         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
16516         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
16517         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
16518         (GOTO_SUBROUTINE_EXPR): Remove.
16519         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
16520         (DECL_TOO_LATE): Remove.
16521         * except.h, tree.h: Update decls.
16522
16523 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
16524
16525         * explow.c (optimize_save_area_alloca): Do not accept parameters.
16526         * passes.c (rest_of_handle_final): Handle symout.
16527         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
16528         Push timevar here.
16529         (rest_of_handle_sched): Break out SMS.  Remove ifs for
16530         flag_schedule_insns and flag_modulo_sched.
16531         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
16532         collect at the end.
16533         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
16534         (rest_of_handle_partition_blocks, rest_of_handle_sms,
16535         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
16536         rest_of_handle_mode_switching, rest_of_handle_jump,
16537         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
16538         rest_of_handle_jump2, rest_of_handle_postreload,
16539         rest_of_handle_flow2, rest_of_clean_state,
16540         rest_of_handle_shorten_branches,
16541         rest_of_handle_prologue_epilogue,
16542         rest_of_handle_branch_target_load_optimize): New.
16543         (rest_of_compilation): Call the above.  Remove ggc_collect
16544         calls moved to rest_of_handle_*.
16545         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
16546
16547         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
16548         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
16549         * except.h (set_nothrow_function_flags): Update comment.
16550         * function.c (current_function_nothrow): Remove.
16551         * output.h (current_function_nothrow): Remove.
16552         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
16553         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
16554
16555 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
16556
16557         PR bootstrap/16326
16558         * reorg.c: Revert 2004-06-30 change.
16559         (find_end_label): If HAVE_epilogue and !HAVE_return,
16560         return 0 instead of creating a label at the end of the insn chain.
16561         (optimize_skip): Account for the failure mode of find_end_label.
16562         (fill_simple_delay_slots): Likewise.
16563         (fill_slots_from_thread): Likewise.
16564         (relax_delay_slots): Likewise.
16565
16566 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
16567
16568         * tree-flow.h (addressable_vars): Declare.
16569         * tree-ssa-alias.c (addressable_vars): Define.
16570         (setup_pointers_and_addressables): Add addressable variables
16571         to addressable_vars.
16572         * tree-ssa-operands.c (get_stmt_operands): Move
16573         handling of ASM_EXPRs ...
16574         (get_asm_expr_operands): ... here.
16575         When the ASM_EXPR clobbers memory, also clobber addressable
16576         variables.
16577         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
16578         (delete_tree_ssa): Reset addressable_vars.
16579
16580 2004-07-07  Jan Beulich  <jbeulich@novell.com>
16581             Richard Henderson  <rth@redhat.com>
16582
16583         * varasm.c (assemble_variable): Use assemble_zeros for
16584         zero-initialized variables.
16585         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
16586         for SECCAT_BSS and SECCAT_TBSS.
16587
16588 2004-07-07  Jan Beulich  <jbeulich@novell.com>
16589
16590         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
16591
16592         * expmed.c (emit_store_flag): Also special-case double-word
16593         (in-)equality comparison against -1.
16594
16595         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
16596         passing arguments the containers for which are registers.
16597
16598         * calls.c (emit_library_call_value_1): Use mode of function parameter
16599         rather than that of argument since constants have none.
16600
16601 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
16602
16603         Introduce H8SX support.
16604         * expr.c (expand_strcpy): Renamed and moved to...
16605         * builtins.c (expand_movstr): ... here.  Tweak.
16606         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
16607         computed or has side effects.
16608         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
16609         unused, or if mempcpy fails.  Adjust the return value in the
16610         latter case.  Use movstr if everything else fails.
16611         * doc/md.texi (movstr): Document.
16612         (movmemM, clrmemM): Fix explanation of memory block operands.
16613         * config/h8300/h8300.md (stpcpy): Renamed to...
16614         (movstr): ... this.  Adjust.
16615         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
16616         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
16617         movmem* and clrstr* to clrmem*.
16618         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
16619         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
16620         GENERAL_REGS, always.
16621         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
16622         getting the stack pointer as addr.
16623         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
16624         from general_operand_dst.
16625         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
16626         variant of...
16627         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
16628         instead of requiring it to match only before reload.
16629         (stpcpy_internal_normal): New, normal-mode variant of...
16630         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
16631         `D' instead of requiring it to match only before reload.
16632         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
16633         mode argument.
16634         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
16635         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
16636         h8300_get_index.
16637         * config/h8300/h8300.md (attr type): Add call.
16638         (attr can_delay): If type is call, set it no.
16639         (call, call_value): Set type to call.
16640         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
16641         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
16642         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
16643         * tree.c (get_narrower): Don't narrow integral types into
16644         non-integral types.
16645         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
16646         frame_size *before* the first use.
16647         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
16648         on input.
16649         (peephole2): Don't widen instructions that push SP.  Move
16650         decrement of SP to the end of all stm-generating peepholes.
16651         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
16652         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
16653         and OR to set it to all ones.
16654         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
16655         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
16656         (call, call_value): Set can_delay to "no".
16657         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
16658         * config/h8300/h8300.md (extzv): Make subreg check more robust.
16659         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16660         * config/h8300/h8300.md (*brabit): Remove.
16661         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
16662         zero_extract.  Use bit_memory_operand as the predicate for
16663         operand 1 and 'WU' as the constraint.  Check the difference
16664         between the base length and the final one when deciding which
16665         type of branch to use.
16666         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16667         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
16668         Use convert_move to extend the result for TARGET_H8300SX.  Check
16669         for QImode memory references.  Optimize the case where the
16670         destination is a paradoxical subreg.
16671         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16672         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
16673         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
16674         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
16675         * config/h8300/h8300.md: Include mova.md
16676         (length_table): Add mova and mova_zero.
16677         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
16678         after all constant addresses for '%R', '%X', '%T' and '%S'.
16679         (h8300_mova_length): New function.
16680         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
16681         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
16682         dependencies for s-config, etc.
16683         * config/h8300/gemova.sh: New file.
16684         * config/h8300/mova.md: Generated.
16685         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
16686         * config/h8300/h8300.c (h8300_bitfield_length): New.
16687         (nibble_operand): Adjust.
16688         (h8300_binary_length): Handle conditional binary op.
16689         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
16690         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
16691         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
16692         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
16693         constraints.  WU is introduced as a variant of U that requires a
16694         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
16695         * config/h8300/h8300.md (attr type): Added bitbranch.
16696         (attr length_table): Added bitfield and bitbranch.
16697         (attr length): Compute bitbranch length.
16698         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
16699         least-significant bit of a byte.
16700         (brabit, brabc, brabs): New.
16701         (insv, extzv): Emit bfst and bfld on H8300SX.
16702         (bfld, bfst, seq, sne): New.
16703         (bstzhireg, cmpstz, bstz, bistz): New.
16704         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
16705         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
16706         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
16707         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
16708         (h8sx_unary_memory_operator): New function.
16709         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
16710         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
16711         * config/h8300/h8300.md: Add peepholes to combine reloads and
16712         arithmetic insns.
16713         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
16714         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
16715         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
16716         (and?i, ior?i, xor?i): Likewise.
16717         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
16718         * config/h8300/h8300.c: Move enums and prototypes to head of file.
16719         Various whitespace fixes.
16720         (h8300_constant_length): New function, split out from...
16721         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
16722         (h8300_classify_operand): Use IN_RANGE.
16723         (h8300_classify_operand): Use h8300_constant_length.
16724         (h8300_short_move_mem_p): Tighten size check.
16725         (h8sx_mergeable_memrefs_p): Tighten equality check.
16726         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
16727         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
16728         for -msx.
16729         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
16730         * config/h8300/crtn.asm: Likewise.
16731         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
16732         if __H8300SX__ is defined.
16733         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
16734         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
16735         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
16736         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
16737         addresses as mode-dependent.
16738         * config/h8300/h8300.c (print_operand_address): Update call to
16739         h8300_get_index.
16740         (h8300_get_index): Take a mode argument.  Rework to fix an
16741         earlier misunderstanding.
16742         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
16743         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
16744         into a register if TARGET_H8300SX.
16745         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
16746         TARGET_H8300SX.  Also disable related define_splits.
16747         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
16748         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
16749         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
16750         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
16751         * config/h8300/h8300.h (OK_FOR_Z): New macro.
16752         (EXTRA_CONSTRAINT_STR): Check it.
16753         * config/h8300/h8300.c (h8300_classify_operand): Accept null
16754         class arguments.
16755         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
16756         * config/h8300/h8300.md (length_table): Add mov_imm4.
16757         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
16758         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
16759         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
16760         be a label.
16761         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
16762         * config/h8300/h8300.c (h8300_reorg): New function.
16763         (TARGET_MACHINE_DEPENDENT_REORG): Define.
16764         * config/h8300/h8300.md (length): Subtract the length of the
16765         delay slot from (pc) when checking the range of forward branches.
16766         (delay_slot, can_delay): New attributes.
16767         (define_delay): Add bra/s handling.
16768         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
16769         (jump): Add delayed-branch handling.
16770         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
16771         * expr.c (expand_strcpy): New function.
16772         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
16773         (expand_builtin_stpcpy): Likewise.
16774         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
16775         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
16776         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
16777         handling to improve register allocation for -fno-omit-frame-pointer.
16778         (h8sx_split_movmd): Delete, moving er6 handling into...
16779         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
16780         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
16781         (movmd): Add calls to copy_rtx.
16782         (movmd_internal): In the second alternative, allow the initial and
16783         final destination registers to be different .  Update the splitter
16784         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
16785         instead of h8sx_split_movmd.
16786         (stpcpy, movsd): New expanders.
16787         (movsd_internal): New define_insn.
16788         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
16789         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
16790         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
16791         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
16792         and DESTINATION_REGS.
16793         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
16794         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
16795         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
16796         (h8300_move_ratio): Declare.
16797         (MOVE_RATIO): Use it.
16798         * config/h8300/h8300.c (h8300_move_ratio): New variable.
16799         (h8300_init_once): Initialize it.
16800         (h8300_reg_class_from_letter): New function.
16801         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
16802         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
16803         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
16804         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
16805         (movstrsi, movmd): New expanders.
16806         (movmd_internal): New insn.
16807         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
16808         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
16809         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
16810         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
16811         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
16812         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
16813         * config/h8300/h8300.c (nibble_operand): Fix warning.
16814         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
16815         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
16816         (movsf_h8300h): Disable for TARGET_H8300SX.
16817         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
16818         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
16819         h8300_stm_parallel and h8300_return_parallel.
16820         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
16821         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
16822         h8300_stm_parallel, h8300_return_parallel): New functions.
16823         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
16824         if TARGET_H8300SX.  Use h8300_push_pop.
16825         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
16826         and final pop when generating h8sx code.  Always emit some form
16827         of return insn.
16828         * config/h8300/h8300.md: Don't enforce register alignment in
16829         stm peepholes if TARGET_H8300SX.
16830         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
16831         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
16832         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
16833         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
16834         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
16835         (MULTILIB_DIRNAMES): Add a directory for it.
16836         (MULTILIB_MATCHES): Delete.
16837         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
16838         * final.c (walk_alter_subreg): Handle addresses with subregs
16839         inside a ZERO_EXTEND or AND.
16840         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
16841         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
16842         if TARGET_H8300SX.
16843         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
16844         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
16845         @(dd,Rn.w) and @(dd,ERn.L).
16846         (h8300_displacement_size): Take the whole address as argument.
16847         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
16848         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
16849         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
16850         (h8sx_mergeable_memrefs_p): Declare.
16851         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
16852         (HAVE_PRE_INCREMENT): Likewise.
16853         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
16854         addresses for TARGET_H8300SX,
16855         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
16856         and POST_DEC.
16857         (movb_length_table, movl_length_table): New tables.
16858         (movw_length_table): Define to movb_length_table.
16859         (h8300_displacement_size): New, split out from...
16860         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
16861         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
16862         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
16863         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
16864         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
16865         (compute_plussi_length, compute_plussi_cc): Update accordingly.
16866         (h8sx_unary_shift_operator): Get the mode from the operator.
16867         (binary_shift_operator): Likewise.
16868         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
16869         a memory reference, check whether the reference is offsettable.
16870         (length_table): Add movb, movw and movl.
16871         (movqi): Add new h8sx pattern.  Don't force one operand to be a
16872         register when generating h8sx code.
16873         (movhi, movsi, movsf): Likewise.
16874         (movstrictqi): Use the length_table attribute.
16875         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
16876         (addqi3): Split into a define_expand and define_insn.  Don't accept
16877         memory operands in the expander.  Use h8300_operands_match_p to
16878         check for matching operands in the define_insn.
16879         (subqi3, negqi2, one_cmplqi2): Likewise.
16880         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
16881         in any patterns that are unused in h8sx code.  In the h8sx patterns,
16882         use h8300_operands_match_p to check whether operands match.
16883         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
16884         one_cmpl[hs]i3): Likewise.
16885         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
16886         in the expander.
16887         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
16888         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
16889         (h8300_insn_length_from_table): Add a second parameter.
16890         (output_h8sx_shift): Declare.
16891         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
16892         (EXTRA_CONSTRAINT): Replace with...
16893         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
16894         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
16895         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
16896         and h8sx_binary_shift_operator.
16897         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
16898         for TARGET_H8300SX.
16899         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
16900         (bit_memory_operand, fix_bit_operand): Likewise.
16901         (h8300_length_table_for_insn): Remove.
16902         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
16903         instructions.
16904         (h8300_short_immediate_length, h8300_binary_length): New functions.
16905         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
16906         (output_plussi): Use sub to add negative constants.
16907         (compute_plussi_length): Adjust accordingly.
16908         (h8sx_single_shift_type): New enum.
16909         (h8sx_single_shift, h8sx_unary_shift_operator,
16910         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
16911         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
16912         single h8sx instruction.  Return false in this case.
16913         * config/h8300/h8300.md (length_table): Add short_immediate.
16914         (length): Pass the operand array to h8300_insn_length_from_table.
16915         (adjust_length): Assume "no" for insns with a length_table attribute.
16916         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
16917         (*addhi3_h8300hs): Don't use for h8sx.
16918         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
16919         and sub.w #xx:3.
16920         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
16921         1's predicate to nonimmediate_operand.  Only skip default expansion
16922         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
16923         for single h8sx shift instructions.
16924         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
16925         * config/h8300/h8300.c (nibble_operand): Split out of...
16926         (reg_or_nibble_operand): ... this.
16927         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
16928         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
16929         umulhisi3): Introduce expand, and introduce separate insns for
16930         sign- or zero-extended REG and already-extended CONST_INT.
16931         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
16932         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
16933         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
16934         (subhi3): Likewise.  Don't accept immediates for operand 1.
16935         Remove the early clobber from second alternative of the h8300s pattern.
16936         (subsi3): Generalize for h8sx.  Force operand 2 into a register
16937         on plain h8300 targets.
16938         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
16939         (subsi3_h8300h): Generalize for h8sx.
16940         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
16941         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
16942         * config/h8300/h8300.c (reg_or_nibble_operand): New.
16943         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
16944         (TARGET_H8300SXMUL): New.
16945         (CONST_OK_FOR_P): New.
16946         (CONST_OK_FOR_LETTER_P): Adjust.
16947         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
16948         umulhisi3): Accept 4-bit immediate on H8SX.
16949         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
16950         (udivsi3, divhi3, udivsi3, divsi3): New.
16951         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
16952         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
16953         * config/h8300/h8300.h (OK_FOR_Q): New macro.
16954         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
16955         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
16956         Add ADDRESSOF to the bit_operand entry.
16957         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
16958         (h8300_src_operand): Likewise.
16959         (bit_operand): Check nonimmediate_operand rather than general_operand.
16960         Accept any nonimmediate_operand in h8sx code.
16961         (h8300_and_costs): Initialize operands[1].
16962         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
16963         (h8300_operand_class): New enum.
16964         (h8300_length_table): New typedef.
16965         (addb_length_table, addw_length_table, addl_length_table,
16966         logicl_length_table): New tables.
16967         (logicb_length_table, logicw_length_table): New macros.
16968         (h8300_classify_operand, h8300_length_from_table,
16969         h8300_length_table_for_insn, h8300_unary_length,
16970         h8300_insn_length_from_table): New functions.
16971         (output_plussi): Only use adds and subs for register destinations.
16972         Disable redundant clause.
16973         (compute_plussi_cc): Likewise.
16974         (compute_plussi_length): Likewise.  Use h8300_length_from_table
16975         to work out the length of an insn.
16976         (output_logical_op): Only use narrower immediate instructions
16977         if the destination is a register.
16978         (compute_logical_op_cc): Likewise.
16979         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
16980         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
16981         * config/h8300/h8300.md (length_table): New attribute.
16982         (length): When an instruction has a length_table attribute, use
16983         h8300_insn_length_from_table to calculate its default length.
16984         (cmpqi): Use h8300_dst_operand for the first operand and
16985         h8300_src_operand for the second.
16986         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
16987         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
16988         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
16989         iorsi3, xorhi3, xorsi3): Likewise.
16990         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
16991         so that it allows any combination of operands for TARGET_H8300SX.
16992         (iorqi3, xorqi3): Likewise.
16993         (cmpqi): Use the length_table attribute.
16994         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
16995         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
16996         (cmpqi): Add 'Q' constraint.
16997         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
16998         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
16999         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
17000         * config/h8300/h8300.h (MASK_H8300SX): New macro.
17001         (TARGET_H8300S): True for both -ms and -msx.
17002         (TARGET_H8300SX): New macro.
17003         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
17004         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
17005         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
17006         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
17007         [Temporary change.]
17008         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
17009         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
17010         16-bit pointers and 32-bit ints.
17011         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
17012         CONST_DOUBLE with mode no wider than SImode.
17013         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
17014         output operand.
17015         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
17016         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
17017         or SUBREG thereof.
17018         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
17019         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
17020         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
17021
17022 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
17023
17024         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
17025
17026 2004-07-07  Per Bothner  <per@bothner.com>
17027
17028         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
17029
17030 2004-07-07  Mike Stump  <mrs@apple.com>
17031
17032         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
17033         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
17034         (machopic_finish): Likewise.
17035
17036 2004-07-07  Richard Henderson  <rth@redhat.com>
17037
17038         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
17039         through any value-preserving cast.
17040
17041 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
17042
17043         * function.c (assign_parm_find_data_types): Call
17044         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
17045
17046 2004-07-07  Steven Bosscher  <stevenb@suse.de>
17047
17048         * tree-cfg.c (group_case_labels): Remove case labels that have
17049         the same target as the default case.
17050
17051 2004-07-07  Steven Bosscher  <stevenb@suse.de>
17052
17053         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
17054         regardless of DECL_LANG_SPECIFIC being present or not.
17055         * tree.h (DECL_NUM_STMTS): Purge.
17056
17057 2004-07-07  Andrew Pinski  <apinski@apple.com>
17058
17059         * configure: Regenerate with the right autoconf.
17060
17061 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
17062
17063         * ifcvt.c (total_bb_rtx_cost): New function.
17064         (find_if_case_1): Compare rtx_cost of basic block to cost of
17065         BRANCH_COST insns.
17066         (find_if_case_2): Same.
17067
17068 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
17069
17070         PR target/10567
17071         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
17072         (output_return): Likewise.
17073         (output_sibcall): Abort if !flag_delayed_branch.
17074         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
17075         (emit_and_preserve): New function.
17076         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
17077         indirect jump to the thunked-to function if !flag_delayed_branch.
17078         * config/sparc/sparc.md (delayed_branch): New attribute.
17079         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
17080         attribute to compute the length of the insn.
17081         (goto_handler_and_restore): Likewise.
17082
17083 2004-07-07  Andrew Pinski  <apinski@apple.com>
17084
17085         PR tree-optimization/15777
17086         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
17087
17088         * expr.c (expand_expr_real_1): Fix formating.
17089         BUFFER_REF and IN_EXPR are dead.
17090         * fold-const.c (non_lvalue): BUFFER_REF is dead.
17091         * tree-inline.c (estimate_num_insns_1): Likewise.
17092         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
17093         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
17094         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
17095
17096 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
17097
17098         * collect2.c (dump_file): Don't call cplus_demangle if
17099         HAVE_LD_DEMANGLE is defined.
17100         (main): Pass "--demangle" to ld if no_demangle is not 0 and
17101         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
17102         if HAVE_LD_DEMANGLE is defined.
17103
17104         * configure.ac (--with-demangler-in-ld): Added
17105         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
17106         --with-demangler-in-ld is used.
17107         * config.in: Regenerated.
17108         * configure: Likewise.
17109
17110 2004-07-07  Roger Sayle  <roger@eyesopen.com>
17111
17112         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
17113         for simple floating point operations "fp", double precision
17114         multiplication "dmul", and single and double precision division
17115         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
17116         (ppc630_cost): New table split from ppc620_cost, to distinguish
17117         differences in floating point latencies.
17118         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
17119         (rs6000_rtx_costs): Add support for single and double precision
17120         floating point addition, subtraction, multiplication, division,
17121         fused-multiply-add, fused-multiply-sub, negation, absolute value
17122         and negative absolute value.  Tweak MEM case to use prefered idiom.
17123
17124 2004-07-07  Richard Henderson  <rth@redhat.com>
17125
17126         * tree-flow-inline.h (may_propagate_copy): Move...
17127         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
17128         attempt to copy between types requiring conversion.
17129         * tree-flow.h (may_propagate_copy): Update decl.
17130         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
17131
17132 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
17133
17134         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
17135         from -mtune= option.
17136
17137 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
17138
17139         * builtins.c: Rename movstr*, except for movstrict*, to
17140         movmem* and clrstr* to clrmem*.
17141         * expr.c: Likewise.
17142         * expr.h: Likewise.
17143         * genopinit.c: Likewise.
17144         * integrate.c: Likewise.
17145         * local-alloc.c: Likewise.
17146         * optabs.c: Likewise.
17147         * optabs.h: Likewise.
17148         * config/alpha/alpha.h: Likewise.
17149         * config/alpha/alpha.md: Likewise.
17150         * config/arm/arm-protos.h: Likewise.
17151         * config/arm/arm.c: Likewise.
17152         * config/arm/arm.md: Likewise.
17153         * config/avr/avr.md: Likewise.
17154         * config/c4x/c4x.c: Likewise.
17155         * config/c4x/c4x.md: Likewise.
17156         * config/frv/frv.md: Likewise.
17157         * config/i386/i386-protos.h: Likewise.
17158         * config/i386/i386.c: Likewise.
17159         * config/i386/i386.h: Likewise.
17160         * config/i386/i386.md: Likewise.
17161         * config/i860/i860.c: Likewise.
17162         * config/i860/i860.md: Likewise.
17163         * config/ip2k/ip2k.md: Likewise.
17164         * config/ip2k/libgcc.S: Likewise.
17165         * config/ip2k/t-ip2k: Likewise.
17166         * config/m32r/m32r.c: Likewise.
17167         * config/m32r/m32r.md: Likewise.
17168         * config/mcore/mcore.md: Likewise.
17169         * config/mips/mips.c: Likewise.
17170         * config/mips/mips.md: Likewise.
17171         * config/ns32k/ns32k.c: Likewise.
17172         * config/ns32k/ns32k.h: Likewise.
17173         * config/ns32k/ns32k.md: Likewise.
17174         * config/pa/pa.c: Likewise.
17175         * config/pa/pa.md: Likewise.
17176         * config/pdp11/pdp11.h: Likewise.
17177         * config/pdp11/pdp11.md: Likewise.
17178         * config/rs6000/rs6000.c: Likewise.
17179         * config/rs6000/rs6000.md: Likewise.
17180         * config/s390/s390-protos.h: Likewise.
17181         * config/s390/s390.c: Likewise.
17182         * config/s390/s390.md: Likewise.
17183         * config/sh/lib1funcs.asm: Likewise.
17184         * config/sh/sh.c: Likewise.
17185         * config/sh/sh.md: Likewise.
17186         * config/sh/t-sh: Likewise.
17187         * config/sparc/sparc.h: Likewise.
17188         * config/vax/vax.md: Likewise.
17189         * config/xtensa/xtensa.c: Likewise.
17190         * config/xtensa/xtensa.md: Likewise.
17191         * doc/invoke.texi: Likewise.
17192         * doc/md.texi: Likewise.
17193         * doc/rtl.texi: Likewise.
17194
17195 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
17196
17197         PR target/16407
17198         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
17199         * config/mips/mips.c (mips_declare_common_object): New function,
17200         mostly split out from...
17201         (mips_output_aligned_decl_common): ...here.
17202         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
17203         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
17204         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
17205         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
17206
17207 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17208
17209         PR c/16392
17210         * function.c (assign_parms): Fix typo from previous change.
17211
17212 2004-07-07  Jason Merrill  <jason@redhat.com>
17213
17214         PR c++/15815
17215         * doc/extend.texi (C++ Interface): Correct information and
17216         discourage use.
17217
17218 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
17219
17220         PR target/16130
17221         PR target/16142
17222         PR target/16143
17223         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
17224         insn.
17225
17226 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
17227
17228         PR target/1679.
17229         * config/m32r/m32r.c (m32r_function_symbol): New function:
17230         Generate a symbol name RTX with the correct m32r specific flags
17231         set.
17232         (block_move_call): Use new function to generate correct symbol.
17233         * config/m32r/m32r-protos.h: Add prototype for new funcion.
17234         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
17235         function.
17236
17237 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
17238
17239         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
17240         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
17241         TYPE_BINFO_BASETYPE): Remove.
17242         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
17243         to ...
17244         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
17245         here.
17246         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
17247         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
17248         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
17249         (struct tree_binfo): Rename base_types to base_binfos.
17250         * alias.c (record_component_aliases): Adjust BINFO macros.
17251         * dbxout.c (dbxout_type): Likewise.
17252         * dwarf2out.c (gen_member_die): Likewise.
17253         * sdbout.c (sdbout_one_type): Likewise.
17254         * tree-dump.c (deque_and_dump): Likewise.
17255         * config/i386/i386.c (classify_argument,
17256         contains_128bit_aligned_vector_p): Likewise.
17257
17258 2004-07-07  Nick Clifton  <nickc@redhat.com>
17259
17260         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
17261         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
17262
17263 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
17264
17265         * vec.h: Fix the example use.
17266
17267 2004-07-06  Richard Henderson  <rth@redhat.com>
17268
17269         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
17270         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
17271         * tree-inline.c (copy_body_r, setup_one_parameter,
17272         initialize_inlined_parameters, expand_call_inline,
17273         declare_inline_vars): Don't check it.
17274         (expand_calls_inline): Remove old version, rename new version
17275         from gimple_expand_calls_inline.
17276         * tree-optimize.c (execute_gimple): Remove.
17277         (pass_gimple): Don't run anything.
17278
17279 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
17280
17281         * doc/sourcebuild.texi: Use semicolons instead of commas in
17282         section title.
17283
17284 2004-07-06  Richard Henderson  <rth@redhat.com>
17285
17286         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
17287         (sra_walk_modify_expr, scan_init): Likewise.
17288         (generate_element_zero): Check visited before scanning children.
17289         (generate_element_init): Set visited on error.
17290         (scalarize_init): Handle generate_element_init failure similar
17291         to use_block_copy.
17292
17293 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
17294
17295         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
17296         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
17297
17298 2004-07-06  Richard Henderson  <rth@redhat.com>
17299
17300         * config/i386/i386.c (legitimize_pic_address): Make static.
17301         (legitimize_address): Handle CONST with TLS operand.
17302         (ix86_expand_move): Don't call legitimize_pic_address directly.
17303         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
17304
17305 2004-07-06  Roger Sayle  <roger@eyesopen.com>
17306
17307         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
17308         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
17309         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
17310         is currently executed unconditionally, i.e. not in "else_bb".
17311
17312 2004-07-06  Steven Bosscher  <stevenb@suse.de>
17313
17314         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
17315         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17316         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
17317         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17318         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
17319         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17320         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
17321         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17322         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
17323         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17324         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
17325         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17326         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
17327         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17328         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
17329         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
17330
17331 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
17332
17333         * dojump.c (do_jump): REFERENCE_EXPR is dead.
17334         * expr.c (expand_expr_real_1): Ditto.
17335         * tree-inline.c (estimate_num_insns_1): Ditto.
17336         * tree-pretty-print.c (dump_generic_node): Ditto.
17337         (op_symbol): Ditto.
17338         * tree.def: Ditto.
17339
17340 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
17341
17342         * tree-ssa-pre.c (reference_node_pool): New pool.
17343         (find_or_generate_expression): Class 'r' is okay too.
17344         (create_value_expr_from): Ditto.
17345         (add_to_sets): LHS should not include vuses.
17346         (eliminate): Ditto.
17347         (compute_avail): Reverse ordering of tests.
17348         Valuize INDIRECT_REF as well.
17349
17350 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
17351
17352         PR rtl-optimization/16380
17353         * loop.c (check_dbra_loop): Sink comparison instructions if they
17354         do something other than set cc0.
17355
17356 2004-07-06  James E Wilson  <wilson@specifixinc.com>
17357
17358         * doc/interface.texi (longjmp and automatic variables): Delete
17359         paragraph recommending taking the address of a variable.
17360
17361 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
17362
17363         * vec.h (VEC_embedded_alloc): Remove.
17364         (VEC_embedded_size, VEC_embedded_init): New.
17365         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
17366         MEM_STAT_INFO.
17367         (VEC_truncate): New.
17368         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
17369         (vec_embedded_alloc): Remove.
17370         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
17371         (vec_embedded_alloc): Remove.
17372
17373 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
17374
17375         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
17376         (gt-langhooks.h): Remove.
17377
17378 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
17379
17380         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
17381
17382 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
17383
17384         * config/sparc/sparc.c (get_pc_symbol): Rename into
17385         add_pc_to_pic_symbol.
17386         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
17387         (load_pic_register): Account for previous changes.
17388         Use reg_names.  Don't create the label twice.
17389         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
17390         UNSPEC_LOAD_PCREL_SYM.
17391         (get_pc): Rename into load_pcrel_sym.  Add predicate to
17392         operands.  Remove condition.
17393
17394 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
17395
17396         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
17397         RECORD, UNION & QUAL_UNION is actually a binfo.
17398
17399         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
17400         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
17401         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
17402         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
17403         * dwarf2out.c (add_data_member_location_attribute): Likewise.
17404         (gen_inheritance_die): Likewise.
17405         * tree-dump.c (deque_and_dump): Likewise.
17406         * doc/c-tree.texi (Binfos): Add under reconstruction note.
17407
17408 2004-07-06  Steven Bosscher  <stevenb@suse.de>
17409
17410         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
17411         Define.
17412         * config/mcore/mcore.md: Model memory latency with a simple DFA
17413         pipeline description instead of a define_function_unit.
17414
17415 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17416
17417         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
17418         * langhooks.h (var_mod_type_p): Likewise.
17419         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
17420         * expr.c (count_type_elements): Properly handle return from
17421         array_type_nelts and properly test for overflow.
17422         * gimplify.c (gimplify_init_constructor): Properly handle return
17423         from array_type_nelts.
17424         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
17425         * integrate.c (copy_decl_for_inlining): Correct comments.
17426         * tree-inline.c (remap_decl): Update comments, remove dead code,
17427         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
17428         (remap_type): Only remap if variably modified by vars in function
17429         being inlined.
17430         (copy_body_r): Use compatible_type langhooks to see when can fold.
17431         (setup_one_parameter): Don't remap type.
17432         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
17433         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
17434         compute TREE_INVARIANT for decl case.
17435         (find_var_from_fn): New function.
17436         (variably_modified_type_p): Add arg and call new function.
17437         * tree.h (variably_modified_type_p): Add extra arg.
17438
17439 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
17440
17441         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
17442         (goto_handler_and_restore_v9): Delete disabled insn.
17443         (goto_handler_and_restore_v9_sp64): Likewise.
17444
17445 2004-07-05  Roger Sayle  <roger@eyesopen.com>
17446
17447         * calls.c (load_register_parameters): Call expand_shift instead
17448         of expand_binop with ashl_optab (or other shift optab) directly.
17449         * expr.c (emit_group_load, emit_group_store): Likewise.
17450         * function.c (assign_parm_setup_block): Likewise.
17451         * stmt.c (shift_return_value): Likewise.
17452
17453 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
17454
17455         * expr.c (expand_assignment): Disable the bitfield += optimizations.
17456
17457 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
17458
17459         * doc/sourcebuild.texi: Revert previous patch.
17460
17461 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
17462
17463         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
17464         TARGET_MEM_FUNCTIONS.
17465         * system.h: Poison TARGET_MEM_FUNCTIONS.
17466         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
17467         bcmp_libfunc, bzero_libfunc): Remove.
17468         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
17469         bzero_libfunc.
17470         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
17471         * doc/standards.texi: Don't mention calling BSD string functions.
17472         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
17473         * config/vax/t-memfuncs: New.
17474         * config/memcmp.c, config/memcpy.c, config/memmove.c,
17475         config/memset.c: New.
17476         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
17477         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
17478         vax/t-memfuncs.
17479         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
17480         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
17481         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
17482         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
17483         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
17484         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
17485         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
17486         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
17487         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
17488         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
17489
17490 2004-07-05  Richard Henderson  <rth@redhat.com>
17491
17492         * function.c (assign_parm_setup_reg): Properly rename variables in
17493         FUNCTION_ARG_CALLEE_COPIES section.
17494
17495 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
17496
17497         * tree-mudflap.c: Include cgraph.h.
17498         (mf_init_extern_trees): Rename to mudflap_init.  Export.
17499         Rewrite to create synthetic declarations instead of looking
17500         up declarations from mf-runtime.h.
17501         (mf_make_builtin, mf_make_cache_struct_type): New functions.
17502         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
17503         Correct commentary.
17504         (execute_mudflap_function_decls, mudflap_register_call):
17505         Don't call mf_init_extern_trees.
17506         (mudflap_finish_file): Use cgraph_build_static_cdtor.
17507
17508         * tree-mudflap.h: Update prototypes.
17509         * c-mudflap.c: Delete file.
17510         * c-common.c: Include tree-mudflap.h.
17511         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
17512         * Makefile.in: Remove all references to c-mudflap.o.
17513         Update dependencies.
17514
17515 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17516
17517         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
17518         displacements with the spatial-locality cache-control completer.
17519
17520 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
17521
17522         * langhooks.c: Don't include gt-langhooks.h.
17523         (var_labelno): Delete.
17524         (lhd_set_decl_assembler_name): Do not append a distinguishing
17525         number to file-scope internal-linkage declarations for the first
17526         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
17527         the declaration itself (if at block scope), or its containing
17528         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
17529         number.
17530
17531         * opts.c (cur_in_fname): New global.
17532         * opts.h: Declare it.
17533         * tree.c: Include opts.h.
17534         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
17535         DECL_UID equal to cur_in_fname.
17536         (copy_node_stat): Do not change DECL_UID when copying a
17537         TRANSLATION_UNIT_DECL.
17538         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
17539         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
17540
17541         * c-decl.c (c_static_assembler_name): Delete.
17542         * c-tree.h (c_static_assembler_name): Delete prototype.
17543         * c-lang.c, objc/objc-lang.c: Don't override
17544         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
17545
17546         * Makefile.in (tree.o): Update dependencies.
17547         (GTFILES): Remove langhooks.c.
17548
17549 2004-07-05  Roger Sayle  <roger@eyesopen.com>
17550
17551         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
17552         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
17553         Normalize "X % C" as "X % -C" for signed modulus and negative C.
17554         Optimize "X % -Y" as "X % Y" for signed modulus.
17555         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
17556         into "((unsigned) X % Y) == 0".
17557
17558 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
17559
17560         * sourcebuild.texi (Config Fragments): Use @comma{} in
17561         cross-reference to section title.
17562
17563 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17564
17565         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
17566         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
17567         (gimplify_target_expr, gimplify_expr): Likewise.
17568         (copy_if_shared_r): No longer need special case for BIND_EXPR.
17569         (unshare_body, unvisit_body): Only look at nested if BODY_P is
17570         whole function.
17571         (gimplify_compound_lval): See if we can strip any useless conversion.
17572         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
17573         from RHS, not LHS.
17574         (gimplify_modify_expr_to_memset): Likewise.
17575         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
17576         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
17577         (declare_inline_vars): Likewise.
17578         (walk_type_fields): New function.
17579         (walk_tree): Use it.
17580         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
17581
17582         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
17583         (sra_walk_modify_expr): Allow init function to fail.
17584         (scan_init): Now returns bool.
17585         (generate_element_init): If can't understand INIT, return false.
17586         (scalarize_init): Return false if generate_element_init does.
17587
17588         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
17589         print bounds.
17590
17591         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
17592         bounds if bounds aren't constant.
17593
17594         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
17595
17596         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
17597         to type hooks; remove bogus PARAMS.
17598
17599 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
17600
17601         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
17602         * dwarf2out.c (add_data_member_location_attribute): Check for
17603         TREE_BINFO.
17604         * tree.c (tree_node_kinds): Add "binfos".
17605         (binfo_lang_slots): New.
17606         (make_node_stat): Add TREE_BINFO.
17607         (make_tree_binfo_stat): New.
17608         (tree_node_structure): Add TREE_BINFO.
17609         * tree.def (TREE_BINFO): New.
17610         * tree.h (REC_OR_UNION_CHECK): Rename to ...
17611         (RECORD_OR_UNION_CHECK): ... here.
17612         (NOT_RECORD_OR_UNION_CHECK): New.
17613         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
17614         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
17615         RECORD_OR_UNION_CHECK.
17616         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
17617         (TYPE_LANG_SLOT_1): New.
17618         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
17619         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
17620         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
17621         (BINFO_ELTS): Remove.
17622         (BINFO_LANG_SLOT): New.
17623         (struct tree_binfo): New.
17624         (binfo_lang_slots): Declare.
17625         (enum tree_node_structure_enum): Add TS_BINFO.
17626         (union tree_node): Add binfo.
17627         (make_tree_binfo_stat): Declare.
17628         (make_tree_binfo): New.
17629         (enum tree_node_kind): Add binfo_kind.
17630
17631         * objc/objc-act.c (start_class, objc_declare_protocols,
17632         start_protocols): Use TYPE_LANG_SLOT_1.
17633         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
17634         to ...
17635         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
17636         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
17637         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
17638         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
17639
17640 2004-07-05  Steven Bosscher  <stevenb@suse.de>
17641
17642         * rtl.h (struct rtx_def): Remove the integrated flag.
17643         Use the return_val flag for MEM_SCALAR_P.
17644         Reshuffle and update flags in CLEAR_RTX_FLAGS.
17645
17646 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
17647
17648         PR target/16357
17649         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
17650         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
17651         move_by_pieces.
17652
17653 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
17654
17655         * var-tracking.c: Fix some comments.
17656         (frame_stack_adjust): New.
17657         (vt_stack_adjustments): Init stack_adjust of entry block to
17658         minus stack adjustment of function prologue.
17659         (adjust_stack_reference): Do not adjust if adjustment == 0.
17660         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
17661         (emit_notes_in_bb): Likewise.
17662         (vt_add_function_parameters): Do not adjust locations of
17663         function arguments.
17664         (vt_initialize): Compute the stack adjustment of function
17665         prologue and offset the initial "location" of frame_base_decl
17666         from the stack pointer after prologue.
17667
17668 2004-07-04  Richard Henderson  <rth@redhat.com>
17669
17670         * function.c (struct assign_parm_data_all): New.
17671         (struct assign_parm_data_one): New.
17672         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
17673         assign_parm_find_data_types, assign_parms_setup_varargs,
17674         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
17675         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
17676         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
17677         assign_parm_setup_block, assign_parm_setup_reg,
17678         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
17679         (assign_parms): ... here.
17680
17681 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
17682
17683         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
17684         now are bitmap_set_t's.
17685         (bitmap_insert_into_set): No point in inserting the value if
17686         it's invariant.
17687         (bitmap_set_contains): New function.
17688         (bitmap_set_replace_value): Add comment on why we do it
17689         this way.
17690         (set_contains): Removed.
17691         (bitmap_set_subtract_from_value_set): New name of
17692         set_subtract now that it's arguments are two different
17693         types of sets.
17694         Update callers.
17695         (bitmap_find_leader): Change algorithm used.
17696         (find_or_generate_expression): Update use of functions for new
17697         bitmap sets.
17698         (create_expression_by_pieces): Ditto.
17699         (insert_aux): Ditto.
17700         (insert): Ditto.
17701         (add_to_sets): Ditto.
17702         (init_pre): Ditto.
17703         (execute_pre): Ditto.
17704         (compute_avail): Ditto.
17705         Also ignore virtual phis.
17706
17707 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
17708
17709         * combine.c (simplify_comparison): Fix comment typo.
17710
17711 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
17712
17713         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
17714         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
17715         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
17716         (output_restore): Change parameter from 'insn' to 'pat'.
17717         (output_return): Adjust call to output_restore.
17718         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
17719         Adjust call to output_restore.
17720
17721 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
17722
17723         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
17724         and assert system is bsd.
17725
17726 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
17727
17728         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
17729         (TARGET_SWITCHES): Remove -mdebugc.
17730         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
17731         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
17732         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
17733         (sle_[sd]i_reg): Delete.
17734
17735 2004-07-04  Steven Bosscher  <stevenb@suse.de>
17736
17737         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
17738         Define.
17739         * config/iq2000/iq2000.md: Translate old pipeline description to an
17740         equivalent new one.
17741
17742 2004-07-04  Roger Sayle  <roger@eyesopen.com>
17743
17744         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
17745         Ensure the replacement rhs is valid gimple before performing
17746         the substitution.  Return false if these sanity checks fail.
17747         (fold_stmt): Only set changed to true, if set_rhs returns true.
17748         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
17749         succeeds.
17750
17751 2004-07-04  Richard Henderson  <rth@redhat.com>
17752
17753         PR c/16348
17754         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
17755
17756 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
17757
17758         * configure.ac (ranlib_flags): New variable.
17759         * Makefile.in (RANLIB_FLAGS): New variable.
17760         (libbackend.a): Use it.
17761         * configure: Regenerated.
17762
17763 2004-07-04  Roger Sayle  <roger@eyesopen.com>
17764
17765         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
17766         a "sign mask" instead of using ashr_optab directly.
17767
17768 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
17769
17770         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
17771         * doc/cppopts.texi: Clarify processing of command-line defines.
17772
17773 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
17774
17775         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
17776
17777 2004-07-04  Richard Henderson  <rth@redhat.com>
17778
17779         * rtl.def (ADDRESSOF): Remove.
17780         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
17781         (find_base_term, memrefs_conflict_p): Likewise.
17782         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
17783         (fold_rtx, cse_insn, set_live_p): Likewise.
17784         * dwarf2out.c (mem_loc_descriptor): Likewise.
17785         (add_location_or_const_value_attribute): Likewise.
17786         * emit-rtl.c (copy_insn_1): Likewise.
17787         * explow.c (memory_address): Likewise.
17788         * expmed.c (store_split_bit_field): Likewise.
17789         * expr.c (expand_expr_real_1): Likewise.
17790         * function.c (instantiate_decl
17791         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
17792         * genrecog.c (preds, validate_pattern): Likewise.
17793         * integrate.c (copy_rtx_and_substitute): Likewise.
17794         * recog.c (general_operand, register_operand): Likewise.
17795         (memory_address_p): Likwise.
17796         * reload1.c (eliminate_regs, elimination_effects): Likewise.
17797         * rtl.c (copy_rtx): Likewise.
17798         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
17799         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
17800         * rtlhooks.c (gen_lowpart_general): Likewise.
17801         * stmt.c (expand_asm_operands): Likewise.
17802         * web.c (entry_register, replace_ref, web_main): Likewise.
17803         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
17804         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
17805         * config/arm/arm.c (thumb_rtx_costs): Likewise.
17806         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
17807         * config/frv/frv.c (move_destination_operand, move_source_operand,
17808         condexec_dest_operand, condexec_source_operand,
17809         condexec_memory_operand): Likewise.
17810         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
17811         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
17812         (destination_xfmode_operand): Likewise.
17813         * config/mips/mips.h (PREDICATE_CODES): Likewise.
17814         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
17815         * config/s390/s390.c (general_s_operand): Likewise.
17816         * config/s390/s390.md (mov*): Likewise.
17817         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
17818
17819         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
17820         * expr.c (expand_expr_real_1): Likewise.
17821         * stmt.c (expand_decl): Likewise.
17822         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
17823
17824         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
17825         postponed_insns, put_var_into_stack, put_reg_into_stack,
17826         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
17827         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
17828         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
17829         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
17830         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
17831         purge_bitfield_addressof_replacements, purge_addressof_replacements,
17832         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
17833         struct insns_for_mem_walk_info, insns_for_mem_walk,
17834         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
17835         setjmp_protect_args): Remove.
17836         (push_function_context_to): Don't handle var_refs_queue.
17837         (pop_function_context_from, free_after_compilation): Likewise.
17838         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
17839         (assign_parms, allocate_struct_function): Likewise.
17840         (use_register_for_decl): New.
17841         (expand_function_end): Don't setjmp_protect.
17842         * function.h (struct emit_status): Update commentary.
17843         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
17844         (max_parm_reg, parm_reg_stack_loc): Remove.
17845         * passes.c (DFI_addressof): Remove.
17846         (dump_file_info): Remove addressof.
17847         (rest_of_handle_addressof): Remove.
17848         (rest_of_compilation): Don't call it.
17849         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
17850         * stmt.c (expand_decl): Use use_register_for_decl.
17851         * tree.h: Update decls.
17852         * web.c (mark_addressof): Remove.
17853         * doc/invoke.texi (-dF): Remove.
17854
17855 2004-07-03  Richard Henderson  <rth@redhat.com>
17856
17857         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
17858         instead of gen_mem_addressof.
17859         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
17860         TImode output register.
17861
17862 2004-07-03  Richard Henderson  <rth@redhat.com>
17863
17864         PR tree-optimization/16341
17865         * tree-sra.c (sra_walk_function): Increment to next stmt before
17866         processing the current stmt.
17867         (sra_insert_after): Always use BSI_SAME_STMT.
17868
17869 2004-07-03  Richard Henderson  <rth@redhat.com>
17870
17871         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
17872         fp plus with minus.
17873
17874 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
17875
17876         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
17877         with tree_int_cst_equal.
17878
17879 2004-07-03  Andreas Schwab  <schwab@suse.de>
17880
17881         * config/ia64/ia64.md: Define new attribute "empty".
17882         (prologue_use, nop_x, insn_group_barrier): Set it.
17883
17884         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
17885         skip over "empty" insns.
17886
17887 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17888
17889         * tree-inline.c (initialize_inlined_parameters): Pass proper function
17890         context to gimplify_body.
17891         (walk_tree): Don't walk into types twice.
17892         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
17893
17894         * tree-sra.c (generate_element_init): Remove any useless conversions.
17895
17896         * gimplify.c (gimplify_conversion): Remove stripping useless
17897         conversions from here.
17898         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
17899         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
17900         Unshare before substituting PLACEHOLDER_EXPR.
17901         (gimplify_modify_expr_to_memset): Likewise.
17902         Pass address of TO to memset, not TO itself.
17903         (gimplify_init_constructor): Make copy of OBJECT so we have it each
17904         time we make an expression (to match a PLACEHOLDER_EXPR).
17905
17906         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
17907         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
17908         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
17909         * tree-ssa-dom.c (local_fold): Likewise.
17910
17911         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
17912         * langhooks.h (strct lang_hooks): New field type_max_size.
17913         * function.c (assign_temp): Call it.
17914
17915 2004-07-03  Steven Bosscher  <stevenb@suse.de>
17916
17917         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
17918         * config/sh/sh.md: Convert the SH1 pipeline description to
17919         a DFA model.
17920
17921 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
17922
17923         * c-decl.c (struct c_binding): Remove contour field; add
17924         depth, invisible, nested fields.
17925         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
17926         (B_IN_EXTERNAL_SCOPE): New convenience macros.
17927         (bind): Add invisible and nested arguments. Initialize
17928         new fields of struct c_binding; adjust loop scanning for
17929         insertion point.
17930         (free_binding_and_advance): Clear structure with memset.
17931         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
17932         in file scope, even if it's in external scope too.
17933         (pushdecl): Adjust to match.  Create invisible file-scope
17934         declarations for block-scope forward declarations of static functions.
17935         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
17936         (undeclared_variable, lookup_label, declare_label, define_label)
17937         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
17938         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
17939         (store_parm_decls_oldstyle): Adjust to match.
17940         (diagnose_mismatched_decls): Correct handling of linkage clashes.
17941         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
17942
17943         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
17944         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
17945
17946 2004-07-02  Richard Henderson  <rth@redhat.com>
17947
17948         * c-decl.c (grokdeclarator): Don't frob current_function_decl
17949         around variable_size.
17950         (set_decl_nonlocal): Remove.
17951         (store_parm_decls): Add stmts for pending sizes.
17952         * calls.c (calls_function, calls_function_1): Remove.
17953         (precompute_arguments): Don't call it.
17954         * cfgexpand.c (set_save_expr_context): Remove.
17955         (tree_expand_cfg): Don't call it.
17956         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
17957         (dwarf2out_finish): Likewise.
17958         * expr.c (emit_block_move): Adjust addresses to BLKmode.
17959         (store_constructor): Don't pre-evaluate SAVE_EXPR.
17960         (safe_from_p): Don't queue SAVE_EXPRs.
17961         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
17962         or build plain VAR_DECLs.
17963         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
17964         (fold): Likewise.
17965         (fold_checksum_tree): Don't special-case SAVE_EXPR.
17966         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
17967         (put_var_into_stack): Don't handle SAVE_EXPR.
17968         (gen_mem_addressof): Likewise.
17969         * function.h (struct function): Remove x_save_expr_regs.
17970         (save_expr_regs): Remove.
17971         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
17972         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
17973         * stor-layout.c (variable_size): Don't set it.
17974         (force_type_save_exprs, force_type_save_exprs_1): Remove.
17975         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
17976         all callers.  Don't set SAVE_EXPR_CONTEXT.
17977         * tree-inline.h (remap_save_expr): Update decl.
17978         * tree.c (save_expr): Update build size.
17979         (first_rtl_op): Don't handle SAVE_EXPR.
17980         (unsave_expr_1, contains_placeholder_p): Likewise.
17981         (decl_function_context): Likewise.
17982         * tree.def (SAVE_EXPR): Remove args 1 and 2.
17983         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
17984         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
17985
17986 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
17987
17988         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
17989         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
17990         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
17991         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
17992         some first-person references and patronizing comments.  Based on
17993         printed manual.
17994         * doc/invoke.texi: Don't reference fortran@gnu.org.
17995         * doc/trouble.texi (Warning when a non-void function value is
17996         ignored): Rewrite.  From Russ Allbery and Chris Devers.
17997
17998 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
17999
18000         * tree-ssa-pre.c (bitmap_set_t): New.
18001         (bb_value_sets): avail_out is now a bitmap_set_t.
18002         (bitmap_find_leader): New function.
18003         (bitmap_value_insert_into_set): Ditto.
18004         (bitmap_set_copy): Ditto.
18005         (bitmap_value_replace_in_set): Ditto.
18006         (bitmap_set_contains_value): Ditto.
18007         (bitmap_set_new): Ditto.
18008         (bitmap_set_pool): New pool.
18009         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
18010         (insert_aux): Ditto.
18011         (add_to_sets): Ditto.
18012         (compute_avail): Ditto
18013         (eliminate): Ditto.
18014         (init_pre): Ditto.
18015         (fini_pre): Ditto.
18016         (execute_pre): Ditto.
18017
18018 2004-07-02  Roger Sayle  <roger@eyesopen.com>
18019
18020         * config/rs6000/rs6000.c (struct processor_costs): New structure
18021         used to hold instruction latencies/sizes for processor types.
18022         (rs6000_cost): New global variable pointing to current CPU's costs.
18023         (rs6000_override_options): Initialize rs6000_cost to point to the
18024         appropriate cost table based upon rs6000_cpu and optimize_size.
18025         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
18026         timings inline.
18027
18028 2004-07-02  Richard Henderson  <rth@redhat.com>
18029
18030         * expmed.c (make_tree): Don't use SET_DECL_RTL.
18031
18032 2004-07-02  Steven Bosscher  <stevenb@suse.de>
18033
18034         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
18035
18036 2004-07-01  Richard Henderson  <rth@redhat.com>
18037
18038         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
18039         (alpha_gp_save_rtx): Use assign_stack_local instead of
18040         gen_mem_addressof.
18041
18042 2004-07-01  Richard Henderson  <rth@redhat.com>
18043
18044         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
18045         (alpha_rtx_cost_data): Update to match.
18046         (alpha_rtx_cost_size): New.
18047         (alpha_rtx_costs): Honor optimize_size.
18048
18049 2004-07-01  Richard Henderson  <rth@redhat.com>
18050
18051         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
18052         * cfgexpand.c (tree_expand_cfg): Do it here.
18053         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
18054         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
18055         * config/mips/mips.c (mips_output_mi_thunk): And here.
18056         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
18057         * config/sh/sh.c (sh_output_mi_thunk): And here.
18058         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
18059
18060 2004-07-01  Richard Henderson  <rth@redhat.com>
18061
18062         * tree.def (RTL_EXPR): Remove.
18063         * c-typeck.c (lvalue_p): Don't handle it.
18064         * expr.c (safe_from_p): Likewise.
18065         (expand_expr_real_1): Likewise.
18066         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
18067         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
18068         * gengtype.c (adjust_field_tree_exp): Likewise.
18069         * stmt.c (warn_if_unused_value): Likewise.
18070         * tree-gimple.c (recalculate_side_effects): Likewise.
18071         * tree-pretty-print.c (dump_generic_node): Likewise.
18072         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
18073         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
18074         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
18075
18076         * stmt.c (struct stmt_status): Remove x_last_expr_type,
18077         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
18078         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
18079         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
18080         all the bits that tracked last_expr.
18081         (expand_end_bindings): Don't track last_expr.
18082         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
18083         (clear_last_expr): Remove.
18084         (expand_asm): Don't call it.
18085         (expand_asm_operands, expand_end_cond): Likewise.
18086         (expand_naked_return, expand_null_return_1): Likewise.
18087         * c-typeck.c (c_begin_compound_stmt): Likewise.
18088         * cfgexpand.c (expand_block): Use expand_expr_stmt.
18089         * expr.c (expand_expr_real_1): Likewise.
18090         * tree.h: Update prototypes.
18091
18092         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
18093         (struct emit_status): Remove sequence_rtl_expr.
18094         (struct function): Remove x_rtl_expr_chain.
18095         (seq_rtl_expr, rtl_expr_chain): Remove.
18096         * function.c (struct temp_slot): Remove rtl_expr.
18097         (assign_stack_temp_for_type): Don't set it.
18098         (free_temp_slots, pop_temp_slots): Don't check it.
18099         (free_after_compilation): Don't clear x_rtl_expr_chain.
18100         (fixup_var_refs): Don't search it.
18101         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
18102         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
18103         or seq_rtl_expr.
18104         (push_topmost_sequence): Likewise.
18105         (end_sequence, init_emit): Likewise.
18106         (start_sequence_for_rtl_expr): Remove.
18107         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
18108         * rtl.h (preserve_rtl_expr_result): Remove.
18109
18110 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
18111
18112         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
18113         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
18114         typos.
18115
18116 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
18117
18118         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
18119         (STANDARD_STARTFILE_PREFIX_2): Define.
18120         (standard_startfile_prefix_1): Initialize to
18121         STANDARD_STARTFILE_PREFIX_1.
18122         (standard_startfile_prefix_2): Initialize to
18123         STANDARD_STARTFILE_PREFIX_2.
18124         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
18125         (STANDARD_STARTFILE_PREFIX_1): Define.
18126         (STANDARD_STARTFILE_PREFIX_2): Define.
18127         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
18128         (STANDARD_STARTFILE_PREFIX_2): Document.
18129
18130 2004-07-01  Richard Henderson  <rth@redhat.com>
18131
18132         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
18133         in order to disable scalarization.  Instead set a flag and wait
18134         for a candidate decl.
18135
18136 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
18137
18138         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
18139         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
18140         Use terminology "testsuite" and "enumerated".
18141
18142 2004-07-01  Richard Henderson  <rth@redhat.com>
18143
18144         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
18145         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
18146         (initial_return_save): Likewise.
18147         (flush_queued_reg_saves): Remap register numbers.
18148         (dwarf2out_return_reg): Likewise.
18149
18150 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18151
18152         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
18153
18154         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
18155         access functions for lower bound and element size and only output
18156         if lower bound nonzero or element size not same as that of type.
18157         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
18158
18159 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
18160
18161         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
18162
18163 2004-07-01  Per Bothner  <per@bothner.com>
18164
18165         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
18166
18167 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
18168
18169         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
18170         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
18171         first operand.  Don't optimize if the bitfield is volatile.
18172
18173 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
18174
18175         * c-pretty-print.c (pp_c_postfix_expression): Handle
18176         floating-point comparison operators.
18177         (pp_c_expression): Pass floating-point comparison
18178         operators to pp_c_postfix_expression.
18179
18180 2004-07-01  Roger Sayle  <roger@eyesopen.com>
18181
18182         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
18183         rtx_cost instead of "had_mult" to determine whether the transformed
18184         expression is cheaper than the original.
18185
18186 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
18187
18188         * alias.c (get_alias_set, canon_rtx, get_addr,
18189         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
18190         Use MEM_P.
18191         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
18192         expand_builtin): Likewise.
18193         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
18194         Likewise.
18195         * combine.c (can_combine_p, combinable_i3pat, try_combine,
18196         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
18197         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
18198         record_dead_and_set_regs_1, get_last_value_validate,
18199         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
18200         * cse.c (check_dependence, canon_hash, equiv_constant,
18201         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
18202         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
18203         count_reg_usage): Likewise.
18204         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
18205         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
18206         cselib_record_sets): Likewise.
18207         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
18208         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
18209         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
18210         * df.c (df_uses_record): Likewise.
18211         * dojump (do_jump): Likewise.
18212         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
18213         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
18214         decl_start_label): Likewise.
18215         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
18216         operand_subword, change_address_1, make_safe_from): Likewise.
18217         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
18218         stabilize, force_not_mem): Likewise.
18219         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
18220         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
18221         * expr.c (convert_move, convert_modes, emit_block_move,
18222         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
18223         emit_move_insn_1, expand_assignment, store_expr,
18224         store_constructor_field, store_constructor, store_field,
18225         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
18226         Likewise.
18227         * final.c (cleanup_subreg_operands, alter_subreg,
18228         get_mem_expr_from_op): Likewise.
18229         * flow.c (notice_stack_pointer_modification_1,
18230         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
18231         Likewise.
18232         * function.c (mark_temp_addr_taken, preserve_temp_slots,
18233         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
18234         optimize_bit_field, flush_addressof, purge_addressof_1,
18235         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
18236         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
18237         keep_stack_depressed): Likewise.
18238         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
18239         noce_process_if_block, find_memory): Likewise.
18240         * integrate.c (subst_constants, allocate_initial_values): Likewise.
18241         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
18242         update_equiv_regs): Likewise.
18243         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
18244         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
18245         * optabs.c (expand_abs, emit_unop_insn): Likewise.
18246         * passes.c (rest_of_handle_final): Likewise.
18247         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
18248         move2add_note_store): Likewise.
18249         * ra-build.c (detect_remat_webs): Likewise.
18250         * ra-debug.c (dump_static_insn_cost): Likewise.
18251         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
18252         * recog.c (validate_change, apply_change_group, cancel_changes,
18253         validate_replace_rtx_1, general_operand, register_operand,
18254         nonmemory_operand, push_operand, pop_operand, memory_operand,
18255         indirect_operand, asm_operand_ok, offsettable_memref_p,
18256         offsettable_nonstrict_memref_p, constrain_operands,
18257         store_data_bypass_p): Likewise.
18258         * reg-stack.c (subst_stack_regs_pat): Likewise.
18259         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
18260         copy_cost, reg_scan_mark_refs): Likewise.
18261         * regmove.c (optimize_reg_copy_3, stack_memref_p,
18262         combine_stack_adjustments_for_block): Likewise.
18263         * regrename.c (copyprop_hardreg_forward_1): Likewise.
18264         * reload.c (can_reload_into, push_reload, decompose, immune_p,
18265         find_reloads, find_reloads_address, find_reloads_address_1,
18266         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
18267         find_equiv_reg): Likewise.
18268         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
18269         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
18270         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
18271         delete_address_reloads): Likewise.
18272         * resource.c (mark_referenced_resources): Likewise.
18273         * rtlanal.c (get_jump_table_offset, count_occurrences,
18274         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
18275         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
18276         num_sign_bit_copies1): Likewise.
18277         * rtlhooks.c (gen_lowpart_general): Likewise.
18278         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
18279         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
18280         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
18281         sdbout_global_decl): Likewise.
18282         * simplify-rtx.c (simplify_subreg): Likewise.
18283         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
18284         expand_anon_union_decl, expand_end_case_type): Likewise.
18285         * unroll.c (calculate_giv_inc): Likewise.
18286         * var-tracking.c (stack_adjust_offset_pre_post,
18287         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
18288         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
18289         vt_add_function_parameters): Likewise.
18290         * varasm.c (make_var_volatile, notice_global_symbol,
18291         assemble_external, decode_addr_const, mark_weak,
18292         default_encode_section_info): Likewise.
18293
18294 2004-07-01  Steven Bosscher  <stevenb@suse.de>
18295
18296         * stmt.c (check_seenlabel): Remove.
18297         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
18298
18299 2004-07-01  Richard Henderson  <rth@redhat.com>
18300
18301         * function.h (struct function): Remove x_function_call_count.
18302         (function_call_count): Remove.
18303         * calls.c (expand_call): Don't set it.
18304         * integrate.c (copy_rtx_and_substitute): Likewise.
18305
18306         * function.h (struct function): Remove x_cleanup_label.
18307         (cleanup_label): Remove.
18308         * stmt.c (expand_value_return): Don't use it.
18309         * function.c (free_after_compilation): Don't set it.
18310         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
18311         * cfgexpand.c (tree_expand_cfg): Update call.
18312         * tree.h (expand_function_start): Update decl.
18313
18314 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
18315
18316         PR c/1027
18317         * c-lang.c (c_initialize_diagnostics): Move from here ...
18318         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
18319         (c_tree_printer): Use pretty-printer to format %T.
18320         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
18321         before '*' if not C++.
18322         (pp_c_direct_abstract_declarator): Don't try to print array upper
18323         bound for flexible array members.
18324         * c-tree.h: Include "diagnostic.h".
18325         (c_initialize_diagnostics): Declare.
18326         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
18327         * c-format.c (format_type_warning): New function.  Improve
18328         diagnostics for incorrect format argument types.
18329         (check_format_types): Use it.  Add two parameters.  Use the
18330         TYPE_MAIN_VARIANT of wanted_type.
18331         (check_format_info_main): Pass new parameters to
18332         check_format_types.
18333         (struct format_wanted_type): Update comment.
18334
18335 2004-07-01  Nick Clifton  <nickc@redhat.com>
18336
18337         * target.h (struct gcc_target): Add new field to struct cxx:
18338         import_export_class.
18339         * target-def.h (TARGET_CXX): Initialise the new field.
18340         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
18341         the new field.
18342         * doc/tm.texi: Document the new target hook.
18343
18344 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
18345
18346         * builtins.c (fold_builtin_classify): Fix typo.
18347
18348 2004-07-01  Richard Henderson  <rth@redhat.com>
18349
18350         * function.c (identify_blocks, identify_blocks_1): Remove.
18351         * function.h (identify_blocks): Remove.
18352         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
18353
18354 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
18355
18356         * builtins.c (fold_builtin_classify): New.
18357         (fold_builtin_unordered_cmp): Fix commentary.
18358         (fold_builtin): Use it.
18359         * builtins.def: Define builtins for isnan,
18360         isnanf, isnanl, finite, finitef, finitel,
18361         isinf, isinff, isinfl.
18362
18363 2004-07-01  Richard Henderson  <rth@redhat.com>
18364
18365         * function.h (struct function): Remove dont_emit_block_notes.
18366         * gimple-low.c (lower_function_body): Don't set it.
18367         * cfgexpand.c (expand_block): Don't check it.
18368         * cfglayout.c (insn_locators_initialize): Likewise.
18369         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
18370         * passes.c (rest_of_compilation): Likewise.
18371         * stmt.c (expand_start_bindings_and_block): Likewise.
18372         (expand_end_bindings): Likewise.
18373
18374 2004-07-01  Richard Henderson  <rth@redhat.com>
18375
18376         * cgraph.h (cgraph_build_static_cdtor): Declare.
18377         * cgraphunit.c (cgraph_build_static_cdtor): New.
18378         * c-objc-common.c (build_cdtor): Use it.
18379         * coverage.c (create_coverage): Likewise.
18380         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
18381         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
18382
18383 See ChangeLog.11 for earlier changes.