OSDN Git Service

* sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge predecessor in
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-11-22  Nick Clifton  <nickc@redhat.com>
2
3         * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
4         predecessor in the first for-loop.
5
6 2004-11-21  Stan Shebs  <shebs@apple.com>
7
8         * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
9         UNION_TYPE case.
10         (function_arg): Move darwin test up, sniff mode first for
11         efficiency, test for union type.
12
13 2004-11-21  Dale Johannesen  <dalej@apple.com>
14
15         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Define.
16
17 2004-11-21  Jeff Law  <law@redhat.com>
18
19         * tree-ssa.c (verify_use): Fix comment.
20         (verify_phi_args): Check that the number of incoming edges matches
21         the number of PHI arguments.  Check that each PHI argument is
22         either an SSA_NAME or an invariant.  Coalesce tests for PHIs for
23         dead or duplicated edges.  Clear e->aux earlier and avoid separate
24         loop to clear e->aux and test for missed edges.
25         (verify_ssa): Remove first walk over statements.  Move checking
26         of PHI args into verify_phi_args.  Move checking of statements
27         with aliased stores and V_MAY_DEFS into the remaining loop over
28         the statements.  Register defs by walking through the formal
29         SSA_NAME table.
30
31 2004-11-21  Roger Sayle  <roger@eyesopen.com>
32
33         PR middle-end/18520
34         * dojump.c (compare_from_rtx): Clarify mode argument in function
35         description.  Correct order of mode/cmp_mode arguments in call to
36         simplify_relational_operation.  Check "tem" for COMPARISON_P.
37
38 2004-11-21  Paolo Bonzini  <bonzini@gnu.org>
39             David Edelsohn  <edelsohn@gnu.org>
40
41         PR target/17836
42         * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
43         synthetic vectors in memory.
44         (function_arg_boundary): Align large synthetic vectors.
45         (rs6000_pass_by_reference): Pass synthetic vectors in memory.
46
47 2004-11-21  Jeff Law  <law@redhat.com>
48
49         * cfg.c (update_bb_profile_for_threading): Do not rescale the
50         successor probabilities if they are not going to change.  Pull
51         division out of loop if we do need to rescale successor probabilities.
52
53         * tree-ssa-threadupdate.c (redirection_data_hash): Use the
54         index of the destination block for the hash value rather than
55         hashing a pointer.
56
57 2004-11-20  Joseph S. Myers  <joseph@codesourcery.com>
58
59         * c-typeck.c (build_array_ref): Don't check for index == 0.  Make
60         checks for neither argument being an array or pointer (swapping
61         the arguments if necessary), the array argument being a pointer to
62         or array of functions and for -Wchar-subscripts warnings upfront.
63
64 2004-11-20  Jeff Law  <law@redhat.com>
65
66         * regrename.c (copyprop_hardreg_forward): Only search for a
67         previously processed block if the current block only has one
68         predecessor.
69
70 2004-11-20  Kazu Hirata  <kazu@cs.umass.edu>
71
72         * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
73         typos.
74         * config/arm/arm.c: Follow spelling conventions.
75
76 2004-11-20  Richard Earnshaw  <rearnsha@arm.com>
77
78         * arm.c (arm_override_options): Use arm_ld_sched rather than testing
79         a bit in tune_flags.
80         (const_double_needs_minipool): Likewise.  Split most of the code out
81         into ...
82         (arm_const_double_inline_cost): ... new function here.
83         * arm-protos.h (arm_const_double_inline_cost): Add prototype.
84         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
85         word constants of length 2, 3 and 4 insns respectively.
86         (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
87         * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
88         constraints.  Set insn lenghts accordingly.
89
90 2004-11-19  Jeff Law  <law@redhat.com>
91
92         * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
93         a hash table.  Extensive modifications throughout to support
94         that change.
95         (struct el): New.
96         (struct local_info): New.
97         (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
98         fields.
99         (redirection_data): Now a hashtable.
100         (redirection_data_hash, redirection_data_eq): New.
101         (lookup_redirection_data, create_duplicates): New.
102         (create_edge_and_update_destionation_phis): New.
103         (fixup_template_block, redirect_edges): New.
104         (thread_block): Use hash table traversals instead of loops over
105         varray entries or incoming edge vectors.
106
107 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
108
109         * basic-block.h (edge_def): Add dest_idx.
110         * cfg.c (unchecked_make_edge): Initialize dest_idx.
111         (remove_edge): Simplify the disconnection of an edge from its
112         destination.
113         (redirect_edge_succ): Likewise.
114         * cfghooks.c (verify_flow_info): Check the consistency of
115         dest_idx for each edge.
116
117 2004-11-19  Aldy Hernandez  <aldyh@redhat.com>
118
119         * simplify-rtx.c (simplify_ternary_operation): Use
120         gen_int_mode.
121
122 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
123
124         * tree-cfg.c (reinstall_phi_args): New.
125         (tree_split_edge): Use it after redirecting an edge.  Don't
126         modify PHI_ARG_EDGE.
127
128 2004-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
129
130         * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
131         if checking is enabled.
132
133 2004-11-19  Joseph S. Myers  <joseph@codesourcery.com>
134
135         * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
136         too many nested scopes.
137
138 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
139
140         PR tree-opt/18181
141         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
142         changed to suppoer uses-after-loop and to void creating flow paths
143         that shouldn't exist.
144         (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
145         Modified to fit the new peeling scheme. Avoid quadratic behavior.
146         (slpeel_add_loop_guard): Takes additional argument.
147         (slpeel_verify_cfg_after_peeling): New function.
148         (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
149         documentation. Use 'exit-bb' instead of creating 'new-bb'.
150         (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
151         the new peeling scheme.
152         (copy_phi_nodes): Function removed. Its functionality moved to
153         update_phis_for_duplicate_loop.
154         (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
155         moved here. Added documentation. Modified to fit the new peeling scheme.
156         (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
157         needed - done in slpeel_tree_peel_loop_to_edge.
158         (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
159         (vect_do_peeling_for_loop_bound): Add documentation. Call
160         slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
161         with additional argument.
162         (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
163
164         (vect_finish_stmt_generation): Avoid 80 column oveflow.
165
166 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
167
168         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
169         arguments removed.
170         (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
171         without last two arguments. Update single_exit of loops.
172         (vect_update_niters_after_peeling): Removed. Its functionality was
173         moved to vect_do_peeling_for_alignment. 
174         (vect_do_peeling_for_loop_bound): New name for function previously
175         called vect_transform_for_unknown_loop_bound.
176         (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
177         instead of code that duplicates the same functionality.
178         (vect_do_peeling_for_alignment): Functionality of   
179         vect_update_niters_after_peeling moved here.
180         (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
181         previously named vect_transform_for_unknown_loop_bound - for both known
182         and unknown loop bound cases.
183
184 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
185
186         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
187         previously called verify_loop_for_duplication. All conditions compacted
188         into one compound condition. Removed debug dumps.
189         (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
190         functionality moved to vect_can_advance_ivs_p, and some to
191         vect_analyze_loop_form.
192         (vect_can_advance_ivs_p): New function. Contains functionality that was
193         taken out of vect_analyze_loop_with_symbolic_num_of_iters.
194         (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
195         (vect_analyze_operations): Call vect_can_advance_ivs_p and
196         slpeel_can_duplicate_loop_p.
197         (vect_get_loop_niters): Added documentation.
198         (vect_analyze_loop_form): Check the loop entry always - not only in case
199         of unknown loop bound. Create preheader and exit bb if necessary. Apply
200         a check that used to take place in
201         vect_analyze_loop_with_symbolic_num_of_iters.
202         (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
203         Remove redundant call to rewrite_into_loop_closed_ssa.
204         (vect_compute_data_refs_alignment): Removed obsolete comment.
205
206 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
207
208         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
209         function previously called tree_duplicate_loop_to_edge.
210         (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
211         previously called tree_duplicate_loop_to_edge_cfg.
212         (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
213         function name.
214         (slpeel_update_phi_nodes_for_guard): Likewise.
215         (slpeel_make_loop_iterate_ntimes): Likewise.
216         (slpeel_add_loop_guard): Likewise.
217         (allocate_new_names, free_new_names): Function declaration moved to top
218         of file.
219         (rename_use_op, rename_def_op): Likewise.
220         (rename_variables_in_bb, rename_variables_in_loop): Likewise.
221         (vect_generate_tmps_on_preheader): Function declaration moved.
222         (vect_transform_for_unknown_loop_bound): Added missing function
223         declaration.
224
225 2004-11-19  Andrew Pinski  <pinskia@physics.uc.edu>
226
227         PR tree-opt/18507
228         * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
229         Define a VEC(tree_on_heap) for head.
230         (register_new_def): Change second argument to be a VEC(tree_on_heap).
231         * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
232         (tree_ssa_dominator_optimize): Initialize block_defs_stack with
233         the VEC(tree_on_heap) function.  Also free it before returning.
234         (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
235         for block_defs_stack.
236         (restore_currdefs_to_original_value): Use VEC_length instead of
237         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
238         (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
239         for block_defs_stack.
240         * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
241         (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
242         for block_defs_stack.
243         (ssa_register_new_def): Likewise.
244         (ssa_rewrite_initialize_block): Likewise.
245         (rewrite_finalize_block): Use VEC_length instead of
246         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
247         (ssa_rewrite_finalize_block): Likewise.
248         (register_new_def): Change second argument to be a VEC(tree_on_heap).
249         Use VEC_safe_push instead of VARRAY_PUSH_TREE.
250         (rewrite_blocks): Initialize block_defs_stack with
251         the VEC(tree_on_heap) function.  Also free it before returning.
252         (rewrite_ssa_into_ssa): Likewise.
253
254 2004-11-19  Fariborz Jahanian <fjahanian@apple.com>
255
256         * config/darwin.c (machopic_data_defined_p): return 1 for
257         MACHOPIC_DEFINED_FUNCTION.
258
259 2004-11-19  Jeff Law  <law@redhat.com>
260
261         * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
262         arguments.
263
264 2004-11-19  Paul Brook  <paul@codesourcery.com>
265
266         PR target/17735
267         * varasm.c (default_assemble_integer): Allow pointer-sized values.
268         Expand comment.
269
270 2004-11-19  Nick Clifton  <nickc@redhat.com>
271
272         * config/stormy16/stormy16.c (combine_bnp): Add code to handle
273         zero_extension and lshiftrt insns.
274         Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
275         where appropriate.
276         * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
277         to handle bp and bn insn patterns with a zero_extend rtx
278         inside them.
279
280 2004-11-19  Ian Lance Taylor  <ian@wasabisystems.com>
281
282         * config/arm/arm.md (generic_sched): Make const.
283
284 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
285
286         * emit-rtl.c (classify_insn): Make it static.
287         * rtl.h: Remove the corresponding prototype.
288
289         * integrate.c (has_func_hard_reg_initial_val,
290         get_func_hard_reg_initial_val): Make them static.
291         * integrate.h: Remove the corresponding prototypes.
292
293 2004-11-19  Ben Elliston  <bje@au.ibm.com>
294
295         * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
296         (dw2_asm_output_delta_sleb128): Likewise.
297         * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
298         (dw2_asm_output_delta_sleb128): Likewise.
299
300 2004-11-19  Adam Nemet  <anemet@lnxw.com>
301
302         * tree-ssa-alias.c: Fix comment.
303
304 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
305
306         * tree-outof-ssa.c: Fix a comment typo.
307
308 2004-11-19  Ben Elliston  <bje@au.ibm.com>
309
310         * predict.h (predict_insn): Remove extern declaration.
311         * predict.c (predict_insn): Make static.
312
313 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
314
315         * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
316
317 2004-11-18  Nicolas Pitre <nico@cam.org>
318
319         * config/arm/arm.c (const_double_needs_minipool): New function to
320         determine if a CONST_DOUBLE should be pushed to the minipool.
321         (note_invalid_constants): Use it.
322
323 2004-11-18  Paul Brook  <paul@codesourcery.com>
324
325         * config/arm/arm.c (target_float_switch): New variable..
326         (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
327         target_float_switch.
328         * config/arm/arm.h (target_float_switch): Declare.
329         (ARM_FLAG_SOFT_FLOAT): Remove.
330         (TARGET_SWITCHES): Remove hard-float and soft-float.
331         (TARGET_OPTIONS): Add hard-float and soft-float.
332         (TARGET_DEFAULT_FLOAT_ABI): Define.
333         * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
334         (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
335         * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
336         * config/arm/netbsd-elf.h: Ditto.
337         * config/arm/netbsd.h: Ditto.
338         * config/arm/pe.h: Ditto.
339         * config/arm/unknown-elf.h: Ditto.
340         * config/arm/wince-pe.h: Ditto.
341         * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
342         * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
343         * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
344
345 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
346
347         * config/rs6000/altivec.md (VI, VF, V): New mode macros.
348         (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
349         altivec_lvx_4sf): Rename and replace with ...
350         (altivec_lvx_<mode>): ... mode macro version.
351         (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
352         altivec_stvx_4sf): Rename and replace with ... 
353         (altivec_stvx_<mode>): ... mode macro version.
354         (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
355         (mov<mode>): ... mode macro version.
356         (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
357         *movv4sf_internal1): Replace with ...
358         (*mov<mode>_internal): ... mode macro version.
359         (get_vrsave_internal, *set_vrsave_internal, *save_world,
360         *restore_world): Unquote output statements.
361         * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
362         altivec_expand_st_builtin): Adjust insn names.
363
364 2004-11-18  Aldy Hernandez  <aldyh@redhat.com>
365
366         * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
367         previous change.
368         (rs6000_override_options): Likewise.
369         (spe_build_register_parallel): Handle complex doubles on e500v2.
370         (rs6000_spe_function_arg): Likewise.
371         (function_arg): Likewise.
372         (rs6000_function_value): Likewise.
373         (rs6000_libcall_value): Likewise.
374
375 2004-11-18  Andrew Pinski  <pinskia@physics.uc.edu>
376
377         * ifcvt.c (find_if_block): Move the check for the number of edges
378         above the loops checking for complex edges.
379         Remove the counting of edges as we use EDGE_COUNT now.
380
381 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
382
383         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
384         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
385
386 2004-11-18  Andreas Schwab  <schwab@suse.de>
387
388         * config/i386/i386.md (define_peephole2): Revert last change.
389
390 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
391
392         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
393         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
394
395 2004-11-18  Diego Novillo  <dnovillo@redhat.com>
396
397         * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
398         of FOR_EACH_BB.
399
400 2004-11-18  Jon Grimm <jgrimm2@us.ibm.com>
401
402         * Makefile.in (macro_list): Depend on s-macro_list.
403         (s-macro_list): New target.
404
405 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
406
407         PR target/17107
408         * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
409         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
410         (fold_range_test): Adjust.
411         (fold_truthop): Use it.
412         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
413         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
414
415 2004-11-18  Uros Bizjak  <uros@kss-loka.si>
416
417         * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
418         insn split constraint.
419         (define_peephole2): Remove unneeded "&& 1" from peephole2
420         constraints.
421
422 2004-11-18  Ben Elliston  <bje@au.ibm.com>
423
424         * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
425         element for bsi_prev; use @findex instead.
426
427 2004-11-18  Ben Elliston  <bje@au.ibm.com>
428
429         * opts.h (add_input_filename): Remove extern declaration.
430         * opts.c (add_input_filename): Make static.
431
432 2004-11-17  Mark Mitchell  <mark@codesourcery.com>
433
434         * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
435         ATTRIBUTE_UNUSED.
436   
437 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
438
439         * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
440         * system.h: Poison it.
441         * doc/tm.texi: Delete its documentation.
442
443 2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
444             Mark Mitchell  <mark@codesourcery.com>
445
446         * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
447         * config/i386/i386.c (i386_solaris_elf_named_section): New
448         function.
449         * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
450         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
451         64-bit.
452         (ASM_QUAD): Don't undefine for biarch targets.
453         * config/i386/t-sol2: Introduce multilib support.
454
455 2004-11-18  Ben Elliston  <bje@au.ibm.com>
456
457         * cgraphunit.c: Replace "it's" with "its" and fix a typo.
458
459 2004-11-18  Ben Elliston  <bje@au.ibm.com>
460
461         * cgraph.h: Replace "it's" with "its" throughout.
462
463 2004-11-18  Ben Elliston  <bje@au.ibm.com>
464
465         * doc/rtl.texi (Flags): Grammar fix.
466
467 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
468
469         * expmed.c (alg_code): Add alg_unknown.
470         (alg_hash_entry): New.
471         (NUM_ALG_HASH_ENTRIES): Likewise.
472         (alg_hash): Likewise.
473         (synth_mult): Cache the result into alg_hash.
474
475 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
476
477         * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
478         config/rs6000/libgcc-ppc64.ver.
479
480 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
481
482         * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
483         checking if an unconditional return is followed by a barrier.
484
485         * jump.c (condjump_p): Remove unreachable code.
486
487         * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
488         tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
489         tree-ssa-live.h, tree.h: Remove unused prototypes.
490
491 2004-11-17  Jeff Law  <law@redhat.com>
492
493         * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
494         (edge_to_cases_elt): Renamed from edge_to_case_leader.
495         (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
496         (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
497         (edge_to_cases_cleanup, recording_case_labels_p): New functions.
498         (get_cases_for_edge): New function.
499         (start_recording_case_labels, end_recording_case_labels): Similarly.
500         (record_switch_edge): Don't muck with the CASE_LABEL.  Instead
501         chain equivalent CASE_LABEL_EXPRs together.
502         (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
503         (make_switch_expr_edges): Do not record edge/cases here.
504         (cleanup_tree_cfg): Record cases around the call to thread_jumps.
505         (split_critical_edges): Record cases around the edge splitting code.
506         (cleanup_dead_labels): Use CASE_LABEL again.
507         (tree_redirect_edge_and_branch): If we have a mapping from edge
508         to cases, use it to handle redirections.  Else do it the slow way.
509         * tree.h (CASE_LEADER_OR_LABEL): Kill.
510         (CASE_LABEL): Revert to just looking at the tree's second operand.
511         * tree.c (get_case_label): Kill.
512
513 2004-11-17  Diego Novillo  <dnovillo@redhat.com>
514
515         PR tree-optimization/18307
516         * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
517         'orig' are the same node.
518         (collect_points_to_info_r): Do not call merge_pointed_to_info
519         when the PHI argument is identical to the LHS.
520
521 2004-11-17  Steven Bosscher  <stevenb@suse.de>
522
523         * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
524         to insert the exit or entry block.
525         (ssa_prop_init): Use add_control_edge to seed the algorithm.
526
527 2004-11-16  Zack Weinberg  <zack@codesourcery.com>
528
529         * mkmap-flat.awk, mkmap-symver.awk: If the last version
530         assigned to a symbol was '%exclude', do not emit it anywhere.
531         If leading_underscore is true, prefix all symbols from the
532         version scripts with a leading underscore before comparing
533         them with nm output or emitting them.  Remove support for dot
534         symbols.
535         * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
536         (SHLIB_MAPFILES): Use libgcc-std.ver.
537         (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
538         (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
539         * config/sh/t-linux: Use the normal libgcc-std.ver, plus
540         libgcc-excl.ver and libgcc-glibc.ver.
541
542         * config/sh/libgcc-excl.ver: New file.
543         * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
544
545 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
546
547         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
548         the test when the edge has the opposite meaning, not when
549         the first argument is invariant.
550
551 2004-11-16  Aldy Hernandez  <aldyh@redhat.com>
552
553         * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
554         doubles.
555         (rs6000_complex_function_value): Handle e500 v2 variant.
556
557 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
558
559         Fix PR tree-optimization/18519
560
561         * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
562         * tree-pass.h: Add TODO_cleanup_cfg.
563         * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
564         (ccp_finalize): Remove call to cleanup_cfg.
565         * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
566         (pass_cd_dce): Ditto.
567         (perform_tree_ssa_dce): Remove call to cleanup_cfg,
568         dump_function_to_file.
569         * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
570         to cleanup_cfg.
571         (pass_ch): Add TODO_cleanup_cfg.
572         * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
573         cleanup_cfg.
574         (pass_loop_done): Add TODO_cleanup_cfg.
575         * tree-ssa-phiopt.c (pass_phiopt): Ditto.
576         (tree_ssa_phiopt): Remove call to cleanup_cfg.
577
578 2004-11-16  Devang Patel  <dpatel@apple.com>
579
580         * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
581
582 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
583
584         * expmed.c, ra-colorize.c: Fix comment typos.
585
586         * doc/tm.texi: Fix typos.
587
588 2004-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
589             Mark Mitchell  <mark@codesourcery.com>
590
591         PR target/6123
592         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
593         __pic__ if PIC.
594
595 2004-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
596
597         * regmove.c (regmove_optimize): Use lowpart_subreg instead of
598         gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
599
600 2004-11-16  Devang Patel  <dpatel@apple.com>
601
602         * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
603
604 2004-11-16  Eric Christopher  <echristo@redhat.com>
605
606         * config/mips/mips.c: Use rtl _P predicates.
607         * config/mips/mips.h: Ditto.
608         * config/mips/mips.md: Ditto.
609
610 2004-11-16  Fariborz Jahanian <fjahanian@apple.com>
611
612         * config/rs6000/altivec.md (altivec_vandc): Canonicalize
613         the pattern.
614
615 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
616
617         * config/s390/s390.c (s390_cc_modes_compatible): New function.
618         (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
619
620 2004-11-16  Kaz Kojima  <kkojima@gcc.gnu.org>
621
622         PR target/18447
623         * config/sh/sh.c (prepare_move_operands): Emit blockage insns
624         before and after the insns for getting GOT address in non-PIC
625         TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
626         is enabled.
627
628 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
629
630         * gcc/cse.c (struct change_cc_mode_args): New structure.
631         (cse_change_cc_mode_insn): New function.
632         (cse_change_cc_mode): Use validate_change to perfom changes.
633         (cse_change_cc_mode_insns, cse_condition_code_reg):
634         Call cse_change_cc_mode_insn.
635
636 2004-11-16  Steven Bosscher  <stevenb@suse.de>
637
638         * stack.h: Remove.
639
640 2004-11-16  Steven Bosscher  <stevenb@suse.de>
641
642         * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
643
644 2004-11-15  Dale Johannesen  <dalej@apple.com>
645
646         * tree-flow.h (add_referenced_temp_var):  Remove name from prototype.
647
648 2004-11-15  Dale Johannesen  <dalej@apple.com>
649
650         * profile.c (compute_branch_probabilities):  Prevent
651         crash with EH in RTL-based profiling.
652
653 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
654
655         * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
656         COND_EXPR_COND.
657         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
658         * tree-ssa-dom.c (thread_across_edge): Likewise.
659         * tree-vectorizer.c (vect_transform_loop_bound): Replace
660         TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
661         COND_EXPR_ELSE.
662
663         * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
664         (tree_flow_call_edges_add): Update the call to
665         bsi_commit_edge_inserts.
666         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
667         * profile.c (branch_prob): Likewise.
668         * tree-mudflap.c (mf_decl_cache_locals): Likewise.
669         * tree-sra.c (scalarize_function): Likewise.
670         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
671         * tree-ssa-pre.c (fini_pre): Likewise.
672         * tree-flow.h: Update the prototype for
673         bsi_commit_edge_inserts.
674
675 2004-11-15  Eric Christopher  <echristo@redhat.com>
676
677         * sched-deps.c (set_sched_group_p): Delete.
678         (delete_all_dependencies): New function.
679         (fixup_sched_groups): Use. New function.
680         (sched_analyze_insn): Use.
681
682 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
683
684         * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
685         RROTATE_EXPR or unknown code.
686         * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
687         LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
688         UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
689         or unknown code.
690
691 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
692
693         PR c/18498
694         * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
695         after processing the declarator.
696
697 2004-11-15  Aldy Hernandez  <aldyh@redhat.com>
698
699         * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
700         vec_duplicate.
701         (altivec_vspltb): Same.
702         (altivec_vspltw): Same.
703         (altivec_vspltisb): Same.
704         (altivec_vspltish): Same.
705         (altivec_vspltisw): Same.
706         (altivec_vspltisw_v4sf): Same.
707         (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
708         UNSPEC_VSPLTISH.
709         Move "End of vector xor's" comment to the right place.
710
711 2004-11-15  Steve Ellcey  <sje@cup.hp.com>
712
713         * config/ia64/ia64.md (*movtf_internal):  Use destination_operand
714         instead of nonimmediate_operand.
715
716 2004-11-15  Mark Mitchell <mark@codesourcery.com>
717
718         * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
719         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
720         * config/sol2.c (solaris_output_init_fini): Update calls to
721         ASM_OUTPUT_CALL.  Include "rtl.h".
722
723 2004-11-15  Mark Mitchell <mark@codesourcery.com>
724
725         * config/sol2-c.c (cmn_err_char_table): Add "p".
726
727 2004-11-15  Mark Mitchell <mark@codesourcery.com>
728
729         * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
730         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
731
732 2004-11-15  Mark Mitchell <mark@codesourcery.com>
733
734         * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
735         within the multilib directory.
736
737 2004-11-15  Nick Clifton  <nickc@redhat.com>
738
739         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
740         builtin assert of cpu=xstormy16.
741
742 2004-11-15  Nathan Sidwell  <nathan@codesourcery.com>
743
744         * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
745         variable.
746
747 2004-11-14  Richard Henderson  <rth@redhat.com>
748
749         PR 18480
750         * calls.c (struct arg_data): Add parallel_value.
751         (precompute_register_parameters): Set it.
752         (load_register_parameters): Use it.
753         (store_one_arg): Also set it here.
754
755 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
756
757         PR tree-optimization/18431
758         * fold-const.c (associate_trees): Do not produce x + 0.
759         (fold_widened_comparison, fold_sign_changed_comparison): New functions.
760         (fold): Use them.
761         * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
762         Moved ...
763         * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
764         * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
765
766 2004-11-14  Eric Botcazou <ebotcazou@libertysurf.fr>
767
768         * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
769
770 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
771
772         * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
773         value-prof.c: Fix comment typos.
774
775 2004-11-14  Stan Shebs  <shebs@apple.com>
776
777         Basic ABI changes for passing structs by value in 64-bit Darwin.
778         * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
779         (rs6000_override_options): Set it for 64-bit Darwin.
780         (rs6000_parse_abi_options): Add testing options to change it.
781         (rs6000_return_in_memory): Test whether the type is one
782         that can be passed in registers.
783         (darwin64_function_arg_advance): New.
784         (function_arg_advance): Call it, plus add recursion depth
785         argument and test when counting off arguments.
786         (rs6000_darwin64_function_arg): New.
787         (function_arg): Call it.
788         (setup_incoming_varargs): Add argument to function_arg_advance.
789         (rs6000_darwin64_function_value): New.
790         (rs6000_function_value): Call it.
791         * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
792         * config/rs6000/rs6000-protos.h: Update decl of
793         function_arg_advance.
794
795 2004-11-14  Andrew Pinski  <pinskia@physics.uc.edu>
796
797         PR c/17279
798         * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
799         support TImode before adding __int128_t and __uint128_t types.
800
801 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
802
803         PR tree-opt/18400
804         * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
805         (vect_transform_loop_bound): Set loop->nb_iterations.
806
807 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
808             Andrew Pinski  <pinskia@physics.uc.edu>
809
810         PR tree-opt/18425
811         * tree-vectorize.c (vect_build_loop_niters): Do not insert
812         NULL into the instruction stream. Initialize new_bb to NULL.
813         (vect_update_ivs_after_vectorizer): Likewise.
814         (vect_gen_niters_for_prolog_loop): Likewise.
815
816 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
817
818         PR tree-optimization/18431
819         * tree-flow.h (stmt_references_memory_p): Declare.
820         * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
821         * tree-ssa.c (stmt_references_memory_p): New function.
822
823 2004-11-14  Andreas Schwab  <schwab@suse.de>
824
825         * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
826         $(EXPR_H).
827
828 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
829
830         * c-common.c (walk_stmt_tree): Remove.
831         * c-common.h: Remove the corresponding prototype.
832
833         * emit-rtl.c (push_to_full_sequence): Remove.
834         * rtl.h: Remove the corresponding prototype.
835
836         * cselib.c, expr.c: Fix comment typos.
837
838 2004-11-13  Richard Henderson  <rth@redhat.com>
839
840         * calls.c (precompute_register_parameters): Force all PARALLELs
841         into pseudo registers.
842         (load_register_parameters): Copy PARALLELs into hard registers.
843         * function.c (assign_parm_setup_block): Copy PARALLELS into
844         pseudo registers.  Do emit_group_store in conversion_insns.
845         * expr.c (emit_group_load_1): Rename from emit_group_load, take
846         tmps as an argument.  Move final copy loop ...
847         (emit_group_load): ... here.  New function.
848         (emit_group_load_into_temps, emit_group_move_into_temps): New.
849         * expr.h: Declare them.
850
851 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
852
853         * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
854         tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
855         with PHI_CHAIN where appropriate.
856
857 2004-11-13  Dale Johannesen  <dalej@apple.com>
858
859         * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
860         (tree_block_label): Ditto.
861         (flush_pending_stmts): Ditto.
862         (insert_edge_copies): Ditto.
863         (expr_invariant_in_loop_p): Ditto.
864         (TDF_USE_OPS): Parenthesize definition.
865         (TDF_USE_VOPS): Ditto.
866
867 2004-11-13  David Edelsohn  <edelsohn@gnu.org>
868
869         * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
870         * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
871         (atoll): Declare.
872         * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
873
874 2004-11-14  Joseph Myers  <joseph@codesourcery.com>
875
876         * config/i386/i386.c (override_options): Move loop to set default
877         tuning to correct place.
878
879 2004-11-13  Zak Kipling  <zak@transversal.com>
880
881         PR target/18300
882         * config/i386/i386.c (classify_argument): Fix infinite loop when
883         passing object with 3 or more base classes by value.
884
885 2004-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
886
887         * doc/md.texi (constraints) <% modifier>: Mention that it is
888         useless when the two alternatives are strictly identical.
889
890 2004-11-13  Richard Henderson  <rth@redhat.com>
891
892         * expmed.c (extract_split_bit_field): Temporarily disable call to
893         extract_force_align_mem_bit_field.
894
895 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
896
897         * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
898         formatting.
899
900         * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
901         lambda-code.c, postreload.c, predict.c, tree-sra.c,
902         tree-ssa-loop-manip.c, tree.c: Fix comment typos.
903
904 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
905
906         * doc/install.texi (automake): Correctly document that everything now
907         will use automake 1.9.3.
908
909 2004-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
910
911         PR target/18347
912         * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
913         TImode.  Sorry for other non-complex larger-than-64-bit modes.
914         * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
915
916 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
917
918         * doc/install.texi (automake): Document that everything now uses 1.9.
919
920 2004-11-13  Bernd Schmidt  <bernd.schmidt@analog.com>
921
922         * cse.c (cse_insn): Stores in a libcall sequence can invalidate
923         previous loads.
924
925 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
926
927         * tree.h: Fix comment typos.
928
929 2004-11-13  Steven Bosscher  <stevenb@suse.de>
930
931         * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
932         HARD_REGISTER_NUM_P.
933
934         * cselib.c (new_cselib_val): Make comment correct and more detailed.
935         * flow.c (mark_set_1): Likewise.
936
937         * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
938         duplicate_eh_regions): Remove.
939         * except.h (duplicate_eh_regions): Remove prototype.
940         * integrate.c (get_label_from_map, copy_rtx_and_substitute,
941         global_const_equiv_varray): Remove.
942         * integrate.h (get_label_from_map, copy_rtx_and_substitute,
943         global_const_equiv_varray, set_label_in_map): Remove prototypes,
944         extern declaration, and #define.
945         (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
946         (struct inline_remap): Remove.
947         * varray.c (struct element): Remove entry for const_equiv_data.
948         * varray.h (struct const_equiv_data): Remove.
949         (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
950         (union varray_data_tag) <const_equiv>: Remove.
951         (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
952         VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
953
954         * regstack.c (record_label_references): Remove unused function.
955
956         * rtl.def (VALUE): Update comment.
957         (LABEL_REF): Remove unused operand 2.
958         * rtl.h (struct rtx_def): Update for removed accessor macros.
959         (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
960         REG_LOOP_TEST_P): Remove.
961         (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
962         * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
963         * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
964
965 2004-11-13  James A. Morrison  <phython@gcc.gnu.org>
966             Eric Botcazou  <ebotcazou@libertysurf.fr>
967
968         PR target/18230
969         * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
970         patterns.
971         * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
972         (V32I): New macro for 32-bit modes.
973         (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
974         iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
975         xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
976         xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
977         one_cmpldi_sp64): Use V64I instead of DI.
978         (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
979         xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
980         (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
981         (nandv64i_vis, nandv32i_vis): New patterns.
982
983 2004-11-12  Mike Stump  <mrs@apple.com>
984
985         * Makefile.in: Add html support.
986         * java/Make-lang.in: Likewise.
987         * fortran/Make-lang.in: Likewise.
988         * treelang/Make-lang.in: Likewise.
989         * doc/install.texi: Likewise.
990         * doc/makefile.texi: Likewise.
991         * doc/sourcebuild.texi: Likewise.
992
993 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
994
995         * tree-ssa-loop-manip.c: Fix a comment typo.
996
997 2004-11-12  Mike Stump  <mrs@apple.com>
998
999         * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
1000         renaming this node to Concept Index.
1001         * doc/gccint.texi (Index): Likewise.  Also minor formatting tweaks
1002         to more closely match gcc.texi.
1003
1004 2004-11-12  Jeff Law  <law@redhat.com>
1005
1006         * tree-cfg.c (hashtab.h): Include.
1007         (struct edge_to_case_leader_elt): New structure.
1008         (edge_to_case_leader): New.
1009         (edge_to_case_leader_hash): New hashtable hasing function.
1010         (edge_to_case_leader_eq): New hashtable equality function.
1011         (record_switch_edge): New function.
1012         (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
1013         (make_switch_expr_edges): Build the edge-to-case-leader
1014         hash table.  Tear down the hash table when we're done.
1015         (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
1016         CASE_LABEL.
1017         (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
1018         (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
1019         to use new concept of case leaders to reduce overhead of
1020         redirecting outgoing edges from switch statements.
1021         * tree.c (get_case_label): New function.
1022         * tree.h (CASE_LABEL): Define in terms of get_case_label.
1023         (CASE_LEADER_OR_LABEL): Define.
1024
1025 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
1026
1027         * varasm.c (output_addressed_constants): For CONST_DECLs,
1028         output the initializer if present.
1029
1030 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
1031
1032         * config/rs6000/darwin.h: Fix confusing typo in comment.
1033
1034 2004-11-12  Devang Patel  <dpatel@apple.com>
1035
1036         * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
1037
1038 2004-11-12  Devang Patel  <dpatel@apple.com>
1039
1040         * tree-if-conv.c (clean_predicate_lists): Use loop header
1041         and latch directly.
1042
1043 2004-11-12  Richard Henderson  <rth@redhat.com>
1044
1045         PR 17778
1046         * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
1047         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
1048         (TARGET_96_ROUND_53_LONG_DOUBLE): New.
1049         * config/i386/i386-modes.def (XF): Use it.
1050
1051 2004-11-11  Geoffrey Keating  <geoffk@apple.com>
1052
1053         * Makefile.in (macro_list): Use move-if-change to avoid spurious
1054         rebuilds.
1055
1056 2004-11-12  Mark Mitchell  <mark@codesourcery.com>
1057
1058         PR c++/18416
1059         * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
1060         when deciding whether to pass a variable to
1061         cgraph_varpool_finalize_decl or assemble_variable.
1062         * toplev.c (check_global_declarations): Do not clear DECL_RTL.
1063
1064 2004-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1065
1066         * tree-vectorizer.c: Fix a comment typo.
1067
1068 2004-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
1069
1070         * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
1071
1072 2004-11-12  Diego Novillo  <dnovillo@redhat.com>
1073
1074         * tree-scalar-evolution.c (analyzable_condition): Remove
1075         superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
1076
1077 2004-11-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
1078
1079         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
1080         Remove m505/roe multilib variant.
1081
1082 2004-11-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1083
1084         * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
1085         to load from the stack.
1086
1087 2004-11-12  Richard Henderson  <rth@redhat.com>
1088
1089         * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
1090         (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
1091         * toplev.h (FL2T__): Remove.
1092         (CLZ_HWI): Rename from FL2T_CLZ__.
1093         (CTZ_HWI): New.
1094         (floor_log2): Simplify.
1095         (exact_log2): New.
1096
1097 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
1098
1099         * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
1100         compute the first overlapping iterations.
1101
1102 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
1103
1104         PR middle-end/18005
1105         * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
1106         that arguments of EXACT_DIV_EXPR are INTEGER_CST.
1107
1108 2004-11-12  Steven Bosscher  <stevenb@suse.de>
1109
1110         PR tree-optimization/18419
1111         * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
1112         pointer set instead of a bitmap.
1113         (walk_use_def_chains): Create, pass and clean up that pointer_set.
1114
1115         * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
1116         field an sbitmap.
1117         (init_alias_info): Allocate and zero it here.
1118         (delete_alias_info): Delete it here.
1119         (collect_points_to_info_for): Use it.
1120
1121 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1122
1123         * alias.c (record_alias_subset, addr_side_effect_eval):
1124         Make them static.
1125         * alias.h: Remove the prototype for record_alias_subset.
1126         * expr.h: Remove the commented-out prototype for
1127         record_alias_subset.
1128         * rtl.h: Remove the prototype for addr_side_effect_eval.
1129
1130         * cfglayout.c (choose_inner_scope): Make it static.
1131         * rtl.h: Remove the corresponding prototype.
1132
1133         * cfgloopmanip.c (update_single_exits_after_duplication,
1134         unloop): Make them static.
1135         * cfgloop.h: Remove the corresponding prototypes.
1136
1137         * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
1138         Make them static.
1139         * c-tree.h: Remove the corresponding prototypes.
1140
1141         * explow.c (round_push): Make it static.
1142         * expr.h: Remove the corresponding prototype.
1143
1144         * varasm.c (get_named_section_flags, decl_tls_model): Make
1145         them static.
1146         * output.h: Remove the prototype for get_named_section_flags.
1147         * tree.h: Remove the prototype for decl_tls_model.
1148
1149 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1150
1151         * function.c (expand_function_end): Remove an "if" statement
1152         that always triggers.
1153         * stmt.c (expand_null_return_1): Likewise.
1154
1155 2004-11-11  James E. Wilson  <wilson@specifixinc.com>
1156
1157         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
1158         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
1159         CLASS_MAX_NREGS): Likewise.
1160
1161 2004-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
1162
1163         PR tree-optimization/17742
1164         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
1165         MINUS_EXPR correctly.
1166
1167 2004-11-11  Sebastian Pop  <pop@cri.ensmp.fr>
1168
1169         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
1170         Give up as soon as the evolution is known not computable.
1171
1172 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
1173
1174         PR target/16457
1175         * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
1176         mask64_1or2_operand.
1177         (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
1178         to spot rlwinm opportunities.
1179         (and64_2_operand): Use mask_1or2_operand.
1180         * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
1181
1182 2004-11-11  Dorit Naishlos  <dorit@il.ibm.com>
1183
1184         * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
1185         (vect_update_ivs_after_vectorizer): Update function documentation.
1186         Avoid quadratic behavior and direct write to PHI_ARG_DEF.
1187
1188 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1189
1190         * config/arm/arm.c: Fix a comment typo.
1191
1192 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
1193
1194         * bitmap.h (nBITMAP_WORD_BITS): Remove.
1195         (BITMAP_WORD_BITS): Force unsigned by use of 1u.
1196         (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
1197         unnecessary casts.
1198         (bitmap_first_set_bit): Return unsigned, use ctzl.
1199         (bitmap_last_set_bit): Remove.
1200         * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
1201         unsigned.
1202         (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
1203         remove special case code for two word elements.
1204         (bitmap_last_set_bit): Remove.
1205         * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
1206         bitmap_first_set_bit with bitmap_empty_p.
1207         * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
1208         * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
1209         bitmap_last_bit_set.
1210
1211 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
1212
1213         PR target/16796
1214         * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
1215
1216         PR target/16458
1217         * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
1218         unsigned equality compare when we know the operands are unsigned.
1219
1220 2004-11-10  Peter S. Mazinger  <ps.m@gmx.net>
1221
1222         * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
1223         __PIC__ and __pic__ only if TARGET_ABICALLS.
1224         (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
1225         (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
1226         -KPIC only if not -mno-abicalls.
1227
1228         * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
1229         * config/sparc/linux.h, config/sparc/linux64.h
1230         (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
1231
1232         * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
1233         * config/pa/pa/linux.h (CPP_SPEC): Likewise.
1234         * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
1235         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
1236
1237 2004-11-11  Paul Brook  <paul@codesourcery.com>
1238
1239         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
1240         register if current_function_uses_pic_offset_table is set.
1241
1242 2004-11-10  David Edelsohn  <edelsohn@gnu.org>
1243
1244         * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
1245         Change multi-instruction sequences to new attribute.
1246         * config/rs6000/{40x.md,440.md,603.md,6xx.md,
1247         7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
1248         rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
1249
1250 2004-11-10  Daniel Berlin  <dberlin@dberlin.org>
1251
1252         * tree-data-ref.c (build_classic_dist_vector): If either loop
1253         is outside of the nest we asked about, the dependence can't
1254         matter.
1255         (build_classic_dir_vector): Ditto.
1256
1257 2004-11-10  Zdenek Dvorak  <dvorakz@suse.cz>
1258
1259         * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
1260         right order.
1261         (force_var_cost): Determine cost of addition and multiplication more
1262         precisely.
1263         (get_computation_cost_at): Add cost for computing address elements to
1264         the final cost.
1265
1266         * fold-const.c (fold): Attempt to use ptr_difference_const whenever
1267         one of the arguments of MINUS_EXPR is an address.
1268         (split_address_to_core_and_offset): New function.
1269         (ptr_difference_const): Handle case when one of the operands is a
1270         pointer.
1271         * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
1272         (ptr_difference_cost): Pass addresses instead of objects to
1273         ptr_difference_const.
1274
1275 2004-11-10  Nathan Sidwell  <nathan@codesourcery.com>
1276
1277         * tree.c (tree_check_failed): Emit general error if the list of
1278         node types is empty.
1279
1280 2004-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
1281
1282         * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
1283         argument.  When the union is passed in the 6th slot, build a
1284         PARALLEL with only one element.
1285         (function_arg): Adjust call to function_arg_union_value.
1286         (function_value): Likewise.
1287
1288 2004-11-10  Fariborz Jahanian <fjahanian@apple.com>
1289
1290         PR tree-optimization/17892
1291         * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
1292         MINUS_EXPR operator.
1293
1294 2004-11-10  James A. Morrison  <phython@gcc.gnu.org>
1295
1296         PR target/18230
1297         config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
1298         (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
1299
1300 2004-11-10  Steven Bosscher  <stevenb@suse.de>
1301
1302         * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
1303         (struct basic_block_def): Remove local_set and cond_local_set
1304         fields.  Update comment for global_live_at_start.
1305         * flow.c (calculate_global_regs_live): Allocate local_sets and
1306         cond_local_sets here as arrays of bitmaps previously stored in
1307         bb->local_set and bb->cond_local_set.  Use xmalloc instead of
1308         obstack allocated bitmaps.
1309
1310 2004-11-09  H.J. Lu  <hongjiu.lu@intel.com>
1311
1312         PR target/18380
1313         * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
1314         hidden.
1315
1316         * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
1317
1318 2004-11-09  Jeff Law  <law@redhat.com>
1319
1320         * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
1321         argument holding last unvisited block.  Start search for
1322         unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
1323         (connect_infinite_loops_to_exit): Supply last unvisited block
1324         to flow_dfs_compute_reverse_execute.
1325
1326 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
1327
1328         * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
1329         doubles.
1330         (floatunssidf2): Same.
1331         (floatsidf2): Same.
1332         ("extendsfdf2"): New expander.
1333         (*extendsfdf2_fpr): Rename.
1334         (*truncdfsf2_fpr): Same.
1335         (*negdf2_fpr): Same.
1336         (*absdf2_fpr): Same.
1337         (*nabsdf2_fpr): Same.
1338         (*adddf3_fpr): Same.
1339         (*subdf3_fpr): Same.
1340         (*muldf3_fpr): Same.
1341         (*divdf3_fpr): Same.
1342
1343         * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
1344         ("spe_fix_truncdfsi2"): Same.
1345         (spe_floatunssidf2): Same.
1346         (spe_floatsidf2): Same.
1347
1348 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1349
1350         PR c/18322
1351         * c-common.c (fname_decl): Don't use line number of decl in
1352         diagnostic.
1353
1354 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
1355
1356         * config/s390/s390-protos.h (s390_pool_operand): Remove.
1357         * config/s390/s390.c (s390_pool_operand): Likewise.
1358         (s390_extra_constraint_str): Handle 'B' constraints.
1359         * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
1360         * config/s390/s390.md: Document 'B' constraints.
1361         ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
1362         s390_pool_operand to prevent insns with two literal pool
1363         references.  Make pattern commutative.
1364         ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
1365         'B' constraint instead of s390_pool_operand.
1366
1367 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1368
1369         * tree-cfg.c (create_bb): Remove unnecessary memset.
1370
1371 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1372
1373         * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
1374         (thread_block): Call flush_pending_stmt instead of
1375         copy_phis_to_block.
1376
1377 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1378
1379         * loop-iv.c (iv_number_of_iterations): Make it static.
1380         * cfgloop.h: Remove the corresponding prototype.
1381
1382 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1383
1384         * function.c (combine_temp_slots, assign_parms,
1385         expand_pending_sizes): Make them static.
1386         * tree.h: Remove the corresponding prototypes.
1387
1388 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1389
1390         * emit-rtl.c (copy_most_rtx): Remove.
1391         * rtl.h: Remove the corresponding prototype.
1392
1393 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1394
1395         * cfgloop.c (flow_loops_update): Remove.
1396         * cfgloop.h: Remove the corresponding prototype.
1397
1398 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1399
1400         * conflict.c (mark_reg, conflict_graph_compute): Remove.
1401         * basic-block.h: Remove the prototype for
1402         conflict_graph_compute.
1403
1404 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1405
1406         * tree-if-conv.c (add_to_dst_predicate_list): Change the
1407         second argument to basic_block.
1408         (tree_if_convert_cond_expr): Update call sites.
1409
1410 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1411
1412         * fold-const.c (pedantic_non_lvalue): Make it static.
1413         * tree.h: Remove the corresponding prototype.
1414
1415 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1416
1417         * optabs.c (prepare_operand): Make it static.
1418         * optabs.h: Remove the corresponding prototype.
1419
1420 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1421
1422         * reload1.c (reloads_conflict, gen_reload): Make them static.
1423         * reload.h: Remove the corresponding prototypes.
1424
1425 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1426
1427         * reload.c (refers_to_mem_for_reload_p,
1428         refers_to_regno_for_reload_p): Make them static.
1429         * reload.h: Remove the corresponding prototypes.
1430
1431 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
1432             Eric Botcazou  <ebotcazou@libertysurf.fr>
1433
1434         PR target/18230
1435         * doc/md.texi (SPARC constraints): Document 'Y' constraint.
1436         * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
1437         * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
1438         (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
1439         (fp_zero_operand): Accept MODE_VECTOR_INT modes.
1440         (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
1441         (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
1442         (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
1443         MODE_VECTOR_INT modes.
1444         (sparc_extra_constraint_check): Add new constraint 'Y'.
1445         * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
1446         * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
1447         (V64): New mode macro for 64-bit modes.
1448         (movsf): Use V32 for mode instead of SF.
1449         (movsf_insn_vis): Use V32 for mode instead of SF.  Add 'Y' constraint
1450         alongside 'G' constraint.
1451         (movdf): Use V64 for mode instead of DF.
1452         (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
1453         of DF.  Add 'Y' constraint alongside 'G' constraint.
1454         (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
1455         instead of DF.
1456
1457 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
1458
1459         * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
1460         integer NEG and ABS.
1461         * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
1462         ("*negdi2_31"): Reimplement using a splitter.
1463         ("*negdi2_cc", "*negdi2_cconly"): New insns.
1464         ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
1465         ("*negsi2_cc", "*negsi2_cconly"): Likewise.
1466         ("*negdf2_cc", "*negdf2_cconly"): Likewise.
1467         ("*negsf2_cc", "*negsf2_cconly"): Likewise.
1468         ("*absdi2_cc", "*absdi2_cconly"): New insns.
1469         ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
1470         ("*abssi2_cc", "*abssi2_cconly"): Likewise.
1471         ("*absdf2_cc", "*absdf2_cconly"): Likewise.
1472         ("*abssf2_cc", "*abssf2_cconly"): Likewise.
1473         ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
1474         ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
1475         ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
1476         ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
1477         ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
1478
1479 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
1480
1481         * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
1482         when eliminating an UNSPEC_CMPINT.
1483         (s390_secondary_input_reload_class): Fix test for CC register reload.
1484         (s390_secondary_output_reload_class): Likewise.
1485         (s390_expand_cmpmem): Swap operands.  Use gen_cmpint.
1486         * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
1487         ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
1488         insn patterns with splitters.
1489
1490 2004-11-09  David Edelsohn  <edelsohn@gnu.org>
1491
1492         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
1493         * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
1494
1495 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1496
1497         * tree-phinodes.c (phi_reverse): New.
1498         * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
1499         Use it.
1500         * tree-flow.h: Add a prototype for phi_reverse.
1501
1502 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
1503
1504         * tree-ssa-loop-ivopts.c: Fix a comment typo.
1505
1506 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
1507
1508         PR pch/14940
1509         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
1510         definitions.
1511
1512 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1513
1514         * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
1515         instead of "arg" in diagnostics.
1516
1517 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1518
1519         * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
1520         c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
1521         gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
1522         tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
1523         config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
1524         config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
1525         config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
1526         config/iq2000/iq2000.c, config/m32r/m32r.c,
1527         config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
1528         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
1529         config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
1530         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
1531         config/sh/symbian.c, config/stormy16/stormy16.c,
1532         config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
1533         and %> as appropriate.  Use %' as apostrophe in diagnostics where
1534         applicable.  Use %< and %> in place of '' quotes where applicable.
1535         Use %qs in place of %<%s%>.  Consistently quote __builtin function
1536         names.
1537
1538 2004-11-09  Hans-Peter Nilsson  <hp@bitrange.com>
1539
1540         * gdbinit.in (pbb, pbm): New macros.
1541
1542 2004-11-08 Jeff Law  <law@redhat.com>
1543
1544         * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
1545         implementing it inline.
1546
1547         * cfganal.c (find_edge): Search pred->succs or succ->preds,
1548         whichever is shorter.
1549
1550 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1551
1552         * passes.c (rest_of_handle_jump): Remove dead code.
1553
1554 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1555
1556         * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
1557         the last used element in the worklist.
1558
1559 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1560
1561         * tree-inline.c (remap_save_expr): Make it static.
1562         * tree-inline.h: Remove the corresponding prototype.
1563
1564 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1565
1566         * tree-ssa-loop-niter.c (upper_bound_in_type,
1567         lower_bound_in_type): Make them static.
1568         * tree.h: Remove the corresponding prototypes.
1569
1570 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1571
1572         * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
1573         static.
1574         * tree-ssa-live.h: Remove the corresponding prototypes.
1575
1576 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1577
1578         * tree-if-conv.c (tree_if_conversion): Make it static.
1579         * tree-flow.h: Remove the corresponding prototype.
1580
1581 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1582
1583         * tree-ssa-operands.c (build_ssa_operands): Make it static.
1584         * tree-flow.h: Remove the corresponding prototype.
1585
1586 2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
1587
1588         PR tree-opt/18299
1589         * tree-inline.c (copy_body_r): Change "t = t" to empty
1590         statement instead of "t".
1591
1592 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1593
1594         * modulo-sched.c (create_partial_schedule,
1595         free_partial_schedule, reset_partial_schedule,
1596         ps_add_node_check_conflicts, rotate_partial_schedule): Make
1597         them static.
1598
1599 2004-11-08  Richard Henderson  <rth@redhat.com>
1600
1601         * expmed.c (extract_force_align_mem_bit_field): Correct handling at
1602         the end of a page.
1603
1604 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1605
1606         * sched-deps.c (add_insn_mem_dependence): Make it static.
1607         * sched-int.h: Remove the corresponding prototypes.
1608
1609 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1610
1611         * flow.c (allocate_bb_life_data): Make it static.
1612         * basic-block.h: Remove the corresponding prototype.
1613
1614 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1615
1616         * calls.c (split_complex_values, split_complex_types): Make
1617         them static.
1618         * expr.h: Remove the corresponding prototypes.
1619
1620 2004-11-08  Richard Earnshaw  <rearnsha@arm.com>
1621
1622         * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
1623         with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
1624
1625 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1626
1627         * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
1628         statements that always trigger.
1629
1630 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
1631
1632         * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
1633         tree-scalar-evolution.c, tree-ssa-loop-im.c,
1634         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
1635         tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
1636         appropriate.
1637
1638 2004-11-08  Ben Elliston  <bje@au.ibm.com>
1639
1640         * cgraph.h (cgraph_calls_p): Remove.
1641         * cgraph.c (cgraph_calls_p): Likewise.
1642
1643         * varray.h (varray_copy): Remove.
1644         * varray.c (varray_copy): Likewise.
1645
1646 2004-11-07  Andrew Pinski  <pinskia@physics.uc.edu>
1647
1648         PR target/18269
1649         * config/darwin.c (machopic_indirect_data_reference):
1650         Call gen_macho_high and gen_macho_low instead of
1651         checking the mode and calling gen_macho_high_di directly.
1652         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1653         * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
1654         to darwin.md.
1655         (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
1656         load_macho_picbase, macho_low, macho_high): Removed.
1657         (builtin_setjmp_receiver): Call gen_macho_high and
1658         gen_macho_low instead of checking the mode and calling
1659         gen_macho_high_di directly.
1660         * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
1661         (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
1662         Moved from rs6000.md.
1663         (macho_high): New expander.
1664         (macho_high_si): Renamed version of macho_high from rs6000.md.
1665         (macho_low): New expander.
1666         (macho_low_si): Renamed version of macho_low from rs6000.md.
1667         (load_macho_picbase): New expander.
1668         (load_macho_picbase_si): Renamed version of load_macho_picbase
1669         from rs6000.md.
1670         (macho_correct_pic): New expander.
1671         (macho_correct_pic_si): Renamed version of macho_correct_pic
1672         from rs6000.md.
1673
1674 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
1675
1676         * c-decl.c (finish_struct): Use complete sentences for diagnostic
1677         for structures or unions with no members or named members.
1678
1679 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
1680
1681         * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
1682         taking address of bit-field by assertion.
1683
1684 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1685
1686         * config/s390/s390.md (attribute "op_type"): Default to "NN".
1687         (attribute "atype"): Default to "agen".
1688         (attribute "length"): Default to 6.
1689         (define_asm_attibutes): Remove.
1690         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
1691         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
1692         "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
1693         Do not set type attribute to "cs" where already default.
1694         ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
1695         "*negdi2_31"):
1696         Do not set type attribute to "other" where already default.
1697         ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
1698         "*strlendi", "*strlensi",
1699         "*movmem_long_64", "*movmem_long_31",
1700         "*clrmem_long_64", "*clrmem_long_31",
1701         "*cmpmem_long_64", "*cmpmem_long_31",
1702         "*cmpint_si", "*cmpint_di",
1703         "addti3", "*adddi3_31z", "*adddi3_31",
1704         "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
1705         "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
1706         "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
1707         "*pool_entry", "pool_align", "pool_section_start",
1708         "pool_section_end", "main_pool", "reload_base_31", "pool"):
1709         Do not set op_type attribute to "NN" where already default.
1710         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
1711         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
1712         "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
1713         Do not set atype attribute to "agen" where already default.
1714         ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
1715
1716 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
1717
1718         * config/mips/t-iris6 (tp-bit.c): Fix target filename.
1719
1720 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
1721
1722         PR target/16830
1723         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
1724         R3000 and R4000 macros on IRIX.
1725
1726 2004-11-06  Andreas Schwab  <schwab@suse.de>
1727
1728         PR target/16286
1729         * config/rs6000/altivec.h: Replace bool by __bool and pixel by
1730         __pixel.
1731
1732 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1733
1734         * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
1735
1736 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1737
1738         * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
1739         matches no insns already matched by other reservations.
1740         * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
1741         matches no insns already matched by other reservations.
1742         ("x_ss"): Remove, replace by ...
1743         ("x_cs"): ... this new reservation.  Check type instead of op_type.
1744         Update bypasses to use x_cs instead of x_ss.
1745         ("x_nn"): Remove, replace by ...
1746         ("x_other"): ... this new reservation.  Check type instead of op_type.
1747         Add x_other and x_branch to bypasses.
1748         ("x_vs"): New reservation.
1749         * config/s390/s390.md (attribute "type"): Default according to op_type.
1750         ("*execute"): Set type to "cs".
1751
1752 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1753
1754         * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
1755         if we are in GIMPLE.
1756
1757 2004-11-06  Hans-Peter Nilsson  <hp@bitrange.com>
1758
1759         PR rtl-optimization/17933
1760         * rtlanal.c (dead_or_set_regno_p): Break out common code to...
1761         (covers_regno_p): New function.  Handle SETs of PARALLEL,
1762         and defer the rest to...
1763         (covers_regno_no_parallel_p): New function.
1764
1765 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1766
1767         * config/sparc/sparc.c (function_arg_record_value_1): Skip
1768         fields with zero length.
1769         (function_arg_record_value_2): Likewise.
1770         (function_arg_record_value_3): Use smallest_mode_for_size
1771         instead of mode_for_size.
1772         (function_arg_union_value): Return naked register for unions
1773         with zero length.
1774
1775 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1776
1777         * config/sparc/sparc.c (scan_record_type): Handle vector types.
1778         (function_arg_slotno): Handle vector types specially.
1779         (function_arg_record_value_1): Split fields with vector type and
1780         BLKmode into their subparts.
1781         (function_arg_record_value_2): Likewise.  Be prepared to handle
1782         more than 2 registers per field.
1783         (function_arg_union_value): Increment regno inside the loop.
1784         (function_arg_vector_value): New function.
1785         (function_arg): Use it to split fields with vector type and
1786         BLKmode into their subparts and build a PARALLEL.  Treat
1787         other vector types like floats.
1788         (function_value): Likewise.
1789         (sparc_pass_by_reference): Handle vector types.
1790         (sparc_return_in_memory): Likewise.
1791
1792 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1793
1794         * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
1795         statement that never triggers.
1796
1797 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1798
1799         * config/s390/2064.md ("z_o2", "z_o3"): Remove.
1800         * config/s390/2084.md ("x_o2", "x_o3"): Remove.
1801         ("x_fdivd"): Use also for fsqrtd type.
1802         ("x_fdivs"): Use also for fsqrts type.
1803         * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
1804         ("fix_truncdfsi2_ieee"): Set type to "ftoi".
1805         ("fix_truncdfsi2_ibm"): Set type to "other".
1806         ("floatdidf2", "floatdisf2"): Do not clobber CC.
1807         ("floatsidf2", "floatsidf2_ieee"): Likewise.
1808         ("floatsisf2", "floatsisf2_ieee"): Likewise.
1809         ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
1810         ("truncdfsf2_ibm"): Only allow "nonimmediate_operand".  Use LER
1811         instead of LRER.
1812         ("extendsfdf2_ibm"): Do not set atype.  Set type to "floads".
1813         ("sqrtdf2"): Set type to "fsqrtd".
1814         ("sqrtsf2"): Set type to "fsqrts".
1815
1816 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1817
1818         * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
1819         pointer to the last PHI node in the new PHI chain.
1820
1821 2004-11-06  Kaz Kojima  <kkojima@gcc.gnu.org>
1822
1823         * config/sh/sh.c (prepare_move_operands): Emit a use of r12
1824         for non-PIC TLS_MODEL_INITIAL_EXEC case.
1825
1826 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1827
1828         * expmed.c: Fix a comment typo.
1829
1830 2004-11-06  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1831
1832         PR target/18106
1833         * config/i386/cygming.h
1834         [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
1835
1836 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1837
1838         * config/sh/sh4a.md: Fix copyright.
1839
1840 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
1841
1842         * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
1843         with GCC.
1844
1845 2004-11-05  David Edelsohn  <edelsohn@gnu.org>
1846
1847         * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
1848         when carry not used.  Suggested by Torbjorn Granlund.
1849
1850         * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
1851         operand[1] unnecessarily.  Suggested by Eric Christopher.
1852         (rs6000_adjust_cost): Increase latency of store to wider load.
1853         (rs6000_rtx_costs): mulli only allows 16-bit constants.
1854
1855 2004-11-05  Stan Shebs  <shebs@apple.com>
1856
1857         * config/rs6000/rs6000.c (machopic_output_stub): Output
1858         ldu instead of lwzu for 64-bit stubs.
1859
1860 2004-11-05  Richard Henderson  <rth@redhat.com>
1861
1862         * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
1863         size 2 with BWX.
1864         (alpha_expand_unaligned_store): Likewise.
1865
1866 2004-11-05  Richard Henderson  <rth@redhat.com>
1867
1868         * expmed.c (extract_force_align_mem_bit_field): New.
1869         (extract_split_bit_field): Call it.
1870
1871 2004-11-05  Richard Henderson  <rth@redhat.com>
1872
1873         * ia64.md (UNSPEC_SHRP): New.
1874         (dshift_count_operand): New.
1875         (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
1876         * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
1877
1878 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
1879
1880         * c-typeck.c (output_init_element): Return early if value is
1881         error_mark_node.
1882
1883 2004-11-05  James E Wilson  <wilson@specifixinc.com>
1884
1885         * invoke.texi (-fno-guess-branch-probability): Rewrite.
1886
1887         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
1888         1 to UNSPEC_GR_SPILL.
1889
1890 2004-11-05  Andreas Krebbel  <krebbel1@de.ibm.com>
1891
1892         * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
1893         (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
1894
1895 2004-11-05  Nathan Sidwell  <nathan@codesourcery.com>
1896
1897         * bitmap.h (enum bitmap_bits): Remove.
1898         (bitmap_operation): Remove.
1899         (bitmap_and, bitmap_and_into, bitmap_and_compl,
1900         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
1901         bitmap_xor_into): Prototype.
1902         * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
1903         (bitmap_operation): Remove.
1904         (bitmap_and, bitmap_and_into, bitmap_and_compl,
1905         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
1906         bitmap_xor_into): New.
1907         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
1908
1909         PR tree-optimization/18307
1910         * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
1911         and ORIG being the same node.
1912
1913 2004-11-04  Geoffrey Keating  <geoffk@apple.com>
1914
1915         * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
1916         (install-mkheaders): Install the version built for the
1917         host, not for the build machine.
1918         * configure.ac: Always run fixincludes.
1919         (all_outputs): Remove mkheaders.
1920         * configure: Regenerate.
1921         * fixinc.in: Move to fixincludes/.
1922         * mkfixinc.sh: Likewise.
1923         * mkheaders.in: Likewise.
1924         * README-fixinc: Likewise.
1925
1926 2004-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
1927
1928         PR target/18263
1929         * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
1930         equivalent on the A4.
1931
1932 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
1933
1934         * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
1935         doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
1936         doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
1937         doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
1938         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
1939         doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
1940         doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
1941         doc/trouble.texi: Correct end-of-sentence markup and markup of
1942         "etc.", "e.g." and "i.e.".  Use @code in various places where
1943         appropriate.
1944
1945 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
1946
1947         * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
1948         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
1949         doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
1950         whitespace.
1951
1952 2004-11-04  Mark Mitchell  <mark@codesourcery.com>
1953
1954         * config/arm/arm.c (arm_handle_notshared_attribute): New function.
1955         * doc/extend.texi: Document "notshared" attribute.
1956
1957 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
1958
1959         * tree-phinodes.c (make_phi_node): Make it static.
1960         * tree.h: Remove the prototypes for make_phi_node.
1961
1962 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
1963
1964         * stmt.c (expand_asm, expand_asm_operands): Make them static.
1965         * tree.h: Remove the prototypes for expand_asm and
1966         expand_asm_operands.
1967
1968 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
1969
1970         * passes.c (rest_of_compilation): Make it static.
1971         * toplev.h: Remove the prototype for rest_of_compilation.
1972
1973 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
1974
1975         * jump.c (cleanup_barriers): Use delete_insn instead of
1976         delete_barrier.
1977         (delete_barrier): Remove.
1978         * rtl.h: Remove the corresponding prototype.
1979
1980 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
1981
1982         * expr.c (mostly_zero_p): Make it static.
1983         * tree.h: Remove the prototype for mostly_zeros_p.
1984
1985 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
1986
1987         * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
1988
1989 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
1990
1991         * builtins.c (expand_builtin_return_addr,
1992         expand_builtin_longjmp, expand_builtin_trap): Make them static.
1993         * expr.h: Remove the prototypes for expand_builtin_longjmp and
1994         expand_builtin_trap.
1995         * tree.h: Remove the prototype for expand_builtin_return_addr.
1996
1997 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
1998
1999         * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
2000         * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
2001         with VAL being NULL.
2002
2003 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2004
2005         * cfghooks.c (delete_basic_block): Remove code to truncate
2006         edge vectors.
2007
2008 2004-11-04  Andrew Pinski  <pinskia@physics.uc.edu>
2009
2010         * flow.c (init_propagate_block_info): Change the type of i to
2011         unsigned.
2012
2013 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
2014
2015         PR tree-optimization/18184
2016         * c-typeck.c (comptypes): Do not treat pointers of different
2017         modes or alias-all flags as equivalent.
2018         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
2019
2020 2004-11-04  Joseph S. Myers  <joseph@codesourcery.com>
2021
2022         * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
2023         reference specific C parser files in examples.
2024
2025 2004-11-04  Richard Sandiford  <rsandifo@redhat.com>
2026
2027         PR target/15342
2028         * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
2029         as OP_INOUT if the instruction is predicated.
2030
2031 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2032
2033         * bitmap.h: Fix a comment typo.  Follow spelling conventions.
2034         * tree-vectorizer.c: Fix a comment typo.
2035
2036 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
2037
2038         * sdbout.c (SDB_GENERATE_FAKE): Remove.
2039         (gen_fake_label): Don't use SDB_GENERATE_FAKE.
2040         * system.h: Poison SDB_GENERATE_FAKE.
2041         * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
2042
2043 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
2044
2045         * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
2046
2047 2004-11-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2048
2049         PR other/18277
2050         * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
2051         2004-10-29 patch
2052
2053 2004-11-04  Nathan Sidwell  <nathan@codesourcery.com>
2054
2055         * predict.c (propagate_freq): Make bitno unsigned. Move
2056         npredecessors update out of loop.
2057
2058         * bitmap.h (bitmap_iterator): Remove word_bit and bit
2059         fields. Rename others.
2060         (bmp_iter_common_next_1, bmp_iter_single_next_1,
2061         bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
2062         bmp_iter_and_not_next_1, bmp_iter_and_not_init,
2063         bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
2064         bmp_iter_and_next): Remove.
2065         (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
2066         bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
2067         New.
2068         (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
2069         EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
2070
2071         * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
2072         * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
2073         bitmap_and_into, bitmap_ior_into as appropriate.
2074         * except.c (remove_eh_handler): Likewise.
2075         * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
2076         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
2077         * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
2078         * tree-ssa-live.h (live_merge_and_clear): Likewise.
2079         * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
2080         Likewise.
2081
2082         * bitmap.c (bitmap_print): Make bitno unsigned.
2083         * bt-load.c (clear_btr_from_live_range,
2084         btr_def_live_range): Likewise.
2085         * caller-save.c (save_call_clobbered_regs): Likewise.
2086         * cfganal.c (compute_dominance_frontiers_1): Likewise.
2087         * cfgcleanup.c (thread_jump): Likewise.
2088         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2089         * conflict.c (conflict_graph_compute): Likewise.
2090         * ddg.c (add_deps_for_use): Likewise.
2091         * df.c (df_refs_update): Likewise.
2092         * except.c (remove_eh_handler): Likewise.
2093         * flow.c (verify_local_live_at_start, update_life_info,
2094         initialize_uninitialized_subregs, propagate_one_insn,
2095         free_propagate_block_info, propagate_block, find_use_as_address,
2096         reg_set_to_hard_reg_set): Likewise.
2097         * gcse.c (clear_modify_mem_tables): Likewise.
2098         * global.c (global_conflicts, build_insn_chain): Likewise.
2099         * ifcvt.c (dead_or_predicable): Likewise.
2100         * local-alloc.c (update_equiv_regs): Likewise.
2101         * loop.c (load_mems): Likewise.
2102         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
2103         Likewise.
2104         * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
2105         Likewise.
2106         * reload1.c (order_regs_for_reload, finish_spills): Likewise.
2107         * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
2108         * sched-rgn.c (propagate_deps
2109         * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
2110         * tree-dfa.c (dump_dfa_stats
2111         tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
2112         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
2113         Likewise.
2114         * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
2115         free_temp_expr_table, find_replaceable_exprs): Likewise.
2116         * tree-sra.c (scan_function, scalarize_parms): Likewise.
2117         * tree-ssa-alias.c (init_alias_info,
2118         compute_points_to_and_addr_escape,
2119         compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
2120         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
2121         * tree-ssa-live.c (new_tree_live_info, live_worklist,
2122         calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
2123         sort_coalesce_list, build_tree_conflict_graph, dump_live_info
2124         tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
2125         tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
2126         add_call_read_ops): Likewise.
2127         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
2128         * tree-ssa-live.h (num_var_partitions): Return unsigned.
2129
2130 2004-11-03  Dorit Naishlos  <dorit@il.ibm.com>
2131
2132         PR tree-optimization/18009
2133         * tree-vectorizer.h (enum dr_alignment_support): New type.
2134         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
2135         (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
2136         single data_reference (instead of a varray of references).
2137         * tree-vectorizer.c (new_loop_vec_info): Likewise.
2138         (vect_gen_niters_for_prolog_loop): Likewise.
2139         (vect_update_inits_of_drs): Likewise.
2140
2141         (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
2142         vect_enhance_data_refs_alignment.
2143         (vect_do_peeling_for_alignment): Likewise.
2144         (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
2145         this functionality used to be in vect_analyze_data_refs_alignment.
2146         Also update DR_MISALIGNMENT due to peeling; this functionality used to
2147         be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
2148         (vect_analyze_data_refs_alignment): Decision on whether and by how much
2149         to peel moved to vect_enhance_data_refs_alignment. Call
2150         vect_supportable_dr_alignment.
2151
2152         (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
2153         (vect_compute_data_refs_alignment): Return bool. Consider return value
2154         of vect_compute_data_ref_alignment and return true/false accordingly.
2155         (vect_enhance_data_refs_alignment): Consider return value of
2156         vect_compute_data_refs_alignment and return true/false accordingly.
2157
2158         (vect_supportable_dr_alignment): New function.
2159         (vectorizable_store): Call vect_supportable_dr_alignment.
2160         (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
2161         support checks moved from here to vect_supportable_dr_alignment.
2162
2163         (vect_transform_loop): Avoid 80 columns overflow.
2164
2165 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
2166
2167         * timevar.c (timevar_enable): Change from
2168         static.
2169         (timevar_push): Rename to ...
2170         (timevar_push_1): this and remove the
2171         enabled check.
2172         (timevar_pop): Rename to ...
2173         (timevar_pop_1): this and remove the
2174         enabled check.
2175         * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
2176         (timevar_pop): New macro.
2177         (timevar_push): New macro.
2178         (timevar_enable): Declare.
2179
2180 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
2181
2182         * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
2183         libgcc for shared libraries.
2184
2185 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
2186
2187         * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
2188         * config/s390/s390.c (s390_split_access_reg): New function.
2189         (regclass_map): Add access registers.
2190         (get_thread_pointer): Use access register instead of UNSPEC_TP.
2191         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
2192         (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
2193         (TP_REGNUM): New define.
2194         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2195         REG_ALLOC_ORDER): Add access registers.
2196         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
2197         CANNOT_CHANGE_MODE_CLASS): Support access registers.
2198         (enum reg_class): Add ACCESS_REGS.
2199         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
2200         (REG_CLASS_FROM_LETTER): Add 't' constraint.
2201         (REGISTER_NAMES): Add access registers.
2202         * config/s390/s390.md (UNSPEC_TP): Remove.
2203         ("*movdi_64"): Add access register alternatives.  Provide splitters
2204         to split DImode access register <-> GPR moves into SImode moves.
2205         ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
2206         ("movstrictsi"): Likewise.
2207         ("get_tp_64", "get_tp_31"): Reimplement using access registers.
2208         ("set_tp_64", "set_tp_31"): Likewise.
2209         ("*set_tp"): New insn.
2210
2211 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
2212
2213         * tree-phinodes.c (resize_phi_node): Copy only a portion of
2214         the PHI node currently in use.
2215
2216 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
2217
2218         PR tree-opt/18231
2219         * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
2220         also.
2221
2222 2004-11-03  Andrew MacLeod  <amacleod@redhat.com>
2223
2224         PR tree-optimization/18270
2225         * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
2226         abnormal edges, commit all pending stmts on incoming edges.
2227
2228 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
2229
2230         * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
2231         cause extra costs.  Generate canonical RTL.
2232
2233 2004-11-02  Daniel Berlin  <dberlin@dberlin.org>
2234
2235         * lambda-code.c (lambda_compute_auxillary_space): Update comments.
2236         (lambda_compute_target_space). Ditto.
2237         * lambda.h (lambda_trans_matrix): Ditto.
2238         (lambda_linear_expression): Ditto.
2239         (lambda_body_vector): Ditto.
2240         (lambda_loopnest): Ditto.
2241         * tree-loop-linear.c (gather_interchange_stats): Combine tests,
2242         update comments, and remove pointless addition of 0.
2243         (linear_transform_loops): Update comments.
2244
2245 2004-11-03  Sebastian Pop  <pop@cri.ensmp.fr>
2246
2247         * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
2248         CEIL_MOD_EXPR.
2249
2250 2004-11-03 Jeff Law  <law@redhat.com>
2251
2252         * predict.c (struct block_info_def): Kill "tovisit" field.
2253         (propagate_freq): Accept new "tovisit" parameter.  Change
2254         read/write access methods for "tovisit" to check the "tovisit"
2255         bitmap instead of a bit in block_info_def.
2256         (estimate_loops_at_level): Allocate "tovisit" bitmap.  Pass
2257         it to propagate_freq.
2258
2259         * stmt.c (expand_case): Speed up code to detect duplicate case
2260         label targets and count unique case label targets.
2261
2262 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
2263
2264         * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
2265
2266 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
2267
2268         * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
2269
2270 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
2271
2272         * tree-cfg.c (find_taken_edge): Abort if we are given a
2273         statement that is neither COND_EXPR nor SWITCH_EXPR.
2274
2275 2004-11-02  Zdenek Dvorak  <dvorakz@suse.cz>
2276
2277         * fold-const.c (fold): Reassociate also (x - mult) + mult and
2278         (mult - x) + mult.  Cast operands of expression after applying
2279         distributive law to the correct types.  Apply distributive law
2280         to a * c - b * c for all non-float types.
2281
2282 2004-11-02  Geoffrey Keating  <geoffk@apple.com>
2283
2284         * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
2285         because we don't want to run them now; instead, set them to
2286         stmp-install-fixproto or stmp-install-fixinc.
2287         * Makefile.in (stmp-install-fixproto): New.
2288         (stmp-install-fixinc): New.
2289         * configure: Regenerate.
2290
2291 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
2292
2293         * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
2294         of bitmap_xor.
2295
2296 2004-11-02  Ziemowit Laski  <zlaski@apple.com>
2297
2298         * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
2299         (c_types_compatible_p): Move function definition...
2300         * c-objc-common.c (c_types_compatible_p): ...here.
2301         * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
2302         c-lang.c.
2303
2304 2004-11-02  Steven Bosscher  <stevenb@suse.de>
2305
2306         * cfgloop.h (struct loop): Update comment.
2307         * cse.c (cse_main): Remove obsolete comment.
2308
2309         * expr.h (gen_cond_trap): Move prototype under functions provided
2310         by optabs.c.
2311         (canonicalize_condition, get_condition): Move to...
2312         * rtl.h (canonicalize_condition, get_condition): ...here.
2313         (branch_target_load_optimize): Add comment that this function is
2314         in bt-load.c.
2315         * loop.c (canonicalize_condition, get_condition): Move to...
2316         * rtlanal.c (canonicalize_condition, get_condition): ...here.
2317         * sched-deps.c (get_condition): Rename to sched_get_condition.
2318         (add_dependence): Update this caller.
2319
2320 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
2321
2322         PR tree-opt/16808
2323         * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
2324         that the vops get marked for renaming.
2325
2326 2004-11-02  Andreas Krebbel  <krebbel1@de.ibm.com>
2327
2328         * config/s390/s390.md ("movcc"): Set type attribute.
2329
2330 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
2331
2332         * tree-phinodes.c (add_phi_arg): Add an assertion that the
2333         edge already exists.
2334
2335 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
2336
2337         * tree-phinodes.c (remove_phi_arg_num): Do not zero the
2338         element that's being removed.
2339
2340 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
2341
2342         * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
2343         arguments using PENDING_STMT.
2344         (thread_block): Call copy_phis_to_block after redirecting an
2345         edge.
2346
2347 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
2348
2349         * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
2350         bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
2351         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
2352         (bitmap_ior_and_compl_into): Produce bool.
2353         (bitmap_union_of_diff): Rename to ...
2354         (bitmap_ior_and_compl): ... here. Produce bool.
2355         * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
2356         bitmap_operation directly.
2357         (bitmap_union_of_diff): Rename to ...
2358         (bitmap_ior_and_compl): ... here. Return bool, use
2359         bitmap_operation directly.
2360         * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
2361         (df_ru_transfer_function, df_lr_transfer_function): Likewise.
2362         * global.c (modify_bb_reg_pav): Likewise.
2363
2364         * bitmap.h (bitmap_equal_p): Return bool.
2365         (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
2366         * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
2367         (bitmap_intersect_p, bitmap_intersect_compl_p): New.
2368         * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
2369         bitmap_intersect_compl_p.
2370         * ifcvt (dead_or_predicable): Likewise.
2371
2372 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
2373
2374         PR rtl-optimization/17104
2375         * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
2376         loads in zero_extend.
2377
2378 2004-11-02  Danny Smith  <dannysmith@users.sourceforge.net>
2379
2380         PR debug/18242
2381         * toplev.c (debug_type_names): Remove "dwarf-1".
2382
2383 2004-11-02  Ben Elliston  <bje@au.ibm.com>
2384
2385         * timevar.h (timevar_get): Remove.
2386         * timevar.c (timevar_get): Remove unused function.
2387
2388 2004-11-02  Joseph S. Myers  <joseph@codesourcery.com>
2389
2390         * doc/include/texinfo.tex: Update from Texinfo CVS.
2391
2392 2004-11-02  Ben Elliston  <bje@au.ibm.com>
2393
2394         * cppdefault.h (cpp_SYSROOT): Remove.
2395         * cppdefault.c (cpp_SYSROOT): Likewise.
2396
2397 2004-11-01  Andrew MacLeod  <amacleod@redhat.com>
2398
2399         PR tree-optimization/16447
2400         * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
2401         bsi_commit_edge_inserts_1, and make funtion external.  Return new block.
2402         (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
2403         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
2404         * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
2405         * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
2406         (same_stmt_list_p): New.  Return TRUE if edge is to be forwarded.
2407         (identical_copies_p): New.  Return true is two copies are the same.
2408         (identical_stmt_lists_p): New.  Return true if stmt lists are the same.
2409         (analyze_edges_for_bb): New.  Determine how best to insert edge stmts
2410         for a basic block.
2411         (perform_edge_inserts): New.  Determine what to do with all stmts that
2412         have been inserted on edges.
2413         (remove_ssa_form):  Analyze and commit edges from here.
2414
2415 2004-11-01  Andrew Pinski  <pinskia@physics.uc.edu>
2416
2417         PR bootstrap/18232
2418         * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
2419         (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
2420         (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
2421         (EXECUTE_IF_AND_IN_BITMAP): Likewise.
2422
2423 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
2424
2425         PR c/18239
2426         * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
2427         parameter declarations.
2428
2429 2004-11-01  Andreas Krebbel  <krebbel1@de.ibm.com>
2430
2431         * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
2432         (s390_secondary_input_reload_class)
2433         (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
2434         register.
2435         (s390_expand_cmpmem): Enable cmpmem implementation.
2436         * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
2437         Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
2438         (REG_CLASS_FROM_LETTER): New constraint 'c' added.
2439         * config/s390/s390.md ("movcc"): New insn pattern.
2440         * doc/md.texi: Document 'c' constraint for s390.
2441
2442 2004-11-01  Nathan Sidwell  <nathan@codesourcery.com>
2443
2444         PR c++/18064
2445         * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
2446         extension.
2447
2448 2004-10-16  Daniel Berlin  <dberlin@dberlin.org>
2449
2450         Fix PR tree-optimization/17672
2451         Fix PR tree-optimization/18168
2452
2453         * lambda-code.c (lambda_lattice_compute_base): Fix reversed
2454         assert test.
2455         (gcc_tree_to_linear_expression): Add extra to existing constant.
2456         (depth_of_nest): Factor out function used in various places.
2457         (gcc_loop_to_lambda_loop): Clean up code a little bit. No
2458         functional changes.
2459         (find_induction_var_from_exit_cond): Stop guessing, and just
2460         get the right answer :).
2461         (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
2462         Print out message about result of attempt to create perfect nest.
2463         (lbv_to_gcc_expression): Add type argument, use it to do math
2464         and induction variable creation.
2465         (lle_to_gcc_expression): Ditto.
2466         (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
2467         oldiv. Pass type argument to lle_to_gcc_expression and
2468         lbv_to_gcc_expression.
2469         Reset number of iterations after transformation.
2470         (perfect_nestify): Remove useless pre-allocation, and cleanup
2471         a small amount.
2472
2473         * tree-data-ref.c (build_classic_dist_vector): Return false for
2474         dependences completely outside of the loop nest we asked about.
2475         (build_classic_dir_vector): Ditto.
2476         (compute_data_dependences_for_loop): Only add dependence relations
2477         inside the loop we asked about.
2478
2479         * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
2480         Compute immediate uses.
2481
2482         * tree-optimize.c: Move linear_transform_loops to before ivcanon.
2483
2484 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
2485
2486         * tree-cfg.c (thread_jumps): Fix a comment typo.
2487
2488 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
2489
2490         * tree-cfg.c (thread_jumps): Fix a comment typo.
2491
2492 2004-10-31  Nicolas Pitre <nico@cam.org>
2493
2494         * config/arm/ieee754-sf.S (floatdisf): Fix regression with
2495         values smaller than 2^32.
2496
2497 2004-10-31 Jeff Law  <law@redhat.com>
2498
2499         * cfgloop.h (struct loop): Remove unused "nodes" field.
2500         * timevar.def (TV_TREE_LOOP_BOUNDS): New.
2501         * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
2502         instead of calling flow_bb_inside_loop_p for every basic block
2503         in the function.
2504         * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
2505
2506 2004-10-31  Graham Stott <graham.stott@btinternet.com>
2507
2508         * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo.  Use
2509         INT_5_BITS instead of VAL_5_BITS_P.
2510
2511 2004-10-31  Roger Sayle  <roger@eyesopen.com>
2512
2513         PR middle-end/14521
2514         * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
2515         for consistent quoting in diagnostic messages.
2516         (expand_call_inline): Likewise.
2517         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2518         * tree-ssa.c (warn_uninitialized_var): Likewise.
2519         (warn_uninitialized_phi): Likewise.
2520
2521 2004-10-31  Richard Sandiford  <rsandifo@redhat.com>
2522
2523         * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
2524         mode check.
2525
2526 2004-10-31  Kazu Hirata  <kazu@cs.umass.edu>
2527
2528         * c-common.c: Fix a comment typo.
2529
2530 2004-10-31  Jason Merrill  <jason@redhat.com>
2531
2532         PR middle-end/17526
2533         * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
2534         aggregate types that are not BLKmode.
2535
2536 2004-10-30  Ziemowit Laski  <zlaski@apple.com>
2537
2538         * c-common.h (objc_lookup_ivar): Add second parameter to
2539         prototype.
2540         * c-typeck.c (build_external_ref): After looking up symbol,
2541         pass it to objc_lookup_ivar() to decide whether it or the
2542         ivar should be used, rather than deciding the issue locally.
2543         * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
2544         which is simply returned in the non-ObjC case.
2545
2546 2004-10-30  Danny Smith  <dannysmith@users.sourceforge.net>
2547
2548         * sdbout.c (sdbout_symbol): Do not output type .def statements
2549         for builtin types.
2550
2551 2004-10-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2552
2553         * c-common.c (catenate_strings): New.
2554         (c_parse_error): Use it.  Don't over-escape.
2555
2556 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2557
2558         * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
2559         modify the for loop expressions for it.  Remove unnecessary casts.
2560         (sh_expand_prologue): Declare reg as unsigned.
2561         (sh_gimplify_va_arg_expr): Initinalize lab_over.
2562         (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
2563
2564 2004-10-30  Geoffrey Keating  <geoffk@apple.com>
2565
2566         * doc/invoke.texi (Darwin Options): Improve description of
2567         how the subtype is chosen.
2568
2569 2004-10-30  Roger Sayle  <roger@eyesopen.com>
2570
2571         PR middle-end/18096
2572         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
2573         the stack adjustment, "size", is valid for Pmode.  If the stack
2574         frame is too large, generate a trap insn and issue a warning.
2575
2576 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
2577
2578         * tree-ssa-dom.c: Fix comment typos.
2579
2580 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
2581
2582         * config/sh/sh.c (prepare_move_operands): Use operands[0]
2583         for the output rtl if no_new_pseudos is set.  Remove redundant
2584         line.
2585
2586 2004-10-30  Joseph S. Myers  <joseph@codesourcery.com>
2587
2588         PR c/16666
2589         * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
2590         determining whether to copy parameter types from a previous
2591         prototype declaration.
2592
2593 2004-10-29  Roger Sayle  <roger@eyesopen.com>
2594
2595         PR rtl-optimization/17581
2596         * cselib.c (cselib_process_insn): The last instruction of a libcall
2597         block, with the REG_RETVAL note, should be considered in the libcall.
2598         * gcse.c (do_local_cprop): Allow constants to be propagated outside
2599         of libcall blocks.
2600         (adjust_libcall_notes): Use simplify_replace_rtx instead of
2601         replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
2602
2603 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
2604
2605         * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
2606
2607 2004-10-29 Jeff Law  <law@redhat.com>
2608
2609         * tree-ssa-dom.c (struct edge_info): New structure holding
2610         edge equivalences and edge redirection information.
2611         (get_eq_expr_value, record_dominating_conditions): Kill.
2612         (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
2613         Call record_edge_info.
2614         (allocate_edge_info, free_edge_info): New.
2615         (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
2616         rather than cprop_into_phis.  Free all edge infos before threading
2617         jumps.
2618         (thread_across_edge): Allocate new edge info structures as needed
2619         and store the redirection target into the edge info structure
2620         instead of the edge's AUX field.
2621         (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
2622         (record_equivalence_from_incoming_edge): Lose unnecessary argument.
2623         Revamp code which finds and records equivalences associated with
2624         edges to use saved data in the edge_info structure.
2625         (record_equivalencs_from_phis): Similarly.
2626         (dom_opt_finalize_block): Revamp code which finds and records
2627         equivalences associated with edges to use saved data in the
2628         edge_info structure.
2629         (build_and_record_new_cond): New function.
2630         (record_conditions): Use build_and_record_new_cond to record
2631         dominating conditions.
2632         (record_edge_info): New function.
2633         (record_range): Tighten test for conditions which create
2634         useful range records.
2635
2636 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
2637
2638         * config/i386/darwin.h (ASM_SPEC): Simplify.
2639         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2640         * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
2641         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
2642         * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
2643         (LINK_SPEC): Do pass -arch here.  Handle -force_cpusubtype_ALL
2644         in all cases.  Pass the right -arch or -arch_only based on -mcpu.
2645         (ASM_SPEC): Handle -force_cpusubtype_ALL.
2646         * doc/invoke.texi (Darwin Options): Improve documentation for
2647         Darwin linker (and libtool) switches.
2648
2649         * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
2650
2651 2004-10-29  Stan Shebs  <shebs@apple.com>
2652
2653         * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
2654
2655 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
2656
2657         * tree-phinodes.c (allocate_phi_node): New.
2658         (make_phi_node, resize_phi_node): Use it.
2659
2660 2004-10-29  David Edelsohn  <edelsohn@gnu.org>
2661
2662         * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
2663         * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
2664
2665 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
2666
2667         * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
2668         the whole PHI node.
2669         * tree.h (tree_phi_node): Tell the garbage collector to chase
2670         num_args arguments.
2671
2672 2004-10-29  Richard Earnshaw  <rearnsha@arm.com>
2673
2674         * opts.c (decode_options): Lower the crossjump threshold for -Os.
2675
2676 2004-10-29  Diego Novillo  <dnovillo@redhat.com>
2677
2678         * tree.h (struct tree_ssa_name): Remove field 'equiv'.
2679
2680 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
2681
2682         * bitmap.h (bitmap_empty_p): New.
2683         (bitmap_and, bitmap_and_into, bitmap_and_compl,
2684         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
2685         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
2686         operation macros.
2687         (bitmap_ior_and_compl): Rename to ...
2688         (bitmap_ior_and_compl_into): ... here.
2689         * bitmap.c (bitmap_equal_p): Use bitmap_xor.
2690         (bitmap_ior_and_compl): Rename to ...
2691         (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
2692         flag.
2693         (bitmap_union_of_diff): Use renamed bitmap functions.
2694         * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
2695         XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
2696         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
2697         * df.c (df_bb_rd_local_compute)
2698         * flow.c (calculate_global_regs_live,
2699         init_propagate_block_info): Likewise.
2700         * ifcvt.c (find_if_case_1, find_if_case_2,
2701         dead_or_predicable): Likewise.
2702         * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
2703         reset_conflicts, conflicts_between_webs): Likewise.
2704         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
2705         detect_web_parts_to_rebuild): Likewise.
2706         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
2707         * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
2708         * tree-sra.c (decide_instantiations): Likewise.
2709         * tree-ssa-alias.c (create_name_tags,
2710         merge_pointed_to_info): Likewise.
2711         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2712         * tree-ssa-loop-im.c (move_computations): Likewise.
2713         * tree-ssa-operands.c (get_call_expr_operands): Likewise.
2714         * tree-ssa-pre.c (fini_pre): Likewise.
2715         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
2716         * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
2717         * tree-vectorizer.c (vectorize_loops): Likewise.
2718
2719 2004-10-29  Nick Clifton  <nickc@redhat.com>
2720
2721         config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
2722         adding the PIC register to the fixed_regs array, also add it
2723         to the call_used_regs array.
2724
2725 2004-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2726
2727         * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
2728         with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
2729
2730 2004-10-28  Daniel Berlin  <dberlin@dberlin.org>
2731
2732         * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
2733         (rewrite_blocks): Modify argument, and use it to decide which
2734         function to call.
2735         (rewrite_def_def_chains): Call rewrite_blocks with true here.
2736         (rewrite_into_ssa): and call it with false here.
2737
2738 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
2739
2740         * tree-phinodes.c (add_phi_arg): Turn an "if" that always
2741         triggers into gcc_assert.
2742
2743 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
2744
2745         PR tree-optimization/16728
2746         * tree-flow.h (get_ptr_info): Declare.
2747         * tree-ssa-alias.c (get_ptr_info): Make extern.
2748         * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
2749         alias information.
2750
2751 2004-10-28  Stan Shebs  <shebs@apple.com>
2752
2753         * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
2754         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
2755         case.
2756
2757 2004-10-28  Frank Ch. Eigler  <fche@redhat.com>
2758
2759         * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
2760         prevent their later unnecessary registration.
2761         (mf_build_check_statement_for): Remove "addr" argument, and
2762         related "__mf_value" generated code.  Update callers.
2763         (mf_decl_eligible_p): New function, factored from mx_register_decls.
2764         (mx_register_decls): Call it.
2765         (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
2766         to restore support for complex nested expressions.
2767         (mudflap_enqueue_decl): Simplify.  Move registration call emission
2768         out ...
2769         (mudflap_finish_file): ... to here.
2770         (mudflap_enqueue_constant): Remove dump code.
2771
2772 2004-10-28  Zack Weinberg  <zack@codesourcery.com>
2773
2774         PR 18199
2775         * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
2776         (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
2777         (dbxout_finish_complex_stabs): Update to match.
2778         (dbxout_symbol_location): Call emit_pending_bincls_if_required
2779         and FORCE_TEXT before DBX_STATIC_BLOCK_START.  Use
2780         dbxout_begin_complex_stabs_noforcetext.
2781         * xcoffout.h (DBX_FINISH_STABS): Restore special case for
2782         N_GSYM, using new SYM parameter.  Correct logic for special
2783         cases for N_FUN.
2784
2785         * varasm.c (function_section): If DECL is NULL_TREE, don't try
2786         to do anything else.  Do not call get_insns if cfun or
2787         cfun->emit are NULL.
2788
2789 2004-10-28  Adam Nemet  <anemet@lnxw.com>
2790
2791         PR middle-end/18160
2792         * c-typeck.c (c_mark_addressable): Issue error if address of a
2793         register variable is taken.  Use "%qD" to print DECL_NAME.
2794
2795 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
2796
2797         * opts.c (decode_options): Don't run PRE at -Os.
2798
2799 2004-10-28  Richard Henderson  <rth@redhat.com>
2800
2801         * config/alpha/alpha.md (movqicc_internal): Allow exactly one
2802         zero in the conditional.
2803         (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
2804
2805 2004-10-28  Richard Henderson  <rth@redhat.com>
2806
2807         * cse.c (memory_extend_rtx): Remove.
2808         (cse_main): Don't set it.
2809         (cse_insn): Use a local buffer instead.
2810
2811 2004-10-28  Andreas Krebbel  <krebbel1@de.ibm.com>
2812
2813         * profile.c (branch_prob): Call to init_edge_profiler added.
2814         * rtl-profile.c (rtl_init_edge_profiler): New function.
2815         (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
2816         call to safe_insert_insn_on_edge.
2817         (rtl_profile_hooks): rtl_init_edge_profiler added.
2818         * tree-profile.c (tree_init_edge_profiler): New function.
2819         (tree_profile_hooks): tree_init_edge_profiler added.
2820         * value-prof.h (profile_hooks) init_edge_profiler prototype added.
2821
2822 2004-10-28  Nick Clifton  <nickc@redhat.com>
2823
2824         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
2825         emit_jump_insn() to generate the return instruction.
2826
2827 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
2828
2829         * tree-phinodes.c: Remove trailing whitespace.
2830
2831 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
2832
2833         * tree-ssa-loop-ivopts.c: Fix a comment typo.
2834         * doc/invoke.texi: Fix a typo.
2835
2836 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
2837
2838         * Makefile.in (OBJS-common): Remove duplicates.
2839
2840 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
2841
2842         * lambda-code.c (nestify_update_pending_stmts): Remove.
2843         (perfect_nestify): Use flush_pending_stmts instead of
2844         nestify_update_pending_stmts.
2845         * tree-cfg.c (tree_make_forwarder_block): Use
2846         flush_pending_stmts.
2847         * tree-flow.h: Add a prototype for flush_pending_stmts.
2848         * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
2849         Use flush_pending_stmts.
2850         (lv_update_pending_stmts): Remove.
2851         (tree_ssa_loop_version): Use flush_pending_stmts instead of
2852         lv_update_pending_stmts.
2853         * tree-ssa.c (flush_pending_stmts): New.
2854
2855 2004-10-28  Ulrich Weigand  <uweigand@de.ibm.com>
2856
2857         PR target/15286
2858         * final.c (alter_subreg): Compute correct offset to use with
2859         paradoxical SUBREGs of memory operands.
2860         * recog.c (general_operand): Allow paradoxical SUBREGs of
2861         memory operands after reload.
2862         * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
2863         has failed when passed a hard register.
2864
2865 2004-10-28  Aldy Hernandez  <aldyh@redhat.com>
2866
2867         * function.c (assign_parm_setup_block): Handle parallels correctly.
2868
2869 2004-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
2870
2871         * final.c (shorten_branches): Initialize flags structure.
2872
2873 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
2874
2875         * tree.c (int_cst_node, int_cst_hash_table): New variables.
2876         (init_ttree): Initialize them.
2877         (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
2878         (build_int_cst_wide): Use hash table for oversized integers.
2879
2880 2004-10-28  Nick Clifton  <nickc@redhat.com>
2881
2882         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
2883         begin_label.
2884
2885 2004-10-27  Richard Henderson  <rth@redhat.com>
2886
2887         PR middle-end/18163
2888         * expr.c (emit_group_load): Don't go force temporary for memory
2889         or concat source.
2890         (emit_group_store): Similarly.
2891
2892 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
2893
2894         PR other/18186
2895         * common.opt (--param): Fix spelling of parameter.
2896
2897 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
2898
2899         PR tree-opt/17529
2900         * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
2901         Don't fold statement.
2902         <case ASM_EXPR>: Fold the statement.
2903
2904 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
2905
2906         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
2907         <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
2908
2909 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
2910
2911         * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
2912         doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
2913         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
2914         doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
2915
2916 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
2917
2918         * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
2919         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
2920         punctuation outside quotes.
2921
2922 2004-10-27  David Mosberger  <davidm@hpl.hp.com>
2923             James E Wilson  <wilson@specifixinc.com>
2924
2925         PR target/13158
2926         * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
2927         sibcall alloc instruction.
2928         (process_set): Handle sibcall alloc instruction.
2929
2930 2004-10-27  Geoffrey Keating  <geoffk@apple.com>
2931
2932         * config/rs6000/rs6000.c (rs6000_attribute_table): Add
2933         SUBTARGET_ATTRIBUTE_TABLE.
2934         * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
2935         (SUBTARGET_ATTRIBUTE_TABLE): Define.
2936         * config/darwin.c (darwin_handle_weak_import_attribute): New.
2937         (HAVE_DEAD_STRIP): Delete.
2938         (no_dead_strip): Don't test HAVE_DEAD_STRIP.
2939         * config/darwin-protos.h (darwin_handle_weak_import_attribute):
2940         Prototype.
2941
2942         * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
2943
2944         * config/darwin.h (GTHREAD_USE_WEAK): Define.
2945
2946 2004-10-28  Ben Elliston  <bje@au.ibm.com>
2947
2948         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
2949         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
2950         * params.h (SRA_MAX_STRUCTURE_SIZE): New.
2951         (SRA_FIELD_STRUCTURE_RATIO): Likewise.
2952         * tree-sra.c: Include "params.h".
2953         (decide_block_copy): Use new parameters.
2954         * doc/invoke.texi (Optimize Options): Document new SRA pass
2955         parameters sra-max-structure-size and sra-field-structure-ratio.
2956
2957 2004-10-27  Nicolas Pitre <nico@cam.org>
2958
2959         * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
2960
2961 2004-10-27  Zdenek Dvorak  <dvorakz@suse.cz>
2962
2963         PR tree-optimization/18048
2964         * fold-const.c (try_move_mult_to_index): New function.
2965         (fold): Use try_move_mult_to_index.
2966         * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
2967         * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
2968         an all-ones unsigned constant without extra bits.
2969         * tree.c (build_low_bits_mask): New function.
2970         * tree.h (build_low_bits_mask): Declare.
2971
2972 2004-10-27  David Edelsohn  <edelsohn@gnu.org>
2973
2974         PR target/17956
2975         * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
2976         final condition.
2977         (minsf3): Same.
2978         (maxdf3): Same.
2979         (mindf3): Same.
2980
2981 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
2982
2983         * tree-cfg.c (thread_jumps): Speed up by reordering the two
2984         conditions for entering basic blocks into worklist.
2985
2986 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
2987
2988         * tree-cfg.c (thread_jumps): Speed up by pretending to have
2989         ENTRY_BLOCK_PTR in worklist.
2990
2991 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
2992
2993         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
2994         <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
2995
2996 2004-10-27  Daniel Berlin <dberlin@dberlin.org>
2997
2998         Fix PR tree-optimization/17133
2999
3000         * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
3001         def kill operand.
3002
3003         * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
3004         (get_v_must_def_result_ptr): Modify for new structure of
3005         v_must_defs array.
3006         (get_v_must_def_kill_ptr): New.
3007         (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
3008         (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
3009         (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
3010         (op_iter_init): Initialize new mustu members.
3011         (op_iter_next_mustdef): New function.
3012         (op_iter_init_mustdef): Ditto.
3013
3014         * tree-flow.h (rewrite_def_def_chains): New function.
3015
3016         * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
3017         (ssa_mark_def_sites): Ditto.
3018         (rewrite_stmt): Ditto.
3019         (ssa_rewrite_stmt): Ditto.
3020         (rewrite_blocks): Factor out from rewrite_into_ssa.
3021         (mark_def_block_sites): Ditto.
3022         (rewrite_def_def_chains): New function, just rewrites def-def
3023         chains without phi node insertion.
3024
3025         * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
3026
3027         * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
3028
3029         * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
3030         they include the rhs now.
3031
3032         * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
3033         V_MUST_DEF_RESULT.
3034
3035         * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
3036         Update callers.
3037         (mark_really_necessary_kill_operand_phis): New function.
3038         (perform_tree_ssa_dce): Call it.
3039         (pass_dce): Add TODO_fix_def_def_chains.
3040         (pass_cd_dce): Ditto.
3041
3042         * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
3043         well.
3044         (rewrite_mem_refs): Ditto.
3045
3046         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
3047         as well.
3048
3049         * tree-ssa-operands.c (allocate_v_may_def_optype):
3050         v_may_def_operand_type_t became v_def_use_operand_type_t.
3051         (allocate_v_must_def_optype) Ditto.
3052         (finalize_ssa_v_must_defs): Update for new operand type, as well
3053         as setting the use portion as well.
3054         (copy_virtual_operands): Copy the kill operand as well.
3055         (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
3056         V_MUST_DEF_RESULT.
3057
3058         * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
3059         v_def_use_operand_type.
3060         (v_must_def_optype_d): Use v_def_use_operand_type.
3061         (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
3062         (V_MUST_DEF_KILL_*): New macros.
3063         (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
3064         members.
3065         Rename existing must_i and num_v_must members to mustd_i and
3066         num_v_mustd.
3067         (SSA_OP_VMUSTDEFKILL): New flag.
3068         (SSA_OP_VIRTUAL_KILLS): New flag.
3069         (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
3070         (SSA_OP_ALL_KILLS): New flag.
3071         (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
3072
3073         * tree-ssa.c (verify_ssa): Verify virtual kills as well.
3074
3075         * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
3076         became V_MUST_DEF_RESULT.
3077         (rename_variables_in_bb): Rename kill pointer as well.
3078
3079         * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
3080         immediate uses.
3081
3082 2004-10-27  Richard Sandiford  <rsandifo@redhat.com>
3083
3084         * dbxout.c (dbxout_source_line): Move declaration of begin_label to
3085         the block that needs it.
3086
3087 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
3088
3089         * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
3090         ATTRIBUTE_UNUSED.
3091
3092 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
3093
3094         * c-lex.c (cb_def_pragma): Clean up code for making location
3095         palatable to diagnostic.c.
3096
3097 2004-10-27  Steven Bosscher  <stevenb@suse.de>
3098
3099         PR tree-optimization/17757
3100         * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
3101         without any PHI arguments left.  Make sure the argument that
3102         we're supposed to remove exists at all.
3103
3104 2004-10-27  Paul Brook  <paul@codesourcery.com>
3105
3106         * configure.ac: Don't test for [build] __cxa_atexit when building a
3107         cross compiler.
3108         * configure: Regenerate.
3109
3110 2004-10-27  Paul Brook  <paul@codeosurcery.com>
3111
3112         * configure.ac: Use build_exeext not host_exeext when lookin for
3113         target tools.
3114         * configure: Regenerate.
3115
3116 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3117
3118         * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
3119
3120 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3121             patch originally created by Kelley Cook  <kcook@gcc.gnu.org>
3122
3123         PR middle-end/14684
3124         * opts.c (OPT_fprofile_generate): Default to -funroll-loops
3125         to match -fprofile-use.
3126
3127 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
3128
3129         * config/rs6000/rs6000.c: Fix a comment typo.
3130
3131 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
3132
3133         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
3134         counter.
3135
3136 2004-10-27  Andreas Schwab  <schwab@suse.de>
3137
3138         * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
3139         unused.
3140         (default_stabs_asm_out_constructor): Likewise.
3141
3142 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
3143
3144         * builtins.c (fold_builtin_unordered_cmp): Always bring both
3145         operands to the same type.
3146
3147 2004-10-26  James E Wilson  <wilson@specifixinc.com>
3148
3149         PR target/18010
3150         * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
3151
3152 2004-10-26  Zack Weinberg  <zack@codesourcery.com>
3153
3154         * dbxout.c: Include obstack.h.
3155         (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
3156         default definition.
3157         (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
3158         Default-define here.
3159         (DBX_CONTIN_LENGTH): Move definition with others.
3160         (DBX_FINISH_STABS): New target macro.
3161         (current_sym_code, current_sym_value, current_sym_addr)
3162         (current_sym_nchars, CHARS, dbxout_continue)
3163         (print_int_cst_octal, print_octal, print_wide_int)
3164         (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
3165         (stabstr_ob, stabstr_last_contin_point): New variables.
3166         (NUMBER_FMT_LOOP): New improper macro.
3167         (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
3168         (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
3169         (dbxout_stab_value_internal_label_diff, dbxout_stabd)
3170         (dbxout_begin_stabn, dbxout_begin_stabn_sline)
3171         (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
3172         (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
3173         (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
3174         (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
3175         New functions and/or proper function-like macros.
3176         (CONTIN): Use stabstr_continue, unconditionally.
3177         (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
3178         (dbxout_init): Initialize stabstr_ob.  Check
3179         NO_DBX_MAIN_SOURCE_DIRECTORY.  Only write out the Ltext label
3180         if it was used.  Use the new interfaces.
3181         (dbxout_source_file): Remove file argument; always write to
3182         asm_out_file.  Use the new interfaces.
3183         (dbxout_type_method_1): Remove second argument which is always
3184         DECL_ASSEMBLER_NAME of the first argument.  Use the new interfaces.
3185         (dbxout_type_methods): Remove write-only variables.  Use the
3186         new interfaces.
3187         (dbxout_parms): Refactor to remove code duplicated in each of
3188         several successive if-else-if blocks.  Use the new interfaces.
3189         (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
3190         (dbxout_source_line, dbxout_finish, dbxout_type_index)
3191         (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
3192         (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
3193         (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
3194         (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
3195         Use the new interfaces.
3196         * Makefile.in (dbxout.o): Update dependencies.
3197
3198         * defaults.h: Don't define ASM_STABD_OP.
3199         * output.h: Prototype new dbxout_* interfaces.
3200         * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
3201         * varasm.c: Don't define ASM_STABS_OP.
3202         (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
3203         Use the new dbxout.c interfaces.  Call sorry if neither
3204         DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
3205
3206         * xcoffout.h: Don't define ASM_STABS_OP.
3207         (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
3208         (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
3209         (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
3210         (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
3211         do { ... } while (0) idiom.
3212
3213         * config/alpha/alpha.c (num_source_filenames): Export.
3214         * config/alpha/alpha.h (num_source_filenames): Declare.
3215         (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3216         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
3217         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3218         Always use .debugsym.  Update commentary.
3219         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
3220         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
3221         * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
3222         Use new interfaces.
3223         * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
3224         (macho_branch_islands): Use new interfaces.
3225
3226         * doc/tm.texi: Update.
3227
3228 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
3229
3230         * expr.c (emit_group_store): Do not treat floats as BLKmode.
3231         (emit_group_load): Same.
3232
3233 2004-10-26  Joseph S. Myers  <jsm@polyomino.org.uk>
3234
3235         * c-parse.in (datadef): Use pedwarn rather than error and warning
3236         for diagnostic in case of no declaration specifiers.
3237
3238 2004-10-26  Richard Sandiford  <rsandifo@redhat.com>
3239
3240         PR bootstrap/15747
3241         * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
3242         reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
3243         can be used to work around this.
3244
3245 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
3246
3247         * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
3248         doubles.
3249
3250 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
3251
3252         * stmt.c (expand_case): Update a comment.
3253
3254 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
3255
3256         * stmt.c (expand_case): Put an assertion that index_expr is
3257         never INTEGER_CST.  Don't special case for constant
3258         index_expr.
3259
3260 2004-10-26  Andrew Pinski  <pinskia@physics.uc.edu>
3261
3262         PR 18162
3263         * c-parse.in (designator): Finish with a semi-colon.
3264
3265 2004-10-26  Fariborz Jahanian <fjahanian@apple.com>
3266
3267         * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
3268         into rotlsi3.
3269
3270 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
3271
3272         * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
3273         a default case only.
3274
3275 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
3276
3277         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
3278         e500 doubles.
3279         (spe_build_register_parallel): New.
3280         (rs6000_spe_function_arg): Handle e500 doubles.
3281         (function_arg): Same.
3282         (spe_func_has_64bit_regs_p): Same.
3283         (rs6000_function_value): Same.
3284         (rs6000_libcall_value): Same.
3285         (legitimate_lo_sum_address_p): Return false for e500 doubles.
3286
3287         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
3288         doubles.
3289         (DATA_ALIGNMENT): Same.
3290         (CANNOT_CHANGE_MODE_CLASS): Same.
3291
3292 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
3293
3294         * expr.c (emit_group_load): Handle floats.
3295         (emit_group_store): Same.
3296
3297 2004-10-26  Nathan Sidwell  <nathan@codesourcery.com>
3298
3299         * c-lex.c (get_nonpadding_token): Remove.
3300         (c_lex_with_flags): Push timevar and eat padding here.  Improve
3301         stray token diagnostic.
3302         (lex_string): Replace logic with switch statement, eat padding
3303         token here.
3304
3305 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
3306
3307         PR 18149
3308         * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
3309
3310 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
3311
3312         * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
3313         to 'non-weak'.
3314         (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
3315         (ASM_MAKE_LABEL_LINKONCE): Delete.
3316         (ASM_WEAKEN_DECL): New.
3317         (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
3318         (ASM_DECLARE_FUNCTION_NAME): Likewise.
3319         (TEXT_SECTION_ASM_OP): Add a tab.
3320         (DATA_SECTION_ASM_OP): Likewise.
3321         (SECTION_FUNCTION): Add a tab.  Use fputs.  Don't call
3322         data_section on every section change.
3323         (EXTRA_SECTIONS): Add a bunch of new extra sections.
3324         (EXTRA_SECTION_FUNCTIONS): Likewise.
3325         (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
3326         (JCR_SECTION_NAME): Define.
3327         (TARGET_SECTION_TYPE_FLAGS): Don't define.
3328         * config/darwin.c (darwin_encode_section_info): A symbol is defined
3329         in this file if it is not weak.
3330         (textcoal_section): Delete.
3331         (datacoal_section): Delete.
3332         (darwin_make_decl_one_only): Delete.
3333         (machopic_select_section): Handle functions.
3334         (darwin_asm_named_section): Add a tab.
3335         (darwin_section_type_flags): Delete.
3336         (darwin_unique_section): Delete contents.
3337         (darwin_emit_unwind_label): Add a tab.  Make decls weak if
3338         DECL_WEAK is set.
3339         * config/darwin-protos.h (darwin_section_type_flags): Delete.
3340         (darwin_make_decl_one_only): Delete.
3341         (text_coal_section): New.
3342         (text_unlikely_section): New.
3343         (text_unlikely_coal_section): New.
3344         (const_coal_section): New.
3345         (data_coal_section): New.
3346         (const_data_coal_section): New.
3347         * varasm.c (function_section): Honour
3348         USE_SELECT_SECTION_FOR_FUNCTIONS.
3349         * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
3350         TARGET_USES_WEAK_UNWIND_INFO is in effect.
3351         * dbxout.c (dbxout_source_file): Don't change sections while
3352         a function is being output.
3353
3354 2004-10-25  David Ayers  <d.ayers@inode.at>
3355
3356         * c-common.h: Remove RID_ID.
3357         * c-parse.in: Remove OBJECTNAME and references to RID_ID.
3358         (typespec_reserved_attr): Add rule for TYPENAME
3359         non_empty_protocolrefs.
3360         (yylexname): Remove special handling of RID_ID.
3361
3362 2004-10-25  James E Wilson  <wilson@specifixinc.com>
3363
3364         * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
3365
3366 2004-10-25  Joseph S. Myers  <jsm@polyomino.org.uk>
3367
3368         PR c/16667
3369         * c-parse.in (array_designator): New.
3370         (designator): Use it.
3371         (initelt): Only permit array_designator without '=', not ".foo".
3372
3373 2004-10-25  Kenneth Zadeck <zadeck@naturalbridge.com>
3374         * gcc/Makefile.in: removed ggc for cgraphunit.
3375         * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
3376         * gcc/cgraph.h: removed static var analysis data structures and calls.
3377         * gcc/cgraphunit.c:
3378         cgraph_mark_local_and_external_functions:changed name to
3379                 cgraph_mark_local_functions
3380         (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
3381         cgraph_reset_static_var_maps,get_global_static_vars_info,
3382         get_global_statics_not_read,get_global_statics_not_written,searchc,
3383         cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
3384         check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
3385         scan_for_static_refs,cgraph_characterize_statics_local,
3386         clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
3387         removed.
3388         (cgraph_optimize,init_cgraph): removed calls to static vars analysis
3389         * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
3390         analysis
3391         * gcc/tree-flow.h static_vars_info: removed
3392         * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
3393         removed calls to static vars analysis.
3394         get_call_expr_operands: removed callee variable.
3395
3396 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
3397
3398         * cfg.c (unchecked_make_edge, redirect_edge_succ,
3399         redirect_edge_pred): Use VEC_safe_push instead of
3400         VEC_safe_insert.
3401         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3402
3403 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
3404
3405         * cfgloopmanip.c (loopify): Take two more arguments true_edge
3406         and false_edge.
3407         * cfgloop.h: Adjust the corresponding prototype.
3408         * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
3409         * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
3410
3411 2004-10-25  Jakub Jelinek  <jakub@redhat.com>
3412
3413         * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
3414         DECL_INCOMING_RTL is NULL.
3415
3416 2004-10-25  Steven Bosscher  <stevenb@suse.de>
3417
3418         * timevar.def (TV_FIND_REFERENCED_VARS): New.
3419         * tree-dfa.c (pass_referenced_var): Use it.
3420
3421 2004-10-25  Roger Sayle  <roger@eyesopen.com>
3422             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3423
3424         * cse.c: Change encoding of quantity numbers to avoid undefined
3425         pointer arithmetic on qty_table.
3426         (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
3427         (get_cse_reg_info): Initialize reg_qty to a unique negative value.
3428         (new_basic_block): Assign "real" quantity numbers from zero.
3429         (delete_reg_equiv): Do nothing if quantity is invalid.  Reset the
3430         REG_QTY to its unique negative value.
3431         (merge_equiv_classes): Calculate need_rehash if quantity is valid.
3432         (cse_main): Don't include max_reg when determining max_qty.
3433         (cse_basic_block): Avoid subtracting a large offset from qty_table,
3434         which causes undefined C99 behaviour.  Only allocate needed memory.
3435
3436 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
3437
3438         * stmt.c (expand_case): Remove an obsolete comment.
3439
3440 2004-10-25  Andrew Pinski  <pinskia@physics.uc.edu>
3441
3442         PR middle-end/17407
3443         * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
3444         layout_type as it is already done by build_array_type.
3445         * tree.c (build_array_type): Layout the type even
3446
3447 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
3448
3449         * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
3450
3451 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
3452
3453         * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
3454         with wider-than-32-bit HOST_WIDE_INTs.
3455
3456 2004-10-25  David Billinghurst <David.Billinghurst@riotinto.com>
3457
3458         * config/mips/mips.c(mips_output_filename): Remove unused
3459         array ltext_label_name
3460
3461 2004-10-24  Geoffrey Keating  <geoffk@geoffk.org>
3462
3463         * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
3464
3465 2004-10-25  Ben Elliston  <bje@au.ibm.com>
3466
3467         * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
3468
3469 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
3470
3471         * predict.c (predict_loops): Call scev_finalize instead of
3472         scev_reset.
3473
3474 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
3475
3476         * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
3477         config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
3478         config/sh/ushmedia.h, config/sparc/elf.h,
3479         config/sparc/sp64-elf.h: Update copyright.
3480
3481 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
3482
3483         * stmt.c (expand_case): Handle the default label outside of
3484         the for loop.  Remove code to handle a missing de