PR tree-opt/18536
[official-gcc.git] / gcc / ChangeLog
blobdf0dfa73d638e08df8977eb23e76cf859503d07d
1 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
3         PR tree-opt/18536
4         * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
5         creating iv instead of integer_type.
6         (vect_build_loop_niters): Remove redundant code.
7         (vect_transform_loop_bound): Removed (duplicates functionality of
8         make_loop_iterate_ntimes.
9         (vect_gen_niters_for_prolog_loop): Add documentation. Call
10         lang_hooks.types.type_for_size to create a type of the required size.
11         Use that type instead of integer_type. Remove redundant code.
12         (vect_update_niters_after_peeling): Use type of niters instead of
13         integer_type.
14         (vect_transform_loop): Unify handling of known and unknown loop bound
15         cases. Call make_loop_iterate_ntimes instead of 
16         vect_transform_loop_bound.
18 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
20         PR target/18217
21         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
22         (LIB2ADDEH): Here.
24 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
26         PR tree-opt/18544
27         * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
29 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
31         * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
32         m32r*linux.
33         * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
34         m32r/libgcc-glibc.ver.
35         * config/m32r/libgcc-glibc.ver: Add New file.
37 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
39         * bitmap.h (struct bitmap_obstack): New obstack type.
40         (struct bitmap_head_def): Replace using_obstack with obstack
41         pointer.
42         (bitmap_default_obstack): New.
43         (bitmap_initialize): Make inline, does not do allocation.
44         (bitmap_release_memory): Remove.
45         (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
46         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
47         bitmap_obstack_free, bitmap_malloc_free): Declare.
48         (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
49         (BITMAP_FREE): Replace with ...
50         (BITMAP_OBSTACK_FREE): ... this.
51         (BITMAP_XFREE): Adjust.
52         (BITMAP_INIT_ONCE): Remove.
53         * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
54         (bitmap_default_obstack): New.
55         (bitmap_elem_to_freelist): Adjust.
56         (bitmap_element_allocate): Adjust. Break initialization into ...
57         (bitmap_obstack_initialize): ... here.
58         (bitmap_release_memory): Replace with ...
59         (bitmap_obstack_release): ... this.
60         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
61         bitmap_obstack_free, bitmap_malloc_free): New.
62         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
63         bitmap_initialize.
64         (bitmap_initialize): Move to bitmap.h.
65         * gengtype.c (open_base_files): Add obstack.h to ifiles.
66         * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
67         * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
68         (INITIALIZE_REG_SET): Remove.
69         (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
70         (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
71         (flow_obstack): Do not declare.
72         (reg_obstack): Declare.
73         * regs.h: Include obstack.h.
74         * tree-optimize.c (tree_rest_of_compilation): Initialize and
75         release bitmap obstack here.
76         * bb-reorder.c: #include regs, not basic-block.
77         (fix_crossing_conditional_branches): Allocate regsets from
78         reg_obstack.
79         * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
80         obstack.h.
81         * caller-save.c: Include regs.h earlier.
82         * cfg.c: Do not include basic-block.h or obstack.h.
83         (reg_obstack): Define.
84         * cfganal.c: Include obstack.h
85         * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
86         earlier.
87         * cfglayout.c: Do not include obstack.h.
88         (flow_obstack): Remove declaration.
89         (cfg_layout_duplicate_bb): Use reg_obstack.
90         * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
91         * cfgrtl.c (rtl_split_block): Use reg_obstack.
92         (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
93         (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
94         (cfg_layout_split_edge): Use reg_obstack.
95         * cse.c: Include regs.h earlier.
96         * ddg.c: Do not include basic-block.h.
97         * dominance.c: Inlude obstack.h.
98         * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
99         (calculate_global_regs_live): Likewise.
100         (allocate_bb_life_data): Use reg_obstack.
101         (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
102         * global.c: Do not include basic-block.h.
103         (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
104         * graph.c: Include obstack.h.
105         * haifa-sched.c: Do not include basic-block.h.
106         * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
107         * local-alloc.c: Do not include basic-block.h.
108         * loop-init.c, loop-invariant.c: Include obstack.h.
109         * loop-iv.c: Likewise.
110         (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
111         adjust.
112         * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
113         * modulo-sched.c: Do not include basic-block.h.
114         * passes.c (rest_of_handle_final): Do not call
115         regset_release_memory.
116         * ra-debug.c: Include regs.h earlier. Do not include
117         basic-block.h.
118         * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
119         * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
120         (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
121         (regset_release_memory): Remove.
122         * resource.c: Do not include basic-block.h.
123         * rtlanal.c: Do not include basic-block.h.
124         * sbitmap.c: Include obstack.h.
125         * sched-deps.c: Do not include basic-block.h.
126         (reg_pending_sets_head, reg_pending_clobbers_head,
127         reg_pending_uses_head): Remove.
128         (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
129         * sched-ebb.c: Do not include basic-block.h.
130         * sched-rgn.c: Likewise.
131         * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
132         BITMAP_XFREE.
133         * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
134         * tree-sra.c (decide_instantiations): Adjust bitmap
135         initialization.
136         * tree-ssa-dce.c: Include obstack.h.
137         * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
138         (value_insert_into_set_bitmap): Remove useless bitmap_clear.
139         (bitmap_set_new): Likewise.
140         (init_pre): Initialize bitmap obstack.
141         (fini_pre): Release bitmap obstack.
142         * tree-ssanames.c (ssa_names_to_rewrite): Make static.
143         (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
144         (mark_for_rewrite, unmark_for_rewrite): Likewise.
145         (marked_ssa_names): Likewise.
146         (init_ssanames): Use BITMAP_XMALLOC.
147         (fini_ssanames): Use BITMAP_XFREE.
148         * web.c: Include obstack.h
150 2004-11-22  Nick Clifton  <nickc@redhat.com>
152         * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
153         predecessor in the first for-loop.
155 2004-11-21  Stan Shebs  <shebs@apple.com>
157         * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
158         UNION_TYPE case.
159         (function_arg): Move darwin test up, sniff mode first for
160         efficiency, test for union type.
162 2004-11-21  Dale Johannesen  <dalej@apple.com>
164         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Define.
166 2004-11-21  Jeff Law  <law@redhat.com>
168         * tree-ssa.c (verify_use): Fix comment.
169         (verify_phi_args): Check that the number of incoming edges matches
170         the number of PHI arguments.  Check that each PHI argument is
171         either an SSA_NAME or an invariant.  Coalesce tests for PHIs for
172         dead or duplicated edges.  Clear e->aux earlier and avoid separate
173         loop to clear e->aux and test for missed edges.
174         (verify_ssa): Remove first walk over statements.  Move checking
175         of PHI args into verify_phi_args.  Move checking of statements
176         with aliased stores and V_MAY_DEFS into the remaining loop over
177         the statements.  Register defs by walking through the formal
178         SSA_NAME table.
180 2004-11-21  Roger Sayle  <roger@eyesopen.com>
182         PR middle-end/18520
183         * dojump.c (compare_from_rtx): Clarify mode argument in function
184         description.  Correct order of mode/cmp_mode arguments in call to
185         simplify_relational_operation.  Check "tem" for COMPARISON_P.
187 2004-11-21  Paolo Bonzini  <bonzini@gnu.org>
188             David Edelsohn  <edelsohn@gnu.org>
190         PR target/17836
191         * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
192         synthetic vectors in memory.
193         (function_arg_boundary): Align large synthetic vectors.
194         (rs6000_pass_by_reference): Pass synthetic vectors in memory.
196 2004-11-21  Jeff Law  <law@redhat.com>
198         * cfg.c (update_bb_profile_for_threading): Do not rescale the
199         successor probabilities if they are not going to change.  Pull
200         division out of loop if we do need to rescale successor probabilities.
202         * tree-ssa-threadupdate.c (redirection_data_hash): Use the
203         index of the destination block for the hash value rather than
204         hashing a pointer.
206 2004-11-20  Joseph S. Myers  <joseph@codesourcery.com>
208         * c-typeck.c (build_array_ref): Don't check for index == 0.  Make
209         checks for neither argument being an array or pointer (swapping
210         the arguments if necessary), the array argument being a pointer to
211         or array of functions and for -Wchar-subscripts warnings upfront.
213 2004-11-20  Jeff Law  <law@redhat.com>
215         * regrename.c (copyprop_hardreg_forward): Only search for a
216         previously processed block if the current block only has one
217         predecessor.
219 2004-11-20  Kazu Hirata  <kazu@cs.umass.edu>
221         * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
222         typos.
223         * config/arm/arm.c: Follow spelling conventions.
225 2004-11-20  Richard Earnshaw  <rearnsha@arm.com>
227         * arm.c (arm_override_options): Use arm_ld_sched rather than testing
228         a bit in tune_flags.
229         (const_double_needs_minipool): Likewise.  Split most of the code out
230         into ...
231         (arm_const_double_inline_cost): ... new function here.
232         * arm-protos.h (arm_const_double_inline_cost): Add prototype.
233         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
234         word constants of length 2, 3 and 4 insns respectively.
235         (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
236         * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
237         constraints.  Set insn lenghts accordingly.
239 2004-11-19  Jeff Law  <law@redhat.com>
241         * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
242         a hash table.  Extensive modifications throughout to support
243         that change.
244         (struct el): New.
245         (struct local_info): New.
246         (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
247         fields.
248         (redirection_data): Now a hashtable.
249         (redirection_data_hash, redirection_data_eq): New.
250         (lookup_redirection_data, create_duplicates): New.
251         (create_edge_and_update_destionation_phis): New.
252         (fixup_template_block, redirect_edges): New.
253         (thread_block): Use hash table traversals instead of loops over
254         varray entries or incoming edge vectors.
256 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
258         * basic-block.h (edge_def): Add dest_idx.
259         * cfg.c (unchecked_make_edge): Initialize dest_idx.
260         (remove_edge): Simplify the disconnection of an edge from its
261         destination.
262         (redirect_edge_succ): Likewise.
263         * cfghooks.c (verify_flow_info): Check the consistency of
264         dest_idx for each edge.
266 2004-11-19  Aldy Hernandez  <aldyh@redhat.com>
268         * simplify-rtx.c (simplify_ternary_operation): Use
269         gen_int_mode.
271 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
273         * tree-cfg.c (reinstall_phi_args): New.
274         (tree_split_edge): Use it after redirecting an edge.  Don't
275         modify PHI_ARG_EDGE.
277 2004-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
279         * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
280         if checking is enabled.
282 2004-11-19  Joseph S. Myers  <joseph@codesourcery.com>
284         * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
285         too many nested scopes.
287 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
289         PR tree-opt/18181
290         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
291         changed to suppoer uses-after-loop and to void creating flow paths
292         that shouldn't exist.
293         (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
294         Modified to fit the new peeling scheme. Avoid quadratic behavior.
295         (slpeel_add_loop_guard): Takes additional argument.
296         (slpeel_verify_cfg_after_peeling): New function.
297         (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
298         documentation. Use 'exit-bb' instead of creating 'new-bb'.
299         (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
300         the new peeling scheme.
301         (copy_phi_nodes): Function removed. Its functionality moved to
302         update_phis_for_duplicate_loop.
303         (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
304         moved here. Added documentation. Modified to fit the new peeling scheme.
305         (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
306         needed - done in slpeel_tree_peel_loop_to_edge.
307         (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
308         (vect_do_peeling_for_loop_bound): Add documentation. Call
309         slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
310         with additional argument.
311         (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
313         (vect_finish_stmt_generation): Avoid 80 column oveflow.
315 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
317         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
318         arguments removed.
319         (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
320         without last two arguments. Update single_exit of loops.
321         (vect_update_niters_after_peeling): Removed. Its functionality was
322         moved to vect_do_peeling_for_alignment. 
323         (vect_do_peeling_for_loop_bound): New name for function previously
324         called vect_transform_for_unknown_loop_bound.
325         (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
326         instead of code that duplicates the same functionality.
327         (vect_do_peeling_for_alignment): Functionality of   
328         vect_update_niters_after_peeling moved here.
329         (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
330         previously named vect_transform_for_unknown_loop_bound - for both known
331         and unknown loop bound cases.
333 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
335         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
336         previously called verify_loop_for_duplication. All conditions compacted
337         into one compound condition. Removed debug dumps.
338         (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
339         functionality moved to vect_can_advance_ivs_p, and some to
340         vect_analyze_loop_form.
341         (vect_can_advance_ivs_p): New function. Contains functionality that was
342         taken out of vect_analyze_loop_with_symbolic_num_of_iters.
343         (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
344         (vect_analyze_operations): Call vect_can_advance_ivs_p and
345         slpeel_can_duplicate_loop_p.
346         (vect_get_loop_niters): Added documentation.
347         (vect_analyze_loop_form): Check the loop entry always - not only in case
348         of unknown loop bound. Create preheader and exit bb if necessary. Apply
349         a check that used to take place in
350         vect_analyze_loop_with_symbolic_num_of_iters.
351         (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
352         Remove redundant call to rewrite_into_loop_closed_ssa.
353         (vect_compute_data_refs_alignment): Removed obsolete comment.
355 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
357         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
358         function previously called tree_duplicate_loop_to_edge.
359         (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
360         previously called tree_duplicate_loop_to_edge_cfg.
361         (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
362         function name.
363         (slpeel_update_phi_nodes_for_guard): Likewise.
364         (slpeel_make_loop_iterate_ntimes): Likewise.
365         (slpeel_add_loop_guard): Likewise.
366         (allocate_new_names, free_new_names): Function declaration moved to top
367         of file.
368         (rename_use_op, rename_def_op): Likewise.
369         (rename_variables_in_bb, rename_variables_in_loop): Likewise.
370         (vect_generate_tmps_on_preheader): Function declaration moved.
371         (vect_transform_for_unknown_loop_bound): Added missing function
372         declaration.
374 2004-11-19  Andrew Pinski  <pinskia@physics.uc.edu>
376         PR tree-opt/18507
377         * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
378         Define a VEC(tree_on_heap) for head.
379         (register_new_def): Change second argument to be a VEC(tree_on_heap).
380         * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
381         (tree_ssa_dominator_optimize): Initialize block_defs_stack with
382         the VEC(tree_on_heap) function.  Also free it before returning.
383         (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
384         for block_defs_stack.
385         (restore_currdefs_to_original_value): Use VEC_length instead of
386         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
387         (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
388         for block_defs_stack.
389         * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
390         (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
391         for block_defs_stack.
392         (ssa_register_new_def): Likewise.
393         (ssa_rewrite_initialize_block): Likewise.
394         (rewrite_finalize_block): Use VEC_length instead of
395         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
396         (ssa_rewrite_finalize_block): Likewise.
397         (register_new_def): Change second argument to be a VEC(tree_on_heap).
398         Use VEC_safe_push instead of VARRAY_PUSH_TREE.
399         (rewrite_blocks): Initialize block_defs_stack with
400         the VEC(tree_on_heap) function.  Also free it before returning.
401         (rewrite_ssa_into_ssa): Likewise.
403 2004-11-19  Fariborz Jahanian <fjahanian@apple.com>
405         * config/darwin.c (machopic_data_defined_p): return 1 for
406         MACHOPIC_DEFINED_FUNCTION.
408 2004-11-19  Jeff Law  <law@redhat.com>
410         * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
411         arguments.
413 2004-11-19  Paul Brook  <paul@codesourcery.com>
415         PR target/17735
416         * varasm.c (default_assemble_integer): Allow pointer-sized values.
417         Expand comment.
419 2004-11-19  Nick Clifton  <nickc@redhat.com>
421         * config/stormy16/stormy16.c (combine_bnp): Add code to handle
422         zero_extension and lshiftrt insns.
423         Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
424         where appropriate.
425         * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
426         to handle bp and bn insn patterns with a zero_extend rtx
427         inside them.
429 2004-11-19  Ian Lance Taylor  <ian@wasabisystems.com>
431         * config/arm/arm.md (generic_sched): Make const.
433 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
435         * emit-rtl.c (classify_insn): Make it static.
436         * rtl.h: Remove the corresponding prototype.
438         * integrate.c (has_func_hard_reg_initial_val,
439         get_func_hard_reg_initial_val): Make them static.
440         * integrate.h: Remove the corresponding prototypes.
442 2004-11-19  Ben Elliston  <bje@au.ibm.com>
444         * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
445         (dw2_asm_output_delta_sleb128): Likewise.
446         * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
447         (dw2_asm_output_delta_sleb128): Likewise.
449 2004-11-19  Adam Nemet  <anemet@lnxw.com>
451         * tree-ssa-alias.c: Fix comment.
453 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
455         * tree-outof-ssa.c: Fix a comment typo.
457 2004-11-19  Ben Elliston  <bje@au.ibm.com>
459         * predict.h (predict_insn): Remove extern declaration.
460         * predict.c (predict_insn): Make static.
462 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
464         * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
466 2004-11-18  Nicolas Pitre <nico@cam.org>
468         * config/arm/arm.c (const_double_needs_minipool): New function to
469         determine if a CONST_DOUBLE should be pushed to the minipool.
470         (note_invalid_constants): Use it.
472 2004-11-18  Paul Brook  <paul@codesourcery.com>
474         * config/arm/arm.c (target_float_switch): New variable..
475         (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
476         target_float_switch.
477         * config/arm/arm.h (target_float_switch): Declare.
478         (ARM_FLAG_SOFT_FLOAT): Remove.
479         (TARGET_SWITCHES): Remove hard-float and soft-float.
480         (TARGET_OPTIONS): Add hard-float and soft-float.
481         (TARGET_DEFAULT_FLOAT_ABI): Define.
482         * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
483         (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
484         * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
485         * config/arm/netbsd-elf.h: Ditto.
486         * config/arm/netbsd.h: Ditto.
487         * config/arm/pe.h: Ditto.
488         * config/arm/unknown-elf.h: Ditto.
489         * config/arm/wince-pe.h: Ditto.
490         * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
491         * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
492         * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
494 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
496         * config/rs6000/altivec.md (VI, VF, V): New mode macros.
497         (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
498         altivec_lvx_4sf): Rename and replace with ...
499         (altivec_lvx_<mode>): ... mode macro version.
500         (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
501         altivec_stvx_4sf): Rename and replace with ... 
502         (altivec_stvx_<mode>): ... mode macro version.
503         (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
504         (mov<mode>): ... mode macro version.
505         (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
506         *movv4sf_internal1): Replace with ...
507         (*mov<mode>_internal): ... mode macro version.
508         (get_vrsave_internal, *set_vrsave_internal, *save_world,
509         *restore_world): Unquote output statements.
510         * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
511         altivec_expand_st_builtin): Adjust insn names.
513 2004-11-18  Aldy Hernandez  <aldyh@redhat.com>
515         * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
516         previous change.
517         (rs6000_override_options): Likewise.
518         (spe_build_register_parallel): Handle complex doubles on e500v2.
519         (rs6000_spe_function_arg): Likewise.
520         (function_arg): Likewise.
521         (rs6000_function_value): Likewise.
522         (rs6000_libcall_value): Likewise.
524 2004-11-18  Andrew Pinski  <pinskia@physics.uc.edu>
526         * ifcvt.c (find_if_block): Move the check for the number of edges
527         above the loops checking for complex edges.
528         Remove the counting of edges as we use EDGE_COUNT now.
530 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
532         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
533         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
535 2004-11-18  Andreas Schwab  <schwab@suse.de>
537         * config/i386/i386.md (define_peephole2): Revert last change.
539 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
541         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
542         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
544 2004-11-18  Diego Novillo  <dnovillo@redhat.com>
546         * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
547         of FOR_EACH_BB.
549 2004-11-18  Jon Grimm <jgrimm2@us.ibm.com>
551         * Makefile.in (macro_list): Depend on s-macro_list.
552         (s-macro_list): New target.
554 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
556         PR target/17107
557         * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
558         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
559         (fold_range_test): Adjust.
560         (fold_truthop): Use it.
561         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
562         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
564 2004-11-18  Uros Bizjak  <uros@kss-loka.si>
566         * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
567         insn split constraint.
568         (define_peephole2): Remove unneeded "&& 1" from peephole2
569         constraints.
571 2004-11-18  Ben Elliston  <bje@au.ibm.com>
573         * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
574         element for bsi_prev; use @findex instead.
576 2004-11-18  Ben Elliston  <bje@au.ibm.com>
578         * opts.h (add_input_filename): Remove extern declaration.
579         * opts.c (add_input_filename): Make static.
581 2004-11-17  Mark Mitchell  <mark@codesourcery.com>
583         * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
584         ATTRIBUTE_UNUSED.
585   
586 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
588         * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
589         * system.h: Poison it.
590         * doc/tm.texi: Delete its documentation.
592 2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
593             Mark Mitchell  <mark@codesourcery.com>
595         * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
596         * config/i386/i386.c (i386_solaris_elf_named_section): New
597         function.
598         * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
599         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
600         64-bit.
601         (ASM_QUAD): Don't undefine for biarch targets.
602         * config/i386/t-sol2: Introduce multilib support.
604 2004-11-18  Ben Elliston  <bje@au.ibm.com>
606         * cgraphunit.c: Replace "it's" with "its" and fix a typo.
608 2004-11-18  Ben Elliston  <bje@au.ibm.com>
610         * cgraph.h: Replace "it's" with "its" throughout.
612 2004-11-18  Ben Elliston  <bje@au.ibm.com>
614         * doc/rtl.texi (Flags): Grammar fix.
616 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
618         * expmed.c (alg_code): Add alg_unknown.
619         (alg_hash_entry): New.
620         (NUM_ALG_HASH_ENTRIES): Likewise.
621         (alg_hash): Likewise.
622         (synth_mult): Cache the result into alg_hash.
624 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
626         * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
627         config/rs6000/libgcc-ppc64.ver.
629 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
631         * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
632         checking if an unconditional return is followed by a barrier.
634         * jump.c (condjump_p): Remove unreachable code.
636         * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
637         tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
638         tree-ssa-live.h, tree.h: Remove unused prototypes.
640 2004-11-17  Jeff Law  <law@redhat.com>
642         * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
643         (edge_to_cases_elt): Renamed from edge_to_case_leader.
644         (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
645         (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
646         (edge_to_cases_cleanup, recording_case_labels_p): New functions.
647         (get_cases_for_edge): New function.
648         (start_recording_case_labels, end_recording_case_labels): Similarly.
649         (record_switch_edge): Don't muck with the CASE_LABEL.  Instead
650         chain equivalent CASE_LABEL_EXPRs together.
651         (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
652         (make_switch_expr_edges): Do not record edge/cases here.
653         (cleanup_tree_cfg): Record cases around the call to thread_jumps.
654         (split_critical_edges): Record cases around the edge splitting code.
655         (cleanup_dead_labels): Use CASE_LABEL again.
656         (tree_redirect_edge_and_branch): If we have a mapping from edge
657         to cases, use it to handle redirections.  Else do it the slow way.
658         * tree.h (CASE_LEADER_OR_LABEL): Kill.
659         (CASE_LABEL): Revert to just looking at the tree's second operand.
660         * tree.c (get_case_label): Kill.
662 2004-11-17  Diego Novillo  <dnovillo@redhat.com>
664         PR tree-optimization/18307
665         * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
666         'orig' are the same node.
667         (collect_points_to_info_r): Do not call merge_pointed_to_info
668         when the PHI argument is identical to the LHS.
670 2004-11-17  Steven Bosscher  <stevenb@suse.de>
672         * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
673         to insert the exit or entry block.
674         (ssa_prop_init): Use add_control_edge to seed the algorithm.
676 2004-11-16  Zack Weinberg  <zack@codesourcery.com>
678         * mkmap-flat.awk, mkmap-symver.awk: If the last version
679         assigned to a symbol was '%exclude', do not emit it anywhere.
680         If leading_underscore is true, prefix all symbols from the
681         version scripts with a leading underscore before comparing
682         them with nm output or emitting them.  Remove support for dot
683         symbols.
684         * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
685         (SHLIB_MAPFILES): Use libgcc-std.ver.
686         (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
687         (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
688         * config/sh/t-linux: Use the normal libgcc-std.ver, plus
689         libgcc-excl.ver and libgcc-glibc.ver.
691         * config/sh/libgcc-excl.ver: New file.
692         * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
694 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
696         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
697         the test when the edge has the opposite meaning, not when
698         the first argument is invariant.
700 2004-11-16  Aldy Hernandez  <aldyh@redhat.com>
702         * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
703         doubles.
704         (rs6000_complex_function_value): Handle e500 v2 variant.
706 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
708         Fix PR tree-optimization/18519
710         * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
711         * tree-pass.h: Add TODO_cleanup_cfg.
712         * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
713         (ccp_finalize): Remove call to cleanup_cfg.
714         * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
715         (pass_cd_dce): Ditto.
716         (perform_tree_ssa_dce): Remove call to cleanup_cfg,
717         dump_function_to_file.
718         * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
719         to cleanup_cfg.
720         (pass_ch): Add TODO_cleanup_cfg.
721         * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
722         cleanup_cfg.
723         (pass_loop_done): Add TODO_cleanup_cfg.
724         * tree-ssa-phiopt.c (pass_phiopt): Ditto.
725         (tree_ssa_phiopt): Remove call to cleanup_cfg.
727 2004-11-16  Devang Patel  <dpatel@apple.com>
729         * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
731 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
733         * expmed.c, ra-colorize.c: Fix comment typos.
735         * doc/tm.texi: Fix typos.
737 2004-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
738             Mark Mitchell  <mark@codesourcery.com>
740         PR target/6123
741         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
742         __pic__ if PIC.
744 2004-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
746         * regmove.c (regmove_optimize): Use lowpart_subreg instead of
747         gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
749 2004-11-16  Devang Patel  <dpatel@apple.com>
751         * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
753 2004-11-16  Eric Christopher  <echristo@redhat.com>
755         * config/mips/mips.c: Use rtl _P predicates.
756         * config/mips/mips.h: Ditto.
757         * config/mips/mips.md: Ditto.
759 2004-11-16  Fariborz Jahanian <fjahanian@apple.com>
761         * config/rs6000/altivec.md (altivec_vandc): Canonicalize
762         the pattern.
764 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
766         * config/s390/s390.c (s390_cc_modes_compatible): New function.
767         (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
769 2004-11-16  Kaz Kojima  <kkojima@gcc.gnu.org>
771         PR target/18447
772         * config/sh/sh.c (prepare_move_operands): Emit blockage insns
773         before and after the insns for getting GOT address in non-PIC
774         TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
775         is enabled.
777 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
779         * gcc/cse.c (struct change_cc_mode_args): New structure.
780         (cse_change_cc_mode_insn): New function.
781         (cse_change_cc_mode): Use validate_change to perfom changes.
782         (cse_change_cc_mode_insns, cse_condition_code_reg):
783         Call cse_change_cc_mode_insn.
785 2004-11-16  Steven Bosscher  <stevenb@suse.de>
787         * stack.h: Remove.
789 2004-11-16  Steven Bosscher  <stevenb@suse.de>
791         * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
793 2004-11-15  Dale Johannesen  <dalej@apple.com>
795         * tree-flow.h (add_referenced_temp_var):  Remove name from prototype.
797 2004-11-15  Dale Johannesen  <dalej@apple.com>
799         * profile.c (compute_branch_probabilities):  Prevent
800         crash with EH in RTL-based profiling.
802 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
804         * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
805         COND_EXPR_COND.
806         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
807         * tree-ssa-dom.c (thread_across_edge): Likewise.
808         * tree-vectorizer.c (vect_transform_loop_bound): Replace
809         TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
810         COND_EXPR_ELSE.
812         * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
813         (tree_flow_call_edges_add): Update the call to
814         bsi_commit_edge_inserts.
815         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
816         * profile.c (branch_prob): Likewise.
817         * tree-mudflap.c (mf_decl_cache_locals): Likewise.
818         * tree-sra.c (scalarize_function): Likewise.
819         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
820         * tree-ssa-pre.c (fini_pre): Likewise.
821         * tree-flow.h: Update the prototype for
822         bsi_commit_edge_inserts.
824 2004-11-15  Eric Christopher  <echristo@redhat.com>
826         * sched-deps.c (set_sched_group_p): Delete.
827         (delete_all_dependencies): New function.
828         (fixup_sched_groups): Use. New function.
829         (sched_analyze_insn): Use.
831 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
833         * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
834         RROTATE_EXPR or unknown code.
835         * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
836         LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
837         UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
838         or unknown code.
840 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
842         PR c/18498
843         * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
844         after processing the declarator.
846 2004-11-15  Aldy Hernandez  <aldyh@redhat.com>
848         * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
849         vec_duplicate.
850         (altivec_vspltb): Same.
851         (altivec_vspltw): Same.
852         (altivec_vspltisb): Same.
853         (altivec_vspltish): Same.
854         (altivec_vspltisw): Same.
855         (altivec_vspltisw_v4sf): Same.
856         (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
857         UNSPEC_VSPLTISH.
858         Move "End of vector xor's" comment to the right place.
860 2004-11-15  Steve Ellcey  <sje@cup.hp.com>
862         * config/ia64/ia64.md (*movtf_internal):  Use destination_operand
863         instead of nonimmediate_operand.
865 2004-11-15  Mark Mitchell <mark@codesourcery.com>
867         * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
868         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
869         * config/sol2.c (solaris_output_init_fini): Update calls to
870         ASM_OUTPUT_CALL.  Include "rtl.h".
872 2004-11-15  Mark Mitchell <mark@codesourcery.com>
874         * config/sol2-c.c (cmn_err_char_table): Add "p".
876 2004-11-15  Mark Mitchell <mark@codesourcery.com>
878         * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
879         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
881 2004-11-15  Mark Mitchell <mark@codesourcery.com>
883         * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
884         within the multilib directory.
886 2004-11-15  Nick Clifton  <nickc@redhat.com>
888         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
889         builtin assert of cpu=xstormy16.
891 2004-11-15  Nathan Sidwell  <nathan@codesourcery.com>
893         * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
894         variable.
896 2004-11-14  Richard Henderson  <rth@redhat.com>
898         PR 18480
899         * calls.c (struct arg_data): Add parallel_value.
900         (precompute_register_parameters): Set it.
901         (load_register_parameters): Use it.
902         (store_one_arg): Also set it here.
904 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
906         PR tree-optimization/18431
907         * fold-const.c (associate_trees): Do not produce x + 0.
908         (fold_widened_comparison, fold_sign_changed_comparison): New functions.
909         (fold): Use them.
910         * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
911         Moved ...
912         * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
913         * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
915 2004-11-14  Eric Botcazou <ebotcazou@libertysurf.fr>
917         * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
919 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
921         * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
922         value-prof.c: Fix comment typos.
924 2004-11-14  Stan Shebs  <shebs@apple.com>
926         Basic ABI changes for passing structs by value in 64-bit Darwin.
927         * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
928         (rs6000_override_options): Set it for 64-bit Darwin.
929         (rs6000_parse_abi_options): Add testing options to change it.
930         (rs6000_return_in_memory): Test whether the type is one
931         that can be passed in registers.
932         (darwin64_function_arg_advance): New.
933         (function_arg_advance): Call it, plus add recursion depth
934         argument and test when counting off arguments.
935         (rs6000_darwin64_function_arg): New.
936         (function_arg): Call it.
937         (setup_incoming_varargs): Add argument to function_arg_advance.
938         (rs6000_darwin64_function_value): New.
939         (rs6000_function_value): Call it.
940         * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
941         * config/rs6000/rs6000-protos.h: Update decl of
942         function_arg_advance.
944 2004-11-14  Andrew Pinski  <pinskia@physics.uc.edu>
946         PR c/17279
947         * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
948         support TImode before adding __int128_t and __uint128_t types.
950 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
952         PR tree-opt/18400
953         * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
954         (vect_transform_loop_bound): Set loop->nb_iterations.
956 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
957             Andrew Pinski  <pinskia@physics.uc.edu>
959         PR tree-opt/18425
960         * tree-vectorize.c (vect_build_loop_niters): Do not insert
961         NULL into the instruction stream. Initialize new_bb to NULL.
962         (vect_update_ivs_after_vectorizer): Likewise.
963         (vect_gen_niters_for_prolog_loop): Likewise.
965 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
967         PR tree-optimization/18431
968         * tree-flow.h (stmt_references_memory_p): Declare.
969         * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
970         * tree-ssa.c (stmt_references_memory_p): New function.
972 2004-11-14  Andreas Schwab  <schwab@suse.de>
974         * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
975         $(EXPR_H).
977 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
979         * c-common.c (walk_stmt_tree): Remove.
980         * c-common.h: Remove the corresponding prototype.
982         * emit-rtl.c (push_to_full_sequence): Remove.
983         * rtl.h: Remove the corresponding prototype.
985         * cselib.c, expr.c: Fix comment typos.
987 2004-11-13  Richard Henderson  <rth@redhat.com>
989         * calls.c (precompute_register_parameters): Force all PARALLELs
990         into pseudo registers.
991         (load_register_parameters): Copy PARALLELs into hard registers.
992         * function.c (assign_parm_setup_block): Copy PARALLELS into
993         pseudo registers.  Do emit_group_store in conversion_insns.
994         * expr.c (emit_group_load_1): Rename from emit_group_load, take
995         tmps as an argument.  Move final copy loop ...
996         (emit_group_load): ... here.  New function.
997         (emit_group_load_into_temps, emit_group_move_into_temps): New.
998         * expr.h: Declare them.
1000 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1002         * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
1003         tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
1004         with PHI_CHAIN where appropriate.
1006 2004-11-13  Dale Johannesen  <dalej@apple.com>
1008         * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
1009         (tree_block_label): Ditto.
1010         (flush_pending_stmts): Ditto.
1011         (insert_edge_copies): Ditto.
1012         (expr_invariant_in_loop_p): Ditto.
1013         (TDF_USE_OPS): Parenthesize definition.
1014         (TDF_USE_VOPS): Ditto.
1016 2004-11-13  David Edelsohn  <edelsohn@gnu.org>
1018         * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
1019         * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
1020         (atoll): Declare.
1021         * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
1023 2004-11-14  Joseph Myers  <joseph@codesourcery.com>
1025         * config/i386/i386.c (override_options): Move loop to set default
1026         tuning to correct place.
1028 2004-11-13  Zak Kipling  <zak@transversal.com>
1030         PR target/18300
1031         * config/i386/i386.c (classify_argument): Fix infinite loop when
1032         passing object with 3 or more base classes by value.
1034 2004-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1036         * doc/md.texi (constraints) <% modifier>: Mention that it is
1037         useless when the two alternatives are strictly identical.
1039 2004-11-13  Richard Henderson  <rth@redhat.com>
1041         * expmed.c (extract_split_bit_field): Temporarily disable call to
1042         extract_force_align_mem_bit_field.
1044 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1046         * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
1047         formatting.
1049         * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
1050         lambda-code.c, postreload.c, predict.c, tree-sra.c,
1051         tree-ssa-loop-manip.c, tree.c: Fix comment typos.
1053 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
1055         * doc/install.texi (automake): Correctly document that everything now
1056         will use automake 1.9.3.
1058 2004-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
1060         PR target/18347
1061         * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
1062         TImode.  Sorry for other non-complex larger-than-64-bit modes.
1063         * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
1065 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
1067         * doc/install.texi (automake): Document that everything now uses 1.9.
1069 2004-11-13  Bernd Schmidt  <bernd.schmidt@analog.com>
1071         * cse.c (cse_insn): Stores in a libcall sequence can invalidate
1072         previous loads.
1074 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1076         * tree.h: Fix comment typos.
1078 2004-11-13  Steven Bosscher  <stevenb@suse.de>
1080         * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
1081         HARD_REGISTER_NUM_P.
1083         * cselib.c (new_cselib_val): Make comment correct and more detailed.
1084         * flow.c (mark_set_1): Likewise.
1086         * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
1087         duplicate_eh_regions): Remove.
1088         * except.h (duplicate_eh_regions): Remove prototype.
1089         * integrate.c (get_label_from_map, copy_rtx_and_substitute,
1090         global_const_equiv_varray): Remove.
1091         * integrate.h (get_label_from_map, copy_rtx_and_substitute,
1092         global_const_equiv_varray, set_label_in_map): Remove prototypes,
1093         extern declaration, and #define.
1094         (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
1095         (struct inline_remap): Remove.
1096         * varray.c (struct element): Remove entry for const_equiv_data.
1097         * varray.h (struct const_equiv_data): Remove.
1098         (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
1099         (union varray_data_tag) <const_equiv>: Remove.
1100         (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
1101         VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
1103         * regstack.c (record_label_references): Remove unused function.
1105         * rtl.def (VALUE): Update comment.
1106         (LABEL_REF): Remove unused operand 2.
1107         * rtl.h (struct rtx_def): Update for removed accessor macros.
1108         (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
1109         REG_LOOP_TEST_P): Remove.
1110         (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
1111         * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
1112         * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
1114 2004-11-13  James A. Morrison  <phython@gcc.gnu.org>
1115             Eric Botcazou  <ebotcazou@libertysurf.fr>
1117         PR target/18230
1118         * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
1119         patterns.
1120         * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
1121         (V32I): New macro for 32-bit modes.
1122         (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
1123         iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
1124         xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
1125         xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
1126         one_cmpldi_sp64): Use V64I instead of DI.
1127         (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
1128         xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
1129         (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
1130         (nandv64i_vis, nandv32i_vis): New patterns.
1132 2004-11-12  Mike Stump  <mrs@apple.com>
1134         * Makefile.in: Add html support.
1135         * java/Make-lang.in: Likewise.
1136         * fortran/Make-lang.in: Likewise.
1137         * treelang/Make-lang.in: Likewise.
1138         * doc/install.texi: Likewise.
1139         * doc/makefile.texi: Likewise.
1140         * doc/sourcebuild.texi: Likewise.
1142 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1144         * tree-ssa-loop-manip.c: Fix a comment typo.
1146 2004-11-12  Mike Stump  <mrs@apple.com>
1148         * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
1149         renaming this node to Concept Index.
1150         * doc/gccint.texi (Index): Likewise.  Also minor formatting tweaks
1151         to more closely match gcc.texi.
1153 2004-11-12  Jeff Law  <law@redhat.com>
1155         * tree-cfg.c (hashtab.h): Include.
1156         (struct edge_to_case_leader_elt): New structure.
1157         (edge_to_case_leader): New.
1158         (edge_to_case_leader_hash): New hashtable hasing function.
1159         (edge_to_case_leader_eq): New hashtable equality function.
1160         (record_switch_edge): New function.
1161         (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
1162         (make_switch_expr_edges): Build the edge-to-case-leader
1163         hash table.  Tear down the hash table when we're done.
1164         (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
1165         CASE_LABEL.
1166         (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
1167         (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
1168         to use new concept of case leaders to reduce overhead of
1169         redirecting outgoing edges from switch statements.
1170         * tree.c (get_case_label): New function.
1171         * tree.h (CASE_LABEL): Define in terms of get_case_label.
1172         (CASE_LEADER_OR_LABEL): Define.
1174 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
1176         * varasm.c (output_addressed_constants): For CONST_DECLs,
1177         output the initializer if present.
1179 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
1181         * config/rs6000/darwin.h: Fix confusing typo in comment.
1183 2004-11-12  Devang Patel  <dpatel@apple.com>
1185         * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
1187 2004-11-12  Devang Patel  <dpatel@apple.com>
1189         * tree-if-conv.c (clean_predicate_lists): Use loop header
1190         and latch directly.
1192 2004-11-12  Richard Henderson  <rth@redhat.com>
1194         PR 17778
1195         * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
1196         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1197         (TARGET_96_ROUND_53_LONG_DOUBLE): New.
1198         * config/i386/i386-modes.def (XF): Use it.
1200 2004-11-11  Geoffrey Keating  <geoffk@apple.com>
1202         * Makefile.in (macro_list): Use move-if-change to avoid spurious
1203         rebuilds.
1205 2004-11-12  Mark Mitchell  <mark@codesourcery.com>
1207         PR c++/18416
1208         * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
1209         when deciding whether to pass a variable to
1210         cgraph_varpool_finalize_decl or assemble_variable.
1211         * toplev.c (check_global_declarations): Do not clear DECL_RTL.
1213 2004-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1215         * tree-vectorizer.c: Fix a comment typo.
1217 2004-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
1219         * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
1221 2004-11-12  Diego Novillo  <dnovillo@redhat.com>
1223         * tree-scalar-evolution.c (analyzable_condition): Remove
1224         superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
1226 2004-11-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1228         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
1229         Remove m505/roe multilib variant.
1231 2004-11-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1233         * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
1234         to load from the stack.
1236 2004-11-12  Richard Henderson  <rth@redhat.com>
1238         * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
1239         (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
1240         * toplev.h (FL2T__): Remove.
1241         (CLZ_HWI): Rename from FL2T_CLZ__.
1242         (CTZ_HWI): New.
1243         (floor_log2): Simplify.
1244         (exact_log2): New.
1246 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
1248         * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
1249         compute the first overlapping iterations.
1251 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
1253         PR middle-end/18005
1254         * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
1255         that arguments of EXACT_DIV_EXPR are INTEGER_CST.
1257 2004-11-12  Steven Bosscher  <stevenb@suse.de>
1259         PR tree-optimization/18419
1260         * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
1261         pointer set instead of a bitmap.
1262         (walk_use_def_chains): Create, pass and clean up that pointer_set.
1264         * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
1265         field an sbitmap.
1266         (init_alias_info): Allocate and zero it here.
1267         (delete_alias_info): Delete it here.
1268         (collect_points_to_info_for): Use it.
1270 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1272         * alias.c (record_alias_subset, addr_side_effect_eval):
1273         Make them static.
1274         * alias.h: Remove the prototype for record_alias_subset.
1275         * expr.h: Remove the commented-out prototype for
1276         record_alias_subset.
1277         * rtl.h: Remove the prototype for addr_side_effect_eval.
1279         * cfglayout.c (choose_inner_scope): Make it static.
1280         * rtl.h: Remove the corresponding prototype.
1282         * cfgloopmanip.c (update_single_exits_after_duplication,
1283         unloop): Make them static.
1284         * cfgloop.h: Remove the corresponding prototypes.
1286         * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
1287         Make them static.
1288         * c-tree.h: Remove the corresponding prototypes.
1290         * explow.c (round_push): Make it static.
1291         * expr.h: Remove the corresponding prototype.
1293         * varasm.c (get_named_section_flags, decl_tls_model): Make
1294         them static.
1295         * output.h: Remove the prototype for get_named_section_flags.
1296         * tree.h: Remove the prototype for decl_tls_model.
1298 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1300         * function.c (expand_function_end): Remove an "if" statement
1301         that always triggers.
1302         * stmt.c (expand_null_return_1): Likewise.
1304 2004-11-11  James E. Wilson  <wilson@specifixinc.com>
1306         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
1307         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
1308         CLASS_MAX_NREGS): Likewise.
1310 2004-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
1312         PR tree-optimization/17742
1313         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
1314         MINUS_EXPR correctly.
1316 2004-11-11  Sebastian Pop  <pop@cri.ensmp.fr>
1318         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
1319         Give up as soon as the evolution is known not computable.
1321 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
1323         PR target/16457
1324         * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
1325         mask64_1or2_operand.
1326         (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
1327         to spot rlwinm opportunities.
1328         (and64_2_operand): Use mask_1or2_operand.
1329         * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
1331 2004-11-11  Dorit Naishlos  <dorit@il.ibm.com>
1333         * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
1334         (vect_update_ivs_after_vectorizer): Update function documentation.
1335         Avoid quadratic behavior and direct write to PHI_ARG_DEF.
1337 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1339         * config/arm/arm.c: Fix a comment typo.
1341 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
1343         * bitmap.h (nBITMAP_WORD_BITS): Remove.
1344         (BITMAP_WORD_BITS): Force unsigned by use of 1u.
1345         (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
1346         unnecessary casts.
1347         (bitmap_first_set_bit): Return unsigned, use ctzl.
1348         (bitmap_last_set_bit): Remove.
1349         * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
1350         unsigned.
1351         (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
1352         remove special case code for two word elements.
1353         (bitmap_last_set_bit): Remove.
1354         * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
1355         bitmap_first_set_bit with bitmap_empty_p.
1356         * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
1357         * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
1358         bitmap_last_bit_set.
1360 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
1362         PR target/16796
1363         * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
1365         PR target/16458
1366         * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
1367         unsigned equality compare when we know the operands are unsigned.
1369 2004-11-10  Peter S. Mazinger  <ps.m@gmx.net>
1371         * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
1372         __PIC__ and __pic__ only if TARGET_ABICALLS.
1373         (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
1374         (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
1375         -KPIC only if not -mno-abicalls.
1377         * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
1378         * config/sparc/linux.h, config/sparc/linux64.h
1379         (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
1381         * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
1382         * config/pa/pa/linux.h (CPP_SPEC): Likewise.
1383         * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
1384         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
1386 2004-11-11  Paul Brook  <paul@codesourcery.com>
1388         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
1389         register if current_function_uses_pic_offset_table is set.
1391 2004-11-10  David Edelsohn  <edelsohn@gnu.org>
1393         * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
1394         Change multi-instruction sequences to new attribute.
1395         * config/rs6000/{40x.md,440.md,603.md,6xx.md,
1396         7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
1397         rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
1399 2004-11-10  Daniel Berlin  <dberlin@dberlin.org>
1401         * tree-data-ref.c (build_classic_dist_vector): If either loop
1402         is outside of the nest we asked about, the dependence can't
1403         matter.
1404         (build_classic_dir_vector): Ditto.
1406 2004-11-10  Zdenek Dvorak  <dvorakz@suse.cz>
1408         * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
1409         right order.
1410         (force_var_cost): Determine cost of addition and multiplication more
1411         precisely.
1412         (get_computation_cost_at): Add cost for computing address elements to
1413         the final cost.
1415         * fold-const.c (fold): Attempt to use ptr_difference_const whenever
1416         one of the arguments of MINUS_EXPR is an address.
1417         (split_address_to_core_and_offset): New function.
1418         (ptr_difference_const): Handle case when one of the operands is a
1419         pointer.
1420         * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
1421         (ptr_difference_cost): Pass addresses instead of objects to
1422         ptr_difference_const.
1424 2004-11-10  Nathan Sidwell  <nathan@codesourcery.com>
1426         * tree.c (tree_check_failed): Emit general error if the list of
1427         node types is empty.
1429 2004-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
1431         * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
1432         argument.  When the union is passed in the 6th slot, build a
1433         PARALLEL with only one element.
1434         (function_arg): Adjust call to function_arg_union_value.
1435         (function_value): Likewise.
1437 2004-11-10  Fariborz Jahanian <fjahanian@apple.com>
1439         PR tree-optimization/17892
1440         * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
1441         MINUS_EXPR operator.
1443 2004-11-10  James A. Morrison  <phython@gcc.gnu.org>
1445         PR target/18230
1446         config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
1447         (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
1449 2004-11-10  Steven Bosscher  <stevenb@suse.de>
1451         * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
1452         (struct basic_block_def): Remove local_set and cond_local_set
1453         fields.  Update comment for global_live_at_start.
1454         * flow.c (calculate_global_regs_live): Allocate local_sets and
1455         cond_local_sets here as arrays of bitmaps previously stored in
1456         bb->local_set and bb->cond_local_set.  Use xmalloc instead of
1457         obstack allocated bitmaps.
1459 2004-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1461         PR target/18380
1462         * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
1463         hidden.
1465         * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
1467 2004-11-09  Jeff Law  <law@redhat.com>
1469         * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
1470         argument holding last unvisited block.  Start search for
1471         unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
1472         (connect_infinite_loops_to_exit): Supply last unvisited block
1473         to flow_dfs_compute_reverse_execute.
1475 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
1477         * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
1478         doubles.
1479         (floatunssidf2): Same.
1480         (floatsidf2): Same.
1481         ("extendsfdf2"): New expander.
1482         (*extendsfdf2_fpr): Rename.
1483         (*truncdfsf2_fpr): Same.
1484         (*negdf2_fpr): Same.
1485         (*absdf2_fpr): Same.
1486         (*nabsdf2_fpr): Same.
1487         (*adddf3_fpr): Same.
1488         (*subdf3_fpr): Same.
1489         (*muldf3_fpr): Same.
1490         (*divdf3_fpr): Same.
1492         * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
1493         ("spe_fix_truncdfsi2"): Same.
1494         (spe_floatunssidf2): Same.
1495         (spe_floatsidf2): Same.
1497 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1499         PR c/18322
1500         * c-common.c (fname_decl): Don't use line number of decl in
1501         diagnostic.
1503 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
1505         * config/s390/s390-protos.h (s390_pool_operand): Remove.
1506         * config/s390/s390.c (s390_pool_operand): Likewise.
1507         (s390_extra_constraint_str): Handle 'B' constraints.
1508         * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
1509         * config/s390/s390.md: Document 'B' constraints.
1510         ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
1511         s390_pool_operand to prevent insns with two literal pool
1512         references.  Make pattern commutative.
1513         ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
1514         'B' constraint instead of s390_pool_operand.
1516 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1518         * tree-cfg.c (create_bb): Remove unnecessary memset.
1520 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1522         * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
1523         (thread_block): Call flush_pending_stmt instead of
1524         copy_phis_to_block.
1526 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1528         * loop-iv.c (iv_number_of_iterations): Make it static.
1529         * cfgloop.h: Remove the corresponding prototype.
1531 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1533         * function.c (combine_temp_slots, assign_parms,
1534         expand_pending_sizes): Make them static.
1535         * tree.h: Remove the corresponding prototypes.
1537 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1539         * emit-rtl.c (copy_most_rtx): Remove.
1540         * rtl.h: Remove the corresponding prototype.
1542 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1544         * cfgloop.c (flow_loops_update): Remove.
1545         * cfgloop.h: Remove the corresponding prototype.
1547 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1549         * conflict.c (mark_reg, conflict_graph_compute): Remove.
1550         * basic-block.h: Remove the prototype for
1551         conflict_graph_compute.
1553 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1555         * tree-if-conv.c (add_to_dst_predicate_list): Change the
1556         second argument to basic_block.
1557         (tree_if_convert_cond_expr): Update call sites.
1559 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1561         * fold-const.c (pedantic_non_lvalue): Make it static.
1562         * tree.h: Remove the corresponding prototype.
1564 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1566         * optabs.c (prepare_operand): Make it static.
1567         * optabs.h: Remove the corresponding prototype.
1569 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1571         * reload1.c (reloads_conflict, gen_reload): Make them static.
1572         * reload.h: Remove the corresponding prototypes.
1574 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1576         * reload.c (refers_to_mem_for_reload_p,
1577         refers_to_regno_for_reload_p): Make them static.
1578         * reload.h: Remove the corresponding prototypes.
1580 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
1581             Eric Botcazou  <ebotcazou@libertysurf.fr>
1583         PR target/18230
1584         * doc/md.texi (SPARC constraints): Document 'Y' constraint.
1585         * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
1586         * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
1587         (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
1588         (fp_zero_operand): Accept MODE_VECTOR_INT modes.
1589         (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
1590         (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
1591         (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
1592         MODE_VECTOR_INT modes.
1593         (sparc_extra_constraint_check): Add new constraint 'Y'.
1594         * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
1595         * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
1596         (V64): New mode macro for 64-bit modes.
1597         (movsf): Use V32 for mode instead of SF.
1598         (movsf_insn_vis): Use V32 for mode instead of SF.  Add 'Y' constraint
1599         alongside 'G' constraint.
1600         (movdf): Use V64 for mode instead of DF.
1601         (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
1602         of DF.  Add 'Y' constraint alongside 'G' constraint.
1603         (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
1604         instead of DF.
1606 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
1608         * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
1609         integer NEG and ABS.
1610         * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
1611         ("*negdi2_31"): Reimplement using a splitter.
1612         ("*negdi2_cc", "*negdi2_cconly"): New insns.
1613         ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
1614         ("*negsi2_cc", "*negsi2_cconly"): Likewise.
1615         ("*negdf2_cc", "*negdf2_cconly"): Likewise.
1616         ("*negsf2_cc", "*negsf2_cconly"): Likewise.
1617         ("*absdi2_cc", "*absdi2_cconly"): New insns.
1618         ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
1619         ("*abssi2_cc", "*abssi2_cconly"): Likewise.
1620         ("*absdf2_cc", "*absdf2_cconly"): Likewise.
1621         ("*abssf2_cc", "*abssf2_cconly"): Likewise.
1622         ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
1623         ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
1624         ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
1625         ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
1626         ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
1628 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
1630         * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
1631         when eliminating an UNSPEC_CMPINT.
1632         (s390_secondary_input_reload_class): Fix test for CC register reload.
1633         (s390_secondary_output_reload_class): Likewise.
1634         (s390_expand_cmpmem): Swap operands.  Use gen_cmpint.
1635         * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
1636         ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
1637         insn patterns with splitters.
1639 2004-11-09  David Edelsohn  <edelsohn@gnu.org>
1641         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
1642         * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
1644 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1646         * tree-phinodes.c (phi_reverse): New.
1647         * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
1648         Use it.
1649         * tree-flow.h: Add a prototype for phi_reverse.
1651 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1653         * tree-ssa-loop-ivopts.c: Fix a comment typo.
1655 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
1657         PR pch/14940
1658         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
1659         definitions.
1661 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1663         * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
1664         instead of "arg" in diagnostics.
1666 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1668         * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
1669         c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
1670         gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
1671         tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
1672         config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
1673         config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
1674         config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
1675         config/iq2000/iq2000.c, config/m32r/m32r.c,
1676         config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
1677         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
1678         config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
1679         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
1680         config/sh/symbian.c, config/stormy16/stormy16.c,
1681         config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
1682         and %> as appropriate.  Use %' as apostrophe in diagnostics where
1683         applicable.  Use %< and %> in place of '' quotes where applicable.
1684         Use %qs in place of %<%s%>.  Consistently quote __builtin function
1685         names.
1687 2004-11-09  Hans-Peter Nilsson  <hp@bitrange.com>
1689         * gdbinit.in (pbb, pbm): New macros.
1691 2004-11-08 Jeff Law  <law@redhat.com>
1693         * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
1694         implementing it inline.
1696         * cfganal.c (find_edge): Search pred->succs or succ->preds,
1697         whichever is shorter.
1699 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1701         * passes.c (rest_of_handle_jump): Remove dead code.
1703 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1705         * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
1706         the last used element in the worklist.
1708 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1710         * tree-inline.c (remap_save_expr): Make it static.
1711         * tree-inline.h: Remove the corresponding prototype.
1713 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1715         * tree-ssa-loop-niter.c (upper_bound_in_type,
1716         lower_bound_in_type): Make them static.
1717         * tree.h: Remove the corresponding prototypes.
1719 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1721         * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
1722         static.
1723         * tree-ssa-live.h: Remove the corresponding prototypes.
1725 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1727         * tree-if-conv.c (tree_if_conversion): Make it static.
1728         * tree-flow.h: Remove the corresponding prototype.
1730 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1732         * tree-ssa-operands.c (build_ssa_operands): Make it static.
1733         * tree-flow.h: Remove the corresponding prototype.
1735 2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
1737         PR tree-opt/18299
1738         * tree-inline.c (copy_body_r): Change "t = t" to empty
1739         statement instead of "t".
1741 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1743         * modulo-sched.c (create_partial_schedule,
1744         free_partial_schedule, reset_partial_schedule,
1745         ps_add_node_check_conflicts, rotate_partial_schedule): Make
1746         them static.
1748 2004-11-08  Richard Henderson  <rth@redhat.com>
1750         * expmed.c (extract_force_align_mem_bit_field): Correct handling at
1751         the end of a page.
1753 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1755         * sched-deps.c (add_insn_mem_dependence): Make it static.
1756         * sched-int.h: Remove the corresponding prototypes.
1758 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1760         * flow.c (allocate_bb_life_data): Make it static.
1761         * basic-block.h: Remove the corresponding prototype.
1763 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1765         * calls.c (split_complex_values, split_complex_types): Make
1766         them static.
1767         * expr.h: Remove the corresponding prototypes.
1769 2004-11-08  Richard Earnshaw  <rearnsha@arm.com>
1771         * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
1772         with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1774 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1776         * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
1777         statements that always trigger.
1779 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1781         * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
1782         tree-scalar-evolution.c, tree-ssa-loop-im.c,
1783         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
1784         tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
1785         appropriate.
1787 2004-11-08  Ben Elliston  <bje@au.ibm.com>
1789         * cgraph.h (cgraph_calls_p): Remove.
1790         * cgraph.c (cgraph_calls_p): Likewise.
1792         * varray.h (varray_copy): Remove.
1793         * varray.c (varray_copy): Likewise.
1795 2004-11-07  Andrew Pinski  <pinskia@physics.uc.edu>
1797         PR target/18269
1798         * config/darwin.c (machopic_indirect_data_reference):
1799         Call gen_macho_high and gen_macho_low instead of
1800         checking the mode and calling gen_macho_high_di directly.
1801         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1802         * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
1803         to darwin.md.
1804         (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
1805         load_macho_picbase, macho_low, macho_high): Removed.
1806         (builtin_setjmp_receiver): Call gen_macho_high and
1807         gen_macho_low instead of checking the mode and calling
1808         gen_macho_high_di directly.
1809         * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
1810         (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
1811         Moved from rs6000.md.
1812         (macho_high): New expander.
1813         (macho_high_si): Renamed version of macho_high from rs6000.md.
1814         (macho_low): New expander.
1815         (macho_low_si): Renamed version of macho_low from rs6000.md.
1816         (load_macho_picbase): New expander.
1817         (load_macho_picbase_si): Renamed version of load_macho_picbase
1818         from rs6000.md.
1819         (macho_correct_pic): New expander.
1820         (macho_correct_pic_si): Renamed version of macho_correct_pic
1821         from rs6000.md.
1823 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
1825         * c-decl.c (finish_struct): Use complete sentences for diagnostic
1826         for structures or unions with no members or named members.
1828 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
1830         * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
1831         taking address of bit-field by assertion.
1833 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1835         * config/s390/s390.md (attribute "op_type"): Default to "NN".
1836         (attribute "atype"): Default to "agen".
1837         (attribute "length"): Default to 6.
1838         (define_asm_attibutes): Remove.
1839         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
1840         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
1841         "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
1842         Do not set type attribute to "cs" where already default.
1843         ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
1844         "*negdi2_31"):
1845         Do not set type attribute to "other" where already default.
1846         ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
1847         "*strlendi", "*strlensi",
1848         "*movmem_long_64", "*movmem_long_31",
1849         "*clrmem_long_64", "*clrmem_long_31",
1850         "*cmpmem_long_64", "*cmpmem_long_31",
1851         "*cmpint_si", "*cmpint_di",
1852         "addti3", "*adddi3_31z", "*adddi3_31",
1853         "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
1854         "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
1855         "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
1856         "*pool_entry", "pool_align", "pool_section_start",
1857         "pool_section_end", "main_pool", "reload_base_31", "pool"):
1858         Do not set op_type attribute to "NN" where already default.
1859         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
1860         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
1861         "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
1862         Do not set atype attribute to "agen" where already default.
1863         ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
1865 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
1867         * config/mips/t-iris6 (tp-bit.c): Fix target filename.
1869 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
1871         PR target/16830
1872         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
1873         R3000 and R4000 macros on IRIX.
1875 2004-11-06  Andreas Schwab  <schwab@suse.de>
1877         PR target/16286
1878         * config/rs6000/altivec.h: Replace bool by __bool and pixel by
1879         __pixel.
1881 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1883         * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
1885 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1887         * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
1888         matches no insns already matched by other reservations.
1889         * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
1890         matches no insns already matched by other reservations.
1891         ("x_ss"): Remove, replace by ...
1892         ("x_cs"): ... this new reservation.  Check type instead of op_type.
1893         Update bypasses to use x_cs instead of x_ss.
1894         ("x_nn"): Remove, replace by ...
1895         ("x_other"): ... this new reservation.  Check type instead of op_type.
1896         Add x_other and x_branch to bypasses.
1897         ("x_vs"): New reservation.
1898         * config/s390/s390.md (attribute "type"): Default according to op_type.
1899         ("*execute"): Set type to "cs".
1901 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1903         * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
1904         if we are in GIMPLE.
1906 2004-11-06  Hans-Peter Nilsson  <hp@bitrange.com>
1908         PR rtl-optimization/17933
1909         * rtlanal.c (dead_or_set_regno_p): Break out common code to...
1910         (covers_regno_p): New function.  Handle SETs of PARALLEL,
1911         and defer the rest to...
1912         (covers_regno_no_parallel_p): New function.
1914 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1916         * config/sparc/sparc.c (function_arg_record_value_1): Skip
1917         fields with zero length.
1918         (function_arg_record_value_2): Likewise.
1919         (function_arg_record_value_3): Use smallest_mode_for_size
1920         instead of mode_for_size.
1921         (function_arg_union_value): Return naked register for unions
1922         with zero length.
1924 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1926         * config/sparc/sparc.c (scan_record_type): Handle vector types.
1927         (function_arg_slotno): Handle vector types specially.
1928         (function_arg_record_value_1): Split fields with vector type and
1929         BLKmode into their subparts.
1930         (function_arg_record_value_2): Likewise.  Be prepared to handle
1931         more than 2 registers per field.
1932         (function_arg_union_value): Increment regno inside the loop.
1933         (function_arg_vector_value): New function.
1934         (function_arg): Use it to split fields with vector type and
1935         BLKmode into their subparts and build a PARALLEL.  Treat
1936         other vector types like floats.
1937         (function_value): Likewise.
1938         (sparc_pass_by_reference): Handle vector types.
1939         (sparc_return_in_memory): Likewise.
1941 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1943         * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
1944         statement that never triggers.
1946 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1948         * config/s390/2064.md ("z_o2", "z_o3"): Remove.
1949         * config/s390/2084.md ("x_o2", "x_o3"): Remove.
1950         ("x_fdivd"): Use also for fsqrtd type.
1951         ("x_fdivs"): Use also for fsqrts type.
1952         * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
1953         ("fix_truncdfsi2_ieee"): Set type to "ftoi".
1954         ("fix_truncdfsi2_ibm"): Set type to "other".
1955         ("floatdidf2", "floatdisf2"): Do not clobber CC.
1956         ("floatsidf2", "floatsidf2_ieee"): Likewise.
1957         ("floatsisf2", "floatsisf2_ieee"): Likewise.
1958         ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
1959         ("truncdfsf2_ibm"): Only allow "nonimmediate_operand".  Use LER
1960         instead of LRER.
1961         ("extendsfdf2_ibm"): Do not set atype.  Set type to "floads".
1962         ("sqrtdf2"): Set type to "fsqrtd".
1963         ("sqrtsf2"): Set type to "fsqrts".
1965 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1967         * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
1968         pointer to the last PHI node in the new PHI chain.
1970 2004-11-06  Kaz Kojima  <kkojima@gcc.gnu.org>
1972         * config/sh/sh.c (prepare_move_operands): Emit a use of r12
1973         for non-PIC TLS_MODEL_INITIAL_EXEC case.
1975 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1977         * expmed.c: Fix a comment typo.
1979 2004-11-06  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1981         PR target/18106
1982         * config/i386/cygming.h
1983         [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
1985 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1987         * config/sh/sh4a.md: Fix copyright.
1989 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1991         * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
1992         with GCC.
1994 2004-11-05  David Edelsohn  <edelsohn@gnu.org>
1996         * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
1997         when carry not used.  Suggested by Torbjorn Granlund.
1999         * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
2000         operand[1] unnecessarily.  Suggested by Eric Christopher.
2001         (rs6000_adjust_cost): Increase latency of store to wider load.
2002         (rs6000_rtx_costs): mulli only allows 16-bit constants.
2004 2004-11-05  Stan Shebs  <shebs@apple.com>
2006         * config/rs6000/rs6000.c (machopic_output_stub): Output
2007         ldu instead of lwzu for 64-bit stubs.
2009 2004-11-05  Richard Henderson  <rth@redhat.com>
2011         * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
2012         size 2 with BWX.
2013         (alpha_expand_unaligned_store): Likewise.
2015 2004-11-05  Richard Henderson  <rth@redhat.com>
2017         * expmed.c (extract_force_align_mem_bit_field): New.
2018         (extract_split_bit_field): Call it.
2020 2004-11-05  Richard Henderson  <rth@redhat.com>
2022         * ia64.md (UNSPEC_SHRP): New.
2023         (dshift_count_operand): New.
2024         (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
2025         * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
2027 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
2029         * c-typeck.c (output_init_element): Return early if value is
2030         error_mark_node.
2032 2004-11-05  James E Wilson  <wilson@specifixinc.com>
2034         * invoke.texi (-fno-guess-branch-probability): Rewrite.
2036         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
2037         1 to UNSPEC_GR_SPILL.
2039 2004-11-05  Andreas Krebbel  <krebbel1@de.ibm.com>
2041         * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
2042         (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
2044 2004-11-05  Nathan Sidwell  <nathan@codesourcery.com>
2046         * bitmap.h (enum bitmap_bits): Remove.
2047         (bitmap_operation): Remove.
2048         (bitmap_and, bitmap_and_into, bitmap_and_compl,
2049         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
2050         bitmap_xor_into): Prototype.
2051         * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
2052         (bitmap_operation): Remove.
2053         (bitmap_and, bitmap_and_into, bitmap_and_compl,
2054         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
2055         bitmap_xor_into): New.
2056         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
2058         PR tree-optimization/18307
2059         * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
2060         and ORIG being the same node.
2062 2004-11-04  Geoffrey Keating  <geoffk@apple.com>
2064         * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
2065         (install-mkheaders): Install the version built for the
2066         host, not for the build machine.
2067         * configure.ac: Always run fixincludes.
2068         (all_outputs): Remove mkheaders.
2069         * configure: Regenerate.
2070         * fixinc.in: Move to fixincludes/.
2071         * mkfixinc.sh: Likewise.
2072         * mkheaders.in: Likewise.
2073         * README-fixinc: Likewise.
2075 2004-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
2077         PR target/18263
2078         * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
2079         equivalent on the A4.
2081 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
2083         * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
2084         doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
2085         doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
2086         doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
2087         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
2088         doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
2089         doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
2090         doc/trouble.texi: Correct end-of-sentence markup and markup of
2091         "etc.", "e.g." and "i.e.".  Use @code in various places where
2092         appropriate.
2094 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
2096         * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
2097         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
2098         doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
2099         whitespace.
2101 2004-11-04  Mark Mitchell  <mark@codesourcery.com>
2103         * config/arm/arm.c (arm_handle_notshared_attribute): New function.
2104         * doc/extend.texi: Document "notshared" attribute.
2106 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2108         * tree-phinodes.c (make_phi_node): Make it static.
2109         * tree.h: Remove the prototypes for make_phi_node.
2111 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2113         * stmt.c (expand_asm, expand_asm_operands): Make them static.
2114         * tree.h: Remove the prototypes for expand_asm and
2115         expand_asm_operands.
2117 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2119         * passes.c (rest_of_compilation): Make it static.
2120         * toplev.h: Remove the prototype for rest_of_compilation.
2122 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2124         * jump.c (cleanup_barriers): Use delete_insn instead of
2125         delete_barrier.
2126         (delete_barrier): Remove.
2127         * rtl.h: Remove the corresponding prototype.
2129 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2131         * expr.c (mostly_zero_p): Make it static.
2132         * tree.h: Remove the prototype for mostly_zeros_p.
2134 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2136         * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
2138 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2140         * builtins.c (expand_builtin_return_addr,
2141         expand_builtin_longjmp, expand_builtin_trap): Make them static.
2142         * expr.h: Remove the prototypes for expand_builtin_longjmp and
2143         expand_builtin_trap.
2144         * tree.h: Remove the prototype for expand_builtin_return_addr.
2146 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2148         * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
2149         * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
2150         with VAL being NULL.
2152 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2154         * cfghooks.c (delete_basic_block): Remove code to truncate
2155         edge vectors.
2157 2004-11-04  Andrew Pinski  <pinskia@physics.uc.edu>
2159         * flow.c (init_propagate_block_info): Change the type of i to
2160         unsigned.
2162 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
2164         PR tree-optimization/18184
2165         * c-typeck.c (comptypes): Do not treat pointers of different
2166         modes or alias-all flags as equivalent.
2167         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
2169 2004-11-04  Joseph S. Myers  <joseph@codesourcery.com>
2171         * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
2172         reference specific C parser files in examples.
2174 2004-11-04  Richard Sandiford  <rsandifo@redhat.com>
2176         PR target/15342
2177         * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
2178         as OP_INOUT if the instruction is predicated.
2180 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2182         * bitmap.h: Fix a comment typo.  Follow spelling conventions.
2183         * tree-vectorizer.c: Fix a comment typo.
2185 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2187         * sdbout.c (SDB_GENERATE_FAKE): Remove.
2188         (gen_fake_label): Don't use SDB_GENERATE_FAKE.
2189         * system.h: Poison SDB_GENERATE_FAKE.
2190         * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
2192 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
2194         * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
2196 2004-11-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2198         PR other/18277
2199         * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
2200         2004-10-29 patch
2202 2004-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2204         * predict.c (propagate_freq): Make bitno unsigned. Move
2205         npredecessors update out of loop.
2207         * bitmap.h (bitmap_iterator): Remove word_bit and bit
2208         fields. Rename others.
2209         (bmp_iter_common_next_1, bmp_iter_single_next_1,
2210         bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
2211         bmp_iter_and_not_next_1, bmp_iter_and_not_init,
2212         bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
2213         bmp_iter_and_next): Remove.
2214         (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
2215         bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
2216         New.
2217         (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
2218         EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
2220         * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
2221         * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
2222         bitmap_and_into, bitmap_ior_into as appropriate.
2223         * except.c (remove_eh_handler): Likewise.
2224         * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
2225         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
2226         * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
2227         * tree-ssa-live.h (live_merge_and_clear): Likewise.
2228         * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
2229         Likewise.
2231         * bitmap.c (bitmap_print): Make bitno unsigned.
2232         * bt-load.c (clear_btr_from_live_range,
2233         btr_def_live_range): Likewise.
2234         * caller-save.c (save_call_clobbered_regs): Likewise.
2235         * cfganal.c (compute_dominance_frontiers_1): Likewise.
2236         * cfgcleanup.c (thread_jump): Likewise.
2237         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2238         * conflict.c (conflict_graph_compute): Likewise.
2239         * ddg.c (add_deps_for_use): Likewise.
2240         * df.c (df_refs_update): Likewise.
2241         * except.c (remove_eh_handler): Likewise.
2242         * flow.c (verify_local_live_at_start, update_life_info,
2243         initialize_uninitialized_subregs, propagate_one_insn,
2244         free_propagate_block_info, propagate_block, find_use_as_address,
2245         reg_set_to_hard_reg_set): Likewise.
2246         * gcse.c (clear_modify_mem_tables): Likewise.
2247         * global.c (global_conflicts, build_insn_chain): Likewise.
2248         * ifcvt.c (dead_or_predicable): Likewise.
2249         * local-alloc.c (update_equiv_regs): Likewise.
2250         * loop.c (load_mems): Likewise.
2251         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
2252         Likewise.
2253         * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
2254         Likewise.
2255         * reload1.c (order_regs_for_reload, finish_spills): Likewise.
2256         * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
2257         * sched-rgn.c (propagate_deps
2258         * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
2259         * tree-dfa.c (dump_dfa_stats
2260         tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
2261         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
2262         Likewise.
2263         * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
2264         free_temp_expr_table, find_replaceable_exprs): Likewise.
2265         * tree-sra.c (scan_function, scalarize_parms): Likewise.
2266         * tree-ssa-alias.c (init_alias_info,
2267         compute_points_to_and_addr_escape,
2268         compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
2269         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
2270         * tree-ssa-live.c (new_tree_live_info, live_worklist,
2271         calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
2272         sort_coalesce_list, build_tree_conflict_graph, dump_live_info
2273         tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
2274         tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
2275         add_call_read_ops): Likewise.
2276         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
2277         * tree-ssa-live.h (num_var_partitions): Return unsigned.
2279 2004-11-03  Dorit Naishlos  <dorit@il.ibm.com>
2281         PR tree-optimization/18009
2282         * tree-vectorizer.h (enum dr_alignment_support): New type.
2283         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
2284         (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
2285         single data_reference (instead of a varray of references).
2286         * tree-vectorizer.c (new_loop_vec_info): Likewise.
2287         (vect_gen_niters_for_prolog_loop): Likewise.
2288         (vect_update_inits_of_drs): Likewise.
2290         (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
2291         vect_enhance_data_refs_alignment.
2292         (vect_do_peeling_for_alignment): Likewise.
2293         (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
2294         this functionality used to be in vect_analyze_data_refs_alignment.
2295         Also update DR_MISALIGNMENT due to peeling; this functionality used to
2296         be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
2297         (vect_analyze_data_refs_alignment): Decision on whether and by how much
2298         to peel moved to vect_enhance_data_refs_alignment. Call
2299         vect_supportable_dr_alignment.
2301         (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
2302         (vect_compute_data_refs_alignment): Return bool. Consider return value
2303         of vect_compute_data_ref_alignment and return true/false accordingly.
2304         (vect_enhance_data_refs_alignment): Consider return value of
2305         vect_compute_data_refs_alignment and return true/false accordingly.
2307         (vect_supportable_dr_alignment): New function.
2308         (vectorizable_store): Call vect_supportable_dr_alignment.
2309         (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
2310         support checks moved from here to vect_supportable_dr_alignment.
2312         (vect_transform_loop): Avoid 80 columns overflow.
2314 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
2316         * timevar.c (timevar_enable): Change from
2317         static.
2318         (timevar_push): Rename to ...
2319         (timevar_push_1): this and remove the
2320         enabled check.
2321         (timevar_pop): Rename to ...
2322         (timevar_pop_1): this and remove the
2323         enabled check.
2324         * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
2325         (timevar_pop): New macro.
2326         (timevar_push): New macro.
2327         (timevar_enable): Declare.
2329 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
2331         * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
2332         libgcc for shared libraries.
2334 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
2336         * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
2337         * config/s390/s390.c (s390_split_access_reg): New function.
2338         (regclass_map): Add access registers.
2339         (get_thread_pointer): Use access register instead of UNSPEC_TP.
2340         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
2341         (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
2342         (TP_REGNUM): New define.
2343         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2344         REG_ALLOC_ORDER): Add access registers.
2345         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
2346         CANNOT_CHANGE_MODE_CLASS): Support access registers.
2347         (enum reg_class): Add ACCESS_REGS.
2348         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
2349         (REG_CLASS_FROM_LETTER): Add 't' constraint.
2350         (REGISTER_NAMES): Add access registers.
2351         * config/s390/s390.md (UNSPEC_TP): Remove.
2352         ("*movdi_64"): Add access register alternatives.  Provide splitters
2353         to split DImode access register <-> GPR moves into SImode moves.
2354         ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
2355         ("movstrictsi"): Likewise.
2356         ("get_tp_64", "get_tp_31"): Reimplement using access registers.
2357         ("set_tp_64", "set_tp_31"): Likewise.
2358         ("*set_tp"): New insn.
2360 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
2362         * tree-phinodes.c (resize_phi_node): Copy only a portion of
2363         the PHI node currently in use.
2365 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
2367         PR tree-opt/18231
2368         * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
2369         also.
2371 2004-11-03  Andrew MacLeod  <amacleod@redhat.com>
2373         PR tree-optimization/18270
2374         * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
2375         abnormal edges, commit all pending stmts on incoming edges.
2377 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
2379         * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
2380         cause extra costs.  Generate canonical RTL.
2382 2004-11-02  Daniel Berlin  <dberlin@dberlin.org>
2384         * lambda-code.c (lambda_compute_auxillary_space): Update comments.
2385         (lambda_compute_target_space). Ditto.
2386         * lambda.h (lambda_trans_matrix): Ditto.
2387         (lambda_linear_expression): Ditto.
2388         (lambda_body_vector): Ditto.
2389         (lambda_loopnest): Ditto.
2390         * tree-loop-linear.c (gather_interchange_stats): Combine tests,
2391         update comments, and remove pointless addition of 0.
2392         (linear_transform_loops): Update comments.
2394 2004-11-03  Sebastian Pop  <pop@cri.ensmp.fr>
2396         * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
2397         CEIL_MOD_EXPR.
2399 2004-11-03 Jeff Law  <law@redhat.com>
2401         * predict.c (struct block_info_def): Kill "tovisit" field.
2402         (propagate_freq): Accept new "tovisit" parameter.  Change
2403         read/write access methods for "tovisit" to check the "tovisit"
2404         bitmap instead of a bit in block_info_def.
2405         (estimate_loops_at_level): Allocate "tovisit" bitmap.  Pass
2406         it to propagate_freq.
2408         * stmt.c (expand_case): Speed up code to detect duplicate case
2409         label targets and count unique case label targets.
2411 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
2413         * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
2415 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
2417         * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
2419 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
2421         * tree-cfg.c (find_taken_edge): Abort if we are given a
2422         statement that is neither COND_EXPR nor SWITCH_EXPR.
2424 2004-11-02  Zdenek Dvorak  <dvorakz@suse.cz>
2426         * fold-const.c (fold): Reassociate also (x - mult) + mult and
2427         (mult - x) + mult.  Cast operands of expression after applying
2428         distributive law to the correct types.  Apply distributive law
2429         to a * c - b * c for all non-float types.
2431 2004-11-02  Geoffrey Keating  <geoffk@apple.com>
2433         * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
2434         because we don't want to run them now; instead, set them to
2435         stmp-install-fixproto or stmp-install-fixinc.
2436         * Makefile.in (stmp-install-fixproto): New.
2437         (stmp-install-fixinc): New.
2438         * configure: Regenerate.
2440 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
2442         * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
2443         of bitmap_xor.
2445 2004-11-02  Ziemowit Laski  <zlaski@apple.com>
2447         * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
2448         (c_types_compatible_p): Move function definition...
2449         * c-objc-common.c (c_types_compatible_p): ...here.
2450         * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
2451         c-lang.c.
2453 2004-11-02  Steven Bosscher  <stevenb@suse.de>
2455         * cfgloop.h (struct loop): Update comment.
2456         * cse.c (cse_main): Remove obsolete comment.
2458         * expr.h (gen_cond_trap): Move prototype under functions provided
2459         by optabs.c.
2460         (canonicalize_condition, get_condition): Move to...
2461         * rtl.h (canonicalize_condition, get_condition): ...here.
2462         (branch_target_load_optimize): Add comment that this function is
2463         in bt-load.c.
2464         * loop.c (canonicalize_condition, get_condition): Move to...
2465         * rtlanal.c (canonicalize_condition, get_condition): ...here.
2466         * sched-deps.c (get_condition): Rename to sched_get_condition.
2467         (add_dependence): Update this caller.
2469 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
2471         PR tree-opt/16808
2472         * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
2473         that the vops get marked for renaming.
2475 2004-11-02  Andreas Krebbel  <krebbel1@de.ibm.com>
2477         * config/s390/s390.md ("movcc"): Set type attribute.
2479 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
2481         * tree-phinodes.c (add_phi_arg): Add an assertion that the
2482         edge already exists.
2484 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
2486         * tree-phinodes.c (remove_phi_arg_num): Do not zero the
2487         element that's being removed.
2489 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
2491         * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
2492         arguments using PENDING_STMT.
2493         (thread_block): Call copy_phis_to_block after redirecting an
2494         edge.
2496 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
2498         * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
2499         bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
2500         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
2501         (bitmap_ior_and_compl_into): Produce bool.
2502         (bitmap_union_of_diff): Rename to ...
2503         (bitmap_ior_and_compl): ... here. Produce bool.
2504         * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
2505         bitmap_operation directly.
2506         (bitmap_union_of_diff): Rename to ...
2507         (bitmap_ior_and_compl): ... here. Return bool, use
2508         bitmap_operation directly.
2509         * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
2510         (df_ru_transfer_function, df_lr_transfer_function): Likewise.
2511         * global.c (modify_bb_reg_pav): Likewise.
2513         * bitmap.h (bitmap_equal_p): Return bool.
2514         (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
2515         * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
2516         (bitmap_intersect_p, bitmap_intersect_compl_p): New.
2517         * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
2518         bitmap_intersect_compl_p.
2519         * ifcvt (dead_or_predicable): Likewise.
2521 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
2523         PR rtl-optimization/17104
2524         * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
2525         loads in zero_extend.
2527 2004-11-02  Danny Smith  <dannysmith@users.sourceforge.net>
2529         PR debug/18242
2530         * toplev.c (debug_type_names): Remove "dwarf-1".
2532 2004-11-02  Ben Elliston  <bje@au.ibm.com>
2534         * timevar.h (timevar_get): Remove.
2535         * timevar.c (timevar_get): Remove unused function.
2537 2004-11-02  Joseph S. Myers  <joseph@codesourcery.com>
2539         * doc/include/texinfo.tex: Update from Texinfo CVS.
2541 2004-11-02  Ben Elliston  <bje@au.ibm.com>
2543         * cppdefault.h (cpp_SYSROOT): Remove.
2544         * cppdefault.c (cpp_SYSROOT): Likewise.
2546 2004-11-01  Andrew MacLeod  <amacleod@redhat.com>
2548         PR tree-optimization/16447
2549         * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
2550         bsi_commit_edge_inserts_1, and make funtion external.  Return new block.
2551         (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
2552         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
2553         * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
2554         * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
2555         (same_stmt_list_p): New.  Return TRUE if edge is to be forwarded.
2556         (identical_copies_p): New.  Return true is two copies are the same.
2557         (identical_stmt_lists_p): New.  Return true if stmt lists are the same.
2558         (analyze_edges_for_bb): New.  Determine how best to insert edge stmts
2559         for a basic block.
2560         (perform_edge_inserts): New.  Determine what to do with all stmts that
2561         have been inserted on edges.
2562         (remove_ssa_form):  Analyze and commit edges from here.
2564 2004-11-01  Andrew Pinski  <pinskia@physics.uc.edu>
2566         PR bootstrap/18232
2567         * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
2568         (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
2569         (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
2570         (EXECUTE_IF_AND_IN_BITMAP): Likewise.
2572 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
2574         PR c/18239
2575         * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
2576         parameter declarations.
2578 2004-11-01  Andreas Krebbel  <krebbel1@de.ibm.com>
2580         * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
2581         (s390_secondary_input_reload_class)
2582         (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
2583         register.
2584         (s390_expand_cmpmem): Enable cmpmem implementation.
2585         * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
2586         Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
2587         (REG_CLASS_FROM_LETTER): New constraint 'c' added.
2588         * config/s390/s390.md ("movcc"): New insn pattern.
2589         * doc/md.texi: Document 'c' constraint for s390.
2591 2004-11-01  Nathan Sidwell  <nathan@codesourcery.com>
2593         PR c++/18064
2594         * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
2595         extension.
2597 2004-10-16  Daniel Berlin  <dberlin@dberlin.org>
2599         Fix PR tree-optimization/17672
2600         Fix PR tree-optimization/18168
2602         * lambda-code.c (lambda_lattice_compute_base): Fix reversed
2603         assert test.
2604         (gcc_tree_to_linear_expression): Add extra to existing constant.
2605         (depth_of_nest): Factor out function used in various places.
2606         (gcc_loop_to_lambda_loop): Clean up code a little bit. No
2607         functional changes.
2608         (find_induction_var_from_exit_cond): Stop guessing, and just
2609         get the right answer :).
2610         (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
2611         Print out message about result of attempt to create perfect nest.
2612         (lbv_to_gcc_expression): Add type argument, use it to do math
2613         and induction variable creation.
2614         (lle_to_gcc_expression): Ditto.
2615         (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
2616         oldiv. Pass type argument to lle_to_gcc_expression and
2617         lbv_to_gcc_expression.
2618         Reset number of iterations after transformation.
2619         (perfect_nestify): Remove useless pre-allocation, and cleanup
2620         a small amount.
2622         * tree-data-ref.c (build_classic_dist_vector): Return false for
2623         dependences completely outside of the loop nest we asked about.
2624         (build_classic_dir_vector): Ditto.
2625         (compute_data_dependences_for_loop): Only add dependence relations
2626         inside the loop we asked about.
2628         * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
2629         Compute immediate uses.
2631         * tree-optimize.c: Move linear_transform_loops to before ivcanon.
2633 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
2635         * tree-cfg.c (thread_jumps): Fix a comment typo.
2637 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
2639         * tree-cfg.c (thread_jumps): Fix a comment typo.
2641 2004-10-31  Nicolas Pitre <nico@cam.org>
2643         * config/arm/ieee754-sf.S (floatdisf): Fix regression with
2644         values smaller than 2^32.
2646 2004-10-31 Jeff Law  <law@redhat.com>
2648         * cfgloop.h (struct loop): Remove unused "nodes" field.
2649         * timevar.def (TV_TREE_LOOP_BOUNDS): New.
2650         * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
2651         instead of calling flow_bb_inside_loop_p for every basic block
2652         in the function.
2653         * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
2655 2004-10-31  Graham Stott <graham.stott@btinternet.com>
2657         * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo.  Use
2658         INT_5_BITS instead of VAL_5_BITS_P.
2660 2004-10-31  Roger Sayle  <roger@eyesopen.com>
2662         PR middle-end/14521
2663         * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
2664         for consistent quoting in diagnostic messages.
2665         (expand_call_inline): Likewise.
2666         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2667         * tree-ssa.c (warn_uninitialized_var): Likewise.
2668         (warn_uninitialized_phi): Likewise.
2670 2004-10-31  Richard Sandiford  <rsandifo@redhat.com>
2672         * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
2673         mode check.
2675 2004-10-31  Kazu Hirata  <kazu@cs.umass.edu>
2677         * c-common.c: Fix a comment typo.
2679 2004-10-31  Jason Merrill  <jason@redhat.com>
2681         PR middle-end/17526
2682         * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
2683         aggregate types that are not BLKmode.
2685 2004-10-30  Ziemowit Laski  <zlaski@apple.com>
2687         * c-common.h (objc_lookup_ivar): Add second parameter to
2688         prototype.
2689         * c-typeck.c (build_external_ref): After looking up symbol,
2690         pass it to objc_lookup_ivar() to decide whether it or the
2691         ivar should be used, rather than deciding the issue locally.
2692         * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
2693         which is simply returned in the non-ObjC case.
2695 2004-10-30  Danny Smith  <dannysmith@users.sourceforge.net>
2697         * sdbout.c (sdbout_symbol): Do not output type .def statements
2698         for builtin types.
2700 2004-10-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2702         * c-common.c (catenate_strings): New.
2703         (c_parse_error): Use it.  Don't over-escape.
2705 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2707         * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
2708         modify the for loop expressions for it.  Remove unnecessary casts.
2709         (sh_expand_prologue): Declare reg as unsigned.
2710         (sh_gimplify_va_arg_expr): Initinalize lab_over.
2711         (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
2713 2004-10-30  Geoffrey Keating  <geoffk@apple.com>
2715         * doc/invoke.texi (Darwin Options): Improve description of
2716         how the subtype is chosen.
2718 2004-10-30  Roger Sayle  <roger@eyesopen.com>
2720         PR middle-end/18096
2721         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
2722         the stack adjustment, "size", is valid for Pmode.  If the stack
2723         frame is too large, generate a trap insn and issue a warning.
2725 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
2727         * tree-ssa-dom.c: Fix comment typos.
2729 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2731         * config/sh/sh.c (prepare_move_operands): Use operands[0]
2732         for the output rtl if no_new_pseudos is set.  Remove redundant
2733         line.
2735 2004-10-30  Joseph S. Myers  <joseph@codesourcery.com>
2737         PR c/16666
2738         * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
2739         determining whether to copy parameter types from a previous
2740         prototype declaration.
2742 2004-10-29  Roger Sayle  <roger@eyesopen.com>
2744         PR rtl-optimization/17581
2745         * cselib.c (cselib_process_insn): The last instruction of a libcall
2746         block, with the REG_RETVAL note, should be considered in the libcall.
2747         * gcse.c (do_local_cprop): Allow constants to be propagated outside
2748         of libcall blocks.
2749         (adjust_libcall_notes): Use simplify_replace_rtx instead of
2750         replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
2752 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
2754         * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
2756 2004-10-29 Jeff Law  <law@redhat.com>
2758         * tree-ssa-dom.c (struct edge_info): New structure holding
2759         edge equivalences and edge redirection information.
2760         (get_eq_expr_value, record_dominating_conditions): Kill.
2761         (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
2762         Call record_edge_info.
2763         (allocate_edge_info, free_edge_info): New.
2764         (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
2765         rather than cprop_into_phis.  Free all edge infos before threading
2766         jumps.
2767         (thread_across_edge): Allocate new edge info structures as needed
2768         and store the redirection target into the edge info structure
2769         instead of the edge's AUX field.
2770         (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
2771         (record_equivalence_from_incoming_edge): Lose unnecessary argument.
2772         Revamp code which finds and records equivalences associated with
2773         edges to use saved data in the edge_info structure.
2774         (record_equivalencs_from_phis): Similarly.
2775         (dom_opt_finalize_block): Revamp code which finds and records
2776         equivalences associated with edges to use saved data in the
2777         edge_info structure.
2778         (build_and_record_new_cond): New function.
2779         (record_conditions): Use build_and_record_new_cond to record
2780         dominating conditions.
2781         (record_edge_info): New function.
2782         (record_range): Tighten test for conditions which create
2783         useful range records.
2785 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
2787         * config/i386/darwin.h (ASM_SPEC): Simplify.
2788         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2789         * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
2790         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2791         * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
2792         (LINK_SPEC): Do pass -arch here.  Handle -force_cpusubtype_ALL
2793         in all cases.  Pass the right -arch or -arch_only based on -mcpu.
2794         (ASM_SPEC): Handle -force_cpusubtype_ALL.
2795         * doc/invoke.texi (Darwin Options): Improve documentation for
2796         Darwin linker (and libtool) switches.
2798         * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
2800 2004-10-29  Stan Shebs  <shebs@apple.com>
2802         * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
2804 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
2806         * tree-phinodes.c (allocate_phi_node): New.
2807         (make_phi_node, resize_phi_node): Use it.
2809 2004-10-29  David Edelsohn  <edelsohn@gnu.org>
2811         * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
2812         * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
2814 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
2816         * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
2817         the whole PHI node.
2818         * tree.h (tree_phi_node): Tell the garbage collector to chase
2819         num_args arguments.
2821 2004-10-29  Richard Earnshaw  <rearnsha@arm.com>
2823         * opts.c (decode_options): Lower the crossjump threshold for -Os.
2825 2004-10-29  Diego Novillo  <dnovillo@redhat.com>
2827         * tree.h (struct tree_ssa_name): Remove field 'equiv'.
2829 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
2831         * bitmap.h (bitmap_empty_p): New.
2832         (bitmap_and, bitmap_and_into, bitmap_and_compl,
2833         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
2834         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
2835         operation macros.
2836         (bitmap_ior_and_compl): Rename to ...
2837         (bitmap_ior_and_compl_into): ... here.
2838         * bitmap.c (bitmap_equal_p): Use bitmap_xor.
2839         (bitmap_ior_and_compl): Rename to ...
2840         (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
2841         flag.
2842         (bitmap_union_of_diff): Use renamed bitmap functions.
2843         * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
2844         XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
2845         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2846         * df.c (df_bb_rd_local_compute)
2847         * flow.c (calculate_global_regs_live,
2848         init_propagate_block_info): Likewise.
2849         * ifcvt.c (find_if_case_1, find_if_case_2,
2850         dead_or_predicable): Likewise.
2851         * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
2852         reset_conflicts, conflicts_between_webs): Likewise.
2853         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
2854         detect_web_parts_to_rebuild): Likewise.
2855         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
2856         * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
2857         * tree-sra.c (decide_instantiations): Likewise.
2858         * tree-ssa-alias.c (create_name_tags,
2859         merge_pointed_to_info): Likewise.
2860         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2861         * tree-ssa-loop-im.c (move_computations): Likewise.
2862         * tree-ssa-operands.c (get_call_expr_operands): Likewise.
2863         * tree-ssa-pre.c (fini_pre): Likewise.
2864         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
2865         * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
2866         * tree-vectorizer.c (vectorize_loops): Likewise.
2868 2004-10-29  Nick Clifton  <nickc@redhat.com>
2870         config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
2871         adding the PIC register to the fixed_regs array, also add it
2872         to the call_used_regs array.
2874 2004-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2876         * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
2877         with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
2879 2004-10-28  Daniel Berlin  <dberlin@dberlin.org>
2881         * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
2882         (rewrite_blocks): Modify argument, and use it to decide which
2883         function to call.
2884         (rewrite_def_def_chains): Call rewrite_blocks with true here.
2885         (rewrite_into_ssa): and call it with false here.
2887 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
2889         * tree-phinodes.c (add_phi_arg): Turn an "if" that always
2890         triggers into gcc_assert.
2892 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
2894         PR tree-optimization/16728
2895         * tree-flow.h (get_ptr_info): Declare.
2896         * tree-ssa-alias.c (get_ptr_info): Make extern.
2897         * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
2898         alias information.
2900 2004-10-28  Stan Shebs  <shebs@apple.com>
2902         * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
2903         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
2904         case.
2906 2004-10-28  Frank Ch. Eigler  <fche@redhat.com>
2908         * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
2909         prevent their later unnecessary registration.
2910         (mf_build_check_statement_for): Remove "addr" argument, and
2911         related "__mf_value" generated code.  Update callers.
2912         (mf_decl_eligible_p): New function, factored from mx_register_decls.
2913         (mx_register_decls): Call it.
2914         (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
2915         to restore support for complex nested expressions.
2916         (mudflap_enqueue_decl): Simplify.  Move registration call emission
2917         out ...
2918         (mudflap_finish_file): ... to here.
2919         (mudflap_enqueue_constant): Remove dump code.
2921 2004-10-28  Zack Weinberg  <zack@codesourcery.com>
2923         PR 18199
2924         * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
2925         (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
2926         (dbxout_finish_complex_stabs): Update to match.
2927         (dbxout_symbol_location): Call emit_pending_bincls_if_required
2928         and FORCE_TEXT before DBX_STATIC_BLOCK_START.  Use
2929         dbxout_begin_complex_stabs_noforcetext.
2930         * xcoffout.h (DBX_FINISH_STABS): Restore special case for
2931         N_GSYM, using new SYM parameter.  Correct logic for special
2932         cases for N_FUN.
2934         * varasm.c (function_section): If DECL is NULL_TREE, don't try
2935         to do anything else.  Do not call get_insns if cfun or
2936         cfun->emit are NULL.
2938 2004-10-28  Adam Nemet  <anemet@lnxw.com>
2940         PR middle-end/18160
2941         * c-typeck.c (c_mark_addressable): Issue error if address of a
2942         register variable is taken.  Use "%qD" to print DECL_NAME.
2944 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
2946         * opts.c (decode_options): Don't run PRE at -Os.
2948 2004-10-28  Richard Henderson  <rth@redhat.com>
2950         * config/alpha/alpha.md (movqicc_internal): Allow exactly one
2951         zero in the conditional.
2952         (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
2954 2004-10-28  Richard Henderson  <rth@redhat.com>
2956         * cse.c (memory_extend_rtx): Remove.
2957         (cse_main): Don't set it.
2958         (cse_insn): Use a local buffer instead.
2960 2004-10-28  Andreas Krebbel  <krebbel1@de.ibm.com>
2962         * profile.c (branch_prob): Call to init_edge_profiler added.
2963         * rtl-profile.c (rtl_init_edge_profiler): New function.
2964         (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
2965         call to safe_insert_insn_on_edge.
2966         (rtl_profile_hooks): rtl_init_edge_profiler added.
2967         * tree-profile.c (tree_init_edge_profiler): New function.
2968         (tree_profile_hooks): tree_init_edge_profiler added.
2969         * value-prof.h (profile_hooks) init_edge_profiler prototype added.
2971 2004-10-28  Nick Clifton  <nickc@redhat.com>
2973         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
2974         emit_jump_insn() to generate the return instruction.
2976 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
2978         * tree-phinodes.c: Remove trailing whitespace.
2980 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
2982         * tree-ssa-loop-ivopts.c: Fix a comment typo.
2983         * doc/invoke.texi: Fix a typo.
2985 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
2987         * Makefile.in (OBJS-common): Remove duplicates.
2989 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
2991         * lambda-code.c (nestify_update_pending_stmts): Remove.
2992         (perfect_nestify): Use flush_pending_stmts instead of
2993         nestify_update_pending_stmts.
2994         * tree-cfg.c (tree_make_forwarder_block): Use
2995         flush_pending_stmts.
2996         * tree-flow.h: Add a prototype for flush_pending_stmts.
2997         * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
2998         Use flush_pending_stmts.
2999         (lv_update_pending_stmts): Remove.
3000         (tree_ssa_loop_version): Use flush_pending_stmts instead of
3001         lv_update_pending_stmts.
3002         * tree-ssa.c (flush_pending_stmts): New.
3004 2004-10-28  Ulrich Weigand  <uweigand@de.ibm.com>
3006         PR target/15286
3007         * final.c (alter_subreg): Compute correct offset to use with
3008         paradoxical SUBREGs of memory operands.
3009         * recog.c (general_operand): Allow paradoxical SUBREGs of
3010         memory operands after reload.
3011         * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
3012         has failed when passed a hard register.
3014 2004-10-28  Aldy Hernandez  <aldyh@redhat.com>
3016         * function.c (assign_parm_setup_block): Handle parallels correctly.
3018 2004-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
3020         * final.c (shorten_branches): Initialize flags structure.
3022 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
3024         * tree.c (int_cst_node, int_cst_hash_table): New variables.
3025         (init_ttree): Initialize them.
3026         (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
3027         (build_int_cst_wide): Use hash table for oversized integers.
3029 2004-10-28  Nick Clifton  <nickc@redhat.com>
3031         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
3032         begin_label.
3034 2004-10-27  Richard Henderson  <rth@redhat.com>
3036         PR middle-end/18163
3037         * expr.c (emit_group_load): Don't go force temporary for memory
3038         or concat source.
3039         (emit_group_store): Similarly.
3041 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
3043         PR other/18186
3044         * common.opt (--param): Fix spelling of parameter.
3046 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
3048         PR tree-opt/17529
3049         * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
3050         Don't fold statement.
3051         <case ASM_EXPR>: Fold the statement.
3053 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
3055         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
3056         <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
3058 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
3060         * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
3061         doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
3062         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
3063         doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
3065 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
3067         * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
3068         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
3069         punctuation outside quotes.
3071 2004-10-27  David Mosberger  <davidm@hpl.hp.com>
3072             James E Wilson  <wilson@specifixinc.com>
3074         PR target/13158
3075         * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
3076         sibcall alloc instruction.
3077         (process_set): Handle sibcall alloc instruction.
3079 2004-10-27  Geoffrey Keating  <geoffk@apple.com>
3081         * config/rs6000/rs6000.c (rs6000_attribute_table): Add
3082         SUBTARGET_ATTRIBUTE_TABLE.
3083         * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
3084         (SUBTARGET_ATTRIBUTE_TABLE): Define.
3085         * config/darwin.c (darwin_handle_weak_import_attribute): New.
3086         (HAVE_DEAD_STRIP): Delete.
3087         (no_dead_strip): Don't test HAVE_DEAD_STRIP.
3088         * config/darwin-protos.h (darwin_handle_weak_import_attribute):
3089         Prototype.
3091         * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
3093         * config/darwin.h (GTHREAD_USE_WEAK): Define.
3095 2004-10-28  Ben Elliston  <bje@au.ibm.com>
3097         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
3098         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
3099         * params.h (SRA_MAX_STRUCTURE_SIZE): New.
3100         (SRA_FIELD_STRUCTURE_RATIO): Likewise.
3101         * tree-sra.c: Include "params.h".
3102         (decide_block_copy): Use new parameters.
3103         * doc/invoke.texi (Optimize Options): Document new SRA pass
3104         parameters sra-max-structure-size and sra-field-structure-ratio.
3106 2004-10-27  Nicolas Pitre <nico@cam.org>
3108         * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
3110 2004-10-27  Zdenek Dvorak  <dvorakz@suse.cz>
3112         PR tree-optimization/18048
3113         * fold-const.c (try_move_mult_to_index): New function.
3114         (fold): Use try_move_mult_to_index.
3115         * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
3116         * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
3117         an all-ones unsigned constant without extra bits.
3118         * tree.c (build_low_bits_mask): New function.
3119         * tree.h (build_low_bits_mask): Declare.
3121 2004-10-27  David Edelsohn  <edelsohn@gnu.org>
3123         PR target/17956
3124         * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
3125         final condition.
3126         (minsf3): Same.
3127         (maxdf3): Same.
3128         (mindf3): Same.
3130 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
3132         * tree-cfg.c (thread_jumps): Speed up by reordering the two
3133         conditions for entering basic blocks into worklist.
3135 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
3137         * tree-cfg.c (thread_jumps): Speed up by pretending to have
3138         ENTRY_BLOCK_PTR in worklist.
3140 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
3142         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
3143         <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
3145 2004-10-27  Daniel Berlin <dberlin@dberlin.org>
3147         Fix PR tree-optimization/17133
3149         * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
3150         def kill operand.
3152         * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
3153         (get_v_must_def_result_ptr): Modify for new structure of
3154         v_must_defs array.
3155         (get_v_must_def_kill_ptr): New.
3156         (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
3157         (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
3158         (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
3159         (op_iter_init): Initialize new mustu members.
3160         (op_iter_next_mustdef): New function.
3161         (op_iter_init_mustdef): Ditto.
3163         * tree-flow.h (rewrite_def_def_chains): New function.
3165         * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
3166         (ssa_mark_def_sites): Ditto.
3167         (rewrite_stmt): Ditto.
3168         (ssa_rewrite_stmt): Ditto.
3169         (rewrite_blocks): Factor out from rewrite_into_ssa.
3170         (mark_def_block_sites): Ditto.
3171         (rewrite_def_def_chains): New function, just rewrites def-def
3172         chains without phi node insertion.
3174         * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
3176         * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
3178         * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
3179         they include the rhs now.
3181         * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
3182         V_MUST_DEF_RESULT.
3184         * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
3185         Update callers.
3186         (mark_really_necessary_kill_operand_phis): New function.
3187         (perform_tree_ssa_dce): Call it.
3188         (pass_dce): Add TODO_fix_def_def_chains.
3189         (pass_cd_dce): Ditto.
3191         * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
3192         well.
3193         (rewrite_mem_refs): Ditto.
3195         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
3196         as well.
3198         * tree-ssa-operands.c (allocate_v_may_def_optype):
3199         v_may_def_operand_type_t became v_def_use_operand_type_t.
3200         (allocate_v_must_def_optype) Ditto.
3201         (finalize_ssa_v_must_defs): Update for new operand type, as well
3202         as setting the use portion as well.
3203         (copy_virtual_operands): Copy the kill operand as well.
3204         (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
3205         V_MUST_DEF_RESULT.
3207         * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
3208         v_def_use_operand_type.
3209         (v_must_def_optype_d): Use v_def_use_operand_type.
3210         (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
3211         (V_MUST_DEF_KILL_*): New macros.
3212         (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
3213         members.
3214         Rename existing must_i and num_v_must members to mustd_i and
3215         num_v_mustd.
3216         (SSA_OP_VMUSTDEFKILL): New flag.
3217         (SSA_OP_VIRTUAL_KILLS): New flag.
3218         (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
3219         (SSA_OP_ALL_KILLS): New flag.
3220         (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
3222         * tree-ssa.c (verify_ssa): Verify virtual kills as well.
3224         * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
3225         became V_MUST_DEF_RESULT.
3226         (rename_variables_in_bb): Rename kill pointer as well.
3228         * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
3229         immediate uses.
3231 2004-10-27  Richard Sandiford  <rsandifo@redhat.com>
3233         * dbxout.c (dbxout_source_line): Move declaration of begin_label to
3234         the block that needs it.
3236 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
3238         * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
3239         ATTRIBUTE_UNUSED.
3241 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
3243         * c-lex.c (cb_def_pragma): Clean up code for making location
3244         palatable to diagnostic.c.
3246 2004-10-27  Steven Bosscher  <stevenb@suse.de>
3248         PR tree-optimization/17757
3249         * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
3250         without any PHI arguments left.  Make sure the argument that
3251         we're supposed to remove exists at all.
3253 2004-10-27  Paul Brook  <paul@codesourcery.com>
3255         * configure.ac: Don't test for [build] __cxa_atexit when building a
3256         cross compiler.
3257         * configure: Regenerate.
3259 2004-10-27  Paul Brook  <paul@codeosurcery.com>
3261         * configure.ac: Use build_exeext not host_exeext when lookin for
3262         target tools.
3263         * configure: Regenerate.
3265 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3267         * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
3269 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3270             patch originally created by Kelley Cook  <kcook@gcc.gnu.org>
3272         PR middle-end/14684
3273         * opts.c (OPT_fprofile_generate): Default to -funroll-loops
3274         to match -fprofile-use.
3276 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
3278         * config/rs6000/rs6000.c: Fix a comment typo.
3280 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
3282         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
3283         counter.
3285 2004-10-27  Andreas Schwab  <schwab@suse.de>
3287         * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
3288         unused.
3289         (default_stabs_asm_out_constructor): Likewise.
3291 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
3293         * builtins.c (fold_builtin_unordered_cmp): Always bring both
3294         operands to the same type.
3296 2004-10-26  James E Wilson  <wilson@specifixinc.com>
3298         PR target/18010
3299         * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
3301 2004-10-26  Zack Weinberg  <zack@codesourcery.com>
3303         * dbxout.c: Include obstack.h.
3304         (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
3305         default definition.
3306         (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
3307         Default-define here.
3308         (DBX_CONTIN_LENGTH): Move definition with others.
3309         (DBX_FINISH_STABS): New target macro.
3310         (current_sym_code, current_sym_value, current_sym_addr)
3311         (current_sym_nchars, CHARS, dbxout_continue)
3312         (print_int_cst_octal, print_octal, print_wide_int)
3313         (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
3314         (stabstr_ob, stabstr_last_contin_point): New variables.
3315         (NUMBER_FMT_LOOP): New improper macro.
3316         (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
3317         (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
3318         (dbxout_stab_value_internal_label_diff, dbxout_stabd)
3319         (dbxout_begin_stabn, dbxout_begin_stabn_sline)
3320         (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
3321         (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
3322         (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
3323         (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
3324         New functions and/or proper function-like macros.
3325         (CONTIN): Use stabstr_continue, unconditionally.
3326         (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
3327         (dbxout_init): Initialize stabstr_ob.  Check
3328         NO_DBX_MAIN_SOURCE_DIRECTORY.  Only write out the Ltext label
3329         if it was used.  Use the new interfaces.
3330         (dbxout_source_file): Remove file argument; always write to
3331         asm_out_file.  Use the new interfaces.
3332         (dbxout_type_method_1): Remove second argument which is always
3333         DECL_ASSEMBLER_NAME of the first argument.  Use the new interfaces.
3334         (dbxout_type_methods): Remove write-only variables.  Use the
3335         new interfaces.
3336         (dbxout_parms): Refactor to remove code duplicated in each of
3337         several successive if-else-if blocks.  Use the new interfaces.
3338         (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
3339         (dbxout_source_line, dbxout_finish, dbxout_type_index)
3340         (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
3341         (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
3342         (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
3343         (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
3344         Use the new interfaces.
3345         * Makefile.in (dbxout.o): Update dependencies.
3347         * defaults.h: Don't define ASM_STABD_OP.
3348         * output.h: Prototype new dbxout_* interfaces.
3349         * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
3350         * varasm.c: Don't define ASM_STABS_OP.
3351         (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
3352         Use the new dbxout.c interfaces.  Call sorry if neither
3353         DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
3355         * xcoffout.h: Don't define ASM_STABS_OP.
3356         (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
3357         (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
3358         (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
3359         (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
3360         do { ... } while (0) idiom.
3362         * config/alpha/alpha.c (num_source_filenames): Export.
3363         * config/alpha/alpha.h (num_source_filenames): Declare.
3364         (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3365         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
3366         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3367         Always use .debugsym.  Update commentary.
3368         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3369         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
3370         * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
3371         Use new interfaces.
3372         * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
3373         (macho_branch_islands): Use new interfaces.
3375         * doc/tm.texi: Update.
3377 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
3379         * expr.c (emit_group_store): Do not treat floats as BLKmode.
3380         (emit_group_load): Same.
3382 2004-10-26  Joseph S. Myers  <jsm@polyomino.org.uk>
3384         * c-parse.in (datadef): Use pedwarn rather than error and warning
3385         for diagnostic in case of no declaration specifiers.
3387 2004-10-26  Richard Sandiford  <rsandifo@redhat.com>
3389         PR bootstrap/15747
3390         * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
3391         reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
3392         can be used to work around this.
3394 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
3396         * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
3397         doubles.
3399 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
3401         * stmt.c (expand_case): Update a comment.
3403 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
3405         * stmt.c (expand_case): Put an assertion that index_expr is
3406         never INTEGER_CST.  Don't special case for constant
3407         index_expr.
3409 2004-10-26  Andrew Pinski  <pinskia@physics.uc.edu>
3411         PR 18162
3412         * c-parse.in (designator): Finish with a semi-colon.
3414 2004-10-26  Fariborz Jahanian <fjahanian@apple.com>
3416         * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
3417         into rotlsi3.
3419 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
3421         * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
3422         a default case only.
3424 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
3426         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
3427         e500 doubles.
3428         (spe_build_register_parallel): New.
3429         (rs6000_spe_function_arg): Handle e500 doubles.
3430         (function_arg): Same.
3431         (spe_func_has_64bit_regs_p): Same.
3432         (rs6000_function_value): Same.
3433         (rs6000_libcall_value): Same.
3434         (legitimate_lo_sum_address_p): Return false for e500 doubles.
3436         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
3437         doubles.
3438         (DATA_ALIGNMENT): Same.
3439         (CANNOT_CHANGE_MODE_CLASS): Same.
3441 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
3443         * expr.c (emit_group_load): Handle floats.
3444         (emit_group_store): Same.
3446 2004-10-26  Nathan Sidwell  <nathan@codesourcery.com>
3448         * c-lex.c (get_nonpadding_token): Remove.
3449         (c_lex_with_flags): Push timevar and eat padding here.  Improve
3450         stray token diagnostic.
3451         (lex_string): Replace logic with switch statement, eat padding
3452         token here.
3454 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
3456         PR 18149
3457         * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
3459 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
3461         * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
3462         to 'non-weak'.
3463         (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
3464         (ASM_MAKE_LABEL_LINKONCE): Delete.
3465         (ASM_WEAKEN_DECL): New.
3466         (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
3467         (ASM_DECLARE_FUNCTION_NAME): Likewise.
3468         (TEXT_SECTION_ASM_OP): Add a tab.
3469         (DATA_SECTION_ASM_OP): Likewise.
3470         (SECTION_FUNCTION): Add a tab.  Use fputs.  Don't call
3471         data_section on every section change.
3472         (EXTRA_SECTIONS): Add a bunch of new extra sections.
3473         (EXTRA_SECTION_FUNCTIONS): Likewise.
3474         (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
3475         (JCR_SECTION_NAME): Define.
3476         (TARGET_SECTION_TYPE_FLAGS): Don't define.
3477         * config/darwin.c (darwin_encode_section_info): A symbol is defined
3478         in this file if it is not weak.
3479         (textcoal_section): Delete.
3480         (datacoal_section): Delete.
3481         (darwin_make_decl_one_only): Delete.
3482         (machopic_select_section): Handle functions.
3483         (darwin_asm_named_section): Add a tab.
3484         (darwin_section_type_flags): Delete.
3485         (darwin_unique_section): Delete contents.
3486         (darwin_emit_unwind_label): Add a tab.  Make decls weak if
3487         DECL_WEAK is set.
3488         * config/darwin-protos.h (darwin_section_type_flags): Delete.
3489         (darwin_make_decl_one_only): Delete.
3490         (text_coal_section): New.
3491         (text_unlikely_section): New.
3492         (text_unlikely_coal_section): New.
3493         (const_coal_section): New.
3494         (data_coal_section): New.
3495         (const_data_coal_section): New.
3496         * varasm.c (function_section): Honour
3497         USE_SELECT_SECTION_FOR_FUNCTIONS.
3498         * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
3499         TARGET_USES_WEAK_UNWIND_INFO is in effect.
3500         * dbxout.c (dbxout_source_file): Don't change sections while
3501         a function is being output.
3503 2004-10-25  David Ayers  <d.ayers@inode.at>
3505         * c-common.h: Remove RID_ID.
3506         * c-parse.in: Remove OBJECTNAME and references to RID_ID.
3507         (typespec_reserved_attr): Add rule for TYPENAME
3508         non_empty_protocolrefs.
3509         (yylexname): Remove special handling of RID_ID.
3511 2004-10-25  James E Wilson  <wilson@specifixinc.com>
3513         * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
3515 2004-10-25  Joseph S. Myers  <jsm@polyomino.org.uk>
3517         PR c/16667
3518         * c-parse.in (array_designator): New.
3519         (designator): Use it.
3520         (initelt): Only permit array_designator without '=', not ".foo".
3522 2004-10-25  Kenneth Zadeck <zadeck@naturalbridge.com>
3523         * gcc/Makefile.in: removed ggc for cgraphunit.
3524         * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
3525         * gcc/cgraph.h: removed static var analysis data structures and calls.
3526         * gcc/cgraphunit.c:
3527         cgraph_mark_local_and_external_functions:changed name to
3528                 cgraph_mark_local_functions
3529         (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
3530         cgraph_reset_static_var_maps,get_global_static_vars_info,
3531         get_global_statics_not_read,get_global_statics_not_written,searchc,
3532         cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
3533         check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
3534         scan_for_static_refs,cgraph_characterize_statics_local,
3535         clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
3536         removed.
3537         (cgraph_optimize,init_cgraph): removed calls to static vars analysis
3538         * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
3539         analysis
3540         * gcc/tree-flow.h static_vars_info: removed
3541         * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
3542         removed calls to static vars analysis.
3543         get_call_expr_operands: removed callee variable.
3545 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
3547         * cfg.c (unchecked_make_edge, redirect_edge_succ,
3548         redirect_edge_pred): Use VEC_safe_push instead of
3549         VEC_safe_insert.
3550         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3552 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
3554         * cfgloopmanip.c (loopify): Take two more arguments true_edge
3555         and false_edge.
3556         * cfgloop.h: Adjust the corresponding prototype.
3557         * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
3558         * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
3560 2004-10-25  Jakub Jelinek  <jakub@redhat.com>
3562         * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
3563         DECL_INCOMING_RTL is NULL.
3565 2004-10-25  Steven Bosscher  <stevenb@suse.de>
3567         * timevar.def (TV_FIND_REFERENCED_VARS): New.
3568         * tree-dfa.c (pass_referenced_var): Use it.
3570 2004-10-25  Roger Sayle  <roger@eyesopen.com>
3571             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3573         * cse.c: Change encoding of quantity numbers to avoid undefined
3574         pointer arithmetic on qty_table.
3575         (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
3576         (get_cse_reg_info): Initialize reg_qty to a unique negative value.
3577         (new_basic_block): Assign "real" quantity numbers from zero.
3578         (delete_reg_equiv): Do nothing if quantity is invalid.  Reset the
3579         REG_QTY to its unique negative value.
3580         (merge_equiv_classes): Calculate need_rehash if quantity is valid.
3581         (cse_main): Don't include max_reg when determining max_qty.
3582         (cse_basic_block): Avoid subtracting a large offset from qty_table,
3583         which causes undefined C99 behaviour.  Only allocate needed memory.
3585 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
3587         * stmt.c (expand_case): Remove an obsolete comment.
3589 2004-10-25  Andrew Pinski  <pinskia@physics.uc.edu>
3591         PR middle-end/17407
3592         * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
3593         layout_type as it is already done by build_array_type.
3594         * tree.c (build_array_type): Layout the type even
3596 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
3598         * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
3600 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
3602         * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
3603         with wider-than-32-bit HOST_WIDE_INTs.
3605 2004-10-25  David Billinghurst <David.Billinghurst@riotinto.com>
3607         * config/mips/mips.c(mips_output_filename): Remove unused
3608         array ltext_label_name
3610 2004-10-24  Geoffrey Keating  <geoffk@geoffk.org>
3612         * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
3614 2004-10-25  Ben Elliston  <bje@au.ibm.com>
3616         * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
3618 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
3620         * predict.c (predict_loops): Call scev_finalize instead of
3621         scev_reset.
3623 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
3625         * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
3626         config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
3627         config/sh/ushmedia.h, config/sparc/elf.h,
3628         config/sparc/sp64-elf.h: Update copyright.
3630 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
3632         * stmt.c (expand_case): Handle the default label outside of
3633         the for loop.  Remove code to handle a missing default label.
3635 2004-10-23  Kazu Hirata  <kazu@cs.umass.edu>
3637         * dbxout.c (dbxout_function_decl): Don't use
3638         DBX_OUTPUT_FUNCTION_END.
3639         * system.h: Poison DBX_OUTPUT_FUNCTION_END.
3640         * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
3642 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
3644         PR middle-end/17967
3645         * tree-cfg.c (remove_usless_stmts_cond):  Don't Fold statement.
3647 2004-10-23  Daniel Berlin  <dberlin@dberlin.org>
3649         * tree-ssa-dom.c (record_equality): Use loop depth to determine
3650         which way to record the equality as well.
3651         (loop_depth_of_name): New function.
3653 2004-10-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3655         PR middle-end/17793
3656         * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
3657         through the operand if it is a useless type conversion.
3659 2004-10-23  Ben Elliston  <bje@au.ibm.com>
3661         * cfg.c (remove_edge): Use VEC_unordered_remove.
3662         (redirect_edge_succ): Likewise.
3663         (redirect_edge_pred): Likewise.
3664         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3666 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3668         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
3669         beyond its end.
3671 2004-10-22  Eric Christopher  <echristo@redhat.com>
3673         * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
3674         saves.
3676 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
3678         * config/rs6000/spe.md (spe_extendsfdf2): New.
3679         (movdf_e500_double): New.
3680         (spe_truncdfsf2): New.
3681         (spe_absdf2): New.
3682         (spe_nabsdf2): New.
3683         (spe_negdf2): New.
3684         (sub_adddf3): New.
3685         (spe_subdf3): New.
3686         (spe_muldf3): New.
3687         (spe_floatsidf2): New.
3688         (spe_floatunssidf2): New.
3689         (fix_truncdfsi2): New.
3690         (spe_fixuns_truncdfsi2): New.
3692         * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
3693         (fpr_truncdfsf2): New.
3694         (negdf2): Change to expander.
3695         (fpr_negdf2): New.
3696         (fpr_nabsdf2): Name pattern.
3697         (adddf3): Change to expander.
3698         (fpr_adddf3): Nem.
3699         (subdf3): Change to expander.
3700         (fpr_subdf3): New.
3701         (muldf3): Change to expander.
3702         (fpr_muldf3): New.
3703         (divdf3): Change to expander.
3704         (fpr_divdf3): New.
3705         (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
3706         (cmpdf): Allow for TARGET_E500_DOUBLE.
3708 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3710         * c-semantics.c (re_push_stmt_list): Remove.
3711         * c-common.h: Remove the corresponding prototype.
3713 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3715         * stmt.c (asm_op_is_mem_input): Remove.
3716         * tree.h: Remove the corresponding prototype.
3718 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3720         * tree-gimple.c (is_gimple_constructor_elt): Remove.
3721         * tree-gimple.h: Remove the corresponding prototype.
3723 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3725         * varasm.c (get_pool_mode_for_function, get_pool_offset):
3726         Remove.
3727         * rtl.h: Remove the corresponding prototypes.
3729 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3731         * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
3732         edge information when we commit ourselves to threading a
3733         particular jump.
3735 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3737         * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
3738         into worklist instead of their indexes.
3740 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3742         * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
3743         final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
3744         lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
3745         pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
3746         tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
3747         tree-scalar-evolution.c, tree-ssa-dom.c,
3748         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3749         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
3750         tree-vectorizer.c, vec.h: Fix comment formatting.
3752 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3754         * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
3755         libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
3757 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3759         * config/ptx4.h, config/mcore/mcore-pe.h,
3760         config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
3762 2004-10-22  Peter Barada <peter@the-baradas.com>
3764         * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
3765         * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
3766         renaming of non-live registers in interrupt functions.
3767         * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
3769 2004-10-22  Zdenek Dvorak  <dvorakz@suse.cz>
3771         * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
3772         Use integer for loop counter.
3773         (num_ending_zeros): New function.
3774         (number_of_iterations_cond): Use num_ending_zeros.
3776 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
3778         * config.gcc: Add support for --enable-e500_double.
3780         * config/rs6000/e500-double.h: New file.
3782         * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
3783         TARGET_E500_DOUBLE.
3785         * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
3786         TARGET_E500_DOUBLE.
3788         * config/rs6000/linuxspe.h: Same.
3790         * doc/invoke.texi (Option Summary): Document new options for
3791         mfloat-gprs.
3792         (RS/6000 and PowerPC Options): Same.
3794         * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
3795         function.
3796         (rs6000_override_options): Use it.  Use
3797         SUB3TARGET_OVERRIDE_OPTIONS.
3798         Add 8548 to processor_target_table.
3799         (rs6000_legitimate_address): Handle e500 doubles.
3800         (rs6000_legitimize_address): Same.
3801         (rs6000_legitimize_reload_address): Same.
3802         (rs6000_hard_regno_nregs): Same.
3803         (spe_func_has_64bit_regs_p): Same.
3804         (emit_frame_save): Same.
3805         (gen_frame_mem_offset): Same.
3806         (rs6000_dwarf_register_span): Same.
3807         (rs6000_generate_compare): Same.
3808         (easy_fp_constant): Same.
3809         (legitimate_offset_address_p): Same.
3811         * config/rs6000/spe.md: (cmdfeq_gpr): New.
3812         (tstdfeq_gpr): New.
3813         (cmpdfgt_gpr): New.
3814         (tstdfgt_gpr): New.
3815         (tstdfgt_gpr): New.
3816         (cmpdflt_gpr): New.
3817         (tstdflt_gpr): New.
3818         Add new constants.
3820 2004-10-21  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
3822         * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
3824 2004-10-21  Zack Weinberg  <zack@codesourcery.com>
3826         * dbxout.c: Remove unnecessary #undefs.
3827         (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
3828         (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
3829         definition into use sites.
3830         (cwd): Make local to dbxout_init.
3831         (dbxout_init): Restructure cwd-using logic for clarity.  Use
3832         IS_DIR_SEPARATOR.
3833         * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
3834         STABS_GCC_MARKER folded in here.
3835         * system.h: Poison now-unused macros.
3836         * doc/tm.texi: Remove documentation of now-unused macros.
3838 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
3840         PR c/17538
3841         * c-opts.c (push_command_line_include): Use the current file
3842         name instead of the main one.
3844 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
3846         PR objc/17923
3847         * tree.c (staticp): A CONST_DECL has static storage if either
3848         TREE_STATIC or DECL_EXTERNAL is set.
3849         * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
3850         have null names.
3852 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
3854         * expr.c (store_expr): Remove dont_store_target.
3856 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
3858         * tree-cfg.c (thread_jumps): Speed up by using a worklist.
3860 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
3862         * tree-cfg.c (thread_jumps): Move a part of it to ...
3863         (thread_jumps_from_bb): ... here.
3865 2004-10-21  David Edelsohn  <edelsohn@gnu.org>
3867         * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
3868         * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
3870 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
3872         * expr.c (store_expr): Clean up by renaming want_value to
3873         call_param_p.
3875 2004-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
3877         * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
3878         fixup pc here.
3880 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
3882         PR 18004.
3883         * expmed.c (store_bit_field): Pass original 'value' before
3884         recursing.
3886 2004-10-21  Nicolas Pitre <nico@cam.org>
3888         * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
3889         * config/arm/ieee754-df.S: Ditto.
3891 2004-10-20  Zack Weinberg  <zack@codesourcery.com>
3893         * dbxout.c (asmfile): Delete.  All uses changed to asm_out_file.
3894         (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
3895         Default to 0.
3896         (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
3897         When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
3898         an internal label and an N_SLINE .stabn whose value is the
3899         difference between that label and the function entry label.
3900         (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
3901         but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
3902         label and an N_SO stab with an empty string referring to it.
3903         (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
3904         of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
3905         (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
3906         (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
3907         macro is never defined.
3908         * sdbout.c (sdbout_source_line_counter): Delete.
3909         (PUT_SDB_SRC_FILE): Delete.  Uses replaced with sole definition.
3910         (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
3911         only two arguments.
3912         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
3914         * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
3915         * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
3916         definitions (identical to default).
3917         * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
3918         * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
3919         Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
3920         DBX_OUTPUT_MAIN_SOURCE_FILE_END.
3921         * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
3922         * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
3923         Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
3924         * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
3925         * config/alpha/alpha.c: Move declaration of num_source_filenames up.
3926         (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
3927         (sym_lineno): Delete.
3928         (alpha_output_filename): Do not emit N_SOL stabs here.  Remove
3929         now-unused variable.
3930         (alpha_output_lineno): Delete.
3931         * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
3932         * config/mips/mips.c (mips_output_filename): Don't use
3933         ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
3934         (mips_output_lineno): Delete.
3935         (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
3936         * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
3937         SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
3938         * config/mips/mips.h: Likewise.  Don't define ASM_OUTPUT_FILENAME.
3939         * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
3940         * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
3941         * config/mmix/mmix.h: Likewise.
3942         * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
3943         * config/mmix/mmix-protos.h: Don't prototype it.
3944         * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
3945         no need to #undef ASM_OUTPUT_SOURCE_LINE.
3946         * config/arm/aout.h: Remove RISCiX-specific definition of
3947         DBX_OUTPUT_MAIN_SOURCE_FILENAME.
3948         * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
3949         ASM_OUTPUT_SOURCE_LINE.
3950         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
3951         DBX_OUTPUT_SOURCE_LINE.  Don't use current_function_func_begin_label.
3952         * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
3954         * doc/tm.texi: Update.
3956 2004-10-20  Richard Henderson  <rth@redhat.com>
3958         * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
3960 2004-10-20  Kelley Cook  <kcook@gcc.gnu.org>
3962         * configure.ac: Revert my previous patch.
3963         * configure: Regenerate.
3965 2004-10-20  Ben Elliston  <bje@au.ibm.com>
3967         * config/rs6000/rs6000.c
3968         (rs6000_va_start): Use build_va_arg_indirect_ref.
3969         (rs6000_gimplify_va_arg): Likewise.
3971 2004-10-20  Bryce McKinlay  <mckinlay@redhat.com>
3973         PR java/15575
3974         * configure.ac: Declare AM_LANGINFO_CODESET.
3975         * aclocal.m4: Define AM_LANGINFO_CODESET.
3976         * configure, config.in: Rebuilt.
3978 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
3980         * expr.c (store_expr): Remove code that is run when
3981         want_value & 1 is nonzero.
3983 2004-10-20  Mark Mitchell  <mark@codesourcery.com>
3985         * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
3986         from function pointer to void *.
3988 2004-10-20  Kaz Kojima  <kkojima@gcc.gnu.org>
3990         PR target/18032
3991         * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
3992         the frame pointer adjustment when exception handling is enabled.
3994 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
3996         * stor-layout.c: Fix a comment typo.
3998 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
4000         * expr.c (store_field): Remove two arguments value_mode and
4001         unsignedp.
4002         (expand_assignment, store_constructor_field,
4003         expand_expr_real_1): Adjust calls to store_field.
4005 2004-10-18  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
4007         * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
4009         PR target/17317
4010         * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
4011         REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
4012         base and index register for loads.
4014         * config/arc/t-arc: Fix multilib handling.
4016 2004-10-20  Hans-Peter Nilsson  <hp@bitrange.com>
4018         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
4019         don't inspect BLOCK_FOR_INSN for barriers.
4020         * emit-rtl.c (emit_barrier_before): Revert last change.
4021         (emit_barrier_after, emit_barrier): Ditto.
4023         * doc/extend.texi (Extended Asm): Warn and provide example
4024         solution for using a call-clobbered asm register.
4025         (Local Reg Vars): Similar.  Cross-reference example.
4027 2004-10-19  Andrew Pinski  <pinskia@physics.uc.edu>
4029         * tree-cfg.c (group_case_labels): Look at the second to last
4030         case statement for combing with the default case.
4032 2004-10-19  Richard Hendeson  <rth@redhat.com>
4034         PR 17962
4035         * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
4037 2004-10-19  Richard Hendeson  <rth@redhat.com>
4039         * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
4040         succeeds, only expand the result.
4042 2004-10-19  Richard Hendeson  <rth@redhat.com>
4044         PR middle-end/17885
4045         * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
4046         of INDIRECT_REF.
4048 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
4050         * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
4051         loop with goto.
4053 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
4055         * expr.c (expand_assignment): Remove the last argument.
4056         Change the return type to void.
4057         * expr.h: Update the prototype of expand_assignment.
4058         * function.c (assign_parm_setup_reg): Update a call to
4059         expand_assignment.
4060         * stmt.c (expand_asm_expr): Likewise.
4062 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
4064         * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
4065         unnecessary assignments to temp.  Return const0_rtx.
4067 2004-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
4069         * config/sh/sh.c (sh5_schedule_saves): Fix typo.
4071 2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
4073         * configure.ac (powerpc-*-darwin*): Require assembler to support
4074         .machine directive.
4075         * configure: Regenerate.
4077 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
4079         * reload1.c (ior_hard_reg_set): Remove.
4080         (finish_spills): Use IOR_HARD_REG_SET instead of
4081         ior_hard_reg_set.
4083 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
4085         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
4086         the currently visited word to right.
4088 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4090         PR middle-end/18045
4091         * expmed.c (expand_smod_pow2): Handle modes whose size
4092         is greater than that of HOST_WIDE_INT.
4094 2004-10-18  Ziemowit Laski  <zlaski@apple.com>
4096         * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
4098 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4099             Roger Sayle  <roger@eyesopen.com>
4101         PR middle-end/17813
4102         * dojump.c (discard_pending_stack_adjust): New function.
4103         (clear_pending_stack_adjust): Call it.
4104         * expr.h (discard_pending_stack_adjust): Declare it.
4105         * explow.c (emit_stack_save): Emit pending stack adjustments
4106         before saving the stack pointer.
4107         (emit_stack_restore): Discard pending stack adjustments before
4108         restoring the stack pointer.
4110 2004-10-18  Richard Henderson  <rth@redhat.com>
4112         * c-common.c (handle_mode_attribute): Allow scalar->vector
4113         type changes yet.
4115 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
4117         * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
4118         value to expand_assignment.
4120 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
4122         * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
4123         thread_jumps.
4124         (thread_jumps): Iterate until no new forwarder block arises.
4126 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
4128         * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
4129         (thread_jumps): Use forwardable as cache of
4130         tree_forwarder_block_p throughout the function.
4132 2004-10-18  Andreas Krebbel  <krebbel1@de.ibm.com>
4134         * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
4136 2004-10-18  Andrew Pinski  <pinskia@physics.uc.edu>
4138         PR middle-end/15014
4139         PR middle-end/16973
4140         * tree-cfg.c (remove_bb): If we have a label expression in the
4141         basic block and the label we have taken the address, move the
4142         label expression to the basic block which is previous in the
4143         linked list.
4144         (tree_verify_flow_info): Fix printing out the label name of the
4145         problematic label expression.
4147 2004-10-18  Pat Haugen  <pthaugen@us.ibm.com>
4149         PR rtl-optimization/18002
4150         * simplify-rtx.c (mode_signbit_p): Externalize function...
4151         * rtl.h (mode_signbit_p): ... to here.
4152         * combine.c (simplify_shift_const): Recognize PLUS signbit as
4153         canonical form of XOR signbit and move to outer op.
4155 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
4157         * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
4158         Update all callers.
4159         * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
4160         Don't call fold_stmt more than once, use bsi_replace.
4162 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
4164         PR tree-optimization/17656
4165         * tree-ssa.c (replace_immediate_uses): When replacing a
4166         constant, if the call to fold_stmt produced a different
4167         statement, get an appropriate statement pointer by scanning
4168         STMT's basic block.
4170 2004-10-18  Richard Henderson  <rth@redhat.com>
4172         * pointer-set.c (hash1): Don't use libm functions in fallback case.
4174 2004-10-18  H.J. Lu  <hongjiu.lu@intel.com>
4176         PR bootstrap/17684
4177         * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
4178         (stage1-start): Remove and copy libunwind.a and
4179         libunwind*$(SHLIB_EXT) instead of libunwind*.
4180         (stage2-start): Likewise.
4181         (stage3-start): Likewise.
4182         (stage4-start): Likewise.
4183         (stageprofile-start): Likewise.
4184         (stagefeedback-start): Likewise.
4186         * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
4187         the shared library to be created and don't remove the existing
4188         shared library.
4189         * config/arm/t-netbsd (SHLIB_LINK): Likewise.
4190         * config/i386/t-nwld (SHLIB_LINK): Likewise.
4191         * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
4192         * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
4193         * config/sh/t-linux (SHLIB_LINK): Likewise.
4194         * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
4195         * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
4196         * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
4197         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
4199         * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
4200         files.
4202 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
4204         * basic-block.h (reg_set_iterator): New.
4205         (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
4206         (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
4207         (EXECUTE_IF_AND_IN_REG_SET): Likewise.
4208         * caller-save.c (save_call_clobbered_regs): Adjust to the new
4209         style.
4210         * cfgcleanup.c (thread_jump): Likewise.
4211         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
4212         * conflict.c (conflict_graph_compute): Likewise.
4213         * flow.c (verify_local_live_at_start, update_life_info,
4214         initialize_uninitialized_subregs, propagate_one_insn,
4215         init_propagate_block_info, free_propagate_block_info,
4216         propagate_block, dump_regset): Likewise.
4217         * global.c (global_conflicts): Likewise.
4218         * graph.c (start_bb): Likewise.
4219         * local-alloc.c (update_equiv_regs): Likewise.
4220         * loop.c (load_mems): Likewise.
4221         * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
4222         find_reg, finish_spills): Likewise.
4223         * resource.c (mark_target_live_regs): Likewise.
4224         * sched-deps.c (sched_analyze_insn): Likewise.
4225         * sched-rgn.c (sched-rgn.c): Likewise.
4226         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4228 2004-10-18  Jakub Jelinek  <jakub@redhat.com>
4230         * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
4231         operand 1 instead of 2
4233 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
4235         * loop-unroll.c: Fix comment typos.
4237 2004-10-18  Revital Eres  <eres@il.ibm.com>
4239         * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
4240         * loop-unroll.c: Include varray.h.
4241         (struct var_to_expand, struct opt_info): Rename split_ivs_info to
4242         opt_info and expand it to support variable expansion.
4243         (analyze_insns_in_loop): Rename analyze_ivs_to_split and
4244         expand it to support variable expansion.
4245         (pt_info_start_duplication): Rename si_info_start_duplication.
4246         (apply_opt_in_copies): Rename split_ivs_in_copies and add support
4247         to the variable expansion optimization.
4248         (free_opt_info): Rename free_si_info.
4249         (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
4250         expand_var_during_unrolling, insert_var_expansion_initialization,
4251         combine_var_copies_in_loop_exit, release_var_copies,
4252         get_expansion): New functions.
4253         (peel_loop_completely, unroll_loop_constant_iterations,
4254         unroll_loop_runtime_iterations, peel_loop_simple,
4255         unroll_loop_stupid): Change uses of struct si_info
4256         to struct opt_info
4257         and add uses of fvariable-expansion-in-unroller flag.
4258         * params.def: Add parameter to restrict the number of expansions.
4259         * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
4260         the number of expansions.
4261         * common.opt: (fvariable-expansion-in-unroller): New flag.
4262         * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
4264 2004-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
4266         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
4267         __GXX_MERGED_TYPEINFO_NAMES to 0.
4269 2004-10-17  Hans-Peter Nilsson  <hp@bitrange.com>
4271         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
4272         handle barriers in a bb by checking that it points to a NULL bb.
4273         * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
4274         (emit_barrier_after, emit_barrier): Ditto.
4276 2004-10-18  Joseph S. Myers  <jsm@polyomino.org.uk>
4278         * doc/extend.texi (Attribute Syntax): Clarify details of
4279         attributes on parameters.
4281 2004-10-17  Zdenek Dvorak  <dvorakz@suse.cz>
4283         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
4284         loop.
4286 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
4288         Revert:
4289         2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
4291         * c-typeck.c (default_function_array_conversion): Always create
4292         &a[0] for array types.
4293         (build_unary_op): Do not fold &a[x] into a + x.
4295 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
4297         PR middle-end/17925
4298         * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
4299         block if there is a goto with a locus.
4301 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
4303         * config/elfos.h, config/gofast.h, config/interix.h,
4304         config/netbsd.h, config/svr3.h, config/vxworks.h,
4305         config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
4306         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
4307         config/alpha/netbsd.h, config/arm/arm-modes.def,
4308         config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
4309         config/cris/aout.h, config/frv/frv-modes.def,
4310         config/i386/beos-elf.h, config/i386/gas.h,
4311         config/i386/i386-coff.h, config/i386/i386-modes.def,
4312         config/i386/linux.h, config/i386/linux64.h,
4313         config/i386/mingw32.h, config/i386/netbsd-elf.h,
4314         config/i386/netbsd64.h, config/i386/sco5.h,
4315         config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
4316         config/ia64/ia64-modes.def, config/ia64/itanium1.md,
4317         config/ia64/itanium2.md, config/m68k/m68k-modes.def,
4318         config/mips/mips-modes.def, config/mips/sdb.h,
4319         config/mips/vr.h, config/mips/vxworks.h,
4320         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
4321         config/pa/pa32-linux.h, config/rs6000/40x.md,
4322         config/rs6000/7450.md, config/rs6000/8540.md,
4323         config/rs6000/linuxspe.h, config/rs6000/power4.md,
4324         config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
4325         config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
4326         config/s390/s390-modes.def, config/sh/elf.h,
4327         config/sh/sh-modes.def, config/sh/sh64.h,
4328         config/sparc/ultra1_2.md, config/sparc/ultra3.md,
4329         config/stormy16/stormy16.md, config/v850/v850-protos.h,
4330         config/vax/vax.md: Update copyright.
4332 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
4334         * expr.c (expand_expr_real_1): Remove an obsolete comment.
4336 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
4338         * c-typeck.c (default_function_array_conversion): Always create
4339         &a[0] for array types.
4340         (build_unary_op): Do not fold &a[x] into a + x.
4342 2004-10-17  Jakub Jelinek  <jakub@redhat.com>
4344         * pointer-set.c (hash1): Use integer part of 2^64 / phi
4345         instead 2^32 / phi if long is 64-bit.
4347 2004-10-17  Joseph S. Myers  <jsm@polyomino.org.uk>
4349         * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
4350         RID_PTRVALUE.
4351         * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
4352         declarations.
4353         (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
4354         __ptrextent__, __ptrvalue and __ptrvalue__.
4355         (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
4356         entries.
4358 2004-10-16  Dale Johannesen  <dalej@apple.com>
4360         * c-common.c (c_common_get_alias_set):  Use GGC for type_hash_table.
4362 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
4364         PR tree-optimization/17766
4365         * basic-block.h (enum dom_state): DOM_CONS_OK removed.
4366         (dom_info_available_p): Declare.
4367         * cfghooks.c (split_block, make_forwarder_block): Use
4368         dom_info_available_p.
4369         * dominance.c (compute_dom_fast_query, calculate_dominance_info,
4370         free_dominance_info, verify_dominators): Ditto.
4371         (dom_info_available_p): New function.
4372         * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
4373         (thread_jumps): Use dom_info_available_p.
4374         * tree-complex.c (expand_complex_div_wide): Ditto.
4375         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
4377 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
4379         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
4380         (find_best_candidate): Take also important candidates into account.
4381         (find_optimal_iv_set): Initialize important_candidates bitmap.
4383 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
4385         PR tree-optimization/17560
4386         * predict.c (tree_estimate_probability): Mark irreducible
4387         loops.
4389 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
4391         PR rtl-optimization/17723
4392         * cfgcleanup.c (merge_memattrs): Handle case when
4393         MEM_SIZE == NULL_RTX.
4395 2004-10-15  Andrew Pinski  <pinskia@physics.uc.edu>
4397         * toplev.c (dump_file_name): Change type to be const.
4399 2004-10-15  Joseph S. Myers  <jsm@polyomino.org.uk>
4401         * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
4402         non_lvalue to stop something being a null pointer constant.
4404 2004-10-15  Aldy Hernandez  <aldyh@redhat.com>
4406         * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
4407         available for TARGET_FPRS.
4408         (FUNCTION_VALUE_REGNO_P): Same.
4410 2004-10-15  Geoffrey Keating  <geoffk@apple.com>
4412         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4413         -maltivec in same style as other ISA options.
4415 2004-10-15  Jon Grimm <jgrimm2@us.ibm.com>
4417         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
4418         definition.
4420 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
4422         * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
4423         collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
4424         gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
4425         genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
4426         gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
4427         gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
4428         lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
4429         predict.def, predict.h, protoize.c, reload.h, resource.h,
4430         rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
4431         tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
4432         unwind-sjlj.c, value-prof.h: Update copyright.
4434 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
4436         * pointer-set.c, tree-vectorizer.c: Fix comment typos.
4438 2004-10-15  Diego Novillo  <dnovillo@redhat.com>
4440         * tree-optimize.c (execute_one_pass): Stop timer right after
4441         executing the pass.
4443 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
4445         Revert:
4446         2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
4447         PR middle-end/17967
4448         Revert:
4449                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
4450                 (remove_useless_stmts_1):  Fold trees we know how to fold.
4452 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
4454         * configure.ac: Add .machine power4 directive when testing for
4455         mfcr field.
4456         * configure: Regenerate.
4458 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
4460         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
4462 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
4464         * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
4465         always.
4467 2004-10-14  Daniel Jacobowitz  <dan@codesourcery.com>
4469         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
4470         for 'f' if !TARGET_FPRS.
4472 2004-10-14  Richard Henderson  <rth@redhat.com>
4474         PR debug/14492
4475         * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
4477 2004-10-14  Richard Henderson  <rth@redhat.com>
4479         PR c/17023
4480         * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
4481         as error_mark_node.
4482         * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
4483         instaed of current_function_decl non-null.
4485 2004-10-14  Matt Austern  <austern@apple.com>
4487         * pointer-set.c: New file, special-purpose hash table.
4488         * pointer-set.h: New file.
4489         * tree.h (struct pointer_set_t): Declare as opaque type.
4490         (tree_walk): Last argument is pointer_set_t* now.
4491         * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
4492         (walk_type_fields):
4493         (walk_tree): Convert from htab_t to pointer_set_t for keeping
4494         track of which nodes have already been visited.
4495         (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
4496         * cgraphunit.c (cgraph_create_edges): Likewise.
4497         (cgraph_characterize_statics_local): Likewise.
4498         * tree-dfa.c (collect_dfa_stats): Likewise.
4499         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
4500         pointer_set_t* now.
4501         * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
4502         * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
4503         of walk_subtrees is pointer_set_t* now.
4504         * Makefile.in (OBJS-common): add pointer-set.o
4505         (tree-inline.o): Depends on pointer-set.h
4506         (tree-dfa.o): Likewise
4507         (cgraphunit.o): Likewise
4509 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
4511         * config/rs6000/darwin.h (ASM_SPEC): Delete.
4512         (TARGET_ASM_FILE_START): Define.
4513         * config/darwin.h (ASM_SPEC): Define.
4514         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
4515         -mlong-double-128, it's the default.  Update comment about reason
4516         for force_cpusubtype_ALL.
4517         * config/rs6000/darwin-vecsave.asm: Supply .machine.
4518         * config/rs6000/darwin-world.asm: Likewise.
4519         * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
4520         (symbolic_operand): Delete #if 0ed code.
4522 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
4524         * stmt.c (add_case_node): Make sure that we have integer
4525         constant before calling tree_int_cst_compare.
4527 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
4529         PR middle-end/17967
4530         Revert:
4531                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
4532                 (remove_useless_stmts_1):  Fold trees we know how to fold.
4534 2004-10-14  Joseph S. Myers  <joseph@codesourcery.com>
4536         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
4537         config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
4538         -m64.
4540 2004-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
4542         * reload.c (find_reloads): When reloading a PLUS with constant
4543         operand, make sure the constant is pushed to the constant pool
4544         if required.
4545         * config/s390/s390.c (s390_secondary_input_reload_class): Remove
4546         reload bug workaround.
4547         (s390_expand_plus_operand): Likewise.
4549 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
4551         * opts.c (common_handle_option): Do not enable
4552         flag_speculative_prefetching for -fprofile-generate/use.
4554 2004-10-14  Devang Patel  <dpatel@apple.com>
4556         PR 17635
4557         * tree-if-conv.c (process_phi_nodes): Process latch block.
4558         (combine_blocks): Process latch block and update loop structure.
4560 2004-10-14  Olga Golovanevsky  <olga@il.ibm.com>
4562         * tree-vectorizer.c (vect_generate_tmps_on_preheader):
4563         (vect_update_ivs_after_vectorizer):
4564         (vect_transform_for_unknown_loop_bound):
4565         (tree_duplicate_loop_to_edge):
4566         (allocate_new_names):
4567         (rename_use_op):
4568         (rename_def_op):
4569         (rename_variables_in_bb):
4570         (free_new_names):
4571         (rename_variables_in_loop):
4572         (copy_phi_nodes):
4573         (update_phis_for_duplicate_loop):
4574         (update_phi_nodes_for_guard):
4575         (make_loop_iterate_ntimes):
4576         (tree_duplicate_loop_to_edge_cfg):
4577         (add_loop_guard):
4578         (vect_analyze_loop_with_symbolic_num_of_iters):
4579         (verify_loop_for_duplication):
4580         (vect_gen_niters_for_prolog_loop):
4581         (vect_update_niters_after_peeling):
4582         (vect_update_inits_of_dr):
4583         (vect_update_inits_of_drs):
4584         (vect_build_loop_niters):
4585         (vect_do_peeling_for_alignment): New functions.
4586         (vect_transform_loop): Add unknown and known but indivisible loop
4587         bound support; add peeling for unalignment support.
4588         (vect_analyze_loop_form): Support symbolic number of iterations.
4589         (vect_transform_loop_bound): New input parameter.
4590         (vect_get_loop_niters): Change input parameter type.
4591         (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
4592         (vectorizable_store): Allow unaligned access.
4593         (vectorize_loops): Add rewrite_into_loop_closed_ssa.
4594         (vect_analyze_data_refs_alignment): Allowed one unaligned
4595         store.
4596         * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
4597         to use tree.
4598         (LOOP_VINFO_INT_NITERS): New macro.
4599         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
4600         (do_peeling_for_alignment):
4601         (unaligned_drs): New members of _loop_vec_info.
4602         (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
4604 2004-10-14  Ranjit Mathew  <rmathew@hotmail.com>
4606         * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
4607         (struct tree_string): Remove "const" qualifier for "str".
4609 2004-10-14  Ira Rosen  <irar@il.ibm.com>
4611         * tree-vectorizer.c (vect_analyze_data_refs): Call
4612         vect_get_base_and_bit_offset to get memory tag for array ref.
4613         (vect_create_addr_base_for_vector_ref): Remove redundant checks.
4615 2004-10-14  Richard Earnshaw  <rearnsha@arm.com>
4617         * configure.ac: Use $LN_S for creating symlinks (not $LN).
4618         * configure: Regenerate.
4620 2004-10-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4622         * doc/install.texi (*-*-solaris2*): Update with info about kernel
4623         patches to solve spurious testsuite failures.
4625 2004-10-14  Dorit Naishlos  <dorit@il.bim.com>
4627         * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
4628         Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
4629         (vect_analyze_operations): Make sure the vectorization factor > 1. Add
4630         gcc_assert under ENABLE_CHECKING.
4631         (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
4632         get_vectype_for_scalar_type).
4634         (vect_get_vec_def_for_operand): Remove redundant variables.
4635         (vect_transform_loop): Likewise.
4637 2004-10-14  Richard Sandiford  <rsandifo@redhat.com>
4639         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
4640         global for -mcaller-super-interworking.
4641         (CALLER_INTERWORKING_SLOT_SIZE): New macro.
4642         * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
4643         CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
4644         not need a frame pointer.
4645         (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
4646         the soft frame pointer offset.
4647         (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
4648         * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
4649         _interwork_{r7,r11}_call_via_rN if some arguments are passed on
4650         the stack.  Use frame_pointer_needed to choose between them.
4651         * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
4652         (interwork_with_frame): New macro.
4653         (interwork): Add _interwork_{r7,r11}_call_via_rN().
4655 2004-10-14  Ben Elliston  <bje@au.ibm.com>
4657         PR other/17900
4658         * diagnostic.c (trim_filename): Fix logic bug in walking backwards
4659         up the filename looking for a previous directory separator.
4661 2004-10-14  Joseph S. Myers  <jsm@polyomino.org.uk>
4663         * c-tree.h (enum c_typespec_kind, struct c_typespec,
4664         parser_xref_tag): New.
4665         (struct c_declspecs): Add tag_defined_p.  Adjust definition of
4666         typedef_p.
4667         (declspecs_add_type): Adjust prototypes.
4668         * c-parse.in (%union): Add tstype.
4669         (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
4670         typespec_reserved_attr, typespec_nonreserved_nonattr,
4671         structsp_attr, structsp_nonattr): Change to tstype.  Update
4672         actions.
4673         * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
4674         (declspecs_add_type): Update to take struct c_typespec argument.
4675         Set tag_defined_p and typedef_p as appropriate.
4676         (xref_tag): Rename to parser_xref_tag and replace by wrapper.
4677         Update to return struct c_typespec.
4678         (shadow_tag_warned): Don't let empty declarations with qualifiers
4679         or storage class specifiers redeclare a tag if a previous
4680         declaration is visible.
4682 2004-10-13  Richard Henderson  <rth@redhat.com>
4684         PR debug/15860
4685         * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
4686         for DECL_INCOMING_RTL.
4688 2004-10-14  Hans-Peter Nilsson  <hp@axis.com>
4690         PR target/17984
4691         * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
4692         trunc_int_for_mode for constants used in shortened mode.
4694 2004-10-13  Richard Henderson  <rth@redhat.com>
4696         PR c/17384
4697         * c-common.c (handle_mode_attribute): Disallow mode changes that
4698         alter the CODE of the top-level type.
4700         * crtstuff.c (__FRAME_END__): Remove mode attribute.  Find 32-bit
4701         integer from internal limits macros.
4702         * config/i386/mm3dnow.h (__v2sf): Fix base type.
4704 2004-10-13  Richard Henderson  <rth@redhat.com>
4706         PR debug/13841
4707         * function.c (instantiate_decl): Recurse for CONCAT.
4709 2004-10-13  David Edelsohn  <edelsohn@gnu.org>
4711         * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
4712         andi./andis.
4713         (anddi3): Same.
4714         (extzvdi_internal1): Add attribute "compare".
4715         (extzvdi_internal2): Same.
4717 2004-10-12  Tom Tromey  <tromey@redhat.com>
4719         * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
4721 2004-10-13  Dale Johannesen  <dalej@apple.com>
4723         * doc/extend.texi (Extended Asm):  Rewrite asm volatile description.
4725 2004-10-13  Frank Ch. Eigler  <fche@redhat.com>
4727         * toplev.c (compile_file): Call mudflap_finish_file from here ...
4728         * c-decl.c (c_write_global_declarations): ... instead of here ...
4729         * cp/decl.c (cp_finish_file): ... and here.
4730         * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
4732 2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
4734         * tree-ssa-dom.c (record_range): Free the element if we are not
4735         going to use it.
4737 2004-10-13  Tom Tromey  <tromey@redhat.com>
4739         PR java/15578:
4740         * gcc.c (option_map): Added --extdirs and --encoding.
4742 2004-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4744         PR target/14454
4745         * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
4746         sparc_can_output_mi_thunk.
4747         (sparc_output_mi_thunk): Simplify handling of delta offset.  Add
4748         handling of vcall offset.
4749         (sparc_can_output_mi_thunk): New predicate.
4750         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
4751         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
4752         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
4754         * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
4756         * config/sparc/sparc.md (movdi): Remove redundant test.
4758 2004-10-13  Paolo Bonzini  <bonzini@gnu.org>
4760         * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
4761         TDF_IPA from -fdump-tree-*-all.
4763 2004-10-13  Paul Brook  <paul@codesourcery.com>
4765         * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
4766         * config/arm/arm.c (thumb_find_work_register): Update comments.
4767         (arm_load_pic_register): Add argument for scratch register.
4768         (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
4769         * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
4771 2004-10-13  Kazu Hirata  <kazu@cs.umass.edu>
4773         * tree-data-ref.c: Fix comment typos.
4775 2004-10-13  Jakub Jelinek  <jakub@redhat.com>
4776             Zdenek Dvorak  <dvorakz@suse.cz>
4778         PR tree-optimization/17724
4779         * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
4781 2004-10-13  Dorit Naishlos  <dorit@il.ibm.com>
4783         * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
4784         (altivec_builtin_mask_for_store): Likewise.
4785         (altivec_init_builtins): Use lang_hooks.builtin_function to
4786         create the decls for builtin_altivec_mask_for_load/store.
4788 2004-10-13  Nick Clifton  <nickc@redhat.com>
4790         * config/c4x/c4x.c: Remove inclusion of loop.h.
4792 2004-10-12  Ben Elliston  <bje@au.ibm.com>
4794         * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
4795         (ei_container): New; renamed.
4796         (ei_start, ei_last): New macros.
4797         (ei_start_1, ei_last_1): Renamed from ei_start.
4798         (ei_last_1, ei_end_p): Use ei_container() where applicable.
4799         (ei_one_before_end_p, ei_next, ei_edge): Likewise.
4800         * gcse.c (remove_reachable_equiv_notes): Use ei_container().
4802 2004-10-11  Sebastian Pop  <pop@cri.ensmp.fr>
4804         * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
4805         * cfgloop.c (initialize_loops_parallel_p): New.
4806         (flow_loops_find): Initialize the parallel_p field to true for all
4807         the loops.
4808         * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
4809         (estimate_numbers_of_iterations_loop): Infers the loop bounds from
4810         the size of the data accessed in the loop.
4811         (struct nb_iter_bound): Moved...
4812         * cfgloop.h (struct nb_iter_bound): ... here.
4813         (estimated_nb_iterations, parallel_p): New fields in struct loop.
4814         (record_estimate): Declare extern here.
4815         * tree-chrec.c: Fix comments.
4816         (nb_vars_in_chrec): New function.
4817         * tree-chrec.h (nb_vars_in_chrec): Declared here.
4818         * tree-data-ref.c: Don't include lambda.h, that is already included
4819         in tree-data-ref.h.
4820         (tree_fold_divides_p): Don't check for integer_onep.
4821         (tree_fold_bezout): Removed.
4822         (gcd): New static duplicated function.
4823         (int_divides_p, dump_subscript): New.
4824         (dump_data_dependence_relation): Use dump_subscript.
4825         (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
4826         estimate_niter_from_size_of_data): New.
4827         (analyze_array_indexes, analyze_array): Call
4828         estimate_niter_from_size_of_data during the detection of array
4829         references.  Pass in a pointer to the statement that contains the
4830         array reference.
4831         (all_chrecs_equal_p): New.
4832         (compute_distance_vector): Renamed compute_subscript_distance.
4833         Deal with multivariate conflict functions.
4834         (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
4835         DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
4836         (non_affine_dependence_relation): New.
4837         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
4838         analyze_siv_subscript, analyze_miv_subscript,
4839         analyze_overlapping_iterations, subscript_dependence_tester):
4840         Initialize and return last_conflicts function.
4841         (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
4842         compute_overlap_steps_for_affine_1_2): New.
4843         (analyze_siv_subscript_affine_cst): Removed.
4844         (analyze_subscript_affine_affine): Disprove dependences based on the
4845         iteration domains.  Solve the univariate dependence case as before,
4846         but use lambda_matrix_right_hermite instead of tree_fold_bezout.
4847         Implement the multivariate case of 2 versus 1 variables.
4848         (build_classic_dist_vector, build_classic_dir_vector): Implement some
4849         unhandled cases.
4850         (find_data_references_in_loop): Compute and initialize
4851         loop->estimated_nb_iterations and loop->parallel_p.
4852         (analyze_all_data_dependences): Modify the debug dump order.
4853         * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
4854         subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
4855         (SUB_LAST_CONFLICT, subscript->last_conflict,
4856         data_dependence_relation->affine_p, data_dependence_relation->size_vect,
4857         DDR_AFFINE_P, DDR_SIZE_VECT): New.
4858         (find_data_references_in_loop, initialize_data_dependence_relation,
4859         dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
4861 2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>
4863         * configure: Regenerate.
4865 2004-10-12  Fariborz Jahanian <fjahanian@apple.com>
4867         PR 17892
4868         * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
4869         (simplify_rhs_and_lookup_avail_expr): Disallow associativity
4870         and constant folding of floating point MULT_EXPR/PLUS_EXPR
4871         expressions.
4873 2004-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
4875         * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
4876         (s390_gimplify_va_arg): Likewise.
4878 2004-10-12  Daniel Jacobowitz  <dan@debian.org>
4880         * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
4881         (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
4882         (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
4883         * regclass.c (record_address_regs): Remove ifdef.  Use
4884         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
4885         * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
4886         definition.
4887         (scan_rtx_address, replace_oldest_value_addr): Use
4888         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
4889         * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
4890         unnecessary definitions.
4891         (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
4892         and MODE_BASE_REG_REG_CLASS.
4893         * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
4894         (MODE_BASE_REG_REG_CLASS): Define.
4895         (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
4896         (REG_MODE_OK_FOR_REG_BASE_P): Define.
4897         * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
4898         REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
4900 2004-10-12  Daniel Berlin <dberlin@dberlin.org>
4902         * tree-ssa-alias.c (verify_name_tags): New function.
4903         (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
4904         (verify_alias_info): Call verify_name_tags.
4906 2004-10-12  Kazu Hirata  <kazu@cs.umass.edu>
4908         PR rtl-optimization/17931
4909         * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
4910         ZERO_EXTRACT in it.
4912 2004-10-12  Richard Earnshaw  <rearnsha@arm.com>
4914         * arm.c (arm_print_operand): Use output_operand_lossage where possible
4915         rather than aborting.
4917 2004-10-12  Paul Brook  <paul@coudesourcery.com>
4919         * config.gcc: Add armv6{k,z,zk}
4920         * config/arm/arm-cores.def: Add arm1176 and mpcore.
4921         * config/arm/tune.md: Regenerate.
4922         * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
4923         Define.
4924         (all_architectures): Add armv6k, armv6z, armv6zk.
4925         * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
4926         * doc/invoke.texi: Document new arch and cpu values.
4928 2004-10-12  Paul Brook  <paul@coodesourcery.com>
4930         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
4931         meabi=4.
4933 2004-10-12  Paul Brook  <paul@codesourcery.com>
4935         * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
4936         Handle negative constants.
4938 2004-10-12  Joseph S. Myers  <jsm@polyomino.org.uk>
4940         PR c/17301
4941         * c-typeck.c (convert_arguments): Return error_mark_node if there
4942         are too few arguments.
4943         (build_function_call): Handle error_mark_node return from
4944         convert_arguments.
4946 2004-10-06  Paolo Bonzini  <bonzini@gnu.org>
4948         * configure.ac (symbolic_link): Replace with $LN_S.
4949         (Assembler/Linker): Hard link from gas and binutils trees.
4950         * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
4951         * configure: Regenerate.
4953 2004-10-12  Paul Brook  <paul@codesourcery.com>
4955         * configure.ac: Don't look for host assembler when building a canadian
4956         cross.
4957         * configure: Regenerate.
4959 2004-10-11  Roger Sayle  <roger@eyesopen.com>
4961         PR other/17361
4962         * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
4963         (c_common_init_options): Remove #ifdef CL_F77 code.  Scan command
4964         line options for "-lang-asm" and if found allow any of the C-family
4965         front-end options.
4966         (c_common_handle_option): Remove last use of permit_fortran_options.
4968 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
4970         * config/s390/s390.c (print_operand): Support 'S' format flag.
4971         * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
4972         ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
4973         ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
4974         ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
4975         ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
4976         ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
4977         ("*movstricthi"): Likewise.
4978         ("*load_multiple_di", "*load_multiple_si"): Likewise.
4979         ("*store_multiple_di", "*store_multiple_si"): Likewise.
4980         ("*sethiqisi", "*sethihisi"): Likewise.
4981         ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
4982         ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
4983         ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
4984         ("*xorqi3", "*xc", "*xc_zero"): Likewise.
4985         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
4987         ("*tmhi_full"): Fix incorrect op_type attribute.
4989         ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
4990         ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
4991         ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
4992         ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
4994 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu
4996         PR middle-end/16266
4997         * function.c (temp_slots_at_level): Fix typo which creates too
4998         many temp stack slots levels.
5000 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
5002         * config/s390/s390.c (s390_trampoline_template): Generate shorter
5003         trampoline code.
5004         (s390_trampoline_instantiate): Adapt.
5005         * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
5007 2004-10-11  Roger Sayle  <roger@eyesopen.com>
5009         PR middle-end/17657
5010         * stmt.c (add_case_node): Add additional type argument.  Declare
5011         as static to match prototype.  Convert the upper and lower bounds
5012         to the specified index type.  Optimize away case ranges/values
5013         that are outside the index type's bounds.  Truncate case ranges
5014         that span the index type's bounds.
5015         (expand_case): Avoid unnessary computation and memory allocation
5016         when index type is error_mark_node.  Pass index_type as required
5017         by change to add_case_node API.  No need to convert case range
5018         bounds to index_type, this is now done by add_case_node.
5020 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
5022         * config/s390/s390-protos.h (s390_offset_p): Add prototype.
5023         * config/s390/s390.c (s390_offset_p): New function.
5024         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
5025         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
5026         transform Q->Q alternatives to *clc pattern.
5027         ("*clc"): Move.
5028         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
5029         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
5030         to transform Q->Q alternatives to *mvc pattern.
5031         ("*mvc"): Move.  Add peephole to merge adjacent MVCs.
5032         ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
5033         "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
5034         transform Q->Q alternatives to *nc pattern.
5035         ("*nc"): New insn.  New peephole to merge adjacent NCs.
5036         ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
5037         "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
5038         transform Q->Q alternatives to *oc pattern.
5039         ("*oc"): New insn.  New peephole to merge adjacent OCs.
5040         ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
5041         transform Q->Q alternatives to *xc pattern.
5042         ("*xc"): New insn.  New peephole to merge adjacent XCs.
5043         ("*xc_zero"): Move.  Add peephole to merge adjacent XCs.
5045 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
5047         * gimplify.c (gimple_push_condition): Make sure that we don't
5048         have any saved condition cleanup if we were at the top level.
5050 2004-10-11  Richard Sandiford  <rsandifo@redhat.com>
5052         * config/frv/frv.md (*adddi3_internal): Change name to...
5053         (adddi3): ...replacing the exisiting define_expand.  Combine
5054         alternatives.  Fix the range of the constant constraints ('J' instead
5055         of 'NOP').  Remove bogus operands[2] check.  Use simplify_gen_subreg
5056         to extract the lower and upper halves of the DImode operands.
5057         Always use addi3_lower and adddi3_upper, not the subdi3 forms.
5058         (adddi3_lower): Fix the range of the constant constraints and
5059         remove the bogus operands[2] check.
5060         (adddi3_upper): Use gpr_or_int10_operand as the predicate for
5061         operand 2.  Use addxi to handle constant operands.
5062         (subdi3_lower, subdi3_upper): Don't handle constant operands.
5064 2004-10-11  Nathan Sidwell  <nathan@codesourcery.com>
5066         * gengtype-lex.l: Add commented } & ) characters to unconfuse
5067         editor's paren matching. Allow #define inside a struct.
5069 2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
5071         PR middle-end/17703
5072         part of PR c++/17657
5073         * fold-const.c (fold_build_cleanup_point_expr): New function.
5074         * tree.h (fold_build_cleanup_point_expr): Prototype.
5076 2004-10-10  Eric Christopher  <echristo@redhat.com>
5078         * dwarf2out.c: Move attribute to subprogram declaration
5079         instead of subroutine type.
5081 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
5083         * basic-block.h: Remove the prototypes for can_hoist_insn_p,
5084         hoist_insn_after, and hoist_insn_to_edge.
5085         * rtl.h: Remove the prototypes for reg_referenced_between_p,
5086         no_jumps_between_p, and insn_dependent_p.
5087         * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
5088         insn_dependent_p, insn_dependent_p_1, hoist_test_store,
5089         can_hoist_insn_p, hoist_update_store, hoist_insn_after,
5090         hoist_insn_to_edge): Remove.
5092 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
5094         PR c/17881
5095         * c-decl.c (grokparms): Don't warn for parameters of incomplete
5096         type in declarations that are not definitions except for the case
5097         of parameters of void type.
5099 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
5101         * tree-cfg.c: Fix comment typos.
5103 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
5105         PR c/17301
5106         * builtins.c (expand_builtin_va_start): Check for too few
5107         arguments to va_start.
5109 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
5111         PR c/17189
5112         * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
5113         fields a pedwarn.  Pedwarn here for unnamed structs/unions if
5114         pedantic.
5115         * c-parse.in (component_decl): Don't pedwarn here for unnamed
5116         fields.
5118 2004-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
5120         PR tree-optimization/17906
5121         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
5122         copy non-gimple reg arguments.
5124 2004-10-09  Roger Sayle  <roger@eyesopen.com>
5126         PR rtl-optimization/17853
5127         * simplify-rtx.c (simplify_relational_operation): Correct comment.
5128         Reorganize handling of comparison operations with floating point
5129         results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
5130         Likewise, introduce support for comparison operations with vector
5131         result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
5133         * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
5134         * doc/tm.texi: Likewise.
5136 2004-10-09  Steven Bosscher  <stevenb@suse.de>
5138         * regs.h (struct reg_info_def): Remove the last_node_uid and
5139         changes_mode fields.
5140         (REGNO_LAST_NOTE_UID): Don't define.
5141         * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
5142         * regmove.c (copy_src_to_dest): Likewise.
5144 2004-10-09  Roger Sayle  <roger@eyesopen.com>
5146         PR middle-end/17894
5147         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
5148         relational comparison operator op needs to be swapped/reversed when
5149         C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.
5151 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
5153         PR tree-opt/17902
5154         * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
5155         instead of bsi_start.
5156         (value_replacement): Likewise.
5157         (abs_replacement): Likewise
5159 2004-10-09  Steven Bosscher  <stevenb@suse.de>
5161         * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
5162         (expand_gimple_cond_expr, expand_gimple_tailcall,
5163         expand_gimple_basic_block): Use it to dump RTL for each stmt.
5164         (tree_expand_cfg): Announce full RTL function dump.
5165         * tree-optimize.c (execute_one_pass): Use normal RTL printing,
5166         not the graph version.
5167         * tree-pretty-print.c (dump_generic_node): Allow empty statements
5168         in the arms of a COND_EXPR for lowered nodes.
5170 2004-10-08  Joseph S. Myers  <joseph@codesourcery.com>
5172         * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
5173         atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
5174         strtoufix16, strtoufix32, strtoufix64): Declare.
5176 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
5178         * c-lex.c (interpret_float): Give a pedwarn rather than a warning
5179         for an out-of-range floating point constant.
5180         * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
5181         warning if the target format does not support infinities.
5183 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
5185         * emit-rtl.c (last_label_num, base_label_num): Remove.
5186         (max_label_num): Always return label_num.
5187         (set_new_last_label_num, restore_emit_status): Remove.
5188         (init_emit): Don't initialize last_label_num.
5189         * function.c (pop_function_context_from): Don't call
5190         restore_emit_status.
5191         * function.h: Remove the prototype for restore_emit_status.
5192         * rtl.h: Remove the prototype for set_new_last_label_num.
5194 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
5196         * stmt.c (expand_decl_init): Remove.
5197         * tree.h: Remove the corresponding prototype.
5199 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
5201         * integrate.c (try_constants, subst_constants, mark_stores):
5202         Remove.
5203         * integrate.h: Remove the prototype for try_constants.
5205 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
5207         * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
5208         (convert_for_assignment): Handle ic_argpass_nonproto.  Add
5209         comments about its relevance to errors.
5210         (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
5212 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
5214         PR c/16999
5215         * c-ppoutput.c (cb_ident): Don't quote string as it is already
5216         quoted.
5218 2004-10-08  Diego Novillo  <dnovillo@redhat.com>
5220         * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
5221         reference_node_pool.
5223 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
5225         * tree-cfg.c: Fix a comment typo.
5227 2004-10-08  Andreas Krebbel  <krebbel1@de.ibm.com>
5229         * config/s390/s390.c (s390_register_info): Don't save fprs for
5230         -msoft-float.
5231         (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
5233 2004-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
5235         * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
5236         (TARGET_DEFAULT): Use symbolic values.
5237         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
5238         (TARGET_DEFAULT): Use symbolic values.
5239         * config/s390/s390.c (s390_backchain_string): Initialize to
5240         TARGET_DEFAULT_BACKCHAIN.
5242 2004-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5244         * builtins.c (expand_builtin_mempcpy): Move tree handling code to
5245         fold_builtin_mempcpy.  Accept a type parameter.  Delete duplicate
5246         code.
5247         (expand_builtin_strcat): Accept a type parameter.
5248         (fold_builtin_mempcpy): Accept a type and endp parameter.
5250         * builtins.c (expand_builtin_strncpy): Delete duplicate code.
5251         Accept an `exp' instead of an `arglist'.
5253 2004-10-08  Nathan Sidwell  <nathan@codesourcery.com>
5255         * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
5256         reverting my 2004-09-07 patch to use build_int_cst.
5258 2004-10-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
5260         PR target/17245
5261         * config/sparc/sparc.c (input_operand): Remove redundant code
5262         for handling LO_SUM.
5263         (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
5264         <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
5265         Otherwise only accept it for TFmode if quad move insns are available.
5267 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
5269         * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
5270         common cases will be caught earlier than others.
5272 2004-10-08  Michael Matz  <matz@suse.de>
5274         * loop-doloop.c (doloop_optimize): Extend count.
5276 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5278         * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
5279         (prefetch): Convert to expander.
5281 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5283         * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
5284         first argument of CALL.
5285         (tls_local_dynamic): Likewise.
5287 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
5289         * c-typeck.c (enum impl_conv): New.
5290         (convert_for_assignment): Use it.  Take tree for function called
5291         instead of its name.  Handle ObjC selectors for diagnostics at
5292         start of function.  Select diagnostic text within the function
5293         using full sentences for diagnsotics.  Use %qE to name functions
5294         in diagnostics.
5295         (convert_arguments, build_modify_expr,
5296         c_convert_parm_for_inlining, digest_init, c_finish_return): Update
5297         callers to convert_for_assignment.
5298         (warn_for_assignment): Remove.
5300 2004-10-08  Nick Clifton  <nickc@redhat.com>
5302         * config/sh/symbian.c (symbian_possibly_export_base_class):
5303         Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
5304         TYPE_CONTAINS_VPTR_P.
5306 2004-10-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5308         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
5309         fixed registers form all_used_regs. Update call_really_used_regs.
5310         (CALL_REALLY_USED_REGISTERS): Define.
5311         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
5312         with call_really_used_regs.
5314 2004-10-08  Alan Modra  <amodra@bigpond.net.au>
5316         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
5317         for -profile as well as -p and -pg.
5319 2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>
5321         * libgcc2.c (__moddi3): Cast &w to UDWtype*.
5323 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
5325         * tree-cfg.c (tree_block_forwards_to): Remove.
5326         * tree-flow.h: Remove the corresponding prototype.
5328 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
5330         * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
5331         for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
5333 2004-10-07  Geoffrey Keating  <geoffk@apple.com>
5335         Radar 3813796
5336         * config/rs6000/rs6000.c (rs6000_generate_compare): When
5337         flag_trapping_math is in effect, don't generate subtract
5338         instructions.
5340 2004-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
5342         * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
5343         * config/s390/s390.c (s390_narrow_logical_operator): New function.
5344         (s390_extra_constraint_str): Add 'A' constraints.
5345         (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
5346         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
5347         (CONSTRAINT_LEN): Likewise.
5348         * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
5349         ("*andsi3_zarch", "*andsi3_esa"): Likewise.
5350         ("*andhi3_zarch", "*andhi3_esa"): Likewise.
5351         ("*iordi3"): Add OI alternative and splitter.
5352         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
5353         ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
5354         ("*xordi3"): Add XI alternative and splitter.
5355         ("*xorsi3", "*xorhi3"): Likewise.
5357 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
5359         * config/mips/mips.c (mips_function_rodata_section): New function.
5360         (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
5362 2004-10-07  Devang Patel  <dpatel@apple.com>
5364         * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
5365         UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
5366         UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
5367         UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
5368         UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
5369         UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
5370         UNSPEC_VCONDU_V16QI): New constant defines.
5371         (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
5372         vconduv16qi): New patterns.
5373         * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
5374         * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
5375         (get_vec_cmp_insn): Same.
5376         (get_vsel_insn): Same.
5377         (rs6000_emit_vector_compare): Same.
5378         (rs6000_emit_vector_select): Same.
5379         (INSN_NOT_AVAILABLE): New.
5381 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
5383         PR tree-optimization/17749
5384         * tree-tailcall.c (find_tail_calls): Check that parameter is
5385         a gimple_reg.
5387 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
5389         * config/ia64/ia64.c: Fix a comment typo.
5391 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5393         * doc/install.texi (*-*-solaris2*): Fix marker for URL.
5395 2004-10-07  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
5397         PR c++/17115
5398         * tree-inline.c (expand_call_inline): Do not warn for functions
5399         marked with attribute noinline.
5401 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5403         PR target/17862
5404         * config/sparc/sparc.c (sparc_output_mi_thunk): Set
5405         current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
5407         * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
5408         of 0 as 4th argument to pass_by_reference.
5409         Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
5411 2004-10-06  Eric Christopher  <echristo@redhat.com>
5413         * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
5414         attribute.
5416 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
5418         PR target/17770
5419         * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
5421 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
5423         PR rtl-optimization/17791
5424         * loop-doloop.c (doloop_modify): Take number of iterations as
5425         argument.
5426         (doloop_optimize): Extend or shorten the number of iterations
5427         when changing mode of counter register.
5428         * loop-iv.c (lowpart_subreg): Export.
5429         * rtl.h (lowpart_subreg): Declare.
5431 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
5433         PR tree-optimization/17806
5434         * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
5435         * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
5436         flags moved to split_edge.
5438 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5440         PR middle-end/17835
5441         * expmed.c (expand_sdiv_pow2): Force a stack adjustment
5442         before tentatively building the conditional move sequence.
5444 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
5446         PR target/16815
5447         * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
5448         check.
5449         * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
5450         function_arg_padding.
5452 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
5454         PR bootstrap/17857
5455         * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
5457 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
5459         * hooks.c (hook_int_void_1, hook_void_int): Remove.
5460         * hooks.h: Remove the corresponding prototypes.
5462 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
5464         PR middle-end/17849
5465         * tree-nested.c (walk_stmt_info): Add changed field.
5466         (convert_nonlocal_reference): Set changed to when we
5467         change a decl to unnested decl.
5468         <case ADDR_EXPR>: Instead of checking if the immediate part
5469         of the ADDR_EXPR changed, check the field changed.
5470         Use recompute_tree_invarant_for_addr_expr instead of unsetting
5471         TREE_INVARIANT.
5472         (convert_local_reference):  Set changed to when we
5473         change a decl to unnested decl.
5474         <case ADDR_EXPR>: Instead of checking if the immediate part
5475         of the ADDR_EXPR changed, check the field changed.
5476         Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
5478 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
5480         * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
5481         * dwarf2out.c (dwarf2out_init): Remove references to
5482         DWARF2_GENERATE_TEXT_SECTION_LABEL.
5483         * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
5484         * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
5486 2004-10-06  Joseph S. Myers  <jsm@polyomino.org.uk>
5488         * c-typeck.c (convert_arguments): Take expression for called
5489         function rather than its name.  Handle ObjC selectors directly
5490         rather than relying on warn_for_assignment to do so.  Call warning
5491         directly rather than warn_for_assignment.  Use %qE in diagnostics.
5492         Say "argument" rather than "arg" in diagnostics.
5493         (build_function_call): Update call to convert_arguments.
5495 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
5497         PR debug/17787
5498         * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
5499         ENUMs specially instead of just saying we do.
5501 2004-10-06  Eric Christopher  <echristo@redhat.com>
5503         * dwarf2.h: Sync with include/elf/dwarf2.h
5505 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
5507         * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
5508         and TREE_VEC nodes.
5510 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
5512         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
5513         to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
5515 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
5517         * lambda-code.c (compute_nest_using_fourier_motzkin): New
5518         function.
5519         (lambda_compute_auxillary_space): Split from here.
5521 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
5523         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
5524         * tree-flow.h: Add prototype.
5525         * lambda-code.c (invariant_in_loop_and_outer_loops): Use
5526         expr_invariant_in_loop.
5528 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
5530         * tree-cfg.c (thread_jumps): Remove a duplicate check for
5531         EXIT_BLOCK_PTR.
5533 2004-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
5535         * config/s390/s390-protos.h (s_imm_operand): Remove.
5536         (s390_pool_operand): Add prototype.
5537         * config/s390/s390.c (general_s_operand): Remove.
5538         (s_imm_operand): Remove.
5539         (s_operand): Merge contents of general_s_operand.
5540         (s390_pool_operand): New function.
5541         * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
5542         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
5543         ("*cmpdi_ccu"): Merge Q->Q alternative.
5544         ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
5545         ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
5546         ("*cli"): Remove.
5547         ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
5548         ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
5549         ("*movstricthi"): Use memory_operand instead of s_imm_operand.
5551 2004-10-06  Steve Ellcey  <sje@cup.hp.com>
5553         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
5554         call ia64_function_arg_boundary.
5555         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
5556         * config/ia64/ia64.c (ia64_function_arg_boundary): New.
5557         (ia64_function_arg_advance): Do not put 128 bit floats into
5558         FP registers.
5560 2004-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5562         * builtins.c (expand_builtin_strcpy): Delete duplicate code.
5563         Accept an expression instead of an arglist.
5564         (expand_builtin_stpcpy): Accept an expression instead of an
5565         arglist.
5567 2004-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
5569         PR target/16007
5570         * doc/install.texi (*-*-solaris2*): Mention potential problem
5571         with Sun assembler + GNU linker and C++ programs.
5572         Document status of binutils 2.15 release.
5574 2004-10-06  Jan Hubicka  <jh@suse.cz>
5576         * cse.c (cse_main): Kill push/pop context.
5578 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
5580         * pretty-print.c: Include tree.h.
5581         (pp_base_prepare_to_format): New function, logic from
5582         text_specifies_location.
5583         (pp_base_format_text): Use gcc_assert.
5584         * pretty-print.h (pp_prepare_to_format): New macro.
5585         (pp_base_prepare_to_format): Prototype.
5586         * diagnostic.c (text_specifies_location): Delete.
5587         (bug_report_request): Delete.
5588         (diagnostic_set_info): Don't call text_specifies_location.
5589         (diagnostic_action_after_output): Put text from
5590         bug_report_request inline here.  Use gcc_unreachable.
5591         (diagnostic_report_current_function): Fix comment.
5592         (diagnostic_report_diagnostic): Clarify logic for error recursion.
5593         Call pp_prepare_to_format before diagnostic_starter.
5594         (trim_filename): Use IS_DIR_SEPARATOR.
5595         (fatal_error, internal_error): Use gcc_unreachable.
5596         (error_recursion): Call diagnostic_action_after_output to
5597         issue the bug_report_request message and exit.
5598         * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
5600         * c-parse.in: Add list of diagnostic messages to insulate
5601         translation template from version of yacc/bison used to
5602         compile the grammar.
5604 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
5606         PR 16406
5607         * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
5609 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5611         * basic-block.h: Remove the prototype for
5612         flow_preorder_transversal_compute.
5613         * cfganal.c (dfst_node): Remove.
5614         (flow_preorder_transversal_compute): Likewise.
5615         * rtl.h: Remove the prototype for get_jump_table_offset.
5616         * rtlanal.c (get_jump_table_offset): Remove.
5618 2004-10-05  Richard Henderson  <rth@redhat.com>
5620         PR 17756
5621         * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
5623 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
5625         PR bootstrap/17817
5626         * Makefile.in: Stage the build directory too.
5628 2004-10-05  Aldy Hernandez  <aldyh@redhat.com>
5630         * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
5632         * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
5633         (frv_emit_move): Same.
5635         * config/frv/frv.c (frv_emit_move): New.
5636         (frv_legitimize_address): New.
5638         * config/frv/frv.md ("movsi"): Call frv_emit_move.
5639         ("movqi"): Same.
5640         ("movhi"): Same.
5641         ("movdi"): Same.
5642         ("movsf"): Same.
5643         ("movdf"): Same.
5645 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
5647         * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
5648         system headers.
5650 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
5652         * c-decl.c (pushdecl): When an extern declaration at block scope
5653         refers to a visible entity with internal linkage, use the old DECL
5654         rather than the new one.
5656 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5658         * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
5659         comments.
5661 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5663         * tree-cfg.c (thread_jumps): Remove a duplicate check for
5664         an infinite loop.
5666 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5668         * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
5669         of FOR_BB_BETWEEN.  Remove a useless check for unreachable
5670         blocks.
5672 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5674         * tree-cfg.c (cleanup_tree_cfg): Don't call
5675         delete_unreachable_blosk() after thread_jumps().
5676         (thread_jumps): Always remove basic blocks as they become
5677         unreachable.
5679 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5681         * tree-cfg.c (cleanup_tree_cfg): Remove variable
5682         something_changed.  Simplify the while loop.
5684 2004-10-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5686         * builtins.c (expand_builtin_memmove): Delete duplicate code
5687         and accept a tree type for the result.
5688         (expand_builtin_bcopy): Accept a tree type for the result.
5689         (fold_builtin_memmove): Accept an arglist and tree type for
5690         the result.
5692 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
5694         * config/s390/s390.c (s390_dump_pool): Remove return value.
5695         Use gen_pool_align, gen_pool_section_start/end instead of
5696         gen_pool_start/end_31/64.
5697         * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
5698         (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
5699         ("pool_start_31", "pool_end_31"): Remove.
5700         ("pool_start_64", "pool_end_64"): Likewise.
5701         ("pool_align", "pool_section_start", "pool_section_end": New insns.
5703         * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
5704         (TARGET_CANNOT_COPY_INSN_P): Define.
5705         (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
5706         (struct constant_pool): New member 'execute'.
5707         (s390_add_execute, s390_find_execute): New functions.
5708         (s390_execute_label, s390_execute_target): Likewise.
5709         (s390_dump_pool): Output in-pool execute target templates.
5710         (s390_dump_execute): New function.
5711         (s390_alloc_pool, s390_free_pool): Handle execute templates.
5712         (s390_mainpool_start, s390_mainpool_finish): Likewise.
5713         (s390_chunkify_start, s390_chunkify_finish): Likewise.
5714         * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
5715         ("*execute"): New insn pattern.
5716         ("movmem_short", "*movmem_short"): Use splitters to generate
5717         explicit execute pattern, remove embedded execute.
5718         ("clrmem_short", "*clrmem_short"): Likewise.
5719         ("cmpmem_short", "*cmpmem_short"): Likewise.
5721 2004-10-05  Daniel Berlin  <dberlin@dberlin.org>
5723         * tree-ssa.c (verify_ssa): Verify phi arguments only
5724         contain renamed names.
5726 2004-10-05  Alan Modra  <amodra@bigpond.net.au>
5728         * config/rs6000/linux.h: Formatting, whitespace.
5729         * config/rs6000/linux64.h: Likewise.
5730         * config/rs6000/rs6000-protos.h: Likewise.
5731         * config/rs6000/rs6000.c: Likewise.
5732         (easy_vector_splat_const): Add fall thru comments.
5733         (output_vec_const_move): Likewise.
5735 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
5737         * Makefile.in: Update -Wno-error exceptions for move to build dir.
5739 2004-10-05  Chao-Ying Fu  <fu@mips.com>
5740             Richard Sandiford  <rsandifo@redhat.com>
5742         * doc/invoke.texi (-mpaired-single): Link to the new description of the
5743         built-in functions.  Document dependencies.
5744         (-mips3d): Add link here too.
5745         * doc/extend.texi (MIPS Paired-Single Support): New section.
5747 2004-10-04  Chao-ying Fu  <fu@mips.com>
5749         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
5751 2004-10-04  Diego Novillo  <dnovillo@redhat.com>
5753         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
5754         Initialize OPT_STATS to 0.
5756 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
5758         * tree-data-ref.c: Fix comment typos.
5760 2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>
5762         * tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
5763         the predicate cannot be computed, don't initialize the result to
5764         false.
5766 2004-10-01  Eric Christopher  <echristo@redhat.com>
5768         * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
5769         locally defined enum.
5770         * dwarf2out.c (add_calling_convention_attribute): Don't
5771         emit DW_CC_normal.
5773 2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
5775         PR c/17178, PR c/17820
5776         * c-decl.c (pop_scope): Do not warn about unused static
5777         variables as they warned in the middle-end.
5779 2004-10-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5781         * builtins.c (expand_builtin_memcpy): Delete duplicate code
5782         and make the first parameter the expression not the arglist.
5784 2004-10-03  Ulrich Weigand  <uweigand@de.ibm.com>
5786         * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
5787         as valid modes to expand address expressions.
5789 2004-10-03  Joseph S. Myers  <jsm@polyomino.org.uk>
5791         * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
5792         c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
5793         c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
5794         code formatting conventions.
5796 2004-10-03  Richard Sandiford  <rsandifo@redhat.com>
5798         * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
5800 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
5802         PR tree-optimization/16632
5803         * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
5804         fold (A & C) == D into 0, fold ~C.  Similarly, for the case
5805         where | is used instead of &.
5807 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
5809         * ginclude/stddef.h: Fix a comment typo.
5811 2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
5813         PR target/17443
5814         * config.gcc (i?86-*-solaris2*): Restore correct logic
5815         for --enable-threads option.
5816         (sparc64-*-solaris2*): Likewise.
5817         (sparc-*-solaris2*): Likewise.
5819 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
5821         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
5822         (OS_MISSING_POWERPC64): Move, and comment.
5823         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
5824         (OS_MISSING_POWERPC64): Move, and comment.
5826 2004-10-02  Ian Lance Taylor  <ian@wasabisystems.com>
5828         * arm.c (output_call_mem): Add missing \t.
5830 2004-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5832         * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
5833         expand_builtin_strncmp): Delete duplicate code.
5835 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
5837         * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
5838         take check-base and -limit arguments.
5839         (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
5840         check ranges for ARRAY_REF and COMPONENT_REF.
5841         (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
5842         instrumentation.
5844 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
5846         * c-objc-common.c (c_tree_printer): Correct description of %E.
5847         Don't fall through after printing an expression.
5849 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
5851         * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
5853 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
5855         * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
5856         delete_unrechable_blocks() only when necessary.
5858 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
5860         * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
5861         (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
5862         (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
5863         __gthread_recursive_mutex_unlock): New functions.
5865 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
5867         * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
5868         * config/s390/tpf-eh.c: Remove file.
5869         * config/s390/tpf-unwind.h: New file.
5870         * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
5871         (MD_UNWIND_SUPPORT): Define.
5873 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
5875         * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
5877 2004-10-01  Ulrich Weigand  <uweigand@de.ibm.com>
5879         * config/s390/s390-protos.h (s390_comparison): Add prototype.
5880         * config/s390/s390.c (s390_comparison): New function.
5881         (s390_branch_condition_mask): Return -1 for invalid comparisons.
5882         (s390_branch_condition_mnemonic): Assert valid comparison.
5883         * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
5884         * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
5885         "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
5886         s390_comparison instead of comparison_operator.
5888         * config/s390/s390.md (UNSPEC_CMPINT): New constant.
5889         ("cmpmemdi"): Remove.
5890         ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
5891         ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
5892         ("cmpint_si"): Rename to ...
5893         ("*cmpint_si"): ... this.  Use UNSPEC_CMPINT.
5894         ("cmpint_di", "*cmpint_di"): Likewise.
5895         * config/s390/s390.c (s390_canonicalize_comparison): Remove
5896         redundant UNSPEC_CMPINT conversions.
5897         (s390_expand_cmpmem): Adapt to cmpint pattern changes.
5899 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
5901         * collect2.c (COLLECT_PARSE_FLAG): Remove.
5902         (main): Remove a reference to COLLECT_PARSE_FLAG
5903         * system.h: Poison COLLECT_PARSE_FLAG.
5904         * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
5906 2004-10-01  Paul Brook  <paul@codesourcery.com>
5908         * config/arm/crti.asm: Give _init and _fini function type.
5910 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
5912         * common.opt (ftree-loop-ivcanon): Enable by default.
5913         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
5914         Enable complete loop unrolling.
5915         (canonicalize_induction_variables, tree_unroll_loops_completely):
5916         Reset scev info.
5918 2004-10-01  Paul Brook  <paul@codesourcery.com>
5920         * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
5921         not register number.
5922         (thumb_find_work_register): Search full register range.
5924 2004-10-01  Andrew Pinski  <pinskia@physics.uc.edu>
5926         PR tree-opt/17343
5927         * tree-cfg.c (group_case_labels): Get the label and not
5928         the case expr for the default case.
5929         When the label we looking at is the default, decrement the
5930         new_size.
5932 2004-10-01  Jan Hubicka  <jh@suse.cz>
5934         * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
5935         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
5936         * toplev.h (tree_rest_of_compilation): Update prototype.
5937         * tree-optimize.c (tree_rest_of_compilation):  Kill nested_p argument.
5939 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
5941         * tree-cfg.c (cleanup_tree_cfg): Pull a call to
5942         cleanup_control_flow() out of the while loop.
5944 2004-10-01  Paolo Bonzini  <bonzini@gnu.org>
5946         * tree-vectorizer.c (vectorizable_operation): Fail unless
5947         the mode for the vector type is indeed a vector mode.
5949 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
5951         * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
5952         chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
5953         of convert.
5954         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
5955         add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
5956         follow_ssa_edge_in_rhs): Ditto.
5957         * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
5958         (dump_iv): Dump base_object.
5959         (dump_use, dump_cand): Use dump_iv.
5960         (determine_base_object): New function.
5961         (alloc_iv): Initialize base_object field.
5962         (record_use): Clear the ssa_name field of iv.
5963         (get_computation_cost_at): Do not use difference of addresses of
5964         two different objects.
5965         (may_eliminate_iv): Do not require the loop to have just single exit.
5966         * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
5967         (nonzero_p): New function.
5968         (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
5969         tree_simplify_using_condition, simplify_using_initial_conditions,
5970         loop_niter_by_eval, find_loop_niter_by_eval,
5971         estimate_numbers_of_iterations_loop, compare_trees,
5972         upper_bound_in_type, lower_bound_in_type,
5973         can_count_iv_in_wider_type_bound): Use buildN instead of build.  Use
5974         fold_convert or build_int_cst_type instead of convert.  Use (non)zero_p
5975         instead of integer_(non)zerop.
5977 2004-10-01  Jakub Jelinek  <jakub@redhat.com>
5979         Revert
5980         2004-09-29  Jakub Jelinek  <jakub@redhat.com>
5982         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
5983         and TI_VA_LIST_FPR_COUNTER_FIELD.
5984         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
5985         * tree-pass.h (pass_stdarg): Add.
5986         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
5987         * tree-stdarg.c: New file.
5988         * Makefile.in (OBJS-common): Add tree-stdarg.o.
5989         (tree-stdarg.o): Add dependencies.
5990         * function.h (struct function): Add va_list_gpr_size and
5991         va_list_fpr_size fields.
5992         * function.c (allocate_struct_function): Initialize them.
5994         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
5995         va_list_{g,f}pr_counter_field.
5996         (ix86_setup_incoming_varargs): Don't do anything if reg_save
5997         area will not be used.  Only save registers that tree-stdarg.c
5998         detected they need saving.
5999         (ix86_va_start): Don't set up fields that won't be used.
6001         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
6002         va_list_{g,f}pr_counter_field.
6003         (setup_incoming_varargs): Don't do anything if reg_save
6004         area will not be used.  Only save registers that tree-stdarg.c
6005         detected they need saving.
6006         (rs6000_va_start): Don't set up fields that won't be used.
6008 2004-09-30  Eric Christopher  <echristo@redhat.com>
6010         * dwarf2.h (dwarf_calling_convention): Add enum for renesas
6011         sh abi.
6012         * dwarf2out.c (add_calling_convention_attribute): New function.
6013         (gen_subroutine_type_die): Use.
6014         * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
6015         * target.h (gcc_target): Add dwarf_calling_convention.
6016         * hooks.c (hook_int_tree_0): New function.
6017         * hooks.h: Prototype.
6018         * config/sh/sh.c: Include dwarf2.h.
6019         (sh_dwarf_calling_convention): New function.
6020         (TARGET_DWARF_CALLING_CONVENTION): Use.
6021         * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
6023 2004-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6025         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
6026         expand_builtin_strrchr, expand_builtin_strpbrk,
6027         expand_builtin_strncat, expand_builtin_strspn,
6028         expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
6029         code.
6031 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
6033         * config/s390/s390-protos.h (s390_expand_logical_operator): Add
6034         prototype.
6035         (s390_logical_operator_ok_p): Likewise.
6036         * config/s390/s390.c (s390_expand_logical_operator): New function.
6037         (s390_logical_operator_ok_p): Likewise.
6038         * config/s390/s390.md ("anddi3"): New expander.
6039         ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
6040         ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
6041         ("andsi3"): Use s390_expand_logical_operator.
6042         ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
6043         ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
6044         ("andhi3"): New expander.
6045         ("*andhi3_zarch", "*andhi3_esa"): New patterns.
6046         ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
6047         ("andqi3"): New expander.
6048         ("*andqi3_zarch", "*andqi3_esa"): New patterns.
6049         ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
6050         ("iordi3"): New expander.
6051         ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
6052         ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
6053         ("iorsi3"): Use s390_expand_logical_operator.
6054         ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
6055         ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
6056         ("iorhi3"): New expiorer.
6057         ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
6058         ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
6059         ("iorqi3"): New expiorer.
6060         ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
6061         ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
6062         ("xordi3"): New expander.
6063         ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
6064         ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
6065         ("xorsi3"): New expander.
6066         ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
6067         ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
6068         ("xorhi3"): New expander.
6069         ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
6070         ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
6071         ("xorqi3"): New expander.
6072         ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
6073         ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
6075 2004-09-30  Roger Sayle  <roger@eyesopen.com>
6077         * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
6078         (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
6079         machine mode as the result.
6081 2004-09-30  Ben Elliston  <bje@au.ibm.com>
6083         PR bootstrap/17761
6084         * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
6085         FOR_EACH_EDGE macros.
6087 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
6089         * c-tree.h (readonly_error): Remove.
6090         * c-typeck (enum lvalue_use): New.
6091         (lvalue_or_else, readonly_error): Use it.  All callers changed.
6092         (readonly_error): Make static.
6094 2004-09-30  Jan Hubicka  <jh@suse.cz>
6096         PR debug/13974
6097         * cfgrtl.c (try_redirect_by_replacing_jump,
6098         force_nonfallthru_and_redirect, commit_one_edge_insertion,
6099         cfg_layout_merge_blocks):  Do not attach any line number information
6100         to newly inserted instructions.
6101         * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
6102         emit_insn_*_noloc.
6103         (emit_*insn_before, emit_insn*_after): New.
6104         (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
6105         existing locators.
6106         * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
6107         (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
6109 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
6111         * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
6112         (s390_return_address_offset): Remove.
6113         (s390_can_eliminate): Add prototype.
6114         (s390_initial_elimination_offset): Add prototype.
6115         * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
6116         (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
6117         * config/s390/s390.c (s390_arg_frame_offset): Remove.
6118         (s390_return_address_offset): Remove.
6119         (s390_can_eliminate, s390_initial_elimination_offset): New functions.
6120         (struct machine_function): New member split_branches_pending_p.
6121         (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
6122         (s390_mainpool_finish): Likewise.  Clear base_reg if pool empty.
6123         (s390_optimize_prologue): Remove base_used argument.  Call
6124         s390_update_frame_layout instead of s390_register_info.  Handle
6125         prologue/epilogue insns that touch only RETURN_REGNUM.
6126         (s390_reorg): Remove base_used.  Clear split_branches_pending_p.
6127         (s390_register_info): Remove base_used and return_addr_used
6128         arguments, compute special register usage inline.  Return live
6129         register data to caller.
6130         (s390_frame_info): Remove arguments, do not call s390_register_info.
6131         (s390_init_frame_layout): New function.
6132         (s390_update_frame_layout): Likewise.
6133         (s390_emit_prologue): Call s390_update_frame_layout; some code
6134         move to there.  Do not emit pool placeholder insn if unnecessary.
6136 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
6138         * config/s390/s390.c (legitimate_reload_constant_p): Remove
6139         floating point constant workaround.
6140         (s390_secondary_input_reload_class): Handle PLUS reloads
6141         with too-large constant.
6142         (s390_expand_plus_operand): Likewise.
6143         * config/s390/s390.md ("movdi"): Do not call force_const_mem.
6144         ("movsi"): Likewise.  Also, remove workaround for non-general
6145         operands.
6146         ("movdf"): Do not call force_const_mem.
6147         ("movsf"): Likewise.  Merge expander with *movsf insn.
6148         ("*movsf"): Remove, merge with movsf expander.
6150 2004-09-30  Paul Brook  <paul@codesourcery.com>
6152         * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
6153         (ENDFILE_SPEC): Define.
6154         * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
6156 2004-09-30  Richard Henderson  <rth@redhat.com>
6158         * config/alpha/qrnnd.asm: Mark for noexecstack.
6160 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
6162         * protoize.c, tree-cfg.c: Fix comment typos.
6164 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
6166         PR c/17730
6167         * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
6169 2004-09-30  Diego Novillo  <dnovillo@redhat.com>
6171         * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
6172         expressions...
6173         (add_pointed_to_expr): ... here.
6174         Call add_pointed_to_expr for variables with DECL_INITIAL set.
6175         * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
6176         pointer variable, if set.
6178 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
6180         * config/sh/sh.c: Follow spelling conventions.
6182 2004-09-29  Richard Henderson  <rth@redhat.com>
6184         * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
6185         * doc/tm.texi (DWARF_ZERO_REG): New.
6187         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
6188         alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
6189         * config/alpha/alpha.h (DWARF_ZERO_REG): New.
6191 2004-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
6193         * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
6194         with a PLUS as source operand.
6195         (expand_movstr): Likewise.
6196         (expand_builtin_stpcpy): Likewise.
6198 2004-09-29  Richard Henderson  <rth@redhat.com>
6200         PR 17739
6201         * tree-gimple.c (is_gimple_reg): Reject hard registers.
6202         (is_gimple_asm_val): New.
6203         * tree-gimple.h (is_gimple_asm_val): Declare.
6204         * gimplify.c (gimplify_asm_expr): Use it.
6205         * tree-pretty-print.c (print_declaration): Dump hard regs.
6206         * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
6207         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
6208         * tree-ssa-pre.c (is_undefined_value): Likewise.
6209         * tree-ssa-copy.c (may_propagate_copy): Likewise.
6210         (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
6211         * tree-ssa.c (warn_uninit): Likewise.
6212         * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
6214 2004-09-29  Fariborz Jahanian <fjahanian@apple.com>
6216         * c-decl.c (merge_decls): Use comptype when comparing
6217         types to decide on DECL_SIZE save of olddecl.
6219 2004-09-29  Daniel Berlin  <dberlin@dberlin.org>
6221         * tree.h (INDIRECT_REF_P): New macro.
6222         * alias.c (get_alias_set): Use it
6223         (nonoverlapping_memrefs_p): Ditto.
6224         * emit-rtl.c (mem_expr_equal_p): Ditto.
6225         (set_mem_attributes_minus_bitpos): Ditto.
6226         (is_gimple_addressable): Ditto.
6227         (get_base_address): Ditto.
6228         * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
6229         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
6230         * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
6231         * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
6232         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
6233         (add_address_candidates): Ditto.
6234         (rewrite_address_base): Ditto.
6236 2004-09-30  Ben Elliston  <bje@au.ibm.com>
6238         * tree-flow.h (struct bb_ann_d): Remove num_preds member.
6239         * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
6240         (rewrite_ssa_into_ssa): Likewise.
6241         * tree-phinodes.c (create_phi_node): Access the number of
6242         predecessor edges using EDGE_COUNT() and not num_preds.
6244 2004-09-29  Joseph S. Myers  <jsm@polyomino.org.uk>
6246         PR c/7425
6247         * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
6249 2004-09-29  Eric Christopher  <echristo@redhat.com>
6251         * fold-const.c (tree_swap_operands_p): Remove duplicated code.
6253 2004-09-29  Hans-Peter Nilsson  <hp@axis.com>
6255         * config/cris/cris.md (moverside, movemside): With MEM, make sure
6256         the address is (plus reg mem).
6258 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
6260         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
6262 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
6264         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
6265         cascaded if ... else if with a switch.
6267 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
6269         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
6271 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
6273         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
6274         and TI_VA_LIST_FPR_COUNTER_FIELD.
6275         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
6276         * tree-pass.h (pass_stdarg): Add.
6277         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
6278         * tree-stdarg.c: New file.
6279         * Makefile.in (OBJS-common): Add tree-stdarg.o.
6280         (tree-stdarg.o): Add dependencies.
6281         * function.h (struct function): Add va_list_gpr_size and
6282         va_list_fpr_size fields.
6283         * function.c (allocate_struct_function): Initialize them.
6285         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
6286         va_list_{g,f}pr_counter_field.
6287         (ix86_setup_incoming_varargs): Don't do anything if reg_save
6288         area will not be used.  Only save registers that tree-stdarg.c
6289         detected they need saving.
6290         (ix86_va_start): Don't set up fields that won't be used.
6292         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
6293         va_list_{g,f}pr_counter_field.
6294         (setup_incoming_varargs): Don't do anything if reg_save
6295         area will not be used.  Only save registers that tree-stdarg.c
6296         detected they need saving.
6297         (rs6000_va_start): Don't set up fields that won't be used.
6299 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
6301         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
6302         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
6303         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
6304         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
6305         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
6306         ATTR_NONNULL_1_4): New.
6308 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
6310         PR tree-optimization/17697
6311         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
6312         cfg if needed.
6314 2004-09-28  Per Bothner  <per@bothner.com>
6316         * profile.c (branch_prob): Pass correct value to output_location,
6317         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
6319 2004-09-28  Richard Henderson  <rth@redhat.com>
6321         PR 15089
6322         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
6323         * tree-flow.h (may_propagate_copy_into_asm): Declare.
6324         * tree-ssa-ccp.c (replace_uses_in): Use it.
6325         * tree-ssa-dom.c (cprop_operand): Likewise.
6327 2004-09-28 Jeff Law  <law@redhat.com>
6329         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
6330         that no outgoing edges be left in the duplicate block.  Do no
6331         update information on outgoing edges or PHI nodes in target
6332         blocks here.
6333         (remove_ctrl_stmt_and_useless_edges): Renamed from
6334         remove_last_stmt_and_useless_edges.  Handle case where the
6335         block is empty or has no control statements.  Do not update edge
6336         flags here.
6337         (thread_block): Create a template block rather than copying the
6338         original block every time.  Create outgoing edges from the
6339         duplicate blocks and update PHIs at the target of the outgoing
6340         edges here.  Fix edge flags for the original block if necessary.
6341         * cfghooks (duplicate_block): No longer assert that the original
6342         block has incoming edges.
6344 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
6346         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
6347         Reg Vars to enforce register allocation with general constraints.
6348         (Explicit Reg Vars): Clarify relation to asm statements.
6349         (Local Reg Vars): Similar.
6351 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
6353         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
6354         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
6355         build_control_flow, new_edge): Remove.
6356         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
6357         (bitlst, bitlst_table_last, bitlst_table): Remove.
6358         (bblst): Store basic_block pointer instead of block index.
6359         (bblst_table): Likewise.
6360         (edgelst): Store edge pointer instead of edge index.
6361         (edgelst_table, edgelst_last): New variables.
6362         (extract_bitlst): Rename to ...
6363         (extract_edgelst): ... this.  Return edge pointers, not indices.
6364         (split_edges): Update call.
6365         (rgn_edges): Store edge pointers instead of indices.
6366         (edge_to_bit): Remove.
6367         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
6368         (SET_EDGE_TO_BIT): New macro.
6369         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
6370         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
6371         data structures instead of haifa_edge et al.  Use edge pointers
6372         instead of edge indices everywhere.
6373         (compute_dom_prob_ps): Use standard CFG data structures.  Account
6374         for exit edges.
6375         (compute_trg_info): Likewise.
6376         (propagate_deps): Likewise.
6377         (debug_candidate): Account for bblst data structure change.
6378         (check_live_1, update_live_1, is_pfree): Likewise.
6379         (IS_REACHABLE): Use standard CFG data structures.
6380         (init_ready_list): Update bblst_table/edgelst_table allocation.
6381         (schedule_region): Update alloc/cleanup code to data structure
6382         changes.  Use edge->aux to store per-region edge index.
6383         (init_regions): No longer call build_control_flow.  Do not
6384         create edge list any more.
6386 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
6388         * cse.c (cse_insn): Avoid creating direct non-local jumps.
6389         * combine.c (can_combine_p): Likewise.
6390         * local-alloc. (update_equiv_regs): Likewise.
6392 2004-09-28  Richard Henderson  <rth@redhat.com>
6394         PR 17531
6395         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
6396         Don't check VOIDmode here.  Force PLUS operands to common type.
6397         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
6398         Pmode if given a non pointer type.
6400 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6402         PR 17531
6403         * optabs.c (expand_binop): Force constants to the correct mode.
6405 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
6407         * config/s390/s390.c (s390_adjust_cost): Remove.
6408         (TARGET_SCHED_ADJUST_COST): Do not redefine.
6409         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
6410         * config/s390/s390.md ("main_pool"): Use "larl" type
6411         attribute if TARGET_CPU_ZARCH.
6413 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
6415         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
6416         variable.
6418 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
6420         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
6421         name to the pass.
6423 2004-09-28  Steven Bosscher  <stevenb@suse.de>
6425         * common.opt (flag_gcse_sm): Disable by default.
6426         (flag_gcse_las): Likewise.
6427         (flag_web): Likewise.  Create from this file.
6428         * flags.h: Remove flag_web declaration.
6429         * toplev.c (flag_web): Likewise.
6430         (process_options): Never set flag_web.
6432 2004-09-28  Steven Bosscher  <stevenb@suse.de>
6434         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
6435         * tree-ssa-propagate.c: Include vec.h.
6436         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
6437         instead of varrays.
6438         (cfg_blocks_add): Assert the block is not already in the worklist.
6439         Update uses of interesting_ssa_edges and varying_ssa_edges.
6440         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
6441         ssa_propagate): Likewise.
6443 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
6445         PR c/16409
6446         * c-decl.c (start_decl): Check for initializing incomplete array
6447         of VLAs.
6448         (build_compound_literal): Check for TYPE being error_mark_node.
6449         * c-parse.in (primary): Check for VLA compound literals.
6451 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
6453         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
6454         with --disable-checking.
6456 2004-09-28  Devang Patel  <dpatel@apple.com>
6458         * tree-pretty-print.c (dump_generic_node): Print vector types.
6460 2004-09-28  Nick Clifton  <nickc@redhat.com>
6462         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
6463         invocation of the function sh_init_cumulative_args.
6464         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
6465         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
6466         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
6467         * config/sh/sh.c (sh_init_cumulative_args): New function based
6468         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
6469         heuristic added to determine the setting of force_mem when a
6470         library function is being called.
6472 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
6474         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
6475         Skip constant arguments.
6477 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
6479         * tree-ssa-alias.c (create_name_tags): If PTR points to a
6480         volatile type, mark the tag volatile.
6481         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
6482         volatile.
6484 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
6486         * tree.def (vec_cond_expr): Fix. Change 'e'
6487         to tcc_expression.
6489 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
6491         * basic-block.h: Fix a comment typo.
6493 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
6495         * optabs.c, optabs.h: Fix comment typos.
6497 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
6499         * config/sparc/sparc.md (call_address_struct_value_sp32):
6500         Properly mask the immediate field of the 'unimp' instruction.
6501         (call_symbolic_struct_value_sp32): Likewise.
6503 2004-09-28  Ben Elliston  <bje@au.ibm.com>
6504             Steven Bosscher  <stevenb@suse.de>
6505             Andrew Pinski  <pinskia@physics.uc.edu>
6507         Merge from edge-vector-branch:
6508         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
6509         (struct edge_def): Remove pred_next, succ_next members.
6510         (struct basic_block_def): Remove pred, succ members.  Add preds
6511         and succs members of type VEC(edge).
6512         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
6513         (BRANCH_EDGE): Likewise.
6514         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
6515         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
6516         (edge_iterator): New.
6517         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
6518         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
6519         (FOR_EACH_EDGE): New.
6520         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
6521         where applicable.
6522         (rotate_loop): Likewise.
6523         (find_traces_1_route): Likewise.
6524         (bb_to_key): Likewise.
6525         (connect_traces): Likewise.
6526         (copy_bb_p): Likewise.
6527         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
6528         (add_labels_and_missing_jumps): Likewise.
6529         (fix_up_fall_thru_edges): Likewise.
6530         (find_jump_block): Likewise.
6531         (fix_crossing_conditional_branches): Likewise.
6532         (fix_crossing_unconditional_branches): Likewise.
6533         (add_reg_crossing_jump_notes): Likewise.
6534         * bt-load.c (augment_live_range): Likewise.
6535         * cfg.c (clear_edges): Likewise.
6536         (unchecked_make_edge): Likewise.
6537         (cached_make_edge): Likewise.
6538         (make_single_succ_edge): Likewise.
6539         (remove_edge): Likewise.
6540         (redirect_edge_succ_nodup): Likewise.
6541         (check_bb_profile): Likewise.
6542         (dump_flow_info): Likewise.
6543         (alloc_aux_for_edges): Likewise.
6544         (clear_aux_for_edges): Likewise.
6545         (dump_cfg_bb_info): Likewise.
6546         * cfganal.c (forwarder_block_p): Likewise.
6547         (can_fallthru): Likewise.
6548         (could_fall_through): Likewise.
6549         (mark_dfs_back_edges): Likewise.
6550         (set_edge_can_fallthru_flag): Likewise.
6551         (find_unreachable_blocks): Likewise.
6552         (create_edge_list): Likewise.
6553         (verify_edge_list): Likewise.
6554         (add_noreturn_fake_exit_edges): Likewise.
6555         (connect_infinite_loops_to_exit): Likewise.
6556         (flow_reverse_top_sort_order_compute): Likewise.
6557         (flow_depth_first_order_compute): Likewise.
6558         (flow_preorder_transversal_compute): Likewise.
6559         (flow_dfs_compute_reverse_execute): Likewise.
6560         (dfs_enumerate_from): Likewise.
6561         (compute_dominance_frontiers_1): Likewise.
6562         * cfgbuild.c (make_edges): Likewise.
6563         (compute_outgoing_frequencies): Likewise.
6564         (find_many_sub_basic_blocks): Likewise.
6565         (find_sub_basic_blocks): Likewise.
6566         * cfgcleanup.c (try_simplify_condjump): Likewise.
6567         (thread_jump): Likewise.
6568         (try_forward_edges): Likewise.
6569         (merge_blocks_move): Likewise.
6570         (outgoing_edges_match): Likewise.
6571         (try_crossjump_to_edge): Likewise.
6572         (try_crossjump_bb): Likewise.
6573         (try_optimize_cfg): Likewise.
6574         (merge_seq_blocks): Likewise.
6575         * cfgexpand.c (expand_gimple_tailcall): Likewise.
6576         (expand_gimple_basic_block): Likewise.
6577         (construct_init_block): Likewise.
6578         (construct_exit_block): Likewise.
6579         * cfghooks.c (verify_flow_info): Likewise.
6580         (dump_bb): Likewise.
6581         (delete_basic_block): Likewise.
6582         (split_edge): Likewise.
6583         (merge_blocks): Likewise.
6584         (make_forwarder_block): Likewise.
6585         (tidy_fallthru_edges): Likewise.
6586         (can_duplicate_block_p): Likewise.
6587         (duplicate_block): Likewise.
6588         * cfglayout.c (fixup_reorder_chain): Likewise.
6589         (fixup_fallthru_exit_predecessor): Likewise.
6590         (can_copy_bbs_p): Likewise.
6591         (copy_bbs): Likewise.
6592         * cfgloop.c (flow_loops_cfg_dump): Likewise.
6593         (flow_loop_entry_edges_find): Likewise.
6594         (flow_loop_exit_edges_find): Likewise.
6595         (flow_loop_nodes_find): Likewise.
6596         (mark_single_exit_loops): Likewise.
6597         (flow_loop_pre_header_scan): Likewise.
6598         (flow_loop_pre_header_find): Likewise.
6599         (update_latch_info): Likewise.
6600         (canonicalize_loop_headers): Likewise.
6601         (flow_loops_find): Likewise.
6602         (get_loop_body_in_bfs_order): Likewise.
6603         (get_loop_exit_edges): Likewise.
6604         (num_loop_branches): Likewise.
6605         (verify_loop_structure): Likewise.
6606         (loop_latch_edge): Likewise.
6607         (loop_preheader_edge): Likewise.
6608         * cfgloopanal.c (mark_irreducible_loops): Likewise.
6609         (expected_loop_iterations): Likewise.
6610         * cfgloopmanip.c (remove_bbs): Likewise.
6611         (fix_bb_placement): Likewise.
6612         (fix_irreducible_loops): Likewise.
6613         (remove_path): Likewise.
6614         (scale_bbs_frequencies): Likewise.
6615         (loopify): Likewise.
6616         (unloop): Likewise.
6617         (fix_loop_placement): Likewise.
6618         (loop_delete_branch_edge): Likewise.
6619         (duplicate_loop_to_header_edge): Likewise.
6620         (mfb_keep_just): Likewise.
6621         (create_preheader): Likewise.
6622         (force_single_succ_latches): Likewise.
6623         (loop_split_edge_with): Likewise.
6624         (create_loop_notes): Likewise.
6625         * cfgrtl.c (rtl_split_block): Likewise.
6626         (rtl_merge_blocks): Likewise.
6627         (rtl_can_merge_blocks): Likewise.
6628         (try_redirect_by_replacing_jump): Likewise.
6629         (force_nonfallthru_and_redirect): Likewise.
6630         (rtl_tidy_fallthru_edge): Likewise.
6631         (commit_one_edge_insertion): Likewise.
6632         (commit_edge_insertions): Likewise.
6633         (commit_edge_insertions_watch_calls): Likewise.
6634         (rtl_verify_flow_info_1): Likewise.
6635         (rtl_verify_flow_info): Likewise.
6636         (purge_dead_edges): Likewise.
6637         (cfg_layout_redirect_edge_and_branch): Likewise.
6638         (cfg_layout_can_merge_blocks_p): Likewise.
6639         (rtl_flow_call_edges_add): Likewise.
6640         * cse.c (cse_cc_succs): Likewise.
6641         * df.c (hybrid_search): Likewise.
6642         * dominance.c (calc_dfs_tree_nonrec): Likewise.
6643         (calc_dfs_tree): Likewise.
6644         (calc_idoms): Likewise.
6645         (recount_dominator): Likewise.
6646         * domwalk.c (walk_dominator_tree): Likewise.
6647         * except.c (emit_to_new_bb_before): Likewise.
6648         (connect_post_landing_pads): Likewise.
6649         (sjlj_emit_function_enter): Likewise.
6650         (sjlj_emit_function_exit): Likewise.
6651         (finish_eh_generation): Likewise.
6652         * final.c (compute_alignments): Likewise.
6653         * flow.c (calculate_global_regs_live): Likewise.
6654         (initialize_uninitialized_subregs): Likewise.
6655         (init_propagate_block_info): Likewise.
6656         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6657         * gcse.c (find_implicit_sets): Likewise.
6658         (bypass_block): Likewise.
6659         (bypass_conditional_jumps): Likewise.
6660         (compute_pre_data): Likewise.
6661         (insert_insn_end_bb): Likewise.
6662         (insert_store): Likewise.
6663         (remove_reachable_equiv_notes): Likewise.
6664         * global.c (global_conflicts): Likewise.
6665         (calculate_reg_pav): Likewise.
6666         * graph.c (print_rtl_graph_with_bb): Likewise.
6667         * ifcvt.c (mark_loop_exit_edges): Likewise.
6668         (merge_if_block): Likewise.
6669         (find_if_header): Likewise.
6670         (block_jumps_and_fallthru_p): Likewise.
6671         (find_if_block): Likewise.
6672         (find_cond_trap): Likewise.
6673         (block_has_only_trap): Likewise.
6674         (find_if_case1): Likewise.
6675         (find_if_case_2): Likewise.
6676         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
6677         (perfect_nestify): Likewise.
6678         * lcm.c (compute_antinout_edge): Likewise.
6679         (compute_laterin): Likewise.
6680         (compute_available): Likewise.
6681         (compute_nearerout): Likewise.
6682         * loop-doloop.c (doloop_modify): Likewise.
6683         * loop-init.c (loop_optimizer_init): Likewise.
6684         * loop-invariant.c (find_exits): Likewise.
6685         * loop-iv.c (simplify_using_initial_values): Likewise.
6686         (check_simple_exit): Likewise.
6687         (find_simple_exit): Likewise.
6688         * loop-unroll.c (peel_loop_completely): Likewise.
6689         (unroll_loop_constant_iterations): Likewise.
6690         (unroll_loop_runtime_iterations): Likewise.
6691         * loop-unswitch.c (may_unswitch_on): Likewise.
6692         (unswitch_loop): Likewise.
6693         * modulo-sched.c (generate_prolog_epilog): Likewise.
6694         (sms_schedule): Likewise.
6695         * postreload-gcse.c (eliminate_partially_redundant_load):
6696         Likewise.
6697         * predict.c (can_predict_insn_p): Likewise.
6698         (set_even_probabilities): Likewise.
6699         (combine_predictions_for_bb): Likewise.
6700         (predict_loops): Likewise.
6701         (estimate_probability): Likewise.
6702         (tree_predict_by_opcode): Likewise.
6703         (tree_estimate_probability): Likewise.
6704         (last_basic_block_p): Likewise.
6705         (propagate_freq): Likewise.
6706         (estimate_loops_at_level): Likewise.
6707         (estimate_bb_frequencies): Likewise.
6708         * profile.c (instrument_edges): Likewise.
6709         (get_exec_counts): Likewise.
6710         (compute_branch_probabilities): Likewise.
6711         (branch_prob): Likewise.
6712         * ra-build.c (live_in): Likewise.
6713         * ra-rewrite.c (rewrite_program2): Likewise.
6714         * ra.c (reg_alloc): Likewise.
6715         * reg-stack.c (reg_to_stack): Likewise.
6716         (convert_regs_entry): Likewise.
6717         (compensate_edge): Likewise.
6718         (convert_regs_1): Likewise,
6719         (convert_regs_2): Likewise.
6720         (convert_regs): Likewise.
6721         * regrename.c (copyprop_hardreg_forward): Likewise.
6722         * reload1.c (fixup_abnormal_edges): Likewise.
6723         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
6724         (sbitmap_insersection_of_preds): Likewise.
6725         (sbitmap_union_of_succs): Likewise.
6726         (sbitmap_union_of_preds): Likewise.
6727         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
6728         (fix_basic_block_boundaries): Likewise.
6729         (sched_ebbs): Likewise.
6730         * sched-rgn.c (build_control_flow): Likewise.
6731         (find_rgns): Likewise.
6732         * tracer.c (find_best_successor): Likewise.
6733         (find_best_predecessor): Likewise.
6734         (tail_duplicate): Likewise.
6735         * tree-cfg.c (make_edges): Likewise.
6736         (make_ctrl_stmt_edges): Likewise.
6737         (make_goto_expr_edges): Likewise.
6738         (tree_can_merge_blocks_p): Likewise.
6739         (tree_merge_blocks): Likewise.
6740         (cfg_remove_useless_stmts_bb): Likewise.
6741         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
6742         (tree_block_forwards_to): Likewise.
6743         (cleanup_control_expr_graph): Likewise.
6744         (find_taken_edge): Likewise.
6745         (dump_cfg_stats): Likewise.
6746         (tree_cfg2vcg): Likewise.
6747         (disband_implicit_edges): Likewise.
6748         (tree_find_edge_insert_loc): Likewise.
6749         (bsi_commit_edge_inserts): Likewise.
6750         (tree_split_edge): Likewise.
6751         (tree_verify_flow_info): Likewise.
6752         (tree_make_forwarder_block): Likewise.
6753         (tree_forwarder_block_p): Likewise.
6754         (thread_jumps): Likewise.
6755         (tree_try_redirect_by_replacing_jump): Likewise.
6756         (tree_split_block): Likewise.
6757         (add_phi_args_after_copy_bb): Likewise.
6758         (rewrite_to_new_ssa_names_bb): Likewise.
6759         (dump_function_to_file): Likewise.
6760         (print_pred_bbs): Likewise.
6761         (print_loop): Likewise.
6762         (tree_flow_call_edges_add): Likewise.
6763         (split_critical_edges): Likewise.
6764         (execute_warn_function_return): Likewise.
6765         (extract_true_false_edges_from_block): Likewise.
6766         * tree-if-conv.c (tree_if_conversion): Likewise.
6767         (if_convertable_bb_p): Likewise.
6768         (find_phi_replacement_condition): Likewise.
6769         (combine_blocks): Likewise.
6770         * tree-into-ssa.c (compute_global_livein): Likewise.
6771         (ssa_mark_phi_uses): Likewise.
6772         (ssa_rewrite_initialize_block): Likewise.
6773         (rewrite_add_phi_arguments): Likewise.
6774         (ssa_rewrite_phi_arguments): Likewise.
6775         (insert_phi_nodes_for): Likewise.
6776         (rewrite_into_ssa): Likewise.
6777         (rewrite_ssa_into_ssa): Likewise.
6778         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
6779         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
6780         (rewrite_trees): Likewise.
6781         * tree-pretty-print.c (dump_bb_header): Likewise.
6782         (dump_implicit_edges): Likewise.
6783         * tree-sra.c (insert_edge_copies): Likewise.
6784         (find_obviously_necessary_stmts): Likewise.
6785         (remove_data_stmt): Likewise.
6786         * tree-ssa-dom.c (thread_across_edge): Likewise.
6787         (dom_opt_finalize_block): Likewise.
6788         (single_incoming_edge_ignoring_loop_edges): Likewise.
6789         (record_equivalences_from_incoming_edges): Likewise.
6790         (cprop_into_successor_phis): Likewise.
6791         * tree-ssa-live.c (live_worklist): Likewise.
6792         (calculate_live_on_entry): Likewise.
6793         (calculate_live_on_exit): Likewise.
6794         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
6795         (copy_loop_headers): Likewise.
6796         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
6797         (fill_always_executed_in): Likewise.
6798         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
6799         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
6800         (compute_phi_arg_on_exit): Likewise.
6801         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
6802         (get_loops_exit): Likewise.
6803         (split_loop_exit_edge): Likewise.
6804         (ip_normal_pos): Likewise.
6805         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
6806         Likewise.
6807         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
6808         (replace_phi_with_stmt): Likewise.
6809         (value_replacement): Likewise.
6810         * tree-ssa-pre.c (compute_antic_aux): Likewise.
6811         (insert_aux): Likewise.
6812         (init_pre): Likewise.
6813         * tree-ssa-propagate.c (simulate_stmt): Likewise.
6814         (simulate_block): Likewise.
6815         (ssa_prop_init): Likewise.
6816         * tree-ssa-threadupdate.c (thread_block): Likewise.
6817         (create_block_for_threading): Likewise.
6818         (remove_last_stmt_and_useless_edges): Likewise.
6819         * tree-ssa.c (verify_phi_args): Likewise.
6820         (verify_ssa): Likewise.
6821         * tree_tailcall.c (independent_of_stmt_p): Likewise.
6822         (find_tail_calls): Likewise.
6823         (eliminate_tail_call): Likewise.
6824         (tree_optimize_tail_calls_1): Likewise.
6825         * tree-vectorizer.c (vect_transform_loop): Likewise.
6826         * var-tracking.c (prologue_stack_adjust): Likewise.
6827         (vt_stack_adjustments): Likewise.
6828         (vt_find_locations): Likewise.
6829         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6830         * config/i386/i386.c (ix86_pad_returns): Likewise.
6831         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6832         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6834 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
6836         PR target/16532
6837         * config/sparc/sparc.c (struct machine_function): New field
6838         'leaf_function_p' and 'prologue_data_valid_p'.
6839         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
6840         to conveniently access the above fields.
6841         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
6842         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
6843         of the generic flavor 'current_function_uses_only_leaf_regs'.
6844         (eligible_for_sibcall_delay): Likewise.
6845         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
6846         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
6847         (sparc_asm_function_prologue): Add sanity check for the assumption
6848         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
6849         (sparc_can_use_return_insn_p): New function.
6850         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
6851         (output_restore): Likewise.
6852         (output_sibcall): Likewise.
6853         (sparc_output_mi_thunk): Likewise.
6854         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
6855         * config/sparc/sparc.md (return): New expander.
6857         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
6859 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
6861         PR c++/17642
6862         * stor-layout.c (layout_decl): Use fold_convert, not convert.
6863         (bit_from_pos): Likewise.
6864         (byte_from_pos): Likewise.
6865         (pos_from_bit): Likewise.
6866         (normalize_offset): Likewise.
6867         (place_field): Likewise.
6868         (finalize_type_size): Likewise.
6869         (layout_type): Likewise.
6870         * tree.c (build_index_type): Likewise.
6872 2004-09-27  Devang Patel  <dpatel@apple.com>
6874         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
6875         * genopinit.c (optabs): New entry for vcond_gen_code and
6876         vcondu_gen_code.
6877         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
6878         (get_rtx_code): New function.
6879         (vector_compare_rtx): New function.
6880         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
6881         (expand_vec_cond_expr_p): New function.
6882         (expand_vec_cond_expr): New function.
6883         (get_vcond_icode): New function.
6884         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
6885         (vcond_gen_code, vcondu_gen_code): Same.
6887 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
6889         * Makefile.in (STAGESTUFF): Split into ...
6890         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
6891         (mostlyclean): Update.
6892         (stage1-start, stage2-start, stage3-start, stage4-start,
6893         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
6894         Move the STAGEMOVESTUFF.
6896 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
6898         * system.h (getpagesize): Return 'int' instead of 'long'.
6900 2004-09-27  Michael Matz <matz@suse.de>
6902         PR bootstrap/17698
6903         PR bootstrap/17702
6904         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
6905         bmp_iter_and_init): Shift by bit_in_word.
6907 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
6909         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
6910         * configure.ac: Don't sinclude it here.
6911         * configure: Regenerate.
6913 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
6915         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
6916         Handle AND pattern
6918 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
6920         PR c/13804
6921         * c-typeck.c (build_component_ref): Name type involved in
6922         diagnostic for structure or union without a member of the given
6923         name.
6925 2004-09-27  DJ Delorie  <dj@redhat.com>
6927         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
6928         .comm alignment is bytes, not bits.
6930 2004-09-27  Devang Patel  <dpatel@apple.com>
6932         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
6933         (print_call_name): Do not print VEC_COND_EXPR.
6935 2004-09-27  Devang Patel  <dpatel@apple.com>
6937         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
6939 2004-09-27  Jan Hubicka  <jh@suse.cz>
6941         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
6943 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
6945         * bitmap.h: Fix a comment typo.
6947 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
6949         * libgcc2.c (getpagesize): Change type of return value to int.
6951 2004-09-26  Matt Austern  <austern@apple.com>
6953         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
6954         using mmap.
6956 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6958         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
6959         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
6960         (bitmap_iterator): New type.
6961         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
6962         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
6963         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
6964         bmp_iter_and_init, bmp_iter_and_next): New functions.
6965         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
6966         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
6967         use iterator-style EXECUTE_IF_IN_BITMAP macros.
6968         * bitmap.c (bitmap_print): Ditto.
6969         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
6970         btr_def_live_range): Ditto.
6971         * cfganal.c (compute_dominance_frontiers_1) Ditto.
6972         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
6973         Ditto.
6974         * ddg.c (build_inter_loop_deps): Ditto.
6975         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
6976         Ditto.
6977         * except.c (remove_eh_handler): Ditto.
6978         * flow.c (reg_set_to_hard_reg_set): Ditto.
6979         * gcse.c (clear_modify_mem_tables): Ditto.
6980         * global.c (build_insn_chain): Ditto.
6981         * ifcvt.c (dead_or_predicable): Ditto.
6982         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
6983         Ditto.
6984         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
6985         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
6986         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
6987         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
6988         tree_purge_all_dead_eh_edges): Ditto.
6989         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
6990         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
6991         rewrite_ssa_into_ssa): Ditto.
6992         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
6993         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
6994         Ditto.
6995         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
6996         compute_flow_sensitive_aliasing, maybe_create_global_var,
6997         dump_points_to_info_for): Ditto.
6998         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
6999         * tree-ssa-dse.c (dse_finalize_block): Ditto.
7000         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
7001         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
7002         Ditto.
7003         * tree-ssa-loop-ivopts.c (find_induction_variables,
7004         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
7005         determine_use_iv_costs, determine_set_costs, find_best_candidate,
7006         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
7007         Ditto.
7008         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
7009         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
7010         add_call_read_ops): Ditto.
7011         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
7013 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7015         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
7016         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
7018 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
7020         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
7021         reflect size of memory regions being compared.
7023 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
7025         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
7026         expressions.  Always clear MEM_SIZE and alias set.
7028 2004-09-26  Roger Sayle  <roger@eyesopen.com>
7029             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
7031         PR middle-end/17112
7032         * stor-layout.c (compute_record_mode): For records with a single
7033         field, only use the field's mode if its size matches what we'd
7034         have choosen for the record ourselves.  This forces the use of
7035         BLKmode for packed records that don't completely fill a mode.
7037 2004-09-26  Roger Sayle  <roger@eyesopen.com>
7039         PR middle-end/17151
7040         * combine.c (force_to_mode): Remove dubious early return test that
7041         inhibits further optimization.
7043 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
7045         * profile.c: Fix a comment typo.
7047 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7049         PR bootstrap/17591
7050         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
7051         with varying offset.
7052         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
7053         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
7054         ARRAY_REFS.
7055         (expr_invariant_in_loop_p): New function.
7056         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
7057         component_ref_field_offset for COMPONENT_REFs.  Do not allow
7058         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
7059         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
7060         MISALIGNED_INDIRECT_REFs.
7061         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
7062         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
7063         MISALIGNED_INDIRECT_REFs.
7065 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
7067         PR c/11459
7068         * gcc.c (cpp_options, cc1_options): Preserve relative order of
7069         -std and -ansi options.
7071 2004-09-26  Jan Hubicka  <jh@suse.cz>
7073         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
7074         for nested functions whose proper parent has not been output.
7076         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
7077         when re-constructing profile previously invalidated by loop.
7079 2004-09-25  Dale Johannesen  <dalej@apple.com>
7081         * tree-gimple.c:  Move GIMPLE definition...
7082         * doc/tree-ssa.texi:  here.
7084 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
7086         * tree-vectorizer.c: Fix a comment typo.
7088 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
7090         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
7091         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
7092         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
7093         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
7095 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
7097         * tree-ssa-loop-unswitch.c: Fix a comment typo.
7099 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
7101         * doc/passes.texi: Fix a typo.
7103 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7105         * tree-optimize.c (init_tree_optimization_passes): Add
7106         pass_record_bounds.
7107         * tree-pass.h (pass_record_bounds): Declare.
7108         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
7109         New pass.
7111 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7113         PR tree-optimization/17474
7114         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
7115         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
7117 2004-09-25  Jan Hubicka  <jh@suse.cz>
7119         * predict.c (counts_to_freqs): Make global.
7120         * predict.h (counts_to_freqa): Declare.
7121         * profile.c (compute_branch_probabilities): Compute frequencies
7122         * tree-profile.c (do_tree_profiling): Refine conditional on when
7123         tree profiling pass is needed.
7125         * passes.c (rest_of_handle_cfg): Disable const/pure function
7126         detection when doing tree based profiling.
7128         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
7129         conditional.
7131 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
7133         * config/mips/mips.h (struct mips_args): Clarify comments.
7134         * config/mips/mips.c (struct mips_arg_info): Likewise.
7135         (mips_arg_info): Don't allow fpr_p to affect the register or
7136         stack alignment.  Remove o64 silliness.
7137         (function_arg): Deal with the o32 float,float case specially.
7139 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
7141         * config/mips/mips.md (loadx, storex): Define for V2SF.
7143 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
7145         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
7146         * config/s390/s390.c (s390_back_chain_rtx): New function.
7147         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
7148         Call anti_adjust_stack.
7149         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
7150         only if compiling with back chain.
7151         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
7152         back chain only if back chain enabled.  Use s390_back_chain_rtx.
7154 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
7156         * doc/trouble.texi: Remove obsolete information.  Update
7157         information on how to regenerate fixincluded headers.
7159 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
7161         PR c/12951
7162         * doc/invoke.texi: Document that
7163         -Wno-error-implicit-function-declaration is not accepted.
7165 2004-09-24  Richard Henderson  <rth@redhat.com>
7167         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
7168         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
7169         on TARGET_MAX.
7170         (alpha_expand_mov): Allow unaligned vectors.
7171         (alpha_expand_unaligned_store): Use CONST0_RTX.
7172         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
7174 2004-09-24 Jeff Law  <law@redhat.com>
7176         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
7177         aliasing rules.
7178         (simplify_cond_and_lookup_avail_expr): Likewise.
7180 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
7182         PR c/12802
7183         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
7184         title.  Document interaction with -fms-extensions.
7185         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
7186         section.
7188 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
7190         PR c/12713
7191         * doc/extend.texi: Document interaction of attribute noreturn and
7192         longjmp.
7194 2004-09-24  Richard Henderson  <rth@redhat.com>
7196         PR rtl-opt/17503
7197         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
7198         (som_hash, som_eq): New.
7199         (init_subregs_of_mode, record_subregs_of_mode): New.
7200         (cannot_change_mode_set_regs): Rewrite for htab implementation.
7201         (invalid_mode_change_p): Likewise.
7202         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
7203         * flow.c (mark_used_regs): Likewise.
7204         (life_analysis): Use init_subregs_of_mode.
7205         * regs.h (subregs_of_mode): Remove.
7206         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
7208 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
7210         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
7211         type with the copy of the conditional.
7213 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
7215         PR tree-opt/16954
7216         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
7217         Prevent renaming if the aliasing sets of the type which the
7218         pointer points to are different.
7220 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
7222         PR c/17188
7223         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
7224         declarations of enumerators.
7225         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
7226         for redefinition.  Check for nested redefinition.
7227         (finish_struct): Don't check for nested redefinition.
7228         (start_enum): Check for nested redefinition.
7230 2004-09-24  Devang Patel  <dpatel@apple.com>
7232         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
7233         only when necesssary.
7234         (combine_blocks): Combine loop header and exit block.
7236 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
7238         * hooks.c (hook_tree_tree_bool_null): New.
7239         * hooks.h (hook_tree_tree_bool_null): Declare it.
7240         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
7241         * targhooks.c (default_fold_builtin): Remove.
7242         * targhooks.h (default_fold_builtin): Remove.
7244 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7246         PR rtl-optimization/17625
7247         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
7249 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
7251         PR tree-opt/17624
7252         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
7253         Reject if any of the operands occur in an abnormal PHI.
7255 2004-09-24  Andreas Schwab  <schwab@suse.de>
7257         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
7258         rules.
7260 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
7262         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
7263         if the GNU assembler is used.
7264         (sparc-*-solaris2*): Likewise.
7265         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
7266         (dbxout_function_end): Protect N_ENSYM with it.
7267         (dbxout_begin_prologue): Protect N_BNSYM with it.
7268         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
7269         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
7270         * config/sparc/sol2-gas.h: New file.
7272 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
7274         PR bootstrap/17369
7275         * Makefile.in (@set_gcc_lib_path@): Added.
7277         * configure.ac: Include ../config/gcc-lib-path.m4. Use
7278         TL_AC_GNU_MAKE_GCC_LIB_PATH.
7279         * configure: Regenerated.
7281 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
7283         PR c/6980
7284         * c-typeck.c (build_c_cast): Improve wording of
7285         -Wbad-function-cast diagnostic.
7287 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
7289         PR target/17626
7290         * config/cris/cris.md (moverside, movemside): Rename variable
7291         "reg" to "otherop".  To generate canonical RTX, check that otherop
7292         isn't constant instead of checking that operand 1 is a register.
7294 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
7296         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
7298 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
7299             Jakub Jelinek  <jakub@redhat.com>
7301         * tree-flow.h (find_new_referenced_vars): Add prototype.
7302         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
7303         Move to...
7304         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
7305         ... here.
7306         (mark_new_vars_to_rename): Walk through all operands.
7307         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
7308         (execute_fold_all_builtins): Use it.
7309         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
7311 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
7313         * gthr-tpf.h: New file.
7314         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
7315         * gthr.h: Use gthr-tpf.h on TPF OS.
7317 2004-09-23 Jeff Law  <law@redhat.com>
7319         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
7320         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
7321         (substitute_and_fold):  Likewise.
7322         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
7323         except invariants from SSA_NAME_VALUE.
7324         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
7325         and SET_SSA_NAME_EQUIV.
7326         (restore_vars_to_original_value, record_const_or_copy): Likewise.
7327         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
7328         (record_equality, cprop_into_successor_phis): Likewise.
7329         (record_equivalences_from_stmt, cprop_operand): Likewise.
7330         (lookup_avail_expr): Likewise.
7331         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
7332         from SSA_NAME_VALUE.
7333         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
7334         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
7335         annotation from the VALUE_HANDLE field.
7337 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
7339         PR c++/13989
7340         PR c++/9844
7341         * tree.c (reconstruct_complex_type): Remove extra "this".
7342         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
7343         Add V4SFmode to case statement.
7345 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
7347         PR c/16833
7348         * doc/extend.texi, doc/invoke.texi: Document interaction of
7349         -fno-builtin with format checks.  Note that built-in functions
7350         have effects beyond generating code that avoids calls to those
7351         functions.
7353 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
7355         PR tree-optimization/17533
7356         * dominance.c (verify_dominators): Tolerate even more incorrect
7357         dominance data during error message printing.
7358         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
7359         and edges more correctly.
7361 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
7363         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
7364         New tree-codes.
7365         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
7366         MISALIGNED_INDIRECT_REF.
7367         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
7368         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
7369         Likewise.
7370         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
7371         (find_interesting_uses_address): Likewise.
7372         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
7373         (build_fold_addr_expr_with_type): Likewise.
7374         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
7375         * print-rtl.c (print_mem_expr): Likewise.
7376         * tree-dump.c (dequeue_and_dump): Likewise.
7377         * tree-eh.c (tree_could_trap_p): Likewise.
7378         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
7379         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
7380         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
7381         Likewise.
7382         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7383         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
7384         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
7385         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
7386         (add_address_candidates, rewrite_address_base): Likewise.
7387         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
7388         Likewise.
7389         * tree.c (staticp, build1_stat): Likewise.
7391         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
7392         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
7393         * tree-ssa-operands.c (get_expr_operands): Likewise.
7394         * expr.c (expand_expr_real_1): Likewise.
7396         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
7397         optabs.
7398         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
7399         for the new optabs.
7400         (expand_ternary_op): New function.
7401         * genopinit.c (optabs): Handle the new optabs.
7402         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
7403         (init_optabs): Initialize vec_realign_load_optab.
7404         (expand_ternary_op): New functions.
7406         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
7407         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
7408         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
7409         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
7410         * target.h (struct vectorize): New member for struct gcc_target.
7411         (misaligned_mem_ok): New member for targetm.vectorize.
7412         (builtin_mask_for_load): Likewise.
7413         (builtin_mask_for_store): Likewise.
7414         * targethooks.c (default_vect_misaligned_mem_ok): New function.
7415         * targethooks.h (default_vect_misaligned_mem_ok): New function.
7417         * config/rs6000/altivec.md (build_vector_mask_for_load): New
7418         define_expand.
7419         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
7420         (vec_realign_load_v16qi): New define_insn.
7421         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
7422         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
7423         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
7424         (altivec_builtin_mask_for_store): New variables.
7425         (rs6000_builtin_mask_for_load): New function. Implements
7426         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
7427         (rs6000_builtin_mask_for_store): New function. Implements
7428         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
7429         (rs6000_expand_builtin): Expand the target builtins
7430         builtin_mask_for_load and builtin_mask_for_store.
7431         (altivec_init_builtins): Initialize the new target builtins.
7432         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
7433         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
7435         * tree-vectorizer.c (vect_create_data_ref): Renamed to
7436         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
7437         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
7438         (vectorizable_store): Call vect_create_data_ref_ptr with additional
7439         arguments, and create an indirect_ref with its return value data_ref.
7440         Check aligned_access_p.
7441         (vectorizable_load): Handle misaligned loads, using software-pipelined
7442         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
7443         vec_realign_load_optab is supported, or using a scheme without
7444         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
7445         misaligned_mem_ok is supported.
7447         (vect_finish_stmt_generation): Typo.
7448         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
7449         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
7450         presence of misaligned loads.
7451         (vect_analyze_data_ref_access): Add check for constant init.
7452         (vect_get_symbl_and_dr): Remove duplicate line.
7453         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
7455 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
7457         * builtins.c: Fix a comment typo.
7459 2004-09-23  Jan Hubicka  <jh@suse.cz>
7461         * profile.c (branch_prob): Do not verify flow info in the middle of the
7462         pass.
7464 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7466         * cfgloop.h (update_single_exits_after_duplication): Declare.
7467         (loopify, split_loop_bb): Declaration changed.
7468         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
7469         of rtx.
7470         (loopify): Added redirect_all_edges argument.
7471         (update_single_exits_after_duplication): Export.
7472         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
7473         * tree-flow.h (tree_duplicate_loop_to_header_edge,
7474         tree_ssa_loop_version): Declare.
7475         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
7476         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
7477         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
7478         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
7480         * tree-ssa-loop-unswitch.c: New file.
7481         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
7482         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
7483         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
7484         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
7485         * tree-pass.h (pass_unswitch): Declare.
7486         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
7487         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
7488         * doc/passes.texi: Documen tree level loop unswitching.
7490 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
7492         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
7494 2004-09-22  Eric Christopher  <echristo@redhat.com>
7496         * builtins.c (simplify_builtin_va_start): Remove.
7497         (simplify_builtin): Ditto.
7498         (fold_builtin_strchr): Ditto.
7499         (simplify_builtin_*): Rename remainders to fold_builtin_*.
7500         (expand_builtin): Fix up for above changes.
7501         (fold_builtin_1): Add new folders. Change for above.
7502         (expand_builtin_va_start): Call fold_builtin_next_arg.
7503         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
7504         * tree.h: Remove prototype for simplify_builtin.
7506 2004-09-23  Jan Hubicka  <jh@suse.cz>
7508         PR debug/17389
7509         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
7510         of fully inlined functions.
7511         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
7512         inlined.
7514         * cfgexpand.c (add_reg_br_prob_note): New function.
7515         (expand_gimple_cond_expr): Use it.
7516         (tree_expand_cfg): No longer kill the profile.
7517         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
7518         only if it is present.
7519         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
7520         * predict.c (combine_predictions_for_insn): Set the probabilities
7521         based on REG_BR_PROB note if present.
7522         * predict.c (branch_prob): Profile is read only with
7523         flag_branch_probabilities.
7525 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
7527         * aclocal.m4: Add in gettext's m4 includes.
7528         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
7529         * configure.ac: Add in check for iconv.h
7530         * configure: Regenerate.
7532 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
7534         * aclocal.m4: Update for rename of gettext-sister.m4.
7536 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
7538         Fix PR tree-optimization/17587
7539         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
7540         (insert_aux): Instead of here.
7542 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
7544         PR tree-optimization/16721
7545         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
7546         * tree-ssa-alias.c (create_memory_tag): Move setting of
7547         TREE_THIS_VOLATILE ...
7548         (get_tmt_for): ... here.
7550 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
7552         * config/sparc/sparc.md (cmove splitter): Fix formatting.
7553         (conditional_trap expander): Reject inappropriate CCmodes.
7554         (conditional trap insn): Use V9 syntax if possible.
7556 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
7558         PR c/16566
7559         * c-typeck.c (build_component_ref): Don't special-case
7560         COMPOUND_EXPR.
7562 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
7564         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
7565         returns NULL.
7567 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
7569         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
7570         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
7571         TRUTH_XOR_EXPR): Mention the restriction on types.
7573 2004-09-22  Matt Austern  <austern@apple.com>
7575         * config/darwin.c (darwin_make_decl_one_only):
7576         Allow coalesced symbol to appear in static archive's table of contents
7578 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
7580         PR tree-optimization/17512
7581         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
7582         special cases.
7584 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
7586         * dbxout.c (get_lang_number): Do not define if
7587         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
7589 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
7591         PR target/15583
7592         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
7593         builtin_define ("__USE_INIT_FINI__").
7595 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
7597         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
7598         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
7599         * config/s390/s390.h (TARGET_TPF): New macro.
7600         * config/s390/s390.md ("eh_return"): New expander.
7601         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
7602         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
7603         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
7604         * config/s390/tpf.h (TARGET_TPF): Define to 1.
7605         (STACK_POINTER_OFFSET): Increase to 448.
7606         (TARGET_DEFAULT): Set -mtpf-trace on as default.
7607         (TPF_LOC_DIFF_OFFSET): New macro.
7608         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
7609         encoding.
7610         (__isPATrange): Add prototype.
7611         (MD_FALLBACK_FRAME_STATE_FOR): Define.
7612         * config/s390/tpf-eh.c: New file.
7614 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
7616         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
7617         operands in an integer comparison.
7618         * tree-cfg.c (find_taken_edge): Call fold() to determine
7619         whether the predicate is known.
7621 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
7623         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
7624         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
7625         Create build and doc directories along with the language directories.
7626         Don't create doc directory separately.
7627         * configure: Regenerate.
7628         * Makefile.in: Create all object and executables files built
7629         with the build compiler in a build/ directory.
7630         (genobjnames): Add missing build objects.
7631         (STAGESTUFF): Don't stage the gen* programs.
7632         (ggc-none.o): Define dependencies for the target compiler.
7633         (build-print-rtl.o): Rename to build/print-rtl.o.
7634         (build-errors.o): Rename to build/errors.o.
7635         (build-varray.o): Rename to build/varray.o.
7636         (maintainerclean): Delete the contents of the build directory.
7637         ($(genobjs): %.o): Explicitly use -o.
7638         (build/insn-conditions.o): Delete specfic rule to use generic rule.
7639         (build/gengtype-lex.o): Likewise.
7640         (build/gengtype-yacc.o): Likewise.
7641         (build/gcov-iov.o): Likewise.
7643 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
7645         * vec.h (VEC_space): Return true if there _is_ space.
7646         (VEC_reserve): Adjust.
7648 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
7650         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
7651         use FPRs for scalar, complex and vector types only.
7653 2004-09-21 Jeff Law  <law@redhat.com>
7655         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
7656         the opt_stats_d structure.
7657         (vrp_data): Change from a varray into a hash table.
7658         (vrp_hash_elt): New structure for elements in the vrp hash table.
7659         (vrp_hash, vrp_eq):New functions for hashing and testing equality
7660         in the vrp hash table.
7661         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
7662         initialization slightly to make it easier to read.  No longer need
7663         to grow/clear the varray.  Instead empty and delete the hash table.
7664         (dom_opt_finalize_block): Update due to change of VRP_DATA from
7665         a varray to a hash table.
7666         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
7668         * tree-ssa-ccp.c (get_default_value): If we have a constant
7669         value recorded for an SSA_NAME, then use that constant as
7670         the initial lattice value.
7671         (substitute_and_fold): Transfer equivalences discovered into
7672         SSA_NAME_EQUIV.
7674         * tree.h (SSA_NAME_EQUIV): Add comments.
7675         (SET_SSA_NAME_EQUIV): Similarly.
7677 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
7679         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
7681         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
7683 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
7685         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
7686         (finish_decl): Likewise.
7688 2004-09-21  Devang Patel  <dpatel@apple.com>
7690         * tree.def (VEC_COND_EXPR): New tree node.
7691         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
7693 2004-09-21  Stan Shebs  <shebs@apple.com>
7695         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
7696         * config/rs6000/darwin-world.asm: Likewise.
7698 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
7700         * tree-ssa.c (verify_def): Use print_generic_stmt,
7701         not debug_generic_stmt.
7702         (verify_use): Ditto.
7703         (verify_phi_args): Ditto.
7704         (verify_ssa): Ditto.
7706 2004-09-21  Paul Brook  <paul@codesourcery.com>
7708         * varasm.c (default_assemble_integer): Return false for values wider
7709         than the target word size.  Works around GAS bug.
7711 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
7713         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
7714         gets value 0.
7715         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
7716         if it has value 0.
7718 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
7720         * c-typeck.c (build_function_call): Give name of object
7721         we are attempting to call in error message.
7722         * c-objc-common.c (c_tree_printer): Call pp_expression,
7723         not return false, for 'E' case.
7725 2004-09-21  Steven Bosscher  <stevenb@suse.de>
7727         PR rtl-optimization/17482
7728         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
7729         load_killed_in_block_p): Clarify comments.
7730         (record_last_reg_set_info): Make static inline.
7731         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
7732         (record_opr_changes): New function to replace the above.
7733         (compute_hash_table): Clarify comments.  Use record_opr_changes.
7734         (reg_set_between_after_reload_p): Clean up.
7735         (reg_used_between_after_reload_p): Likewise.
7736         (eliminate_partially_redundant_load): Clarify comments.
7738 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
7740         PR rtl-optimization/17266
7741         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
7743 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
7745         PR rtl-optimization/14851
7746         * rtlanal.c (commutative_operand_precedence): Calculate
7747         precedence of stripped constant.
7749 2004-09-20 Jeff Law  <law@redhat.com>
7750            Jan Hubicka  <jh@suse.cz>
7752         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
7753         initialize key elements here.
7754         (release_ssa_name): Zero the released SSA_NAME here.
7755         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
7756         (struct tree_ssa_name): Add new "equiv" field.
7757         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
7758         (tree_ssa_dominator_optimize): No longer allocate, resize or
7759         clear CONST_AND_COPIES.
7760         (get_value_for, set_value_for): Kill.
7761         (thread_across_edge): Get/set the equivalency using
7762         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
7763         (restore_vars_to_original_value): Likewise.
7764         (record_equivalences_from_phis): Likewise.
7765         (record_dominating_conditions): Likewise.
7766         (record_const_or_copy, record_equality): Likewise.
7767         (lookup_avail_expr): Likewise.
7768         (record_equivalences_from_stmt, cprop_operand): Likewise.
7769         (cprop_into_successor_phis): No longer need to pass around
7770         CONST_AND_COPIES.  Callers updated. Get equivalences via
7771         SSA_NAME_EQUIV.
7772         (cprop_into_phis): Likewise.
7774 2004-09-20  Matt Austern <austern@apple.com>
7775             Zack Weinberg  <zack@codesourcery.com>
7777         * c-common.c (fix_string_type): Build the unqualified array
7778         type unconditionally, then use c_build_qualified_type to get
7779         the proper const-qualified variant, and set its
7780         TYPE_MAIN_VARIANT to refer to the unqualified type.
7781         * c-lex.c (c_lex_return_raw_string): New global.
7782         (c_lex_with_flags): Honor it.
7783         * c-pragma.h: Declare it.
7785 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
7787         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
7789 2004-09-21  Jan Hubicka  <jh@suse.cz>
7791         PR middle-end/17126
7792         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
7793         (tree_rest_of_compilation): Cleanup.
7795 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
7797         * config/s390/s390.c (s390_select_rtx_section): Remove.
7798         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
7800 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
7802         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
7803         note to pretend a direct save from the original register when an
7804         intermediate register is used for the save.
7806 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7808         * tsystem.h (alloca): Provide a default definition.
7810         Revert:
7811         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7812             * unwind-dw2.c: Call __builtin_alloca, not alloca.
7814 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
7816         PR tree-opt/17558
7817         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
7818         aliasing sets are the same rather than just conflicting.
7820 2004-09-20  Jan Hubicka  <jh@suse.cz>
7822         PR middle-end/16460
7824         * cgraph.c (cgraph_unnest_node): New function.
7825         (c_finalize): Rename to ....
7826         (c_warn_unused_result_recursivly): ... this one; do only the warning
7827         (finish_function): Finalize the toplevel function; do not lower nested tree.
7828         * cgraph.h (cgraph_unnest_node): Declare.
7829         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
7830         nestedness datastructure.
7831         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
7832         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
7833         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
7835 2004-09-20  Richard Henderson  <rth@redhat.com>
7837         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
7838         from some_small_symbolic_operand_1; export.
7839         (some_small_symbolic_operand): Remove.
7840         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
7841         extra C check.
7842         * config/alpha/predicates.md (some_small_symbolic_operand): New.
7844 2004-09-20  Jan Hubicka  <jh@suse.cz>
7846         * predict.c (return_prediction): New function.
7847         (apply_return_prediction): Likewise.
7848         (tree_bb_level_predictions): Likewise.
7849         (tree_estimate_probability): Add noreturn exit edges; call
7850         bb_level_predictions; fix logic of return heuristics.
7851         (predict_paths_leading_to):  Rescuesce from old CVS version of
7852         process_note_prediction function.
7853         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
7855 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
7857         * config/s390/s390.c (s390_frame_info): Added alignment statement for
7858         floating point register area on stack.
7860 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
7862         * predict.c (expr_expected_value): Use *_CLASS_P macros.
7864 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
7866         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
7867         generating useless garbage.
7869 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
7871         * builtins.c (fold_builtin): Call the new omonymous
7872         target hook for machine-dependent built-ins.
7873         * target-def.h (TARGET_FOLD_BUILTIN): New.
7874         * target.h (struct gcc_target): Add the fold_builtin hook.
7875         * targhooks.c (default_fold_builtin): New.
7876         * targhooks.h (default_fold_builtin): Declare it.
7878 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
7880         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
7881         comment typos.
7883 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
7885         PR target/17565
7886         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
7888 2004-09-20  Jan Hubicka  <jh@suse.cz>
7890         * predict.c (estimate_probability): Remove unnecesary code.
7892 2004-09-19  Ira Rosen  <irar@il.ibm.com>
7894         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
7895         (STMT_VINFO_VECT_DR_BASE): Declare.
7896         (VECT_SMODULO): Declare.
7897         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
7898         (vect_compute_array_base_alignment): New function.
7899         (vect_analyze_data_ref_access): Check array indices. Remove one
7900         dimensional arrays restriction.
7901         (vect_get_ptr_offset): New function.
7902         (vect_get_symbl_and_dr): New function.
7903         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
7904         (former name vect_get_base_decl_and_bit_offset).
7905         (vect_create_index_for_array_ref): Removed.
7906         (vect_create_index_for_vector_ref): New function.
7907         (vect_create_addr_base_for_vector_ref): New function.
7908         (vect_create_data_ref): Handle additional data refs. Call
7909         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
7910         (vect_compute_data_ref_alignment): Support the changes. Call
7911         vect_get_base_and_bit_offset.
7912         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
7913         data refs. Store vect_dr_base.
7914         (vect_analyze_data_ref_accesses): Support nonconstant init.
7915         (new_stmt_vec_info): Initialize vect_dr_base field.
7916         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
7917         (get_vectype_for_scalar_type): Check for BLKmode.
7918         * tree-chrec.h (initial_condition_in_loop_num): Declare.
7919         * tree-chrec.c (initial_condition_in_loop_num): New function.
7920         (chrec_component_in_loop_num): New function.
7921         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
7922         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
7923         to be pointer to varray_type.
7925 2004-09-19  Jan Hubicka  <jh@suse.cz>
7927         * basic-block.h (update_bb_profile_after_threading): Declare.
7928         * cfg.c (update_bb_profile_after_threading): Break out from ...
7929         * cfgcleanup.c (try_forward_edges): ... here; use it.
7930         * tree-ssa-dom.c (thread_across_edge): Use it.
7931         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
7932         profile of the new BB.
7934 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
7936         * tree-ssa-pre.c (insert_into_set): Don't put
7937         is_gimple_min_invariant values into the set.
7939 2004-09-19  Andreas Jaeger  <aj@suse.de>
7941         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
7942         prototype.
7944 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
7946         * config/cris/cris.h: Preserve the original spelling in a
7947         quote.
7949 2004-09-18 Jeff Law  <law@redhat.com>
7951         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
7952         global varrays to replace the block local varrays.
7953         (struct dom_walk_block_data): Remove, no longer used.
7954         (get_eq_expr_value): No longer need to pass around pointers to local
7955         varrays.  Callers updated.  Unused markers added to unused parameters.
7956         (record_range, record_equivalences_from_stmt): Likewise.
7957         (record_equivalences_from_incoming_edge): Likewise.
7958         (record_var_is_nonzero): Likewise.  Update now that we have a
7959         single global varray of SSA_NAMEs that need restoring.
7960         (dom_opt_initialize_block_local_data): Kill, no longer used.
7961         (tree_ssa_dominator_optimize): Initialize new global varrays.
7962         Update callbacks in dominator walker structure.
7963         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
7964         VRP_VARIABLES_STACK.
7965         (restore_nonzero_vars_to_original_value): Update now that we have
7966         a single global varray of SSA_NAMEs that need restoring.
7967         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
7968         Remove unused variables.
7969         (optimize_stmt): Remove unused variable.
7971 2004-09-18  Jan Hubicka  <jh@suse.cz>
7973         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
7975         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
7976         verify_cgraph call.
7978 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
7980         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
7981         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
7982         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
7983         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
7984         tree-ssa-operands.c, tree-ssa-phiopt.c,
7985         tree-ssa-threadupdate.c: Fix comment typos.
7987 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
7989         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
7990         config/arm/README-interworking, config/arm/arm-cores.def,
7991         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
7992         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
7993         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
7994         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
7995         config/frv/frv.md, config/i386/winnt.c,
7996         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
7997         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
7998         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
7999         config/mcore/mcore.c, config/mips/mips.h,
8000         config/mn10300/mn10300.md, config/pa/pa.c,
8001         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
8002         config/rs6000/rs6000.c, config/sh/symbian.c,
8003         config/sparc/sparc.h: Fix comment typos.  Follow spelling
8004         conventions.
8006 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
8008         PR c/17424
8009         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
8011 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
8013         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
8014         remove TREE_ADDRESSABLE from RESULT_DECL.
8016 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
8018         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
8020 2004-09-18  Jan Hubicka  <jh@suse.cz>
8022         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
8023         NULL.
8024         * tree-ssa-alias.c (init_alias_info): Likewise.
8025         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
8026         (verify_ssa): Likewise.
8027         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
8029 2004-09-18  Jan Hubicka  <jh@suse.cz>
8031         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
8032         huge offset.
8034 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
8036         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
8037         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
8038         DW_EH_PE_sdata* for data.
8039         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
8041 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
8043         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
8044         shared anyway.
8046         PR pch/13361
8047         * c-typeck.c (constructor_asmspec): Delete.
8048         (struct initializer_stack): Delete field 'asmspec'.
8049         (start_init): Delete saving of asmspec.
8050         (finish_init): Don't update constructor_asmspec.
8051         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
8052         * stmt.c (expand_asm): Duplicate strings from tree.
8053         (expand_asm_operands): Likewise.
8054         * tree.c (tree_size): Update computation of size of STRING_CST.
8055         (make_node): Don't make STRING_CST nodes.
8056         (build_string): Allocate string with tree node.
8057         (tree_code_size): Clean up assertions, don't allow requests
8058         for "the size of a STRING_CST".
8059         * tree.def (STRING_CST): Update comment.
8060         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
8061         (tree_string): Place contents of string in tree node.
8062         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
8063         from tree.
8065 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
8067         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
8068         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
8070 2004-09-17  Jones Desougi  <jones@ingate.com>
8072         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
8073         * configure, config.in: Regenerate.
8075 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
8077         * tree.c, tree.h (tree_class_strings): Make array const.
8078         Reindent per coding convention.  Move asterisk to proper place
8079         per coding convention.
8081 2004-09-18  Andreas Schwab  <schwab@suse.de>
8083         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
8084         (tree-vectorizer.o): Likewise.
8085         (targhooks.o): Likewise.
8087 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
8088             Zack Weinberg  <zack@codesourcery.com>
8090         * alias.c (find_base_decl): Remove unreachable case '3' block.
8091         * expr.c (safe_from_p): Abort if passed a type.
8092         * tree-gimple.c (recalculate_side_effects): Abort if passed
8093         anything other than an expression.
8094         * tree-ssa-pre.c (phi_translate): Return expr immediately if
8095         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
8096         Abort on un-handled tree classes.
8097         (valid_in_set): Likewise.
8098         * tree.c (tree_code_class_strings): New static data.
8100         * tree.h (enum tree_code_class): New.
8101         (tree_code_class_strings): Declare.
8102         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
8103         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
8104         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
8105         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
8106         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
8108         * tree.def, c-common.def, objc/objc-tree.def: Use
8109         tree_code_class enumeration constants instead of code letters.
8111         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
8112         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
8113         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
8114         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
8115         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
8116         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
8117         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
8118         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
8119         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
8120         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
8121         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
8122         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
8123         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
8124         Update to match.
8126         * LANGUAGES: Add note about change.
8128 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
8130         PR tree-optimization/17319
8131         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
8132         examine pointers on the LHS of an assignment.
8133         (collect_points_to_info_r): Handle RETURN_EXPR.
8135 2004-09-17 Jeff Law  <law@redhat.com>
8137         * tree-ssa-dom.c (const_and_copies_stack): New.
8138         (dom_walk_block_data): Remove const_and_copies field.
8139         (record_const_or_copy): No longer need to pass in varray_type *.
8140         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
8141         Callers updated.
8142         (record_equality): Similarly.
8143         (restore_vars_to_original_value): Similarly.  Revamp to use new
8144         single global stack rather than per-block stacks.
8145         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
8146         (thread_across_edge): Remove now unused parameters.
8147         (dom_opt_initialize_block_local_data): No longer test the block
8148         local CONST_AND_COPIES.
8149         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
8151 2004-09-17  Jan Hubicka  <jh@suse.cz>
8153         PR tree-optimization/17509
8154         * tree-optimize.c (update_inlined_to_pointers): New function.
8155         (tree_rest_of_compilation): Use it.
8157 2004-09-17  Devang Patel  <dpatel@apple.com>
8159         * dbxout.c (get_lang_number): New.
8160         (dbxout_init): Include lang number in N_SO  stab.
8161         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
8162         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
8164 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
8166         PR tree-optimization/17273
8167         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
8168         replacement is a constant.
8170 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
8172         * c-tree.h (enum c_typespec_keyword): New.
8173         (struct c_declspecs): Adjust description of "type".  Remove
8174         specbits, explicit_int_p and explicit_char_p.  Rename
8175         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
8176         short_p, signed_p, unsigned_p and complex_p.
8177         (finish_declspecs): New.
8178         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
8179         typename): Call finish_declspecs.
8180         * c-decl.c (finish_declspecs): New.
8181         (declspecs_add_type): Check for combinations which cannot occur in
8182         valid specifier lists.  Update comments.
8183         (shadow_tag_warned): Remove checks done in finish_declspecs.
8184         Don't report useless type name if type defaulted to int.
8185         (grokdeclarator): Remove checks and actions done in
8186         finish_declspecs.  Don't allow for type being NULL.  Update for
8187         datastructures changes.  Initialize decl_attr.
8188         (build_null_declspecs, quals_from_declspecs): Update for
8189         datastructures changes.
8191 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
8193         * doc/extend.texi: Fix duplicated word.
8195 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
8197         * doc/invoke.texi: Remove stray explanation on
8198         -freduce-all-givs and -fmove-all-movables.
8200 2004-09-17  James Morrison  <phython@gcc.gnu.org>
8202         * doc/cfg.texi: Use @smallexample.
8203         * doc/md.texi: Likewise.
8204         * doc/tree-ssa.texi: Likewise.
8205         * doc/extend.texi: Likewise.  Use @r{} in comments.
8206         * doc/trouble.texi: Use @r{} in comments.
8208 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
8210         * configure.ac (gcc_cv_gld_version): Handle whitespace before
8211         "VERSION=".
8212         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
8213         * configure: Regenerate.
8215 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
8217         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
8218         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
8219         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
8220         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
8221         slashes in substitutions.
8222         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
8224 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
8226         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
8227         gimplify.c, lambda-code.c, optabs.c, predict.c,
8228         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
8229         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
8230         conventions.
8232 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
8234         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
8235         doc/extend.texi, doc/install.texi, doc/invoke.texi,
8236         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
8237         doc/trouble.texi: Use @option around options.
8239 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
8241         * Makefile.in (gen-protos.o): Depend on errors.h.
8243 2004-09-17  Steven Bosscher  <stevenb@suse.de>
8245         PR tree-optimization/17513
8246         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
8247         for successors of the entry block.
8249 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
8251         PR rtl-optimization/15187
8252         * ifcvt.c (noce_try_cmove_arith): Exit early if total
8253         insn_rtx_cost of both branches > BRANCH_COST
8255 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
8257         PR tree-optimization/17528
8258         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
8259         erase the may-alias set for a tag when merging it with
8260         another.
8262 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
8264         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
8265         for 32-bit TARGET_SHMEDIA.
8266         (call_value): Likewise.
8268 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
8270         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
8271         test apply only to TREE_STATIC and DECL_EXTERNAL.
8273 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8275         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
8276         * basic-block.h (get_dominated_by_region): Declare.
8277         * dominance.c (get_dominated_by_region): New function.
8278         * tree-cfg.c: Include cfglayout.h.
8279         (tree_duplicate_bb): Duplicate also phi nodes.
8280         (struct ssa_name_map_entry): New type.
8281         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
8282         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
8283         allocate_ssa_names, rewrite_to_new_ssa_names_def,
8284         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
8285         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
8286         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
8287         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
8288         rewrite_to_new_ssa_names, allocate_ssa_names,
8289         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
8290         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
8291         (copy_loop_headers): Use tree_duplicate_sese_region.
8293 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
8295         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
8297 2004-09-16 Jeff Law  <law@redhat.com>
8299         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
8300         (rewrite_block_data): Remove, no longer used.
8301         (rewrite_initialize_block_local_data): Remove, no longer used.
8302         (rewrite_initialize_block): Mark parameters as unused as needed.
8303         Change references to the block local block_defs to be block_defs_stack.
8304         Push a marker onto the block_defs_stack.
8305         (ssa_rewrite_initialize_block): Similarly.
8306         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
8307         (ssa_register_new_def): No longer needs varray argument.  Use
8308         block_defs_stack instead.  No longer handle possibly null block_defs
8309         varray.  Reverse order of items we push on the stack to make it
8310         easier to identify our marker.
8311         (register_new_def): No longer handle possibly null block_defs
8312         varray.
8313         (rewrite_finalize_block): Revamp to look for markers in the global
8314         block_defs_stack varray rather than wiping a block local varray.
8315         Mark arguments as unused as needed.
8316         (ssa_rewrite_finalize_block): Similarly.
8317         (rewrite_into_ssa): Update initialization of dom walker structure
8318         to reflect that we don't need block local data anymore.  Initialize
8319         the block_defs_stack varray.
8320         (rewrite_ssa_into_ssa): Similarly.
8321         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
8322         (struct dom_walk_data): Kill block_defs field.
8323         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
8324         (thread_across_edge): Use the global block_defs_stack instead of
8325         the old block_defs varray.
8326         (dom_opt_initialize_block_local_data): Update now that we don't have
8327         block_defs field to check anymore.
8328         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
8329         (restore_currdefs_to_original_value): Use the new block_defs_stack
8330         instead of a block local varray.
8331         (dom_opt_finalize_block): Similarly.
8332         (record_equivalencs_from_phis): Similarly.
8333         (optimize_stmt, register_definitions_for_stmt): Similarly.
8335 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
8337         PR tree-optimization/17517
8338         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8339         coalesce same-root variables without checking for abnormal PHI usage.
8341 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
8343         * cfgloop.h (duplicate_loop):  Add prototype.
8344         * cfgloopmanip.c (duplicate_loop): Make non-static.
8345         * lambda-code.c (perfect_nestify): Factor out test whether
8346         we can handle this loop into separate function.
8347         Call it.
8348         (can_convert_to_perfect_nest): New function.
8349         (replace_uses_of_x_with_y): Add modify_stmt call.
8350         * tree-loop-linear.c (linear_transform_loops): Call
8351         rewrite_into_loop_closed_ssa and free_df.
8353 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
8355         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
8356         loop invariant as well.
8357         (perfect_nestify): new function.
8358         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
8359         upper bounds, and steps.
8360         Set outerinductionvar properly.
8361         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
8362         parameters.
8363         Return NULL if we need a perfect loop and can't make one.
8364         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
8365         (not_interesting_stmt): New function.
8366         (phi_loop_edge_uses_def): Ditto.
8367         (stmt_uses_phi_result): Ditto.
8368         (stmt_is_bumper_for_loop): Ditto.
8369         (perfect_nest_p): Ditto.
8370         (nestify_update_pending_stmts): Ditto.
8371         (replace_uses_of_x_with_y): Ditto.
8372         (stmt_uses_op): Ditto.
8373         (perfect_nestify): Ditto.
8374         * lambda-mat.c (lambda_matrix_id_p): New function.
8375         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
8376         * lambda.h: Update prototypes.
8377         * tree-loop-linear (linear_transform_loop): Use new
8378         perfect_nest_p. Detect and ignore identity transform.
8379         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
8381 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
8383         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
8384         Gather also strides of accessed data.  Pass in the data references
8385         array.
8386         (try_interchange_loops): Add a new heuristic for handling the temporal
8387         locality.  Pass in the data references array.
8388         (linear_transform_loops): Pass the data references array to
8389         try_interchange_loops.
8391 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
8393         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
8395 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
8397         * doc/c-tree.texi (Classes): Remove index entries for
8398         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
8400 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8402         * fold-const.c (fold): Fold difference of addresses.
8403         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
8404         get_inner_reference.
8405         * tree-ssa-loop-ivopts.c (peel_address): Removed.
8406         (ptr_difference_const): Moved to fold-const.c.
8407         (split_address_cost): Use get_inner_reference instead of peel_address.
8408         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
8409         * tree.h (ptr_difference_const): Export.
8411         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
8412         variable type to the dump.  Fix indentation.
8413         (idx_find_step): Handle nonconstant array_ref_element_size and
8414         array_ref_low_bound.
8415         (idx_record_use): Handle array_ref_element_size and
8416         array_ref_low_bound.
8417         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
8418         statements correctly.
8419         (get_computation_at, iv_value): Do not unshare expressions here.
8420         (rewrite_use_outer): Unshare the expression before it is emitted
8421         to code.
8422         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
8423         Moved to tree.c.
8424         * tree.c (unsigned_type_for, signed_type_for): Moved from
8425         tree-ssa-loop-niter.c.  Use langhooks.
8426         * tree.h (signed_type_for): Export.
8428 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
8430         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
8431         prototype.
8433 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
8435         PR target/11572
8436         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
8437         Add two parameters to extra_includes.
8438         (C_INCPATH_INIT): Remove.
8439         * c-incpath.c (register_include_chains): Call extra_pre_includes
8440         before adding the standard include directory.
8441         Update call to extra_includes.
8442         (!defined TARGET_EXTRA_INCLUDES): Update
8443         hook_void_charptr_charptr_int and add !define
8444         TARGET_EXTRA_PRE_INCLUDES.
8445         (!define TARGET_EXTRA_INCLUDES): Define as
8446         hook_void_charptr_charptr_int.
8447         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
8448         (target_c_incpath): Always declare.
8449         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
8450         empty function.
8451         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
8452         * config/darwin.h: (darwin_register_frameworks): Update for
8453         the two new parameters.
8454         (darwin_register_objc_includes): Add prototype.
8455         (TARGET_EXTRA_PRE_INCLUDES): Define.
8456         * config/darwin-c.c (darwin_register_objc_includes): New function.
8457         (darwin_register_frameworks): Update for the two new parameters.
8458         (target_c_incpath): Remove.
8459         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
8460         the compile line.
8461         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
8462         parameters.
8463         (TARGET_EXTRA_PRE_INCLUDES): Document.
8465         * gcc.c (spec_function): Add replace-outfile.
8466         (replace_outfile_spec_function): New function.
8467         * config/darwin.h (LINK_SPEC): Add replace
8468         -lobjc with -lobjc-gnu if -fgnu-runtime is
8469         supplied.
8470         * invoke.texi (replace-outfile): Document.
8472 2004-09-13  Jan Hubicka  <jh@suse.cz>
8474         * predict.c (expr_expected_value, strip_builtin_expect): New function.
8475         (tree_predict_by_opcode): Use it.
8476         (tree_estimate_probability): Add, for now disabled,
8477         strip_builtin_expect call.
8479 2004-09-15  James E Wilson  <wilson@specifixinc.com>
8481         PR target/17455
8482         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
8483         if current_function_decl is a sibcall.
8485 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
8487         * varasm.c (default_function_rdodata_section): Make sure to pass
8488         along a decl for a link-once section.
8490 2004-09-15  Richard Henderson  <rth@redhat.com>
8492         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
8493         warning with code disable.  Fix formatting.
8495 2004-09-15  Steven Bosscher  <stevenb@suse.de>
8497         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
8498         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
8499         after propagating into an ADDR_EXPR.
8501 2004-09-15  Andrew Pinski  <apinski@apple.com>
8503         PR rtl-opt/17427
8504         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
8505         Move it out of gcc_assert.
8507 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
8509         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
8510         except.c, fold-const.c, function.c, langhooks.c, params.c,
8511         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
8512         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
8513         for quoting in diagnostics going through pretty-print.c.  Use ''
8514         for quoting in other diagnostic text.
8515         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
8516         translation.
8517         * Makefile.in (langhooks.o): Update dependencies.
8518         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
8519         formats.
8521 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
8523         * configure.ac: Check for COMDAT support.  Robustify check for
8524         SHF_MERGE support.
8525         * configure: Regenerated.
8526         * config.in: Likewise.
8527         * langhooks-def.h (lhd_comdat_group): New function.
8528         (LANG_HOOKS_COMDAT_GROUP): New macro.
8529         (LANG_HOOKS_DECLS): Use it.
8530         * langhooks.c (lhd_comdat_group): Define.
8531         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
8532         * output.h (named_section_flags): Make it a macro.
8533         (named_section_real): New function.
8534         (default_no_named_section): Add decl parameter.
8535         (default_elf_asm_named_section): Likewise.
8536         (default_coff_asm_named_section): Likewise.
8537         (default_pe_asm_named_section): Likewise.
8538         * target.h (gcc_target): Adjust type of named_section.
8539         * varasm.c (named_section_flags): Rename to named_section_real.
8540         Add decl parameter.
8541         (default_no_named_section): Add decl parameter.
8542         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
8543         with the case that ASM_COMMENT_START is "@".
8544         (default_coff_asm_named_section): Add decl parameter.
8545         (default_pe_asm_named_section): Likewise.
8546         * config/alpha/alpha.c (vms_asm_named_section): Add decl
8547         parameter.
8548         (unicosmk_asm_named_section): Likewise.
8549         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
8550         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
8551         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
8552         * config/cris/cris-protos.h (cris_target_asm_named_section):
8553         Likewise.
8554         * config/cris/cris.c (cris_target_asm_named_section):
8555         Likewise.
8556         * config/darwin/darwin-protos.h (darwin_asm_named_section):
8557         Likewise.
8558         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
8559         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
8560         * config/i386/i386-protos.h (i386_pe_asm_named_section):
8561         Likewise.
8562         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
8563         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
8564         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
8565         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
8566         Likewise.
8567         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
8568         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
8569         * cp/cp-tree.h (cxx_comdat_group): Declare.
8570         * cp/decl.c (cxx_comdat_group): New function.
8572 2004-09-15  Jan Hubicka  <jh@suse.cz>
8574         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
8575         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
8577         * tree-cfg.c (remove_bb): Release SSA defs.
8579 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
8581         * doc/tm.texi: Follow spelling conventions.
8583 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
8585         * tree-ssa-dom.c: Fix comment typos.
8587 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
8589         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
8590         include ccr.
8591         (ppc_fallback_frame_state): Save location of CR.
8593 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
8595         * expr.c (string_constant): Handle also read-only variables
8596         initialized to string literals.
8598         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
8599         into memcpy (x, y, 1) if memcpy can be expanded inline.
8601 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8603         PR tree-optimization/17468
8604         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
8605         definition inside a block precede uses.
8606         * tree-tailcall.c (adjust_return_value): Emit statements in the
8607         correct order.
8609 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
8611         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
8613 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
8615         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
8617 2004-09-14 Jeff Law  <law@redhat.com>
8619         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
8620         (struct dom_walk_block_data): Remove avail_exprs member.
8621         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
8622         (lookup_avail_expr): No longer need to pass in address of
8623         the block local available exprs stack.  All callers changed.
8624         (simplify_cond_and_lookup_avail_expr): Similarly.
8625         (simplify_switch_and_lookup_avail_expr): Similarly.
8626         (get_eq_expr_value, record_cond): Likewise.
8627         (record_dominating_conditions): Likewise.
8628         (update_rhs_and_lookup_avail_expr): Likewise.
8629         (record_equivalences_from_stmt): Likewise.
8630         (dom_opt_initialize_block_local_data): No longer test state of
8631         block local avail_exprs.
8632         (dom_opt_initialize_block): Mark unwind point in the global
8633         avail_expr stack.
8634         (remove_expressions_from_table): Update to unwind to the
8635         most recent unwind marker in the global avail_expr stack.
8636         All callers changed.
8637         (dom_opt_finalize_block): Mark unwind point in the global
8638         avail_expr stack as needed.
8639         (record_cond): Push elements into the global avail_exprs stack.
8641         * tree-dfa.c (free_df_for_stmt): No longer static.
8642         (free_df): Update comments.
8643         * tree-flow.h (free_df_for_stmt): Prototype.
8644         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
8645         call release_defs.
8647 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
8649         PR tree-optimization/17252
8650         * tree-ssa-alias.c (may_alias_p): Don't assume that a
8651         pointer may not point to itself when using relaxed
8652         aliasing rules.
8654 2004-09-14  Richard Henderson  <rth@redhat.com>
8656         PR middle-end/17397
8657         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
8658         while folding <ADDR_EXPR <INDIRECT_REF X>>.
8660 2004-09-14  Andrew Pinski  <apinski@apple.com>
8662         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
8663         sets of the pointers but the aliasing sets of what they point to.
8665 2004-09-14  Roger Sayle  <roger@eyesopen.com>
8667         PR rtl-optimization/9771
8668         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
8669         conditional compilation in init_reg_sets_1.
8670         (init_reg_sets_1): Let global_regs[i] take priority over the frame
8671         (but not stack) pointer exceptions to regs_invalidated_by_call.
8672         (globalize_reg): Globalizing a fixed register may need to update
8673         regs_invalidated_by_call.
8675 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
8677         PR tree-optimization/15262
8678         * tree-dfa.c (dump_variable): Also print the type of the
8679         variable.
8680         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
8681         memory tags are of conflicting alias sets but have no aliased
8682         symbols in common, add one tag to the alias set of the other.
8683         (setup_pointers_and_addressables): Remove hack to deal with
8684         programs with no aliased symbols.
8685         (may_alias_p): Don't special case aggregate types.
8687 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
8689         PR c/15498
8690         * doc/invoke.texi (Environment Variables): Correct example locale.
8692 2004-09-14  Jan Hubicka  <jh@suse.cz>
8694         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
8696 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
8698         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
8700 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
8702         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
8703         restrict_p.
8704         (struct c_declarator): Change u.array.quals and pointer_quals to
8705         int.  Add u.array.attrs.
8706         (quals_from_declspecs): New.
8707         * c-decl.c (quals_from_declspecs): New.
8708         (shadow_tag_warned): Give more specific message for useless type
8709         qualifiers.
8710         (build_array_declarator, set_array_declarator_inner,
8711         grokdeclarator, make_pointer_declarator, build_null_declspecs,
8712         declspecs_add_qual): Update for changed structures.
8714 2004-09-14  Jeff Law  <law@redhat.com>
8716         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
8717         to a global varray.
8718         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
8719         (dom_opt_initialize_block_local_data): No longer test state
8720         of stmts_to_rescan.
8721         (dom_opt_finalize_block): Update due to change in scope of
8722         stmts_to_rescan.
8723         (optimize_stmt): Similarly.
8725 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
8727         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
8728         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
8729         comment typos.  Follow spelling conventions.
8731 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
8733         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
8734         config/i386/predicates.md, config/sparc/sparc.c: Follow
8735         spelling conventions.
8737 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8738             Steven Bosscher  <stevenb@suse.de>
8740         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
8741         * basic-block.h (struct reorder_block_def): Add copy_number field.
8742         * cfgloop.h (biv_p): Declare.
8743         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
8744         * common.opt (fsplit-ivs-in-unroller): New flag.
8745         * loop-iv.c (biv_p): New function.
8746         * loop-unroll.c: Include hashtab.h and recog.h.
8747         (struct iv_to_split, struct split_ivs_info): New types.
8748         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
8749         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
8750         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
8751         insert_base_initialization, split_iv): New functions.
8752         (peel_loop_completely, unroll_loop_constant_iterations,
8753         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
8754         Use them.
8755         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
8757 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8759         * tree-cfg.c (thread_jumps): Update dominators correctly in
8760         case destination of threaded edge dominates its source.
8762 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8764         * unroll.c: Removed.
8765         * loop.h: Removed.
8766         * Makefile.in (LOOP_H, unroll.o): Removed.
8767         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
8768         dependency.
8769         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
8770         reference.
8771         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
8772         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
8773         * loop.c: Do not include loop.h.
8774         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
8775         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
8776         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
8777         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
8778         struct loop_regs, struct loop_movables, struct loop_info): Moved
8779         from loop.h.
8780         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
8781         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
8782         find_common_reg_term, loop_iterations, final_giv_value): Moved
8783         from unroll.c.
8784         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
8785         loop_dump_stream, for_each_insn_in_loop, express_from,
8786         extend_value_for_giv, loop_iv_add_mult_emit_before,
8787         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
8788         loop_insn_first_p, get_condition_for_loop,
8789         loop_insn_emit_before, loop_insn_hoist,
8790         loop_insn_sink): Made static.
8791         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
8792         reference.
8793         (strength_reduce): Do not call unroller.
8794         (record_giv): Do not initialize unrolled field.
8795         (prescan_loop): Do not set loop_info->preconditioned.
8796         * passes.c: Do not include loop.h.
8797         (rest_of_handle_loop_optimize): Do not call unroller.
8798         * predict.c: Do not include loop.h.
8799         * rtl.h (NOTE_PRECONDITIONED): Removed.
8800         * stmt.c: Do not include loop.h.
8801         * toplev.c: Do not include loop.h.
8802         (process_options): Do not handle flag_old_unroll_loops.
8804         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
8805         Documentation removed.
8806         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
8808 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
8810         * Makefile.in (STAGE1_CHECKING): New variable.
8811         (stage1_build): Use it.
8812         * tree-ssa.c (verify_ssa): Preserve state of dominance
8813         information.
8815 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
8817         * config/i386/i386.c (output_fp_compare): Add generation
8818         of ftst instruction.
8819         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
8820         Use output_fp_compare () function.
8821         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
8822         (fix_truncdi_memory): Remove operands[5] copy.
8824 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
8826         * config/m32r/m32r.md, config/m68k/m68kelf.h,
8827         config/mcore/mcore.md, config/rs6000/linux64.h,
8828         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
8829         typos.
8831 2004-09-13  James E Wilson  <wilson@specifixinc.com>
8833         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
8834         * gen-protos.c: Include errors.h.
8835         (progname): Delete.
8837 2004-09-14  Jan Hubicka  <jh@suse.cz>
8839         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
8840         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
8841         (predict_loops): Use number_of_iterations_exit to predict
8842         number of iterations on trees.
8844 2004-09-13  Dale Johannesen  <dalej@apple.com>
8846         PR 17408
8847         PR 17409
8848         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
8849         objects declared extern.
8851 2004-09-14  Paul Brook  <paul@codesourcery.com>
8853         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
8854         HOST_WIDE_INT.
8856 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
8858         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
8859         Only use TYPE_BINFO for aggregates.
8861 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
8863         * expmed.c (synth_mult): Initialize latency.  Check cost before
8864         checking ops count.
8866 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
8868         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
8869         add_call_clobber_ops and add_call_read_ops.
8870         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
8871         the number of vdefs and vuses inserted based on analysis of global
8872         variables across calls.  * tree-dfa.c (find_referenced_vars):
8873         Needed to reset static var maps before each function is compiled.
8874         * cgraphunit.c:
8875         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
8876         static_vars_info,functions_to_static_vars_info,module_statics_escape,
8877         all_module_statics,searchc_env,dfs_info): New fields to support
8878         analysis of static global variables.
8879         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
8880         cgraph_reset_static_var_maps, get_global_static_vars_info,
8881         get_global_statics_not_read, get_global_statics_not_written,
8882         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
8883         check_rhs_var, check_lhs_var, get_asm_expr_operands,
8884         process_call_for_static_vars, scan_for_static_refs,
8885         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
8886         clear_static_vars_maps, cgraph_propagate_bits,
8887         cgraph_characterize_statics): New. Functions to support analysis
8888         of static global variables.
8889         (cgraph_mark_local_and_external_functions): Renamed from:
8890         (cgraph_mark_local_functions)
8891         (cgraph_expand_all_functions): Remove call to
8892         cgraph_mark_local_and_external_functions.
8893         (cgraph_optimize): Added driver to analyze static variables whose
8894         scope is within the compilation unit.  * cgraph.h (struct
8895         cgraph_local_info, GTY): Added statics_read, statics_written,
8896         local, calls_read_all, calls_write_all, for_functions_valid.
8897         (struct cgraph_node): Added next_cycle.  * cgraph.c
8898         (dump_cgraph_node): Added print routines for new fields.  *
8899         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
8900         list.
8902 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
8904         * c-decl.c (grokdeclarator): Correct comments about where storage
8905         class specifiers are rejected by grammar and add corresponding
8906         asserts.  Diagnose typedefs and parameters declared inline.
8907         Change warning for inline main to a pedwarn.  Only diagnose inline
8908         main if hosted.
8909         (declspecs_add_scspec): Allow duplicate "inline".
8911 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
8913         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
8914         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
8916 2004-09-13  Richard Henderson  <rth@redhat.com>
8918         PR 17436
8919         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
8920         (tree_type): Replace spare with contains_placeholder_bits.
8921         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
8922         make static.  Remove seen_types list.
8923         (type_contains_placeholder_p): New.
8925 2004-09-13  James E Wilson  <wilson@specifixinc.com>
8927         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
8928         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
8929         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
8930         bdesc_arrays instead of mips_bdesc.
8931         (mips_init_builtins): Likewise.
8932         * config/mips/mips.h (TARGET_SB1): New.
8933         (HAVE_SQRT_P): Delete.
8934         * config/mips/mips.md (divide_condition): Support V2SF.
8935         (sqrt_condition, recip_condition): New.
8936         (div<mode>3): Use ANYF instead of SCALARF.
8937         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
8938         MODE.
8939         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
8940         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
8941         instead of MODE.
8942         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
8943         instead of SCALARF.  Use UNITMODE instead of MODE.
8945 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
8947         * config.in: Regenerate after removal of libbanshee.
8949 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
8951         PR tree-optimization/17400
8952         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8953         coalesce partitions when one occurs in an abnormal PHI.
8955 2004-09-13  Andrew Pinski  <apinski@apple.com>
8957         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
8958         name to _new_size.
8960 2004-09-13  Richard Henderson  <rth@redhat.com>
8962         PR inline-asm/6806
8963         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
8964         (cselib_invalidate_rtx_note_stores): New.
8965         (cselib_record_sets, cselib_process_insn): Update to match.
8966         * cselib.h (cselib_invalidate_rtx): Declare.
8967         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
8969 2004-09-13  Richard Henderson  <rth@redhat.com>
8971         PR tree-opt/10528
8972         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
8973         after copying its argument.
8975 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
8977         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
8978         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
8979         in diagnostics.  Use %' for English apostrophes.
8980         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
8981         (pedwarn_c90, pedwarn_c99): Use it.
8982         * c-decl.c (lookup_label): Quote label name in diagnostic.
8983         * c-parse.in (yyprint): Use ' instead of ` for left quote.
8984         * c-typeck.c (warn_for_assignment): Likewise.
8986 2004-09-13  Jan Hubicka  <jh@suse.cz>
8988         * i386.c (x86_schedule): New global variable.
8989         (override_options): Disable scheduling when not supported.
8990         * i386.h (x86_schedule): Declare.
8991         (TARGET_SCHEDULE): New macro.
8993 2004-09-12  Richard Henderson  <rth@redhat.com>
8995         PR c++/16254
8996         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
8997         * tree.c, tree.h (has_cleanups): Remove.
8999 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9001         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
9002         arguments of the phi nodes correctly.
9004 2004-09-12  Jan Hubicka  <jh@suse.cz>
9006         * ggc-common.c (cmp_statistics): Fix sorting.
9008 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
9010         PR target/16795
9011         * expmed.c (expand_divmod): If cheap power of 2 divide is
9012         available, use it for negative constant as well.
9014 2004-09-12  Andrew Pinski  <apinski@apple.com>
9016         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
9017         size of 0.
9019         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
9021 2004-09-12  Richard Henderson  <rth@redhat.com>
9023         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
9024         or minus one.
9025         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
9026         post-reload, and scratch NULL.
9027         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
9028         (x86_shift_adj_2): Use ix86_expand_clear.
9029         (ashldi3): Remove CMOVE expansion difference.
9030         (ashldi3_1): Remove.
9031         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
9032         add constraints for immediates.  New peephole for split-with-temp.
9033         Run splitter after peep2 pass.
9034         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
9035         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
9036         (setcc_2): Rename with *.
9037         * config/i386/predicates.md (reg_or_pm1_operand): New.
9038         (ashldi_input_operand): New.
9040 2004-09-12  Richard Henderson  <rth@redhat.com
9042         * print-rtl.c (print_decl_name): New.
9043         (print_mem_expr): Use it.
9045 2004-09-12  Richard Henderson  <rth@redhat.com
9047         PR 17186, part deux
9048         * except.c (sjlj_emit_function_exit): Fix logic locating
9049         sjlj_exit_after in final block.
9051 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
9053         * common.opt: Remove flags -fmove-all-movables and
9054         -freduce-all-givs.
9055         * loop-invariant.c (find_invariants_to_move):
9056         Remove all uses of flag_move_all_movables.
9057         * loop.c (move_movables): Remove all uses of
9058         flag_move_all_movables.
9059         (strength_reduce): Remove all uses of
9060         flag_reduce_all_givs.
9061         * doc/invoke.texi: Remove documentation of flags
9062         -fremove-all-movables and -freduce-all-givs.
9064 2004-09-11  Roger Sayle  <roger@eyesopen.com>
9066         PR middle-end/17411
9067         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
9068         change. elt->type may be a floating point type, so use fold_convert.
9070 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
9072         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
9073         the thing referenced as used, not the stub itself.
9075 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
9077         * c-tree.h (enum c_storage_class): New.
9078         (struct c_declspecs): Add storage_class, inline_p and thread_p.
9079         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
9080         declarations and "auto" or "register" in file scope empty
9081         declarations.  Give more specific warnings for other cases of
9082         storage class specifiers in empty declarations.
9083         (grokdeclarator): Update for new structures.  Don't check for
9084         multiple storage classes.  Diagnose file-scope "register" if
9085         pedantic.
9086         (build_null_declspecs): Update.
9087         (declspecs_add_scspec): Update.  Diagnose multiple storage class
9088         specifiers and invalid uses of "__thread".
9090 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
9092         * tree.c (tree_code_size): New function, bulk of code from tree_size.
9093         (tree_size, make_node): Use it.
9094         * tree-ssa-pre.c (init_pre): Use it.
9095         * tree.h: Prototype it.
9097 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9099         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
9100         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
9101         redirect_immediate_use): Use PHI_DF.
9102         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
9103         (bb_for_stmt): Use PHI_BB.
9104         (get_immediate_uses): Use PHI_DF.
9105         * tree-ssa-dse.c (max_stmt_uid): New variable.
9106         (get_stmt_uid): New function.
9107         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
9108         node annotations.
9109         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
9110         (max_uid): Renamed to max_stmt_uid.
9111         (get_stmt_uid): New function.
9112         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
9113         phi node annotations.
9114         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
9115         * tree.h (PHI_BB, PHI_DF): New accessor functions.
9116         (struct tree_phi_node): Add bb and df fields.
9118 2004-09-11  Richard Henderson  <rth@redhat.com>
9120         PR middle-end/17416
9121         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
9122         in conflict loop.
9124 2004-09-11  Jan Hubicka  <jh@suse.cz>
9126         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
9127         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
9128         * i386.md (i387_cw): Add 'uninitialized' mode.
9130         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
9131         (output_location): Break out from ....
9132         (branch_prob): ... here; handle gcov output on trees.
9133         * toplev.c (process_options): No longer be sorry about coverage for
9134         trees.
9136 2004-09-11  Steven Bosscher  <stevenb@suse.de>
9138         PR c++/17412
9139         * fold-const.c (fold): Do not try to fold the operand of a
9140         CLEANUP_POINT_EXPR if that operand does itself not have any
9141         operands.
9143         PR middle-end/17417
9144         * langhooks.c (lhd_decl_printable_name): Make sure that this
9145         function is called with is a decl node that has an identifier.
9146         * tree-pretty-print.c (dump_function_name): New function to
9147         wrap PRINT_FUNCTION_NAME and dump_decl_name.
9148         (print_call_name): Use it.
9150 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
9152         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
9153         "config.h" if not.
9155 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
9157         * tree-ssa-alias.c (collect_points_to_info_r): Handle
9158         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
9159         to OFFSET.
9161 2004-09-11  Richard Henderson  <rth@redhat.com>
9163         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
9164         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
9165         operand of the ADDR_EXPR.
9166         (expand_expr_real_1): Update to match.
9168 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
9170         PR target/17277
9171         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
9172         choose 64-bit version.
9174 2004-09-11  Richard Henderson  <rth@redhat.com>
9176         PR c/17396
9177         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
9179 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
9181         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
9182         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
9183         Insert @: after i.e. or e.g.
9185 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
9187         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
9188         D.xxx rather than <Dxxx>.
9190 2004-09-10  Adam Nemet  <anemet@lnxw.com>
9192         * configure.ac (AC_MSG_CHECKING(what linker to use)):
9193         in_tree_ld_is_elf should be true for LynxOS.
9194         * configure: Regenerate.
9196 2004-09-10  Adam Nemet  <anemet@lnxw.com>
9198         * Makefile.in (all.cross): Add srcextra.
9200 2004-09-10  Roger Sayle  <roger@eyesopen.com>
9202         PR middle-end/17024
9203         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
9204         floating point comparison operators.  Change aborts to gcc_asserts.
9206 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
9208         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
9210 2004-09-10  James E Wilson  <wilson@specifixinc.com>
9212         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
9213         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
9215         * convert.c (convert_to_vector): Replace recursive call with
9216         error_mark_node.
9218         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
9219         Add integer argument named constant.  Use const_tiny_rtx instead of
9220         CONST0_RTX.
9221         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
9222         and CONST1_RTX.
9223         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
9224         vector types.
9225         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
9226         of gen_rtx_raw_CONST_VECTOR.
9228 2004-09-10  Eric Christopher  <echristo@redhat.com>
9230         PR c/16046
9231         * c-parse.in (attribute): Add NULL_TREE for error case
9232         for error recovery.
9234 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
9236         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
9237         (extract_interface_info): Delete prototype.
9238         * c-decl.c (extract_interface_info): Delete stub.
9239         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
9240         it's not already been done ...
9241         (init_c_lex): ... not here.
9242         (fe_file_change): Don't call extract_interface_info.
9244 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
9246         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
9247         typedef_p and typedef_signed_p.
9248         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
9249         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
9250         Check typedef_p and typedef_signed_p, not typedef_decl.
9251         (grokfield): Check typedef_p, not typedef_decl.
9252         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
9253         not typedef_decl.
9254         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
9255         typedef_decl.
9257 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
9259         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
9261 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
9263         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
9264         temporary variables.
9266         * dbxout.c (dbxout_block): Update for
9267         current_function_func_begin_label a string.
9268         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
9269         * except.c (dw2_output_call_site_table): Likewise.
9270         * toplev.c (current_function_func_begin_label): Likewise.
9271         * tree.h (current_function_func_begin_label): Likewise.
9272         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
9274         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
9275         loop.
9277         * config/darwin.c: Include target.h.
9278         (struct machopic_indirection): Make ptr_name a string.
9279         (machopic_indirection_hash): Update for ptr_name a string.
9280         (machopic_indirection_eq): Likewise.
9281         (machopic_indirection_name): Likewise.
9282         (machopic_output_indirection): Likewise.
9283         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
9284         string.  Don't expect stub names to be in the identifier hash table.
9285         Do call strip_name_encoding before looking up entry in ID hash table.
9286         * config/t-darwin (darwin.o): Add target.h to dependencies.
9288         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
9289         of fprintf for register names.
9291         * output.h (unlikely_section_label): Delete declaration.
9292         (unlikely_text_section_name): Likewise.
9293         * varasm.c (unlikely_section_label_printed): Make static.
9294         (unlikely_section_label): Likewise.
9295         (unlikely_text_section_name): Likewise.
9296         (assemble_start_function): Use reconcat.
9298         * rtl.def (REG): Add comment to describe third field.
9300 2004-09-10  Andrew Pinski  <apinski@apple.com>
9302         * config/darwin.c (machopic_mcount_stub_name): Call
9303         machopic_indirection_name instead of making the string
9304         ourselves.
9306 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
9308         Revert
9310         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
9312             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
9313             memory tag is call clobbered, so are its aliases.
9314             (group_aliases): When two memory tags being grouped, if one is
9315             call clobbered, so are the other and its aliases.
9316             (add_may_alias): Remove call-clobbering stuff.
9317             (replace_may_alias): Likewise.
9318             (merge_pointed_to_info): Merge pt_global_mem
9320 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
9322         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
9323         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
9324         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
9325         tree-scalar-evolution.c, tree-ssa-copyrename.c,
9326         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
9328 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
9330         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
9331         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
9332         pair.  Remove match_dup from inputs.  Remove masaccs handling.
9333         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
9334         (masaccs, mdasaccs): Turn into define_insns.
9336 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
9338         * tree-tailcall.c (process_assignment): Only do accumulator transforms
9339         for floating-point types if flag_unsafe_math_optimizations.
9341 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
9343         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
9344         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
9345         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
9346         config/h8300/h8300.md, config/i386/gmm_malloc.h,
9347         config/ia64/ia64.md, config/ip2k/libgcc.S,
9348         config/mips/mips-ps-3d.md, config/mips/mips.c,
9349         config/rs6000/rs6000.c, config/s390/s390.c,
9350         config/sh/symbian.c: Fix comment typos.
9352 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
9354         * config/s390/s390.c (s390_emit_prologue): Added missing
9355         "{}" brackets.
9357 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
9359         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
9360         typos.  Follow spelling conventions.
9362 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
9364         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
9365         in diagnostic.  Don't dereference NULL TYPE_NAME.
9367 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
9369         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
9370         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
9371         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
9372         value-prof.c: Fix comment typos.  Follow spelling conventions.
9374 2004-09-10  Jan Hubicka  <jh@suse.cz>
9376         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
9377         * tree-split_edge.c (tree_split_edge): Likewise.
9378         (thread_jumps): Likewise.
9380 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
9382         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
9383         typos.
9385 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
9387         * cgraph.h (cgraph_dump_file): Do not declare.
9388         * cgraphunit.c (cgraph_dump_file): Declare as static.
9389         (init_cgraph): New.
9390         * toplev.c (cgraph_dump_file): Do not declare.
9391         (compile_file): Call init_cgraph.
9392         * tree-dump.c (dump_files): Add IPA dump file, remove
9393         XML dump of call graph.
9394         (get_dump_file_name): Support IPA dump file naming scheme.
9395         * tree.h (enum tree_dump_index): Add IPA dump file, remove
9396         XML dump of call graph.
9397         * doc/invoke.texi (Debugging Options): Document the new options.
9399 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
9401         * doc/extend.texi: Document the FR-V built-in functions.
9403 2004-09-09  James E Wilson  <wilson@specifixinc.com>
9405         * doc/sourcebuild.texi: Delete libbanshee reference.
9407 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
9409         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
9411 2004-09-09  James E Wilson  <wilson@specifixinc.com>
9413         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
9414         before calling vector_types_convertible_p.
9415         (digest_init): Check that inside_init has VECTOR_TYPE before calling
9416         vector_types_convertible_p.  Don't give another error if
9417         convert_for_assignment returns error_mark_node.
9419 2004-09-09  Roger Sayle  <roger@eyesopen.com>
9421         PR middle-end/17055
9422         * fold-const.c (build_zero_vector): New function to construct a
9423         vector (either floating point or integer) of zeros.
9424         (fold_convert): Internally, enable conversions of integer zero
9425         to arbitrary vector types, using the new build_zero_vector.
9427 2004-09-09  Roger Sayle  <roger@eyesopen.com>
9429         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
9430         expand a left shift by an immediate constant as either an ashl or
9431         a sequence of additions.
9432         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
9433         instead of calling gen_ashlsi3 with a constant directly.
9435 2004-09-09  Roger Sayle  <roger@eyesopen.com>
9437         * config/i386/i386.c (ix86_split_long_move): When optimizing for
9438         size, and the low and high parts of a DImode constant are equal,
9439         copy one register to another instead of loading the same immediate
9440         value twice.
9442 2004-09-09  Richard Henderson  <rth@redhat.com>
9444         PR middle-end/17367
9445         * function.c (assign_parm_setup_block): Only put PARALLELs into
9446         a register if use_register_for_decl.
9448 2004-09-09  Eric Christopher  <echristo@redhat.com>
9450         * ra-colorize.c (reset_lists): Move variable declaration inside
9451         ENABLE_CHECKING to avoid unused variable warnings when
9452         not --enable-checking.
9453         (check_colors): Ditto.
9455 2004-09-09  Mike Stump  <mrs@apple.com>
9457         * version.c (version_string): Bump to 4.0.0.
9458         * doc/include/gcc-common.texi (version-GCC): Likewise.
9460 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
9462         * doc/extend.texi (nothrow attribute): The attribute is not
9463         implemented in 3.2 and earlier.
9465 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
9467         * genrecog.c (compute_predicate_codes): Use op0_codes
9468         instead of codes.
9470 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
9472         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
9473         implementation changes.
9475 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
9477         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
9478         a PARALLEL instead of a SET due to added clobbers.
9480 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
9482         * reload.c (find_reloads_address): Pass correct operand to
9483         maybe_memory_address_p.
9485 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
9487         * Makefile.in: Remove libbanshee, tree-alias-*.
9488         Remove tree-alias-common.h dependencies.
9489         * common.opt: Remove -ftree-points-to.
9490         * configure.ac: Remove libbanshee.
9491         * flags.h: Remove pta_type, flag_tree_points_to.
9492         * gengtype.c (open_base_files): Remove tree-alias-type.h.
9493         * opts.c (OPT_ftree_points_to): Remove.
9494         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
9495         * tree-dfa.c: Remove tree-alias-common.h
9496         * tree-into-ssa.c: Ditto.
9497         * tree-outof-ssa.c: Ditto.
9498         * tree-ssa-copyrename.c: Ditto.
9499         * tree-ssa-live.c: Ditto.
9500         * tree-optimize.c: Ditto.
9501         * tree-ssa.c: Ditto.
9502         Remove pass_build_pta, pass_del_pta.
9503         * tree-pass.h: Ditto.
9504         * tree-ssa-alias.c: Remove tree-alias-common.h.
9505         (struct alias_stats_d): Remove pta_queries, pta_resolved.
9506         (pass_may_alias): Remove PROP_pta requirement.
9507         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
9508         (get_tmt_for): Ditto.
9509         (dump_alias_stats): Ditto.
9510         * doc/passes.texi: Remove blurb about points-to analysis.
9511         * fortran/Make-lang.in: Remove tree-alias-*.o.
9513 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
9515         * genattrtab.c (write_insn_cases): New function, split out from
9516         write_attr_case.  Correctly handle define_peepholes when printing
9517         the instruction name.
9518         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
9520 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
9522         PR target/17377
9523         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
9524         * config/cris/cris.c (cris_return_address_on_stack): New function.
9525         * config/cris/cris.md ("return"): For location of return address,
9526         also check cris_return_address_on_stack.
9528 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
9530         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
9531         calling phi_ssa_name_p.
9533 2004-09-09  Richard Henderson  <rth@redhat.com>
9535         PR c/17322
9536         * c-typeck.c (valid_compound_expr_initializer): Use only
9537         initializer_constant_valid_p, and not TREE_CONSTANT.
9538         (digest_init): Likewise.
9539         (output_init_element): Likewise.
9541 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
9543         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
9544         live_out_1, prune_hardregs_for_mode, init_one_web_common,
9545         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
9546         record_conflict, compare_and_free_webs, init_webs_defs_uses,
9547         parts_to_webs_1, parts_to_webs, reset_conflicts,
9548         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
9549         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
9550         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
9551         put_move, remove_move, combine, select_spill, colorize_one_web,
9552         try_recolor_web, insert_coalesced_conflicts, check_colors,
9553         break_precolored_alias, restore_conflicts_from_coalesce,
9554         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
9555         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
9556         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
9557         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
9558         check_df): Likewise.
9559         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
9560         real_arithmetic, real_compare, real_exponent, real_ldexp,
9561         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
9562         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
9563         real_digit, real_nan, real_maxval, round_for_format, real_convert,
9564         real_to_target, real_from_target, real_hash, encode_ieee_single,
9565         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
9566         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
9567         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
9568         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
9569         extract_insn, peep2_next_insn, peep2_reg_dead_p,
9570         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
9571         if_test_bypass_p): Likewise.
9572         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
9573         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
9574         emit_swap_insn, swap_to_top, move_for_stack_reg,
9575         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
9576         compensate_edge, convert_regs_1): Likewise.
9577         * regclass.c (init_reg_sets, init_reg_sets_1,
9578         memory_move_secondary_cost): Likewise.
9579         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
9580         Likewise.
9581         * reload.c (push_secondary_reload, find_valid_class, push_reload,
9582         operands_match_p, decompose, immune_p, find_reloads,
9583         find_reloads_toplev, find_reloads_address_1, subst_reloads,
9584         copy_replacements, refers_to_regno_for_reload_p,
9585         reg_overlap_mentioned_for_reload_p): Likewise.
9586         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
9587         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
9588         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
9589         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
9590         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
9591         do_output_reload, fixup_abnormal_edges): Likewise.
9592         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
9593         fill_slots_from_thread, relax_delay_slots): Likewise.
9594         * resource.c (mark_referenced_resources, mark_set_resources):
9595         Likewise.
9596         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
9597         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
9598         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
9599         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
9600         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
9601         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
9602         * rtlhooks.c (gen_lowpart_general): Likewise.
9603         * sbitmap.c (sbitmap_difference): Likewise.
9604         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
9605         sched_analyze, add_forward_dependence): Likewise.
9606         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
9607         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
9608         schedule_insns): Likewise.
9609         * sched-vis.c (print_pattern): Likewise.
9610         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
9611         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
9612         simplify_const_relational_operation, simplify_ternary_operation,
9613         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
9614         Likewise.
9615         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
9616         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
9617         resolve_operand_name_1, expand_return, expand_decl,
9618         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
9619         * stor-layout.c (put_pending_size, smallest_mode_for_size,
9620         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
9621         set_sizetype, get_mode_bounds): Likewise.
9623 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
9625         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
9626         * config/arm/pecoff.h, config/i386/beos-elf.h
9627         * config/i386/cygming.h, config/i386/i386-interix.h:
9628         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
9629         comment cloned from manual.
9630         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
9632 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
9634         * builtins.c (build_va_arg_indirect_ref): New function.
9635         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
9636         build_fold_indirect_ref.
9637         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
9638         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
9639         * tree.h: Declare new function.
9641 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
9643         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
9644         dumping for development builds.
9645         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
9646         development builds only.
9647         * genattrtab.c (write_eligible_delay): Fix typo in previous
9648         commit.
9649         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
9650         gcc_assert.
9652 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
9654         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
9655         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
9656         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
9657         hoist_code, extract_mentioned_regs_helper, compute_store_table,
9658         insert_store): Use gcc_assert and gcc_unreachable.
9659         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
9660         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
9661         ggc_record_overhead): Likewise.
9662         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
9663         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
9664         ggc_pop_context, clear_marks, validate_free_objects,
9665         ggc_pch_read): Likewise.
9666         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
9667         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
9668         ggc_push_context, check_cookies, ggc_collect,
9669         ggc_print_statistics): Likewise.
9670         * gimple-low.c (lower_function_body, lower_stmt,
9671         lower_bind_expr): Likewise.
9672         * gimplify.c (gimple_tree_eq, push_gimplify_context,
9673         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
9674         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
9675         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
9676         gimplify_case_label_expr, gimplify_exit_block_expr,
9677         canonicalize_component_ref, gimplify_compound_lval,
9678         gimplify_self_mod_expr, gimplify_call_expr,
9679         gimplify_init_ctor_eval, gimplify_init_constructor,
9680         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
9681         gimplify_expr, check_pointer_types_r,
9682         force_gimple_operand): Likewise.
9683         * global.c (global_alloc, build_insn_chain): Likewise.
9684         * graph.c (clean_graph_dump_file,
9685         finish_graph_dump_file): Likewise.
9686         gcov-io.c (gcov_open): Use GCOV_CHECK.
9688 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
9690         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
9692 2004-09-09  Jan Hubicka  <jh@suse.cz>
9694         middle-end/17128
9695         * tree-inline.c (expand_call_inline): Make overactive sanity check
9696         happy.
9698 2004-09-09  Jan Hubicka  <jh@suse.cz>
9700         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
9701         VIEW_CONVERT_EXPR.
9703 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
9705         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
9706         (gengtype.o): Depend on errors.h.
9707         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
9708         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
9709         attr_alt_subset_p, attr_alt_subset_of_compl_p,
9710         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
9711         write_test_expr, write_attr_value, write_eligible_delay,
9712         make_internal_attr, make_numeric_value): Likewise.
9713         * genautomata.c (regexp_name, get_str_vect,
9714         gen_presence_absence_set, automaton_decl_hash,
9715         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
9716         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
9717         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
9718         test_unit_reserv, it_is_empty_reserv_sets,
9719         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
9720         reserv_sets_and, output_cycle_reservs, get_free_state,
9721         intersected_state_reservs_p, states_union, remove_arc,
9722         copy_insn_regexp, transform_1, transform_2, transform_3,
9723         regexp_transform_func, store_alt_unit_usage,
9724         check_regexp_units_distribution, process_seq_for_forming_states,
9725         process_alts_for_forming_states, make_automaton,
9726         form_arcs_marked_by_insn, create_composed_state,
9727         set_out_arc_insns_equiv_num, partition_equiv_class,
9728         process_insn_equiv_class, set_insn_equiv_classes,
9729         units_to_automata_heuristic_distr, form_regexp,
9730         longest_path_length, output_dfa_max_issue_rate, add_vect,
9731         out_state_arcs_num, add_vect_el, output_trans_table,
9732         output_state_alts_table, output_dead_lock_vect,
9733         output_max_insn_queue_index_def,
9734         output_min_insn_conflict_delay_func,
9735         output_internal_insn_latency_func, output_print_reservation_func,
9736         output_cpu_unit_reservation_p, output_state_arcs,
9737         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
9738         make_default_insn_latency_attr,
9739         form_important_insn_automata_lists): Likewise.
9740         * genemit.c (gen_exp, output_add_clobbers,
9741         output_added_clobbers_hard_reg_p): Likewise.
9742         * genextract.c (print_path, main): Likewise.
9743         * genflags.c (gen_macro): Likewise.
9744         * gengenrtl.c: Include errors.h
9745         (type_from_format, accessor_from_format): Likewise.
9746         * gengtype.c (get_file_basename, output_mangled_typename,
9747         walk_type, write_types_process_field,
9748         write_types_local_process_field): Likewise.
9749         * genmodes.c (complete_mode): Likewise.
9750         * genopinit.c (gen_insn): Likewise.
9751         * genoutput.c (output_insn_data, check_constraint_len,
9752         constraint_len): Likewise.
9753         * genpreds.c (add_mode_tests):Likewise.
9754         * gen-protos.c (add_hash): Likewise.
9755         * genrecog.c (find_operand, find_matching_operand,
9756         validate_pattern, add_to_sequence, maybe_both_true,
9757         nodes_identical_1, merge_trees, write_switch, write_cond,
9758         write_action, is_unconditional, make_insn_sequence,
9759         debug_decision_2): Likewise.
9760         * gensupport.c (is_predicable, collect_insn_data,
9761         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
9763 2004-09-09  Jan Hubicka  <jh@suse.cz>
9765         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
9766         * cfgbuild.c (compute_outgoing_frequencies): When probability is
9767         missing, guess it.
9768         (find_many_sub_basic_blocks): Do update profile only when it is
9769         present.
9770         * predict.c (set_even_probabilities): Break out from ...
9771         (combine_predictions_for_insn): ... here; deal with
9772         !can_predict_insn_p insns.
9773         (combine_predictions_for_bb): Use set_even_probabilities.
9774         (bb_estimate_probability_locally): Break out from ....
9775         (estimate_probability): ... here.
9776         (guess_outgoing_edge_probabilities): New entry point.
9778 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
9780         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
9781         handle_braces, process_brace_body, main, used_arg,
9782         set_multilib_dir, print_multilib_info): Use fatal, not abort.
9784         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
9786         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
9787         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
9788         Morgan's theorem in last checkin.
9790 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
9791             Nathan Sidwell  <nathan@codesourcery.com>
9793         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
9794         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
9795         * timevar.c (timevar_push, timevar_pop, timevar_start,
9796         timevar_stop): Likewise.
9797         * toplev.c (default_pch_valid_p): Likewise.
9798         * tracer.c (tail_duplicate): Likewise.
9799         * tree-alias-common.c (get_alias_var_decl,
9800         get_values_from_constructor, create_alias_var, delete_alias_vars,
9801         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
9802         Likewise.
9803         * tree.c (tree_size, make_node_stat, copy_node_stat,
9804         build_int_cst_wide, integer_all_onesp, list_length, chainon,
9805         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
9806         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
9807         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
9808         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
9809         build_method_type_directly, decl_type_context, get_callee_fndecl,
9810         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
9811         tree_fold_gcd): Likewise.
9812         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
9813         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
9814         cleanup_control_expr_graph, find_taken_edge,
9815         find_taken_edge_switch_expr, phi_alternatives_equal,
9816         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
9817         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
9818         tree_split_edge, tree_verify_flow_info, thread_jumps,
9819         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
9820         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
9821         chrec_fold_multiply_poly_poly): Likewise.
9822         * tree-complex.c (extract_component, expand_complex_division,
9823         expand_complex_comparison, expand_complex_operations_1,
9824         build_replicated_const, expand_vector_operations_1): Likewise.
9825         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
9826         build_classic_dir_vector): Likewise.
9827         * tree-dfa.c (compute_immediate_uses_for_phi,
9828         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
9829         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
9830         * tree-dump.c (dequeue_and_dump): Likewise.
9831         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
9832         record_in_finally_tree, replace_goto_queue_1,
9833         maybe_record_in_goto_queue, verify_norecord_switch_expr,
9834         do_return_redirection): Likewise.
9835         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
9836         add_to_dst_predicate_list, find_phi_replacement_condition,
9837         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
9838         Likewise.
9839         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
9840         initialize_inlined_parameters, declare_return_variable,
9841         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
9842         optimize_inline_calls, copy_tree_r): Likewise.
9843         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
9844         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
9845         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
9846         tsi_split_statement_list_after, tsi_split_statement_list_before):
9847         Likewise.
9848         * tree-mudflap.c (mf_varname_tree): Likewise.
9849         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
9850         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
9851         * tree-optimize.c (tree_rest_of_compilation): Likewise.
9852         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
9853         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
9854         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
9855         Likewise.
9856         * tree-phinodes.c (resize_phi_node, add_phi_arg,
9857         remove_all_phi_nodes_for): Likewise.
9858         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
9859         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
9860         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
9861         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
9862         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
9863         generate_one_element_ref, generate_element_copy,
9864         generate_element_zero, scalarize_copy, scalarize_init,
9865         scalarize_ldst): Likewise.
9866         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
9867         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
9868         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
9869         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
9870         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
9871         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
9872         widen_bitfield, ccp_fold_builtin): Likewise.
9873         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
9874         replace_exp_1, propagate_tree_value): Likewise.
9875         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
9876         * tree-ssa-dce.c (set_control_dependence_map_bit,
9877         find_control_dependence, find_pdom, mark_operand_necessary,
9878         mark_stmt_if_obviously_necessary,
9879         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
9880         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
9881         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
9882         eliminate_redundant_computations, avail_expr_eq): Likewise.
9883         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
9884         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
9885         duplicate_blocks): Likewise.
9886         * tree-ssa-loop-im.c (for_each_index, set_level,
9887         is_call_clobbered_ref): Likewise.
9888         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
9889         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
9890         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
9891         peel_address, ptr_difference_cost, may_replace_final_value,
9892         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
9893         rewrite_use, rewrite_uses): Likewise.
9894         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
9895         check_loop_closed_ssa_use): Likewise.
9896         * tree-ssanames.c (make_ssa_name): Likewise.
9897         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
9898         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
9899         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
9900         get_indirect_ref_operands, add_stmt_operand): Likewise.
9901         * tree-ssa-pre.c (value_exists_in_set_bitmap,
9902         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
9903         phi_translate, valid_in_set, compute_antic,
9904         find_or_generate_expression, create_expression_by_pieces, insert_aux,
9905         create_value_expr_from, eliminate): Likewise.
9906         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
9907         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
9908         Likewise.
9909         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
9910         eliminate_tail_call): Likewise.
9911         * tree-vectorizer.c (vect_create_index_for_array_ref,
9912         vect_align_data_ref, vect_create_data_ref,
9913         vect_create_destination_var, vect_get_vec_def_for_operand,
9914         vect_finish_stmt_generation, vect_transform_stmt,
9915         vect_transform_loop_bound, vect_transform_loop,
9916         vect_analyze_operations): Likewise.
9917         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
9918         Likewise.
9919         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
9920         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
9921         bsi_after_labels, bsi_last): Likewise.
9922         * tree-ssa-live.c (var_union, change_partition_var,
9923         create_ssa_var_map, calculate_live_on_entry, root_var_init,
9924         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
9925         Likewise.
9926         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
9927         tpa_find_tree): Likewise.
9928         (register_ssa_partition_check): Declare.
9929         (register_ssa_partition): use it.
9930         * tree-ssa-live.c: Include errors.h.
9931         (register_ssa_partition_check): New.
9932         * tree-ssa-operands.c: Include errors.h.
9933         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
9935 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
9936             Catherine Moore  <clm@redhat.com>
9938         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
9939         (FRV_CPU_FR405): New processor enums.
9940         (frv_issue_rate, frv_acc_group): Declare.
9941         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
9942         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
9943         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
9944         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
9945         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
9946         handled by CPP_SPEC.
9947         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
9948         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
9949         (ACC_MASK): New macro.
9950         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
9951         (TARGET_MEDIA_FR450): New macro.
9952         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
9953         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
9954         (LABEL_ALIGN_AFTER_BARRIER): Define.
9955         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
9956         (IACC_FIRST, IACC_LAST): New pair of SPRs.
9957         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
9958         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
9959         (REGISTER_NAMES): Add entries for new registers.
9960         (REG_CLASS_CONTENTS): Update for new register ranges.
9961         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
9962         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
9963         (PACKING_FLAG_USED_P): Delete.
9964         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
9965         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
9966         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
9967         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
9968         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
9969         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
9970         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
9971         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
9972         (CPU_UNITS_QUERY): Define to 1.
9973         * config/frv/frv.c: Include gt-frv.h
9974         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
9975         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
9976         (frv_insn_group): New enumeration.
9977         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
9978         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
9979         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
9980         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
9981         gap left by REGSTATE_LIVE.
9982         (regstate_t): New typedef.
9983         (TARGET_MACHINE_DEPENDENT_REORG): Define.
9984         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
9985         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
9986         Initialize frv_unit_codes[] and frv_type_to_unit[].
9987         (frv_conditional_register_usage): Remove redundant fixing of
9988         accumulator registers.
9989         (frv_insn_packing_flag): Update specification.
9990         (frv_function_prologue): Don't set frv_insn_packing_flag here.
9991         Zero out frv_nops[].
9992         (frv_expand_epilogue): Remove comments about the no-longer-present
9993         SIBCALL_P argument.
9994         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
9995         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
9996         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
9997         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
9998         packing is disabled and if INSN can only issue to M1.
9999         (call_operand): Check TARGET_LONG_CALLS.
10000         (acc_operand, even_acc_operand, quad_acc_operand)
10001         (accg_operand): Simplify.  Don't accept pseudo registers.
10002         (output_move_single): Handle SPR<-zero moves.
10003         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
10004         (frv_registers_update, frv_registers_used_p): Delete.
10005         (frv_registers_set_p): Delete.
10006         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
10007         (frv_issues_to_branch_unit_p): New function.
10008         (frv_packet): New structure.
10009         (frv_cond_flags, frv_regstate_conflict_p): New functions.
10010         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
10011         (frv_registers_update_1, frv_registers_update): New functions.
10012         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
10013         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
10014         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
10015         (frv_sort_insn_group, frv_reorder_packet): New functions.
10016         (frv_pack_insns): Use frv_reorder_packet.
10017         (frv_packet_address): New variable.
10018         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
10019         (frv_register_nop, frv_reorg): New functions.
10020         (bdesc_1arg): Add __SCUTSS.
10021         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
10022         __SUBSS, __SLASS and __SCAN.
10023         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
10024         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
10025         (frv_init_builtins): Register the above builtins.
10026         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
10027         registers.  Turn the referenced accumulators into global registers.
10028         (frv_read_iacc_argument): New function.
10029         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
10030         (frv_split_iacc_move): New function.
10031         (frv_expand_builtin): Handle the new builtins.
10032         * config/frv/frv.md: Replace old schedulers with new order-independent
10033         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
10034         packing algorithm.
10035         (cpu): Add fr550, fr450 and fr405.
10036         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
10037         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
10038         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
10039         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
10040         (fnop, mnop): New patterns.
10041         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
10042         New constants.
10043         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
10044         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
10045         registers.
10046         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
10047         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
10048         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
10049         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
10050         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
10051         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
10052         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
10053         (frv_prefetch0, frv_prefetch): New patterns.
10054         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
10055         -mcpu=simple.  Add -mcpu=fr550.
10056         (MULTILIB_DIRNAMES): Update accordingly.
10057         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
10058         -mcpu=fr450.
10059         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
10060         -mlong-calls and -malign-labels options for FR-V.
10062 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
10064         PR c/8420
10065         * c-tree.h (struct c_declspecs): New.
10066         (struct c_declarator, struct c_type_name, struct c_parm): Update
10067         element types.
10068         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
10069         start_function, start_decl, build_c_parm,
10070         make_pointer_declarator): Update prototypes.
10071         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
10072         declspecs_add_scspec, declspecs_add_attrs): New.
10073         (split_specs_attrs): Remove.
10074         * c-parse.in (%union): Add dsptype.
10075         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
10076         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
10077         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
10078         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
10079         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
10080         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
10081         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
10082         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
10083         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
10084         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
10085         maybe_type_quals_attrs): Change to dsptype.
10086         (struct c_declspec_stack): New.
10087         (current_declspecs, declspec_stack): Change type.
10088         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
10089         structures.
10090         (extdefs): Likewise.
10091         (setspecs): Likewise.
10092         (fndef): Use current_declspecs for empty declspecs list.
10093         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
10094         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
10095         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
10096         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
10097         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
10098         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
10099         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
10100         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
10101         structures and helper functions.  Update comments.
10102         (typespec_nonattr): Correct comment.
10103         (maybe_type_quals_attrs, typename): Update to new structures.
10104         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
10105         shadow_tag, shadow_tag_warned, start_function, start_decl,
10106         build_c_parm, make_pointer_declarator,
10107         set_array_declarator_inner, groktypename): Update to new
10108         structures.
10109         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
10110         declspecs_add_scspec, declspecs_add_attrs): New.
10111         (split_specs_attrs): Remove.
10112         (shadow_tag_warned): Make warning for useless type names a
10113         pedwarn.  Give hard error for long, short, signed, unsigned or
10114         _Complex used with struct, union or enum in empty declaration.
10115         Make found_tag a bool.
10116         (grokdeclarator): Remove checks now done at parse time.
10118 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
10120         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
10121         c_declarator, struct c_type_name, struct c_parm): New.
10122         (build_array_declarator, set_array_declarator_inner,
10123         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
10124         start_function, start_decl, build_c_parm, build_attrs_declarator,
10125         build_function_declarator, make_pointer_declarator, c_cast_expr,
10126         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
10127         (build_id_declarator): New.
10128         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
10129         structures.
10130         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
10131         ARG_INFO_OTHERS): Remove.
10132         (build_id_declarator): New.
10133         (build_array_declarator, set_array_declarator_inner, groktypename,
10134         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
10135         grokfield, start_function, store_parm_decls_newstyle,
10136         store_parm_decls_oldstyle, store_parm_decls,
10137         build_c_parm, build_attrs_declarator, build_function_declarator,
10138         make_pointer_declarator, grokdeclarator): Update to new
10139         structures.
10140         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
10141         parmtype.
10142         (declarator, notype_declarator, after_type_declarator,
10143         parm_declarator, parm_declarator_starttypename,
10144         parm_declarator_nostarttypename, array_declarator, typename,
10145         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
10146         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
10147         parmlist_1, parmlist_2, parmlist_or_identifiers,
10148         parmlist_or_identifiers_1): Use these types.
10149         (primary, after_type_declarator, parm_declarator_starttypename,
10150         notype_declarator, component_decl, component_declarator,
10151         component_notype_declarator, typename, absdcl,
10152         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
10153         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
10155 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
10157         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
10158         in_typeof, record_maybe_used_decl, pop_maybe_used,
10159         c_expr_sizeof_expr, c_expr_sizeof_type): New.
10160         * c-decl.c (parser_obstack): New.
10161         (c_init_decl_processing): Initialize parser_obstack.
10162         (c_write_global_declarations_1): Check for used but undefined
10163         static functions.
10164         * c-parse.in (%union): Add otype.
10165         (save_obstack_position): New.
10166         (extdefs): Use it.
10167         (unary_expr): Update in_sizeof and in_alignof.  Use
10168         c_expr_sizeof_expr and c_expr_sizeof_type.
10169         (sizeof): Update in_sizeof.
10170         (alignof): Update in_alignof.
10171         (typeof): Update in_typeof.
10172         (typespec_nonreserved_nonattr): Call pop_maybe_used.
10173         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
10174         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
10175         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
10176         (build_external_ref): Set C_DECL_USED or call
10177         record_maybe_used_decl if appropriate.
10178         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
10180 2004-09-08  Eric Christopher  <echristo@redhat.com>
10182         * builtins.c: Fix prototype for fold_builtin_atan.
10184 2004-09-08  Eric Christopher  <echristo@redhat.com>
10186         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
10187         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
10188         fold_builtin_atan): New functions. Migrate function bodies...
10189         (fold_builtin_1): ... from here.
10191 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
10193         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
10194         save_size.
10196 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
10198         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
10199         * config/rs6000/power5.md (power5-lmul): Same.
10201 2004-09-08  Richard Henderson  <rth@redhat.com>
10203         PR rtl-opt/17186
10204         * function.c (expand_function_end): Have fall-off-the-end
10205         return path jump around return register setup.
10207 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
10209         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
10210         (output_return): Do not test for the presence of the 'unimp' insn.
10211         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
10212         as predicates instead of custom ones.  Return raw strings when
10213         possible.
10214         (output_sibcall): Likewise.  Concatenate strings.
10215         (output_ubranch): Remove kludge for TurboSPARC.
10216         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
10217         (output_v9branch): Likewise.
10218         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
10219         <#>: Set sparc_indent_opcode if the delay slot is filled.
10220         <(>: Likewise.
10221         <)>: New operand to emit the displacement from the saved PC on return.
10222         <@>: Remove.
10223         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
10224         (ASM_OUTPUT_OPCODE): New macro.
10225         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
10226         * config/sparc/sparc.md (normal_branch, inverted_branch,
10227         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10228         inverted_fpe_branch): Adjust call to output_cbranch.
10229         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
10230         call to output_v9branch.
10231         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
10232         (output_v9branch): Likewise.
10234 2004-09-08  Devang Patel  <dpatel@apple.com>
10236         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
10237         -segs_read_only_addr and -segs_read_write_addr.
10238         (WORD_SWITCH_TAKES_ARG): Same.
10239         (LINK_SPEC): Same.
10240         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
10241         -segs_read_write_addr.
10243 2004-09-08  Richard Henderson  <rth@redhat.com>
10245         * function.c (reference_callee_copied): New.
10246         (assign_parm_setup_reg): Use it.
10247         * calls.c (initialize_argument_information): Likewise.
10248         (emit_library_call_value_1): Likewise.
10249         * function.h (reference_callee_copied): Declare.
10251         * target.h (struct gcc_target): Add callee_copies.
10252         * target-def.h (TARGET_CALLEE_COPIES): New.
10253         (TARGET_PASS_BY_REFERENCE): Update default.
10254         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10255         * targhooks.c (hook_callee_copies_named): New.
10256         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
10257         hook_pass_by_reference_false.
10258         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
10259         * targhooks.h: Update decls.
10260         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
10261         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10262         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
10263         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
10264         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10265         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
10266         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10267         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
10268         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10269         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
10270         (mips_callee_copies): New.
10271         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10272         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
10273         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10274         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
10275         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10276         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
10277         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10278         * config/sh/sh.c (sh_callee_copies): New.
10279         (TARGET_CALLEE_COPIES): New.
10280         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10281         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
10282         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
10283         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
10284         for FUNCTION_ARG_CALLEE_COPIES.
10285         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
10287 2004-09-08  Devang Patel  <dpatel@apple.com>
10289         * tree-if-conv.c (find_phi_replacement_condition): Return true
10290         edge block.
10291         (replace_phi_with_cond_modify_expr): Select conditional expr args
10292         based on true edge basic block.
10294 2004-09-08  Jan Hubicka  <jh@suse.cz>
10296         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
10297         variables being alias set.
10299 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
10301         * final.c (shorten_branches, final, get_insn_template,
10302         output_alternate_entry_point, final_scan_insn, alter_subreg,
10303         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
10304         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
10305         * fix-header.c (lookup_std_proto): Likewise.
10306         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
10307         verify_local_live_at_start, update_life_info, mark_reg,
10308         calculate_global_regs_live, allocate_reg_life_data,
10309         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
10310         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
10311         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
10312         * fold-const.c (force_fit_type, div_and_round_double,
10313         may_negate_without_overflow_p, int_const_binop, const_binop,
10314         size_binop, size_diffop, fold_convert_const, fold_convert,
10315         invert_tree_comparison, swap_tree_comparison,
10316         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
10317         range_binop, make_range, fold_cond_expr_with_comparison,
10318         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
10319         fold_abs_const, fold_not_const, fold_relational_const, round_up,
10320         round_down): Likewise.
10321         * function.c (find_function_data, assign_stack_temp_for_type,
10322         instantiate_virtual_regs_lossage, aggregate_value_p,
10323         assign_parm_find_entry_rtl, assign_parm_setup_block,
10324         expand_function_start, expand_function_end, keep_stack_depressed,
10325         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
10327 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
10329         * Makefile.in (tree-loop-linear.o): Added.
10330         (OBJS-common): Add tree-loop-linear.o
10331         * common.opt: New flag, ftree-loop-linear.
10332         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
10333         * tree-flow.h: Add prototype for linear_transform_loops.
10334         * tree-optimize.c: Add linear transform after vectorization.
10335         * tree-pass.h: Add struct pass_linear_transform.
10336         * tree-ssa-loop.c: Add pass_linear_transform.
10337         * tree-loop-linear.c: New file.
10338         * lambda-code.c: gcc_assertify.
10339         (gcc_loop_to_lambda_loop): Handle all exit tests.
10340         Handle case where we have (invariant >= induction var).
10341         (find_induction_var_from_exit_cond): Ditto.
10343 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
10345         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
10346         memory tag is call clobbered, so are its aliases.
10347         (group_aliases): When two memory tags being grouped, if one is
10348         call clobbered, so are the other and its aliases.
10349         (add_may_alias): Remove call-clobbering stuff.
10350         (replace_may_alias): Likewise.
10351         (merge_pointed_to_info): Merge pt_global_mem
10353 2004-09-08  Jan Hubicka  <jh@suse.cz>
10355         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
10356         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
10357         (cgraph_expand_function): Remove stale cgraph edges of currently
10358         compiled function; fix non-unit-at-a-time code copying function
10359         node for later reuse.
10361 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
10363         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
10364         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
10365         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
10366         (vec_gc_free, vec_heap_free): New.
10367         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
10368         (DEF_VEC_P): Add allocator argument. Adjust.
10369         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
10370         (DEF_VEC_O): Add allocator argument. Adjust.
10371         (VEC(free)): New.
10373         * tree.h (tree): Define a GC'd vector.
10374         * lamba-code.c (lambda_loop): Likewise.
10375         * value-prof.h (histogram_value): Likewise.
10377 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
10379         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
10380         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
10381         gen_lowpart_common, gen_highpart, gen_highpart_mode,
10382         subreg_highpart_offset, operand_subword, operand_subword_force,
10383         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
10384         set_mem_alias_set, change_address_1, verify_rtx_sharing,
10385         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
10386         try_split, add_insn_after, add_insn_before, remove_insn,
10387         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
10388         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
10389         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
10390         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
10391         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
10392         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
10393         record_path_before_1, check_path_after_1, check_path_after): Likewise.
10394         * except.c (gen_eh_region, resolve_one_fixup_region,
10395         remove_unreachable_regions, convert_from_eh_region_ranges_1,
10396         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
10397         connect_post_landing_pads, sjlj_emit_function_exit,
10398         remove_exception_handler_label, remove_eh_handler,
10399         reachable_next_level, collect_one_action_chain,
10400         output_function_exception_table): Likewise.
10401         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
10402         optimize_save_area_alloca, allocate_dynamic_stack_space,
10403         probe_stack_range, hard_function_value): Likewise.
10404         * expmed.c (mode_for_extraction, store_bit_field,
10405         store_fixed_bit_field, extract_bit_field, expand_shift,
10406         expand_mult_const, expand_mult, choose_multiplier,
10407         expand_mult_highpart, expand_divmod, emit_store_flag,
10408         do_cmp_and_jump): Likewise.
10409         * expr.c (convert_move, convert_modes, move_by_pieces,
10410         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
10411         move_block_from_reg, gen_group_rtx, emit_group_load,
10412         emit_group_move, emit_group_store, use_reg, use_regs,
10413         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
10414         emit_move_insn, emit_move_insn_1, emit_push_insn,
10415         expand_assignment, store_expr, count_type_elements,
10416         store_constructor, store_field, safe_from_p, expand_var,
10417         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
10419 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
10421         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
10422         gcc_assert and gcc_unreachable.
10423         * ddg.c (create_ddg_dependence, add_deps_for_def,
10424         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
10425         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
10426         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
10427         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
10428         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
10429         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
10430         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
10431         dataflow_set_copy, hybrid_search, diagnostic.c,
10432         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
10433         * dojump.c (do_jump): Likewise.
10434         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
10435         compute_dom_fast_query, calculate_dominance_info,
10436         free_dominance_info, get_immediate_dominator,
10437         set_immediate_dominator, get_dominated_by,
10438         redirect_immediate_dominators, nearest_common_dominator,
10439         dominated_by_p, verify_dominators, recount_dominator,
10440         iterate_fix_dominators, add_to_dominance_info,
10441         delete_from_dominance_info): Likewise.
10442         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
10443         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
10444         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
10445         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
10446         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
10447         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
10448         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
10449         output_call_frame_info, output_loc_operands, build_cfa_loc,
10450         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
10451         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
10452         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
10453         splice_child_die, attr_checksum, same_dw_val_p,
10454         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
10455         unmark_dies, value_format, output_loc_list, output_die,
10456         output_pubnames, output_aranges, base_type_die, is_base_type,
10457         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
10458         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
10459         field_byte_offset, add_data_member_location_attribute,
10460         add_const_value_attribute, rtl_for_decl_location,
10461         add_location_or_const_value_attribute, add_byte_size_attribute,
10462         add_bit_offset_attribute, add_bit_size_attribute,
10463         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
10464         decl_start_label, gen_formal_parameter_die,
10465         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
10466         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
10467         force_decl_die, force_type_die, gen_decl_die,
10468         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
10469         dwarf2out_finish): Likewise.
10471 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
10473         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
10474         * builtins.c: Include tree-mudflap.h.
10476 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
10478         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
10479         force operand 0.0 into register in XFmode. Also do not force
10480         operand 0.0 into register if !TARGET_CMOVE.
10481         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
10482         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
10483         implement ftst x87 instruction.
10484         (*fp_jcc_7): New insn pattern. Change corresponding split
10485         pattern to handle "general_operand" instead of
10486         "nonimmediate_operand".
10488 2004-09-08  Ben Elliston  <bje@au.ibm.com>
10490         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
10492 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
10494         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
10495         generated from standard va_arg expansion.
10496         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
10497         marked nodes.
10498         (mf_varname_tree, mf_file_function_line_tree): Add some support
10499         for column numbers if compiled with USE_MAPPED_LOCATION.
10501 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
10503         * c-decl.c (groktypename_in_parm_context): Remove function.
10504         * c-tree.h (groktypename_in_parm_context): Remove prototype.
10506 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
10508         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
10509         * c-parse.in: Include c-common.h instead of objc-act.h.
10510         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
10511         myparms, myparm): Remove %type declarations.
10512         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
10513         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
10514         declarations.
10515         (objc_inherit_code, objc_public_flag): Remove.
10516         (typespec_nonreserved_nonattr): Call
10517         objc_get_protocol_qualified_type() instead of get_static_reference()
10518         and get_protocol_reference().
10519         (stmt_nocomp): Call grokparm() on @catch parameter.
10520         (objcdef): Move semantic action to objc_finish_implementation().
10521         (classdef): Move semantic action to objc_start_class_interface(),
10522         objc_continue_interface(), objc_finish_interface(),
10523         objc_start_class_implementation(), objc_continue_implementation(),
10524         objc_start_category_interface() and
10525         objc_start_category_implementation().
10526         (protocoldef): Move semantic actions to objc_start_protocol() and
10527         objc_finish_interface().
10528         (ivar_decl_list): Remove nonterminal.
10529         (visibility_spec): Move semantic actions to objc_set_visibility().
10530         (ivar_decls): Remove assignment to $$.
10531         (ivar_decl): Rephrase in terms of component_decl; call
10532         objc_add_instance_variable().
10533         (ivars, ivar_declarator): Remove nonterminals.
10534         (opt_semi): New nonterminal.
10535         (methodtype): Remove semantic actions.
10536         (methoddef): Move semantic actions to objc_set_method_type(),
10537         objc_start_method_definition() and objc_finish_method_definition().
10538         (methodproto): Move semantic actions to objc_set_method_type() and
10539         objc_add_method_declaration().
10540         (methoddecl): Use objc_typename instead of typename; move semantic
10541         actions to objc_build_method_signature().
10542         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
10543         (optparmlist): Express in terms of optparms and optellipsis.
10544         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
10545         nonterminals.
10546         (keyworddecl): Use objc_typename instead of typename.
10547         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
10548         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
10550 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
10552         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
10553         (MD_FALLBACK_FRAME_STATE_FOR): Update.
10554         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
10555         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
10556         (MD_FROB_UPDATE_CONTEXT): Remove default.
10557         (uw_update_context_1): Instead #ifdef invocation.
10558         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
10559         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
10560         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
10561         (MD_UNWIND_SUPPORT): Undefine this instead.
10562         * config/i386/gnu.h: Likewise.
10563         * config/alpha/linux-unwind.h: New file, macro converted to
10564         function, extracted from..
10565         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
10566         (MD_UNWIND_SUPPORT): Define.
10567         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
10568         * config/i386/linux-unwind.h, config/i386/linux.h,
10569         config/i386/linux64.h: Likewise.
10570         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
10571         MD_HANDLE_UNWABI too.
10572         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
10573         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
10574         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
10575         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
10576         * config/sparc/linux-unwind.h, config/sparc/linux.h,
10577         config/sparc/linux64.h: Likewise.
10578         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
10579         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
10580         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
10581         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
10582         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
10584 2004-09-07  Jan Hubicka  <jh@suse.cz>
10586         * cse.c (fold_rtx):  Avoid building of
10587         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
10589         * tree-ssa-pre.c (grand_bitmap_obstack): New.
10590         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
10591         (init_pre): Initialize obstack.
10592         (fini_pre): Free obstack.
10594 2004-09-07  David Daney  <ddaney@avtrex.com>
10596         * config.gcc: Added support for --with-divide=[breaks|traps] for
10597         mips targets.
10598         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
10599         (TARGET_DIVIDE_TRAPS): New macro.
10600         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
10601         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
10602         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
10603         GENERATE_DIVIDE_TRAPS.
10604         (mips_output_division): Emit conditional trap if
10605         GENERATE_DIVIDE_TRAPS is set.
10606         * doc/install.texi: Document --with-divide.
10607         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
10609 2004-09-07  Caroline Tice  <ctice@apple.com>
10611         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
10612         EDGE_CROSSING, to flags test case.
10614 2004-09-07  Jan Hubicka  <jh@suse.cz>
10616         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
10617         class too.
10619 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
10621         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
10622         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
10623         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
10624         or gcc_unreachable.
10625         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
10626         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
10627         alloc_aux_for_edges, free_aux_for_edges): Likewise.
10628         * cfgcleanup.c (try_forward_edges,
10629         merge_blocks_move_predecessor_nojumps,
10630         merge_blocks_move_successor_nojumps): Likewise.
10631         * cfgexpand.c (expand_gimple_cond_expr,
10632         expand_gimple_tailcall): Likewise.
10633         * cfghooks.c (duplicate_block): Likewise.
10634         * cfglayout.c (record_effective_endpoints,
10635         insn_locators_initialize, change_scope, fixup_reorder_chain,
10636         verify_insn_chain, fixup_fallthru_exit_predecessor,
10637         duplicate_insn_chain, cfg_layout_finalize): Likewise.
10638         * cfgloopanal.c (check_irred): Likewise.
10639         * cfgloop.c (superloop_at_depth, flow_loops_free,
10640         flow_loop_entry_edges_find, flow_loops_find,
10641         flow_loop_outside_edge_p, get_loop_body,
10642         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
10643         get_loop_exit_edges, num_loop_branches, cancel_loop,
10644         verify_loop_structure): Likewise.
10645         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
10646         duplicate_loop_to_header_edge, create_preheader,
10647         create_loop_notes): Likewise.
10648         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
10649         edirect_branch_edge, force_nonfallthru_and_redirect,
10650         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
10651         commit_edge_insertions, commit_edge_insertions_watch_calls,
10652         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
10653         cfg_layout_redirect_edge_and_branch_force,
10654         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
10655         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
10656         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
10657         cgraph_varpool_node): Likewise.
10658         * cgraphunit.c (cgraph_finalize_function,
10659         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
10660         cgraph_expand_function, cgraph_remove_unreachable_nodes,
10661         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10662         cgraph_mark_inline, cgraph_expand_all_functions,
10663         cgraph_build_static_cdtor): Likewise.
10664         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
10665         simplify_logical, distribute_notes, insn_cuid): Likewise.
10666         * conflict.c (conflict_graph_add, print_conflict): Likewise.
10667         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
10668         coverage_checksum_string): Likewise.
10669         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
10670         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
10671         cse_cc_succs, cse_condition_code_reg): Likewise.
10672         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
10673         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
10674         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
10675         cselib_record_set): Likewise.
10677 2004-09-07  Jan Hubicka  <jh@suse.cz>
10679         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
10681 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
10683         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
10684         fold_convert.
10685         (fold_builtin_strpbrk): Likewise.
10686         * expr.c (array_ref_low_bound): Likewise.
10687         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
10688         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
10689         * tree-sra.c (generate_element_zero): Likewise.
10690         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
10691         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
10692         add_old_iv_candidates, add_iv_candidates): Likewise.
10693         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
10695 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
10697         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
10698         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
10699         c_expand_expr, boolean_increment, nonnull_check_p,
10700         check_function_arguments_recurse, fold_offsetof_1): Likewise.
10701         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
10702         builtin_define_type_max): Likewise.
10703         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
10704         implicit_decl_warning, builtin_function, build_compound_literal,
10705         complete_array_type, grokdeclarator, get_parm_info,
10706         start_function, store_parm_decls_oldstyle,
10707         c_write_global_declarations): Likewise.
10708         * c-format.c (get_constant, decode_format_attr,
10709         maybe_read_dollar_number, get_flag_spec, check_format_arg,
10710         check_format_types, format_type_warning,
10711         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
10712         init_dynamic_diag_info, handle_format_attribute): Likewise.
10713         * c-gimplify.c (push_context, pop_context, finish_bc_block):
10714         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
10715         * c-objc-common.c (c_tree_printer): Likewise.
10716         * c-pch.c (pch_init): Likewise.
10717         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
10718         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
10719         * c-typeck.c (c_incomplete_type_error, composite_type,
10720         common_pointer_type, common_type, same_translation_unit_p,
10721         tagged_types_tu_compatible_p, finish_init, pop_init_level,
10722         set_designator, set_nonincremental_init_from_string,
10723         process_init_element, c_finish_if_stmt): Likewise.
10724         * caller-save.c (init_caller_save, save_call_clobbered_regs,
10725         insert_restore, insert_save, insert_one_insn): Likewise.
10726         * calls.c (emit_call_1, compute_argument_block_size,
10727         precompute_arguments, expand_call, emit_library_call_value_1,
10728         store_one_arg): Likewise.
10730 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
10732         * configure.ac (enable-checking): Add release option. Reorganize
10733         to avoid repetition.
10734         * configure: Rebuilt.
10735         * doc/install.texi (enable-checking): Amend documentation.
10737 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
10739         PR bootstrap/17313
10740         * Makefile.in (specs.ready): Depend on cc1$(exeext).
10742 2004-09-06  James E Wilson  <wilson@specifixinc.com>
10744         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
10745         movdf_hardfloat_32bit): Split fG into two alternatives.
10746         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
10748         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
10750 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
10752         * final.c (output_in_slot): Delete.
10753         (final_scan_insn): Revert 2004-09-03 change.
10754         (output_asm_insn): Likewise.
10755         * config/sparc/sparc.c (output_return): Likewise.
10756         (output_sibcall): Likewise.
10758 2004-09-06  Jan Hubicka  <jh@suse.cz>
10760         * loop.c (loop_dump_aux): Do not print RTL when not available.
10761         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
10762         frontend specific type nodes.
10763         (produce_memory_decl_rtl): Break out from ...
10764         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
10765         (get_computation_at): Avoid random tree sharing.
10766         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
10768 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
10770         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
10771         unnecessary commands.
10773 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
10775         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
10776         (bitmap.o): Likewise.
10778 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
10780         Unify the management of RTL and tree-level dump files.
10782         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
10783         Don't print function name to the dump file, the pass manager
10784         would do this for us. Add code from the top of
10785         rest_of_compilation, up to the initial RTL dump.
10786         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
10787         close the DFI_sibling dump file.
10788         (rest_of_compilation): Don't do that here.  Remove code up to the
10789         initial RTL dump.
10790         (init_optimization_passes): Remove.
10791         (pass_rest_of_compilation): Change pass name to NULL.
10792         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
10793         Do not call init_optimization_passes.
10794         * toplev.h (init_optimization_passes): Remove.
10796         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
10797         finish_graph_dump_file): Remove SUFFIX parameter.
10798         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
10799         finish_graph_dump_file): Likewise.
10801         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
10802         * cfgexpand.c (pass_expand): Adjust.
10803         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
10804         * passes.c (pass_rest_of_compilation): Adjust.
10805         * predict.c (pass_profile): Adjust.
10806         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
10807         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
10808         pass_split_crit_edges, pass_warn_function_return): Adjust.
10809         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
10810         * tree-dfa.c (pass_referenced_vars): Adjust.
10811         * tree-eh.c (pass_lower_eh): Adjust.
10812         * tree-if-conv.c (pass_build_ssa): Adjust.
10813         * tree-into-ssa.c (pass_build_ssa): Adjust.
10814         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10815         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
10816         * tree-nrv.c (pass_nrv): Adjust.
10817         * tree-optimize.c (pass_gimple, pass_all_optimizations,
10818         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
10819         pass_init_datastructures): Adjust.
10820         * tree-outof-ssa.c (pass_del_ssa): Adjust.
10821         * tree-profile.c (pass_tree_profile): Adjust.
10822         * tree-sra.c (pass_sra): Adjust.
10823         * tree-ssa-alias.c (pass_may_alias): Adjust.
10824         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
10825         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
10826         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
10827         * tree-ssa-dom.c (pass_dominator): Adjust.
10828         * tree-ssa-dse.c (pass_dse): Adjust.
10829         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
10830         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
10831         * tree-ssa-loop-ch.c (pass_ch): Adjust.
10832         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
10833         pass_loop_done, pass_complete_unroll, pass_iv_canon,
10834         pass_iv_optimize, pass_vectorize): Adjust.
10835         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
10836         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
10837         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
10838         pass_late_warn_uninnitialized): Adjust.
10839         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
10841         * Makefile.in (tree-dump.o): Add new dependencies.
10842         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
10843         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
10844         Likewise.
10845         * toplev.c (dump_file_name): New.
10846         * tree-dump.c (dump_enable_all): Add LETTER parameter.
10847         (struct dump_file_info): Add NUM and LETTER fields.
10848         (dump_files): Adjust and add RTL dump files.
10849         (dump_register): Add NUM and LETTER fields.
10850         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
10851         (dump_begin): Use get_dump_file_name.
10852         (dump_switch_p_1): Adjust call to dump_enable_all.
10853         * tree-dump.h (dump_register): Adjust prototype.
10854         * tree-optimize.c (register_one_dump_file): Take dump file index.
10855         Support flags for RTL dumps.
10856         (register_dump_files): Fill in NUM field of struct dump_file_info.
10857         Track properties both when the gate is executed and when it is not.
10858         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
10859         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
10860         dumps of RTL.
10861         * tree-pass.h (dump_file_name): New.
10862         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
10863         New.
10865         * Makefile.in (passes.o): Add new dependencies.
10866         * passes.c (struct dump_file_info, enum dump_file_index,
10867         dump_file_tbl, init_optimization_passes): Remove.
10868         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
10869         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
10870         dump_enabled_p.
10871         (finish_optimization_passes): Update finish_graph_dump_file loop.
10872         (enable_rtl_dump_file): Remove.
10873         * tree-dump.c (dump_files): Adjust and add RTL dump files.
10874         (enable_rtl_dump_file): Add here.
10875         * tree.h (enum tree_dump_index): Add RTL dump file indices.
10876         * doc/invoke.texi (Debugging options): Document new RTL debugging
10877         options.  Update.
10879 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
10881         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
10882         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
10883         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
10884         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
10885         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
10886         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
10887         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
10888         vec.h: Fix comment formatting.
10890 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
10892         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
10893         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
10894         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
10895         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
10896         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
10897         tree-ssa-loop-niter.c, tree-ssa-operands.c,
10898         tree-ssa-operands.h, tree-ssa-propagate.c,
10899         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
10900         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
10902 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
10904         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
10905         vectorizer is enabled.
10907 2004-09-05  Andreas Jaeger  <aj@suse.de>
10909         * tree-if-conv.c: Spell check comments and clean up whitespace.
10911 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10913         * tree-ssa-loop-ivopts.c: New file.
10914         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
10915         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
10916         target_pres_cost, target_spill_cost): Declare.
10917         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
10918         spill_cost): Renamed to ...
10919         (target_avail_regs, target_res_regs, target_small_cost,
10920         target_pres_cost, target_spill_cost): ... and exported.
10921         (init_set_costs, global_cost_for_size): Work with renamed variables.
10922         * common.opt (flag_ivopts): New flag.
10923         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
10924         REF_ORIGINAL.
10925         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
10926         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
10927         generating SSA form.
10928         (force_gimple_operand): New function.
10929         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
10930         * tree-cfg.c (stmt_bsi): New function.
10931         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
10932         PARAM_IV_MAX_CONSIDERED_USES): New.
10933         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
10934         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
10935         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
10936         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
10937         * tree-nested.c (build_addr): Export.
10938         * tree-optimize.c (init_tree_optimization_passes): Add
10939         pass_iv_optimize.
10940         * tree-pass.h (pass_iv_optimize): Declare.
10941         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
10942         IMAGPART_EXPR.
10943         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
10944         as a phi node argument.
10945         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
10946         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
10947         functions.
10948         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
10949         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
10950         pass_iv_optimize): New pass.
10951         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
10952         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
10953         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
10954         * tree.h (REF_ORIGINAL): New macro.
10955         (build_int_cst_type, unsigned_type_for, zero_p,
10956         cst_and_fits_in_hwi, build_addr): Declare.
10957         * doc/invoke.texi (-fivopts): Document.
10958         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
10959         PARAM_IV_MAX_CONSIDERED_USES): Document.
10960         * doc/passes.texi: Document induction variable optimizations pass.
10962 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10964         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
10965         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
10966         * c-common.c (c_common_attribute_table): Accept parameters to
10967         sentinel attribute.
10968         (check_function_sentinel, handle_sentinel_attribute): Likewise.
10969         * doc/extend.texi: Update accordingly.
10971 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10973         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
10974         New.
10975         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
10976         attribute.
10977         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
10978         New functions.
10979         (c_common_attribute_table): Add `sentinel' attribute.
10980         (check_function_arguments): Handle `sentinel' attribute.
10981         * doc/extend.texi: Document `sentinel' attribute.
10983 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
10985         * configure: Regenerated.
10987 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10989         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
10991         * tree.c (save_expr): No longer TREE_READONLY.
10993 2004-09-04  Jan Hubicka  <jh@suse.cz>
10995         * passes.c (rest_of_clean_state):  Fix merge conflict made during
10996         commiting the patch.
10998 2004-09-04  Jan Hubicka  <jh@suse.cz>
11000         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
11002 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
11004         * doc/md.texi (shift patterns): New anchor.  Add reference to
11005         TARGET_SHIFT_TRUNCATION_MASK.
11006         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
11007         * target.h (shift_truncation_mask): New target hook.
11008         * targhook.h (default_shift_truncation_mask): Declare.
11009         * targhook.c (default_shift_truncation_mask): Define.
11010         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
11011         (TARGET_INITIALIZER): Include it.
11012         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
11013         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
11014         reject all out-of-range values.  Fix sign-extension code for modes
11015         whose width is smaller than HOST_BITS_PER_WIDE_INT.
11016         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
11017         (expand_superword_shift, expand_subword_shift): Likewise.
11018         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
11019         (expand_binop): Use them to implement double-word shifts.
11020         * config/arm/arm.c (arm_shift_truncation_mask): New function.
11021         (TARGET_SHIFT_TRUNCATION_MASK): Define.
11023 2004-09-04  Jan Hubicka  <jh@suse.cz>
11025         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
11026         (mix): New macro copied from hashtab.c
11027         (iterative_hash_hashval_t, iterative_hash_pointer,
11028         iterative_hash_host_wide_int): New functions based on hashtab.c
11029         implementation.
11031 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
11033         * config/mips/mips.md (mask): New mode attribute.
11034         (zero_extendsidi2): Add memory alternative.
11035         (*zero_extendsidi2_mem): Delete.
11036         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
11037         memory_operand in the TARGET_MIPS16 check.
11038         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
11039         Redefine using :GPR and :SHORT.
11040         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
11042 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
11044         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
11045         using rint_optab.
11046         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
11047         expand_builtin_mathfn.
11048         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
11049         btrunc?f patterns for btrunc_optab. Implement rint_optab using
11050         rint?f patterns.
11051         * optabs.c (init_optabs): Initialize rint_optab.
11052         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
11053         Add new OTI_rint.
11054         (btrunc_optab): Rename macro from trunc_optab.
11055         (rint_optab): Define corresponding macro.
11057         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
11058         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
11060         * config/i386/i386-protos.h (emit_i387_cw_initialization):
11061         Change prototype. Add new int parameter.
11062         * config/i386/i386.c (emit_i387_cw_initialization):
11063         Handle new rounding modes.
11065         * config/i386/i386.h (enum fp_cw_mode): Delete.
11066         (MODE_NEEDED): Handle new rounding modes.
11067         (EMIT_MODE_SET): Change condition to handle new rounding modes.
11069         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
11070         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
11071         represent different rounding modes of frndint insn.
11072         (type): Add frndint type.
11073         (i387, length, memory): Handle this type.
11074         (i387_cw): New attribute definition.
11075         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
11076         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
11077         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
11078         Add "i387_cw" attribute defined to "trunc".
11079         (x86_fnstcw_1): Remove comment.
11080         (*frndintxf2): Rename insn definition to frndintxf2. Move
11081         insn definition near rint?f2 expanders.
11082         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
11083         rintf and rintl built-ins as inline x87 intrinsics.
11084         (frndintxf2_floor): New pattern to implement floor rounding
11085         mode with frndint x87 instruction.
11086         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
11087         floorf and floorl built-ins as inline x87 intrinsics.
11088         (frndintxf2_ceil): New pattern to implement ceil rounding
11089         mode with frndint x87 instruction.
11090         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
11091         ceilf and ceill built-ins as inline x87 intrinsics.
11092         (frndintxf2_trunc): New pattern to implement trunc rounding
11093         mode with frndint x87 instruction.
11094         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
11095         truncf and truncl built-ins as inline x87 intrinsics.
11096         (frndintxf2_mask_pm): New pattern to implement rounding
11097         mode with exceptions with frndint x87 instruction.
11098         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
11099         implement nearbyint, nearbyintf and nearbyintl built-ins as
11100         inline x87 intrinsics.
11102 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
11104         * config/mips/mips.md (SHORT): New mode macro.
11105         (size): New mode attribute.
11106         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
11107         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
11108         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
11109         !ISA_HAS_SEB_SEH.
11110         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
11111         *extend[qh]isi2_hw patterns and extending them to di.
11112         (extendqihi2): Implement as define_insn_and_split that produces
11113         extendqisi2 after reload.
11115 2004-09-03  Devang Patel  <dpatel@apple.com>
11117         * Makefile.in (OBJS-common): Add tree-if-conv.o
11118         (tree-if-conv.o): New rule.
11119         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
11120         (get_loop_body_in_bfs_order): New.
11121         * cfgloop.h (get_loop_body_in_bfs_order): New.
11122         * tree-flow.h (enum move_pos): Move here from ..
11123         * tree-ssa-loop-im.c (enum move_pos): here.
11124         (movement_possibility): Make externally visible.
11125         * tree-optimize.c (init_tree_optimization_passes): New entry for
11126         if conversion pass.
11127         * tree-pass.h (pass_if_conversion): New.
11128         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
11129         * tree-if-conv.c: New file.
11130         * doc/passes.texi: Document tree if-conversion pass.
11131         * doc/tree-ssa.texi: Same.
11133 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
11135         PR target/14925:
11136         Makefile.in (LIB2ADDEHSTATIC): New.
11137         (LIB2ADDEHSHARED): New.
11138         (LIBUNWIND): New.
11139         (LIBUNWINDDEP): New.
11140         (SHLIBUNWIND_LINK): New.
11141         (SHLIBUNWIND_INSTALL): New.
11142         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
11143         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
11144         (clean): Remove libunwind*
11145         (stage1-start): Remove and copy stage1/libunwind*.
11146         (stage2-start): Remove and copy stage2/libunwind*.
11147         (stage3-start): Remove and copy stage3/libunwind*.
11148         (stage4-start): Remove and copy stage4/libunwind*.
11149         (stageprofile-start): Remove and copy stageprofile/libunwind*.
11150         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
11152         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
11153         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
11154         tmake_file if --with-system-libunwind isn't used.
11156         * config/ia64/t-glibc-libunwind: New file.
11157         * config/t-libunwind-elf: Likewise.
11158         * unwind-compat.c: Likewise.
11159         * unwind-compat.h: Likewise.
11160         * unwind-dw2-fde-compat.c: Likewise.
11162         * config/ia64/t-glibc (LIB2ADDEH): Updated.
11163         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
11165         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
11166         aliases if needed.
11167         * unwind-dw2-fde-glibc.c: Likewise.
11168         * unwind-dw2.c: Likewise.
11170         * config/t-libunwind (LIB2ADDEH): Updated.
11171         (LIB2ADDEHSTATIC): New.
11172         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
11173         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
11175         * configure.ac: Change --enable-libunwind-exceptions to
11176         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
11177         * configure: Regenerated.
11178         * config.in: Updated.
11180         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
11181         above and mention --with-system-libunwind.
11182         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
11183         removed in gcc 3.4.3 and later.
11185         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
11186         USE_LIBUNWIND_EXCEPTIONS is defined.
11188         * mklibgcc.in: Support libunwind.
11190 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
11192         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
11193         m_NOCONA.
11195 2004-09-03  Richard Henderson  <rth@redhat.com>
11197         PR middle-end/9997
11198         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
11199         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
11200         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
11201         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
11202         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
11203         resize_stack_vars_conflict, add_stack_var_conflict,
11204         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
11205         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
11206         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
11207         expand_one_static_var, expand_one_hard_reg_var,
11208         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
11209         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
11210         (expand_used_vars): Rewrite.
11211         * Makefile.in (cfgexpand.o): Update dependencies.
11213 2004-09-04  Jan Hubicka  <jh@suse.cz>
11215         * cfg.c (free_edge): Use ggc_free.
11216         (expunge_block): Use ggc_free.
11217         * passes.c (rest_of_clean_state): Free after compilation.
11218         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
11219         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
11221 2004-09-03  James E Wilson  <wilson@specifixinc.com>
11223         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
11224         DECL_EXTERNAL check.
11226 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
11228         * final.c (output_in_slot): New global variable.
11229         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
11230         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
11231         'output_in_slot' before invoking output_asm_insn.
11232         (output_asm_insn): Add a space after the tab if 'output_in_slot'
11233         is set.
11234         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
11235         final_scan_insn.
11236         (output_sibcall): Likewise.
11238 2004-09-03  Jan Hubicka  <jh@suse.cz>
11240         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
11241         * tree-ssanames (init_ssanames): Likewise.
11243 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
11245         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
11246         objc_declare_protocols, objc_start_protocol,
11247         objc_start_class_interface, objc_start_category_interface,
11248         objc_continue_interface, objc_finish_interface,
11249         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
11250         objc_start_class_implementation, objc_start_category_implementation,
11251         objc_continue_implementation, objc_finish_implementation,
11252         objc_add_method_declaration, objc_start_method_definition,
11253         objc_finish_method_definition, objc_build_keyword_decl,
11254         objc_build_method_signature, objc_build_encode_expr,
11255         objc_build_protocol_expr, objc_build_selector_expr,
11256         objc_build_message_expr, objc_build_string_object,
11257         objc_get_class_reference, objc_get_protocol_qualified_type,
11258         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
11260 2004-09-03  James E Wilson  <wilson@specifixinc.com>
11262         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
11264         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
11265         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
11266         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
11267         (mips_recip1_<fmt>): Use frdiv1 type.
11268         (mips_recip2_<fmt>): Use frdiv2 type.
11269         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
11270         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
11271         and frsqrt1.
11272         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
11274 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
11276         * reload.c (find_reloads): Swap operand_loc pointers for
11277         find_dummy_reload if we have swapped two operands.
11279 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
11281         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
11282         to get the tablejump-insn before the jump-table label.
11284 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
11286         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
11287         objc_declare_protocols, objc_build_message_expr,
11288         objc_finish_message_expr, objc_build_selector_expr,
11289         objc_build_protocol_expr, objc_build_encode_expr,
11290         objc_build_string_object, objc_get_protocol_qualified_type,
11291         objc_get_class_reference, objc_get_class_ivars,
11292         objc_start_class_interface, objc_start_category_interface,
11293         objc_start_protocol, objc_continue_interface, objc_finish_interface,
11294         objc_start_class_implementation, objc_start_category_implementation,
11295         objc_continue_implementation, objc_finish_implementation,
11296         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
11297         objc_add_method_declaration, objc_start_method_definition,
11298         objc_finish_method_definition, objc_add_instance_variable,
11299         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
11300         objc_finish_try_stmt, objc_begin_catch_clause,
11301         objc_finish_catch_clause, objc_build_finally_clause,
11302         objc_build_synchronized, objc_static_init_needed_p,
11303         objc_generate_static_init_call): New prototypes.
11305 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
11307         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
11308         is only one reg.
11309         (ia64_function_value): Ditto.
11311 2004-09-03  Jan Beulich  <jbeulich@novell.com>
11313         * config.gcc: Resurrect NetWare as a target. Handle special case of
11314         Novell linker to be used (specified through --with-ld=) and threading
11315         model of either Posix (default) or NKS.
11316         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
11317         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
11318         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
11319         * config/i386/netware.c, config/i386/netware.h: New.
11320         * config/i386/nwld.c, config/i386/nwld.h: New.
11321         * config/i386/netware-crt0.c: New.
11322         * config/i386/netware-libgcc.c: New.
11323         * config/i386/netware-libgcc.def: New.
11324         * config/i386/netware-libgcc.exp: New.
11325         * config/i386/t-netware, config/i386/t-nwld: New.
11326         * gthr-nks.h: New.
11327         * doc/install.texi: Document NKS threading model.
11329 2004-09-03  Jan Beulich  <jbeulich@novell.com>
11331         PR c/7054
11332         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
11333         * tree.h (initial_max_fld_align): Declare
11334         * stor-layout.c (initial_max_fld_align): Define and initialize.
11335         (maximum_field_alignment): Initialize to the same value.
11336         * common.opt: Add -fpack-struct= variant of switch.
11337         * opts.c: Handle -fpack-struct= variant of switch.
11338         * c-pragma.c: Change #pragma pack() handling so that it becomes
11339         compatible to other compilers: accept individual 'push' argument,
11340         make final pop restore (command line) default, correct interaction
11341         of push/pop and sole specification of a new alignment (so that the
11342         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
11343         to #pragma pack(push, <n>).
11344         * doc/extend.texi: New node "Structure-Packing Pragmas" under
11345         "Pragmas", describing #pragma pack.
11346         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
11347         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
11348         Document new TARGET_DEFAULT_PACK_STRUCT.
11350 2004-09-03  Devang Patel  <dpatel@apple.com>
11352         * dwarf2out.c (gen_field_die). Equate decl number to die.
11354 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
11356         PR target/15832
11357         * global.c (modify_reg_pav): New function.
11358         (make_accurate_live_analysis): Call the new function.  Move pavin
11359         modification by earlyclobber set into the new function.
11361 2004-09-03  Andreas Schwab  <schwab@suse.de>
11363         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
11364         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
11365         extended.
11367 2004-09-02  Jan Beulich  <jbeulich@novell.com>
11369         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
11370         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
11371         not unwind code specific ones.
11372         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
11373         Remove unwind code specific dependencies.
11374         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
11375         Remove gbl-ctors.h.
11376         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
11377         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
11378         * tsystem.h: Declare memcpy and memset when inhibit_libc.
11380 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
11382         * combine.c (try_combine): Delay modifying of insns which cannot
11383         be easily undone.
11385 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
11387         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
11388         tree-loop-im.
11389         * gcc/tree-ssa-loop.c: Ditto
11390         * gcc/tree-ssa-loop-ivcanon.c: Ditto
11391         * gcc/doc/invoke.texi: Ditto.
11393 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
11395         * c-decl.c (store_parm_decls_newstyle): Make static.
11396         (store_parm_decls_from): New function.
11397         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
11398         (store_parm_decls_from): New prototype.
11400 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
11402         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
11403         HImode with STRICT_ALIGNMENT.
11405 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
11407         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
11408         (TARGET_OS_CPP_BUILTINS): Likewise.
11409         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
11410         TARGET_BPABI_CPP_BUILTINS.
11412 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
11414         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
11416 2004-09-02  Eric Christopher  <echristo@redhat.com>
11418         * builtins.c (expand_builtin_cabs): Delete.
11419         (expand_builtin): If unable to fold the values do a normal
11420         library call for builtin_cab*.
11421         (fold_builtin_cabs): Depend on optimize and optimize_size.
11422         * optabs.c (expand_cmplxdiv_straight): Delete.
11423         (expand_cmplxdiv_wide): Ditto.
11424         (expand_vector_binop): Ditto.
11425         (expand_vector_unop): Ditto.
11426         (expand_complex_abs): Delete.
11427         (expand_binop): Remove calls to above functions.
11428         Remove open coding of complex arithmetic.
11429         (expand_unop): Ditto.
11430         * optabs.h: Remove prototypes.
11432 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
11434         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
11435         * c-tree.h (store_parm_decls_newstyle): New prototype.
11437 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
11439         * config/rs6000/rs6000.c (expand_block_clear): Use vector
11440         instructions if available.
11441         (expand_block_move): Likewise.
11443 2004-09-03  Jan Hubicka  <jh@suse.cz>
11445         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
11447 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
11449         * config/arm/symbian.h (LIB_SPEC): Define to empty.
11450         * config/arm/t-symbian (SHLIB_LC): Likewise.
11452 2004-09-02  Paul Brook  <paul@codesourcery.com>
11454         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
11456 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
11458         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
11459         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
11460         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
11461         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
11462         (mips_issue_rate): Remove unreachable abort.
11463         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
11464         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
11465         (mips_block_move_straight, print_operand_address, mips_file_start)
11466         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
11467         (mips_output_conditional_branch, mips_expand_builtin_direct)
11468         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
11469         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
11470         with gcc_assert.
11472 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
11474         * config/mips/mips.md (*lea_high64): Change split condition to
11475         flow2_completed.  Add a peephole2 to generate a more parallel version.
11477 2004-09-02  Jan Hubicka  <jh@suse.cz>
11479         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
11480         GGC.
11482         * ggc-page.c: include tree-flow.h.
11483         (extra_order_size_table): Add stmt_ann_d.
11484         (STAT_LABEL): Rename from ....
11485         (LABEL): ... this one.
11486         * Makefile.in (ggc-page.o): Add dependency.
11488         * ggc-common.c (ggc_force_collect): New global variable.
11489         (loc_description): Add fields "freed", "collected"
11490         (ptr_hash): New static hash
11491         (ptr_hash_entry): New structure.
11492         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
11493         (ggc_record_overhead): Take ptr argument, record it
11494         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
11495         (cmp_statistics): Imrove sorting.
11496         (dump_ggc_loc_statistics): Output newly collected statistics
11497         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
11498         (ggc_free): Call ggc_free_overhead.
11499         (ggc_collect): Force collection when asked to be forced.
11500         (ggc_collect): Call ggc_prune_overhead_list.
11501         * ggc.h (ggc_force_collect): Declare
11502         (ggc_record_overhead): Update prototype.
11503         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
11505 2004-09-02  James E Wilson  <wilson@specifixinc.com>
11507         * common.opt (ftrapping-math): Default to on.
11509 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
11511         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
11513 2004-09-02  Denis Chertykov  <denisc@overta.ru>
11515         PR target/16884
11516         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
11517         match_scratch.
11518         (*movmemqi_insn): Likewise.
11519         (*movmemhi): Likewise.
11520         (clrmemhi): Likewise.
11521         (*clrmemqi): Likewise.
11522         (*clrmemhi): Likewise.
11524 2004-09-02  Paul Brook  <paul@codesourcery.com>
11526         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
11527         default_use_cxa_atexit=yes.
11529 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
11531         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
11532         (struct kernel_old_ucontext): Delete.
11533         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
11534         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
11535         when IN_LIGGCC2.
11537 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
11539         * toplev.c (process_options): Fix typo.
11541 2004-09-01  Richard Henderson  <rth@redhat.com>
11543         PR middle-end/17258
11544         * calls.c (initialize_argument_information): Tighten pass-through
11545         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
11546         Use build_fold_addr_expr.
11547         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
11548         that assumes ADDR_EXPR allocates stack space.
11549         * fold-const.c (build_fold_addr_expr_with_type): Look through
11550         WITH_SIZE_EXPR.
11552 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
11554         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
11555         * ggc.h (ggc_alloc_rtx): Delete.
11557 2004-09-01  Roger Sayle  <roger@eyesopen.com>
11559         * expmed.c (enum alg_code): Remove long unused enumeration values.
11560         (struct mult_cost): New structure to hold the "score" of a synthetic
11561         multiply sequence, including both a rtx_cost and a latency field.
11562         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
11563         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
11564         (struct algorithm): Change type of cost field to be mult_cost.
11565         (synth_mult): Change type of cost_limit argument to be a
11566         pointer to a mult_cost.  Update all cost comparisons to use the
11567         new mult_cost infrastructure.  For alg_add_factor and
11568         alg_sub_factor operations, latency is lower than the rtx_cost.
11569         (choose_mult_variant):  Update calls to synth_mult.  Perform
11570         cost comparisons using the new mult_cost infrastructure.
11571         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
11572         to optain the total rtx_cost of a synth_mult "algorithm".
11574 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
11576         * config/rs6000/power4.md: Increase store latency to 12.
11577         * config/rs6000/power5.md: Same.
11579 2004-09-01  James E Wilson  <wilson@specifixinc.com>
11581         PR target/14064
11582         * config/avr/avr.c (avr_unique_section): Delete prototype and
11583         definition.
11584         (TARGET_ASM_UNIQUE_SECTION): Delete.
11586 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
11588         * c-parse.in (primary): Call objc_build_message_expr(),
11589         objc_build_selector_expr(), objc_build_protocol_expr(),
11590         objc_build_encode_expr() and objc_build_string_object() instead of
11591         build_message_expr(), build_selector_expr(), build_protocol_expr(),
11592         build_encode_expr() and build_objc_string_object(), respectively.
11593         (component_decl_list2): Call objc_get_class_ivars() instead of
11594         get_class_ivars_from_name().
11595         (keyworddecl): Call objc_build_keyword_decl() instead of
11596         build_keyword_decl().
11597         (receiver): Call objc_get_class_reference() instead of
11598         get_class_reference().
11599         (reswords): Add blank line before @@ifobjc section, for clarity.
11601 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
11603         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
11604         to Altivec vetors.
11606 2004-09-01  Wu Yongwei  <adah@sh163.net>
11607             Danny Smith  <dannysmith@users.sourceforge.net>
11609         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
11610         not Windows 'DWORD'.
11611         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
11612         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
11613         (__gthr_win32_recursive_mutex_init_function): Add prototype for
11614         __GTHREAD_HIDE_WIN32API case..
11615         (__gthr_win32_recursive_mutex_lock): Likewise.
11616         (__gthr_win32_recursive_mutex_trylock): Likewise.
11617         (__gthr_win32_recursive_mutex_unlock): Likewise.
11618         (__gthread_recursive_mutex_init_function); Add definition for
11619         __GTHREAD_HIDE_WIN32API case.
11620         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
11621         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
11622         call to InterlockedDecrement.
11624 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11626         * tree-tailcall.c (find_tail_calls): Also fail is statement has
11627         volatile operands.
11629         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
11631         * doc/c-tree.texi: Document new operands for ARRAY_REF and
11632         COMPONENT_REF.
11634 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11636         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
11637         * common.opt (fspeculative-prefetching): New.
11638         * flags.h (flag_speculative_prefetching_set): Declare.
11639         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
11640         values.
11641         * opts.c (flag_sepculative_prefetching_set): New variable.
11642         (common_handle_option): Handle -fspeculative-prefetching.
11643         * passes.c (rest_of_compilation): Ditto.
11644         * profile.c (instrument_values, compute_value_histograms, branch_prob):
11645         Use vectors instead of arrays.
11646         * toplev.c (process_options): Handle -fspeculative-prefetching.
11647         * rtl-profile.c: Include ggc.h.
11648         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
11649         rtl_gen_one_value_profiler_no_edge_manipulation,
11650         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
11651         argument changed.
11652         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
11653         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
11654         argument changed.
11655         * value-prof.c: Include ggc.h.
11656         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
11657         macros.
11658         (insn_prefetch_values_to_profile, find_mem_reference_1,
11659         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
11660         speculative_prefetching_transform): New.
11661         (value_profile_transformations): Call speculative_prefetching_transform.
11662         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
11663         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
11664         tree_find_values_to_profile, find_values to profile): Use vectors
11665         instead of arrays.
11666         (free_profiled_values): Removed.
11667         * value-prof.h (struct histogram_value): Renamed to
11668         struct histogram_value_t.
11669         (histogram_value, histogram_values): New types.
11670         (find_values_to_profile): Declaration changed.
11671         (free_profiled_values): Removed.
11672         (struct profile_hooks): Type of argument of the hooks changed to
11673         histogram_value.
11674         * doc/invoke.texi (-fspeculative-prefetching): Document.
11676 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11678         PR rtl-optimization/16408
11679         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
11681 2004-09-01  Richard Henderson  <rth@redhat.com>
11683         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
11684         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
11686 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
11688         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
11690 2004-09-01  Mike Stump  <mrs@apple.com>
11692         * config/darwin.c (machopic_symbol_defined_p): In addition to
11693         being SYMBOL_REF_LOCAL_P, a symbol must also be
11694         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
11695         defined in this output file, or translation unit in the case
11696         of IMA not being used.
11697         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
11698         never need .indirect_symbol when indirecting.
11700 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
11702         * Makefile.in (bb-reorder.o): Add several dependencies.
11704 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
11706         * fold-const.c (operand_equal_p): Require equal sign also for
11707         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
11709 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
11711         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
11712         for use in configargs.h.  Put the cname in a separate variable.  Use
11713         that to set target_cpu_default2.
11715 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
11716             Nick Clifton  <nickc@redhat.com>
11718         * config/sh/sh.md ("length"): Increase branch length when
11719         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
11720         constant, 2 byte for aligning the constant.
11722 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
11724         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
11725         CPU.
11726         (arm7tdmi-s): New CPU name.
11727         * arm/arm.c (ARM_CORE): Update for new format.
11728         * arm/arm.h (ARM_CORE): Likewise.
11729         * arm/gentune.sh: Update for extra field.
11730         * config.gcc: Likewise.
11731         * arm/arm-tune.md: Regenerate.
11732         * doc/invoke.texi: Document the real processor names for ARM cpus.
11734 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
11736         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
11737         (floatdidf): New functions.
11738         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
11739         (floatdisf): New functions.
11740         * t-arm-elf: Use them.
11742 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
11744         * c-common.h (lookup_interface): Remove prototype.
11745         (is_class_name): Rename to objc_is_class_name.
11746         (lookup_objc_ivar): Rename to objc_lookup_ivar.
11747         (get_current_scope): Rename to objc_get_current_scope.
11748         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
11749         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
11750         (yylexname): Call objc_is_class_name() instead of is_class_name().
11751         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
11752         instead of lookup_objc_ivar().
11753         * stub-objc.c (lookup_interface): Remove stub.
11754         (is_class_name): Rename to objc_is_class_name.
11755         (lookup_objc_ivar): Rename to objc_lookup_ivar.
11757 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
11759         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
11760         * config/arm/lib1funcs.asm: Do not include supplemental .S files
11761         when compiling for Symbian.
11762         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
11763         (TARGET_OS_CPP_BUILTINS): Likewise.
11764         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
11766 2004-08-31  Stan Shebs  <shebs@apple.com>
11768         * toplev.c (process_options): Ensure debug_hooks is initialized.
11770 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
11772         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
11773         * target.h (cxx): Add export_class_data.
11774         * config/arm/arm.c (arm_cxx_export_class_data): New function.
11775         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
11776         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
11778 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
11780         * config/sh/sh.c (output_branch): Check the insn length possibly
11781         in the delayed slot.
11783 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11785         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
11786         blank after ')'.
11787         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
11789         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
11790         (c_sizeof_of_alignof_type): Likewise.
11791         * expr.c (array_ref_element_size): Likewise.
11792         (highest_pow2_factor_for_target): Likewise.
11793         * gimplify.c (canonicalize_addr_expr): Likewise.
11794         (gimplify_compound_lval): Likewise.
11795         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
11796         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
11797         * varasm.c (assemble_variable): Likewise.
11798         (output_constant_def_contents): Alignments are unsigned.
11800 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11801             Jeff Law  <law@redhat.com>
11803         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
11804         gets modified.
11806 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
11808         * hooks.c (hook_bool_void_true): New function.
11809         * hooks.h (hook_bool_void_true): Declare.
11810         * target-def.h (TARGET_CXX): Add
11811         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
11812         * target.h (struct cxx): Add key_method_may_be_inline.
11813         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
11814         function.
11815         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
11816         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
11817         __THUMB_INTERWORK.
11819 2004-08-31  Denis Chertykov  <denisc@overta.ru>
11821         PR target/15417
11822         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
11823         frame pointer register only in Pmode while reload in progress.
11825 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
11827         PR target/15334
11828         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
11829         because it breaks the 32-bit shift patterns that rely on a match_dup.
11831 2004-08-31  Matt Austern  <austern@apple.com>
11833         * config/darwin.c (darwin_make_decl_one_only): Allocate section
11834         names once per compilation, instead of once per symbol.
11836 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
11838         * Makefile.in (build_subdir): New substitution.
11839         (fixinc.sh): Simplify heavily since fixincludes is already built.
11840         (stmp-fixinc): Depend on specs.ready.
11841         (install-mkheaders): Use new location of fixincludes.
11842         (clean): Do not descend into fixinc.
11843         (FORBUILD): Replace with ../$(build_subdir).
11844         * configure.ac (build_subdir): Substitute.
11845         (FORBUILD): Do not set.
11846         (all_outputs): Remove fixinc/Makefile.
11847         (default commands): Do not create links in fixinc.
11848         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
11849         the fixincludes configuration steps and substituting
11850         @FIXINCL@ in fixinc.in.
11851         * fixinc.in: New, from fixinc/fixincl.sh.
11853         * fixinc/*: Removed.
11855 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
11857         * attribs.c (strip_attrs): Remove.
11858         (split_specs_attrs): Move ...
11859         * c-decl.c: ... to here.
11860         * tree.h (split_specs_attrs, strip_attrs): Remove.
11861         * c-tree.h (split_specs_attrs): Declare.
11863 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
11865         * read-rtl.c: Disable RTL checking.
11866         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
11868 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
11870         * config/mips/mips.md (fcond): New code macro and attribute.
11871         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
11872         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
11873         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
11875 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
11877         Revert:
11878         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
11879         PR rtl-optimization/16590
11880         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
11882 2004-08-30  Andrew Pinski  <apinski@apple.com>
11884         * hard-reg-set.h:
11885         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
11886         * ChangeLog: Fix previous ChangeLog entry.
11888         PR rtl-opt/13987
11889         * config.host (use_long_long_for_widest_fast_int): New, default is
11890         off.
11891         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
11892         * configure.ac: If use_long_long_for_widest_fast_int, then
11893         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
11894         * configure: Regenerate.
11895         * config.in: Regenerate.
11896         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
11897         New: widest integer type supported efficiently in hardware for the
11898         host.
11899         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
11900         HOST_BITS_PER_WIDEST_FAST_INT.
11901         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
11902         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
11903         HOST_WIDEST_FAST_INT
11904         instead of HOST_WIDE_INT.
11905         (HARD_REG_SET_LONGS): Likewise.
11906         (UHOST_BITS_PER_WIDE_INT): Likewise.
11907         Change the checks for the fast cases to be based on
11908         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
11910 2004-08-30  Steven Bosscher  <stevenb@suse.de>
11912         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
11913         not the pointers.
11915 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
11917         PR 12738
11918         PR 17205
11919         Radar 3460526
11920         Radar 3775729
11921         * c-decl.c (grokdeclarator): Produce error for 'static' on local
11922         function declaration.
11924 2004-08-30  Richard Henderson  <rth@redhat.com>
11926         * expr.c (array_ref_element_size): Force aligned_size back to
11927         sizetype.
11928         (component_ref_field_offset): Similarly for aligned_offset.
11929         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
11930         low-bound, element-size, field-offset fields rather than
11931         computed values.
11933 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
11935         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
11936         redundant code.
11938 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
11940         * c-tree.h (struct language_function): Add arg_info element.
11941         * c-decl.c (current_function_arg_info): New.
11942         (grokdeclarator, store_parm_decls): Use it instead of
11943         DECL_ARGUMENTS.
11944         (c_push_function_context, c_pop_function_context): Save and
11945         restore it.
11947 2004-08-30  Richard Henderson  <rth@redhat.com>
11949         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
11950         COMPONENT_REF to pointer arithmetic.
11951         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
11952         constant "c" as a valid constant initializer.  Allow narrowing of
11953         differences against the same base object, for any base object.
11955 2004-08-30  Richard Henderson  <rth@redhat.com>
11957         * expr.c (expand_expr_addr_expr): New.
11958         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
11960 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
11962         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
11963         (mips_fp_condition): New enum.
11964         (mips_fp_conditions): New array.
11965         (print_fcc_operand): Delete.
11966         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
11967         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
11968         (builtin_description): Add "cond" field.
11969         (DIRECT_BUILTIN): Initialize it.
11970         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
11971         into INSN and CODE.  Initialize the "cond" field.
11972         (CMP_BUILTINS): Update accordingly.
11973         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
11974         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
11975         mips_fp_condition as argument.  Make it the final operand of the
11976         comparison instruction.
11977         (mips_expand_builtin): Update accordingly.
11978         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
11979         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
11980         the gaps.
11981         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
11982         Don't use the 'Q' operand prefix; just print the operand normally.
11983         (mips_cabs_*, mips_c_*): Delete, replacing with...
11984         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
11985         patterns.  Split the 4s versions into 2 ps patterns after reload.
11987 2004-08-30  Richard Henderson  <rth@redhat.com>
11989         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
11990         assuming an ADDR_EXPR is non-null.
11992 2004-08-30  Jason Merrill  <jason@redhat.com>
11994         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
11996 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
11998         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
11999         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
12000         gcc_assert and gcc_unreachable instead of abort.
12001         * alloc-pool.c (abort, fancy_abort): Remove.
12002         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
12003         gcc_assert or gcc_unreachable.
12004         * attribs.c (init_attributes, decl_attributes): Likewise.
12005         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
12006         mark_bb_for_unlikely_executed_section,
12007         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
12008         fix_crossing_unconditional_branches):  Likewise.
12009         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
12010         bitmap_operation):  Likewise.
12011         * bt-load.c (insn_sets_btr_p, augment_live_range,
12012         move_btr_def):  Likewise.
12013         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
12014         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
12015         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
12016         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
12017         expand_builtin_memcmp, expand_builtin_args_info,
12018         std_gimplify_va_arg_expr, expand_builtin_unop,
12019         expand_builtin_fputs, expand_builtin_profile_func,
12020         expand_builtin_fork_or_exec, fold_builtin_bitop,
12021         fold_builtin_classify, fold_builtin_fputs): Likewise.
12023 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
12025         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
12026         * gcov.c (abort): Remove undef.
12028         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
12029         (struct tree_binfo): Remove primary field.
12031 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
12033         * fixinc/Makefile.in (machname.h): Remove.
12034         (fixincl.x): Do not pass $@ to genfixes.
12035         * fixinc/genfixes: Remove code to produce machname.h.
12036         * fixinc/fixincl.sh: Move it here instead.
12037         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
12038         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
12039         return a bool indicating whether pz_mn_name_pat is NULL.
12040         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
12041         Declare extern C variables for the ENV_TABLE.
12042         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
12043         instead use the result of mn_get_regexps.
12044         * fixinc/fixtests.c: Likewise.
12046 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
12048         * configure.ac: Do not run fixincludes after stage1 during
12049         toplevel bootstrap.
12050         * configure: Regenerate.
12052 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
12054         * sched-deps.c (get_condition): Partially revert previous, by never
12055         trying to extract the condition from a condjump.
12057 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
12059         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
12060         (handle_visibility_attribute, c_determine_visibility): Likewise.
12061         * c-common.h (my_friendly_assert): Remove.
12063 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
12065         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
12066         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
12067         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
12068         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
12069         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
12071 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
12073         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
12074         in COMPONENT_REF nodes.
12076 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12078         PR c++/15378
12079         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
12080         global_dc->warning_as_error_requested.
12081         * diagnostic.c (diagnostic_initialize): Tidy.
12082         * diagnostic.h (diagnostic_context::x_data): Remove
12083         (diagnostic_context::issue_warnings_are_errors_message): Rename
12084         from warnings_are_errors_message.
12085         (diagnostic_context::warning_as_error_requested): New.
12087 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
12089         * sched-deps.c (get_condition): Fix breakage in previous patch.
12091 2004-08-30  Paul Brook  <paul@codesourcery.com>
12093         * doc/install.texi: Fix broken mpfr link.
12095 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
12097         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
12098         other FreeBSD platforms.
12100 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
12102         * arm.h (REVERSE_CONDITION): Define.
12103         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
12105 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
12107         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
12108         just the codes, call reversed_comparison_code ().
12109         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
12110         (not_reg_cond): Use reversed_comparison_code.
12111         (and_reg_cond): Likewise.
12112         * ifcvt.c (cond_exec_process_if_block): Likewise.
12113         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
12115 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
12117         * sched-deps.c (get_condition): Rewrite using jump support functions.
12118         Use reversed_comparison_code.
12119         (conditions_mutex_p): Use reversed_comparison_code.
12121 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12123         * config/mips/mips.c (override_options): Disable hot/cold partitioning
12124         for MIPS16.
12126 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12128         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
12129         (mips_function_type): Move to mips.c.
12130         * config/mips/mips.c (mips_builtin_type): New enum.
12131         (builtin_description): Replace code and ftype with builtin_type
12132         and function_type.
12133         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
12134         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
12135         (CODE_FOR_mips_abs_ps): Define.
12136         (mips_bdesc): Use new macros.
12137         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
12138         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
12139         (mips_expand_builtin_direct): New function.
12140         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
12141         builtin.  Replace boolean parameter with builtin_type.
12142         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
12143         (mips_expand_4s_compare_builtin): Delete, replacing with...
12144         (mips_expand_builtin_compare): ...this new function.
12146 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
12148         PR rtl-optimization/16590
12149         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
12151 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
12153         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
12154         * tree-ssa-propagate.c: Fix documentation.
12156 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12158         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
12159         (mov[sd]fcc): Likewise.
12161 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12163         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
12165 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12167         * config/mips/mips.md (divide_condition): New mode attribute.
12168         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
12169         (sqrt[sd]f3): Redefine using SCALARF.
12170         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
12171         patterns.
12173 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12175         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
12176         (loadx, storex, fmt, UNITMODE): New mode attributes.
12177         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
12178         (mul[sd]f3): Redefine using :SCALARF.
12179         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
12180         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
12181         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
12182         Check TARGET_FUSED_MADD for V2SF too.
12183         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
12184         were already named.
12185         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
12186         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
12188 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12190         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
12191         V2SF_type_node if it will be needed.
12193 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12195         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
12196         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
12197         (mips_prepare_builtin_target): New function.
12198         (mips_expand_builtin): Use them.  Update calls to subroutines.
12199         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
12200         cmp_choice with a boolean argument to select between movt and movf.
12201         Take the comparison's icode as an argument, not the function's fcode.
12202         (mips_expand_compare_builtin): New function.  Rename existing function
12203         to mips_expand_scalar_compare_builtin.
12204         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
12205         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
12206         comparison's icode as an argument, not the builtin's fcode.
12208 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12210         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
12211         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
12212         registers are false and -1 if all registers are true.
12213         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
12214         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
12215         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
12216         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
12217         (bc1any2t, bc1any2f): Likewise CCV2.
12218         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
12220 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
12222         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
12223         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
12224         UNSPEC rather than an IF_THEN_ELSE.
12225         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
12226         mips_cond_move_tf_ps by name.
12228 2004-08-29  Chao-ying Fu  <fu@mips.com>
12229             James E Wilson  <wilson@specifixinc.com>
12231         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
12232         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
12233         * config/mips/mips-ps-3d.md: New file.
12234         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
12235         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12236         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
12237         (mips_output_move): Emit "mov.ps" for V2SFmode.
12238         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
12239         MODE_VECTOR_FLOAT.
12240         (override_options): Check if TARGET_MIPS3D and there was an explicit
12241         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
12242         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
12243         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
12244         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
12245         and allow CCV2 and CCV4 to occupy two and four CC registers.
12246         (print_fcc_operand): New function.
12247         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
12248         %Z to call print_fcc_operand.
12249         (mips_function_value): Handle MODE_VECTOR_FLOAT.
12250         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
12251         (mips_vector_mode_supported_p): New function.
12252         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
12253         (builtin_description): New struct.
12254         (mips_bdesc): New array of struct builtin_description.
12255         (mips_expand_builtin, mips_init_builtins,
12256         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
12257         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
12258         functions.
12259         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
12260         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
12261         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
12262         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
12263         "-mips3d", and "-mno-mips3d".
12264         (ASM_SPEC): Map -mips3d to -mips3d in gas.
12265         (EXTRA_CONSTRAINT_Y): New macro.
12266         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
12267         multi-letter constraint 'Y'.
12268         (CONSTRAINT_LEN): New macro.
12269         (enum mips_builtins): New for MIPS builtin functions.
12270         (enum mips_function_type): New for the types of MIPS builtin functions.
12271         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
12272         * config/mips/mips.md: New constants for paired single and MIPS-3D
12273         instructions.  Include the new mips-ps-3d.md file.
12274         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
12275         movv2sf_hardfloat_64bit): New named patterns.
12276         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
12277         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
12278         sdxc1_v2sf_di): New unnamed patterns.
12279         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
12280         const_vector support.
12281         (const_0_or_1_operand): New predicate.
12282         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
12284 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
12286         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
12287         (tree-ssa-propagate.o): New rule.
12288         (GTFILES): Add tree-ssa-propagate.c.
12289         * tree-flow.h (struct stmt_ann_d): Remove field
12290         in_ccp_worklist.
12291         * tree-ssa-propagate.c: New file.
12292         * tree-ssa-propagate.h: New file.
12293         * tree-ssa-ccp.c: Re-write to use the routines from
12294         tree-ssa-propagate.c.
12296 2004-08-28  Andrew Pinski  <apinski@apple.com>
12298         * tree-ssa-loop.c: Remove extra include of basic-block.h.
12300 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
12302         * c-common.h: Update comments about ObjC/ObjC++ entry points.
12303         (objc_is_reserved_word): New prototype.
12304         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
12305         separate section; these are call-backs.
12306         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
12307         ObjC/ObjC++ "@" keywords.
12308         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
12309         prototypes; they already live in c-common.h.
12310         * stub-objc.c: Update copyright notice.
12311         (objc_is_reserved_word): New stub.
12313 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
12315         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
12316         even when not checking.
12318 2004-08-27  Jason Merrill  <jason@redhat.com>
12320         PR c++/13684
12321         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
12322         (gimple_push_cleanup): Add eh_only parm.
12323         (gimplify_target_expr): Pass it.
12324         * c.opt (-fno-threadsafe-statics): New option.
12325         * c-opts.c (c_common_handle_option): Handle it.
12326         * c-common.h (flag_threadsafe_statics): Declare it.
12327         * c-common.c (flag_threadsafe_statics): Record it.
12328         * doc/invoke.texi: Document it.
12329         * tsystem.h (_GNU_SOURCE): Define.
12330         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
12331         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
12332         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
12333         (__gthread_recursive_mutex_init_function): New fn.
12334         (__gthread_recursive_mutex_lock): New fn.
12335         (__gthread_recursive_mutex_trylock): New fn.
12336         (__gthread_recursive_mutex_unlock): New fn.
12337         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
12338         * gthr-win32.h, gthr-vxworks.h: Likewise.
12339         * gthr.h: Document.
12341 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
12343         * config/rs6000/rs6000.c (rs6000_override_options): Increase
12344         maximum skip to 15.  Set function alignment, jump alignment, and
12345         loop alignment to 16 for processors that form dispatch groups.
12346         (rs6000_rtx_costs): outer_code is used.
12348 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
12350         * stor-layout.c (sizetype_set): Remove.
12351         (set_sizetype): Don't test or set it.
12353         * tree.h (size_int_type): Remove.
12354         * fold-const.c: Do not #include gt-fold-const.h.
12355         (size_htab_hash, size_htab_eq): Remove.
12356         (size_int_kind): Use build_int_cst.
12357         (new_const, size_htab): Remove.
12358         (size_int_type): Remove.
12359         (round_up): Use build_int_cst.
12360         (round_down): Likewise. Remove spurious constant build.
12362 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
12364         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
12365         Add is_release variable, use it for --enable-werror and
12366         --enable-checking defaults.
12367         * system.h (gcc_assert, gcc_unreachable): New.
12368         * doc/install.texi (--enable-checking): Update.
12369         * configure, config.in: Rebuilt.
12371 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
12373         * rtl.h (read_rtx): Change prototype.
12374         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
12375         line number.  Return true on success.
12376         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
12377         callers accordingly.
12379 2004-08-26  Richard Henderson  <rth@redhat.com>
12381         * c-typeck.c (build_offsetof): Remove.
12382         * c-tree.h (build_offsetof): Remove.
12383         * c-common.c (fold_offsetof_1, fold_offsetof): New.
12384         * c-common.h (fold_offsetof): Declare.
12385         * c-parse.in (offsetof_base): New.
12386         (offsetof_member_designator): Use it.  Build references, not just
12387         a tree list.
12388         (primary): Use fold_offsetof, not build_offsetof.
12390 2004-08-26  Richard Henderson  <rth@redhat.com>
12392         * tree.c (staticp): Return the static object.
12393         * tree.h (staticp): Update decl.
12394         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
12395         * langhooks.c (lhd_staticp): Return NULL_TREE.
12396         * langhooks-def.h (lhd_staticp): Update decl.
12397         * c-common.c (c_staticp): Return the static object.
12398         * c-common.h (c_staticp): Update decl.
12400 2004-08-26  Richard Henderson  <rth@redhat.com>
12402         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
12403         modes.
12405 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
12407         PR c/13801
12408         * c-decl.c (struct c_binding): Add type and inner_comp fields.
12409         (bind): Set type and inner_comp fields.
12410         (pop_scope): Restore type of decl to the correct type from an
12411         outer scope.  Give error when popping file scope for incomplete
12412         arrays completed incompatibly with default initialization in an
12413         inner scope.
12414         (diagnose_mismatched_decls): Handle externs with initializers at
12415         block scope.
12416         (pushdecl): Set type of external declaration at block scope based
12417         only on the visible declarations.  Save type when changing the
12418         type of a declaration.  Merge an external declaration at block
12419         scope with a visible static declaration at file scope.
12420         (implicitly_declare): Give recycled old declaration the new type
12421         except for incompatible declarations of built-in functions, saving
12422         the old type.
12424 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
12426         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
12428 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
12430         * tree-alias-common.c (gate_pta): New function.
12431         (pass_build_pta): Use it.
12432         (pass_del_pta): Use it.
12433         (delete_alias_vars): Don't check flag_tree_points_to.
12435 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
12437         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
12438         TFmode as additional register mode cloberred by call.
12440 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
12442         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
12443         parallel pattern for library call returning DImode in
12444         mixed mode.
12446 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
12448         * config/rs6000/rs6000.c (function_arg): Generate parallel
12449         pattern for more split args.
12451 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
12453         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
12454         either gen_movdi_di_update or gen_movdi_si_update depending on
12455         target mode.
12456         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
12457         to generate two versions.
12459 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
12461         * Makefile.in (lambda-code.o): New.
12462         (lambda-trans.o): Ditto.
12463         (TREE_DATA_REF_H): Ditto.
12464         (LAMBDA_H): Ditto.
12465         (lambda-mat.o): Use LAMBDA_H.
12466         (tree-data-ref.o): Ditto.
12467         * lambda-code.c: New file.  Lambda code generation algorithm.
12468         * lambda-trans.c: Ditto. Lambda transformation matrix support.
12469         * lambda.h: Add lambda loop structures.
12470         Add lambda loopnest structures.
12471         Add lambda body vector structure.
12472         Add lambda linear expression structures.
12473         Add prototypes for functions in new files.
12474         * lambda-mat.c: Include tree.h
12476 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
12477             Sebastian Pop  <pop@cri.ensmp.fr>
12479         * tree-data-ref.h: Include lambda.h
12480         (free_dependence_relation): Declared here.
12481         (free_dependence_relations): Ditto.
12482         (free_data_refs): Ditto.
12483         * tree-data-ref.c (free_dependence_relation): New function.
12484         (free_dependence_relations): Ditto.
12485         (free_data_refs): Ditot.
12486         (analyze_all_data_dependences): Free datarefs and dependence_relations.
12487         (build_classic_dist_vector): Store in the dependence_relations the
12488         information. Each arc in the dependence_relations graph is labelled
12489         with the distance and direction vectors.
12490         (build_classic_dir_vector): Ditto.
12491         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
12492         Now computes again the whole dependence graph including read-read
12493         relations.
12494         (compute_data_dependences_for_loop): Now dependence_relations contains
12495         all the data, and thus it doesn't need to initialize the classic_dir
12496         and classic_dist vectors.
12497         (analyze_all_data_dependences): Adjusted for using the new interface of
12498         compute_data_dependences_for_loop.  Remove the statistics dump.
12500 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
12502         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
12503         (xtensa_expand_block_move): Update comment.
12504         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
12506 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
12508         PR target/13506
12509         * toplev.c (crash_signal): If we crashed while emitting
12510         a user asm, then die more gracefully.
12512 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
12514         PR target/17119.
12515         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
12516         checking for a valid constant, regardless of sign.
12518 2004-08-25  Richard Henderson  <rth@redhat.com>
12520         PR target/16974
12521         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
12522         if the constant satisfies add_operand.
12524 2004-08-25  Richard Henderson  <rth@redhat.com>
12526         PR debug/10695
12527         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
12528         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
12529         unwind info for >16-bit frames.
12531 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
12533         PR target/17171
12534         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
12536 2004-08-25  Richard Henderson  <rth@redhat.com>
12538         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
12539         (TARGET_CANNOT_FORCE_CONST_MEM): New.
12541 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
12543         * doc/tree-ssa.texi: Document new operand iterator.
12545 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
12547         PR target/16480
12548         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
12549         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
12550         as PLUS base regs.
12552 2005-08-28  Paul Brook  <paul@codesourcery.com>
12554         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
12555         -mfpu=vfp -march=armv5t
12556         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
12558 2004-08-25  Richard Henderson  <rth@redhat.com>
12560         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
12561         * target.h (struct gcc_target): Add scalar_mode_supported_p.
12562         * targhooks.c (default_scalar_mode_supported_p): New.
12563         * targhooks.h (default_scalar_mode_supported_p): Declare.
12564         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
12566         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
12567         before attempting to create types.  Tidy.
12568         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
12570         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
12571         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
12573 2004-08-25  Richard Henderson  <rth@redhat.com>
12575         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
12576         set REAL_MODE_FORMAT for TFmode.
12578 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
12580         * c-decl.c (grokparm): New function.
12581         * c-tree.h (grokparm): New prototype.
12583 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
12585         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
12586         iterator controlling structure.
12587         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
12588         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
12589         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
12590         iterator flags.
12591         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
12592         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
12593         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
12594         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
12595         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
12596         Empty operand pointers.
12597         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
12598         (op_iter_next_use): New.  Return next use_operand_p.
12599         (op_iter_next_def): New.  Return next def_operand_p.
12600         (op_iter_next_tree): New.  Return next operands as a tree.
12601         (op_iter_init): New.  Initialize an iterator structure.
12602         (op_iter_init_use): New.  Initialize structure and get the first use.
12603         (op_iter_init_def): New.  Initialize structure and get the first def.
12604         (op_iter_init_tree): New.  Initialize structure and get the first tree.
12605         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
12606         (op_iter_init_maydef): New.  Initialize structure and get the first
12607         V_MAY_DEF operands.
12608         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
12609         * tree-dfa.c (compute_immediate_uses_for_stmt,
12610         redirect_immediate_uses): Use new operand iterator.
12611         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
12612         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
12613         operands instead of using *_disappeared_p routines.
12614         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
12615         ssa_rewrite_stmt): Use new operand iterator.
12616         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
12617         rewrite_trees): Use new operand iterator.
12618         * tree-pretty-print.c (dump_vops): Use new operand iterator.
12619         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
12620         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
12621         dump_points_to_info): Use new operand iterator.
12622         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
12623         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
12624         operand iterator.
12625         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
12626         propagate_necessity): Use new operand iterator.
12627         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
12628         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
12629         a parameter instead of a stmt_ann_t.
12630         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
12631         build_tree_conflict_graph): Use new operand iterator.
12632         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
12633         rewrite_mem_refs): Use new operand iterator.
12634         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
12635         check_loop_closed_ssa_use): Use new operand iterator.
12636         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
12637         * tree-ssanames.c (release_defs): Use new operand iterator.
12638         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
12640 2004-08-25  Adam Nemet  <anemet@lnxw.com>
12642         * tlink.c (initial_cwd): New variable.
12643         (tlink_init): Initialize it.
12644         (recompile_files): Use tlink_execute() instead of system().  Don't
12645         duplicate verbose output of collect_execute.  Restore initial_cwd.
12646         Update comment before the function.
12648 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
12650         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
12651         accept) a cast from one Objective-C pointer type to another.
12653 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
12655         * doc/install.texi: Document that libstdc++-v3 requires
12656         now automake 1.9.1.
12658 2004-08-25  Caroline Tice  <ctice@apple.com>
12660         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
12661         to comments at start of function.
12662         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
12663         comment.
12664         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12665         merge_blocks_move_predecessor_nojumps,
12666         merge_blocks_move_successor_nojumps, merge_blocks_move,
12667         try_crossjump_to_edge, try_crossjump_bb): Likewise.
12668         * cfglayout.c (fixup_reorder_chain): Likewise.
12669         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
12670         cfg_layout_can_merge_blocks_p):  Likewise.
12671         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
12672         * passes.c (rest_of_compilation): Update comments for calling
12673         optimization that partitions hot/cold basic blocks.
12674         * doc/invoke.texi:  Update documentation of
12675         freorder-blocks-and-partition flag.
12677 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
12679         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
12680         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
12682 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
12684         * config/mips/mips.md (any_shift): New code macro.
12685         (optab, insn): New code attributes.
12686         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
12687         Use the standard rather than internal patterns for the MIPS16
12688         double-shift optimization.
12689         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
12690         Redefine using :GPR and any_shift.
12691         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
12692         to cover all three shifts.
12693         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
12694         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
12695         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
12697 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
12699         * gimplify.c (lookup_tmp_var): Separate temporaries when not
12700         optimizing.
12702 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12704         PR libstdc++/17005 (fix for HP-UX 11.11)
12705         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
12706         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
12707         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
12708         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
12709         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
12710         (LINK_SPEC): Handle march=1.0 option.
12711         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12712         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
12713         (SUBTARGET_OPTIONS): New define.
12714         (LINK_SPEC): Handle march=1.0 option.
12715         (STARTFILE_SPEC): New define.
12716         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
12717         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
12718         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
12719         (SUBTARGET_OPTIONS): New define.
12720         (LINK_SPEC): Handle march=1.0 option.
12721         (STARTFILE_SPEC): New define.
12722         * config/pa/pa.c (override_options): Add code to process -munix= option.
12723         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
12724         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
12725         defines.
12726         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
12727         (SUBTARGET_OPTIONS): Provide default define.
12728         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
12729         STANDARD_STARTFILE_PREFIX_2): New defines.
12730         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
12731         (ENDFILE_SPEC): Use %O.
12732         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
12733         Mention issue caused by changing namespace and runtime to UNIX 95/98.
12734         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
12735         Document -munix=std option.
12737 2004-08-25  Steven Bosscher  <stevenb@suse.de>
12739         * cse.c (cse_around_loop, cse_check_loop_start,
12740         cse_set_around_loop): Remove.
12741         (cse_basic_block): Remove the around_loop argument.
12742         (cse_end_of_basic_block): Remove the after_loop argument.
12743         (cse_main): Likewise.
12744         * rtl.h (cse_main): Update prototype.
12745         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
12746         rest_of_handle_gcse): Update cse_main calls.
12748 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
12750         * tree.h  (build_int_cst): New, sign extended constant.
12751         (build_int_cstu): New, zero extended constant.
12752         (build_int_cst_wide): Renamed from build_int_cst.
12753         * tree.c (build_int_cst, build_int_cstu): New.
12754         (build_int_cst_wide): Renamed from build_int_cst.
12755         (make_vector_type, build_common_tree_nodes,
12756         build_common_tree_nodes_2): Adjust build_int_cst calls.
12757         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
12758         expand_builtin_strpbrk, expand_builtin_fputs,
12759         build_string_literal, expand_builtin_printf,
12760         expand_builtin_sprintf, fold_builtin_classify_type,
12761         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
12762         fold_builtin_toascii, fold_builtin_isdigit,
12763         simplify_builtin_strstr, simplify_builtin_strpbrk,
12764         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
12765         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
12766         DEF_ATTR_INT): Likewise.
12767         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
12768         Likewise.
12769         * c-lex.c (interpret_integer, lex_charconst): Likewise.
12770         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
12771         * c-pretty-print.c (pp_c_integer_constant): Likewise.
12772         * c-typeck.c (really_start_incremental_init, push_init_level,
12773         set_nonincremental_init_from_string): Likewise.
12774         * calls.c (load_register_parameters): Likewise.
12775         convert.c (convert_to_pointer): Likewise.
12776         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
12777         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
12778         build_gcov_info): Likewise.
12779         * except.c (init_eh, assign_filter_values): Likewise.
12780         * expmed.c (store_fixed_bit_field, extract_bit_field,
12781         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
12782         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
12783         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
12784         * expr.c (convert_move, emit_group_load, emit_group_store,
12785         expand_assignment, store_constructor, store_field,
12786         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
12787         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
12788         invert_truthvalue, optimize_bit_field_compare,
12789         decode_field_reference, all_ones_mask_p, constant_boolean_node,
12790         fold_div_compare, fold, fold_read_from_constant_string,
12791         fold_negate_const, fold_abs_const, fold_not_const, round_up,
12792         round_down): Likewise.
12793         * function.c (assign_parm_setup_block): Likewise.
12794         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
12795         Likewise.
12796         * stor-layout.c (layout_type, initialize_sizetypes,
12797         set_min_and_max_values_for_integral_type): Likewise.
12798         * tree-chrec.c (chrec_fold_multiply_poly_poly,
12799         reset_evolution_in_loop): Likewise.
12800         * tree-chrec.h (build_polynomial_chrec): Likewise.
12801         * tree-complex.c (build_replicated_const): Likewise.
12802         * tree-eh.c (honor_protect_cleanup_actions,
12803         lower_try_finally_onedest, lower_try_finally_copy,
12804         lower_try_finally_switch): Likewise.
12805         * tree-mudflap.c (mf_build_string, mx_register_decls,
12806         mudflap_register_call, mudflap_enqueue_constant): Likewise.
12807         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
12808         * tree-pretty-print.c (dump_generic_node): Likewise.
12809         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
12810         Likewise.
12811         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
12812         * tree-ssa-loop-niter.c (number_of_iterations_cond,
12813         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
12814         Likewise.
12815         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
12816         canonicalize_loop_induction_variables): Likewise.
12817         * tree-vectorizer.c (vect_create_index_for_array_ref,
12818         vect_transform_loop_bound, vect_compute_data_ref_alignment):
12819         Likewise.
12821         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
12822         alpha_gimplify_va_arg_1): Likewise.
12823         * config/arm/arm.c (arm_get_cookie_size): Likewise.
12824         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
12825         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
12826         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12827         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
12828         mips_gimplify_va_arg_expr): Likewise.
12829         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12830         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
12831         add_compiler_branch_island): Likewise.
12832         * config/s390/s390.c (s390_va_start): Likewise.
12833         * config/sh/sh.c (sh_va_start): Likewise.
12834         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
12835         Likewise.
12836         * config/xtensa/xtensa.c (xtensa_va_start,
12837         xtensa_gimplify_va_arg_expr): Likewise.
12839         * objc/objc-act.c (build_objc_string_object,
12840         build_objc_symtab_template, init_def_list, init_objc_symtab,
12841         init_module_descriptor, generate_static_references,
12842         build_selector_translation_table, get_proto_encoding,
12843         build_typed_selector_reference, build_selector_reference,
12844         build_next_objc_exception_stuff,
12845         build_method_prototype_list_template, generate_descriptor_table,
12846         generate_protocols, build_protocol_initializer,
12847         build_ivar_list_template, build_method_list_template,
12848         build_ivar_list_initializer, generate_ivars_list,
12849         generate_dispatch_table, generate_protocol_list,
12850         build_category_initializer, build_shared_structure_initializer,
12851         generate_shared_structures, handle_impent,
12852         generate_objc_image_info): Likewise.
12854 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
12856         * cfglayout.c (duplicate_insn_chain): Remove references to
12857         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
12858         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
12859         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
12860         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
12861         and NOTE_INSN_LOOP_CONT.
12862         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
12863         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
12864         and NOTE_INSN_LOOP_CONT.
12865         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
12866         check_dbra_loop, loop_dump_aux): Remove references to removed notes
12867         and fields.
12868         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
12869         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
12870         references to removed notes and fields.
12871         (subtract_reg_term, ujump_to_loop_cont): Remove.
12873 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
12875         * doc/install.texi: Document that libcpp does not require
12876         Automake any longer.  Document that Automake 1.9.1 should
12877         work everywhere.
12879 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
12881         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
12882         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
12883         DWARF_DEBUGGING_INFO from choice-of-definition chain;
12884         restructure using C89 features (#elif, #error).
12885         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
12886         * config/sh/sh.h: Remove references to DWARF_DEBUG.
12887         * doc/invoke.texi: Remove references to DWARF version 1;
12888         clarify why -gdwarf-2<n> doesn't work.
12890 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
12892         * basic-block.h (BB_SET_PARTITION): Clear old value first.
12893         * cfg.c (clear_bb_flags): Don't clear partition setting.
12894         * ifcvt.c (find_if_case_1): Remove ??? comment.
12896 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
12898         PR target/17052
12899         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
12900         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
12901         current_function_stdarg in place of sysv_varargs_p.
12902         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
12903         sysv_varargs_p.
12905 2004-08-24  Richard Henderson  <rth@redhat.com>
12907         PR target/16298
12908         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
12909         random codes within CONST.
12911 2004-08-24  James E Wilson  <wilson@specifixinc.com>
12913         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
12914         -freorder-blocks-and-partition.
12916 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12918         PR middle-end/17044
12919         * tree-ssa-threadupdate.c (redirection_data): Make static.
12920         (thread_block): Use ggc_alloc_cleared to allocate struct
12921         redirection_data.  Don't free elements in redirection_data.
12923 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
12925         * config/mips/predicates.md (small_data_pattern): Match prefetches.
12927 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12929         PR tree-optimization/17016
12930         * tree-ssa-loop-niter.c (number_of_iterations_cond,
12931         number_of_iterations_exit): Use POINTER_TYPE_P instead
12932         of testing for POINTER_TYPE.
12934 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12936         * tree-ssa-loop-ivcanon.c: New file.
12937         * tree-ssa-loop-manip.c (create_iv): New function.
12938         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
12939         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
12940         * cfgloop.c (mark_single_exit_loops): New function.
12941         (verify_loop_structure): Verify single-exit loops.
12942         * cfgloop.h (struct loop): Add single_exit field.
12943         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
12944         (mark_single_exit_loops): Declare.
12945         (tree_num_loop_insns): Declare.
12946         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
12947         (duplicate_loop_to_header_edge): Use it.
12948         * common.opt (fivcanon): New flag.
12949         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
12950         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
12951         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
12952         (bsi_insert_on_edge_immediate): New function.
12953         * tree-flow.h (bsi_insert_on_edge_immediate,
12954         canonicalize_induction_variables, tree_unroll_loops_completely,
12955         create_iv): Declare.
12956         * tree-optimize.c (init_tree_optimization_passes): Add
12957         pass_iv_canon and pass_complete_unroll.
12958         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
12959         * tree-scalar-evolution.c (get_loop_exit_condition,
12960         get_exit_conditions_rec, number_of_iterations_in_loop,
12961         scev_initialize): Use single_exit information.
12962         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
12963         missing assumptions.
12964         (loop_niter_by_eval):  Return number of iterations as unsigned
12965         int.
12966         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
12967         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
12968         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
12969         New passes.
12970         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
12971         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
12972         the defining statement is ready.
12973         * tree-vectorizer.c (vect_create_iv_simple): Removed.
12974         (vect_create_index_for_array_ref, vect_transform_loop_bound):
12975         Use create_iv.
12976         (vect_transform_loop_bound): Use single_exit information.
12977         (vect_analyze_loop_form): Cleanup bogus tests.
12978         (vectorize_loops): Do not call flow_loop_scan.
12979         * tree.h (may_negate_without_overflow_p): Declare.
12980         * fold-const.c (may_negate_without_overflow_p): Split out from ...
12981         (negate_expr_p): ... this function.
12982         (tree_expr_nonzero_p): Handle overflowed constants correctly.
12983         * doc/invoke.texi (-fivcanon): Document.
12984         * doc/passes.texi: Document canonical induction variable creation.
12986 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
12988         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
12989         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
12990         using the mode of the operand to decide between them.
12991         * config/mips/mips.md (MOVECC): New mode macro.
12992         (ccreg): New mode attribute.
12993         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
12994         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
12995         (mov[sd]icc): Redefine using :GPR.
12997 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
12999         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
13000         (mips_prefetch_cookie): New function.
13001         * config/mips/mips.c (print_operand_address): Fix handling of
13002         ADDRESS_CONST_INT.
13003         (mips_emit_prefetch): Delete.
13004         (mips_prefetch_cookie): New function.
13005         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
13006         mode of QImode for the address_operand.  Use mips_prefetch_cookie
13007         to calculate the first "pref" operand.
13008         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
13009         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
13011 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
13013         * arm.md: Include predicates.md.
13014         * predicates.md: New file.
13015         * arm.c (s_register_operand, arm_hard_register_operand)
13016         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
13017         (arm_immediate_operand, arm_neg_immediate_operand)
13018         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
13019         (arm_add_operand, arm_addimm_operand, arm_not_operand)
13020         (offsettable_memory_operand, alignable_memory_operand)
13021         (arm_reload_memory_operand, arm_float_rhs_operand)
13022         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
13023         (index_operand, shiftable_operator, logical_binary_operator)
13024         (shift_operator, equality_operator, arm_comparison_operator)
13025         (minmax_operator, cc_register, dominant_cc_register)
13026         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
13027         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
13028         (const_shift_operand, load_multiple_operation)
13029         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
13030         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
13031         (cirrus_register_operand, cirrus_fp_register)
13032         (cirrus_shift_const): Delete, replaced with equivalents in
13033         predicates.md.
13034         (shift_op): Handle ROTATE.
13035         * arm-protos.h: Delete declarations for above.
13036         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
13037         * t-arm (MD_INCLUDES): Add predicates.md.
13038         (s-preds): Depends on MD_INCLUDES.
13040 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
13042         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
13043         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
13044         patterns.  Redefine using :GPR.  Give the match_operator a mode.
13045         Use '%2' rather than '%z2' for operand 2.
13047 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
13049         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
13050         attribute.
13052 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
13054         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
13055         of internal patterns.
13056         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
13057         Redefine using :P.
13058         (tablejump): Use expand_binop to calculate address.  Adjust names
13059         of internal patterns.
13060         (tablejump[sd]i): Renamed from tablejump_internal[12].
13061         Redefine using :P.
13062         (tablejump_mips16[12]): Delete.
13064 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
13066         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
13067         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
13068         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
13069         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
13070         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
13072 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
13074         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
13075         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
13076         using :GPR.
13077         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
13078         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
13079         (*branch_equality[sd]i_inverted): Likewise
13080         branch_equality{,_di}_inverted.
13081         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
13082         Redefine using :GPR.
13084 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
13086         * rtl.def: Reorganize, placing all codes used only in machine
13087         descriptions at the end.
13089         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
13090         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
13091         rtx_name, rtx_format arrays by direct reference to rtl.def,
13092         first undefining GENERATOR_FILE.  Define enum insn_note and
13093         note_insn_name array by direct reference to insn-notes.def.
13094         (adjust_field_rtx_def): Remove local definition of rtx_name.
13095         Use symbolic names for insn notes.
13096         * Makefile.in (gengtype.o): Update dependencies.
13098 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
13100         * basic-block.h (struct basic_block_def): Reorder fields to
13101         eliminate interior padding.  Remove 'partition' field.
13102         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
13103         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
13104         (BB_COPY_PARTITION): New macros.
13105         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
13106         Replace all references to the 'partition' field of a basic
13107         block with new macros.
13109         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
13110         * final.c (final_scan_insn): Don't handle it.
13111         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
13112         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
13113         * sched-rgn.c (sched_is_disabled_for_current_region_p):
13114         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
13116 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
13118         * c-decl.c (c_init_decl_processing): Adjust
13119         build_common_tree_nodes call.
13120         * expmed.c (const_mult_add_overflow_p): Use
13121         build_distinct_type_copy.
13122         * stor-layout.c (early_type_list): Remove.
13123         (layout_type): Don't append to early_type_list.
13124         (initialize_sizetypes): Add signed_p argument.
13125         (set_sizetype): Overwrite the stub type nodes directly.
13126         * tree.c (copy_node_stat): Clear a type's value cache here ...
13127         (build_distinct_type): ... not here.
13128         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
13129         * tree.h (initialize_sizetypes): Add signed_p argument.
13130         (build_common_tree_nodes): Likewise.
13132         * objc/objc-act.c (get_static_reference): Use
13133         build_variant_type_copy.
13134         (get_protocol_reference): Likewise.
13135         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
13137 2004-08-24  Richard Henderson  <rth@redhat.com>
13138             Andrew Pinski  <apinski@apple.com>
13140         * gimplify.c (gimplify_array_ref_to_plus): Delete.
13141         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
13142         for ARRAY_REF.
13144         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
13145         ARRAY_REF also to get to the STRING_CST.
13147 2004-08-24  Paul Brook  <paul@codesourcery.com>
13149         * config/arm/arm.c (arm_override_options): Update error message.
13150         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
13151         TARGET_HARD_FLOAT_ABI.
13152         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
13153         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
13155 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
13157         PR target/17093
13158         * config/m32r.md (movsi_sda): Add SI mode specification to
13159         UNSPEC.
13161 2004-08-24  Nick Clifton  <nickc@redhat.com>
13163         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
13164         of seth_add3_operand.
13166 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
13168         * Makefile.in (PROTO_OBJS): Add errors.o.
13169         * protoize.c (fancy_abort): Remove.
13170         * mips-tfile.c (fancy_abort): Add parameters.
13172 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
13174         * doc/trouble.texi (C++ misunderstandings): Fix example code.
13176 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
13178         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
13179         (host-default.o): Add dependency on HOOKS_H.
13180         * config/x-linux: Likewise.
13181         * config/x-solaris: Likewise.
13182         * config/i386/x-mingw32: Likewise.
13183         * config/rs6000/x-darwin: Likewise.
13185 2004-08-23  James E Wilson  <wilson@specifixinc.com>
13187         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
13188         DEF_REG_NOTE.
13190 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
13192         PR c/14492
13193         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
13195 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
13197         * cfg.c (check_bb_profile): Fix typos.
13198         * function.c (assign_parm_is_stack_parm): Likewise.
13199         * tree-nested.c: Likewise.
13201 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
13203         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
13204         Remove TYPECODE.
13205         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
13207 2004-08-23  Eric Christopher  <echristo@redhat.com>
13209         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
13210         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
13211         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
13212         * target.h: Ditto.
13213         * hooks.h: Include machmode.h.
13214         (hook_bool_mode_false): Declare.
13215         * hooks.c (hook_bool_mode_false): Define.
13216         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
13217         * stor-layout.c (layout_type): Ditto.
13218         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
13219         Define to target macro.
13220         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
13221         * config/arm/arm.c: Ditto. Use.
13222         * config/arm/arm.h: Ditto.
13223         * config/arm/arm-protos.h: Ditto.
13224         * config/i386/i386.c: Ditto.
13225         * config/i386/i386.h: Ditto.
13226         * config/rs6000/rs6000.c: Ditto.
13227         * config/rs6000/rs6000.h: Ditto.
13228         * config/sh/sh.c: Ditto.
13229         * config/sh/sh.h: Ditto.
13230         * config/sh/sh-protos.h: Ditto.
13231         * config/sh/sh.md: Use.
13232         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
13233         to TARGET_VECTOR_MODE_SUPPORTED_P.
13235 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
13237         * Makefile.in (BUILD_ERRORS): Set to build-errors.
13238         (errors.o): New target for host.
13239         (build-errors.o): New target for build.
13240         (genobjs): Replace errors.o with build-errors.
13241         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
13242         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
13243         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
13244         (fix-header.o): Add errors.h
13245         * collect2.c (fancy_abort): Add parameters.
13246         * collect2.h (fancy_abort): Don't declare.
13247         * errors.h (fancy_abort): Don't declare.
13248         * errors.c: Include either bconfig.h or config.h.
13249         (fancy_abort): Trim filename.
13250         * fix-header.c (v_fatal, fatal): Remove.
13251         (progname): Remove definition.
13252         (main): Set progname here.
13253         * gcc.c (fancy_abort): Add parameters.
13254         * gcc.h (fancy_abort): Remove declaration.
13255         * gcov.c (fancy_abort): Remove.
13256         * rtl.h (fancy_abort): Don't declare.
13257         (abort): Don't define.
13258         * tree.h (fancy_abort): Don't declare.
13259         (abort): Don't define.
13260         * system.h (fancy_abort): Declare.
13261         (abort): Define to fancy_abort.
13262         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
13264         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
13265         (usize_type, ubitsizetype): Remove.
13266         * stor-layout.c (set_sizetype): Don't initialize usizetype,
13267         ubitsizetype.
13268         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
13270         * tree.h (build_distinct_type_copy): New.
13271         (build_type_copy): ... here.  Rename to ...
13272         (build_variant_type_copy): ... here.
13273         * tree.c (build_qualified_type): Rename build_type_copy call.
13274         (build_distinct_type_copy): New, broken out of ...
13275         (build_type_copy): ... here.  Rename to ...
13276         (build_variant_type_copy): ... here.  Use
13277         build_distinct_type_copy.
13278         (build_common_tree_nodes_2): Rename build_type_copy call.
13279         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
13280         call.
13281         (handle_packed_attribute, handle_unused_attribute,
13282         handle_transparanet_union_attribute, handle_aligned_attribute,
13283         handle_deprecated_attribute): Likewise.
13284         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
13285         Likewise.
13286         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
13287         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
13288         build_distinct_type_copy.
13290 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13292         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
13293         attribute.
13295 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13297         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
13298         loads and stores.
13299         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
13300         formerly unnamed patterns.  Redefine using :P for the address.  Remove
13301         explicit length attributes.
13303 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13305         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
13306         New functions.
13307         (single_reachable_address): Use them.
13308         (schedule_sm): Add dump.
13309         (is_call_clobbered_ref): New function.
13310         (determine_lsm_reg): Check whether the reference is call clobbered.
13311         Only work for gimple_reg_type values.
13313 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13315         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
13316         $31 store insns.  Redefine using :GPR.
13318 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13320         * config/mips/mips.md (P): New mode macro.
13321         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
13322         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
13323         Add mode attributes.
13325 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13327         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
13328         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
13329         later constants to cover the gap.
13330         (load, store): New mode attributes.
13331         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
13332         Use new unspec constants.
13334 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13336         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
13337         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
13338         to use register_operand rather than uns_arith_operand as the predicate
13339         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
13340         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
13341         Redefine using :GPR.  Make same predicate change here.  Extend the
13342         commutativity of operands 1 and 2 from the SImode version to the
13343         DImode one.
13344         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
13345         but with no predicate changes.
13346         (*nor[sd]i3): Redefine using :GPR.
13348 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13350         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
13351         noreturn functions.
13353 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13355         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
13356         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
13357         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
13358         rather than "%z2" (with a fake const0_rtx for operand 2).
13359         (ffs[sd]i2): Redefine using :GPR.
13360         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
13362 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13364         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
13366 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13368         * config/mips/mips.md (any_extend): New code macro.
13369         (u, su): New code attributes.
13370         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
13371         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
13372         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
13373         (*{s,u}mul_acc_di): Redefine using any_extend.
13374         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
13375         to reflect real insn names.
13376         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
13377         with an any_extend template.
13378         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
13379         Add '*' to name.
13381 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13383         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
13384         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
13385         (mul[sd]i3_r4000): Redefine using :GPR.
13386         (mulsi3_mult3): Don't check TARGET_MAD separately.
13387         (muldi3_mult3): Moved after mulsi_mult3.
13389 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13391         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
13392         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
13393         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
13394         (TARGET_GAS, TARGET_MIPS_AS): Delete.
13395         (TARGET_GPWORD): Define to true for n32 on IRIX.
13396         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
13397         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
13398         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
13399         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
13400         (MDEBUG_ASM_SPEC): Delete, folding into...
13401         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
13402         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
13403         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
13404         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
13405         to define asm_abi_default_spec.
13406         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
13407         (TARGET_ASM_SELECT_SECTION): Delete.
13408         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
13409         for non-mips16 code, removing previous workaround for SGI assemblers.
13410         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
13411         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
13412         (override_options): Remove !TARGET_GAS and !have_named_sections code.
13413         (print_operand): Fold TARGET_GAS conditionals into asm strings.
13414         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
13415         ASM_STABS_OP and ASM_STABN_OP.
13416         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
13417         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
13418         (mips_output_function_prologue): Remove !TARGET_GAS code.
13419         (mips_select_rtx_section): Remove !have_named_sections code.
13420         (mips_select_section): Delete.
13421         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
13422         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
13423         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
13424         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
13425         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
13426         * config/mips/windiss.h (ASM_SPEC): Likewise.
13428 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13430         * read-rtl.c (map_value, mapping, macro_group): New structures.
13431         (BELLWETHER_CODE): New macro.
13432         (modes, codes, bellwether_codes): New variables.
13433         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
13434         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
13435         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
13436         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
13437         (add_map_value, initialize_macros): New functions.
13438         (def_hash, def_hash_eq_p): Generalize to anything that points to,
13439         or starts with, a char * field.
13440         (find_macro, read_mapping, check_code_macro): New functions.
13441         (read_rtx_1): New, split out from read_rtx.  Handle the new
13442         define_{mode,code}_{macro,attr} constructs.  Use find_macro
13443         to parse the name of a code or mode.  Use BELLWETHER_CODE to
13444         extract the format and to choose a suitable code for rtx_alloc.
13445         Modify recursive invocations to use read_rtx_1.
13446         (read_rtx): Call initialize_macros.  Apply code and mode macros
13447         to the rtx returned by read_rtx_1.  Cache everything after the
13448         first macro expansion for subsequent read_rtx calls.
13449         * doc/md.texi: Document new .md constructs.
13450         * config/mips/mips.md (GPR): New mode macro.
13451         (d, si8_di5): New mode attributes.
13452         (any_cond): New code macro.
13453         (add[sd]i3): Redefine using :GPR.
13454         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
13455         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
13456         previously unnamed MIPS16 patterns.
13457         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
13458         lines.  Don't match (plus (const_int 0) ...).
13459         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
13460         Use a define_split to generate the addition.
13461         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
13462         (subsi3_internal): Delete.
13463         (*subsi3_extended): Renamed from subsi3_internal_2.
13464         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
13465         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
13466         using an any_cond template.
13468 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13470         * read-rtl.c (read_rtx): Tidy use of format_ptr.
13472 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
13474         * read-rtl.c (string_obstack): New file-scope variable.
13475         (read_string, read_quoted_string, read_braced_string)
13476         (read_escape): Remove obstack parameter and use string_obstack instead.
13477         (read_rtx): Remove function-local rtl_obstack and initialize
13478         string_obstack instead.  Update call to read_string.
13480 2004-08-22  Andrew Pinski  <apinski@apple.com>
13482         PR c/15262
13483         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
13484         expression is not constant.
13485         (c_finish_return): Do not go through INDIRECT_REF when looking
13486         for the inner expression of an ADDR_EXPR for warning about.
13488 2004-08-22  Richard Henderson  <rth@redhat.com>
13490         PR 17075
13491         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
13492         create new blocks and fall through.
13493         (expand_gimple_basic_block): Update to match.
13495 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
13497         * reload.c (find_reloads_address): Make return value tri-state.
13498         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
13499         (find_reloads): Assume that reloaded addresses match 'o' or
13500         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
13501         returned 1 (not -1).  Omit optional reloads for address operands
13502         only if find_reloads_address returned 1 (not -1).
13504         * config/s390/s390.c (legitimize_reload_address): New function.
13505         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
13506         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
13507         legitimize_reload_address.
13509 2004-08-22  Richard Hendersion  <rth@redhat.com>
13511         * tree.h (SAVE_EXPR_RESOLVED_P): New.
13512         * gimplify.c (gimplify_save_expr): Use it.
13513         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
13514         on the temporary variable.
13516 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
13518         * fold-const.c (rtl_expr_nonnegative_p): Delete.
13519         * tree.h (rtl_expr_nonnegative_p): Remove.
13521 2004-08-22  Steven Bosscher  <stevenb@suse.de>
13523         * config/i386/ppro.md (ppro_complex_insn): Add missing check
13524         for cpu==pentiumpro.
13526         * combine.c (struct reg_stat): Fix comment typo.
13528 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
13530         * c-tree.h (c_sizeof_nowarn): Remove.
13532 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
13534         * c-decl.c (set_array_declarator_type): Rename to
13535         set_array_declarator_inner.
13536         (build_c_parm, build_attrs_declarator, build_function_declarator):
13537         New functions.
13538         (make_pointer_declarator): Call build_attrs_declarator.
13539         * c-tree.h (set_array_declarator_type): Rename to
13540         set_array_declarator_inner.
13541         (build_c_parm, build_attrs_declarator, build_function_declarator):
13542         New prototypes.
13543         * c-parse.in (after_type_declarator,
13544         parm_declarator_starttypename, parm_declarator_nostarttypename,
13545         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
13546         firstparm): Use these functions
13548 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
13550         * c-decl.c (build_array_declarator, set_array_declarator_type,
13551         start_decl, grokdeclarator, grokparms): Change boolean parameters
13552         to type bool.
13553         * c-tree.h (build_array_declarator, set_array_declarator_type,
13554         start_decl): Update prototypes.
13555         * c-decl.c, c-parse.in: All callers changed.
13557 2004-08-21  Mike Stump  <mrs@apple.com>
13559         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
13560         (darwin_fix_and_continue): Likewise.
13561         (darwin_fix_and_continue_switch): Likewise.
13562         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
13563         (darwin_fix_and_continue): Likewise.
13564         (darwin_fix_and_continue_switch): Likewise.
13566 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
13568         PR  c++/16030
13569         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
13570         Remove, merging into ...
13571         (gen_stdcall_or_fastcall_suffix): New function, returning tree
13572         rather than const char*, and accepting additional parameter.
13573         Don't add suffix to '*'-prefixed symbols or variadic functions.
13574         (i386_pe_encode_section_info): Adjust for call to new function.
13575         Call change_decl_assembler_name.
13577 2004-08-20  Mike Stump  <mrs@apple.com>
13579         * config/darwin.c (machopic_indirect_data_reference): Mark
13580         stubs as defined.
13581         * config/386/386.c (darwin_local_data_pic): Add.
13582         (legitimate_constant_p): Reorder so that PLUS handling runs
13583         before darwin_local_data_pic to match the ordering in
13584         legitimate_pic_address_disp_p and so that MINUS runs after
13585         darwin_local_data_pic as otherwise the darwin_local_data_pic
13586         logic can be skipped, which would be very bad.
13587         (legitimate_pic_address_disp_p): Move from from here to
13588         darwin_local_data_pic so it can be reused.
13590 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
13592         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
13593         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
13594         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
13595         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
13596         (RS6000_ABI_NAME): Define as "linux".
13597         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
13598         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
13599         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
13600         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
13601         * config/rs6000/rs6000.c (dot_symbols): New global var.
13602         (rs6000_output_function_entry): New function, modified for
13603         !DOT_SYMBOLS..
13604         (print_operand <case 'z'>): ..extracted from here.
13605         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
13606         (rs6000_output_function_epilogue): Likewise.
13607         (rs6000_elf_declare_function_name): Likewise.
13608         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
13609         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
13610         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
13611         * configure: Regenerate.
13612         * config.in: Regenerate.
13614 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
13616         * reload.c (find_reloads_address): Fix thinko in previous change.
13618         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
13619         a CONST_INT.
13621 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
13623         PR rtl-optimization/17099
13624         * combine.c (force_to_mode): Check if inner_mask has any bits set
13625         outside of GET_MODE (x) instead of op_mode.
13627 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
13629         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
13630         fragment.
13631         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
13632         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
13633         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
13634         architecture.
13635         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
13636         configurations.
13637         * config/arm/t-symbian: New file.
13639 2004-08-20  Andrew Pinski  <apinski@apple.com>
13641         * regrename.c (kill_value_regno): ANSIfy.
13643 2004-08-20  Dale Johannesen  <dalej@apple.com>
13645         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
13647 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
13649         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
13650         (kill_value_regno): New function, derived from kill_value.
13651         (kill_value): Update.
13652         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
13654 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
13656         Fix PR tree-optimization/17111
13657         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
13658         of non-value_handles.
13659         (bitmap_set_contains): All constants are in every set.
13661 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
13663         * fold-const.c (round_up, round_down): Use build_int_cst.
13664         Optimize common case.
13666 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
13667             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13669         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
13670         one_only_data_section): Rename to som_readonly_data_section,
13671         som_one_only_readonly_data_section and som_one_only_data_section.
13672         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
13673         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
13674         conditional defines.
13675         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
13676         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
13677         string values.
13678         (pa_select_section): Use renamed section functions.
13679         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
13680         SOM_READONLY_DATA_SECTION_FUNCTION,
13681         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
13682         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
13683         Define here ...
13684         * config/pa/som.h: ... not here.
13685         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
13686         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
13687         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
13688         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
13689         (READONLY_DATA_SECTION): Use som_readonly_data_section.
13691 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
13693         * fold-const.c (int_const_binop): Don't generate non-overflowing
13694         size-types specially.
13695         (fold_convert_const): Likewise.
13697         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
13698         clear cache on copied sizetype.
13700 2004-08-20  Ben Elliston  <bje@au.ibm.com>
13702         * configure.ac: Don't escape apostrophe in --enable-coverage help.
13703         * configure: Regenerate.
13705 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
13707         PR 5620
13708         * gcc.c (struct stat input_stat): Don't define if
13709         HOST_LACKS_INODE_NUMBERS
13710         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
13711         than stat to determine if temp file is same as input file.
13712         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
13713         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
13715 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
13717         * configure.ac (mips*-*-*): Print an error if not using GAS.
13718         * configure: Regenerated.
13719         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
13720         comments about buggy MIPSpro assemblers.
13721         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
13722         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
13723         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
13724         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
13725         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
13726         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
13727         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
13728         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
13729         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
13730         of more general IRIX 6 definitions.
13731         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
13732         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
13733         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
13734         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
13735         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13736         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
13737         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
13738         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
13739         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
13740         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
13741         (LINK_SPEC): Move most of definition to iris.h.
13742         (SUBTARGET_LINK_SPEC): New macro.
13743         (IRIX_STARTFILE_SPEC): Fold into...
13744         (STARTFILE_SPEC): ...here.
13745         (IRIX_ENDFILE_SPEC): Fold into...
13746         (ENDFILE_SPEC): ...here.
13747         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
13748         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
13749         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
13750         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
13751         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
13752         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
13753         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
13754         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
13755         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
13756         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
13757         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
13758         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
13759         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
13760         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
13761         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
13762         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
13763         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
13764         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
13765         (TARGET_IRIX6): Define to 1.
13766         (DRIVER_SELF_SPECS): Define.
13767         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
13768         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
13769         (SUBTARGET_LINK_SPEC): New macro.
13770         (IRIX_STARTFILE_SPEC): Fold into...
13771         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
13772         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
13773         (LIB_SPEC, LIBGCC_SPEC): Use them.
13774         (LIB_SPEC): Remove !mabi=* case.
13775         (IRIX_ENDFILE_SPEC): Fold into...
13776         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
13777         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
13778         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
13779         (TARGET_IRIX6): New macro.
13780         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
13781         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
13782         (LABEL_AFTER_LOC): Delete.
13783         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
13784         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
13785         (mips_build_builtin_va_list): Check TARGET_IRIX6.
13786         (override_options): Remove TARGET_SGI_O32_AS-related code.
13787         (irix_output_external_libcall): Make static.
13788         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
13789         LABEL_AFTER_LOC.
13790         (mips_file_start): Tidy guard for ABI sections.  Remove use of
13791         ABICALLS_ASM_OP; use .abicalls instead.
13792         (mips_output_aligned_decl_common, mips_declare_object_name)
13793         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
13794         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
13795         .globl foo .text directives.
13796         (irix_asm_named_section_1, irix_asm_named_section)
13797         (irix_section_align_entry, irix_section_align_htab)
13798         (irix_orig_asm_out_file, irix_section_align_entry_eq)
13799         (irix_section_align_entry_hash, irix_asm_output_align)
13800         (irix_file_start, irix_section_align_1, copy_file_data)
13801         (irix_file_end, irix_section_type_flags): Delete.
13802         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
13803         Use standard section syntax.  Remove protective "jr $31".
13804         (__gcc_fini): Likewise .gcc_fini.
13805         * config/mips/irix-crtn.asm: Adjust sections accordingly.
13806         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
13807         iris5gas.h.
13808         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
13809         from t-irix-gld.
13810         (EXTRA_MULTILIB_PARTS): Define.
13811         * config/mips/t-iris6: Remove bogus comment.
13812         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
13813         * config/mips/iris5gas.h, config/mips/iris5gld.h,
13814         config/mips/iris6gas.h, config/mips/iris6gld.h,
13815         config/mips/t-iris5-as, config/mips/t-iris5-gas
13816         config/mips/t-irix-gld: Delete.
13817         * config/mips/iris.h: New file.
13818         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
13820 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
13822         * postreload.c (reload_cse_move2add): Allow any condjump, but check
13823         that the implicit set isn't clobbered in the jump insn.
13825 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
13827         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
13828         * optabs.c (init_optabs): Don't check it.
13829         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
13830         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
13832 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
13834         * config/s390/s390.md (s390_warn_framesize_string)
13835         (s390_warn_dynamic_string, s390_stack_size_string)
13836         (s390_stack_guard_string): New global string variables.
13837         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
13838         (s390_stack_guard): New global variables.
13839         (override_options): Added checks for the new options.
13840         (s390_emit_prologue): Emit stack check and trap code and perform
13841         compile time stack size checking.
13843         * config/s390/s390.h (TARGET_OPTIONS): Added new options
13844         "warn-framesize", "warn-dynamicstack", "stack-size" and
13845         "stack-guard".
13847         * doc/invoke.texi: Added documentation for the new options.
13849 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
13851         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
13852         to eliminate warning.
13853         (linear_search_fdes): Declare p as unsigned.
13854         (binary_search_mixed_encoding_fdes): Likewise.
13855         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
13856         to eliminate warning.
13857         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
13858         type cast.
13860 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
13862         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
13863         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
13864         instead of one.  Check for strictly legitimate address.
13865         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
13866         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
13868 2004-08-19  Eric Christopher  <echristo@redhat.com>
13870         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
13871         * langhooks.h (unsave_expr_now): Ditto.
13872         * tree.h (unsave_expr_1): Remove prototype.
13873         (lhd_unsave_expr_now): Rename to unsave_expr_now.
13874         * tree-inline.c (unsave_expr_1): Move here
13875         from tree.c. Make static.
13876         (unsave_expr_now): Rename from lhd_unsave_expr_now.
13877         * tree-sra.c: Fix up for rename.
13878         * tree-ssa-copy.c: Ditto.
13879         * tree-eh.c: Ditto.
13880         * tree.c (unsave_expr_1): Move to tree-inline.c.
13882 2004-08-19  Caroline Tice  <ctice@apple.com>
13884         * config/i386/cygming.h (switch_to_section):  Fix typo (change
13885         in_unlikely_text_section to in_unlikely_executed_text).
13887 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
13889         * vec.h (VEC_lower_bound): New macro.
13891 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
13893         PR target/16446
13894         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
13895         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
13896         treat each ABI separately.  Deal with n32/n64 complex float arguments.
13897         (function_arg): Add associated complex handling here.
13899 2004-08-19  Richard Henderson  <rth@redhat.com>
13901         * config/arm/arm.c (arm_gen_load_multiple): Use
13902         adjust_automodify_address.  Take base memory and offset instead
13903         of unchanging/struct/scalar bits.
13904         (arm_gen_store_multiple): Likewise.
13905         (arm_gen_movmemqi): Use adjust_automodify_address.
13906         * config/arm/arm-protos.h: Update decls.
13907         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
13908         (store_multiple): Similarly.
13910 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
13912         * regclass.c (globalize_reg): Update call_really_used_regs.
13914 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
13916         * doc/invoke.texi (integer-share-limit): Document.
13918         * tree.h (TYPE_CACHED_VALUES_P): New.
13919         (TYPE_CACHED_VALUES): New.
13920         (TYPE_ORIG_SIZE_TYPE): Adjust.
13921         * tree.def (INTEGER_CST): Update documentation.
13922         * tree.c: Inlcude params.h.
13923         (build_int_cst): Cache small values.
13924         (build_type_copy): Do not copy the value cache.
13925         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
13926         unneeded zeroing.
13927         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
13928         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
13929         cache.
13930         * fold-const.c (force_fit_type): Copy value when setting
13931         overflows.
13932         (int_const_binop): Likewise.
13933         * stor-layout.c: Include params.h
13934         (set_sizetype): Create values cache.
13935         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
13936         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
13937         * params.h (INTEGER_SHARE_LIMIT): New.
13938         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
13940 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
13942         * gimplify.c (gimplify_minimax_expr): Remove.
13943         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
13945 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
13947         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
13948         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
13950 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
13952         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
13954 2004-08-18  Andrew Pinski  <apinski@apple.com>
13956         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
13958 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
13960         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
13961         (__aeabi_ul2f): Likewise.
13963 2004-08-18  Richard Henderson  <rth@redhat.com>
13965         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
13966         move to rtl completely.
13967         (struct meminsnbuf, xtensa_emit_block_move): Remove.
13968         (xtensa_find_mode_for_size): Remove.
13969         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
13970         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
13972 2004-08-18  Richard Henderson  <rth@redhat.com>
13974         * config/mcore/mcore.c (mode_from_align): Remove DImode.
13975         (block_move_sequence): Rewrite to use adjust_address.
13976         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
13977         Return boolean indicating success/failure.
13978         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
13979         * config/mcore/mcore.md (movmemsi): Update to match.
13981 2004-08-18  Mike Stump  <mrs@apple.com>
13983         * doc/invoke.texi (-mfix-and-continue): Add support for
13984         fast turn around debugging.
13985         (-ffix-and-continue): Likewise.
13986         (-mindirect-data): Likewise.
13987         (-findirect-data): Likewise.
13988         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
13989         (indirect_data): Likewise.
13990         (machopic_data_defined_p): Likewise.
13991         (machopic_output_indirection): Likewise.
13992         (darwin_encode_section_info): Likewise.
13993         (darwin_fix_and_continue): Likewise.
13994         (darwin_fix_and_continue_switch): Likewise.
13995         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
13996         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
13997         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
13998         (SUBTARGET_OPTIONS): Likewise.
13999         (darwin_fix_and_continue): Likewise.
14000         (darwin_fix_and_continue_switch): Likewise.
14001         (TARGET_FIX_AND_CONTINUE): Likewise.
14002         * config/rs6000.c (rs6000_emit_prologue): Likewise.
14004 2004-08-19  Steven Bosscher  <stevenb@suse.de>
14006         * basic-block.h (struct edge_def): Remove crossing_edge.
14007         (EDGE_CROSSING): New define.
14008         (EDGE_ALL_FLAGS): Update.
14009         * bb-reorder.c (find_traces_1_round, better_edge_p,
14010         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
14011         find_jump_block, fix_crossing_conditional_branches,
14012         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
14013         Replace all occurences of crossing_edge with an edge flag check
14014         or set/reset.
14015         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
14016         try_crossjump_bb): Likewise.
14017         * cfglayout.c (fixup_reorder_chain): Likewise.
14018         * cfgrtl.c (force_nonfallthru_and_redirect,
14019         commit_one_edge_insertion): Likewise.
14021         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
14022         * tree-flow.h (compute_dominance_frontiers): Move prototype...
14023         * basic-block.h:  ...here.
14024         * tree-cfg.c (compute_dominance_frontiers_1,
14025         compute_dominance_frontiers): Move from here...
14026         * cfganal.c: ...to here.  Include timevar.h.
14028 2004-08-18  James E Wilson  <wilson@specifixinc.com>
14030         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
14031         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
14033         * config/mips/mips.md (type): Add frdiv.
14034         (divsf3+1, divsf3+2): Change type to frdiv.
14035         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
14036         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
14038         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
14039         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
14040         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
14041         * config/mips/5000.md (r5k_fdiv_single): Likewise.
14042         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
14043         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
14044         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
14045         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
14046         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
14047         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
14048         Likewise.
14049         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
14051 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
14053         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
14054         get regression tester working again.
14056 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
14058         * insn-notes.def, reg-notes.def: New files.
14059         * rtl.h: Use them to define enum insn_note and enum reg_note.
14060         * rtl.c: Use them to define note_insn_name and reg_note_name.
14061         * Makefile.in (RTL_BASE_H): Update.
14063         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
14064         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
14066 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
14068         * arm.c (arm_size_rtx_costs): New function.
14069         (arm_override_options): Use it if optimizing for space.
14071 2004-08-18  Richard Henderson  <rth@redhat.com>
14073         * emit-rtl.c (gen_const_mem): New.
14074         * rtl.h (gen_const_mem): Declare.
14075         * expr.c (do_tablejump): Use it.
14076         * varasm.c (force_const_mem): Likewise.
14077         * config/darwin.c (machopic_indirect_data_reference): Likewise.
14078         (machopic_legitimize_pic_address): Likewise.
14079         * config/arm/arm.c (legitimize_pic_address): Likewise.
14080         * config/i386/i386.c (legitimize_pic_address): Likewise.
14081         (legitimize_tls_address): Likewise.
14082         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
14083         * config/ia64/ia64.md (load_fptr): Likewise.
14084         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
14085         * config/pa/pa.c (legitimize_pic_address): Likewise.
14086         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
14087         (rs6000_emit_move): Likewise.
14088         * config/s390/s390.c (legitimize_pic_address): Likewise.
14089         (legitimize_tls_address): Likewise.
14090         * config/s390/s390.md (casesi): Likewise.
14091         * config/sh/sh.c (sh_reorg): Likewise.
14092         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
14093         * config/v850/v850.md (casesi): Likewise.
14095         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
14096         * config/sh/sh.c (prepare_move_operands): Remove incorrect
14097         use of MEM_READONLY_P.
14099 2004-08-18  Steven Bosscher  <stevenb@suse.de>
14101         * Makefile.in (OBJS-common): Add postreload-gcse.c.
14102         Add new postreload-gcse.o.
14103         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
14104         (lookup_as_function, insert, rehash_using_reg, use_related_value,
14105         equiv_constant): Use SAFE_HASH instead of safe_hash.
14106         (exp_equiv_p): Export.  Add for_gcse argument when comparing
14107         for GCSE.
14108         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
14109         find_comparison_args, fold_rtx, cse_insn): Update callers.
14110         (hash_rtx): New function derived from old canon_hash and bits
14111         from gcse.c hash_expr_1.
14112         (canon_hash_string): Rename to hash_rtx_string.
14113         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
14114         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
14115         (cselib_lookup): Update this caller.
14116         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
14117         Make static.
14118         (hash_expr): Call hash_rtx.
14119         (ldst_entry): Likewise.
14120         (expr_equiv_p): Call exp_equiv_p.
14121         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
14122         reg_used_on_edge, reg_set_between_after_reload_p,
14123         reg_used_between_after_reload_p, get_avail_load_store_reg,
14124         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
14125         get_bb_avail_insn, hash_scan_set_after_reload,
14126         compute_hash_table_after_reload,
14127         eliminate_partially_redundant_loads, gcse_after_reload,
14128         get_bb_avail_insn, gcse_after_reload_main): Remove.
14129         * postreload-gcse.c: New file, reincarnating most of the above.
14130         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
14131         (gcse_after_reload_main): Update prototype.
14132         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
14133         * passes.c (rest_of_handle_gcse2): Use it.
14135 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
14137         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
14138         (pass_loop_done): Likewise.
14140 2004-08-18  Andrew Pinski  <apinski@apple.com>
14142         * config/rs6000/darwin.md: Delete the altivec patterns which are
14143         handled differently now.
14144         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
14145         (macho_correct_pic_di): Likewise.
14146         (call_indirect_nonlocal_darwin64): Likewise.
14147         Delete the save world/saveFP/saveVec patterns.
14149         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
14150         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14151         * config/rs6000/rs6000.md: Include darwin.md.
14152         (builtin_setjmp_receiver): Add DImode case.
14153         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
14154         Darwin bits.
14156 2004-08-18  Matt Austern  <austern@apple.com>
14158         Dead code stripping
14159         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
14160         * darwin.c (darwin_file_end): Mark file as potentially strippable.
14162 2004-08-18  Richard Henderson  <rth@redhat.com>
14164         * alias.c (readonly_fields_p): Remove.
14165         (objects_must_conflict_p): Don't call it.
14166         * tree.h (readonly_fields_p): Remove.
14167         * langhooks.h (struct lang_hooks): Remove honor_readonly.
14168         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
14170 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
14172         * tree-dfa.c (add_referenced_var): Only global variables are
14173         call-clobbered.
14174         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
14175         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
14176         all pointers dereferenced if the statement dereferences them.
14177         (create_name_tags): Do not create memory tags for pointers
14178         that have PT_ANYTHING set.
14179         Also check if PT_VARS is not empty before creating a name tag.
14180         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
14181         variables that share the same alias set with a pointer that
14182         may point anywhere.
14183         (add_may_alias): Add FIXME comment to remove clobbering
14184         aliased variables and tags.
14185         (replace_may_alias): Likewise.
14186         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
14187         (merge_pointed_to_info): If the original variable has not
14188         points-to information, call set_pt_anything.
14189         (add_pointed_to_var): Do not prevent adding a pointed-to
14190         variable if the pointers is PT_ANYTHING.
14191         If the variable is a global, set PT_GLOBAL_MEM.
14192         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
14193         pointer type only come in PTR+OFFSET flavours.
14194         Always call merge_pointed_to_info on PHI arguments that are
14195         SSA_NAMEs.
14196         (get_nmt_for): Mark call-clobbered tags whose pointer points
14197         to global memory.
14198         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
14199         values.
14200         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
14201         FLAGS.
14202         (add_stmt_operand): Abort if the caller tried to add a killing
14203         definition for a memory tag.
14204         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
14205         unnecessary checks.
14207 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
14209         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
14210         from call_used_regs.  Update call_really_used_regs.
14211         (CALL_REALLY_USED_REGISTERS): Define.
14212         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
14213         Replace call_used_regs with call_really_used_regs.
14214         (calc_live_regs, sh_media_register_for_return): Likewise.
14215         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
14216         * sh.md (return_media): Likewise.
14218 2004-08-18  Andrew Pinski  <apinski@apple.com>
14220         * config/darwin.c (machopic_legitimize_pic_address): Only set
14221         MEM_READONLY_P in the non TARGET_TOC case.
14223 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
14225         * rtl.def (NIL): Delete.
14226         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
14227         Tighten the syntax a little.
14229         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
14230         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
14231         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
14232         * config/i386/predicates.md, config/m32r/m32r.h
14233         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
14234         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
14235         * config/sparc/sparc.h, doc/tm.texi:
14236         Replace all occurrences of NIL with UNKNOWN.
14238 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
14240         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
14241         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
14242         sequence inline.  Move drop_through_label code into this
14243         block, being the only place it is used.  Adjust comments.
14245 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
14247         * config/rs6000/altivec.md: Add new patterns for calls to
14248         save_world/rest_world functions.
14250         * config/rs6000/rs6000-protos.h: (save_world_operation,
14251         restore_world_operation) new declarations.
14253         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
14254         field added.
14255         (rs6000_stack_info): Set world_save_p field.
14256         (save_world_operation): New function.
14257         (restore_world_operation): New function.
14258         (compute_save_world_info): New function.
14259         (rs6000_stack_info): Call compute_save_world_info.
14260         (rs6000_emit_prologue): Check for world_save_p and generate
14261         pattern to call save_world for saving all non-volatile and
14262         special registers.
14263         (rs6000_emit_epilogue): Check for world_save_p and generate
14264         pattern to call rest_world to restore saved registers.
14266         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
14267         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
14268         (rs6000_reg_names): New entries added for save_world_operation and
14269         restore_world_operation.
14271 2004-08-18  Caroline Tice  <ctice@apple.com>
14273         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
14274         "-freorder-blocks-and-partition" to the flags used in second
14275         stage of profiledbootstrap.
14276         * bb-reorder.c (push_to_next_round_p): Add new variable,
14277         next_round_is_last; set and use variable to make sure, when
14278         partitioning, that the last trace construction round consists
14279         of all (and only) cold basic blocks.
14280         (rotate_loop): Don't copy blocks that end in a section
14281         crossing jump.
14282         (copy_bb): Correctly initialize "partition" of duplicated bb.
14283         (add_unlikely_executed_notes): Add a comment.
14284         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
14285         to make sure, if function contains hot blocks, that the
14286         successors of ENTRY_BLOCK_PTR are hot; also, only look for
14287         crossing edges if the architecture supports named sections.
14288         (mark_bb_for_unlikely_executed_section): Modify to always
14289         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
14290         the basic block note insn.
14291         (fix_crossing_unconditional_branches): Remove extra space.
14292         (fix_edges_for_rarely_executed_code): Modify to only do
14293         partitioning work if the architecture supports named sections.
14294         (reorder_basic_blocks): Modify to only add
14295         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
14296         supports named sections.
14297         * c-common.c (handle_section_attribute): Initialize new global
14298         variable, user_defined_section_attribute, to true if user has
14299         specified one.
14300         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
14301         forward edges that cross section boundaries.
14302         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
14303         partitioning information if the architecture supports named
14304         sections.
14305         * cfgrtl.c (target.h): Add statement to include this.
14306         (rtl_split_block): Make sure newly created bb gets correct
14307         partition.
14308         (try_redirect_by_replacing_jump): Make sure redirection isn't
14309         attempting to cross section boundaries.
14310         (force_nonfallthru_and_redirect): Only do partition fix up if
14311         architecture supports named sections.
14312         (rtl_split_edge): Make sure newly created bb ends up in
14313         correct partition.
14314         (commit_one_edge_insertion): Remove code that incorrectly
14315         updated basic block partition; Make sure partition fix up only
14316         happens if architecture supports named sections and it's not
14317         already done.
14318         (rtl_verify_flow_info_1): Fix if-condition on test/error
14319         condition that fallthru edges are not allowed to cross section
14320         boundaries.
14321         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
14322         * final.c (final_scan_insn): Remove redundant test from if-statement;
14323         change calls to text_section into calls to function_section; add code
14324         to only to partitioning fix up if architecture supports named
14325         sections.
14326         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
14327         partition.
14328         (if_convert): Add targetm.have_named_sections to test.
14329         * output.h (unlikely_section_label): Extern declaration for new global
14330         variable.
14331         (unlikely_text_section_name): Likewise.
14332         * opts.c (decode_options): If both partitioning and DWARF debugging
14333         are turned on, issue a warning that this doesn't work, and change
14334         partitiong to basic block reordering (without hot/cold partitions).
14335         * passes.c (rest_of_handle_final): Re-set new global variable,
14336         user_defined_section_attribute, to false.
14337         (rest_of_compilation): Change options for calling partitioning
14338         function: Don't call if the user defined the section attribute, and
14339         don't call if DECL_ONE_ONLY is true for the current function.
14340         * predict.c (choose_function_section): Return immediately if we
14341         are doing hot/cold partitioning (i.e. let the basic block partitioning
14342         determine where the function belongs).
14343         * reg-stack.c (emit_swap_insn): Add condition to step over
14344         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
14345         * toplev.c (user_defined_section_attribute): New global variable.
14346         * toplev.h (user_defined_section_attribute): Extern declaration
14347         for new global variable.
14348         * varasm.c (unlikely_section_label): New global variable.
14349         (unlikely_text_section_name): New global variable.
14350         (unlikely_text_section): Add code to initialize
14351         unlikely_text_section_name if necessary; modify to use
14352         unlikely_text_section_name and unlikely_section_label; also to use
14353         named_section properly.
14354         (in_unlikely_text_section):  Modify to work correctly with
14355         named_section and to use unlikely_text_section_name.
14356         (named_section):  Add code to work properly with cold section.
14357         (function_section): Clean up if-statement.
14358         * config/darwin.c (darwin_asm_named_section): Return to original
14359         code, removing use of SECTION_FORMAT_STRING.
14360         * config/arm/pe.h (switch_to_section):  Add case for
14361         in_unlikely_executed_text to switch statement.
14362         * config/i386/cygming.h (switch_to_section): Likewise.
14363         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
14364         (SECTION_FORMAT_STRING): Likewise.
14365         * config/mcore/mcore.h (switch_to_section): Likewise.
14366         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
14367         (SECTION_FORMAT_STRING): Remove.
14369 2004-08-18  Roger Sayle  <roger@eyesopen.com>
14371         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
14372         -ffixed-reg safe, by preserving the meanings of zero and one.
14373         (CALL_USED_REGISTERS): Likewise.
14374         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
14376 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
14378         * config/sh/sh.c (split_branches): Check the result of
14379         next_active_insn.
14380         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
14381         Call rtl_register_cfg_hooks.
14383 2004-08-18  Richard Henderson  <rth@redhat.com>
14385         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
14386         * alias.c (true_dependence): Update to match new semantics.
14387         (canon_true_dependence, write_dependence_p): Likewise.
14388         (anti_dependence, output_dependence): Update write_dependence_p args.
14389         (unchanging_anti_dependence): Remove.
14390         * calls.c (purge_mem_unchanging_flag): Remove.
14391         (fixup_tail_calls): Don't call it.
14392         (expand_call): Don't add unchanging memory to function usage.
14393         * expr.c (emit_block_move_via_libcall): Likewise.
14394         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
14395         (get_subtarget): Don't use RTX_UNCHANGING_P.
14396         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
14397         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
14398         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
14399         * cse.c (insert): Don't use RTX_UNCHANGING_P.
14400         (cse_insn, canon_hash): Use MEM_READONLY_P.
14401         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
14402         instead of RTX_UNCHANGING_P.
14403         * explow.c (maybe_set_unchanging): Remove.
14404         * expr.h (maybe_set_unchanging): Remove.
14405         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
14406         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
14407         (assign_parm_setup_reg, expand_function_start): Likewise.
14408         * integrate.c (copy_rtx_and_substitute): Likewise.
14409         * ra-rewrite.c (emit_colors): Likewise.
14410         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
14411         (fixup_match_1): Likewise.
14412         * reload1.c (reload, alter_reg): Likewise.
14413         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
14414         not RTX_UNCHANGING_P.
14415         (equiv_init_varies_p): Likewise.
14416         * loop-invariant.c (check_maybe_invariant): Likewise.
14417         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
14418         * loop.c (note_addr_stored): Likewise.
14419         (prescan_loop): Likewise. Don't check function usage for clobbered
14420         unchanging memory.
14421         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
14422         not RTX_UNCHANGING_P.
14423         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
14424         * varasm.c (force_const_mem): Likewise.
14425         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
14426         * web.c (entry_register): Likewise.
14427         * tree-gimple.h (get_base_address): Move decl ...
14428         * tree.h: ... here.
14429         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
14431         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
14432         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
14433         (alpha_set_memflags): Update to match.
14435         * config/darwin.c (machopic_indirect_data_reference): Set
14436         MEM_READONLY_P instead of RTX_UNCHANGING_P.
14437         (machopic_indirect_call_target): Likewise.
14438         (machopic_legitimize_pic_address): Likewise.
14439         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
14440         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
14441         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
14442         * config/frv/frv.md (symGOT2reg): Likewise.
14443         * config/i386/i386.c (legitimize_pic_address,
14444         legitimize_tls_address, ix86_split_to_parts): Likewise.
14445         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
14446         * config/ia64/ia64.md (load_fptr): Likewise.
14447         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
14448         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
14449         * config/mcore/mcore.c (block_move_sequence): Likewise.
14450         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
14451         * config/pa/pa.c (legitimize_pic_address): Likewise.
14452         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
14453         (rs6000_emit_move): Likewise.
14454         * config/s390/s390.c (legitimize_pic_address): Likewise.
14455         (legitimize_tls_address): Likewise.
14456         * config/s390/s390.md (casesi): Likewise.
14457         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
14458         * config/sh/sh.md (symGOT2reg): Likewise.
14459         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
14460         * config/v850/v850.md (casesi): Likewise.
14462         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
14463         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
14464         * config/mips/mips.c (mips_restore_gp): Likewise.
14465         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
14466         * config/sh/sh.c (sh_reorg): Likewise.
14468 2004-08-18  Richard Henderson  <rth@redhat.com>
14470         * tree.h (struct tree_decl): Add gimple_formal_temp.
14471         (DECL_GIMPLE_FORMAL_TEMP_P): New.
14472         * gimplify.c (pop_gimplify_context): Clear it.
14473         (lookup_tmp_var): Set it, if is_formal.
14474         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
14475         Use is_gimple_val for VECTOR.  Simplify return value.
14476         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
14477         (gimplify_expr): Likewise.
14478         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
14479         is_gimple_tmp_rhs for clarity.  Update all callers.
14480         (is_gimple_reg_rhs): Simplify logic.
14481         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
14482         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
14483         (is_gimple_formal_tmp_reg): Similarly.
14484         * tree-gimple.h: Update decls.
14485         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
14486         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
14487         * tree-ssa-live.c (var_union, type_var_init): Likewise.
14489 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
14491         * c4x.c (legitimize_operands): Remove calls to
14492         preserve_subexpressions_p.
14494 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
14496         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
14497         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
14499 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
14501         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
14502         Objective-C++ extensions.
14503         * gengtype.c (get_file_basename): Match entire subdirectory name
14504         ('cp', 'objc', 'objcp') rather than just its suffix.
14505         (get_base_file_bitmap): Allow for files to belong to more than one
14506         language.
14507         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
14508         used by more than one front-end.
14510 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
14512         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
14513         avoid use of preserve_subexpressions_p.
14515 2004-08-17  Richard Henderson  <rth@redhat.com>
14517         PR 17051
14518         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
14520 2004-08-17  DJ Delorie  <dj@redhat.com>
14522         * doc/extend.texi: Document new xstormy16 attribute.
14524         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
14525         (xstormy16_splittable_below100_or_register): New.
14526         (combine_bnp): New.
14527         (xstormy16_reorg): New.
14528         (TARGET_MACHINE_DEPENDENT_REORG): Define.
14530         * config/stormy16/stormy16.md (movqi_internal): Make name public.
14531         (movhi_internal): Likewise.
14532         (cbhranchhi): Likewise.
14533         (cbhranchhi_neg): Likewise.
14534         (andhi3): Only allow splittable below100 operands.
14535         (iorhi3): Likewise.
14536         (peephole2): New and/zero_extend->and peephole.
14537         (peephole2): New load/ior/save->set1 peephole.
14538         (peephole2): New load/and/save->clr1 peephole.
14539         (bclrx, bclrx2, bclr7, bclr15): New.
14540         (bsetx, bsetx2, bset7, bset15): New.
14542         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
14543         liberal about acceptable 'B' masks.
14545         * config/stormy16/stormy16-protos.h
14546         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
14547         xstormy16_below100_operand, xstormy16_below100_or_register,
14548         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
14549         (PREDICATE_CODES): Add new predicates.
14551         * config/stormy16/stormy16.c
14552         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
14553         xstormy16_below100_operand, xstormy16_below100_or_register,
14554         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
14555         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
14556         (xstormy16_legitimate_address_p): Allow below100 symbols.
14557         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
14558         (xstormy16_expand_move): Leave below100 operands as-is.
14559         (xstormy16_encode_section_info): Encode below100 symbols.
14560         (xstormy16_strip_name_encoding): New.
14561         (xstormy16_print_operand): Print 'b' as shift mask.
14562         (xstormy16_attribute_table): Add below100 attributes.
14563         (xstormy16_handle_below100_attribute): New.
14565         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
14566         (XSTORMY16_SECTION_FUNCTION): New.
14567         (EXTRA_SECTION_FUNCTIONS): Define using the above.
14568         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
14569         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
14570         (ASM_OUTPUT_LABELREF): Define.
14572         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
14573         (movhi_internal): Add below100 support.
14574         (andhi3): Add below100 support.
14575         (iorhi3): Add below100 support.
14576         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
14578 2004-08-17  James E Wilson  <wilson@specifixinc.com>
14580         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
14581         of VOIDmode for comparison code mode.
14582         * config/mips/mips.md: For conditional move patterns, use mode of
14583         first compare operand for comparison mode, instead of VOIDmode.
14585         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
14586         normal and -ffast-math code.
14588 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
14590         PR c++/15871
14591         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
14593 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
14595         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
14597 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
14599         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
14600         for non Darwin targets.
14601         (*call_value_nonlocal_darwin64): Likewise.
14603 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
14605         * config/rs6000/rs6000.c (rs6000_function_value): Check for
14606         altivec mode for altivec return register.
14608 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
14610         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
14611         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14612         * config/rs6000/rs6000.md: Include darwin.md.
14613         (builtin_setjmp_receiver): Add DImode case.
14614         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
14615         Darwin bits.
14617 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
14619         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
14620         trees.
14621         * tree-vectorizer.h: New File: Same.
14622         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
14623         * common.opt (ftree-vectorize): New flag to enable vectorization.
14624         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
14625         vectorization pass.
14626         * tree-data-ref.h (init_data_ref): Additional argument.
14627         (array_base_name_differ_p): Moved to tree-data-ref.c.
14628         * tree-data-ref.c (array_base_name_differ_p): Revised.
14629         (initialize_data_dependence_relation): Call array_base_name_differ_p
14630         with an extra argument.
14631         (analyze_all_data_dependences): Same.
14632         (init_data_ref): Additional argument is_read to set DR_IS_READ.
14633         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
14634         file.
14635         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
14636         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
14637         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
14638         vectorization pass.
14639         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
14640         (tree_ssa_loop_done): Call scev_finalize.
14641         (tree_vectorize): Define the new vectorization pass.
14642         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
14643         size of the vector they support (until support for multiple vector
14644         sizes is added to the vectorizer).
14645         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
14646         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
14647         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
14648         documentation.
14650 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
14652         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
14653         usage.
14654         (generate_protocol_list, handle_impent): Likewise.
14656 2004-08-17  Roger Sayle  <roger@eyesopen.com>
14658         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
14659         ensure that call_used_regs is a superset of both fixed_regs and
14660         call_really_used_regs.
14662 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
14664         PR target/17019
14665         * arm.md (addsi3_cbranch_scratch): Correct case labels.
14667 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
14669         PR middle-end/17036
14670         * fold-const.c (fold): Check for integer operand when
14671         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
14672         Pinski  <pinskia@physics.uc.edu>.
14674 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
14676         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
14677         No need to check if in a cross configuration.
14678         * configure: Regenerate.
14680         * calls.c (precompute_register_parameters):
14681         Inline preserve_subexpressions_p ().
14682         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
14683         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
14684         Likewise.
14685         * expr.c (get_subtarget): Likewise.
14686         * rtl.h (preserve_subexpressions_p): Remove.
14687         * stmt.c (preserve_subexpressions_p): Remove.
14689         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
14690         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
14691         Abort on gimplified cases.
14693 2004-08-16  James E Wilson  <wilson@specifixinc.com>
14695         * tree.h (VECTOR_FLOAT_TYPE_P): New.
14696         (FLOAT_TYPE_P): Use it.
14697         * c-typeck.c (build_binary_op): After convert calls, check for
14698         check for ERROR_MARK operands.
14700 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
14702         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
14703         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
14704         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
14705         (genobjs static pattern rule): Remove %.c dependency.
14706         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
14707         Rename rules; delete commands; fix dependencies.
14708         (mostlyclean): Do not delete temporary source copies.
14709         * configure.ac: Delete all references to BUILD_PREFIX and
14710         BUILD_PREFIX_1.
14711         * configure: Regenerate.
14713         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
14714         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
14715         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
14716         with #ifndef GENERATOR_FILE so that nothing from those headers
14717         is used.
14719         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
14721 2004-08-16  Adam Nemet  <anemet@lnxw.com>
14723         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
14725 2004-08-16  Andrew Pinski  <apinski@apple.com>
14727         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
14728         extraneous semicolon.
14730 2004-08-16  Devang Patel  <dpatel@apple.com>
14732         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
14733         * print-tree.c (print_node): Print DECL_PRESERVE_P.
14734         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
14735         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
14736         * target.h (struct gcc_target): New member, mark_decl_preserved.
14737         * hooks.c (hook_void_charptr): Rename to ...
14738         (hook_void_constcharptr): ... new name.
14739         * hooks.h (hook_void_charptr): Rename to ..
14740         (hook_void_constcharptr): ... new name.
14741         * tree.h (DECL_PRESERVE_P): New #define.
14742         (struct tree_decl): New member, preserve_flag.
14743         * varasm.c (assemble_start_function): Mark decl preserved.
14744         (assemble_variable): Same.
14745         * darwin.c (darwin_mark_decl_preserved): New function.
14746         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
14747         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
14748         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
14750 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
14752         * c-decl.c (grokdeclarator): Allow for function definition where
14753         innermost declarator has attributes.
14755 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
14757         * except.c (get_exception_filter, build_post_landing_pads,
14758         dw2_build_landing_pads): Use target-specific mode for 'filter'.
14759         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
14760         * target.h (eh_return_filter_mode): New field added.
14761         * targhooks.c (default_eh_return_filter_mode): Defined.
14762         * targhooks.h (default_eh_return_filter_mode): Declared.
14763         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
14765 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
14767         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
14768         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
14769         * configure: Regenerate.
14771 2004-08-16  Stan Shebs  <shebs@apple.com>
14773         Basic support for 64-bit Darwin.
14774         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
14775         (machopic_legitimize_pic_address): Similarly, plus use Pmode
14776         instead of SImode.
14777         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
14778         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
14779         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
14780         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
14781         (PROCESSOR_DEFAULT64): Define.
14782         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
14783         Darwin.
14784         * config/rs6000/rs6000.md: Include darwin.md.
14785         (builtin_setjmp_receiver): Add DImode case.
14786         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
14787         Darwin.
14788         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
14789         (rs6000_emit_move): Add DImode case to Darwin bits.
14790         (machopic_output_stub): Use .quad if 64-bit.
14791         * invoke.texi: Document -m32 and -m64.
14793 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
14795         * doc/extend.texi (AltiVec builtins): Document additional differences
14796         from the Motorola AltiVec PIM.
14798 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
14800         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
14801         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
14802         (struct tree_common): Update public_flag documentation.
14804 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
14806         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14807         Check for artificial variables, not is_gimple_tmp_var.
14808         * tree-ssa-live.c (var_union): Likewise.
14810 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
14812         * calls.c (load_register_parameters): Remove spurious FIXME token.
14814 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
14816         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
14817         (c-lang.o): Depend on c-objc-common.h.
14818         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
14819         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
14820         * c-lang.c: Include c-objc-common.h.
14821         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
14822         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
14823         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
14824         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
14825         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
14826         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
14827         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
14828         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
14829         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
14830         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
14831         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
14832         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
14833         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
14834         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
14835         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
14836         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
14837         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
14838         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
14839         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
14840         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
14841         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
14842         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
14843         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
14844         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
14845         Move to c-objc-common.h.
14846         * c-objc-common.c: Include c-objc-common.h.
14847         * c-objc-common.h: New file.
14849 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
14850             Andrew Pinski  <pinskia@physics.uc.edu>
14852         PR target/14931
14853         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
14854         style.
14856 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
14858         * tree.h (build_int_cst): New.
14859         (build_int_2): Remove.
14860         * tree.c (build_int_2): Remove.
14861         (build_int_cst): New.
14862         (make_vector_type, build_common_tree_nodes,
14863         build_common_tree_nodes_2): Use build_int_cst.
14864         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
14865         expand_builtin_strpbrk, expand_builtin_fputs,
14866         build_string_literal, expand_builtin_printf,
14867         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
14868         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
14869         fold_builtin_isdigit, simplify_builtin_strstr,
14870         simplify_builtin_strpbrk, fold_builtin_fputs,
14871         simplify_builtin_sprintf): Use build_int_cst.
14872         * c-common.c (start_fname_decls, fix_string_type,
14873         c_common_nodes_and_builtins, c_init_attributes,
14874         shorten_compare): Likewise.
14875         * c-decl.c (complete_array_type,
14876         check_bitfield_type_and_width): Likewise.
14877         * c-lex.c (interpret_integer, lex_charconst): Likewise.
14878         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
14879         * c-pretty-print.c (pp_c_integer_constant): Likewise.
14880         * c-typeck.c (really_start_incremental_init, push_init_level,
14881         set_nonincremental_init_from_string): Likewise.
14882         * calls.c (load_register_parameters): Likewise.
14883         * convert.c (convert_to_pointer): Likewise.
14884         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
14885         build_fn_info_type, build_ctr_info_value, build_gcov_info):
14886         Likewise.
14887         * except.c (init_eh, assign_filter_values, assign_filter_values):
14888         Likewise.
14889         * expmed.c (store_fixed_bit_field, extract_bit_field,
14890         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
14891         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
14892         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
14893         * expr.c (convert_move, emit_group_load, emit_group_store,
14894         expand_assignment, store_constructor, store_field,
14895         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
14896         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
14897         invert_truthvalue, optimize_bit_field_compare,
14898         decode_field_reference, all_ones_mask_p, constant_boolean_node,
14899         fold_div_compare, fold, fold_read_from_constant_string,
14900         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
14901         * function.c (assign_parm_setup_block): Likewise.
14902         * stmt.c (shift_return_value, expand_end_case_type,
14903         estimate_case_costs): Likewise.
14904         * stor-layout.c (layout_type, initialize_sizetypes,
14905         set_min_and_max_values_for_integral_type): Likewise.
14906         * tree-chrec.c (chrec_fold_multiply_poly_poly,
14907         reset_evolution_in_loop): Likewise.
14908         * tree-chrec.h (build_polynomial_chrec): Likewise.
14909         * tree-complex.c (build_replicated_const): Likewise.
14910         * tree-eh.c (honor_protect_cleanup_actions,
14911         lower_try_finally_onedest, lower_try_finally_copy,
14912         lower_try_finally_switch): Likewise.
14913         * tree-mudflap.c (mf_build_string, mx_register_decls,
14914         mudflap_register_call, mudflap_enqueue_constant): Likewise.
14915         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
14916         * tree-pretty-print.c (dump_generic_node): Likewise.
14917         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
14918         Likewise.
14919         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
14920         * tree-ssa-loop-niter.c (number_of_iterations_cond,
14921         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
14922         Likewise.
14924         * config/alpha/alpha.c (alpha_initialize_trampoline,
14925         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
14926         * config/arm/arm.c (arm_get_cookie_size): Likewise.
14927         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
14928         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
14929         * config/i860/i860.c (i860_va_start): Likewise.
14930         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
14931         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
14932         mips_gimplify_va_arg_expr): Likewise.
14933         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
14934         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
14935         add_compiler_branch_island): Likewise.
14936         * config/s390/s390.c (s390_va_start): Likewise.
14937         * config/sh/sh.c (sh_va_start): Likewise.
14938         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
14939         Likewise.
14940         * config/xtensa/xtensa.c (xtensa_va_start,
14941         xtensa_gimplify_va_arg_expr): Likewise.
14943         * objc/objc-act.c (build_objc_string_object,
14944         build_objc_symtab_template, init_def_list, init_objc_symtab,
14945         init_module_descriptor, generate_static_references,
14946         build_selector_translation_table, get_proto_encoding,
14947         build_typed_selector_reference, build_selector_reference,
14948         build_next_objc_exception_stuff,
14949         build_method_prototype_list_template, generate_descriptor_table,
14950         generate_protocols, build_protocol_initializer,
14951         build_ivar_list_template, build_method_list_template,
14952         build_ivar_list_initializer, generate_ivars_list,
14953         generate_dispatch_table, generate_protocol_list,
14954         build_category_initializer, build_shared_structure_initializer,
14955         generate_shared_structures, handle_impent,
14956         generate_objc_image_info): Use build_int_cst.
14958 2004-08-15  Ben Elliston  <bje@au.ibm.com>
14960         * vec.h: Comment improvements.
14962 2004-08-14  Roger Sayle  <roger@eyesopen.com>
14964         * c-common.c (shorten_compare, pointer_int_sum,
14965         c_common_truthvalue_conversion, boolean_increment): Replace calls
14966         to build with calls to buildN.
14967         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
14968         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
14969         gimplify_switch_stmt): Likewise.
14970         * c-typeck.c (default_function_array_conversion,
14971         build_component_ref, build_array_ref, build_function_call,
14972         pointer_diff, build_unary_op, build_conditional_expr,
14973         build_compound_expr, build_modify_expr, c_finish_goto_label,
14974         c_finish_goto_ptr, c_finish_return, c_finish_loop,
14975         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
14976         build_binary_op): Likewise.
14978 2004-08-15  Steven Bosscher  <stevenb@suse.de>
14980         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
14982 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14984         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
14985         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
14986         * fixinc/fixincl.x: Rebuilt.
14988 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
14990         * config/mips/mips-protos.h (mips_symbolic_constant_p)
14991         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
14992         (mips_small_data_pattern_p): Declare.
14993         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
14994         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
14995         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
14996         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
14997         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
14998         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
14999         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
15000         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
15001         (pc_or_label_operand, call_insn_operand, move_operand)
15002         (consttable_operand, symbolic_operand, general_symbolic_operand)
15003         (global_got_operand, local_got_operand, stack_operand)
15004         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
15005         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
15006         (mips_small_data_pattern_p): Replace previous small_data_pattern
15007         predicate.  Turn into a bool () (rtx) function.
15008         * config/mips/predicates.md: New file.
15009         * config/mips/mips.md: Include it.  Use the target-independent
15010         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
15011         trap_comparison_operator and equality_op to equality_operator.
15012         Replace uses of small_int with the equivalent const_arith_operand.
15013         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
15014         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
15015         to fcc_reload_operand.
15016         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
15018 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15020         PR libstdc++/17005 partial fix.
15021         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
15022         except when generating ANSI/C89 code.
15024 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
15026         * c-common.c (shorten_compare): Use force_fit_type directly.
15028 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
15029             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
15030             Dave Korn  <dk@artimi.com>
15032         * doc/install.texi (Building): Avoid duplicate reference to GNU
15033         make requirement.
15034         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
15036 2004-08-14  Richard Henderson  <rth@redhat.com>
15038         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
15039         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
15041 2004-08-13  Richard Henderson  <rth@redhat.com>
15043         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
15044         for constant_call_address_operand.
15045         (call_value_pop_1, call_value_1): Likewise.
15046         (sibcall_value_1, call_value_1_rex64): Likewise.
15048 2004-08-13  James E Wilson  <wilson@specifixinc.com>
15050         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
15051         Correct mode from SFmode to DFmode.
15053 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
15055         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
15056         __cstring_object and __image_info sections with the no_dead_strip
15057         attribute.
15059 2004-08-13  Roger Sayle  <roger@eyesopen.com>
15060             David Billinghurst  <David.Billinghurst@riotinto.com>
15062         PR libgfortran/15930
15063         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
15064         * fixinc/fixincl.x: Regenerate.
15065         * fixinc/tests/base/internal/math_core.h: New file.
15067 2004-08-13  Richard Henderson  <rth@redhat.com>
15069         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
15070         (dbxout_function_end): Remove ifdefs for it.
15071         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
15073 2004-08-13  Richard Henderson  <rth@redhat.com>
15075         * Makefile.in (insn-preds.o): Depend on TREE_H.
15076         * genpreds.c (write_insn_preds_c): Include tree.h.
15077         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
15078         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
15079         const48_operand, and_operand, or_operand, mode_width_operand,
15080         mode_mask_operand, mul8_operand, const0_operand,
15081         hard_fp_register_operand, hard_int_register_operand,
15082         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
15083         samegp_function_operand, direct_call_operand, small_symbolic_operand,
15084         global_symbolic_operand, call_operand, symbolic_operand,
15085         dtp16_symbolic_operand, dtp32_symbolic_operand,
15086         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
15087         gottp_symbolic_operand, alpha_comparison_operator,
15088         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
15089         signed_comparison_operator, alpha_fp_comparison_operator,
15090         divmod_operator, fix_operator, aligned_memory_operand,
15091         unaligned_memory_operand, reg_or_unaligned_mem_operand,
15092         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
15093         reg_no_subreg_operand, addition_operation): Move to predicates.md.
15094         (reg_or_const_int_operand): Remove.  Replace all users with
15095         reg_or_cint_operand.
15096         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
15097         (resolve_reload_operand): Split out of aligned_memory_operand.
15098         * config/alpha/alpha-protos.h: Update for exports.
15099         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
15100         * config/alpha/alpha.md: Include predicates.md.
15101         * config/alpha/predicates.md: New file.
15103 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
15105         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
15106         fields with a pointer to the instruction definition.
15107         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
15108         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
15109         (write_attr_case, write_const_num_delay_slots): Update accordingly.
15110         (write_attr_case, write_const_num_delay_slots): Write the name of
15111         an insn next to its case statement.
15112         * genoutput.c (data): Add a filename field.
15113         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
15114         (output_insn_data): Print the location of each insn definition.
15115         * genrecog.c (write_action): Print the name of an insn above
15116         the statement that returns its code.
15118 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
15120         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
15121         * config/libgloss.h: Likewise.
15122         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
15123         * c4x/c4x-modes.def: Likewise.
15124         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
15125         (c4x_rptb_nop_p): Likewise.
15126         (c4x_rptb_valid_p): Likewise.
15127         (c4x_rptb_insert): Likewise.
15128         (c4x_address_conflict): Likewise.
15129         * config/c4x/c4x.md: Likewise.
15130         * config/frv/frv.md: Likewise.
15131         * config/i386/athlon.md: Likewise.
15132         * config/i386/i386.md: Likewise.
15133         * config/i386/predicates.md: Likewise.
15134         * config/ia64/ia64.c: Likewise.
15135         * config/ia64/itanium1.md: Likewise.
15136         * config/ia64/itanium2.md: Likewise.
15137         * config/iq2000/iq2000.md: Likewise.
15138         * config/mcore/mcore.c: Likewise.
15139         * config/mips/mips.c: Likewise.
15140         * config/mips/r3900.h: Likewise.
15141         * config/mips/sb1.md: Likewise.
15142         * config/pa/milli64.S: Likewise.
15143         * config/pa/pa.c: Likewise.
15144         * config/pa/pa.h: Likewise.
15145         * config/rs6000/8540.md: Likewise.
15147 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
15149         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
15151 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
15153         * sh.md (cbranch define_delay) Use cond_delay_slot for
15154         non-anulled condition too.
15156 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
15158         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
15159         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
15160         any_parallel_operand, lmw_operation, stmw_operation,
15161         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
15162         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
15163         any_parallel_operand.
15164         (return_and_restore_fpregs_{si,di}): Same.
15166 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
15168         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
15169         if pred->singleton != PARALLEL, issue a warning and pretend it was.
15170         Also issue a warning for any predicate we don't know about.
15172 2004-08-12  Richard Henderson  <rth@redhat.com>
15174         * config/i386/i386.c (internal_label_prefix): Export.
15175         (internal_label_prefix_len, struct ix86_address,
15176         ix86_decompose_address, maybe_get_pool_constant,
15177         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
15178         memory_address_length): Export.
15179         (any_fp_register_operand, fp_register_operand,
15180         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
15181         x86_64_general_operand, x86_64_szext_general_operand,
15182         x86_64_nonmemory_operand, x86_64_movabs_operand,
15183         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
15184         x86_64_zext_immediate_operand, const_int_1_31_operand,
15185         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
15186         tls_symbolic_operand, global_dynamic_symbolic_operand,
15187         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
15188         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
15189         constant_call_address_operand, const0_operand, const1_operand,
15190         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
15191         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
15192         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
15193         general_no_elim_operand, nonmemory_no_elim_operand,
15194         index_register_operand, q_regs_operand, flags_reg_operand,
15195         non_q_regs_operand, zero_extended_scalar_load_operand,
15196         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
15197         ix86_comparison_operator, ix86_carry_flag_operator,
15198         fcmov_comparison_operator, promotable_binary_operator,
15199         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
15200         mult_operator, div_operator, arith_or_logical_operator,
15201         memory_displacement_operand, cmpsi_operand, long_memory_operand,
15202         aligned_operand): Move to predicates.md as define_predicates.
15203         (tls_symbolic_operand_1): Remove.
15204         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
15205         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
15206         (legitimize_address): Merge tls_symbolic_operand contents.
15207         (ix86_expand_move): Likewise.
15208         * config/i386/i386-protos.h: Update for exports.
15209         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
15210         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
15211         * config/i386/i386.md: Include predicates.md.
15212         * config/i386/predicates.md: New file.
15214 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
15216         PR c++/16924
15217         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
15218         SYMBOL_REF_DECL.
15219         (i386_pe_mark_dllimport): Likewise.
15220         (i386_pe_encode_section_info): Likewise, when overriding
15221         dllimport attribute.
15223 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
15225         * configure.ac: When testing for flex, nm, ar, and bison, check
15226         that they will actually be built.
15227         * configure: Regenerate.
15229 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
15231         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
15232         (MOVE_MAX_PIECES): Define.
15234 2004-08-12  Devang patel  <dpatel@apple.com>
15236         * dbxout.c (dbxout_begin_prologue): New function.
15237         (dbx_debug_hooks): Use new begin prologue hook.
15238         (dbxout_function_end): Emit N_ENSYM.
15239         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
15241 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
15243         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
15244         argument is float*.
15246         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
15247         for vec_dss.
15249         * doc/extend.texi (AltiVec builtins): Fix description for recent
15250         changes.  Update operation list to match current support.
15252 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
15254         * config/s390/s390.c (struct s390_frame_layout): New struct as element
15255         of struct machine_function.
15256         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
15257         changed all uses.
15258         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
15259         changed all uses.
15260         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
15261         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
15262         (s390_frame_area, s390_register_info): New functions.
15263         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
15264         for base register.
15265         (s390_return_addr_rtx, s390_return_address_offset)
15266         (s390_va_start, s390_gimplify_va_arg)
15267         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
15268         layouts.
15269         (s390_frame_info): Functionality partly moved to s390_register_info.
15270         Made adaptions for new stack layout.
15271         (save_gprs, restore_gprs): Changed meaning of second parameter and
15272         adapted all callers.
15274         * config/s390/s390.h (s390_backchain_string): New global variable.
15275         (MASK_BACKCHAIN): Removed definition.
15276         (TARGET_BACKCHAIN): Changed check.
15277         (TARGET_KERNEL_BACKCHAIN): New macro.
15278         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
15279         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
15280         "kernel-backchain".
15281         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
15283         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
15284         as condition.  Adjusted for new stack layout.
15286         * doc/invoke.texi: Added documentation for new option
15287         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
15288         "-mno-backchain".
15290 2004-08-12  Paul Brook  <paul@codesourcery.com>
15292         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
15293         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
15295 2004-08-12  David Daney  <ddaney@avtrex.com>
15297         * java/gcj.texi:  Add subsection on signal usage.
15299 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
15301         * expr.c (move_by_pieces): Set alignment for move to minimum of
15302         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
15303         alignment, but not less than the original alignment.
15304         (move_by_pieces_ninsns): Same.
15305         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
15306         (store_by_pieces_1): Same.
15308 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
15310         PR tree-optimization/16867
15311         * tree.c (is_global_var): New function.
15312         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
15313         Call is_global_var.
15314         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
15315         Update all users.
15316         (is_global_var): Declare.
15317         * tree-dfa.c (dump_variable): Display global and addressable
15318         attributes.
15319         (add_referenced_var): Clarify documentation when marking
15320         variables call-clobbered.
15321         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
15322         instead of needs_to_live_in_memory.
15323         (mark_call_clobbered): If the variable is a tag, mark it
15324         DECL_EXTERNAL.
15325         * tree-gimple.c (is_gimple_reg): Don't check for
15326         TREE_ADDRESSABLE.
15327         (is_gimple_non_addressable): Likewise.
15328         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
15329         needs to be marked call-clobbered.
15330         (setup_pointers_and_addressables): Call is_global_var instead
15331         of needs_to_live_in_memory.
15332         * tree-ssa-dce.c (need_to_preserve_store): Remove.
15333         Update all users with is_global_var.
15334         (mark_stmt_if_obviously_necessary): Fix processing of aliased
15335         stores.  Don't check the virtual definitions.  Rather, check
15336         whether the store is going into global memory.
15337         (find_obviously_necessary_stmts): Get the symbol from the PHI
15338         result.
15339         * tree-ssa-operands.c (get_call_expr_operands): Do not add
15340         clobbering may-defs if the call does not have side effects.
15342 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
15344         PR c++/16276
15345         * output.h (default_function_rodata_section,
15346         default_no_function_rodata_section): New prototypes.
15347         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
15348         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
15349         (TARGET_ASM_OUT): Add it.
15350         * varasm.c (default_function_rodata_section,
15351         default_no_function_rodata_section): New functions.
15352         * final.c (final_scan_insn): Call
15353         targetm.asm_out.function_rodata_section instead of
15354         readonly_data_section.
15355         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
15356         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15357         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15358         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
15359         Likewise.
15360         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15361         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
15362         Likewise.
15363         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
15364         Likewise.
15365         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15366         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
15367         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
15369 2004-08-12  Paul Brook  <paul@codesourcery.com>
15371         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
15372         frame info.
15373         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
15374         DWARF2_UNWIND_INFO.
15376 2004-08-12  Ben Elliston  <bje@au.ibm.com>
15378         PR target/16286
15379         * config/rs6000/altivec.h: Change vector to __vector throughout.
15380         (Except for the `vector' macro itself).
15382 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
15384         * genpreds.c: Add capability to generate predicate bodies as
15385         well as function prototypes.  Write function prototypes for
15386         the generic predicates too.
15387         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
15388         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
15389         (write_match_code, write_predicate_expr, write_one_predicate_function)
15390         (parse_option): New functions.
15391         (output_predicate_decls): Delete.
15392         (main): Read the machine description, process DEFINE_PREDICATE or
15393         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
15394         as appropriate.
15396         * genrecog.c (struct decision_test): Replace index with
15397         struct pred_data pointer.
15398         (next_index): Remove, unused.
15399         (pred_table, preds, special_mode_pred_table): Delete.
15400         (compute_predicate_codes, process_define_predicate): New functions.
15401         (validate_pattern, add_to_sequence, write_switch): Update for
15402         new data structures.
15403         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
15404         Check both error_count and have_error.
15406         * gensupport.c (in_fname, first_predicate): New globals.
15407         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
15408         (predicate_table, last_predicate, old_pred_table)
15409         (old_special_pred_table): New statics.
15410         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
15411         (add_predicate, init_predicate_table): New functions.
15412         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
15413         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
15414         it or max_include_len.  Call init_predicate_table.
15415         (read_rtx): Run the predicate queue after the attribute queue
15416         but before all the others.
15417         * gensupport.h (in_fname, struct pred_data, first_predicate)
15418         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
15419         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
15420         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
15421         * dummy-conditions.c: Don't include bconfig.h, system.h,
15422         coretypes.h, tm.h, or system.h.  Do include stddef.h.
15423         Duplicate declaration of struct c_test from gensupport.h.
15425         * Makefile.in (OBJS-common): Add insn-preds.o.
15426         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
15427         (insn-preds.c, insn-preds.o): New rules.
15428         (s-preds): Also generate insn-preds.c.
15429         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
15430         Update dependencies.
15431         (print-rtl.o, print-rtl1.o): Correct dependencies.
15433         * recog.h: Delete prototypes of predicate functions.
15435         * doc/md.texi (Predicates): New section with complete
15436         documentation of operand/operator predicates.  Remove some
15437         incomplete documentation of predicates from other places.
15438         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
15439         PREDICATE_CODES; indicate that both are deprecated in favor
15440         of define_predicate/define_special_predicate.
15442         * config/ia64/ia64.c: All predicate function definitions moved
15443         to ia64.md, except
15444         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
15445         (ia64_expand_load_address, ia64_expand_move):
15446         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
15448         * config/ia64/ia64.md: All predicates now defined here.
15449         (symbolic_operand): Is now a special predicate.
15451         * config/ia64/ia64.h: Declare ia64_section_threshold.
15452         (PREDICATE_CODES): Delete.
15454 2004-08-12  Richard Henderson  <rth@redhat.com>
15456         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
15457         * c-semantics.c (add_stmt): Set it.
15458         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
15459         before instantiating a variable sized type.
15461 2004-08-12  Richard Henderson  <rth@redhat.com>
15463         * stor-layout.c (round_up, round_down): Move ...
15464         * fold-const.c (round_up, round_down): ... here.  Use
15465         multiple_of_p to avoid any arithmetic at all.
15467 2004-08-12  Richard Henderson  <rth@redhat.com>
15469         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
15470         (gimplify_init_ctor_preeval_1): New.
15471         (gimplify_init_ctor_preeval): New.
15472         (gimplify_init_ctor_eval): New.
15473         (gimplify_init_constructor): Use them.  Always gimplify the LHS
15474         object first.
15476 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
15478         (This patch is part of merge of objc-improvements-branch
15479         into mainline.)
15481         * doc/frontends.texi: Mention Objective-C++ in addition to
15482         Objective-C.
15483         * doc/install.texi: Add 'obj-c++' to list of configurable
15484         languages.
15485         * doc/invoke.texi: Rename Objective-C option headings to
15486         indicate they also apply to Objective-C++.  List file
15487         extensions for Objective-C++ sources.  Mention that
15488         ObjC and ObjC++ compilations may also use C and C++ options,
15489         respectively.  Point users to doc/standards.texi for
15490         further info on ObjC and ObjC++.
15491         * doc/sourcebuild.texi: Mention the objcp/ directory and
15492         the Objective-C++ sources it contains.
15493         * doc/standards.texi: Update link to Apple ObjC site;
15494         add link to gcc readings.html WWW doc.
15496 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
15498         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
15499         and 2004-07-14 changes.
15501 2004-08-12  Paul Brook  <paul@codesourcery.com>
15503         * doc/invoke.texi: Fix typo.
15505 2004-08-11 Devang Patel  <dpatel@apple.com>
15507         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
15508         and -no_dead_strip_inits_and_terms.
15509         (LINK_SPEC): Same.
15510         * doc/invoke.texi (Darwin Options): Document -dead_strip and
15511         -no_dead_strip_inits_and_terms.
15513 2004-08-11  Paul Brook  <paul@codesourcery.com>
15515         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
15516         (arm_load_pic_register): ... to this.
15517         * config/arm/arm.c (arm_finalize_pic): Rename ...
15518         (arm_load_pic_register): ... to this.  Always output insns at the
15519         current location.  Load via low reg in thumb mode.
15520         (arm_expand_prologue): Call arm_load_pic_register.
15521         (thumb_expand_prologue): Ditto.
15522         * config/arm/arm.h (FINALIZE_PIC): Remove.
15523         * config/arm/arm.md (builtin_setjmp_receiver): Call
15524         arm_load_pic_register.
15526 2004-08-11  Paul Brook  <paul@codesourcery.com>
15528         * arm.c (thumb_force_lr_save): Add prototype.
15529         (thumb_compute_save_reg_mask): New function.
15530         (thumb_find_work_register): New function.
15531         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
15532         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
15533         Don't clobber r3 when removing pretend args.
15534         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
15535         (thumb_output_function_prologue): Use new functions.
15536         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
15537         * arm.h (THUMB_REG_PUSHED_P): Remove.
15539 2004-08-11  James E Wilson  <wilson@specifixinc.com>
15541         PR rtl-optimization/16490
15542         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
15543         global_live_at_end for new basic block if already set for other blocks.
15545 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
15547         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
15549         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
15550         (mfcr rlwinm rlwinm patterns): Set length to 12.
15552 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
15554         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
15555         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
15556         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
15557         (start_ssa_stmt_operands): Delete.
15558         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
15559         struct stmt_operands_d.
15560         (build_ssa_operands): New extern entry point.
15561         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
15562         building code, replace with create_ssa_artficial_load_stmt().
15563         * tree-ssa-operands.c (struct voperands_d): Delete.
15564         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
15565         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
15566         (free_uses, free_defs, free_vuses, free_v_may_defs,
15567         free_v_must_defs): Remove dealloc parameter.
15568         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
15569         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
15570         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
15571         vector comparisons, ssa_name reuse, and allocations here.
15572         (verify_start_operands): Delete.
15573         (finalize_ssa_stmt_operands): Set new operands by calling finalize
15574         routines.
15575         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
15576         (append_def, append_usei): Simplify to simple accumulation.
15577         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
15578         duplicates and simple accumulation.
15579         (free_ssa_operands): Free vectors in a stmt_operand structure.
15580         (build_ssa_operands): New. Create a new stmt_operand structure from
15581         a stmt and an old set of stmt_operands.
15582         (get_stmt_operands): Simplify and call build_ssa_operands.
15583         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
15584         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
15585         add_call_read_ops): Don't pass prev_vops around anymore.
15586         (note_addressable): Return if no stmt annotation.
15587         (copy_virtual_operands): Access v_may_def operands through a struct.
15588         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
15589         hash tables without treating the stmt as a real stmt.
15590         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
15591         v_may_def def and use through a struct instead of 2 array elements.
15592         (struct v_may_def_optype_d): Use v_may_def_operand_type.
15593         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
15595 2004-08-11  Nick Clifton  <nickc@redhat.com>
15597         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
15598         this funciton's behaviour.  Return true when the current function
15599         has a section attribute and -mlong-calls is in effect.
15600         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
15601         short-call marker when -mlong-calls is in effect and the function
15602         has a section attribute.
15604 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
15606         * stmt.c (expand_return): If asked to return the RESULT_DECL,
15607         just call expand_value_return on result_rtl.
15609 2004-08-10  Richard Henderson  <rth@redhat.com>
15611         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
15612         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
15613         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
15614         (add_location_or_const_value_attribute): ... not here.  Use
15615         loc_descriptor_from_tree if possible.
15616         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
15617         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
15618         values specially.
15619         (loc_descriptor_from_tree): New.  Update callers.
15620         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
15621         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
15622         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
15623         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
15624         and BUILT_IN_STACK_RESTORE.
15625         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
15626         * stmt.c (expand_stack_alloc): Remove.
15627         * tree-mudflap.c (mx_register_decls): Don't look for
15628         BUILT_IN_STACK_ALLOC.
15629         * tree-nested.c (convert_local_reference): Likewise.
15630         * tree.h (DECL_VALUE_EXPR): New.
15632 2004-08-10  Richard Henderson  <rth@redhat.com>
15634         * stor-layout.c (round_up): Check for 0/1 before dividing.
15635         (round_down): Likewise.
15637         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
15639 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
15641         * config.gcc (arm*-*-eabi*): New target.
15642         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
15643         (TARGET_LIB_INT_CMP_BIASED): Likewise.
15644         * expmed.c (expand_divmod): Try a two-valued divmod function as a
15645         last resort.
15646         * gthr.h: Remove bogus tokens at end of #pragma.
15647         * optabs.c (expand_twoval_binop_libfunc): New function.
15648         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
15649         (prepare_float_lib_cmp): Try reversing the condition.
15650         (debug_optab_libfuncs): New function.
15651         * optabs.h (expand_twoval_binop_libfunc): Declare.
15652         * config/arm/arm.c (arm_init_libfuncs): New function.
15653         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
15654         (TARGET_INIT_LIBFUNCS): Define it.
15655         * config/arm/arm.h (TARGET_BPABI): New macro.
15656         * config/arm/arm-protos.h
15657         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
15658         * config/arm/bpabi.S: New file.
15659         * config/arm/bpabi.c: Likewise.
15660         * config/arm/bpabi.h: Likewise.
15661         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
15662         (__aeabi_drsub): Likewise.
15663         (__aeabi_dsub): Likewise.
15664         (__aeabi_dadd): Likewise.
15665         (__aeabi_ui2d): Likewise.
15666         (__aeabi_i2d): Likewise.
15667         (__aeabi_f2d): Likewise.
15668         (__aeabi_dmul): Likewise.
15669         (__aeabi_ddiv): Likewise.
15670         (__aeabi_cdrcmple): Likewise.
15671         (__aeabi_cdcmpeq): Likewise.
15672         (__aeabi_cdcmple): Likewise.
15673         (__aeabi_dcmpeq): Likewise.
15674         (__aeabi_dcmplt): Likewise.
15675         (__aeabi_dcmple): Likewise.
15676         (__aeabi_dcmpge): Likewise.
15677         (__aeabi_dcmpgt): Likewise.
15678         (__aeabi_dcmpun): Likewise.
15679         (__aeabi_d2iz): Likewise.
15680         (__aeabi_d2uiz): Likewise.
15681         (__aeabi_d2f): Likewise.
15682         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
15683         (__aeabi_frsub): Likewise.
15684         (__aeabi_fsub): Likewise.
15685         (__aeabi_fadd): Likewise.
15686         (__aeabi_ui2f): Likewise.
15687         (__aeabi_i2f): Likewise.
15688         (__aeabi_fmul): Likewise.
15689         (__aeabi_fdiv): Likewise.
15690         (__aeabi_cfrcmple): Likewise.
15691         (__aeabi_cfcmpeq): Likewise.
15692         (__aeabi_cfcmple): Likewise.
15693         (__aeabi_fcmpeq): Likewise.
15694         (__aeabi_fcmplt): Likewise.
15695         (__aeabi_fcmple): Likewise.
15696         (__aeabi_fcmpge): Likewise.
15697         (__aeabi_fcmpgt): Likewise.
15698         (__aeabi_fcmpun): Likewise.
15699         (__aeabi_f2iz): Likewise.
15700         (__aeabi_f2uiz): Likewise.
15701         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
15702         (__aeabi_uidivmod): New function or alias.
15703         (__aeabi_idivmod): Likewise.
15704         (__aeabi_idiv0): Likewise.
15705         (__aeabi_ldiv0): Likewise.
15706         (__aeabi_llsr): Likewise.
15707         (__aeabi_lasr): Likewise.
15708         (__aeabi_llsl): Likewise.
15709         (bpabi.S): Include it.
15710         * config/arm/libgcc-bpabi.ver: New file.
15711         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
15712         (LINK_SPEC): Remove.
15713         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
15714         __aeabi_ulcmp.
15715         * config/arm/t-bpabi: New file.
15716         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
15717         (TARGET_LIB_INT_CMP_BIASED): Likewise.
15719 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
15721         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
15722         * config/rs6000/rs6000.md (clrmemsi): New pattern.
15723         * config/rs6000/rs6000.c (expand_block_clear): New function.
15724         (expand_block_move): Convert alignment to bits.  Use SImode and
15725         HImode for unaligned addresses if not STRICT_ALIGNMENT.
15727 2004-08-10  Caroline Tice  <ctice@apple.com>
15729         * varasm.c (unlikely_section_label): New global variable.
15730         (unlikely_text_section_name): New global variable.
15731         (text_section):  Remove alignment statement.
15732         (unlikely_text_section): Remove alignment statement; use
15733         unlikely_section_label rather than hard-coded string.
15734         (assemble_start_function): Initialize unlikely_section_label and
15735         unlikely_text_section_name;  make sure cold section is properly
15736         aligned at start of function; output unlikely_section_label if
15737         appropriate.
15739 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
15741         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
15742         * config/s390/s390.c (s390_canonicalize_comparison): New function.
15743         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
15744         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
15745         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
15746         ("*tmqi_mem"): Remove SUBREG from pattern.
15747         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
15748         ("*andsi3_cconly"): Likewise.
15750 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
15752         PR target/16909
15753         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
15755 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
15757         * doc/sourcebuild.texi (compat testing): Document available test
15758         framework commands.  Use the preferred spelling of DejaGnu.
15760 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
15762         * lambda.h: Add matrix type, and prototypes for remainder of
15763         matrix and vector functions.
15764         (lambda_vector_mult_const): New function.
15765         (lambda_vector_negate): Ditto.
15766         (lambda_vector_add): Ditto.
15767         (lambda_vector_add_mc): Ditto.
15768         (lambda_vector_copy): Ditto.
15769         (lambda_vector_zerop): Ditto.
15770         (lambda_vector_equal): Ditto.
15771         (lambda_vector_min_nz): Ditto.
15772         (lambda_vector_first_nz): Ditto.
15773         (lambda_vector_matrix_mult): Ditto.
15774         * lambda-mat.c: New file.
15775         * Makefile.in (lambda-mat.o): New.
15777 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
15779         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
15780         after linking stmt into the program.
15781         (bsi_remove): Don't call modify_stmt.
15782         * tree-complex.c (update_complex_assignment,
15783         expand_complex_comparison): Call modify_stmt after changing the stmt.
15784         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
15785         removing the stmt.
15786         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
15787         the stmt, and only if needed.
15788         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
15789         expression.
15790         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
15791         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
15792         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
15793         (eliminate_redundant_computations): Don't pass an annotation. Call
15794         modify_stmt rather than setting the annotation directly.
15795         (record_equivalences_from_stmt): Remove unused local 'j'.
15796         (cprop_operand): Take a stmt rather than an annotation as a parameter.
15797         Call modify_stmt.
15798         (cprop_into_stmt): Pass stmt rather than annotation.
15799         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
15800         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
15801         modify_stmt.
15802         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
15804 2004-08-10  Jason Merrill  <jason@redhat.com>
15806         PR middle-end/16948
15807         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
15808         the RESULT_DECL.
15810 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
15812         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
15813         hash function.
15815 2004-08-10  Roger Sayle  <roger@eyesopen.com>
15817         * config/mips/mips.md: New reciprocal square root patterns that
15818         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
15820 2004-08-10  Paul Brook  <paul@codesourcery.com>
15822         * config/arm/arm-protos.h (arm_set_return_address,
15823         thumb_set_return_address): Add prototypes.
15824         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
15825         * config/arm/arm.c (arm_compute_func_type,
15826         use_return_insn, arm_compute_save_reg0_reg12_mask,
15827         arm_compute_save_reg_mask, arm_output_function_prologue,
15828         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
15829         current_function_calls_eh_return.
15830         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
15831         old eh code.
15832         (arm_set_return_address, thumb_set_return_address): New functions.
15833         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
15834         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
15835         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
15836         (epilogue): Use the stackadj register.
15837         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
15839 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
15841         PR target/3144
15842         * expr.c (move_by_pieces_ninsns): Add max_size argument.
15843         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
15844         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
15845         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
15846         but using MOVE_RATIO.
15847         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
15848         (can_store_by_pieces): Change max_size type to unsigned int.
15849         (store_by_pieces_1): Likewise.  Pass max_size to
15850         move_by_pieces_ninsns.
15851         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
15852         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
15853         to move_by_pieces_ninsns.
15854         (STORE_BY_PIECES_P): Define.
15855         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
15856         to move_by_pieces_ninsns.
15857         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
15859         * config/i386/i386.h (CLEAR_RATIO): Define.
15861 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
15863         * expr.c (expand_expr_real_1): Add back code that was not dead.
15865 2004-08-09  Andrew Pinski  <apinski@apple.com>
15867         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
15868         which is found to be compatible before returning the aliasing set.
15870 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
15872         * ggc-zone.c (struct alloc_zone): Add statistics counters.
15873         (always_collect): New flag.
15874         (ggc_alloc_zone_1): Update statistics support.  Don't include
15875         overhead in allocated counter.
15876         (sweep_pages): Update allocated counter for large pages.  Don'y
15877         include overhead.
15878         (ggc_collect_1): Always collect.
15879         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
15880         whether to collect.
15881         (SCALE, LABEL): New macros.
15882         (ggc_print_statistics): Add statistics support.
15884 2004-08-09  Roger Sayle  <roger@eyesopen.com>
15886         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
15887         (init_expmed): Fix potential overrun problem with "all.reg".
15888         (expand_sdiv2_pow2): Add an alternate implementation for signed
15889         division, if the target provides a suitable conditional move insn.
15891 2004-08-09  Paul Brook  <paul@codesourcery.com>
15892         Richard Henderson  <rth@redhat.com>
15894         * unwind-dw2.c (uw_install_context_1): Update target saved stack
15895         pointer.
15897 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
15899         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
15900         Check DATA limit only if there's no AS limit.  Ignore insanely
15901         low DATA limits.
15902         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
15903         but take care that the AS limit isn't overrun.
15904         * doc/invoke.texi: Update documentation of min-heapsize parameter.
15906 2004-08-09  Jeff Law  <law@redhat.com>
15908         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
15909         (tree-ssa-threadupdate.o): Add dependencies.
15910         * tree-ssa-threadupdate.c: New file.
15911         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
15912         (rewrite_vars_out_of_ssa): Remove prototype.
15913         (cleanup_tree_cfg): Returns a bool.
15914         * tree.h (thread_through_all_blocks): Prototype.
15915         * tree-outof-ssa.c  (SSANORM_*): Move into here.
15916         (remove_ssa_form): Now static.
15917         (rewrite_vars_out_of_ssa): Kill.
15918         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
15919         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
15920         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
15921         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
15922         anything was changed.
15923         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
15924         from the PHI's annotation rather than the edge associated with
15925         the new argument.
15926         * tree-ssa-dom.c (redirection_edges): Kill.
15927         (redirect_edges_and_update_ssa_graph): Kill.
15928         (tree_ssa_dominator_optimize): Do not reset forwardable flag
15929         for blocks anymore.  Do not initialize redirection_edges.
15930         Call thread_through_all_blocks.  Simplify code for cleanup
15931         of the CFG and iterating.  No longer call cleanup_tree_cfg
15932         outside the iteration loop.
15933         (thread_across_edge): No longer mess with forwardable blocks.
15935 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
15937         * explow.c (memory_address): Use memory_address_p.
15938         * recog.c (general_operand): Likewise.
15939         * regrename.c: No need to define REG_OK_STRICT.
15941 2004-08-09  Steven Bosscher  <stevenb@suse.de>
15943         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
15944         New timers.
15945         * gcse.c: Include timevar.h.
15946         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
15947         and global_copy_prop_count.
15948         (local_const_prop_count, local_copy_prop_count): New static globals.
15949         (gcse_main): Set the right timevar for each pass.
15950         (cprop_jump): Increment global_const_prop_count when a constant is
15951         propagated.  Add "GLOBAL" to dump output.
15952         (cprop_insn): Increment global_const_prop_count when a constant is
15953         propagated, or global_copy_prop_count when a copy is propagated.
15954         (do_local_cprop): Likewise for local_const_prop_count and
15955         local_copy_prop_count.
15956         (one_cprop_pass): Initialize const/cprop counters to zero.
15957         Print out results of local and global const/cprop separately.
15958         (bypass_block): Break over-length line.
15959         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
15960         for bb-reorder.o and tracer.o.
15962 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
15964         * Makefile.in (GTFILES): Remove stmt.c
15965         (stmt.o): Do not depend on gt-stmt.h.
15966         * emit-rtl.c (emit_line_note): Do not call
15967         set_file_and_line_for_stmt.
15968         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
15969         do everything.
15970         * function.c (free_after_parsing): Do not free STMT field.
15971         (allocate_struct_function): Do not call init_stmt_for_function.
15972         (assign_stack_temp_for_type): Do not accept values of keep
15973         other than 0 or 1.
15974         (init_temp_slots): Do not initialize removed variables.
15975         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
15976         and X_VAR_TEMP_SLOT_LEVEL fields.
15977         * rtl.h (set_file_and_line_for_stmt): Remove.
15978         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
15979         struct stmt_status, cond_stack, case_stack, nesting_stack,
15980         nesting_depth, emit_locus, set_file_and_line_for_stmt,
15981         same_case_target_p, init_stmt_for_function, emit_nop,
15982         expand_start_cond, expand_start_elseif, expand_start_else,
15983         expand_elseif, expand_end_cond): Remove.
15984         (preserve_subexpressions_p): Remove references to CFUN->STMT.
15985         (expand_start_case, expand_end_case_type): Remove, merge into...
15986         (expand_case): ... this one, including other bits from
15987         expand_expr_real_1.  Inline same_case_target_p.  Turn members
15988         of CASE_STACK into local variables.
15989         (emit_case_bit_tests): Inline same_case_target_p.
15990         (add_case_node): Add HEAD argument, return new head of the list,
15991         do not handle default label here.
15992         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
15993         expand_start_elseif, current_nesting_level, expand_start_case,
15994         expand_end_case_type, expand_end_case, add_case_node,
15995         init_stmt_for_function, expand_elseif): Remove prototypes.
15996         (expand_case): Add prototype.
15998 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
16000         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
16002 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
16004         * expr.c (var_rtx): Remove.
16005         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
16006         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
16007         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
16008         Abort.
16009         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
16010         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
16011         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
16013 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
16014         Ayal Zaks <zaks@il.ibm.com>
16016         * common.opt (freschedule-modulo-scheduled-loops): New flag.
16017         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
16018         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
16019         when -freschedule-modulo-scheduled-loops flag is not specified.
16020         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
16021         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
16022         More accurate placing of insn in row of partial schedule.
16023         (ps_insn_find_column): New function.
16024         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
16025         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
16026         (schedule_region): Use sched_is_disabled_for_current_region_p.
16027         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
16029 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
16031         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
16032         change.
16034 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
16036         * config/i386/i386.c (ix86_expand_clrmem): Properly call
16037         gen_strset for 64bit target.
16039 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
16041         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
16043 2004-08-07  Jason Merrill  <jason@redhat.com>
16045         Make return in memory explicit.
16046         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
16047         (assign_parm_find_data_types): Remove code for old front end
16048         invisible reference handling.
16049         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
16050         (expand_function_end): Likewise.
16051         * gimplify.c (gimplify_return_expr): Handle a dereferenced
16052         RESULT_DECL.
16053         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
16054         (declare_return_variable): Handle DECL_BY_REFERENCE.
16055         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
16056         (cp_genericize_r): Use convert_from_reference.
16057         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
16058         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
16060         * c-common.c (c_warn_unused_result): Check TREE_USED before
16061         warning about a CALL_EXPR with an unused value.
16063 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
16065         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
16066         to the compiler.  Use -fshort-wchar by default.
16068 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
16070         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
16071         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
16072         threshhold.
16073         * doc/invoke.texi (param): Document min-crossjump-insns.
16075 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
16077         PR c/13282
16078         * c.opt (Wmissing-field-initializers): New option.
16079         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
16080         * c-typeck.c (pop_init_level): Guard the missing field warning with
16081         warn_missing_field_initializers rather than extra_warnings.
16082         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
16083         some of the explanation from...
16084         (-Wextra): ...here.  Say that the missing field warning can be
16085         seperately controlled by -Wmissing-field-initializers.
16087 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
16089         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
16090         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
16091         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
16092         * tree.def (ENTRY_VALUE_EXPR): Remove.
16094 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
16096         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
16097         the places where it is actually needed.  Don't use repz; stosb
16098         for -Os with sufficiently small constant sizes.
16099         For sufficiently small repz; stos{l,q} repeat counts use a sequence
16100         of stos{l,q} instructions instead.
16102 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16104         PR tree-optimization/16807
16105         * loop-iv.c (dump_iv_info): Dump invariants correctly.
16106         (iv_subreg, iv_extend): Express value of invariant purely in
16107         base field.
16109 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
16111         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
16112         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
16114 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
16116         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
16117         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
16118         pre_dec_operand.
16119         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
16120         pattern until reload is finished to allow better code generation
16121         and split them completely into separate instrunctions.
16122         (*andsi3_split): New pattern.
16124 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
16126         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
16127         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
16128         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
16129         * tree.h (handle_dll_attribute): Declare.  Test
16130         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
16131         * c-common.h (c_determine_visibility): Declare.
16132         * c-common.c (c_determine_visibility): New function.
16133         * c-decl.c (finish_decl): Use it.
16134         (finish_function): Likewise.
16135         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
16136         zero, by default.  Use #if, not #ifdef, to test it.
16137         * config/arm/arm.c (arm_attribute_table): Use
16138         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
16139         #if.
16140         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
16141         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
16142         to 1.
16143         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
16144         * config/i386/i386.c (ix86_attribute_table): Use
16145         handle_dll_attribute for dllimport/dllexport.  Test
16146         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
16147         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
16148         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
16149         it to 1.
16150         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
16151         with #if.
16152         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
16153         it to 1.
16154         * doc/extend.texi (dllexport): Clarify and correct documentation.
16155         (dllimport): Likewise.
16156         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
16157         handle_dll_attribute.
16159 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16161         * tree-ssa-loop-manip.c: New file.
16162         * Makefile.in (tree-ssa-loop-manip.o): Add.
16163         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
16164         Declare.
16165         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
16166         form.
16167         (tree_ssa_loop_done): Verify loop closed ssa form.
16168         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
16170 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16172         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
16173         pa_asm_output_aligned_local): New functions.
16174         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
16175         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
16176         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
16177         pa_asm_output_aligned_common.
16178         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
16179         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
16180         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
16181         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
16182         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
16183         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
16184         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
16185         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
16186         common data.
16188 2004-08-05  Andrew Pinski  <apinski@apple.com>
16190         * objc/objc-act.c (build_objc_string_object): Mark the address
16191         expression as constant.
16193 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
16195         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
16196         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
16197         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
16199 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
16201         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
16202         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
16203         out, and associated obsolete comments.
16205 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
16207         * tree.h (force_fit_type): Return a tree, take three flags.
16208         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
16209         TREE_CONSTANT_OVERFLOW here.
16210         (int_const_binop, const_binop): Adjust.
16211         (size_int_type): Do sign extension here.
16212         (fold_convert_const, optimize_bit_field_compare,
16213         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
16214         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
16215         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
16217 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16219         PR tree-optimization/16864
16220         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
16221         for ssa names without default_def.
16223 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
16225         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
16226         frame pointer, restore eax with an ebp-relative address.
16228 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
16230         PR 14516
16231         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
16232         * c-common.h (make_rtl_for_local_static): Delete.
16233         * c-decl.c (shadow_tag_warned): Clean up comment.
16234         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
16235         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
16236         * c-semantics.c (make_rtl_for_local_static): Delete.
16237         * expr.c (init_block_move_fn): Use set_user_assembler_name.
16238         (init_block_clear_fn): Likewise.
16239         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
16240         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
16241         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
16242         * tree.h (make_decl_rtl): Remove second parameter.
16243         (set_user_assembler_name): New.
16244         * varasm.c (set_user_assembler_name): New.
16245         (make_decl_rtl): Remove second parameter.  Update callers in many
16246         files.
16248 2004-08-05  Adam Nemet  <anemet@lnxw.com>
16250         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
16251         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
16252         to LynxOS 4.0.
16253         * gthr-lynx.h: New file.
16254         * config/lynx-ng.h: Remove file.
16255         * config/lynx.h: Update to LynxOS 4.0.
16256         * config/t-lynx: New file.
16257         * config/i386/lynx-ng.h: Remove file.
16258         * config/i386/lynx.h: Update to LynxOS 4.0.
16259         * config/rs6000/lynxbase.h: Remove file.
16260         * config/rs6000/lynx.h: Update to LynxOS 4.0.
16261         * config/rs6000/t-lynx: New file.
16262         * doc/install.texi (Options specification): Remove reference to
16263         LynxOS from systems where --with-gnu-as makes a difference.
16265 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
16267         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
16268         __UINTMAX_TYPE__.
16269         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
16270         __INTMAX_MAX__.
16271         (c_cpp_builtins): Call it.
16272         * doc/cpp.texi: Update.
16274 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
16276         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
16277         cost.
16279 2004-08-04  Jan Hubicka  <jh@suse.cz>
16281         * basic-block.h (profile_staus): New global variable.
16282         * cfg.c (profile_status): Declare.
16283         (check_bb_profile): Break out from ....; use profile_status
16284         (dump_flow_info): ... here.
16285         * cfgbuild.c (find_basic_blocks): Set profile_status.
16286         * cfgexpand.c (tree_expand_cfg): Likewise.
16287         * predict.c (estimate_probability): Likewise.
16288         * profile.c (branch_prob): Likewise.
16289         * tree-cfg.c (build_tree_cfg): Likewise.
16290         (dump_function_to_file): Use check_bb_profile.
16291         * tree-pretty-print (dump_bb_header): Likewise.
16292         * tree-profile.c (do_tree_profiling): Cleanup.
16294 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
16296         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
16297         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
16298         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
16299         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
16300         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
16301         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
16302         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
16303         (ggc-none.o, errors.o): Move rule to generators section;
16304         correct dependencies.
16305         (min-insn-modes.o): Move rule to generators section; remove
16306         unnecessary explicit command; correct dependencies.
16307         (print-rtl.o, print-rtl1.o): Correct dependencies.
16308         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
16309         (mostlyclean): Update.
16311         * errors.c: Include bconfig.h not config.h.  Correct comment.
16312         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
16313         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
16314         * print-rtl.c: Don't include tm_p.h.
16316         * rtl.h: Move forward-decl of struct function down where it's
16317         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
16318         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
16320 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16321             Jeff Law  <law@redhat.com>
16323         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
16324         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
16325         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
16326         manipulate the duplicated ssa names.
16327         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
16328         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
16329         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
16330         New functions.
16331         (release_ssa_name): Do not release ssa names that may have multiple
16332         definitions.
16333         * tree.h (release_ssa_name_force, mark_for_rewrite,
16334         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
16335         marked_ssa_names): Declare.
16336         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
16337         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
16338         Update call to rewrite_ssa_into_ssa.
16340 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
16342         * defaults.h (TARGET_DECLSPEC): New macro.
16343         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
16344         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
16345         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
16346         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
16347         __declspec support.
16348         (TARGET_DECLSPEC): Define.
16349         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
16350         __declspec support.
16351         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
16352         __declspec support.
16353         (TARGET_DECLSPEC): Define.
16354         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
16355         __declspec support.
16356         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
16357         support.
16358         * doc/tm.texi (TARGET_DECLSPEC): Document.
16360         * doc/extend.texi: Fix typo in comment.
16362 2004-08-04  Paul Brook  <paul@codesourcery.com>
16364         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
16365         (TARGET_CXX): Use it.
16366         * target.h (struct gcc_target): Add cdtor_returns_this.
16367         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
16368         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
16369         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
16371 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
16373         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
16374         low/high pair. Do range checking directly.
16375         (interpret_integer): Adjust.
16377 2004-08-04  Nick Clifton  <nickc@redhat.com>
16379         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
16380         GCC ABI.
16381         * doc/invoke.texi: Document this new switch and also the -mrenesas
16382         switch.
16384 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
16386         * cfglayout.c (insn_locators_initialize): Update the current
16387         location before initializing a location.
16389 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
16391         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
16392         (dbxout_function_end): Return after emitting the "Lscope" symbol
16393         under the same conditions that this function formerly wasn't called.
16394         Add explanatory comments.
16396         PR 14860
16397         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
16398         on the new decl.
16400         PR 13956
16401         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
16402         functions, broken out of dbxout_block.
16403         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
16404         stabs too, if it contains symbols.  Use the begin_label and
16405         the Lscope label (emitted by dbxout_function_end) for the
16406         range of this block.
16408 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
16410         * doc/install.texi: Update autoconf version requirements.
16412 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
16414         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
16415         * recog.c (general_operand, immediate_operand, nonmemory_operand)
16416         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
16417         * regclass.c (record_reg_classes): Likewise.
16418         * reload.c (find_reloads): Likewise.
16419         * reload1.c (reload): Likewise.
16421 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
16423         * gensupport.c (init_md_reader_args_cb): Renamed from
16424         init_md_reader_args.  Add third option, callback function for
16425         parsing program-specific options.  Add diagnosis of incorrect
16426         number of input files.
16427         (init_md_reader): Fold into init_md_reader_args_cb.
16428         (init_md_reader_args): Now a thin wrapper around
16429         init_md_reader_args_cb.
16430         * gensupport.h: Update prototypes.
16432         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
16433         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
16434         * genrecog.c: No need to diagnose lack of an input file;
16435         init_md_reader_args will handle it.
16436         * genconditions.c: Likewise, and use init_md_reader_args.
16437         * genconstants.c: Likewise, and no need to call read_md_rtx.
16439 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
16441         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
16442         declarations.
16444 2004-08-03  Mike Stump  <mrs@apple.com>
16446         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
16447         for frameworks.
16448         * doc/invoke.texi (Darwin Options): Update to reflect above.
16450 2004-08-03  Roger Sayle  <roger@eyesopen.com>
16452         PR middle-end/16790
16453         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
16454         truncations, not just global truncations.
16456 2004-08-03  Andrew Pinski  <apinski@apple.com>
16458         PR bootstrap/16865
16459         * loop-iv.c (simplify_using_assignment): Initialize lhs.
16461 2004-08-03  Paul Brook  <paul@codesourcery.com>
16463         * gcc/doc/install.texi: Document MPFR requirement.
16465 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
16467         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
16468         and mmap() explicitly instead of relying on preset autoconf cache
16469         variables.
16470         * configure: Regenerate.
16472 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
16474         PR target/16570
16475         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
16476         to tmake_file.
16477         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
16478         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
16479         to tmake_file.
16481         * config/i386/t-gmm_malloc: New file.
16482         * config/i386/t-pmm_malloc: Likewise.
16484         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
16486 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
16487             Tanguy Fautrà <tfautre@pandora.be>
16489         * config/i386/pmm_malloc.h: New file.
16491 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
16493         * config/i386/gmm_malloc.h: New file.
16495 2004-08-03  Dale Johannesen  <dalej@apple.com>
16497         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
16498         * c-common.c: Include opts.h.
16499         (c_common_get_alias_set): Fix check for a single input file.
16500         * toplev.c: Remove current_file_decl.
16501         * tree.h: Ditto.
16503 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
16505         * config.gcc (arm*-*-symbianelf*): New target.
16506         * config/arm/symbian.h: New file.
16508         * gthr-gnat.c: Add visibility #pragmas.
16509         * gthr-gnat.h : Likewise.
16510         * gthr.h: Likewise.
16511         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
16512         (__ffsDI2): Likewise.
16513         (__clzSI2): Likewise.
16514         (__ctzSI2): Likewise.
16515         (__ctzDI2): Likewise.
16516         (__popcountSI2): Likewise.
16517         (__popcountDI2): Likewise.
16518         (__paritySI2): Likewise.
16519         (__parityDI2): Likewise.
16520         * libgcc2.h: Add visibility #pragmas.
16521         (__clzDI2): Add prototype.
16522         (__clzSI2): Likewise.
16523         (__ctzSI2): Likewise.
16524         (__ffsDI2): Likewise.
16525         (__ffsSI2): Likewise.
16526         (__ctzDI2): Likewise.
16527         (__popcountSI2): Likewise.
16528         (__popcountDI2): Likewise.
16529         (__paritySI2): Likewise.
16530         (__parityDI2): Likewise.
16531         * unwind-dw2-fde.h: Add visibility #pragmas.
16532         * unwind.h: Likewise.
16534 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
16535             Dale Johannesen  <dalej@apple.com>
16536             Roger Sayle  <roger@eyesopen.com>
16538         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
16539         constants more accurately.  Adjust costs for FMA instructions.
16540         Add cases for most logical and float operations.  Recurse into
16541         most operands.
16543 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
16545         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
16547 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
16549         * ra-build.c (conflicts_between_webs): For webs that cross a call add
16550         conflicts to regs_invalidated_by_call.
16552 2004-08-03  Paul Brook  <paul@codesourcery.com>
16554         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
16556 2004-08-03  Jan Hubicka  <jh@suse.cz>
16558         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
16559         ARRAY_REF argument.
16561 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
16563         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
16564         arm968es, arm10e, arm1020e, arm1022e.
16565         * invoke.texi: Update list of ARM cores.
16566         * arm-tune.md: Regenerate.
16568 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
16570         * arm/gentune.sh: New file.
16571         * arm/t-arm: New file.
16572         * arm/arm-tune.md: New file (autogenerated).
16573         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
16574         * arm.md (attribute tune): Delete.  Include arm-tune.md.
16576 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
16578         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
16579         penultimate parameter.  All callers adjusted.
16580         (struct prefix_list): Remove used_flag_ptr.
16581         (find_a_file): Do not set *pl->used_flag_ptr.
16582         (warn_B, warn_std_ptr): Remove.
16584 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
16585             Mostafa Hagog <mustafa@il.ibm.com>
16587         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
16589 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
16591         * dwarf2out.c (output_call_frame_info): Don't change data format
16592         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
16593         label.  Use 'true' not '1'.
16594         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
16595         required.
16597 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16599         * gdbinit.in: Reflect previous changes to rtunion_def.
16601 2004-08-02  Roger Sayle  <roger@eyesopen.com>
16603         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
16604         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
16606 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16608         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
16609         vec_p_reserve.
16610         * langhooks.h (lang_hooks::builtin_function): Rename parameter
16611         from "class" to "bt_class".
16613 2004-08-02  Paul Brook  <paul@codesourcery.com>
16615         PR rtl-optimization/15068
16616         * flow.c (init_propagate_block_info): Check condition is reversible.
16618 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16620         * gengtype.h (options::info): Change type to const char *.
16621         (enum gc_used_enum): Move out of struct type scope.
16622         * gengtype.c (create_option): Convert initializer for option::info to
16623         appropiate type.
16624         (adjust_field_type, walk_type, write_func_for_structure,
16625         write_root, write_roots): Remove pointless cast.
16627 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
16629         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
16631 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
16633         * rtl.h (union rtunion_def): Have all members  start with the
16634         prefix "rt_".
16635         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
16636         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
16637         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
16638         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
16639         access.
16640         * gengtype.c (adjust_field_rtx_def): Likewise.
16641         * rtlanal.c (loc_mentioned_in_p): Likewise.
16643 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
16645         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
16646         Replace uses of mips/elf64.h with mips/elf.h
16647         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
16648         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
16649         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
16650         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
16651         (HANDLE_SYSV_PRAGMA): Delete.
16652         (ASM_OUTPUT_DEF): Fix formatting.
16653         * config/mips/elf64.h: Delete.
16655 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
16657         * config/ia64/ia64.c (got_symbolic_operand): Do require a
16658         symbol+offset operand to have its offset be zero mod 0x3fff
16659         when GOT entries are in use.  Clarify logic in SYMBOL_REF
16660         case.  Clarify comments.
16661         (ia64_expand_load_address): Split a symbol+offset load when
16662         the offset is nonzero mod 0x3fff, not 0x1fff.
16664 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
16666         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
16667         if trying to *store* to a non-offsettable address.
16668         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
16669         a nonoffsettable address.
16670         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
16671         Clean up.
16672         (movti_string): Don't move GPRs to a nonoffsettable address.
16673         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
16675 2004-08-02  Ben Elliston  <bje@au.ibm.com>
16677         PR target/16155
16678         * config/rs6000/altivec.h: Replace typeof with __typeof__.
16680 2004-08-01  Richard Henderson  <rth@redhat.com>
16682         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
16683         variable sized types.
16685 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
16687         * doc/invoke.texi: In the MIPS options section, remove the passage
16688         saying that -mexplicit-relocs is usually disabled for -mabicalls
16689         -fno-unit-at-a-time.
16690         * config/mips/mips.c (override_options): Remove the code that enforced
16691         this rule.
16693 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
16695         * config/mips/mips.md (cprestore): Provide two alternatives, one for
16696         an in-range offset and one for an out-of-range offset.  Wrap the latter
16697         in .set macro/.set nomacro if it's inside a .set nomacro block.
16699 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
16701         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
16702         (mips_restore_gp): Declare.
16703         * config/mips/mips.c (mips_add_offset): Add a scratch register
16704         argument.  Reimplement in rtl only, reusing MIPS16 logic from
16705         mips_output_mi_thunk.
16706         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
16707         to mips_add_offset.
16708         (mips_gp_save_slot): Delete.
16709         (mips_restore_gp): New function.
16710         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
16711         * config/mips/mips.md (exception_receiver): Turn into a
16712         define_insn_and_split.  Use mips_restore_gp to do the split.
16713         (call_internal, call_value_internal, call_value_multiple_internal): Use
16714         mips_restore_gp to restore $gp.
16716 2004-07-31  Andrew Pinski  <apinski@apple.com>
16718         PR other/16842
16719         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
16721 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
16723         * c-decl.c (diagnose_mismatched_decls): Give error for external
16724         redeclaration of identifier declared with no linkage, not just
16725         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
16726         error for redeclaration with no linkage.
16728 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
16729             Fariborz Jahanian <fjahanian@apple.com>
16731         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
16732         non-offsettable addresses even for DImode.
16733         (rs6000_split_multireg_move): Cope with non-offsettable addresses
16734         being moved into multiple GPRs.
16736         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
16737         to 64.
16738         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
16739         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
16740         to 128.
16741         * config/rs6000/darwin-ldouble.c (isless): New macro.
16742         (inf): New macro.
16743         (nonfinite): New macro.
16744         (FPKINF): Delete.
16745         (_xlqadd): Completely rewrite.
16746         (_xlqmul): Correct overflow handling.
16747         (_xlqdiv): Correct overflow handling.
16748         * config/rs6000/darwin-ldouble-format: New file.
16750 2004-07-30  Roger Sayle  <roger@eyesopen.com>
16751             Richard Henderson  <rth@redhat.com>
16753         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
16754         9 into the equivalent lea instruction.
16756 2004-07-30  Richard Henderson  <rth@redhat.com>
16758         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
16759         with DECL_INITIAL if fb_lvalue.
16760         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
16761         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
16762         with <Cxxx>.
16763         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
16765 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
16767         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
16768         pointer escapes through a function call, assume that the
16769         callee will dereference it.
16770         (add_pointed_to_var): Assume that VALUE is always an
16771         ADDR_EXPR.
16772         (collect_points_to_info_r): Only call add_pointed_to_var if
16773         the value is an ADDR_EXPR.
16775 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
16777         * tree-ssa-alias.c (create_alias_map_for): Do not get the
16778         alias set of the inner type of ARRAY_TYPEs.
16780 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
16782         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
16783         setting a non-register to UNDEFINED right before the call to
16784         set_lattice_value.
16786 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
16788         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
16790 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
16792         * tree-ssa.c (verify_flow_sensitive_alias_info): When
16793         comparing points-to sets of different pointers, make sure the
16794         second pointer is actually referenced in the code.
16796 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
16798         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
16799         (got_symbolic_operand): Remove unreachable code.
16800         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
16801         setjmp_operand; add entry for tls_symbolic_operand.
16802         * config/ia64/ia64-protos.h: Remove all prototypes of
16803         predicate functions.
16805 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
16807         * c-common.h (lang_post_pch_load): New variable.
16808         * c-pch.c (lang_post_pch_load): Define it.
16809         (c_common_read_pch): Use it.
16810         * cgraphunit.c (record_call_1): Give the front end a chance to
16811         record additional needed entities when a variable is marked as
16812         needed.
16813         * tlink.c (recompile_files): Robustify.
16814         (scan_linker_output): If a symbol is assigned to a file,
16815         but after recompilation is not present there, issue an error
16816         message.
16818 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16820         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
16821         Take orig_loop argument and pass it to set_level.
16822         (schedule_sm): Pass the correct orig_loop to force_move_till.
16824 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
16826         * cfgloop.c (update_latch_info): Update dominator of the new block.
16827         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
16828         info.
16829         * dominance.c (verify_dominators): Check that the dominance tree is
16830         connected.
16831         (recount_dominator): Ignore unreachable blocks.
16832         (iterate_fix_dominators): Cleanup old dominance information before
16833         recomputing it.
16835 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
16837         * tree-ssa-operands.c (get_expr_operands): Revert changes
16838         to ADDR_EXPR processing introduced by:
16839             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16840             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
16842 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
16844         * doc/implement-c.texi: Add C90 subclause references.  Point to
16845         preprocessor documentation instead of duplicating it.  Add points
16846         only present in C90.  Fill in documentation for all points.
16848 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16850         * pa.c (output_movb): Correct typo.
16852 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
16854         * ra.h (single_reg_in_regclass): Declare.
16855         * ra.c (single_reg_in_regclass): Define.
16856         (first_hard_reg): New.
16857         (init_ra): Initialize single_reg_in_regclass.
16858         * ra-colorize.c (ok_class): New.
16859         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
16861 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
16863         * gcov-io.h: Allow zero tag as EOF indicator.
16864         (gcov_is_eof): Remove.
16865         (gcov_truncate): Remove.
16866         * gcov-io.c (gcov_seek): Always SEEK_SET.
16867         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
16868         EOF tag.
16869         * coverage.c (read_counts_file): Don't use gcov_is_eof.
16870         * gcov-dump.c (dump_file): Likewise.
16871         * gcov.c (read_graph_file, read_count_file): Likewise.
16873         * c-decl.c (complete_array_type): Don't gratuitously copy
16874         maxindex.  Check it always has a type.
16876 2004-07-29  Steven Bosscher  <stevenb@suse.de>
16878         * rtl.c (currently_expanding_to_rtl): New.
16879         * rtl.h (currently_expanding_to_rtl): Export it.
16880         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
16882         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
16883         inliner hack.
16884         * config/sh/sh.c: Replace rtx_equal_function_value_matters
16885         with currently_expanding_to_rtl.
16886         * config/sh/sh.md: Likewise.
16887         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
16889 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
16891         Introduce sh2a support.
16892         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
16893         * config.gcc: Build multilibs for sh2a and sh2a-single by
16894         default.
16895         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
16896         default.  Split their tests out of the corresponding SH4
16897         multilibs.
16898         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
16899         multilibs for SH2a.
16900         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
16901         * config.gcc: Handle sh2a multilibs and cpu selection.
16902         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
16903         * config/sh/t-mlib-sh2a: New.
16904         * config/sh/t-mlib-sh2a-nofpu: New.
16905         * config/sh/t-mlib-sh2a-single: New.
16906         * config/sh/t-mlib-sh2a-single-only: New.
16907         2004-07-09  Nick Clifton  <nickc@redhat.com>
16908         Issue 43400
16909         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
16910         -ml and -m2a are used together.
16911         2004-03-23  DJ Delorie  <dj@redhat.com>
16912         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
16913         when we have a double-sized FPU.
16914         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
16915         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
16916         is set.
16917         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
16918         -msh2a-single and -msh2a-single-only
16919         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
16920         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
16921         is set.
16922         2004-02-20  DJ Delorie  <dj@delorie.com>
16923         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
16924         2004-02-20  Fred Fish <fnf@redhat.com>,
16925         Corinna Vinschen <vinschen@redhat.com>
16926         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
16927         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
16928         2004-02-18  DJ Delorie  <dj@redhat.com>
16929         * config/sh/sh.c (broken_move): Add support for movi20.
16930         * config/sh/sh.h: Likewise.
16931         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
16932         * config/sh/sh.md (udivsi3_sh2a): New.
16933         (udivsi3): Call it.
16934         (divsi3_sh2a): New.
16935         (divsi3): Call it.
16936         (mul_r): New.
16937         (ashlsi3_sh2a): New.
16938         (ashrsi3_sh2a): New.
16939         (lshrsi3_sh2a): New.
16940         (movsi_i): Disable for sh2a.
16941         (movsi_ie): Add movi20.
16942         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
16943         sh2a, for -m2a-nofpu mode.
16944         2004-02-13  DJ Delorie  <dj@redhat.com>
16945         * config/sh/lib1funcs.asm: Handle double vs single better.
16946         * config/sh/sh.h: Likewise.
16947         2004-02-09  DJ Delorie  <dj@redhat.com>
16948         * config/sh/crt1.asm: Add support for sh2a.
16949         * config/sh/elf.h: Likewise.
16950         * config/sh/lib1funcs.asm: Likewise.
16951         * config/sh/sh.c: Likewise.
16952         * config/sh/sh.md: Likewise.
16953         * config/sh/sh.h: Likewise.
16954         * config/sh/t-sh: Likewise.
16956 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
16958         * config/frv/frv.md (movqi_internal, movhi_internal,
16959         movsi_internal): Add backup alternatives for memory inputs.
16961 2004-07-28  Matt Austern  <austern@apple.com>
16963         * config/darwin.c (darwin_one_byte_bool): New global variable.
16964         * config/darwin.h (darwin_one_byte_bool): Declare.
16965         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
16966         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
16967         value of darwin_one_byte_bool.
16968         * doc/invoke.texi: Document -mone-byte-bool flag.
16970 2004-07-28  Eric Christopher  <echristo@redhat.com>
16972         * c-common.c (c_common_unsafe_for_reeval): Delete.
16973         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
16974         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
16975         * calls.c (fix_unsafe_tree): Delete.
16976         (expand_call): Delete code which used above.
16977         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
16978         * expr.c (expand_expr_real_1): Ditto.
16979         * fold-const.c (non_lvalue): Ditto.
16980         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
16981         (lhd_unsafe_for_reeval): Ditto.
16982         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
16983         * langhooks.h (unsafe_for_reeval): Ditto.
16984         (unsave_expr_now): Adjust comment.
16985         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
16986         (estimate_num_insns_1): Ditto.
16987         * tree-pretty-print.c (dump_generic_node): Ditto.
16988         * tree.c (expr_align): Ditto.
16989         (unsave_expr): Delete.
16990         (unsafe_for_reeval): Ditto.
16991         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
16992         * tree.def (UNSAVE_EXPR): Delete.
16993         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
16995 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
16997         * tree.h (enum tls_model): Move ...
16998         * coretypes.h: ... here.
17000 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
17002         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
17004 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
17006         * cse.c (validate_canon_reg): New function, split out from...
17007         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
17009 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
17011         * tree-ssa-alias.c (maybe_create_global_var): Don't just
17012         return if .GLOBAL_VAR has been created.
17014 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
17016         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
17017         every variable that may have aliases, not just tags.
17019 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
17021         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
17022         move_from_CR_eq_bit.
17023         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
17026         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
17027         e500_flip_eq_bit.
17029         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
17030         output_e500_flip_eq_bit.
17032         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
17033         output_e500_flip_eq_bit.
17034         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
17035         output_e500_flip_eq_bit.
17036         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
17037         (print_operand): case D.  Get to EQ bit.
17039 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
17041         * gcov.c (function_summary): Add missing \n.
17043 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
17045         Introduce sh4a support.
17046         * config.gcc: Handle sh4a multilibs and cpu selection.
17047         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
17048         * config/sh/t-mlib-sh4a: New.
17049         * config/sh/t-mlib-sh4al: New.
17050         * config/sh/t-mlib-sh4a-nofpu: New.
17051         * config/sh/t-mlib-sh4a-single: New.
17052         * config/sh/t-mlib-sh4a-single-only: New.
17053         2004-02-20  DJ Delorie  <dj@redhat.com>
17054         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
17055         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
17056         2003-08-22  Eric Christopher  <echristo@redhat.com>
17057         * config/sh/sh4a.md: Update for chip errata.
17058         2003-08-07  Eric Christopher  <echristo@redhat.com>
17059         * config/sh/sh4a.md: New file. sh4a processor description.
17060         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
17061         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
17062         of -m4a-nofpu.
17063         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
17064         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
17065         * doc/invoke.texi (SH Options): Document -m4al.
17066         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
17067         * config/sh/sh.c (expand_block_move): Remove commented-out code
17068         checked in by mistake.
17069         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
17070         single elements from SFmode vectors.
17071         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
17072         register.
17073         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
17074         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
17075         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
17076         sh_fsca_int2sf): Remove variable declarations.
17077         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
17078         sh_fsca_int2sf): New functions.
17079         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
17080         sh_fsca_int2sf_rtx): New static variables.
17081         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
17082         sh_fsca_int2sf): Declare.
17083         * config/sh/sh.md: Adjust.
17084         * doc/invoke.texi (SH Options): Document new options.
17085         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
17086         compatibility from SH4 code.
17087         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
17088         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
17089         early.
17090         (memory_movsrc_operand): Renamed to...
17091         (unaligned_load_operand): ... this.  Simplified.
17092         * config/sh/sh.h (PREDICATE_CODES): Adjust.
17093         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
17094         input operand to SImode, and adjust the others.  Introduce
17095         post-increment by peephole.
17096         * config/sh/sh.c (expand_block_move): Give the target address the
17097         same mode as the temp reg.
17098         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
17099         copying.
17100         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
17101         Introduce support for SH4a.
17102         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
17103         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
17104         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
17105         sh_fsca_int2sf): New.
17106         (sh_init_builtins): Initialize them.
17107         (print_operand): Support `d'.
17108         (expand_block_move): Use movua if src is misaligned.
17109         (memory_movsrc_operand): New.
17110         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
17111         and one of the SH4 macros.
17112         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
17113         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
17114         SELECT_SH4A_SINGLE): New.
17115         (TARGET_NONE): Add SH4A_BIT.
17116         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
17117         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
17118         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
17119         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
17120         (enum processor_type): Added PROCESSOR_SH4A.
17121         (PREDICATE_CODES): Add memory_movsrc_operand.
17122         * config/sh/sh.md: Removed unused variables.
17123         (attr cpu): Add sh4a.
17124         (attr type): Add movua, fsrra and fsca.
17125         (prefetch): New, for SH4.
17126         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
17127         (toggle_sz): Set type to fp.
17128         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
17129         (movua, extv, extzv): New.
17130         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
17131         and 4a-single-only.
17133 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
17135         * tree-optimize.c (init_tree_optimization_passes): Schedule
17136         pass_may_alias right after the program is renamed into SSA.
17137         * tree-pass.h (PROP_alias): Define.
17138         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
17139         * tree-sra.c (pass_sra): Likewise.
17140         * tree-ssa-ccp.c (pass_ccp): Likewise.
17141         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
17142         * tree-ssa-dce.c (pass_dce): Likewise.
17143         * tree-ssa-dom.c (pass_dominator): Likewise.
17144         * tree-ssa-dse.c (pass_dse): Likewise.
17145         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
17146         * tree-ssa-loop-ch.c (pass_ch): Likewise.
17147         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
17148         * tree-ssa-pre.c (pass_pre): Likewise.
17149         * tree-tailcall.c (pass_tail_recursion): Likewise.
17150         * tree-ssa.c (pass_redundant_phi): Likewise.
17151         * tree-ssa-alias.c (aliases_computed_p): Remove.
17152         Update all users.
17153         (init_alias_info): Do not mark all type tags for renaming
17154         unconditionally.
17155         Clear may_aliases from every symbol.
17156         (setup_pointers_and_addressables): If a pointer has not been
17157         dereferenced and it had a type tag, clear it and mark the old
17158         tag for renaming.
17160 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
17162         PR tree-optimization/16705
17163         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
17164         .GLOBAL_VAR.
17166 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17168         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
17169         check.
17171         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
17172         don't make another one.
17174         PR optimization/15077
17175         * function.h (struct function): Add field saved_static_chain_decl.
17176         Fix comment for static_chain_decl.
17177         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
17178         * tree-inline.h (save_body): Add new arg.
17179         * tree-optimize.c (tree_rest_of_compilation): Handle saving
17180         static_chain_decl.
17182 2004-07-27  Richard Henderson  <rth@redhat.com>
17184         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
17185         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
17186         is_gimple_addressable.
17187         * tree-gimple.c (is_gimple_addressable): Rename from
17188         is_gimple_addr_expr_arg; accept INDIRECT_REF.
17189         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
17190         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
17191         rename to is_gimple_addressable.
17193 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
17195         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
17197 2004-07-27  Richard Henderson  <rth@redhat.com>
17199         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
17200         before rounding.
17202 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
17204         * libgcc2.c: Change all conditionals testing
17205         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
17206         * libgcc2.h: Likewise.
17207         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
17208         TYPE_PRECISION of float80_type to 80.
17209         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
17210         of fpreg_type and float80_type to 80.
17211         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
17212         * config/m68k/netbsd-elf.h:
17213         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
17214         to evaluate to 80 whenever they would formerly have evaluated to 96.
17215         * config/i386/sco5.h: Remove unnecessary redefinition of
17216         LONG_DOUBLE_TYPE_SIZE.
17217         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
17218         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
17219         XFmode, with a bitsize of 80.  Update commentary.
17220         * config/ia64/ia64-modes.def: Likewise.
17221         * config/m68k/m68k-modes.def: Likewise.
17223 2004-07-27  Steven Bosscher  <stevenb@suse.de>
17225         * cfgexpand.c (tree_expand_cfg): Fix comment.
17227         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
17228         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
17229         Remove.
17230         (prepare_function_start): Don't set rtx_equal_function_value_matters.
17231         * integrate.c (copy_rtx_and_substitute): Don't test for it.
17232         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
17233         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
17234         here again.  Update leading comment.
17235         * rtl.c (rtx_equal_function_value_matters): Remove.
17236         (rtx_equal_p): Don't test for it.
17237         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
17238         Likewise.
17240         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
17241         * rtl.c (note_insn_name): Likewise.
17242         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
17243         * final.c (final_scan_insn): Likewise.
17245         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
17246         * passes.c (rest_of_handle_eh): Do it here.
17248         * stmt.c (struct nesting): Remove struct nesting block member.
17249         (struct stmt_status): Remove x_block_start_count field.
17250         (current_block_start_count): Remove.
17252 2004-07-27  Brian Booth  <bbooth@redhat.com>
17254         * tree-optimize.c (register_one_dump_file): Update condition that uses
17255         static_pass_number.
17256         (dup_pass_1): Replace with...
17257         (next_pass_1): This.
17258         (NEXT_PASS): Call next_pass_1.
17259         (DUP_PASS): Remove.
17260         (init_tree_optimization_passes): Remove uses of DUP_PASS.
17261         (execute_one_pass): Update condition that uses
17262         static_pass_number.
17263         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
17264         integer.
17266 2004-07-27  Nick Clifton  <nickc@redhat.com>
17268         * config/m32r/m32r.c: Include integrate.h in order to get the
17269         prototype for get_hard_reg_initial_val().
17271         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
17272         and tidy up indentation.
17273         (final_presence_set): Use absence_set instead, so that if there is
17274         nothing in the "o" pipe the "s" pipe can be scheduled.
17276 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
17278         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
17279         don't have PT_VARS nor PT_MALLOC set.
17280         Clear name tag from pointers that have not been dereferenced.
17281         (set_pt_anything, set_pt_malloc): Forward declare.
17282         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
17283         not type compatibility when determining if a pointer can be
17284         copy propagated.
17286 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
17288         * expr.h (canonicalize_condition, get_condition): Add an int argument.
17289         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
17290         it to check whether the condition is still valid at the jump insn.
17291         * ifcvt.c (noce_get_condition): Likewise.
17292         (noce_get_alt_condition): Update call to canonicalize_condition.
17293         * loop-iv.c (simplify_using_initial_values): Update call to
17294         get_condition.  Remove FIXME.
17295         (check_simple_exit): Update call to get_condition.
17296         * loop-unswitch.c (may_unswitch_on): Likewise.
17297         * loop.c (check_dbra_loop): Likewise.
17298         (canonicalize_condition, get_condition): Add an argument to say whether
17299         the condition must still be valid at INSN.
17300         (get_condition_for_loop): Update call to get_condition.  Require that
17301         the condition be valid at INSN.
17302         * predict.c (estimate_probability): Update call to get_condition.
17303         Remove unused earliest parameter.
17304         (expected_value_to_br_prob): Update call to canonicalize_condition.
17306 2004-07-26  Eric Christopher  <echristo@redhat.com>
17308         * tree-dfa.c (add_referenced_var): Register initializers of global
17309         variables.
17311 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
17313         * config/i386/i386.c (function_arg): Always treat 8-
17314         and 16-byte wide vectors the same, even if MMX/SSE
17315         are disabled.
17316         (contains_128bit_aligned_vector_p): Add comment.
17318 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
17320         * ra.h (enum node_type): Rename to:
17321         (enum ra_node_type).
17322         * ra-colorize.c: Likewise.
17324 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
17326         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
17327         after simplifying the jump.
17329 2004-06-26  Richard Henderson  <rth@redhat.com>
17331         * calls.c (combine_pending_stack_adjustment_and_call): Make
17332         preferred_unit_stack_boundary argument unsigned.  Make
17333         unadjusted_alignment unsigned.
17334         (expand_call): Make preferred_stack_boundary and
17335         preferred_unit_stack_boundary variables unsigned.
17336         * function.c (assign_stack_local_1): Make alignment unsigned.
17337         * function.h (struct function): Make stack_alignment_needed,
17338         preferred_stack_boundary unsigned.
17339         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
17340         (ix86_compute_frame_layout): Make stack_alignment_needed,
17341         preferred_alignment variables unsigned.
17342         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
17344 2004-07-26  Tom Tromey  <tromey@redhat.com>
17346         * tree.h: Fix typo in comment.
17348 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
17350         PR bootstrap/12804
17351         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
17352         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
17353         (ggc_free): Remove incorrect freeing.
17354         (sweep_pages): Advance PP for large pages.  Fix indentation.
17356 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
17358         PR rtl-optimization/16643
17359         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
17360         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
17361         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
17362         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
17363         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
17364         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17365         * rtl.h (tracer): Add a flags parameter.
17366         * tracer.c (tracer): Pass it to cfg_layout_initialise.
17367         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
17368         (rest_of_handle_reorder_blocks): Update calls to tracer and
17369         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
17370         (rest_of_handle_tracer): Pass 0 to tracer.
17371         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
17373 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
17375         PR target/16239
17376         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
17377         f->f.
17379 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
17381         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
17382         (BINFO_BASE_ACCESS): Adjust.
17383         (BINFO_BASE_ACCESS_APPEND): New.
17384         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
17385         * dbxout.c (dbxout_type): Adjust binfo access accessing.
17386         * dwarf2out.c (gen_member_die): Likewise.
17387         * tree-dump.c (deque_and_dump): Likewise.
17389 2004-07-26  Falk Hueffner  <falk@debian.org>
17391         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
17392         costs.
17394 2004-07-25  Roger Sayle  <roger@eyesopen.com>
17396         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
17397         value off of the stack if TARGET_USE_FFREEP.
17399 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
17401         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
17402         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
17403         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
17404         check on invocation of XRESIZEVEC ().
17406 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
17408         * c-common.c (disable_builtin_function): Rename variable n to
17409         new_disabled_builtin.
17410         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
17411         Rename local variable old to old_decl.
17412         * gensupport.c (shift_output_template): Rename parameter old to src.
17413         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
17414         old_rtx and newx to new_rtx.
17416 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
17418         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
17419         of c-pragma.h.
17420         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
17421         enum cpp_ttype.
17422         * c-lex.c: Likewise.
17424 2004-07-25  Roger Sayle  <roger@eyesopen.com>
17426         * fold-const.c (constant_boolean_node): Make extern.
17427         (make_range): Wrap long lines.
17428         (fold_cond_expr_with_comparison): Remove unnecessary call to
17429         pedantic_non_lvalue.  Add missing calls to fold_convert.
17430         (fold_truthop): Add missing calls to fold_convert.
17431         (fold): Likewise.
17432         * tree.h (constant_boolean_node): Add prototype here.
17433         * builtins.c (expand_builtin_strncmp): Add missing calls to
17434         fold_convert.
17435         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
17436         Call fold_convert and constant_boolean_node to correct types.
17437         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
17438         missing call to fold_convert to correct types.
17440 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
17441             Brian Ryner  <bryner@brianryner.com>
17443         PR c++/9283
17444         PR c++/15000
17445         * c-common.c (c_common_attribute_table): Allow
17446         handle_visibility_attribute to be called for types.
17447         (handle_visibility_attribute) When given a type, set the visibility
17448         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
17449         so that we can check later whether the attribute was present. Added
17450         warning if attribute applied to non class type.
17451         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
17452         decls and checking that they are consistent.
17453         * common.opt: Added -fvisibility.
17454         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
17455         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
17456         * flags.h, tree.h: Added assorted support defines for overall patch
17457         * opts.c: Added parsing support for -fvisibility.
17458         * tree.c (build_decl): Set visibility for all decls to be whatever
17459         is in force at that time.
17460         * varasm.c (default_binds_local_p_1): Reworked logic determining
17461         when to make a symbol locally bound.
17462         * doc/invoke.texi: Added documentation for -fvisibility and
17463         -fvisibility-inlines-hidden.
17465 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17467         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
17468         * c-common.c: Add missing casts from void * to other types.
17469         * c-decl.c: Likewise.
17470         * c-format.c: Likewise.
17471         * c-lex.c: Likewise.
17472         * c-pragma.c: Likewise.
17473         * c-typeck.c: Likewise.
17474         * defaults.h: Likewise.
17475         * genconstants.c: Likewise.
17476         * gengtype-lex.l: Likewise.
17477         * genmodes.c: Likewise.
17478         * read-rtl.c: Likewise.
17479         * rtl.c: Likewise.
17481 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17483         * bitmap.c: Use type-safe memory allocation macros from libiberty.
17484         * c-common.c: Likewise.
17485         * c-decl.c: Likewise.
17486         * c-lang.c: Likewise.
17487         * c-lex.c: Likewise.
17488         * c-opts.c: Likewise.
17489         * c-parse.in: Likewise.
17490         * c-typeck.c: Likewise.
17491         * genconditions.c: Likewise.
17492         * gengtype-lex.l: Likewise.
17493         * gengtype-yacc.y: Likewise.
17494         * gengtype.c: Likewise.
17495         * genmodes.c: Likewise.
17496         * gensupport.c: Likewise.
17497         * read-rtl.c: Likewise.
17498         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
17499         htab_find_slot().
17501 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17503         * c-decl.c (groktypename, groktypename_in_param_context): Rename
17504         variable typename to type_name.
17505         * c-lex.c (interpret_float): Likewise.
17507 2004-07-25  Roger Sayle  <roger@eyesopen.com>
17509         * convert.c (convert_to_real, convert_to_integer,
17510         convert_to_complex): Replace calls to build with calls to buildN.
17511         * coverage.c (tree_coverage_counter_ref): Likewise.
17512         * dojump.c (do_jump): Likewise.
17513         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
17514         * emit-rtl.c (component_ref_for_mem_expr,
17515         set_mem_attributes_minus_bitpos): Likewise.
17516         * explow.c (update_nonlocal_goto_save_area): Likewise.
17517         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
17518         expand_mult_add): Likewise.
17519         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
17520         store_constructor, get_inner_reference, expand_expr_real_1,
17521         try_casesi, try_tablejump): Likewise.
17522         * function.c (expand_function_start): Likewise.
17523         * stmt.c (emit_case_bit_tests, expand_end_case_type,
17524         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
17525         * stor-layout.c (place_union_field, layout_type): Likewise.
17526         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
17527         * varasm.c (copy_constant): Likewise.
17529 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17531         * c-common.c: Rename all identifiers named `new'.
17532         * c-decl.c: Likewise.
17533         * gensupport.c: Likewise.
17534         * simplify-rtx.c: Likewise.
17535         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
17536         with XNEW().
17537         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
17538         with XNEWVEC().
17540 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
17542         PR c/15360
17543         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
17544         declarations until after calling pushdecl.
17545         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
17546         "extern" and not on whether the declaration is initialized.
17548 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
17550         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
17551         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
17552         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
17553         "cpplib.h", "c-pragma.h", "c-common.h".
17554         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
17555         (solaris_register_pragmas): New functions.
17556         * config/sol2-protos.h: New file.
17557         * config/sol2.c: New file.
17558         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
17559         (REGISTER_TARGET_PRAGMAS): New macros.
17560         (solaris_pending_aligns, solaris_pending_inits)
17561         (solaris_pending_finis): New variables.
17562         * config/t-sol2 (sol2-c.o): Update dependencies.
17563         (sol2.o): New rule.
17564         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
17565         SUBTARGET_INSERT_ATTRIBUTES.
17566         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
17567         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
17568         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
17569         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
17570         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
17571         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
17572         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
17573         * config/sparc/sparc.c (sparc_attribute_table): New.
17574         (TARGET_INSERT_ATTRIBUTES): Define in terms of
17575         SUBTARGET_INSERT_ATTRIBUTES.
17576         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
17577         is defined.
17578         * doc/extend.texi (Solaris Pragmas): New section.
17580 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17582         * c-common.c: Rename all identifiers named `class' to `cl'.
17583         * c-common.h: Likewise.
17584         * c-parse.in: Likewise.
17585         * c-typeck.c: Likewise.
17586         * genmodes.c: Likewise.
17587         * real.c: Likewise.
17588         * real.h: Likewise.
17589         * recog.c: Likewise.
17590         * recog.h: Likewise.
17591         * regrename.c: Likewise.
17592         * tree.h: Likewise.
17593         * c-common.c (builtin_function_2): Change type of 5th parameter from
17594         int to enum built_in_function. Change type of 8th parameter from int
17595         to bool.
17596         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
17597         with GGC_CNEW().
17598         * c-typeck.c (convert_arguments): Change type of formal_prec from
17599         int to unsigned int.
17600         * genmodes.c (blank_mode): Make a few negative constants unsigned.
17601         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
17602         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
17603         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
17604         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
17605         iterator to for_all_modes () instead of an enum because enums can't
17606         be incremented in C++.
17609 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
17611         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
17612         hard registers.
17614 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17616         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
17617         Handle ARRAY_RANGE_REF like ARRAY_REF.
17619 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
17621         * c-typeck.c (digest_init): Don't allow arrays of signed or
17622         unsigned variants of wchar_t to be initialized by wide string
17623         constants.  Do allow arrays of enumerated types compatible with
17624         wchar_t to be initialized by wide string constants.  Refine tests
17625         distinguishing wide and narrow strings and arrays.  Give specific
17626         error for arrays of other integer types initialized by string
17627         constants.
17628         (output_init_element, process_init_element): Check for
17629         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
17630         initializing with string constants.
17632 2004-07-25  Richard Henderson  <rth@redhat.com>
17634         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
17635         on the RESULT_DECL.
17636         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
17637         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
17638         DECL_IGNORED_P to new decl.
17640 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
17642         * config/ia64/ia64.c (general_xfmode_operand)
17643         (destination_xfmode_operand): Delete.
17644         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
17645         * config/ia64/ia64.md (*movxf_internal): Use general_operand
17646         and destination_operand.
17648 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
17650         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
17651         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
17653 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
17654             Zack Weinberg  <zack@codesourcery.com
17656         PR 16684
17657         * c-decl.c (diagnose_mismatched_decls): Don't issue a
17658         redundant-declaration warning the first time a builtin is
17659         declared explicitly.
17661 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17663         * tree.h (staticp): Change return type to bool.
17665 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17667         * c-common.c (c_staticp): Last episode of the staticp saga.
17669 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17671         * c-common.h (c_staticp): Change return type from int to bool.
17672         * tree.c (staticp): Likewise.
17673         * langhooks.h (staticp): Likewise.
17675 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17677         * langhooks-def.h (lhd_staticp): Change return type from int to
17678         bool in prototype to match definition.
17680 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17682         * system.h (bool, true, false): Don't redefine as preprocessor macros
17683         in C++.
17685 2004-07-24  Roger Sayle  <roger@eyesopen.com>
17687         * expmed.c (init_expmed): A signed modulus by a power of two is
17688         considered cheap if its less than or equal to four instructions.
17690 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17692         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
17693         GGC_CNEWVAR): New macros.
17695 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
17697         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
17698         lists.
17699         * c-decl.c: Likewise.
17700         * c-format.c: Likewise.
17701         * c-lex.c: Likewise.
17702         * c-opts.c: Likewise.
17703         * c-pragma.c: Likewise.
17704         * c-typeck.c: Likewise.
17705         * gencheck.c: Likewise.
17706         * genconditions.c: Likewise.
17707         * genconfig.c: Likewise.
17708         * genflags.c: Likewise.
17709         * gengtype.c: Likewise.
17710         * gensupport.c: Likewise.
17711         * ggc-none.c: Likewise.
17712         * langhooks.c: Likewise.
17713         * statistics.h: Likewise.
17714         * stub-objc.c: Likewise.
17715         * java/decl.c: Likewise.
17717 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
17719         * config/m68k/m68k.c (output_scc_di): Fix coding style.
17720         (symbolic_operand): Fix prototype.
17721         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
17722         * config/m68k/m68k.md: Add constants for registers a0 and sp and
17723         use them, change from the "{...}" syntax to the simpler {...}
17724         syntax.
17725         (*cfv4_extendqisi2): Fix destination predicate.
17726         * config/m68k/m68k-protos.h: Remove various declarations also
17727         generated via PREDICATE_CODES.
17729 2004-07-23  Mike Stump  <mrs@apple.com>
17731         * c-typeck.c (convert_for_assignment): Tightened up pointer
17732         converstions that differ in signedness.
17734 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
17736         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
17738 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17740         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
17741         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
17743         * gimplify.c (gimplify_compound_lval): Check for no handled
17744         operations, rather than checking for explicit list of nodes.
17745         (is_gimple_addr_expr_arg_or_indirect): New function.
17746         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
17747         redundant setting of TREE_INVARIANT.
17748         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
17749         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
17751 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
17753         PR tree-optimization/16688
17754         PR tree-optimization/16689
17755         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
17756         unnecessary initialization of 'tag'.
17757         (get_tmt_for): Check that the new type tag has the same alias
17758         set as the pointed-to type.
17759         (group_aliases): Only regular variables need to be removed
17760         from the alias set of a name tag.
17761         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
17762         propagation if the two types are not compatible.
17763         (merge_alias_info): Rename from replace_ssa_names_ann.
17764         Add more checking.
17765         (replace_exp_1): If both arguments are SSA_NAMEs, check that
17766         the propagation can be done.
17767         Only call merge_alias_info on pointers.
17768         (propagate_value): Likewise.
17769         * tree-ssa-copyrename.c: Include langhooks.h.
17770         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
17771         to do the merging.
17772         Do not coalesce variables with incompatible types.
17773         (rename_ssa_copies): Call replace_ssa_name_symbol.
17774         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
17775         the same type as the underlying _DECL.
17776         * tree-ssanames.c (replace_ssa_name_symbol): New function.
17777         * tree.h (replace_ssa_name_symbol): Declare.
17779 2004-07-23  Richard Henderson  <rth@redhat.com>
17781         PR c++/16277
17782         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
17783         unshare it properly.
17784         (gimplify_modify_expr_rhs): Push assignment from a conditional into
17785         the conditional for all non-register types.
17787 2004-07-23  Richard Henderson  <rth@redhat.com>
17789         * expr.c (expand_expr_real_1): Don't handle non-local variables.
17790         * expr.h (fix_lexical_addr): Remove.
17791         * function.c (NEED_SEPARATE_AP): Remove.
17792         (fix_lexical_addr): Remove.
17793         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
17794         not null decl_function_context.
17795         (create_alias_vars): Likewise.
17796         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
17797         (simple_goto_p): Likewise.
17798         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
17799         * tree-ssa-ccp.c (get_default_value): Likewise.
17800         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
17801         * tree.c (needs_to_live_in_memory): Likewise.
17802         * tree-flow-inline.h (may_be_aliased): Move...
17803         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
17804         when TREE_STATIC variables may be addressable.
17806 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
17808         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
17810 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
17812         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
17813         bitmap contents if GENERATOR_FILE is defined.
17814         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
17815         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
17817 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
17819         * c-decl.c (start_function): Form composite type of function types
17820         rather than copying type from previous prototype declaration.
17822 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
17824         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
17825         the const qualifier for the second argument in the C++ functions.
17827         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
17828         specific pointer types.
17830         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
17831         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
17832         for vector bool and/or vector pixel, add C++ and C missing support.
17833         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
17834         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
17835         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
17836         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
17837         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
17838         missing C++ and C support for vector bool and/or vector pixel.
17839         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
17840         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
17841         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
17842         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
17843         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
17844         C++ and C types used for vector bool and/or vector pixel.
17845         (vec_st, vec_stl): Add C++ support for vector pixel.
17846         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
17847         (vec_all_ne): Add C++ support for vector pixel.
17849         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
17850         (vec_vmulesb): Add missing C++ function.
17851         (vec_perm): Fix type of third argument in C++ function.
17852         (vec_vsum4shs): Fix C++ function name.
17853         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
17854         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
17855         argument passed to the error handler in C macro.
17856         (vec_nmsub): Remove extra parens around argument names in C macro.
17857         (vec_packpx): Add missing parens in C macro.
17859 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
17861         * machmode.def: Remove vector modes.
17862         * config/alpha/alpha-modes.def: Add supported vector modes.
17863         * config/arm/arm-modes.def: Likewise.
17864         * config/frv/frv-modes.def: Likewise.
17865         * config/i386/i386-modes.def: Likewise.
17866         * config/rs6000/rs6000-modes.def: Likewise.
17867         * config/sh/sh-modes.def: Likewise.
17869 2004-07-23  Matthias Klose  <doko@debian.org>
17871         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
17872         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
17873         * config.h: Regenerate.
17874         * configure: Likewise.
17876 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
17878         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
17879         generated SYMBOL_REFs for labels.
17880         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
17881         Change prototype.
17882         (machopic_stub_name): Remove.
17883         (machopic_indirection_name): New function.
17884         (machopic_mcount_stub_name): Likewise.
17885         (machopic_classify_name): Remove.
17886         (machopic_function_base_sym): New function.
17887         (machpoic_classify_symbol): Likewise.
17888         (machopic_classify_ident): Remove.
17889         (machopic_define_ident): Likewise.
17890         (machopic_define_name): Likewise.
17891         (machopic_name_defined_p): Likewise.
17892         (machopic_ident_defined_p): Likewise.
17893         (darwin_strip_name_encoding): Likewise.
17894         (machopic_define_symbol): New function.
17895         * config/darwin.c (hashtab.h): Include.
17896         (machopic_defined_list): Remove.
17897         (machopic_classify_ident): Likewise.
17898         (machopic_classify_name): Likewise.
17899         (machopic_ident_defined_p): Likewise.
17900         (machopic_define_ident): Likewise.
17901         (machopic_define_name): Likewise.
17902         (machopic_symbol_defined_p): New function.
17903         (machopic_classify_symbol): Likewise.
17904         (machopic_data_defined_p): Use machopic_classify_symbol.
17905         (machopic_define_symbol): New function.
17906         (machopic_function_base_sym): New function.
17907         (machopic_non_lazy_pointers): Remove.
17908         (machopic_non_lazy_ptr_name): Likewise.
17909         (machopic_stubs): Likewise.
17910         (machopic_stub_name): Likewise.
17911         (NON_LAZY_POINTER_SUFFIX): New macro.
17912         (STUB_SUFFIX): Likewise.
17913         (machopic_indirection): New structure.
17914         (machopic_indirections): New variable.
17915         (machopic_indirection_hash): New function.
17916         (machopic_indirection_eq): Likewise.
17917         (machopic_indirection_name): Likewise.
17918         (machopic_mcount_stub_name): New function.
17919         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
17920         hash table.
17921         (machopic_indirect_data_reference): Rework to use new functions.
17922         (machopic_indirect_call_target): Likewise.
17923         (machopic_legitimize_pic_address): Likewise.
17924         (machopic_output_indirection): New function.
17925         (machopic_finish): Use it.
17926         (machopic_operand_p): Rework to use new functions.
17927         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
17928         (darwin_strip_name_encoding): Remove.
17929         (update_non_lazy_ptrs): Remove.
17930         (update_stubs): Likewise.
17931         (darwin_non_lazy_pcrel): Use new functions.
17932         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
17933         (ASM_OUTPUT_LABELREF): Likewise.
17934         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
17935         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
17936         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
17937         (TARGET_STRIP_NAME_ENCODING): Do not use
17938         darwin_strip_name_encoding.
17939         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
17940         darwin_strip_name_encoding.
17941         * config/i386/darwin.h (FUNCTION_PROFILER): Use
17942         machopic_mcount_stub_name.
17943         * config/i386/i386.c (x86_output_mi_thunk): Use
17944         machopic_indirection_name, not machopic_stub_name.
17945         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
17946         machopic_function_base_sym.
17947         (print_operand): Use machopic_classify_symbol.
17948         (rs6000_emit_prologue): Use machopic_function_base_sym.
17949         (output_profile_hook): Do not use machopic_stub_name.
17950         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
17952 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
17954         PR c/7284
17955         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
17956         as multiplication.
17958 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
17960         * doc/implement-c.texi: New file.
17961         * doc/extend.texi (C Implementation): Move to there.
17962         * doc/gcc.texi: Include implement-c.texi.
17963         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
17965 2004-07-22  Jason Merrill  <jason@redhat.com>
17967         * integrate.c (copy_decl_for_inlining): Remove invisible reference
17968         handling.
17969         * tree-inline.c (setup_one_parameter): Likewise.
17971 2004-07-22  Brian Booth  <bbooth@redhat.com>
17973         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
17974         (substitute_and_fold): Propigate into VUSE operands when possible.
17975         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
17976         (cp_lattice_meet): Handle merging of latticevalues when
17977         UNKNOWN_VAL is present.
17978         (visit_stmt): Visit assignments with V_MUST_DEFs.
17979         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
17980         (ccp_fold): Deal with RHS' that are constant and virtual.
17981         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
17982         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
17983         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
17984         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
17985         computing immediate uses.
17986         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
17987         transition.
17988         (replace_vuse_in): New function.
17989         (likely_value): Add check of vuse operands.
17990         (get_default_value): Set the default value of virtually defined
17991         variables to UKNOWN_VAL instead of VARYING.
17993 2004-07-22  Richard Henderson  <rth@redhat.com>
17995         * expr.c (emit_push_insn): Don't use set_mem_attributes.
17997 2004-07-22  Richard Henderson  <rth@redhat.com>
17999         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
18000         variables due to conditional compilation.
18002 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
18004         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
18005         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
18006         Release SSA names that have been re-renamed.
18007         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
18008         variable.
18009         * tree-ssa-alias.c (init_alias_info): If aliases have been
18010         computed before, clear existing alias information.
18011         (create_name_tags): Do no fixup PT_ANYTHING pointers.
18012         If the new name tag for a pointer is different than the one it
18013         had before, mark the old tag for renaming.
18014         (replace_may_alias): New function.
18015         (group_aliases): Call it.
18016         (setup_pointers_and_addressables): Always call get_tmt_for.
18017         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
18018         once.
18019         (set_pt_anything): New local function.
18020         (set_pt_malloc): New local function.
18021         (merge_pointed_to_info): Don't merge pointed-to variables from
18022         the original pointer if the destination is pointing to an
18023         unknown location.
18024         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
18025         (add_pointed_to_var): Do not add a variable to the points-to
18026         set if the pointer is already pointing to anywhere.
18027         (collect_points_to_info_r): If the defining statement is a PHI
18028         node, only merge pointed-to information if the argument has
18029         already been visited.
18030         (get_tmt_for): Only create a new tag if the pointer didn't
18031         have one already.
18032         (dump_alias_info): Emit more information.
18033         (dump_points_to_info_for): Likewise.
18034         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
18035         try to get the annotation of an SSA_NAME.
18036         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
18037         alias sets when checking is enabled.
18038         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
18039         (eliminate): Mark basic blocks that will need
18040         EH information cleaned up.
18041         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
18042         predecessor.
18043         Initialize need_eh_cleanup.
18044         (fini_pre): Call tree_purge_all_dead_eh_edges and
18045         cleanup_tree_cfg if needed.
18046         Free need_eh_cleanup.
18047         * tree-ssa.c (verify_ssa_name): New function.
18048         (verify_def): Call it.
18049         Re-arrange to avoid printing too many error messages.
18050         (verify_use): Likewise.
18051         (verify_phi_args): Likewise.
18052         (verify_flow_insensitive_alias_info): New function.
18053         (verify_flow_sensitive_alias_info): New function.
18054         (verify_alias_info): New function.
18055         (verify_ssa): Call verify_alias_info.
18056         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
18057         program.
18058         Re-arrange to avoid printing too many error messages.
18059         * tree-ssanames.c (make_ssa_name): Clear
18060         SSA_NAME_IN_FREE_LIST.
18061         (release_ssa_name): Never release a default definition.
18062         (release_defs): New function.
18063         * tree.h: Declare it.
18064         * tree-ssa-dce.c (remove_dead_stmt): Call it.
18066 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
18068         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
18069         If true, do a depth-first search.  Do a breadht-first search,
18070         otherwise.
18071         (walk_use_def_chains): Add new argument IS_DFS.
18072         Update all users.
18073         * tree-flow.h (walk_use_def_chains): Update prototype.
18075 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
18077         * config/cris/cris.md: Tweak formatting.
18078         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
18079         (mover2side, moverside, movemside, movei, op3, andu): Replace
18080         live define_peephole:s with define_peephole2 near-equivalents.
18081         Delete the rest.
18082         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
18083         word-size modes.
18084         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
18085         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
18086         "*mov_sidesi_mem" respectively.
18088 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
18090         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
18091         (gimplify_build1): Move from tree-complex.c do_unop.
18092         (gimplify_build2): Move from tree-complex.c do_binop.
18093         (gimplify_build3): New.
18094         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
18095         Adjust throughout to call the functions above.
18096         * tree-flow.h: Declare the functions above.
18097         * tree-nested.c (gimplify_val): Rename to...
18098         (tsi_gimplify_val): ... this.
18100         * Makefile.in (tree_complex.o): Update dependencies.
18101         (stor-layout.o): Depend on regs.h.
18102         * c-common.c (handle_vector_size_attribute): Update for
18103         vector types without corresponding vector modes.
18104         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
18105         a corresponding vector mode is not available.
18106         * print-tree.c (print_node): Print nunits for vector types
18107         * regclass.c (have_regs_of_mode): New.
18108         (init_reg_sets_1): Initialize it and use it instead
18109         of allocatable_regs_of_mode.
18110         * regs.h (have_regs_of_mode): Declare it.
18111         * stor-layout.c (layout_type): Pick a mode for vector types.
18112         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
18113         build_replicated_const, do_unop, do_binop, do_plus_minus,
18114         do_negate, expand_vector_piecewise, expand_vector_parallel,
18115         expand_vector_addition, expand_vector_operations_1,
18116         expand_vector_operations, tree_lower_operations,
18117         pass_lower_vector_ssa, pass_pre_expand): New.
18118         (expand_complex_operations, pass_lower_complex): Remove.
18119         * tree-optimize.c (init_tree_optimization_passes): Adjust
18120         pass ordering for changes in tree-complex.c.
18121         * tree-pass.h: Declare new passes.
18122         * tree.c (finish_vector_type): Remove.
18123         (make_vector_type): New.
18124         (build_vector_type_for_mode, build_vector_type): Rewritten.
18125         * tree.def (VECTOR_TYPE): Document where the number of
18126         subparts is stored.
18127         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
18128         (make_vector): Remove declaration.
18130 2004-07-21  Richard Henderson  <rth@redhat.com>
18132         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
18133         TREE_THIS_VOLATILE, may_aliases, or optimization level.
18134         (remove_useless_vars): Dump debugging info.
18135         (expand_used_vars): Move ...
18136         * cfgexpand.c (expand_used_vars): ... here.  Make static.
18137         * tree-flow-inline.h (set_is_used): New.
18138         (set_default_def): Use get_var_ann.
18139         * tree-flow.h: Update decls.
18140         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
18141         (create_ssa_var_map): Use it.
18142         * tree-ssa.c (set_is_used): Remove.
18144 2004-07-22  Ben Elliston  <bje@au.ibm.com>
18146         * gdbinit.in: Set a breakpoint on internal_error.
18148 2004-07-21  Richard Henderson  <rth@redhat.com>
18150         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
18151         to create a new basic block.
18153 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
18155         PR c/15052
18156         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
18157         return type on function definitions.  Move other warnings for
18158         qualified return type to -Wreturn-type.  Do not condition any such
18159         warnings on -pedantic.  Update comments.
18160         (start_function): Only copy function type from previous prototype
18161         declaration if return types are compatible.
18162         * c-typeck.c (function_types_compatible_p): Don't condition
18163         warning for incompatibility of volatile qualifiers on the return
18164         type on -pedantic.  Update comment.
18165         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
18167 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
18169         * c-typeck.c (set_init_index): Require designator to be of integer
18170         type.
18172 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
18174         PR c/11250
18175         * c-parse.in (init): Change to exprtype.
18176         (primary): Set original_code for STRING to STRING_CST.
18177         Call maybe_warn_string_init for compound literals.
18178         (initdcl, notype_initdcl): Call maybe_warn_string_init.
18179         (initval): Update.
18180         * c-tree.h (maybe_warn_string_init): New.
18181         (pop_init_level, process_init_element): Use struct c_expr.
18182         (struct c_expr): Update comment.
18183         * c-typeck.c (maybe_warn_string_init): New function.
18184         (digest_init): Call it.  Additional parameter strict_string.  All
18185         callers changed.
18186         (output_init_element): Likewise.
18187         (struct constructor_stack): Use struct c_expr for
18188         replacement_value.
18189         (really_start_incremental_init, push_init_level): Update.
18190         (pop_init_level): Update.  Return struct c_expr.
18191         (process_init_level): Update.  Take struct c_expr argument.
18193 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
18195         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
18196         commit.
18198 2004-07-21  Eric Christopher  <echristo@redhat.com>
18200         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
18201         removal.
18202         * c-decl.c (pop_scope): Ditto.
18203         * calls.c (expand_call): Remove call to current_nesting_level,
18204         update comment accordingly. Remove calls to expand_start_target_temps
18205         and expand_end_target_temps.
18206         * cfgexpand.c (construct_init_block): Remove call to
18207         expand_start_bindings_and_block.
18208         (construct_exit_block): Remove call to expand_end_bindings.
18209         * expr.c (safe_from_p): Remove BIND_EXPR handling.
18210         (expand_expr_real_1): Ditto. Fix formatting.
18211         (expand_vars): Delete.
18212         * stmt.c (POPSTACK): Remove block_stack.
18213         (stmt_status): Remove x_block_stack.
18214         (block_stack): Delete.
18215         (expand_start_bindings_and_block): Ditto.
18216         (expand_start_target_temps): Ditto.
18217         (expand_end_target_temps): Ditto.
18218         (current_nesting_level): Ditto.
18219         (warn_about_unused_variables): Ditto.
18220         (expand_end_bindings): Ditto.
18221         * tree.h: Remove declarations for above.
18223 2004-07-21  Steven Bosscher  <stevenb@suse.de>
18225         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
18226         * rtl.c (note_insn_name): Likewise.
18227         * print-rtl.c (print_rtx): Don't print it.
18228         * cfgrtl.h (can_delete_note_p): Don't handle it.
18229         (rtl_delete_block): Likewise.
18230         * passes.c (rest_of_handle_guess_branch_prob): Remove.
18231         (rest_of_compilation): Don't call it.
18232         * predict.c (process_note_predictions, process_note_prediction,
18233         note_prediction_to_br_prob): Remove.
18234         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
18235         * stmt.c (return_prediction): Remove.
18236         (expand_value_return): Don't call it.  Don't add prediction
18237         notes for return statements.
18239 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
18241         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
18242         once.
18244 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
18246         * c-common.c (vector_types_convertible_p): Use vector types'
18247         TYPE_SIZE and TREE_TYPE instead of their mode.
18248         * convert.c (convert_to_integer): Likewise.
18249         (convert_to_vector): Likewise.
18250         * fold-const.c (fold_convert): Likewise.
18251         * varasm.c (output_constant): Likewise.
18252         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
18253         Allow a VECTOR_TYPE initializer to be made of several vectors.
18254         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
18255         of cleared and need_to_clear, and use fold_convert.
18256         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
18257         integer vectors.
18259 2004-07-20  Richard Henderson  <rth@redhat.com>
18261         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
18262         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
18264 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
18266         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
18267         enormous cost if not TARGET_HARD_MUL.
18269 2004-07-20  Andrew Pinski  <apinski@apple.com>
18271         PR target/16557
18272         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
18273         (ASM_SPEC): here.
18275 2004-07-21  Paul brook  <paul@codesourcery.com>
18277         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
18279 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18281         * fold-const.c (operand_equal_p): Temporarily support NULL args.
18282         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
18283         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
18285 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
18287         * rtl.h (plus_constant): Delete.
18288         (plus_constant_wide): Rename to plus_constant.
18289         (plus_constant_for_output_wide): Delete vestigial prototype.
18290         (GEN_INT): Remove unnecessary cast.
18291         * tree.h (build_int_2, size_int_type): Delete.
18292         (build_int_2_wide): Rename to build_int_2.
18293         (size_int_wide): Rename to size_int_kind.
18294         (size_int_type_wide): Rename to size_int_type.
18295         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
18296         Remove unnecessary cast.
18297         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
18298         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
18299         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
18300         (size_int_type_wide): Rename size_int_type.
18301         (int_const_binop): Use size_int_type.
18302         * c-lex.c (interpret_integer): Use build_int_2.
18303         * final.c (split_double): Remove unnecessary casts.
18304         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
18306 2004-07-20  Richard Henderson  <rth@redhat.com>
18308         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
18309         (gimplify_compound_lval): Use is_gimple_tmp_reg.
18310         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
18311         (is_gimple_tmp_reg): New.
18312         * tree-gimple.h (is_gimple_tmp_reg): Declare.
18314 2004-07-20  Richard Henderson  <rth@redhat.com>
18316         * tree-pretty-print.c (dump_generic_node): Dump
18317         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
18319 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
18321         * tree-mudflap.c (mf_set_options_fndecl): New tree.
18322         (mudflap_init): Set it.
18323         (mudflap_register_call): Remove __mf_init call.
18324         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
18325         to pass "-ignore-reads" option to libmudflap if needed.
18327 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
18329         PR c++/14607
18330         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
18331         (MAKE_DECL_ONE_ONLY): Undefine.
18332         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
18333         readonly_data, one_only_data_section, forget_section): New prototypes.
18334         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
18335         functions.
18336         (pa_select_section): Add one-only (COMDAT) support.
18337         * pa.h (struct machine_function): Define.
18338         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
18339         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
18340         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
18341         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
18342         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
18343         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
18344         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
18345         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
18346         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
18347         for EXTRA_SECTION_FUNCTIONS.
18348         * doc/install.texi: Update binutils requirements.
18350 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
18352         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
18353         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
18354         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
18355         size_t.
18356         (struct VEC): Use unsigned for num and alloc.
18357         * vec.c (struct vec_prefix): Likewise.
18358         (vec_o_reserve): Adjust.
18360         * dbxout.c (dbxout_type): Fix printf format.
18362         * tree.h (binfo_member): Remove.
18363         * tree.c (binfo_member): Remove.
18365 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
18367         * tree.h: Include vec.h
18368         (DEF_VEC_P(tree)): New type.
18369         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
18370         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
18371         (BINFO_LANG_SLOT): Remove.
18372         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
18373         (struct tree_binfo): Turn base_binfos into a trailing
18374         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
18375         (binfo_lang_slots): Remove.
18376         * tree.c (binfo_lang_slots): Remove.
18377         (make_tree_binfo_stat): Take a base binfo count, not a
18378         lang slot count.  Adjust.
18379         * Makefile.in (TREE_H): Add vec.h
18380         * alias.c (record_component_aliases): Adjust BINFO access.
18381         * dbxout.c (dbxout_type): Likewise.
18382         * dwarf2out.c (gen_member_die): Likewise.
18383         * sdbout.c (sdbout_one_type): Likewise.
18384         * tree-dump.c (deque_and_dump): Likewise.
18385         * config/i386/i386.c (classify_argument,
18386         contains_128bit_aligned_vector_p): Likewise.
18387         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
18388         * doc/c-tree.texi (Classes): Update BINFO documentation.
18390 2004-07-20  Steven Bosscher  <stevenb@suse.de>
18392         * c-common.h (check_case_value): Remove prototype.
18393         (c_add_case_label): Adjust prototype.
18394         * c-common.c (check_case_value): Make static.
18395         (check_case_bounds): New function.
18396         (c_add_case_label): Use it.  Take new argument orig_type.
18397         * c-typeck.c (struct c_switch): New orig_type field.
18398         (c_start_case): Set it.
18399         (do_case): Pass it to c_add_case_label.
18400         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
18401         cases from here.  Add the labels in reverse order.
18402         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
18403         (add_case_node): Return nothing, don't check for duplicate cases.
18404         Insert new case nodes in a list, not in an AVL tree.
18405         (expand_end_case_type): Don't turn a case tree into a case list.
18406         (case_tree2list): Remove.
18407         * tree.h (add_case_node): Adjust prototype.
18409 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
18411         * genattr.c (struct range, struct function_unit,
18412         write_units, extend_range, init_range): Remove them.
18413         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
18414         Output "#define INSN_SCHEDULING" here.
18415         * genattrtab.c (struct range, struct function_unit_op,
18416         struct function_unit, struct dimension, enum operator,
18417         operate_exp, expand_units, simplify_knowing,
18418         encode_units_mask, simplify_by_exploding,
18419         find_and_mark_used_attributes, unmark_used_attributes,
18420         add_values_to_cover, increment_current_value,
18421         test_for_current_value, simplify_with_current_value,
18422         simplify_with_current_value_aux, gen_unit,
18423         write_unit_name, write_function_unit_info,
18424         write_complex_function, write_toplevel_expr,
18425         find_single_value, extend_range): Remove.
18426         (write_attr_get): Do not handle common_av->value
18427         being an FFS.
18428         (struct attr_desc): Remove func_units_p and blockage_p.
18429         (write_attr_valueq): Do not handle them.
18430         (find_attr): Do not clear them.
18431         (make_internal_attr): Do not initialize them.
18432         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
18433         * sched-vis.c (init_target_units, insn_print_units,
18434         init_block_visualization, print_block_visualization,
18435         visualize_scheduled_insns, visualize_no_unit,
18436         visualize_stall_cycles, visualize_alloc,
18437         visualize_free, target_units, get_visual_tbl_length,
18438         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
18439         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
18440         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
18441         * haifa-sched.c (blockage_range, clear_units,
18442         schedule_unit, actual_hazard, potential_hazard,
18443         insn_unit, unit_last_insn, unit_tick,
18444         actual_hazard_this_instance, potential_hazard,
18445         schedule_unit, max_insn_queue_index_value): Remove.
18446         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
18447         max_insn_queue_index.
18448         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
18449         * doc/md.texi (Processor pipeline description): Remove
18450         references to old pipeline descriptions.
18451         (Automaton pipeline description): Merge with the above.
18452         (Old pipeline description, Comparison of the two descriptions):
18453         Remove.
18455         * bt-load.c (migrate_btr_def): Remove references to
18456         use_pipeline_interface.
18457         * haifa-sched.c (insn_cost, schedule_insn,
18458         schedule_block, advance_one_cycle, sched_init,
18459         queue_to_ready, sched_finish): Likewise.
18460         * modulo-sched.c (sms_schedule, advance_one_cycle,
18461         ps_has_conflicts): Likewise.
18462         * sched-rgn.c (init_ready): Likewise.
18463         (debug_dependencies): Likewise, and remove an "if (1)".
18464         * target.h (use_dfa_pipeline_interface): Remove.
18465         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18466         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18467         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18468         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18469         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18470         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18471         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18472         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18473         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18474         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18475         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18476         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18477         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18478         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18479         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18480         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18481         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18482         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18483         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
18485 2004-07-19  Roger Sayle  <roger@eyesopen.com>
18487         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
18489 2004-07-19  Jeff Law  <law@redhat.com>
18491         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
18492         (get_eq_expr_value): Use it.  Simplify slightly.
18494 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
18496         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
18497         (umulsidi3_32bit_r4000): Likewise.
18499 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
18501         * vec.h: Propagate location information properly.
18502         (VEC_T_iterate): Add result pointer parameter.
18503         (VEC_T_space): New.
18504         (VEC_T_reserve): Use it.
18506 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
18508         * Makefile.in (c-format.o): Depend on c-format.h.
18509         * c-format.h: New file.
18510         (struct format_char_info): Add CHAIN member.
18511         * c-format.c: Move some types and constants to c-format.h.
18512         (format_type_error): Set to -1.
18513         (struct function_format_info): Use an int for format_type.
18514         (decode_format_type): Return an int.  Return format_type_error
18515         on error.
18516         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
18517         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
18518         (scan_char_table, time_char_table, monetary_char_table): Initialize
18519         CHAIN to NULL.
18520         (n_format_types): New variable.
18521         (check_format_info_main): Handle CHAIN in format_char_info.
18522         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
18523         TARGET_N_FORMAT_TYPES.
18524         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
18525         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
18526         * config/sol2-c.c: New file.
18527         * config/t-sol2: New file.
18528         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
18529         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
18530         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
18532         * doc/extend.texi (Target Format Checks): New section.
18533         (Function Attributes): Mention it.
18534         * doc/invoke.texi: Mention target format checks.
18535         * doc/sourcebuild.texi: Mention target format checks.
18536         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
18537         TARGET_FORMAT_TYPES.
18539 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
18541         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
18542         added.
18543         * config/s390/s390.c (regclass_map initializer): Register 35 added to
18544         ADDR_REGS.
18545         (load_multiple_operation, store_multiple_operation): Removed
18546         pointless sanity check.
18547         (s390_decompose_address): Added check for return_address_pointer_rtx.
18548         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
18549         (s390_return_address_offset): New function.
18550         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
18551         (FRAME_REGNO_P): Added check for register 35.
18552         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
18553         REG_ALLOC_ORDER): Appended entry for register 35.
18554         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
18555         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
18556         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
18557         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
18558         is eliminable using stack pointer or hard frame pointer.
18559         (REGISTER_NAMES): Added name for register 35.
18560         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
18561         pointless sanity check.
18563 2004-07-19  Roger Sayle  <roger@eyesopen.com>
18565         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
18566         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
18567         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
18568         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
18569         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
18570         (fold_relational_const): Tidy up handling of floating point
18571         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
18572         transformation; fold_relational_const assumes constant operands.
18574 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
18576         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
18577         directory.
18579 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
18581         * c-tree.h (struct c_expr): Define.
18582         (C_SET_EXP_ORIGINAL_CODE): Remove.
18583         (parser_build_binary_op, build_compound_expr): Update prototypes.
18584         * c-parse.in (%union): Add exprtype.
18585         (FUNC_NAME): Mark as ttype.
18586         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
18587         exprtype.
18588         (expr): Update.  Define directly in terms of expr_no_commas
18589         instead of using nonnull_exprlist.
18590         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
18591         offsetof_member_designator, typespec_nonreserved_nonattr, init,
18592         initval, designator, component_declarator,
18593         component_notype_declarator, enumerator, array_declarator,
18594         condition, exexpr, switch_statement, stmt_nocomp, stmt,
18595         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
18596         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
18597         where appropriate.
18598         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
18599         * c-common.c (c_common_truthvalue_conversion): Don't check
18600         C_EXP_ORIGINAL_CODE.
18601         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
18602         Don't use C_EXP_ORIGINAL_CODE.
18603         (default_conversion, default_function_array_conversion): Don't use
18604         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
18605         (internal_build_compound_expr): Merge into build_compound_expr.
18606         (build_compound_expr): Take two operands instead of a TREE_LIST.
18607         * objc/objc-act.c (get_super_receiver): Update calls to
18608         build_compound_expr.
18610 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
18612         * config/sh/sh.c (sh_use_dfa_interface): Remove.
18613         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
18614         hook_int_void_1.
18615         * config/sh/sh.md: Extract pipeline descriptions
18616         into separate files.
18617         * config/sh/sh1.md: New file, extracted from sh.md.
18618         * config/sh/sh4.md: New file, extracted from sh.md.
18619         * config/sh/shmedia.md: New file, extracted from sh.md
18620         and rewritten using new-style pipeline description.
18622 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
18624         * config/pa/pa.md: Delete the two remaining define_peephole
18625         patterns.
18627 2004-07-18  Steven Bosscher  <stevenb@suse.de>
18628             Joseph S. Myers  <jsm@polyomino.org.uk>
18630         * c-common.c (c_common_truthvalue_conversion): Don't warn if
18631         TREE_NO_WARNING is set.
18633 2004-07-18  Roger Sayle  <roger@eyesopen.com>
18635         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
18636         simplify_builtin_strncmp): Delete.
18637         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
18638         Change argument to accept an arglist instead of an "exp".  Assume
18639         that the return type is always integer_type_node.  Copy missing
18640         transformations from their now obsolete simplify_builtin_*
18641         equivalents.
18642         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
18643         fold_builtin_strcmp and fold_builtin_strncmp.
18644         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
18645         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
18646         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
18648 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
18650         * Makefile.in (tree-alias-common.o): Update dependencies.
18652 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
18654         * cfgloop.c (flow_loop_nested_p): Fix comment.
18656 2004-07-17  Jason Merrill  <jason@redhat.com>
18658         PR c++/16115
18659         * stor-layout.c (relayout_decl): New fn.
18660         * tree.h: Declare it.
18661         (DECL_BY_REFERENCE): New macro.
18663 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
18665         * libgcc2.c (__enable_execute_stack): New symbol.
18666         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
18667         and declare __enable_execute_stack.
18668         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
18669         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
18670         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18671         ENABLE_EXECUTE_STACK.
18672         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
18673         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18674         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18675         ENABLE_EXECUTE_STACK.
18676         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18677         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
18678         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18679         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
18680         ENABLE_EXECUTE_STACK.
18681         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18682         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18683         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18684         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
18685         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
18686         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
18687         (sparc64_initialize_trampoline): Likewise.
18688         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
18690 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
18692         * langhooks.h (builtin_function): New langhook.
18693         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
18694         (LANG_HOOKS_INITIALIZER): Update.
18695         * tree.h (builtin_function): Remove.
18696         * doc/tm.texi: Update.
18697         * c-tree.h (builtin_function): Declare.
18698         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
18699         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
18700         config/ia64/ia64.c, config/iq2000/iq2000.c,
18701         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
18702         config/stormy16/stormy16.c: All callers of builtin_function
18703         changed.
18705 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
18707         PR target/16556
18708         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
18709         Remove white space after the backslash.
18711 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
18713         PR rtl-optimization/16294
18714         * resource.c (return_insn_p): New predicate.
18715         (mark_target_live_regs): Use it.  Special-case return insns.
18716         (init_resource_info): Use it.  Don't scan the epilogue past
18717         a return.
18719 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18721         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
18722         destroy dominance information.
18723         * passes.c (rest_of_handle_loop2):  Free dominance information.
18724         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
18725         jump threading.
18726         (thread_jumps): Update dominance information and remove unreachable
18727         blocks.
18728         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
18729         information and remove the unreachable block.
18731 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
18733         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
18735 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
18737         * doc/sourcebuild.texi: Remove libf2c entry.
18739 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
18741         * config/i386/i386.md (movv16qi_internal): Fix typo.
18743 2004-07-17  Steven Bosscher  <stevenb@suse.de>
18745         * final.c (final_scan_insn): Fix broken commit from previous
18746         patch.
18748 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
18750         * c-typeck.c (parser_build_binary_op): Condition warnings for
18751         X<=Y<=Z on -Wparentheses instead of -Wextra.
18752         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
18753         supported for C only.
18755 2004-07-17  Steven Bosscher  <stevenb@suse.de>
18757         * cfgcleanup.c (try_simplify_condjump): Don't remove line
18758         notes to avoid unreachable code warnings.
18759         * toplev.c (backend_init): Don't emit line notes for
18760         unreachable code warnings.
18762         * combine.c (distribute_notes): Don't distribute a
18763         REG_VTABLE_REF note.
18764         * final.c (final_scan_insn): Don't handle it.
18765         * rtl.c (reg_note_name): Remove it.
18766         * rtl.h (enum reg_node): Dito.
18768         * emit-rtl.c (force_line_numbers, restore_line_number_status):
18769         Remove.
18770         * rtl.h (force_line_numbers, restore_line_number_status):
18771         Remove prototypes.
18773         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
18774         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
18775         (using_eh_for_cleanups): Also moved here.
18777         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
18778         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
18779         to expand_start_case and add_case_node.
18780         * stmt.c (struct nesting): Cleanup unused fields condition_code,
18781         last_unconditional_cleanup, nominal_type, printname, and
18782         line_number_status.
18783         (struct fixup_goto): Remove.
18784         (struct stmt_status): Remove x_goto_fixup_chain field.
18785         (goto_fixup_chain): Remove.
18786         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
18787         pushcase, pushcase_range): Remove.
18788         (expand_start_bindings_and_block): Don't set unused fields in
18789         the nesting stack.
18790         (expand_start_case, add_case_node): Cleanup unused formal arguments.
18791         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
18792         instead of emit_jump_if_reachable.
18793         (emit_case_nodes): Likewise.
18794         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
18795         static.
18796         (update_eh_label): Work around left-over exception handing regions.
18797         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
18798         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
18799         (pass_cleanup_cfg_post_optimizing): New pass.
18800         (init_tree_optimization_passes): Run the new pass after all
18801         optimizations.
18802         * tree.h (pushcase, pushcase_range): Remove prototypes.
18803         (expand_start_case, add_case_node): Update prototypes.
18805 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
18807         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
18809 2004-07-16  Richard Henderson  <rth@redhat.com>
18811         * builtins.c (std_expand_builtin_va_arg): Remove.
18812         (expand_builtin_va_arg): Remove.
18813         * expr.h: Don't declare them.
18814         * gimplify.c (mark_decls_volatile_r): Remove.
18815         (copy_if_shared_r): Don't call it.
18816         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
18817         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
18818         * gimple-low.c (lower_stmt): Likewise.
18819         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
18820         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
18821         * tree-ssa-operands.c (get_expr_operands): Likewise.
18822         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
18823         EXPAND_BUILTIN_VA_ARG.
18824         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
18825         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
18826         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
18827         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
18829 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
18831         * tree-ssa-pre.c (insert_aux): Break out if we hit
18832         a critical edge.
18834 2004-07-16  Richard Henderson  <rth@redhat.com>
18836         * basic-block.h (remove_fake_exit_edges): Declare.
18837         * cfganal.c (remove_fake_predecessors): Rename from
18838         remove_fake_successors; iterate over predecessors.
18839         (remove_fake_exit_edges): New.
18840         * cfgcleanup.c (try_optimize_cfg): Use it.
18841         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
18842         * predict.c (estimate_probability): Likewise.
18843         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
18844         * tree-cfg.c (make_edges): Likewise.
18845         * tree-ssa-pre.c (fini_pre): Likewise.
18846         * profile.c (instrument_edges): Don't remove_fake_edges.
18847         (branch_prob): Do it earlier here.
18849 2004-07-16  Richard Henderson  <rth@redhat.com>
18851         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
18852         switchification wrt CONSTRUCTOR.  Document the reason.
18854 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
18856         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
18857         that prevented descriptive __mf_check source location strings.
18859 2004-07-16  Richard Henderson  <rth@redhat.com>
18861         * tree-def (WITH_SIZE_EXPR): New.
18862         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
18863         * expr.c (expand_expr_real_1): Likewise.
18864         * gimplify.c (maybe_with_size_expr): New.
18865         (gimplify_arg, gimplify_modify_expr): Use it.
18866         (gimplify_modify_expr_to_memcpy): Take size parameter.
18867         (gimplify_modify_expr_to_memset): Likewise.
18868         (gimplify_expr): Handle WITH_SIZE_EXPR.
18869         * tree-alias-common.c (find_func_aliases): Likewise.
18870         * tree-eh.c (tree_could_trap_p): Likewise.
18871         (tree_could_throw_p): Likewise.
18872         * tree-gimple.c (is_gimple_lvalue): Likewise.
18873         (get_call_expr_in): Likewise.
18874         * tree-inline.c (estimate_num_insns_1): Likewise.
18875         (expand_calls_inline): Likewise.
18876         * tree-nested.c (convert_call_expr): Likewise.
18877         * tree-pretty-print.c (dump_generic_node): Likewise.
18878         * tree-sra.c (sra_walk_expr): Likewise.
18879         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
18880         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
18881         * tree-ssa-operands.c (get_expr_operands): Likewise.
18882         * tree-tailcall.c (find_tail_calls): Likewise.
18884         * calls.c (expand_call): Reset old_stack_allocated after
18885         calling emit_stack_restore.
18887 2004-07-16  Richard Henderson  <rth@redhat.com>
18889         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
18890         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
18891         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
18892         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
18893         copy_res_decl_for_inlining.
18895         * tree-inline.c (declare_return_variable): New modify_dest argument.
18896         Use it as the return value, when possible or manditory.  Handle
18897         TREE_ADDRESSABLE types.
18898         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
18899         replacement of CALL_EXPR.
18901 2004-07-16  Richard Henderson  <rth@redhat.com>
18903         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
18904         * gimple-low.c (expand_var_p): Don't check it.
18905         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
18906         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
18907         * tree-ssa-operands.c (add_stmt_operand): Likewise.
18908         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
18909         (find_referenced_vars): Don't call them.
18910         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
18912 2004-07-16  Richard Henderson  <rth@redhat.com>
18914         * function.c (pass_by_reference): True for all variable sized types.
18916 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
18918         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
18919         * tree-pretty-print.c: Include tree-chrec.h.
18920         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
18921         and POLYNOMIAL_CHREC nodes.
18923 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
18925         * builtins.c (expand_builtin_stpcpy): Do not create temporary
18926         reg with VOIDmode.
18928 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
18930         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
18932 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
18934         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
18935         to BASE_REGNUM.
18936         * config/s390/s390.c: Likewise.
18937         * config/s390/s390.h: Likewise.
18939 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
18941         * config/mips/mips.md (addsi3, adddi3): Remove special handling
18942         of $sp adds.  Remove REGNO checks from mips16 patterns.
18944 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
18946         * config/mips/mips.md: Delete outdated comment.
18948 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
18950         * config/mips/mips.c (get_float_compare_codes): Delete.
18951         (mips_emit_compare): New function, mostly extracted from
18952         get_float_compare_codes and gen_conditional_branch.
18953         (gen_conditional_branch, gen_conditional_move): Use it.
18955 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
18957         * genautomata.c (add_vect): Speedup by using integers as
18958         bit-vectors for walking through the comb_vect and finding
18959         a match.
18961 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
18963         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
18964         operand is an uns_arith_operand; use subtraction otherwise.
18965         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
18966         not just arith_operands.
18968 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
18970         * config/mips/mips-protos.h (gen_int_relational): Delete.
18971         (mips_emit_scc): Declare.
18972         * config/mips/mips.c (internal_test): Delete.
18973         (sle_operand, sleu_operand): New functions.
18974         (map_test_to_internal_test, gen_int_relational): Delete.
18975         (mips_emit_binary, mips_relational_operand_ok_p)
18976         (mips_emit_int_relational, mips_zero_if_equal)
18977         (mips_emit_scc): New functions.
18978         (gen_conditional_branch): Rework to use mips_emit_int_relational.
18979         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
18980         sleu_operand.
18981         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
18982         (sltu, sleu): Use mips_emit_scc.
18983         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
18984         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
18985         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
18987 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
18989         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
18991 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
18993         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
18994         (*sne_[sd]i): Likewise sne_[sd]i_zero.
18995         (*sgt_[sd]i): ...and sgt_[sd]i.
18996         (*slt_[sd]i): ...and slt_[sd]i.
18997         (*sgtu_[sd]i): ...and sgtu_[sd]i.
18998         (*sltu_[sd]i): ...and sltu_[sd]i.
18999         (*sleu_[sd]i): ...and sleu_[sd]i_const.
19000         Name previously unnamed mips16 patterns.  Formatting fixes.
19002 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
19004         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
19005         (branch_type): Delete.
19006         (gen_conditional_branch, gen_conditional_move)
19007         (mips_gen_conditional_trap): Update after name change.  Get the
19008         comparison mode from cmp_operands[0].
19009         * config/mips/mips.h (cmp_type, branch_type): Delete.
19010         (cmp_operands): Renamed from branch_cmp.
19011         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
19012         name change.  Don't set branch_type.
19013         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
19014         mode class of cmp_operands[0] rather than branch_type.  Update after
19015         name change.
19017 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
19019         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
19020         of 0...255 to 0 when inside a SET.
19022 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
19024         * config/mips/mips.md: Remove mips16 define_peepholes.
19026 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
19028         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
19029         (fini_pre): Remove fake edges.
19031 2004-07-15  Richard Henderson  <rth@redhat.com>
19033         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
19034         (get_indirect_ref_operands, get_call_expr_operands): ... these.
19036 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
19038         * vec.h (VEC_address): New function.
19040 2004-07-14  Jason Merrill  <jason@redhat.com>
19042         PR middle-end/15885
19043         * gimplify.c (gimplify_arg): New fn, split out from...
19044         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
19046 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
19048         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
19049         generate code which is generated by pushqi1 now
19050         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
19052 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
19054         * combine.c (simplify_set): match the mode of the constant 0 with
19055         the tested operand to match the compare behaviour and the
19056         simplify_relational_operation() expectation.
19058 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
19060         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
19061         ("bordered"): Same.
19063 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
19065         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
19066         unconditionally.
19067         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
19069 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
19071         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
19072         calls in mips16 code.
19074 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
19076         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
19077         the destination of the li as well as for the neg.
19079 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
19081         g++/15861
19082         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
19083         * cgraph.h: Update declaration.
19084         * c-decl.c (build_cdtor): Update call with default priority.
19085         * coverage.c (create_coverage): Ditto.
19086         * tree-mudflap.c (mf_init_fndecl): New tree.
19087         (mudflap_init): Set it.
19088         (mudflap_register_call): Arrange to call __mf_init before the first
19089         __mf_register call.
19090         (mudflap_finish_file): Mark the mudflap static initializer as extra
19091         high priority, to beat all C++ static constructors.
19093 2004-07-15  Jeff Law  <law@redhat.com>
19095         * loop.c (check_insn_for_givs): Restore check for code labels that was
19096         accidentally deleted by a recent checkin.
19098 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
19100         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
19101         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
19103 2004-07-14  Richard Henderson  <rth@redhat.com>
19105         * print-tree.c (print_node): Fix casts last change.
19107 2004-07-15  Paul Brook  <paul@codesourcery.com>
19109         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
19110         to TARGET_UNWIND_INFO.
19111         * except.c (output_function_exception_table): Ditto.
19112         * except.h: Ditto.
19113         * opts.c (decode_options): Ditto.
19114         * passes.c (rest_of_handle_final): Ditto.
19115         * final.c (final_start_function): Ditto.
19116         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
19117         target hook.
19118         * targhooks.h (default_unwind_emit): Declare.
19119         * targhooks.c (default_unwind_emit): New function.
19120         * target-def.h: Define and use TARGET_UNWIND_EMIT.
19121         * target.h (struct gcc_target): Add unwind_emit.
19122         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
19123         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
19124         Remove IA64_UNWIND_EMIT.
19125         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
19127 2004-07-14  Richard Henderson  <rth@redhat.com>
19129         * print-tree.c (print_node): Handle SSA_NAME.
19131 2004-07-14  James E Wilson  <wilson@specifixinc.com>
19133         PR target/16325
19134         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
19135         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
19137 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
19139         * expr.c (expand_assignment): Reenable bitfield += optimizations.
19140         Use alias set 0 for memory, do proper mode calculations and adjust
19141         address for memories.
19143 2004-07-14  Per Bothner  <per@bothner.com>
19145         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
19146         structure with extra column field.
19147         * tree.c (expand_location):  Also fill in column field.
19148         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
19149         gets confused by the two conditionally-compiled definitions.
19151 2004-07-14  Eric Christopher  <echristo@redhat.com>
19153         * calls.c (expand_call): Fix typo in comment.
19155 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
19157         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
19158         comparision of TFmode.
19160 2004-07-14  Richard Henderson  <rth@redhat.com>
19162         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
19163         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
19164         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
19165         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
19166         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
19167         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
19168         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
19169         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
19170         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
19172 2004-07-14  Mike Stump  <mrs@apple.com>
19174         * config/darwin.h (WINT_TYPE): Define to be int to match
19175         system header files.
19177 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
19179         * config/xtensa/xtensa.c (function_arg_advance): Check for args
19180         that must be passed in the stack.
19181         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
19182         arguments if the size is not a constant.
19184 2004-07-14  Per Bothner  <per@bothner.com>
19186         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
19187         instead of EXPR_LOCUS in a boolean context, which is always true
19188         if --enable-mapped-location.
19189         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
19191 2004-07-14  Richard Henderson  <rth@redhat.com>
19193         * dominance.c (struct dom_info): Add fake_exit_edge.
19194         (init_dom_info): Allocate it.
19195         (free_dom_info): Free it.
19196         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
19197         in two passes.
19198         (calc_idoms): Honor fake_exit_edge.
19200 2004-07-13  Jason Merrill  <jason@redhat.com>
19202         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
19203         (rhs_test_for): New fn.
19204         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
19205         * tree-gimple.h: Declare them.
19206         * gimplify.c (gimplify_modify_expr): Use the new fns.
19208 2004-07-14  Richard Henderson  <rth@redhat.com>
19210         * config/arm/arm-protos.h (arm_va_arg): Remove.
19211         * config/arm/arm.c (arm_va_arg): Remove.
19212         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
19213         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
19215 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19217         * pa.c (fix_range): New function to mark a range(s) of registers as
19218         fixed registers.
19219         (override_options): Call fix_range if the -mfixed-range option string
19220         is not empty.
19221         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
19222         * doc/invoke.texi (-mfixed-range): Document new option.
19224 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
19226         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
19227         for TARGET_64BIT.
19228         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
19230 2004-07-14  Roger Sayle  <roger@eyesopen.com>
19232         * expmed.c (expand_sdiv_pow2): New function to expand signed division
19233         by a positive power of two, split out from expand_divmod.  Provide
19234         an alternate implementation when shifts are expensive.  Lower the
19235         threshold for using a branchless implementation to BRANCH_COST >= 2.
19236         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
19238 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
19240         * tree-dfa.c (make_rename_temp): *Really* work just
19241         like create_tmp_var if called while outside SSA form.
19243 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
19245         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
19246         for division by zero.
19247         ("umodsi3"): Likewise.
19249 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
19251         * config/mips/mips.c (mips_output_move): When generating mips16 code,
19252         force loads of negative constants to be split.
19253         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
19254         Generalize SImode li/neg splitter to cope with other modes.
19256 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
19258         * expmed.c: Remove more references to QUEUED in the comments.
19259         * expr.c: Likewise.
19261 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
19263         Revert:
19264         2004-07-13  Richard Henderson  <rth@redhat.com>
19265         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
19266         correctly.
19268 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
19270         * tree-dfa.c (make_rename_temp): Work just like
19271         create_tmp_var if called while outside SSA form.
19273 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
19275         * expr.c (enqueue_insn, finish_expr_for_function,
19276         protect_from_queue, queued_subexp_p, mark_queue,
19277         emit_insns_enqueued_after_mark, emit_queue,
19278         expand_increment): Remove.
19279         (store_constructor): Expand increment as an assignment.
19280         (expand_expr_real_1 <case PREINCREMENT_EXPR,
19281         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
19282         case POSTDECREMENT_EXPR>): Abort.
19283         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
19284         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
19285         protect_from_queue, emit_queue, queued_subexp_p): Remove.
19286         * function.h (pending_chain, x_pending_chain): Remove.
19287         * rtl.def (QUEUED): Remove.
19289         * emit-rtl.c (copy_insn_1, copy_most_rtx,
19290         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
19291         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
19292         encode_units_mask): Likewise.
19293         * local-alloc.c (equiv_init_varies_p): Likewise.
19294         * rtl.c (copy_rtx): Likewise.
19295         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
19296         * simplify-rtx.c (simplify_gen_subreg): Likewise.
19297         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
19299         * builtins.c (expand_builtin, expand_builtin_apply,
19300         expand_builtin_mathfn, expand_builtin_mathfn_2,
19301         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
19302         Remove calls to emit_queue and protect_from_queue.
19303         * calls.c (expand_call, precompute_arguments,
19304         precompute_register_parameters, rtx_for_function_call,
19305         store_one_arg): Likewise.
19306         * dojump.c (do_compare_and_jump, do_jump): Likewise.
19307         * explow.c (memory_address): Likewise.
19308         * expmed.c (clear_by_pieces_1, clear_storage,
19309         clear_storage_via_libcall, emit_group_load,
19310         emit_group_store, emit_store_flag,
19311         expand_expr_real_1, store_by_pieces,
19312         store_constructor, store_expr, try_casesi,
19313         try_tablejump): Likewise.
19314         * function.c (expand_pending_sizes): Likewise.
19315         * optabs.c (emit_cmp_and_jump_insns,
19316         emit_conditional_add, emit_conditional_move,
19317         expand_fix, expand_float, prepare_cmp_insn): Likewise.
19318         * stmt.c (emit_case_bit_tests,
19319         expand_asm_expr, expand_computed_goto,
19320         expand_decl_init, expand_end_case_type,
19321         expand_end_stmt_expr, expand_expr_stmt_value,
19322         expand_return, expand_start_case,
19323         optimize_tail_recursion): Likewise.
19324         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
19325         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
19327 2004-07-14  Ben Elliston  <bje@au.ibm.com>
19329         * vec.h: Comment fix.
19331 2004-07-13  Richard Henderson  <rth@redhat.com>
19333         * target.h (struct gcc_target): Add calls.pass_by_reference.
19334         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
19335         * function.c (pass_by_reference): Use the hook.
19336         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
19337         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
19338         (hook_pass_by_reference_must_pass_in_stack): New.
19339         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
19340         (alpha_pass_by_reference): New.
19341         (TARGET_PASS_BY_REFERENCE): New.
19342         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19343         * config/arc/arc.c (arc_pass_by_reference): New.
19344         (TARGET_PASS_BY_REFERENCE): New.
19345         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19346         (FUNCTION_ARG_CALLEE_COPIES): True.
19347         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
19348         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
19349         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
19350         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19351         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19352         * config/cris/cris.c (cris_pass_by_reference): New.
19353         (TARGET_PASS_BY_REFERENCE): New.
19354         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
19355         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
19356         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19357         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
19358         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19359         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
19360         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
19361         (frv_function_arg_pass_by_reference): Remove.
19362         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19363         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
19364         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
19365         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
19366         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19367         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
19368         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
19369         (ia64_pass_by_reference): Rename from
19370         ia64_function_arg_pass_by_reference.
19371         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19372         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19373         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
19374         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
19375         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
19376         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19377         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
19378         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
19379         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
19380         (m32r_pass_by_reference): Adjust prototype.  Make static.
19381         Handle mode sizes correctly.
19382         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19383         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
19384         (m68hc11_function_arg_pass_by_reference): Remove.
19385         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19386         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
19387         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
19388         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19389         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
19390         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
19391         (mips_va_arg): Use pass_by_reference.
19392         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
19393         Handle mode sizes correctly.
19394         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19395         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
19396         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
19397         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
19398         (mmix_pass_by_reference): Rename from
19399         mmix_function_arg_pass_by_reference.
19400         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19401         (FUNCTION_ARG_CALLEE_COPIES): True.
19402         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
19403         (mn10300_pass_by_reference): New.
19404         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19405         (FUNCTION_ARG_CALLEE_COPIES): True.
19406         * config/pa/pa.c (pa_pass_by_reference): New.
19407         (TARGET_PASS_BY_REFERENCE): New.
19408         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19409         (FUNCTION_ARG_CALLEE_COPIES): True.
19410         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
19411         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
19412         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
19413         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19414         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
19415         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
19416         (s390_pass_by_reference): Rename from
19417         s390_function_arg_pass_by_reference.
19418         (s390_function_arg_advance): Don't query pass-by-ref.
19419         (s390_function_arg): Likewise.
19420         (s390_gimplify_va_arg): Use pass_by_reference.
19421         (s390_call_saved_register_used): Likewise.
19422         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19423         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
19424         (shcompact_byref, sh_pass_by_reference): New.
19425         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19426         (SHCOMPACT_BYREF): Remove.
19427         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
19428         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
19429         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
19430         (sparc_gimplify_va_arg): Use pass_by_reference.
19431         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19432         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19433         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
19434         (v850_pass_by_reference): New.
19435         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19436         (FUNCTION_ARG_CALLEE_COPIES): True.
19437         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
19438         FUNCTION_ARG_PASS_BY_REFERENCE docs.
19440 2004-07-14  Richard Henderson  <rth@redhat.com>
19441             Richard Sandiford  <rsandifo@redhat.com>
19443         * config/mips/mips-protos.h (mips_va_arg): Delete.
19444         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
19445         * config/mips/mips.c: Include tree-gimple.h.
19446         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19447         (mips_arg_info): Remove special handling of must_pass_in_stck args.
19448         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
19449         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
19451 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
19453         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
19454         arguments for COND_EXPR in big-endian adjustment code.
19456 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19458         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
19459         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
19460         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
19461         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
19463 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
19465         PR tree-optimization/16443
19466         * tree-ssa-alias.c: Add more description for
19467         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
19468         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
19469         clobbering of call-clobbered and addressable variables.  If
19470         there are any before aliases have been computed, add them.
19472 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
19474         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
19475         verification.
19477 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
19479         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
19480         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
19481         to the same type.
19483 2004-07-13  Per Bothner  <per@bothner.com>
19485         * collect2.c (main):  Handle --no-demangle and --demangle flags.
19487 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
19489         * Makefile.in (OBJS-common): Add tree-data-ref.o.
19490         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
19491         (tree-data-ref.o): New rule.
19492         * lambda.h: New file.
19493         * tree-data-ref.c: New file.
19494         * tree-data-ref.h: New file.
19495         * tree.c (int_cst_value, tree_fold_gcd): New functions.
19496         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
19498 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
19500         PR target/13926
19501         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
19502         * config/sparc/sparc.c (output_ubranch): New function.
19503         * config/sparc/sparc.md (jump pattern): Use it.
19505 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
19507         PR target/16494
19508         * config/sparc/sparc.c (output_cbranch): Properly guard
19509         the code handling far branches with TARGET_V9.
19510         * config/sparc/sparc.md (length attribute): Document the
19511         side-effect of having a length greater or equal to 3.
19513 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
19514             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
19516         PR target/15186
19517         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
19518         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
19520 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
19521             Martin Sebor  <sebor@roguewave.com>
19523         PR target/12602
19524         * doc/invoke.texi (SPARC options): Document -threads
19525         and -pthreads on Solaris.
19527 2004-07-13  Richard Henderson  <rth@redhat.com>
19529         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
19530         by reference.
19531         (ind_gimplify_va_arg_expr): Remove.
19532         * tree.h (ind_gimplify_va_arg_expr): Remove.
19533         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
19534         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
19535         argsp to be null.
19537         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
19538         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
19539         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
19540         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
19541         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
19543 2004-07-13  Richard Henderson  <rth@redhat.com>
19545         * function.c (pass_by_reference): New.
19546         (assign_parm_find_data_types): Use it.
19547         * calls.c (initialize_argument_information): Likewise.
19548         (emit_library_call_value_1): Likewise.
19549         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
19550         * function.h (pass_by_reference): Declare.
19552 2004-07-13  Richard Henderson  <rth@redhat.com>
19554         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
19555         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
19556         * expr.h (MUST_PASS_IN_STACK): Remove.
19557         * system.h (MUST_PASS_IN_STACK): Poison.
19558         * tree.h (must_pass_in_stack_var_size): Declare.
19559         (must_pass_in_stack_var_size_or_pad): Declare.
19560         * calls.c (must_pass_in_stack_var_size): New.
19561         (must_pass_in_stack_var_size_or_pad): Rename from
19562         default_must_pass_in_stack.
19563         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
19564         (TARGET_MUST_PASS_IN_STACK): New.
19565         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
19566         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
19567         (TARGET_MUST_PASS_IN_STACK): New.
19568         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
19569         * config/frv/frv.c (frv_must_pass_in_stack): New.
19570         (TARGET_MUST_PASS_IN_STACK): New.
19571         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
19572         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
19573         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
19574         (ix86_must_pass_in_stack): Make static.
19575         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
19576         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
19577         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
19578         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
19579         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
19580         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
19581         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
19582         (mcore_must_pass_on_stack): Remove.
19583         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
19584         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
19585         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
19586         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
19587         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
19588         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
19589         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
19590         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
19591         (TARGET_MUST_PASS_IN_STACK): New.
19592         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
19593         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
19594         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
19595         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
19596         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
19597         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
19598         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
19599         MUST_PASS_IN_STACK.
19601         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
19602         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
19603         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
19604         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
19605         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
19606         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
19607         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
19608         config/xtensa/xtensa.c: Use target hook.
19610 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
19612         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
19613         * configure: Rebuilt.
19615 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
19617         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
19618         * config/mips/mips.h (mips_reg_names): Don't declare.
19619         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
19620         (TARGET_NAME_REGS): Delete.
19621         (TARGET_SWITCHES): Remove -mrnames.
19622         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
19623         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
19624         in REGISTER_NAMES.
19625         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
19626         (override_options): Remove handling of TARGET_NAME_REGS.
19628 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
19630         * config/mips/mips.h (TARGET_*): Boolify.
19632 2004-07-12  Nick Clifton  <nickc@redhat.com>
19634         * config.gcc: Add sh-*-symbianelf target.
19635         * config/sh/sh.c: Add new target macros:
19636         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
19637         TARGET_CXX_IMPORT_EXPORT_CLASS.
19638         (sh_file_start): Create a definition of the .directive section.
19639         (sh_attribute): Add dllimport and dllexport attributes.
19640         * config/sh/symbian-pre.h: New file.
19641         * config/sh/symbian-post.h: New file.
19642         * config/sh/symbian.c: New file. Contains Symbian specific
19643         functions.
19644         * config/sh/sh-protos.h: Add prototypes for new functions
19645         provided by symbian.c.
19646         * config/sh/t-symbian: New file.
19647         * doc/extend.texi: Document support for dllimport and dllexport
19648         attributes by the sh-symbianelf target.
19650 2004-07-12  James E Wilson  <wilson@specifixinc.com>
19652         * Makefile.in (AR): Use @AR@ not ar.
19653         (NM): New.
19654         (AR_FOR_TARGET): Use $(AR) not ar for native.
19655         (NM_FOR_TARGET): Use $(NM) not nm for native.
19656         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
19657         * configure: Regenerate.
19659 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
19661         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
19662         special case.
19663         (ashldi3_sp64): Likewise.
19665 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19667         PR target/16477
19668         * pa.c (function_arg): Update comment.
19669         * pa.h (BLOCK_REG_PADDING): Define.
19671 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19673         PR tree-optimization/16461
19674         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
19675         arguments of phi nodes.
19677 2004-07-12  Devang Patel  <dpatel@apple.com>
19679         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
19681 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
19683         * function.c (expand_function_start): Ensure r_save is in Pmode.
19684         * calls.c (prepare_call_address): Ensure static_chain_value is
19685         in Pmode.
19686         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
19687         r_save_area are in Pmode.
19688         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
19689         fnaddr, and static_chain are in Pmode.
19691 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
19693         PR target/16445
19694         * config/ia64/ia64.c (bundling): Don't count ignored insns.
19696 2004-07-12  Richard Henderson  <rth@redhat.com>
19698         * target.h (struct gcc_target): Move gimplify_va_arg_expr
19699         next to build_builtin_va_list.
19700         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
19701         * builtins.c (gimplify_va_arg_expr): Likewise.
19702         * gimplify.c (copy_if_shared_r): Likewise.
19704 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
19706         * passes.c (rest_of_decl_compilation): Don't defer call of
19707         assemble_variable if its DECL_RTL is already set.
19709 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
19711         * cfgloop.h (struct loop): Add nb_iterations field.
19712         (current_loops): Declare.
19713         * tree-chrec.c (chrec_not_analyzed_yet,
19714         chrec_dont_know, chrec_known, count_ev_in_wider_type,
19715         chrec_contains_symbols_defined_in_loop): Remove the temporary
19716         hooks.
19717         * tree-flow-inline.h (loop_containing_stmt): New function.
19718         * tree-scalar-evolution.c: Add implementation.
19719         * tree-scalar-evolution.h: Add declarations.
19721 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
19723         PR rtl-optimization/15921
19724         * Makefile.in (global.o): Add recog.h.
19726         * global.c (recog.h): Add the include-clause.
19727         (bb_info): New member earlyclobber.
19728         (allocate_bb_info, free_bb_info): Initialize/finish the new
19729         member.
19730         (earlyclobber_regclass, earlyclobber_regclass_length): The new
19731         global variables.
19732         (check_earlyclobber, regclass_intersect,
19733         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
19734         New functions.
19735         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
19736         (make_accurate_live_analysis): Modify pavin.
19738 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
19740         * tree-cfg.c (find_taken_edge): Statically compute the truth
19741         value of a predicate comparing an SSA_NAME to itself.
19743 2004-07-12  Roger Sayle  <roger@eyesopen.com>
19745         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
19746         rs6000 doesn't have shift-and-add or shift-and-sub instructions
19747         by returning the cost of a multiplication plus an addition.
19749 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
19751         PR tree-optimization/14107
19752         * gimplify.c (gimplify_return_expr): Accept a
19753         RETURN_EXPR with an error argument.
19754         * tree-optimize.c (init_tree_optimization_passes):
19755         Run pass_warn_function_return at -O0.
19757 2004-07-12  Roger Sayle  <roger@eyesopen.com>
19759         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
19760         index entry.
19762 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
19764         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
19765         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
19766         * config/mips/3000.md: Add copyright notice.  Remove automota and
19767         function units; use generic ones instead.  Only define reservations
19768         for things that are different from generic.md.  Extend each clause
19769         to include r3900.
19770         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
19771         * config/mips/mips.md: Include them. Remove define_function_units.
19772         (alu, imuldiv): New automata and units.
19774 2004-07-12  Ben Elliston  <bje@au.ibm.com>
19776         * doc/invoke.texi (Optimize Options): Document -frename-registers
19777         not being enabled by default at -O3.
19779 2004-07-11  Roger Sayle  <roger@eyesopen.com>
19781         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
19782         floating point additions, to keep real immediate constant positive.
19783         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
19784         into X + C, and leave positive real constants as X - C.
19786 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19788         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
19790 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19792         PR tree-optimization/15654
19793         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
19795 2004-07-11  Roger Sayle  <roger@eyesopen.com>
19797         * builtins.c (fold_builtin_fputs): Don't bother converting the
19798         return type to integer_type_node, as we've already checked that
19799         the result will be ignored.
19801         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
19802         that signed addition, subtraction, multiplication, division,
19803         remainder, negation and absolute value may potentially trap.
19805         * fold-const.c (fold_ignored_result): New function to strip
19806         non-side-effecting tree nodes from an expression whose result
19807         is ignored.
19808         (fold_convert): Call fold_ignored_result when casting a value
19809         to VOID_TYPE.
19810         (omit_one_operand):  Call fold_ignored_result on the "omitted"
19811         operand when building a COMPOUND_EXPR.
19812         (pedantic_omit_one_operand): Likewise.
19813         * tree.h (fold_ignored_result): Prototype here.
19814         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
19815         when we're going to ignore the result.
19817 2004-07-11  Richard Henderson  <rth@redhat.com>
19819         PR tree-opt/16383
19820         * tree-ssa-ccp.c (fold_stmt_r): Split out...
19821         * tree.c (fields_compatible_p, find_compatible_field): ... new.
19822         * tree.h (fields_compatible_p, find_compatible_field): Declare.
19823         * tree-sra.c (sra_hash_tree): Hash fields by offset.
19824         (sra_elt_eq): Use fields_compatible_p.
19825         (generate_one_element_ref): Use find_compatible_field.
19827 2004-07-11  Richard Henderson  <rth@redhat.com>
19829         PR tree-opt/16422
19830         * tree-sra.c (generate_one_element_init): New.
19831         (generate_element_init): Use it.
19832         (scalarize_init): Push/pop gimplify context around it.
19833         (find_new_referenced_vars_1, find_new_referenced_vars): New.
19834         * gimplify.c (gimplify_expr): Allow SSA_NAME.
19836 2004-07-11  Roger Sayle  <roger@eyesopen.com>
19838         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
19839         combine.c's combine_insn_cost.
19840         * rtl.h (insn_rtx_cost): Prototype here.
19841         * combine.c (combine_insn_cost): Delete function.
19842         (combine_validate_cost): Update callers of combine_insn_cost to
19843         call insn_rtx_cost instead.
19844         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
19845         requesting the rtx_cost of call and/or jump instructions.
19847         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
19848         rtx_cost directly.  Don't request/use the cost of call or jump
19849         instructions.  Return -1 if the cost of any instruction can't be
19850         determined (or the BB contains a function call).
19851         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
19852         -1 (i.e. can't determine the cost of any instruction or the basic
19853         block contains a subroutine call).
19854         (find_if_case_2): Likewise.
19856 2004-07-11  Roger Sayle  <roger@eyesopen.com>
19858         * rs6000.c (struct processor_costs): Change semantics of fields to
19859         include the COST_N_INSNS scaling, and update all initializers.
19860         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
19861         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
19862         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
19863         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
19865 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
19867         * LANGUAGES: Remove obsolete information.
19869 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
19871         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
19872         SIGBUS signal frames, the PSW address points *to* the faulting
19873         instruction, not after it.
19875 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
19877         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
19878         added to TLS symbol addresses.
19880 2004-07-11  Richard Henderson  <rth@redhat.com>
19882         * expmed.c (init_expmed): Use stack-local structures for
19883         temporary rtl.  Don't recognize shifts.
19885 2004-07-11  Richard Henderson  <rth@redhat.com>
19887         * expr.c (store_expr): Don't fiddle subreg promotion for types
19888         with precision smaller than the mode.
19890 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
19892         * tree.h (all_types_permanent): Remove.
19894 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
19896         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
19897         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
19898         * langhooks.c (lhd_clear_binding_stack): Remove.
19899         * langhooks-def.h (lhd_clear_binding_stack,
19900         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
19901         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
19902         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
19903         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
19904         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
19905         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
19906         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
19907         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
19908         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
19909         * tree.h (poplevel): Don't declare.
19910         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
19911         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
19912         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
19913         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
19914         Remove.
19916 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
19918         PR tree-optimization/16437
19919         * c-common.c (shorten_compare): Don't mark result of conversion to
19920         narrower signed type as overflowing.
19921         * fold-const.c (decode_field_reference): Determine whether
19922         signedness comes from outer type using precision rather than size.
19924 2004-07-11  Phil Edwards  <phil@codesourcery.com>
19926         * configure.ac:  Alphabetize --enable-checking list, add
19927         missing valgrind entry.
19928         * configure:  Regenerate.
19930 2004-07-11  Phil Edwards  <phil@codesourcery.com>
19932         * doc/install.texi (Testing):  Fix syntax in "make check" example.
19934 2004-07-10  James E Wilson  <wilson@specifixinc.com>
19936         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
19938 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19940         PR rtl-optimization/16001
19941         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
19942         niter_expr.
19944 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
19946         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
19948 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
19949             James Morrison  <phython@gcc.gnu.org>
19951         * doc/contrib.texi (Contributors): Add gfortran contributors and
19952         fix a couple of typos.
19954 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19956         PR rtl-optimization/15387
19957         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
19958         to incoming args space correctly.
19960 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19962         * pa.c (output_indirect_call): Only use %r2 as the link register in
19963         indirect calls with the long PA 2.0 pc-relative branch.
19965 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
19967         * config/i386/i386.c (override_options): Pick a 64-bit CPU
19968         for the default tuning if TARGET_64BIT.
19970 2004-07-10  Richard Henderson  <rth@redhat.com>
19972         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
19973         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
19975 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
19977         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
19978         * expmed.c (store_bit_field, extract_bit_field): Remove last
19979         argument.
19980         * builtins.c (expand_builtin_signbit): Adjust callers.
19981         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
19982         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
19983         * ifcvt.c (noce_emit_move_insn): Likewise.
19984         * stmt.c (expand_return): Likewise.
19985         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
19986         store_field, expand_expr_real_1): Likewise.
19988 2004-07-10  Richard Henderson  <rth@redhat.com>
19990         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
19992 2004-07-09  Mike Stump  <mrs@apple.com>
19994         * config/darwin.c (no_dead_strip): Add.
19995         (HAVE_DEAD_STRIP): Add.
19996         (darwin_emit_unwind_label): Ensure that we don't dead code strip
19997         the .eh label.
19999 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20001         * tree-ssa-loop-im.c: New file.
20002         * Makefile.in (tree-ssa-loop-im.o): Add.
20003         * cfgloop.c (superloop_at_depth): New function.
20004         * cfgloop.h (superloop_at_depth): Declare.
20005         * common.opt (ftree-lim): New flag.
20006         * expr.c (array_ref_up_bound): New function.
20007         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
20008         * timevar.def (TV_LIM): New timevar.
20009         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
20010         computing immediate uses of a phi node.
20011         * tree-flow.h (struct tree_ann_common_d): Add aux field.
20012         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
20013         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
20014         * tree-pass.h (pass_lim): Declare.
20015         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
20016         functions.
20017         (pass_lim): New pass structure.
20018         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
20019         * tree.c (in_array_bounds_p): New function.
20020         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
20021         (in_array_bounds_p, array_ref_up_bound): Declare.
20022         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
20023         * doc/passes.texi (tree-ssa-loop-im.c): Document.
20025 2004-07-09  Richard Henderson  <rth@redhat.com>
20027         * builtins.c (expand_builtin_stpcpy): Don't modify len.
20029         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
20030         with prejudice.
20032 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
20034         * flags.h: Delete redundant prototypes that are being generated
20035         in options.h from common.opt.
20036         * common.opt: Add in the expository comments formerly in flags.h.
20038 2004-07-09  Jan Beulich  <jbeulich@novell.com>
20040         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
20041         available for use only when TARGET_MMX/_SSE is set, and check for
20042         variable argument function if any register count is non-zero.
20043         (function_arg): Correctly suppress repeated warnings for passing SSE
20044         vectors are arguments without SSE enabled.
20045         (ix86_function_arg_boundary): Without SSE enabled, the use of what
20046         would be SSE register modes does no longer influence the alignment.
20048 2004-07-09  Richard Henderson  <rth@redhat.com>
20050         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
20051         Always align upward to arg boundary.  Use size_in_bytes/round_up.
20052         Maintain type-correctness of constants.
20053         * stor-layout.c (round_up, round_down): Special-case powers of 2.
20055 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
20057         * config/sparc/sparc.c (*_costs): Scale instruction costs
20058         by COSTS_N_INSNS.
20059         (sparc_rtx_costs): Adjust as appropriate.
20061 2004-07-09  Jan Beulich  <jbeulich@novell.com>
20063         * config/i386/mm3dnow.h: New.
20064         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
20066 2004-07-09  Richard Henderson  <rth@redhat.com>
20068         * simplify-rtx.c (simplify_const_relational_operation): Only
20069         look at bounds of scalar integers.
20071 2004-07-09  Jan Beulich  <jbeulich@novell.com>
20073         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
20075 2004-07-09  Andrew Pinski  <apinski@apple.com>
20077         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
20078         always referenced.
20079         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
20080         UOBJC_METACLASS_decl.
20082 2004-07-09  James E Wilson  <wilson@specifixinc.com>
20084         PR target/16364
20085         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
20086         do return a parallel if hfa_mode == XFmode and mode == TImode.
20088 2004-07-09  Jan Beulich  <jbeulich@novell.com>
20090         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
20091         permissible for unary plus.
20093 2004-07-09  Jan Beulich  <jbeulich@novell.com>
20095         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
20096         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
20097         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
20098         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
20099         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
20100         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
20101         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
20102         (BUILTIN_xxxIMAX): New.
20103         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
20104         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
20105         BUILT_IN_PARITYIMAX.
20107 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
20109         * config/sparc/sparc.h (processor_costs): Define.
20110         (sparc_costs): Declare.
20111         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
20112         hypersparc_costs, sparclet_costs, ultrasparc_costs,
20113         ultrasparc3_costs): New.
20114         (sparc_override_options): Set sparc_costs as appropriate.
20115         (sparc_rtx_costs): Use sparc_costs instead of messy
20116         conditionals.
20118 2004-07-09  Steven Bosscher  <stevenb@suse.de>
20120         * doc/md.texi (Processor pipeline description): Mention that
20121         the old pipeline description is deprecated.
20123         * config/rs6000/7450.md (automaton ppc7450): Split up, move
20124         mciu_7450 function unit to...
20125         (automaton ppc7450mciu): ...new automaton.
20127         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
20128         (schedule_block): Don't consider inserting bubbles.
20129         (sched_init): Don't initialize DFA bubbles.
20130         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
20131         TARGET_SCHED_DFA_BUBBLE): Remove.
20132         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
20133         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
20134         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
20136         * stmt.c (conditional_context): Remove prototype.
20137         * tree.h (conditional_context): Remove.
20138         * tree-cfg.c (pre_insert_on_edge): Remove.
20140         * c-common.h (c_expand_asm_operands): Remove prototype.
20141         * c-typeck.c (c_expand_asm_operands): Remove.
20143 2004-07-09  Jan Beulich  <jbeulich@novell.com>
20145         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
20146         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
20147         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
20148         and V8QI are class SSE. All sufficiently small remaining vector modes
20149         must be passed in one or two integer registers.
20150         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
20151         returned in memory.
20152         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
20153         __builtin_ia32_pmuludq128 have non-uniform argument and return types
20154         and must thus be handled explicitly.
20155         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
20156         MMX and XMM regs.
20157         (movv8qi_internal, movv4hi_internal, movv2si_internal,
20158         movv2sf_internal): Permit moving between MMX and XMM registers (since
20159         MMX areguments and return values are passed in XMM registers).
20160         (sse2_umulsidi3): Correct type and mode.
20162 2004-07-09  Richard Henderson  <rth@redhat.com>
20164         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
20166 2004-07-09  Eric Christopher  <echristo@redhat.com>
20168         * config/rs6000/40x.md: Split into two automatons.
20170 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
20171             Andrew Pinski  <apinski@apple.com>
20173         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
20174         on when we have more than one input file.
20175         (c_common_parse_file): Restore loop over all input files.
20176         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
20178         * c-decl.c (set_type_context): New function.
20179         (pop_scope): Use it to set context of types.  When we
20180         encounter a TYPE_DECL, set the context of the attached type too.
20181         (pop_file_scope): Don't call cpp_undef_all here.
20182         (diagnose_mismatched_decls): Do not complain about a second
20183         definition of an 'extern inline' function if it's not in the
20184         same translation unit.  Do not complain about inline
20185         declaration after use if the use was in a different
20186         translation unit.
20187         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
20188         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
20189         the external scope.
20190         (pushdecl_top_level): Likewise.
20191         (grokdeclarator): Clarify what is going on with setting
20192         DECL_EXTERNAL on function types, a little.
20193         (c_write_global_declarations): Don't do anything if
20194         -fsyntax-only or errors have been encountered.
20196 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
20198         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
20200 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20202         PR target/16459
20203         * pa.c (output_indirect_call): Use %r2 as the link register when
20204         calling $$dyncall with a pc-relative branch.
20206 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
20208         * doc/install.texi (Binaries): Mention OpenPKG.
20210 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
20212         Fix PR tree-optimization/15555
20213         * tree-dfa.c (dump_variable): If the variable is a pointer
20214         SSA_NAME, also dump its points-to information.
20215         * tree-flow.h (struct ptr_info_def): Add field
20216         is_dereferenced.
20217         (dump_points_to_info_for): Declare.
20218         (debug_points_to_info_for): Declare.
20219         * tree-optimize.c (init_tree_optimization_passes): Add a
20220         second alias analysis pass after DOM2.
20221         Move pass_del_pta to a later spot.
20222         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
20223         create a name tags when we find a dereferenced pointer.  Just
20224         mark the pointer dereferenced.
20225         (collect_points_to_info_for): Move code to clear points-to
20226         information to create_name_tags.
20227         (create_name_tags): New function.
20228         (compute_flow_sensitive_aliasing): Call it.
20229         (setup_pointers_and_addressables): Mark type tags for renaming
20230         here instead of ...
20231         (create_memory_tag): ... here.
20232         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
20233         (dump_points_to_info_for): Declare extern.
20234         (debug_points_to_info_for): New function.
20236 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
20238         * config/arc/arc.md: Switch to DFA-based scheduler description.
20239         * config/arc/arc.c: Switch to DFA-based scheduler description.
20241 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
20243         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
20244         pointer.
20246 2004-07-09  Richard Henderson  <rth@redhat.com>
20248         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
20249         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20250         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
20251         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
20253         * config/v850/v850-protos.h (v850_va_arg): Remove.
20254         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20255         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
20256         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
20257         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
20258         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
20260 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
20262         PR target/12133
20263         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
20264         and DImode to use +/-4k offset.
20266 2004-07-09  Richard Henderson  <rth@redhat.com>
20268         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
20269         Remove.
20270         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20271         (xstormy16_gimplify_va_arg_expr): Rewrite from
20272         xstormy16_expand_builtin_va_arg.
20273         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
20275         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
20276         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
20278         * config/sh/sh-protos.h (sh_va_arg): Remove.
20279         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20280         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
20281         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
20283         * config/pa/pa-protos.h (hppa_va_arg): Remove.
20284         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20285         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
20286         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
20288         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
20289         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20290         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
20291         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
20293 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
20295         * config/sparc/sparc.md (return): Rewrite length formula.
20296         * config/sparc/sparc.c (output_return): Pass 1 as 5th
20297         argument to final_scan_insn when in a delay slot.
20298         (output_sibcall): Likewise.
20300 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
20302         * arm.c (arm_cpp_interwork): New variable.
20303         (arm_override_options): Set it if TARGET_INTERWORK was on the command
20304         line.
20305         * arm.h (arm_cpp_interwork): Declare it.
20306         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
20307         __THUMB_INTERWORK__ in the preprocessor.
20309 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
20311         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
20313 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
20315         PR target/16416
20316         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
20317         Override default settings to account for -m32 and -m64.
20319 2004-07-08  Randolph Chung  <tausq@debian.org>
20321         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
20323 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
20325         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
20326         before comparing it as such.
20328 2004-07-08  Richard Henderson  <rth@redhat.com>
20330         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
20331         temporary.  Use bit arithmetic to align.
20333 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
20335         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
20336         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
20337         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
20338         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
20339         add_labels_and_missing_jumps, find_jump_block,
20340         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
20341         Likewise.
20342         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
20343         link_btr_uses, move_btr_def): Likewise.
20344         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
20345         expand_builtin_expect_jump): Likewise.
20346         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
20347         * calls.c (expand_call, emit_library_call_value_1): Likewise.
20348         * cfganal.c (forwarder_block_p): Likewise.
20349         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
20350         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
20351         find_bb_boundaries): Likewise.
20352         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
20353         merge_blocks_move_predecessor_nojumps,
20354         merge_blocks_move_successor_nojumps, insns_match_p,
20355         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
20356         try_optimize_cfg): Likewise.
20357         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
20358         * cfglayout.c (skip_insns_after_block, label_for_bb,
20359         record_effective_endpoints, insn_locators_initialize,
20360         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
20361         * cfgmainloop.c (create_loop_notes): Likewise.
20362         * cfgrtl.c (delete_insn, delete_insn_chain,
20363         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
20364         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
20365         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
20366         redirect_branch_edge, force_nonfallthru_and_redirect,
20367         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
20368         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
20369         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
20370         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
20371         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
20372         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
20373         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
20374         * combine.c (combine_instructions, can_combine_p, try_combine,
20375         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
20376         distribute_notes, distribute_links, insn_cuid): Likewise.
20377         * cse.c (fold_rtx, cse_insn, cse_around_loop,
20378         invalidate_skipped_block, cse_set_around_loop,
20379         cse_end_of_basic_block, cse_main, cse_basic_block,
20380         cse_condition_code_reg): Likewise.
20381         * cselib.c (cselib_process_insn): Likewise.
20382         * ddg.c (create_ddg): Likewise.
20383         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
20384         Likewise.
20385         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
20386         gen_label_die, dwarf2out_var_location): Likewise.
20387         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
20388         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
20389         last_call_insn, active_insn_p, next_label, prev_label,
20390         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
20391         add_insn_before, remove_insn, add_function_usage_to,
20392         reorder_insns, find_line_note, remove_unnecessary_notes,
20393         emit_insn_after_1, classify_insn): Likewise.
20394         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
20395         connect_post_landing_pads, sjlj_mark_call_sites,
20396         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
20397         can_throw_internal, can_throw_external, set_nothrow_function_flags,
20398         convert_to_eh_region_ranges): Likewise.
20399         * explow.c (optimize_save_area_alloca): Likewise.
20400         * expr.c (expand_expr_real): Likewise.
20401         * final.c (insn_current_reference_address, compute_alignments,
20402         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
20403         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
20404         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
20405         propagate_block_delete_insn, propagate_one_insn,
20406         init_propagate_block_info, propagate_block, libcall_dead_p,
20407         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
20408         Likewise.
20409         * function.c (instantiate_virtual_regs, reorder_blocks_1,
20410         expand_function_start, expand_function_end, contains,
20411         thread_prologue_and_epilogue_insns,
20412         reposition_prologue_and_epilogue_notes): Likewise.
20413         * gcse.c (constprop_register, bypass_conditional_jumps,
20414         insert_insn_end_bb, gcse_after_reload): Likewise.
20415         * genemit.c (gen_expand, gen_split): Likewise.
20416         * genpeep.c (gen_peephole, main): Likewise.
20417         * global.c (build_insn_chain): Likewise.
20418         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
20419         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
20420         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
20421         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
20422         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
20423         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
20424         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
20425         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
20426         dead_or_predicable): Likewise.
20427         * integrate.c (try_constants): Likewise.
20428         * jump.c (rebuild_jump_labels, cleanup_barriers,
20429         purge_line_number_notes, init_label_info, mark_all_labels,
20430         squeeze_notes, get_label_before, get_label_after,
20431         reversed_comparison_code_parts, simplejump_p, pc_set,
20432         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
20433         delete_barrier, delete_prior_computation, delete_computation,
20434         delete_related_insns, delete_for_peephole, redirect_jump):
20435         Likewise.
20436         * lcm.c (optimize_mode_switching): Likewise.
20437         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
20438         Likewise.
20439         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
20440         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
20441         * loop-iv.c (simplify_using_assignment): Likewise.
20442         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
20443         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
20444         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
20445         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
20446         check_insn_for_givs, check_final_value, update_giv_derive,
20447         basic_induction_var, product_cheap_p, check_dbra_loop,
20448         loop_insn_first_p, last_use_this_basic_block,
20449         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
20450         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
20451         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
20452         sms_schedule_by_order): Likewise.
20453         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
20454         * postreload.c (reload_cse_simplify_operands, reload_combine,
20455         reload_cse_move2add): Likewise.
20456         * predict.c (can_predict_insn_p, estimate_probability,
20457         expected_value_to_br_prob, process_note_predictions): Likewise.
20458         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
20459         * profile.c (branch_prob): Likewise.
20460         * ra-build.c (live_out_1, livethrough_conflicts_bb,
20461         detect_webs_set_in_cond_jump): Likewise.
20462         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
20463         ra_print_rtl_with_bb): Likewise.
20464         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
20465         * recog.c (next_insn_tests_no_inequality, find_single_use,
20466         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
20467         * reg-stack.c (next_flags_user, record_label_references,
20468         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
20469         compensate_edge, convert_regs_1): Likewise.
20470         * regclass.c (scan_one_insn): Likewise.
20471         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
20472         regmove_optimize, fixup_match_1, single_set_for_csa,
20473         combine_stack_adjustments_for_block): Likewise.
20474         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
20475         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
20476         find_equiv_reg): Likewise.
20477         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
20478         reload_as_needed, emit_input_reload_insns, do_output_reload,
20479         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
20480         Likewise.
20481         * reorg.c (find_end_label, emit_delay_sequence,
20482         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
20483         get_jump_flags, rare_destination, mostly_true_jump,
20484         try_merge_delay_insns, redundant_insn, own_thread_p,
20485         fill_simple_delay_slots, fill_slots_from_thread,
20486         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
20487         dbr_schedule): Likewise.
20488         * resource.c (find_basic_block, next_insn_no_annul,
20489         find_dead_or_set_registers, mark_target_live_regs): Likewise.
20490         * rtl.h (RTX_PREV): Likewise.
20491         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
20492         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
20493         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
20494         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
20495         tablejump_p, computed_jump_p, insns_safe_to_move_p,
20496         find_first_parameter_load, can_hoist_insn_p): Likewise.
20497         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
20498         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
20499         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
20500         schedule_ebbs): Likewise.
20501         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
20502         is_conditionally_protected, can_schedule_ready_p,
20503         add_branch_dependences, debug_dependencies): Likewise.
20504         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
20505         Likewise.
20506         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
20507         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
20508         set_dominates_use, ujump_to_loop_cont): Likewise.
20509         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
20510         * varasm.c (output_constant_pool_1): Likewise.
20512 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
20514         * tree-scalar-evolution.c: New file.
20515         * tree-scalar-evolution.h: New file.
20516         * tree-ssa-loop-niter.c: New file.
20517         * Makefile.in (SCEV_H): New.
20518         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
20519         * cfgloop.h (struct loop): Add bounds field.
20520         * tree-flow.h (struct tree_niter_desc): New type.
20521         (number_of_iterations_cond, number_of_iterations_exit,
20522         loop_niter_by_eval, find_loop_niter_by_eval,
20523         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
20524         free_numbers_of_iterations_estimates): Declare.
20525         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
20526         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
20527         * doc/invoke.texi (max-iterations-to-track): Document.
20529 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
20531         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
20532         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
20533         (MODE_AFTER): Add cast appropriately.
20534         * config/sh/sh.md (movdi splitter): Likewise.
20535         (casesi_worker_2): Add const qualifier appropriately.
20536         (eh_return): Remove unused variable.
20537         (insv): Initialize v;
20539 2004-07-08  Richard Henderson  <rth@redhat.com>
20541         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
20542         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20543         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
20544         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
20545         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
20547         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
20548         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20549         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
20550         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
20552         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
20553         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20554         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
20555         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
20557         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
20558         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20559         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
20560         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
20562         * config/i860/i860-protos.h (i860_va_arg): Remove.
20563         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20564         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
20565         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
20567 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
20569         * system.h: Prototype getpagesize if missing.
20570         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
20571         * configure: Regenerate.
20572         * config.in: Regenerate.
20574 2004-07-08  Richard Henderson  <rth@redhat.com>
20576         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
20577         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20578         (fr30_gimplify_va_arg_expr): New.
20579         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
20580         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
20582 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
20584         PR target/16414
20585         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
20586         of asm_noperands result.
20588 2004-07-08  Richard Henderson  <rth@redhat.com>
20590         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
20591         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20592         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
20593         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
20595 2004-07-08  Richard Henderson  <rth@redhat.com>
20597         * builtins.c (ind_gimplify_va_arg_expr): New.
20598         * tree.h (ind_gimplify_va_arg_expr): Declare.
20599         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
20601 2004-07-08  Jan Beulich  <jbeulich@novell.com>
20603         * expmed.c (extract_bit_field): Correct condition to use vec_extract
20604         patterns also on vector elements other than the first one.
20605         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
20606         break statements.
20608 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
20610         * config/rs6000/darwin-ldouble.c: Correct reference
20611         to the Linnainmaa paper.
20613 2004-07-08  Richard Henderson  <rth@redhat.com>
20615         * config/arc/arc-protos.h (arc_va_arg): Remove.
20616         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20617         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
20618         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
20620         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
20621         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
20622         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
20623         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
20625 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20627         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
20629 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
20631         * c-decl.c (static_ctors, static_dtors): Make static.
20632         (pop_file_scope): Call c_common_write_pch and
20633         cgraph_finalize_compilation_unit here.
20634         (build_cdtor): Moved here from c-objc-common.c; simplify.
20635         (c_write_global_declarations_1): Clarify comment.
20636         (c_write_global_declarations): Close the external scope before
20637         doing anything else.  Call build_cdtor, cgraph_optimize, and
20638         mudflap_finish_file here.
20639         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
20640         Clarify comment.
20641         * c-objc-common.c: No need to include cgraph.h.
20642         (build_cdtor): Moved to c-decl.c.
20643         (c_objc_common_finish_file): Delete.
20644         * c-tree.h: Update to match.
20645         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
20646         (generate_static_references): Set TREE_USED before calling finish_decl.
20647         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
20648         on the static_instances_decl.
20650 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
20652         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
20653         decls when there is only one input translation unit.
20654         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
20655         change of 2004-07-05; do not treat declarations with
20656         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
20657         * opts.c (cur_in_fname): Delete.
20658         * opts.h: Likewise.
20659         * tree.c: Revert changes of 2004-07-05; no special treatment
20660         for TRANSLATION_UNIT_DECLs.
20661         * Makefile.in (tree.o): Update dependencies.
20663 2004-07-08  Roger Sayle  <roger@eyesopen.com>
20665         * builtins.c (fold_builtin_strcpy): Merge functionality from
20666         simplify_builtin_strcpy.  Add additional len argument.  No longer
20667         static.  Remove function prototype.
20668         (fold_builtin_strncpy): Likewise integrate functionality from
20669         simplify_builtin_strncpy.  Add additional slen argument.  No
20670         longer static.  Remove function prototype.
20671         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
20672         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
20673         types of "ignore" and "unlocked" parameters to bool.
20674         (fold_builtin_1):  Add additional ignore argument.  Call renamed
20675         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
20676         builtins.  Update arguments to fold_builtin_strncpy and
20677         fold_builtin_strcpy.  Add function prototype.
20678         (fold_builtin): Add additional Boolean ignore argument to pass
20679         to fold_builtin_1.
20680         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
20681         and fold_builtin_strncpy instead of simplify_builtin_fputs,
20682         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
20684         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
20685         simplify_builtin_strncpy): Delete function prototypes.
20686         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
20687         fold_builtin_strncpy): Add function prototypes here.
20688         (fold_builtin): Update function prototype with new "bool ignore".
20690         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
20691         (ccp_fold_builtin):  Update call to fold_builtin.  Call
20692         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
20693         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
20694         simplify_builtin_strncpy respectively.
20695         * fold-const.c (fold): Update call to fold_builtin.
20697 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
20699         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
20700         to strcpy.
20702         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
20703         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
20704         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
20705         * calls.c: Remove ifdefs of macros above.
20706         * functions.c: Likewise.
20707         * expr.c: Likewise.
20709 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
20711         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
20712         (arch attribute): Delete.
20713         (current_function_calls_alloca attribute): Rename into calls_alloca.
20714         (calls_eh_return): New attribute.
20715         (leaf_function): Likewise.
20716         (length attribute): Fix formula for sibcalls.
20717         (return insn): Correctly compute the 'length' attribute.
20718         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
20720 2004-07-08  Richard Henderson  <rth@redhat.com>
20722         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
20723         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
20724         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
20725         * tree-eh.c (lower_eh_constructs_1): Likewise.
20726         * tree-sra.c (sra_walk_modify_expr): Likewise.
20727         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
20728         (eliminate_unnecessary_stmts): Likewise.
20729         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
20730         * tree-tailcall.c (optimize_tail_call): Likewise.
20731         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
20733 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
20734             Jakub Jelinek  <jakub@redhat.com>
20736         * config/i386/i386.c (override_options): Enable
20737         SSE prefetches with -mtune, as long as we are
20738         compiling for i686 or higher.  All i686 processors
20739         accept SSE prefetches as NOPS, some i586's don't.
20741 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
20743         PR target/10567
20744         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
20746 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
20748         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
20749         the handling of clobbering ASM_EXPRs.
20751 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
20753         PR target/16430
20754         * config/sparc/sparc.c (function_value): In 64-bit mode,
20755         return the aggregates larger than 16 bytes like unions.
20757 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
20759         PR target/16199
20760         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
20761         'temp' is zero, generate new pseudos as needed and emit the
20762         sequence of insns in single-assignment form.  Resync comments
20763         with code.
20764         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
20765         function before reload.
20767 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
20769         * vec.c (vec_assert_fail): Remove duplicate 'function'.
20771         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
20773         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
20774         Allocation is signed.
20775         (VEC_reserve): Return flag, allocation is signed.
20777 2004-07-08  Richard Henderson  <rth@redhat.com>
20779         * tree-ssa-ccp.c (fold_stmt): Get type directly from
20780         OBJ_TYPE_REF_OBJECT.
20782 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
20783             Neil Booth  <neil@daikokuya.co.uk>
20785         PR c/2511
20786         PR c/3325
20787         * c-decl.c (finish_struct): Ensure bit-fields are given the
20788         correct type.
20789         * c-common.c (c_common_signed_or_unsigned_type): For C, require
20790         the precision to match as well as the mode.
20791         * expr.c (reduce_to_bit_field_precision): New function.
20792         (expand_expr_real_1): Reduce expressions of bit-field type to
20793         proper precision.
20794         * langhooks.h (reduce_bit_field_operations): New hook.
20795         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
20796         Define.
20797         * c-lang.c, objc/objc-lang.c
20798         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
20799         * objc/objc-act.c (check_ivars): Convert types to bit-field types
20800         before checking.
20801         * tree.c (build_nonstandard_integer_type): New function.
20802         * tree.h (build_nonstandard_integer_type): New prototype.
20803         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
20804         conversions between integer and boolean types as useless.
20806 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
20808         * c-common.c (c_common_nodes_and_builtins): Do not
20809         create __builtin_ptrdiff_t and __builtin_size_t.
20811 2004-07-08  Andrew Pinski  <apinski@apple.com>
20813         * Makefile.in (libbackend.o): Add -combine to the gcc
20814         command line.
20816 2004-07-08  Nick Clifton  <nickc@redhat.com>
20818         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
20819         Set to -Os.
20821 2004-07-08  Richard Henderson  <rth@redhat.com>
20823         * except.c (expand_eh_region_start, expand_eh_region_end,
20824         expand_eh_handler, expand_eh_region_end_cleanup,
20825         expand_start_all_catch, expand_start_catch, expand_end_catch,
20826         expand_end_all_catch, expand_eh_region_end_allowed,
20827         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
20828         expand_eh_region_end_fixup): Remove.
20829         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
20830         cleanups, outer_cleanups, label_chain, exception_region.
20831         (struct goto_fixup): Remove stack_level, cleanup_list_list.
20832         (struct label_chain): Remove.
20833         (struct stmt_status): Remove x_stack_block_stack.
20834         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
20835         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
20836         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
20837         end_cleanup_deferral, last_cleanup_this_contour,
20838         containing_blocks_have_cleanups_or_stack_level,
20839         any_pending_cleanups): Remove.
20840         (expand_null_return_1): Take no arguments.
20841         (expand_label, expand_naked_return, expand_return,
20842         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
20843         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
20844         expand_end_case_type): Don't use any of them.
20845         * calls.c (expand_call): Likewise.
20846         * dojump.c (do_jump): Likewise.
20847         * function.c (expand_function_end): Likewise.
20848         * expr.c (store_expr, expand_expr_real_1): Likewise.
20849         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
20850         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
20851         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
20852         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
20853         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
20854         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
20855         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
20856         for WITH_CLEANUP_EXPR.
20857         (gimple_push_cleanup): Likewise.
20858         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
20859         * print-tree.c (print_node): Likewise.
20860         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
20861         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
20862         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
20863         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
20864         (GOTO_SUBROUTINE_EXPR): Remove.
20865         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
20866         (DECL_TOO_LATE): Remove.
20867         * except.h, tree.h: Update decls.
20869 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
20871         * explow.c (optimize_save_area_alloca): Do not accept parameters.
20872         * passes.c (rest_of_handle_final): Handle symout.
20873         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
20874         Push timevar here.
20875         (rest_of_handle_sched): Break out SMS.  Remove ifs for
20876         flag_schedule_insns and flag_modulo_sched.
20877         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
20878         collect at the end.
20879         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
20880         (rest_of_handle_partition_blocks, rest_of_handle_sms,
20881         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
20882         rest_of_handle_mode_switching, rest_of_handle_jump,
20883         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
20884         rest_of_handle_jump2, rest_of_handle_postreload,
20885         rest_of_handle_flow2, rest_of_clean_state,
20886         rest_of_handle_shorten_branches,
20887         rest_of_handle_prologue_epilogue,
20888         rest_of_handle_branch_target_load_optimize): New.
20889         (rest_of_compilation): Call the above.  Remove ggc_collect
20890         calls moved to rest_of_handle_*.
20891         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
20893         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
20894         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
20895         * except.h (set_nothrow_function_flags): Update comment.
20896         * function.c (current_function_nothrow): Remove.
20897         * output.h (current_function_nothrow): Remove.
20898         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
20899         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
20901 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
20903         PR bootstrap/16326
20904         * reorg.c: Revert 2004-06-30 change.
20905         (find_end_label): If HAVE_epilogue and !HAVE_return,
20906         return 0 instead of creating a label at the end of the insn chain.
20907         (optimize_skip): Account for the failure mode of find_end_label.
20908         (fill_simple_delay_slots): Likewise.
20909         (fill_slots_from_thread): Likewise.
20910         (relax_delay_slots): Likewise.
20912 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
20914         * tree-flow.h (addressable_vars): Declare.
20915         * tree-ssa-alias.c (addressable_vars): Define.
20916         (setup_pointers_and_addressables): Add addressable variables
20917         to addressable_vars.
20918         * tree-ssa-operands.c (get_stmt_operands): Move
20919         handling of ASM_EXPRs ...
20920         (get_asm_expr_operands): ... here.
20921         When the ASM_EXPR clobbers memory, also clobber addressable
20922         variables.
20923         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
20924         (delete_tree_ssa): Reset addressable_vars.
20926 2004-07-07  Jan Beulich  <jbeulich@novell.com>
20927             Richard Henderson  <rth@redhat.com>
20929         * varasm.c (assemble_variable): Use assemble_zeros for
20930         zero-initialized variables.
20931         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
20932         for SECCAT_BSS and SECCAT_TBSS.
20934 2004-07-07  Jan Beulich  <jbeulich@novell.com>
20936         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
20938         * expmed.c (emit_store_flag): Also special-case double-word
20939         (in-)equality comparison against -1.
20941         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
20942         passing arguments the containers for which are registers.
20944         * calls.c (emit_library_call_value_1): Use mode of function parameter
20945         rather than that of argument since constants have none.
20947 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
20949         Introduce H8SX support.
20950         * expr.c (expand_strcpy): Renamed and moved to...
20951         * builtins.c (expand_movstr): ... here.  Tweak.
20952         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
20953         computed or has side effects.
20954         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
20955         unused, or if mempcpy fails.  Adjust the return value in the
20956         latter case.  Use movstr if everything else fails.
20957         * doc/md.texi (movstr): Document.
20958         (movmemM, clrmemM): Fix explanation of memory block operands.
20959         * config/h8300/h8300.md (stpcpy): Renamed to...
20960         (movstr): ... this.  Adjust.
20961         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
20962         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
20963         movmem* and clrstr* to clrmem*.
20964         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
20965         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
20966         GENERAL_REGS, always.
20967         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
20968         getting the stack pointer as addr.
20969         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
20970         from general_operand_dst.
20971         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
20972         variant of...
20973         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
20974         instead of requiring it to match only before reload.
20975         (stpcpy_internal_normal): New, normal-mode variant of...
20976         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
20977         `D' instead of requiring it to match only before reload.
20978         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
20979         mode argument.
20980         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
20981         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
20982         h8300_get_index.
20983         * config/h8300/h8300.md (attr type): Add call.
20984         (attr can_delay): If type is call, set it no.
20985         (call, call_value): Set type to call.
20986         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
20987         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
20988         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
20989         * tree.c (get_narrower): Don't narrow integral types into
20990         non-integral types.
20991         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
20992         frame_size *before* the first use.
20993         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
20994         on input.
20995         (peephole2): Don't widen instructions that push SP.  Move
20996         decrement of SP to the end of all stm-generating peepholes.
20997         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
20998         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
20999         and OR to set it to all ones.
21000         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
21001         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
21002         (call, call_value): Set can_delay to "no".
21003         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
21004         * config/h8300/h8300.md (extzv): Make subreg check more robust.
21005         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
21006         * config/h8300/h8300.md (*brabit): Remove.
21007         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
21008         zero_extract.  Use bit_memory_operand as the predicate for
21009         operand 1 and 'WU' as the constraint.  Check the difference
21010         between the base length and the final one when deciding which
21011         type of branch to use.
21012         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
21013         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
21014         Use convert_move to extend the result for TARGET_H8300SX.  Check
21015         for QImode memory references.  Optimize the case where the
21016         destination is a paradoxical subreg.
21017         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
21018         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
21019         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
21020         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
21021         * config/h8300/h8300.md: Include mova.md
21022         (length_table): Add mova and mova_zero.
21023         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
21024         after all constant addresses for '%R', '%X', '%T' and '%S'.
21025         (h8300_mova_length): New function.
21026         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
21027         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
21028         dependencies for s-config, etc.
21029         * config/h8300/gemova.sh: New file.
21030         * config/h8300/mova.md: Generated.
21031         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
21032         * config/h8300/h8300.c (h8300_bitfield_length): New.
21033         (nibble_operand): Adjust.
21034         (h8300_binary_length): Handle conditional binary op.
21035         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
21036         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
21037         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
21038         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
21039         constraints.  WU is introduced as a variant of U that requires a
21040         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
21041         * config/h8300/h8300.md (attr type): Added bitbranch.
21042         (attr length_table): Added bitfield and bitbranch.
21043         (attr length): Compute bitbranch length.
21044         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
21045         least-significant bit of a byte.
21046         (brabit, brabc, brabs): New.
21047         (insv, extzv): Emit bfst and bfld on H8300SX.
21048         (bfld, bfst, seq, sne): New.
21049         (bstzhireg, cmpstz, bstz, bistz): New.
21050         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
21051         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
21052         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
21053         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
21054         (h8sx_unary_memory_operator): New function.
21055         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
21056         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
21057         * config/h8300/h8300.md: Add peepholes to combine reloads and
21058         arithmetic insns.
21059         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
21060         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
21061         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
21062         (and?i, ior?i, xor?i): Likewise.
21063         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
21064         * config/h8300/h8300.c: Move enums and prototypes to head of file.
21065         Various whitespace fixes.
21066         (h8300_constant_length): New function, split out from...
21067         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
21068         (h8300_classify_operand): Use IN_RANGE.
21069         (h8300_classify_operand): Use h8300_constant_length.
21070         (h8300_short_move_mem_p): Tighten size check.
21071         (h8sx_mergeable_memrefs_p): Tighten equality check.
21072         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
21073         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
21074         for -msx.
21075         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
21076         * config/h8300/crtn.asm: Likewise.
21077         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
21078         if __H8300SX__ is defined.
21079         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
21080         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
21081         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
21082         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
21083         addresses as mode-dependent.
21084         * config/h8300/h8300.c (print_operand_address): Update call to
21085         h8300_get_index.
21086         (h8300_get_index): Take a mode argument.  Rework to fix an
21087         earlier misunderstanding.
21088         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
21089         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
21090         into a register if TARGET_H8300SX.
21091         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
21092         TARGET_H8300SX.  Also disable related define_splits.
21093         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
21094         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
21095         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
21096         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
21097         * config/h8300/h8300.h (OK_FOR_Z): New macro.
21098         (EXTRA_CONSTRAINT_STR): Check it.
21099         * config/h8300/h8300.c (h8300_classify_operand): Accept null
21100         class arguments.
21101         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
21102         * config/h8300/h8300.md (length_table): Add mov_imm4.
21103         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
21104         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
21105         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
21106         be a label.
21107         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
21108         * config/h8300/h8300.c (h8300_reorg): New function.
21109         (TARGET_MACHINE_DEPENDENT_REORG): Define.
21110         * config/h8300/h8300.md (length): Subtract the length of the
21111         delay slot from (pc) when checking the range of forward branches.
21112         (delay_slot, can_delay): New attributes.
21113         (define_delay): Add bra/s handling.
21114         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
21115         (jump): Add delayed-branch handling.
21116         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
21117         * expr.c (expand_strcpy): New function.
21118         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
21119         (expand_builtin_stpcpy): Likewise.
21120         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
21121         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
21122         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
21123         handling to improve register allocation for -fno-omit-frame-pointer.
21124         (h8sx_split_movmd): Delete, moving er6 handling into...
21125         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
21126         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
21127         (movmd): Add calls to copy_rtx.
21128         (movmd_internal): In the second alternative, allow the initial and
21129         final destination registers to be different .  Update the splitter
21130         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
21131         instead of h8sx_split_movmd.
21132         (stpcpy, movsd): New expanders.
21133         (movsd_internal): New define_insn.
21134         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
21135         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
21136         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
21137         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
21138         and DESTINATION_REGS.
21139         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
21140         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
21141         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
21142         (h8300_move_ratio): Declare.
21143         (MOVE_RATIO): Use it.
21144         * config/h8300/h8300.c (h8300_move_ratio): New variable.
21145         (h8300_init_once): Initialize it.
21146         (h8300_reg_class_from_letter): New function.
21147         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
21148         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
21149         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
21150         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
21151         (movstrsi, movmd): New expanders.
21152         (movmd_internal): New insn.
21153         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
21154         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
21155         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
21156         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
21157         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
21158         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
21159         * config/h8300/h8300.c (nibble_operand): Fix warning.
21160         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
21161         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
21162         (movsf_h8300h): Disable for TARGET_H8300SX.
21163         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
21164         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
21165         h8300_stm_parallel and h8300_return_parallel.
21166         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
21167         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
21168         h8300_stm_parallel, h8300_return_parallel): New functions.
21169         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
21170         if TARGET_H8300SX.  Use h8300_push_pop.
21171         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
21172         and final pop when generating h8sx code.  Always emit some form
21173         of return insn.
21174         * config/h8300/h8300.md: Don't enforce register alignment in
21175         stm peepholes if TARGET_H8300SX.
21176         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
21177         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
21178         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
21179         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
21180         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
21181         (MULTILIB_DIRNAMES): Add a directory for it.
21182         (MULTILIB_MATCHES): Delete.
21183         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
21184         * final.c (walk_alter_subreg): Handle addresses with subregs
21185         inside a ZERO_EXTEND or AND.
21186         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
21187         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
21188         if TARGET_H8300SX.
21189         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
21190         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
21191         @(dd,Rn.w) and @(dd,ERn.L).
21192         (h8300_displacement_size): Take the whole address as argument.
21193         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
21194         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
21195         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
21196         (h8sx_mergeable_memrefs_p): Declare.
21197         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
21198         (HAVE_PRE_INCREMENT): Likewise.
21199         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
21200         addresses for TARGET_H8300SX,
21201         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
21202         and POST_DEC.
21203         (movb_length_table, movl_length_table): New tables.
21204         (movw_length_table): Define to movb_length_table.
21205         (h8300_displacement_size): New, split out from...
21206         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
21207         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
21208         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
21209         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
21210         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
21211         (compute_plussi_length, compute_plussi_cc): Update accordingly.
21212         (h8sx_unary_shift_operator): Get the mode from the operator.
21213         (binary_shift_operator): Likewise.
21214         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
21215         a memory reference, check whether the reference is offsettable.
21216         (length_table): Add movb, movw and movl.
21217         (movqi): Add new h8sx pattern.  Don't force one operand to be a
21218         register when generating h8sx code.
21219         (movhi, movsi, movsf): Likewise.
21220         (movstrictqi): Use the length_table attribute.
21221         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
21222         (addqi3): Split into a define_expand and define_insn.  Don't accept
21223         memory operands in the expander.  Use h8300_operands_match_p to
21224         check for matching operands in the define_insn.
21225         (subqi3, negqi2, one_cmplqi2): Likewise.
21226         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
21227         in any patterns that are unused in h8sx code.  In the h8sx patterns,
21228         use h8300_operands_match_p to check whether operands match.
21229         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
21230         one_cmpl[hs]i3): Likewise.
21231         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
21232         in the expander.
21233         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
21234         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
21235         (h8300_insn_length_from_table): Add a second parameter.
21236         (output_h8sx_shift): Declare.
21237         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
21238         (EXTRA_CONSTRAINT): Replace with...
21239         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
21240         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
21241         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
21242         and h8sx_binary_shift_operator.
21243         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
21244         for TARGET_H8300SX.
21245         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
21246         (bit_memory_operand, fix_bit_operand): Likewise.
21247         (h8300_length_table_for_insn): Remove.
21248         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
21249         instructions.
21250         (h8300_short_immediate_length, h8300_binary_length): New functions.
21251         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
21252         (output_plussi): Use sub to add negative constants.
21253         (compute_plussi_length): Adjust accordingly.
21254         (h8sx_single_shift_type): New enum.
21255         (h8sx_single_shift, h8sx_unary_shift_operator,
21256         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
21257         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
21258         single h8sx instruction.  Return false in this case.
21259         * config/h8300/h8300.md (length_table): Add short_immediate.
21260         (length): Pass the operand array to h8300_insn_length_from_table.
21261         (adjust_length): Assume "no" for insns with a length_table attribute.
21262         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
21263         (*addhi3_h8300hs): Don't use for h8sx.
21264         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
21265         and sub.w #xx:3.
21266         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
21267         1's predicate to nonimmediate_operand.  Only skip default expansion
21268         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
21269         for single h8sx shift instructions.
21270         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
21271         * config/h8300/h8300.c (nibble_operand): Split out of...
21272         (reg_or_nibble_operand): ... this.
21273         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
21274         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
21275         umulhisi3): Introduce expand, and introduce separate insns for
21276         sign- or zero-extended REG and already-extended CONST_INT.
21277         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
21278         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
21279         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
21280         (subhi3): Likewise.  Don't accept immediates for operand 1.
21281         Remove the early clobber from second alternative of the h8300s pattern.
21282         (subsi3): Generalize for h8sx.  Force operand 2 into a register
21283         on plain h8300 targets.
21284         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
21285         (subsi3_h8300h): Generalize for h8sx.
21286         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
21287         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
21288         * config/h8300/h8300.c (reg_or_nibble_operand): New.
21289         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
21290         (TARGET_H8300SXMUL): New.
21291         (CONST_OK_FOR_P): New.
21292         (CONST_OK_FOR_LETTER_P): Adjust.
21293         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
21294         umulhisi3): Accept 4-bit immediate on H8SX.
21295         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
21296         (udivsi3, divhi3, udivsi3, divsi3): New.
21297         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
21298         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
21299         * config/h8300/h8300.h (OK_FOR_Q): New macro.
21300         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
21301         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
21302         Add ADDRESSOF to the bit_operand entry.
21303         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
21304         (h8300_src_operand): Likewise.
21305         (bit_operand): Check nonimmediate_operand rather than general_operand.
21306         Accept any nonimmediate_operand in h8sx code.
21307         (h8300_and_costs): Initialize operands[1].
21308         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
21309         (h8300_operand_class): New enum.
21310         (h8300_length_table): New typedef.
21311         (addb_length_table, addw_length_table, addl_length_table,
21312         logicl_length_table): New tables.
21313         (logicb_length_table, logicw_length_table): New macros.
21314         (h8300_classify_operand, h8300_length_from_table,
21315         h8300_length_table_for_insn, h8300_unary_length,
21316         h8300_insn_length_from_table): New functions.
21317         (output_plussi): Only use adds and subs for register destinations.
21318         Disable redundant clause.
21319         (compute_plussi_cc): Likewise.
21320         (compute_plussi_length): Likewise.  Use h8300_length_from_table
21321         to work out the length of an insn.
21322         (output_logical_op): Only use narrower immediate instructions
21323         if the destination is a register.
21324         (compute_logical_op_cc): Likewise.
21325         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
21326         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
21327         * config/h8300/h8300.md (length_table): New attribute.
21328         (length): When an instruction has a length_table attribute, use
21329         h8300_insn_length_from_table to calculate its default length.
21330         (cmpqi): Use h8300_dst_operand for the first operand and
21331         h8300_src_operand for the second.
21332         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
21333         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
21334         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
21335         iorsi3, xorhi3, xorsi3): Likewise.
21336         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
21337         so that it allows any combination of operands for TARGET_H8300SX.
21338         (iorqi3, xorqi3): Likewise.
21339         (cmpqi): Use the length_table attribute.
21340         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
21341         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
21342         (cmpqi): Add 'Q' constraint.
21343         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
21344         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
21345         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
21346         * config/h8300/h8300.h (MASK_H8300SX): New macro.
21347         (TARGET_H8300S): True for both -ms and -msx.
21348         (TARGET_H8300SX): New macro.
21349         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
21350         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
21351         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
21352         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
21353         [Temporary change.]
21354         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
21355         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
21356         16-bit pointers and 32-bit ints.
21357         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
21358         CONST_DOUBLE with mode no wider than SImode.
21359         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
21360         output operand.
21361         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
21362         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
21363         or SUBREG thereof.
21364         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
21365         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
21366         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
21368 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
21370         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
21372 2004-07-07  Per Bothner  <per@bothner.com>
21374         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
21376 2004-07-07  Mike Stump  <mrs@apple.com>
21378         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
21379         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
21380         (machopic_finish): Likewise.
21382 2004-07-07  Richard Henderson  <rth@redhat.com>
21384         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
21385         through any value-preserving cast.
21387 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
21389         * function.c (assign_parm_find_data_types): Call
21390         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
21392 2004-07-07  Steven Bosscher  <stevenb@suse.de>
21394         * tree-cfg.c (group_case_labels): Remove case labels that have
21395         the same target as the default case.
21397 2004-07-07  Steven Bosscher  <stevenb@suse.de>
21399         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
21400         regardless of DECL_LANG_SPECIFIC being present or not.
21401         * tree.h (DECL_NUM_STMTS): Purge.
21403 2004-07-07  Andrew Pinski  <apinski@apple.com>
21405         * configure: Regenerate with the right autoconf.
21407 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
21409         * ifcvt.c (total_bb_rtx_cost): New function.
21410         (find_if_case_1): Compare rtx_cost of basic block to cost of
21411         BRANCH_COST insns.
21412         (find_if_case_2): Same.
21414 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
21416         PR target/10567
21417         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
21418         (output_return): Likewise.
21419         (output_sibcall): Abort if !flag_delayed_branch.
21420         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
21421         (emit_and_preserve): New function.
21422         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
21423         indirect jump to the thunked-to function if !flag_delayed_branch.
21424         * config/sparc/sparc.md (delayed_branch): New attribute.
21425         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
21426         attribute to compute the length of the insn.
21427         (goto_handler_and_restore): Likewise.
21429 2004-07-07  Andrew Pinski  <apinski@apple.com>
21431         PR tree-optimization/15777
21432         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
21434         * expr.c (expand_expr_real_1): Fix formating.
21435         BUFFER_REF and IN_EXPR are dead.
21436         * fold-const.c (non_lvalue): BUFFER_REF is dead.
21437         * tree-inline.c (estimate_num_insns_1): Likewise.
21438         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
21439         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
21440         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
21442 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
21444         * collect2.c (dump_file): Don't call cplus_demangle if
21445         HAVE_LD_DEMANGLE is defined.
21446         (main): Pass "--demangle" to ld if no_demangle is not 0 and
21447         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
21448         if HAVE_LD_DEMANGLE is defined.
21450         * configure.ac (--with-demangler-in-ld): Added
21451         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
21452         --with-demangler-in-ld is used.
21453         * config.in: Regenerated.
21454         * configure: Likewise.
21456 2004-07-07  Roger Sayle  <roger@eyesopen.com>
21458         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
21459         for simple floating point operations "fp", double precision
21460         multiplication "dmul", and single and double precision division
21461         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
21462         (ppc630_cost): New table split from ppc620_cost, to distinguish
21463         differences in floating point latencies.
21464         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
21465         (rs6000_rtx_costs): Add support for single and double precision
21466         floating point addition, subtraction, multiplication, division,
21467         fused-multiply-add, fused-multiply-sub, negation, absolute value
21468         and negative absolute value.  Tweak MEM case to use prefered idiom.
21470 2004-07-07  Richard Henderson  <rth@redhat.com>
21472         * tree-flow-inline.h (may_propagate_copy): Move...
21473         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
21474         attempt to copy between types requiring conversion.
21475         * tree-flow.h (may_propagate_copy): Update decl.
21476         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
21478 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
21480         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
21481         from -mtune= option.
21483 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
21485         * builtins.c: Rename movstr*, except for movstrict*, to
21486         movmem* and clrstr* to clrmem*.
21487         * expr.c: Likewise.
21488         * expr.h: Likewise.
21489         * genopinit.c: Likewise.
21490         * integrate.c: Likewise.
21491         * local-alloc.c: Likewise.
21492         * optabs.c: Likewise.
21493         * optabs.h: Likewise.
21494         * config/alpha/alpha.h: Likewise.
21495         * config/alpha/alpha.md: Likewise.
21496         * config/arm/arm-protos.h: Likewise.
21497         * config/arm/arm.c: Likewise.
21498         * config/arm/arm.md: Likewise.
21499         * config/avr/avr.md: Likewise.
21500         * config/c4x/c4x.c: Likewise.
21501         * config/c4x/c4x.md: Likewise.
21502         * config/frv/frv.md: Likewise.
21503         * config/i386/i386-protos.h: Likewise.
21504         * config/i386/i386.c: Likewise.
21505         * config/i386/i386.h: Likewise.
21506         * config/i386/i386.md: Likewise.
21507         * config/i860/i860.c: Likewise.
21508         * config/i860/i860.md: Likewise.
21509         * config/ip2k/ip2k.md: Likewise.
21510         * config/ip2k/libgcc.S: Likewise.
21511         * config/ip2k/t-ip2k: Likewise.
21512         * config/m32r/m32r.c: Likewise.
21513         * config/m32r/m32r.md: Likewise.
21514         * config/mcore/mcore.md: Likewise.
21515         * config/mips/mips.c: Likewise.
21516         * config/mips/mips.md: Likewise.
21517         * config/ns32k/ns32k.c: Likewise.
21518         * config/ns32k/ns32k.h: Likewise.
21519         * config/ns32k/ns32k.md: Likewise.
21520         * config/pa/pa.c: Likewise.
21521         * config/pa/pa.md: Likewise.
21522         * config/pdp11/pdp11.h: Likewise.
21523         * config/pdp11/pdp11.md: Likewise.
21524         * config/rs6000/rs6000.c: Likewise.
21525         * config/rs6000/rs6000.md: Likewise.
21526         * config/s390/s390-protos.h: Likewise.
21527         * config/s390/s390.c: Likewise.
21528         * config/s390/s390.md: Likewise.
21529         * config/sh/lib1funcs.asm: Likewise.
21530         * config/sh/sh.c: Likewise.
21531         * config/sh/sh.md: Likewise.
21532         * config/sh/t-sh: Likewise.
21533         * config/sparc/sparc.h: Likewise.
21534         * config/vax/vax.md: Likewise.
21535         * config/xtensa/xtensa.c: Likewise.
21536         * config/xtensa/xtensa.md: Likewise.
21537         * doc/invoke.texi: Likewise.
21538         * doc/md.texi: Likewise.
21539         * doc/rtl.texi: Likewise.
21541 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
21543         PR target/16407
21544         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
21545         * config/mips/mips.c (mips_declare_common_object): New function,
21546         mostly split out from...
21547         (mips_output_aligned_decl_common): ...here.
21548         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
21549         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
21550         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
21551         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
21553 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21555         PR c/16392
21556         * function.c (assign_parms): Fix typo from previous change.
21558 2004-07-07  Jason Merrill  <jason@redhat.com>
21560         PR c++/15815
21561         * doc/extend.texi (C++ Interface): Correct information and
21562         discourage use.
21564 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
21566         PR target/16130
21567         PR target/16142
21568         PR target/16143
21569         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
21570         insn.
21572 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
21574         PR target/1679.
21575         * config/m32r/m32r.c (m32r_function_symbol): New function:
21576         Generate a symbol name RTX with the correct m32r specific flags
21577         set.
21578         (block_move_call): Use new function to generate correct symbol.
21579         * config/m32r/m32r-protos.h: Add prototype for new funcion.
21580         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
21581         function.
21583 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
21585         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
21586         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
21587         TYPE_BINFO_BASETYPE): Remove.
21588         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
21589         to ...
21590         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
21591         here.
21592         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
21593         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
21594         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
21595         (struct tree_binfo): Rename base_types to base_binfos.
21596         * alias.c (record_component_aliases): Adjust BINFO macros.
21597         * dbxout.c (dbxout_type): Likewise.
21598         * dwarf2out.c (gen_member_die): Likewise.
21599         * sdbout.c (sdbout_one_type): Likewise.
21600         * tree-dump.c (deque_and_dump): Likewise.
21601         * config/i386/i386.c (classify_argument,
21602         contains_128bit_aligned_vector_p): Likewise.
21604 2004-07-07  Nick Clifton  <nickc@redhat.com>
21606         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
21607         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
21609 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
21611         * vec.h: Fix the example use.
21613 2004-07-06  Richard Henderson  <rth@redhat.com>
21615         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
21616         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
21617         * tree-inline.c (copy_body_r, setup_one_parameter,
21618         initialize_inlined_parameters, expand_call_inline,
21619         declare_inline_vars): Don't check it.
21620         (expand_calls_inline): Remove old version, rename new version
21621         from gimple_expand_calls_inline.
21622         * tree-optimize.c (execute_gimple): Remove.
21623         (pass_gimple): Don't run anything.
21625 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
21627         * doc/sourcebuild.texi: Use semicolons instead of commas in
21628         section title.
21630 2004-07-06  Richard Henderson  <rth@redhat.com>
21632         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
21633         (sra_walk_modify_expr, scan_init): Likewise.
21634         (generate_element_zero): Check visited before scanning children.
21635         (generate_element_init): Set visited on error.
21636         (scalarize_init): Handle generate_element_init failure similar
21637         to use_block_copy.
21639 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
21641         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
21642         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
21644 2004-07-06  Richard Henderson  <rth@redhat.com>
21646         * config/i386/i386.c (legitimize_pic_address): Make static.
21647         (legitimize_address): Handle CONST with TLS operand.
21648         (ix86_expand_move): Don't call legitimize_pic_address directly.
21649         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
21651 2004-07-06  Roger Sayle  <roger@eyesopen.com>
21653         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
21654         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
21655         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
21656         is currently executed unconditionally, i.e. not in "else_bb".
21658 2004-07-06  Steven Bosscher  <stevenb@suse.de>
21660         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
21661         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21662         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
21663         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21664         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
21665         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21666         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
21667         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21668         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
21669         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21670         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
21671         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21672         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
21673         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21674         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
21675         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
21677 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
21679         * dojump.c (do_jump): REFERENCE_EXPR is dead.
21680         * expr.c (expand_expr_real_1): Ditto.
21681         * tree-inline.c (estimate_num_insns_1): Ditto.
21682         * tree-pretty-print.c (dump_generic_node): Ditto.
21683         (op_symbol): Ditto.
21684         * tree.def: Ditto.
21686 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
21688         * tree-ssa-pre.c (reference_node_pool): New pool.
21689         (find_or_generate_expression): Class 'r' is okay too.
21690         (create_value_expr_from): Ditto.
21691         (add_to_sets): LHS should not include vuses.
21692         (eliminate): Ditto.
21693         (compute_avail): Reverse ordering of tests.
21694         Valuize INDIRECT_REF as well.
21696 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
21698         PR rtl-optimization/16380
21699         * loop.c (check_dbra_loop): Sink comparison instructions if they
21700         do something other than set cc0.
21702 2004-07-06  James E Wilson  <wilson@specifixinc.com>
21704         * doc/interface.texi (longjmp and automatic variables): Delete
21705         paragraph recommending taking the address of a variable.
21707 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
21709         * vec.h (VEC_embedded_alloc): Remove.
21710         (VEC_embedded_size, VEC_embedded_init): New.
21711         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
21712         MEM_STAT_INFO.
21713         (VEC_truncate): New.
21714         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
21715         (vec_embedded_alloc): Remove.
21716         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
21717         (vec_embedded_alloc): Remove.
21719 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
21721         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
21722         (gt-langhooks.h): Remove.
21724 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
21726         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
21728 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
21730         * config/sparc/sparc.c (get_pc_symbol): Rename into
21731         add_pc_to_pic_symbol.
21732         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
21733         (load_pic_register): Account for previous changes.
21734         Use reg_names.  Don't create the label twice.
21735         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
21736         UNSPEC_LOAD_PCREL_SYM.
21737         (get_pc): Rename into load_pcrel_sym.  Add predicate to
21738         operands.  Remove condition.
21740 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
21742         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
21743         RECORD, UNION & QUAL_UNION is actually a binfo.
21745         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
21746         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
21747         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
21748         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
21749         * dwarf2out.c (add_data_member_location_attribute): Likewise.
21750         (gen_inheritance_die): Likewise.
21751         * tree-dump.c (deque_and_dump): Likewise.
21752         * doc/c-tree.texi (Binfos): Add under reconstruction note.
21754 2004-07-06  Steven Bosscher  <stevenb@suse.de>
21756         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
21757         Define.
21758         * config/mcore/mcore.md: Model memory latency with a simple DFA
21759         pipeline description instead of a define_function_unit.
21761 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21763         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
21764         * langhooks.h (var_mod_type_p): Likewise.
21765         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
21766         * expr.c (count_type_elements): Properly handle return from
21767         array_type_nelts and properly test for overflow.
21768         * gimplify.c (gimplify_init_constructor): Properly handle return
21769         from array_type_nelts.
21770         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
21771         * integrate.c (copy_decl_for_inlining): Correct comments.
21772         * tree-inline.c (remap_decl): Update comments, remove dead code,
21773         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
21774         (remap_type): Only remap if variably modified by vars in function
21775         being inlined.
21776         (copy_body_r): Use compatible_type langhooks to see when can fold.
21777         (setup_one_parameter): Don't remap type.
21778         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
21779         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
21780         compute TREE_INVARIANT for decl case.
21781         (find_var_from_fn): New function.
21782         (variably_modified_type_p): Add arg and call new function.
21783         * tree.h (variably_modified_type_p): Add extra arg.
21785 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
21787         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
21788         (goto_handler_and_restore_v9): Delete disabled insn.
21789         (goto_handler_and_restore_v9_sp64): Likewise.
21791 2004-07-05  Roger Sayle  <roger@eyesopen.com>
21793         * calls.c (load_register_parameters): Call expand_shift instead
21794         of expand_binop with ashl_optab (or other shift optab) directly.
21795         * expr.c (emit_group_load, emit_group_store): Likewise.
21796         * function.c (assign_parm_setup_block): Likewise.
21797         * stmt.c (shift_return_value): Likewise.
21799 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
21801         * expr.c (expand_assignment): Disable the bitfield += optimizations.
21803 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
21805         * doc/sourcebuild.texi: Revert previous patch.
21807 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
21809         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
21810         TARGET_MEM_FUNCTIONS.
21811         * system.h: Poison TARGET_MEM_FUNCTIONS.
21812         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
21813         bcmp_libfunc, bzero_libfunc): Remove.
21814         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
21815         bzero_libfunc.
21816         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
21817         * doc/standards.texi: Don't mention calling BSD string functions.
21818         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
21819         * config/vax/t-memfuncs: New.
21820         * config/memcmp.c, config/memcpy.c, config/memmove.c,
21821         config/memset.c: New.
21822         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
21823         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
21824         vax/t-memfuncs.
21825         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
21826         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
21827         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
21828         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
21829         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
21830         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
21831         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
21832         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
21833         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
21834         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
21836 2004-07-05  Richard Henderson  <rth@redhat.com>
21838         * function.c (assign_parm_setup_reg): Properly rename variables in
21839         FUNCTION_ARG_CALLEE_COPIES section.
21841 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
21843         * tree-mudflap.c: Include cgraph.h.
21844         (mf_init_extern_trees): Rename to mudflap_init.  Export.
21845         Rewrite to create synthetic declarations instead of looking
21846         up declarations from mf-runtime.h.
21847         (mf_make_builtin, mf_make_cache_struct_type): New functions.
21848         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
21849         Correct commentary.
21850         (execute_mudflap_function_decls, mudflap_register_call):
21851         Don't call mf_init_extern_trees.
21852         (mudflap_finish_file): Use cgraph_build_static_cdtor.
21854         * tree-mudflap.h: Update prototypes.
21855         * c-mudflap.c: Delete file.
21856         * c-common.c: Include tree-mudflap.h.
21857         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
21858         * Makefile.in: Remove all references to c-mudflap.o.
21859         Update dependencies.
21861 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21863         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
21864         displacements with the spatial-locality cache-control completer.
21866 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
21868         * langhooks.c: Don't include gt-langhooks.h.
21869         (var_labelno): Delete.
21870         (lhd_set_decl_assembler_name): Do not append a distinguishing
21871         number to file-scope internal-linkage declarations for the first
21872         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
21873         the declaration itself (if at block scope), or its containing
21874         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
21875         number.
21877         * opts.c (cur_in_fname): New global.
21878         * opts.h: Declare it.
21879         * tree.c: Include opts.h.
21880         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
21881         DECL_UID equal to cur_in_fname.
21882         (copy_node_stat): Do not change DECL_UID when copying a
21883         TRANSLATION_UNIT_DECL.
21884         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
21885         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
21887         * c-decl.c (c_static_assembler_name): Delete.
21888         * c-tree.h (c_static_assembler_name): Delete prototype.
21889         * c-lang.c, objc/objc-lang.c: Don't override
21890         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
21892         * Makefile.in (tree.o): Update dependencies.
21893         (GTFILES): Remove langhooks.c.
21895 2004-07-05  Roger Sayle  <roger@eyesopen.com>
21897         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
21898         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
21899         Normalize "X % C" as "X % -C" for signed modulus and negative C.
21900         Optimize "X % -Y" as "X % Y" for signed modulus.
21901         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
21902         into "((unsigned) X % Y) == 0".
21904 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
21906         * sourcebuild.texi (Config Fragments): Use @comma{} in
21907         cross-reference to section title.
21909 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21911         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
21912         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
21913         (gimplify_target_expr, gimplify_expr): Likewise.
21914         (copy_if_shared_r): No longer need special case for BIND_EXPR.
21915         (unshare_body, unvisit_body): Only look at nested if BODY_P is
21916         whole function.
21917         (gimplify_compound_lval): See if we can strip any useless conversion.
21918         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
21919         from RHS, not LHS.
21920         (gimplify_modify_expr_to_memset): Likewise.
21921         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
21922         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
21923         (declare_inline_vars): Likewise.
21924         (walk_type_fields): New function.
21925         (walk_tree): Use it.
21926         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
21928         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
21929         (sra_walk_modify_expr): Allow init function to fail.
21930         (scan_init): Now returns bool.
21931         (generate_element_init): If can't understand INIT, return false.
21932         (scalarize_init): Return false if generate_element_init does.
21934         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
21935         print bounds.
21937         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
21938         bounds if bounds aren't constant.
21940         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
21942         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
21943         to type hooks; remove bogus PARAMS.
21945 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
21947         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
21948         * dwarf2out.c (add_data_member_location_attribute): Check for
21949         TREE_BINFO.
21950         * tree.c (tree_node_kinds): Add "binfos".
21951         (binfo_lang_slots): New.
21952         (make_node_stat): Add TREE_BINFO.
21953         (make_tree_binfo_stat): New.
21954         (tree_node_structure): Add TREE_BINFO.
21955         * tree.def (TREE_BINFO): New.
21956         * tree.h (REC_OR_UNION_CHECK): Rename to ...
21957         (RECORD_OR_UNION_CHECK): ... here.
21958         (NOT_RECORD_OR_UNION_CHECK): New.
21959         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
21960         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
21961         RECORD_OR_UNION_CHECK.
21962         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
21963         (TYPE_LANG_SLOT_1): New.
21964         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
21965         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
21966         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
21967         (BINFO_ELTS): Remove.
21968         (BINFO_LANG_SLOT): New.
21969         (struct tree_binfo): New.
21970         (binfo_lang_slots): Declare.
21971         (enum tree_node_structure_enum): Add TS_BINFO.
21972         (union tree_node): Add binfo.
21973         (make_tree_binfo_stat): Declare.
21974         (make_tree_binfo): New.
21975         (enum tree_node_kind): Add binfo_kind.
21977         * objc/objc-act.c (start_class, objc_declare_protocols,
21978         start_protocols): Use TYPE_LANG_SLOT_1.
21979         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
21980         to ...
21981         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
21982         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
21983         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
21984         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
21986 2004-07-05  Steven Bosscher  <stevenb@suse.de>
21988         * rtl.h (struct rtx_def): Remove the integrated flag.
21989         Use the return_val flag for MEM_SCALAR_P.
21990         Reshuffle and update flags in CLEAR_RTX_FLAGS.
21992 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
21994         PR target/16357
21995         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
21996         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
21997         move_by_pieces.
21999 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
22001         * var-tracking.c: Fix some comments.
22002         (frame_stack_adjust): New.
22003         (vt_stack_adjustments): Init stack_adjust of entry block to
22004         minus stack adjustment of function prologue.
22005         (adjust_stack_reference): Do not adjust if adjustment == 0.
22006         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
22007         (emit_notes_in_bb): Likewise.
22008         (vt_add_function_parameters): Do not adjust locations of
22009         function arguments.
22010         (vt_initialize): Compute the stack adjustment of function
22011         prologue and offset the initial "location" of frame_base_decl
22012         from the stack pointer after prologue.
22014 2004-07-04  Richard Henderson  <rth@redhat.com>
22016         * function.c (struct assign_parm_data_all): New.
22017         (struct assign_parm_data_one): New.
22018         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
22019         assign_parm_find_data_types, assign_parms_setup_varargs,
22020         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
22021         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
22022         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
22023         assign_parm_setup_block, assign_parm_setup_reg,
22024         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
22025         (assign_parms): ... here.
22027 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
22029         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
22030         now are bitmap_set_t's.
22031         (bitmap_insert_into_set): No point in inserting the value if
22032         it's invariant.
22033         (bitmap_set_contains): New function.
22034         (bitmap_set_replace_value): Add comment on why we do it
22035         this way.
22036         (set_contains): Removed.
22037         (bitmap_set_subtract_from_value_set): New name of
22038         set_subtract now that it's arguments are two different
22039         types of sets.
22040         Update callers.
22041         (bitmap_find_leader): Change algorithm used.
22042         (find_or_generate_expression): Update use of functions for new
22043         bitmap sets.
22044         (create_expression_by_pieces): Ditto.
22045         (insert_aux): Ditto.
22046         (insert): Ditto.
22047         (add_to_sets): Ditto.
22048         (init_pre): Ditto.
22049         (execute_pre): Ditto.
22050         (compute_avail): Ditto.
22051         Also ignore virtual phis.
22053 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
22055         * combine.c (simplify_comparison): Fix comment typo.
22057 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
22059         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
22060         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
22061         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
22062         (output_restore): Change parameter from 'insn' to 'pat'.
22063         (output_return): Adjust call to output_restore.
22064         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
22065         Adjust call to output_restore.
22067 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
22069         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
22070         and assert system is bsd.
22072 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
22074         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
22075         (TARGET_SWITCHES): Remove -mdebugc.
22076         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
22077         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
22078         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
22079         (sle_[sd]i_reg): Delete.
22081 2004-07-04  Steven Bosscher  <stevenb@suse.de>
22083         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
22084         Define.
22085         * config/iq2000/iq2000.md: Translate old pipeline description to an
22086         equivalent new one.
22088 2004-07-04  Roger Sayle  <roger@eyesopen.com>
22090         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
22091         Ensure the replacement rhs is valid gimple before performing
22092         the substitution.  Return false if these sanity checks fail.
22093         (fold_stmt): Only set changed to true, if set_rhs returns true.
22094         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
22095         succeeds.
22097 2004-07-04  Richard Henderson  <rth@redhat.com>
22099         PR c/16348
22100         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
22102 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
22104         * configure.ac (ranlib_flags): New variable.
22105         * Makefile.in (RANLIB_FLAGS): New variable.
22106         (libbackend.a): Use it.
22107         * configure: Regenerated.
22109 2004-07-04  Roger Sayle  <roger@eyesopen.com>
22111         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
22112         a "sign mask" instead of using ashr_optab directly.
22114 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
22116         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
22117         * doc/cppopts.texi: Clarify processing of command-line defines.
22119 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
22121         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
22123 2004-07-04  Richard Henderson  <rth@redhat.com>
22125         * rtl.def (ADDRESSOF): Remove.
22126         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
22127         (find_base_term, memrefs_conflict_p): Likewise.
22128         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
22129         (fold_rtx, cse_insn, set_live_p): Likewise.
22130         * dwarf2out.c (mem_loc_descriptor): Likewise.
22131         (add_location_or_const_value_attribute): Likewise.
22132         * emit-rtl.c (copy_insn_1): Likewise.
22133         * explow.c (memory_address): Likewise.
22134         * expmed.c (store_split_bit_field): Likewise.
22135         * expr.c (expand_expr_real_1): Likewise.
22136         * function.c (instantiate_decl
22137         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
22138         * genrecog.c (preds, validate_pattern): Likewise.
22139         * integrate.c (copy_rtx_and_substitute): Likewise.
22140         * recog.c (general_operand, register_operand): Likewise.
22141         (memory_address_p): Likwise.
22142         * reload1.c (eliminate_regs, elimination_effects): Likewise.
22143         * rtl.c (copy_rtx): Likewise.
22144         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
22145         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
22146         * rtlhooks.c (gen_lowpart_general): Likewise.
22147         * stmt.c (expand_asm_operands): Likewise.
22148         * web.c (entry_register, replace_ref, web_main): Likewise.
22149         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
22150         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
22151         * config/arm/arm.c (thumb_rtx_costs): Likewise.
22152         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
22153         * config/frv/frv.c (move_destination_operand, move_source_operand,
22154         condexec_dest_operand, condexec_source_operand,
22155         condexec_memory_operand): Likewise.
22156         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
22157         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
22158         (destination_xfmode_operand): Likewise.
22159         * config/mips/mips.h (PREDICATE_CODES): Likewise.
22160         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
22161         * config/s390/s390.c (general_s_operand): Likewise.
22162         * config/s390/s390.md (mov*): Likewise.
22163         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
22165         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
22166         * expr.c (expand_expr_real_1): Likewise.
22167         * stmt.c (expand_decl): Likewise.
22168         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
22170         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
22171         postponed_insns, put_var_into_stack, put_reg_into_stack,
22172         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
22173         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
22174         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
22175         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
22176         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
22177         purge_bitfield_addressof_replacements, purge_addressof_replacements,
22178         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
22179         struct insns_for_mem_walk_info, insns_for_mem_walk,
22180         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
22181         setjmp_protect_args): Remove.
22182         (push_function_context_to): Don't handle var_refs_queue.
22183         (pop_function_context_from, free_after_compilation): Likewise.
22184         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
22185         (assign_parms, allocate_struct_function): Likewise.
22186         (use_register_for_decl): New.
22187         (expand_function_end): Don't setjmp_protect.
22188         * function.h (struct emit_status): Update commentary.
22189         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
22190         (max_parm_reg, parm_reg_stack_loc): Remove.
22191         * passes.c (DFI_addressof): Remove.
22192         (dump_file_info): Remove addressof.
22193         (rest_of_handle_addressof): Remove.
22194         (rest_of_compilation): Don't call it.
22195         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
22196         * stmt.c (expand_decl): Use use_register_for_decl.
22197         * tree.h: Update decls.
22198         * web.c (mark_addressof): Remove.
22199         * doc/invoke.texi (-dF): Remove.
22201 2004-07-03  Richard Henderson  <rth@redhat.com>
22203         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
22204         instead of gen_mem_addressof.
22205         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
22206         TImode output register.
22208 2004-07-03  Richard Henderson  <rth@redhat.com>
22210         PR tree-optimization/16341
22211         * tree-sra.c (sra_walk_function): Increment to next stmt before
22212         processing the current stmt.
22213         (sra_insert_after): Always use BSI_SAME_STMT.
22215 2004-07-03  Richard Henderson  <rth@redhat.com>
22217         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
22218         fp plus with minus.
22220 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
22222         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
22223         with tree_int_cst_equal.
22225 2004-07-03  Andreas Schwab  <schwab@suse.de>
22227         * config/ia64/ia64.md: Define new attribute "empty".
22228         (prologue_use, nop_x, insn_group_barrier): Set it.
22230         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
22231         skip over "empty" insns.
22233 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22235         * tree-inline.c (initialize_inlined_parameters): Pass proper function
22236         context to gimplify_body.
22237         (walk_tree): Don't walk into types twice.
22238         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
22240         * tree-sra.c (generate_element_init): Remove any useless conversions.
22242         * gimplify.c (gimplify_conversion): Remove stripping useless
22243         conversions from here.
22244         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
22245         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
22246         Unshare before substituting PLACEHOLDER_EXPR.
22247         (gimplify_modify_expr_to_memset): Likewise.
22248         Pass address of TO to memset, not TO itself.
22249         (gimplify_init_constructor): Make copy of OBJECT so we have it each
22250         time we make an expression (to match a PLACEHOLDER_EXPR).
22252         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
22253         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
22254         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
22255         * tree-ssa-dom.c (local_fold): Likewise.
22257         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
22258         * langhooks.h (strct lang_hooks): New field type_max_size.
22259         * function.c (assign_temp): Call it.
22261 2004-07-03  Steven Bosscher  <stevenb@suse.de>
22263         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
22264         * config/sh/sh.md: Convert the SH1 pipeline description to
22265         a DFA model.
22267 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
22269         * c-decl.c (struct c_binding): Remove contour field; add
22270         depth, invisible, nested fields.
22271         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
22272         (B_IN_EXTERNAL_SCOPE): New convenience macros.
22273         (bind): Add invisible and nested arguments. Initialize
22274         new fields of struct c_binding; adjust loop scanning for
22275         insertion point.
22276         (free_binding_and_advance): Clear structure with memset.
22277         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
22278         in file scope, even if it's in external scope too.
22279         (pushdecl): Adjust to match.  Create invisible file-scope
22280         declarations for block-scope forward declarations of static functions.
22281         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
22282         (undeclared_variable, lookup_label, declare_label, define_label)
22283         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
22284         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
22285         (store_parm_decls_oldstyle): Adjust to match.
22286         (diagnose_mismatched_decls): Correct handling of linkage clashes.
22287         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
22289         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
22290         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
22292 2004-07-02  Richard Henderson  <rth@redhat.com>
22294         * c-decl.c (grokdeclarator): Don't frob current_function_decl
22295         around variable_size.
22296         (set_decl_nonlocal): Remove.
22297         (store_parm_decls): Add stmts for pending sizes.
22298         * calls.c (calls_function, calls_function_1): Remove.
22299         (precompute_arguments): Don't call it.
22300         * cfgexpand.c (set_save_expr_context): Remove.
22301         (tree_expand_cfg): Don't call it.
22302         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
22303         (dwarf2out_finish): Likewise.
22304         * expr.c (emit_block_move): Adjust addresses to BLKmode.
22305         (store_constructor): Don't pre-evaluate SAVE_EXPR.
22306         (safe_from_p): Don't queue SAVE_EXPRs.
22307         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
22308         or build plain VAR_DECLs.
22309         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
22310         (fold): Likewise.
22311         (fold_checksum_tree): Don't special-case SAVE_EXPR.
22312         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
22313         (put_var_into_stack): Don't handle SAVE_EXPR.
22314         (gen_mem_addressof): Likewise.
22315         * function.h (struct function): Remove x_save_expr_regs.
22316         (save_expr_regs): Remove.
22317         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
22318         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
22319         * stor-layout.c (variable_size): Don't set it.
22320         (force_type_save_exprs, force_type_save_exprs_1): Remove.
22321         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
22322         all callers.  Don't set SAVE_EXPR_CONTEXT.
22323         * tree-inline.h (remap_save_expr): Update decl.
22324         * tree.c (save_expr): Update build size.
22325         (first_rtl_op): Don't handle SAVE_EXPR.
22326         (unsave_expr_1, contains_placeholder_p): Likewise.
22327         (decl_function_context): Likewise.
22328         * tree.def (SAVE_EXPR): Remove args 1 and 2.
22329         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
22330         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
22332 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
22334         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
22335         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
22336         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
22337         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
22338         some first-person references and patronizing comments.  Based on
22339         printed manual.
22340         * doc/invoke.texi: Don't reference fortran@gnu.org.
22341         * doc/trouble.texi (Warning when a non-void function value is
22342         ignored): Rewrite.  From Russ Allbery and Chris Devers.
22344 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
22346         * tree-ssa-pre.c (bitmap_set_t): New.
22347         (bb_value_sets): avail_out is now a bitmap_set_t.
22348         (bitmap_find_leader): New function.
22349         (bitmap_value_insert_into_set): Ditto.
22350         (bitmap_set_copy): Ditto.
22351         (bitmap_value_replace_in_set): Ditto.
22352         (bitmap_set_contains_value): Ditto.
22353         (bitmap_set_new): Ditto.
22354         (bitmap_set_pool): New pool.
22355         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
22356         (insert_aux): Ditto.
22357         (add_to_sets): Ditto.
22358         (compute_avail): Ditto
22359         (eliminate): Ditto.
22360         (init_pre): Ditto.
22361         (fini_pre): Ditto.
22362         (execute_pre): Ditto.
22364 2004-07-02  Roger Sayle  <roger@eyesopen.com>
22366         * config/rs6000/rs6000.c (struct processor_costs): New structure
22367         used to hold instruction latencies/sizes for processor types.
22368         (rs6000_cost): New global variable pointing to current CPU's costs.
22369         (rs6000_override_options): Initialize rs6000_cost to point to the
22370         appropriate cost table based upon rs6000_cpu and optimize_size.
22371         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
22372         timings inline.
22374 2004-07-02  Richard Henderson  <rth@redhat.com>
22376         * expmed.c (make_tree): Don't use SET_DECL_RTL.
22378 2004-07-02  Steven Bosscher  <stevenb@suse.de>
22380         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
22382 2004-07-01  Richard Henderson  <rth@redhat.com>
22384         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
22385         (alpha_gp_save_rtx): Use assign_stack_local instead of
22386         gen_mem_addressof.
22388 2004-07-01  Richard Henderson  <rth@redhat.com>
22390         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
22391         (alpha_rtx_cost_data): Update to match.
22392         (alpha_rtx_cost_size): New.
22393         (alpha_rtx_costs): Honor optimize_size.
22395 2004-07-01  Richard Henderson  <rth@redhat.com>
22397         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
22398         * cfgexpand.c (tree_expand_cfg): Do it here.
22399         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
22400         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
22401         * config/mips/mips.c (mips_output_mi_thunk): And here.
22402         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
22403         * config/sh/sh.c (sh_output_mi_thunk): And here.
22404         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
22406 2004-07-01  Richard Henderson  <rth@redhat.com>
22408         * tree.def (RTL_EXPR): Remove.
22409         * c-typeck.c (lvalue_p): Don't handle it.
22410         * expr.c (safe_from_p): Likewise.
22411         (expand_expr_real_1): Likewise.
22412         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
22413         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
22414         * gengtype.c (adjust_field_tree_exp): Likewise.
22415         * stmt.c (warn_if_unused_value): Likewise.
22416         * tree-gimple.c (recalculate_side_effects): Likewise.
22417         * tree-pretty-print.c (dump_generic_node): Likewise.
22418         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
22419         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
22420         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
22422         * stmt.c (struct stmt_status): Remove x_last_expr_type,
22423         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
22424         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
22425         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
22426         all the bits that tracked last_expr.
22427         (expand_end_bindings): Don't track last_expr.
22428         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
22429         (clear_last_expr): Remove.
22430         (expand_asm): Don't call it.
22431         (expand_asm_operands, expand_end_cond): Likewise.
22432         (expand_naked_return, expand_null_return_1): Likewise.
22433         * c-typeck.c (c_begin_compound_stmt): Likewise.
22434         * cfgexpand.c (expand_block): Use expand_expr_stmt.
22435         * expr.c (expand_expr_real_1): Likewise.
22436         * tree.h: Update prototypes.
22438         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
22439         (struct emit_status): Remove sequence_rtl_expr.
22440         (struct function): Remove x_rtl_expr_chain.
22441         (seq_rtl_expr, rtl_expr_chain): Remove.
22442         * function.c (struct temp_slot): Remove rtl_expr.
22443         (assign_stack_temp_for_type): Don't set it.
22444         (free_temp_slots, pop_temp_slots): Don't check it.
22445         (free_after_compilation): Don't clear x_rtl_expr_chain.
22446         (fixup_var_refs): Don't search it.
22447         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
22448         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
22449         or seq_rtl_expr.
22450         (push_topmost_sequence): Likewise.
22451         (end_sequence, init_emit): Likewise.
22452         (start_sequence_for_rtl_expr): Remove.
22453         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
22454         * rtl.h (preserve_rtl_expr_result): Remove.
22456 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
22458         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
22459         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
22460         typos.
22462 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
22464         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
22465         (STANDARD_STARTFILE_PREFIX_2): Define.
22466         (standard_startfile_prefix_1): Initialize to
22467         STANDARD_STARTFILE_PREFIX_1.
22468         (standard_startfile_prefix_2): Initialize to
22469         STANDARD_STARTFILE_PREFIX_2.
22470         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
22471         (STANDARD_STARTFILE_PREFIX_1): Define.
22472         (STANDARD_STARTFILE_PREFIX_2): Define.
22473         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
22474         (STANDARD_STARTFILE_PREFIX_2): Document.
22476 2004-07-01  Richard Henderson  <rth@redhat.com>
22478         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
22479         in order to disable scalarization.  Instead set a flag and wait
22480         for a candidate decl.
22482 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
22484         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
22485         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
22486         Use terminology "testsuite" and "enumerated".
22488 2004-07-01  Richard Henderson  <rth@redhat.com>
22490         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
22491         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
22492         (initial_return_save): Likewise.
22493         (flush_queued_reg_saves): Remap register numbers.
22494         (dwarf2out_return_reg): Likewise.
22496 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22498         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
22500         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
22501         access functions for lower bound and element size and only output
22502         if lower bound nonzero or element size not same as that of type.
22503         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
22505 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
22507         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
22509 2004-07-01  Per Bothner  <per@bothner.com>
22511         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
22513 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
22515         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
22516         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
22517         first operand.  Don't optimize if the bitfield is volatile.
22519 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
22521         * c-pretty-print.c (pp_c_postfix_expression): Handle
22522         floating-point comparison operators.
22523         (pp_c_expression): Pass floating-point comparison
22524         operators to pp_c_postfix_expression.
22526 2004-07-01  Roger Sayle  <roger@eyesopen.com>
22528         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
22529         rtx_cost instead of "had_mult" to determine whether the transformed
22530         expression is cheaper than the original.
22532 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
22534         * alias.c (get_alias_set, canon_rtx, get_addr,
22535         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
22536         Use MEM_P.
22537         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
22538         expand_builtin): Likewise.
22539         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
22540         Likewise.
22541         * combine.c (can_combine_p, combinable_i3pat, try_combine,
22542         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
22543         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
22544         record_dead_and_set_regs_1, get_last_value_validate,
22545         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
22546         * cse.c (check_dependence, canon_hash, equiv_constant,
22547         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
22548         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
22549         count_reg_usage): Likewise.
22550         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
22551         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
22552         cselib_record_sets): Likewise.
22553         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
22554         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
22555         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
22556         * df.c (df_uses_record): Likewise.
22557         * dojump (do_jump): Likewise.
22558         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
22559         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
22560         decl_start_label): Likewise.
22561         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
22562         operand_subword, change_address_1, make_safe_from): Likewise.
22563         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
22564         stabilize, force_not_mem): Likewise.
22565         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
22566         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
22567         * expr.c (convert_move, convert_modes, emit_block_move,
22568         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
22569         emit_move_insn_1, expand_assignment, store_expr,
22570         store_constructor_field, store_constructor, store_field,
22571         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
22572         Likewise.
22573         * final.c (cleanup_subreg_operands, alter_subreg,
22574         get_mem_expr_from_op): Likewise.
22575         * flow.c (notice_stack_pointer_modification_1,
22576         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
22577         Likewise.
22578         * function.c (mark_temp_addr_taken, preserve_temp_slots,
22579         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
22580         optimize_bit_field, flush_addressof, purge_addressof_1,
22581         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
22582         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
22583         keep_stack_depressed): Likewise.
22584         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
22585         noce_process_if_block, find_memory): Likewise.
22586         * integrate.c (subst_constants, allocate_initial_values): Likewise.
22587         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
22588         update_equiv_regs): Likewise.
22589         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
22590         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
22591         * optabs.c (expand_abs, emit_unop_insn): Likewise.
22592         * passes.c (rest_of_handle_final): Likewise.
22593         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22594         move2add_note_store): Likewise.
22595         * ra-build.c (detect_remat_webs): Likewise.
22596         * ra-debug.c (dump_static_insn_cost): Likewise.
22597         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
22598         * recog.c (validate_change, apply_change_group, cancel_changes,
22599         validate_replace_rtx_1, general_operand, register_operand,
22600         nonmemory_operand, push_operand, pop_operand, memory_operand,
22601         indirect_operand, asm_operand_ok, offsettable_memref_p,
22602         offsettable_nonstrict_memref_p, constrain_operands,
22603         store_data_bypass_p): Likewise.
22604         * reg-stack.c (subst_stack_regs_pat): Likewise.
22605         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
22606         copy_cost, reg_scan_mark_refs): Likewise.
22607         * regmove.c (optimize_reg_copy_3, stack_memref_p,
22608         combine_stack_adjustments_for_block): Likewise.
22609         * regrename.c (copyprop_hardreg_forward_1): Likewise.
22610         * reload.c (can_reload_into, push_reload, decompose, immune_p,
22611         find_reloads, find_reloads_address, find_reloads_address_1,
22612         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
22613         find_equiv_reg): Likewise.
22614         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
22615         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
22616         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
22617         delete_address_reloads): Likewise.
22618         * resource.c (mark_referenced_resources): Likewise.
22619         * rtlanal.c (get_jump_table_offset, count_occurrences,
22620         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
22621         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
22622         num_sign_bit_copies1): Likewise.
22623         * rtlhooks.c (gen_lowpart_general): Likewise.
22624         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
22625         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
22626         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
22627         sdbout_global_decl): Likewise.
22628         * simplify-rtx.c (simplify_subreg): Likewise.
22629         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
22630         expand_anon_union_decl, expand_end_case_type): Likewise.
22631         * unroll.c (calculate_giv_inc): Likewise.
22632         * var-tracking.c (stack_adjust_offset_pre_post,
22633         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
22634         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
22635         vt_add_function_parameters): Likewise.
22636         * varasm.c (make_var_volatile, notice_global_symbol,
22637         assemble_external, decode_addr_const, mark_weak,
22638         default_encode_section_info): Likewise.
22640 2004-07-01  Steven Bosscher  <stevenb@suse.de>
22642         * stmt.c (check_seenlabel): Remove.
22643         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
22645 2004-07-01  Richard Henderson  <rth@redhat.com>
22647         * function.h (struct function): Remove x_function_call_count.
22648         (function_call_count): Remove.
22649         * calls.c (expand_call): Don't set it.
22650         * integrate.c (copy_rtx_and_substitute): Likewise.
22652         * function.h (struct function): Remove x_cleanup_label.
22653         (cleanup_label): Remove.
22654         * stmt.c (expand_value_return): Don't use it.
22655         * function.c (free_after_compilation): Don't set it.
22656         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
22657         * cfgexpand.c (tree_expand_cfg): Update call.
22658         * tree.h (expand_function_start): Update decl.
22660 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
22662         PR c/1027
22663         * c-lang.c (c_initialize_diagnostics): Move from here ...
22664         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
22665         (c_tree_printer): Use pretty-printer to format %T.
22666         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
22667         before '*' if not C++.
22668         (pp_c_direct_abstract_declarator): Don't try to print array upper
22669         bound for flexible array members.
22670         * c-tree.h: Include "diagnostic.h".
22671         (c_initialize_diagnostics): Declare.
22672         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
22673         * c-format.c (format_type_warning): New function.  Improve
22674         diagnostics for incorrect format argument types.
22675         (check_format_types): Use it.  Add two parameters.  Use the
22676         TYPE_MAIN_VARIANT of wanted_type.
22677         (check_format_info_main): Pass new parameters to
22678         check_format_types.
22679         (struct format_wanted_type): Update comment.
22681 2004-07-01  Nick Clifton  <nickc@redhat.com>
22683         * target.h (struct gcc_target): Add new field to struct cxx:
22684         import_export_class.
22685         * target-def.h (TARGET_CXX): Initialise the new field.
22686         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
22687         the new field.
22688         * doc/tm.texi: Document the new target hook.
22690 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
22692         * builtins.c (fold_builtin_classify): Fix typo.
22694 2004-07-01  Richard Henderson  <rth@redhat.com>
22696         * function.c (identify_blocks, identify_blocks_1): Remove.
22697         * function.h (identify_blocks): Remove.
22698         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
22700 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
22702         * builtins.c (fold_builtin_classify): New.
22703         (fold_builtin_unordered_cmp): Fix commentary.
22704         (fold_builtin): Use it.
22705         * builtins.def: Define builtins for isnan,
22706         isnanf, isnanl, finite, finitef, finitel,
22707         isinf, isinff, isinfl.
22709 2004-07-01  Richard Henderson  <rth@redhat.com>
22711         * function.h (struct function): Remove dont_emit_block_notes.
22712         * gimple-low.c (lower_function_body): Don't set it.
22713         * cfgexpand.c (expand_block): Don't check it.
22714         * cfglayout.c (insn_locators_initialize): Likewise.
22715         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
22716         * passes.c (rest_of_compilation): Likewise.
22717         * stmt.c (expand_start_bindings_and_block): Likewise.
22718         (expand_end_bindings): Likewise.
22720 2004-07-01  Richard Henderson  <rth@redhat.com>
22722         * cgraph.h (cgraph_build_static_cdtor): Declare.
22723         * cgraphunit.c (cgraph_build_static_cdtor): New.
22724         * c-objc-common.c (build_cdtor): Use it.
22725         * coverage.c (create_coverage): Likewise.
22726         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
22727         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
22729 See ChangeLog.11 for earlier changes.