OSDN Git Service

54334091193399892f5cccbcf2cfed20825947b7
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
2
3         PR middle-end/18725
4         * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
5         shared always.
6
7 2004-11-29  Diego Novillo  <dnovillo@redhat.com>
8
9         PR tree-optimization/18712
10         * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
11         WORK_STACK by reference.
12         Call VEC_safe_push instead of VEC_quick_push.
13         Update all users.
14
15 2004-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
16
17         PR c/7544
18         * Makefile.in (c-lang.o): Update dependencies.
19         * c-lang.c: Include "c-pragma.h".
20         (finish_file): Call maybe_apply_pending_pragma_weaks.
21         * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
22         * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
23
24 2004-11-29  Richard Henderson  <rth@redhat.com>
25
26         PR target/17224
27         * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
28         outside the referenced object.
29
30 2004-11-29  Kazu Hirata  <kazu@cs.umass.edu>
31
32         * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
33         EDGE_PRED instead of PHI_ARG_EDGE.
34         * tree-ssa-live.c: Likewise.
35         * tree-ssa-loop-manip.c: Likewise.
36         * tree-ssa.c: Likewise.
37
38         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
39         simplifying edge manipulation.
40
41         * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
42         EDGE_COUNT.
43
44         * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
45         only when needed.
46
47         * cfg.c (flow_obstack): Remove.
48         (flow_firstobj): Likewise.
49         (init_flow): Remove all uses of flow_obstack.
50
51 2004-11-29  Alan Modra  <amodra@bigpond.net.au>
52
53         * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
54         to named_section.
55
56 2004-11-29  Nathan Sidwell  <nathan@codesourcery.com>
57
58         * opts.c (decode_options): Do not set max-inline-insns-rtl.
59         (common_handle_option): Likewise.
60         * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
61         * params.h (MAX_INLINE_INSNS_RTL): Remove.
62         * doc/invoke.texi (max-inline-insns-rtl): Remove.
63
64 2004-11-29  Alan Modra  <amodra@bigpond.net.au>
65
66         PR target/9571
67         * varasm.c (default_elf_select_section_1): Pass decl to named_section.
68
69 2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>
70
71         PR middle-end/18164
72         * gimplify.c (gimplify_asm_expr): If the length of an output operand
73         is zero, do not process it, just let it go through.
74
75 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
76             Diego Novillo  <dnovillo@redhat.com>
77
78         PR/18662, also backported from tree-cleanup-branch.
79         * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
80         always call maybe_clean_eh_stmt and modify_stmt.
81
82 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
83
84         PR/18664
85         * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
86         Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
87         * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
88         add an inverse VIEW_CONVERT_EXPR to const_val.
89
90         PR/18657
91         * tree-nested.c (check_for_nested_with_variably_modified): New.
92         (create_nesting_tree): Call it.
93
94         * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
95         special code for assigning to non-pointer.
96         (is_escape_site): If RHS is a conversion between pointer and integer
97         types,  this is an escape site.
98
99         * gcse.c (insert_store): Error if try to insert store on abnormal edge.
100         (store_motion): Don't move store if any edge we'd want to move it
101         to is abnormal.
102
103         * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
104         non-zero lower bound.
105
106         * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
107
108 2004-11-28  Matt Kraai  <kraai@alumni.cmu.edu>
109
110         PR diagnostic/17594
111         * opts.c (find_opt): Require that the input match a switch exactly
112         or that the switch take a joined option to be interpreted as a
113         match for another language.
114
115 2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>
116
117         * timevar.def (TV_TREE_REDPHI): New timevar.
118         * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
119
120 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
121
122         PR preprocessor/17651
123         * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
124         flag_no_line_commands.
125         * c-ppoutput.c (pp_file_change): Remove now-redundant check of
126         flag_no_output.
127
128 2004-11-28  Theodore A. Roth  <troth@openavr.org>
129
130         * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
131         warning if the function name does not begin with "__vector" and the
132         function has either the 'signal' or 'interrupt' attribute.
133
134 2004-11-28  Theodore A. Roth  <troth@openavr.org>
135
136         * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
137         atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
138         atmega325, atmega3250, atmega645 and atmega6450.
139         * config/avr/avr.h (LINK_SPEC): Ditto.
140         (LIB_SPEC): Ditto.
141         (LIBGCC_SPEC): Ditto.
142         (CRT_BINUTILS_SPECS): Ditto.
143         * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
144
145 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
146
147         PR preprocessor/17610
148         * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
149
150 2004-11-28  Jeff Law  <law@redhat.com>
151
152         * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
153         (pass_maybe_create_global_var): New.
154         * tree-pass.h (pass_maybe_create_global_var): Declare.
155         * tree-optimize.c (init_tree_optimization_passes): Link in
156         pass_maybe_create_global_var.
157
158 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
159
160         * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
161
162 2004-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
163
164         PR rtl-optimization/18420
165         * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
166
167 2004-11-28  Steven Bosscher  <stevenb@suse.de>
168             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
169
170         * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
171         * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
172         that the case is in range, to make sure the casesi insn is always
173         in range and never falls through.
174         (casesi1): Add comment to explain why casesi never falls through.
175         Remove the unnamed special case casesi pattern.
176
177 2004-11-28  Hans-Peter Nilsson  <hp@bitrange.com>
178
179         PR target/18331
180         * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
181         "*movdicc_real".  Only match reversible comparisons.
182         ("*movdicc_real_nonreversible"): New pattern, split from
183         "*movdicc_real".  Match only nonreversible comparisons.  Exclude
184         reversed alternatives.
185         ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
186         Similar.
187
188 2004-11-27  Richard Henderson  <rth@redhat.com>
189
190         * config/ia64/ia64.md: Move all define_predicate's ...
191         * config/ia64/predicates.md: ... here.  New file.
192
193 2004-11-27  Per Bothner  <per@bothner.com>
194
195         PR bootstrap/18142
196         Re-applied following, with two modifications: add a URL for the
197         fixed cctools; only exit if $build = $target.
198
199         2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
200         * configure.ac (powerpc-*-darwin*): Require assembler to support
201         .machine directive.
202         * configure: Regenerate.
203
204 2004-11-28  David Edelsohn  <edelsohn@gnu.org>
205
206         PR target/16800
207         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
208         EQ, GTU, and LTU costs.  Add costs for GT, LT, and UNORDERED.
209         Distinguish between SImode and DImode CONST_INT.
210
211 2004-11-28  Andreas Fischer <a_fisch@gmx.de>
212             Alan Modra  <amodra@bigpond.net.au>
213
214         PR target/16343
215         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
216         functions, strings and thread-local vars.
217
218 2004-11-28  Alan Modra  <amodra@bigpond.net.au>
219
220         * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
221         * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
222         * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
223         to allow non-darwin ABIs to optimize away code.
224         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
225
226 2004-11-27  Kazu Hirata  <kazu@cs.umass.edu>
227
228         * tree.c (operand_equal_for_phi_arg_p): New.
229         * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
230         * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
231         Replace operand_equal_p with operand_for_phi_arg_p
232         appropriately.
233
234         * bb-reorder.c (find_traces_1_round): Speed up by using
235         EDGE_COUNT instead of FOR_EACH_EDGE.
236
237         * fold-const.c, config/i386/linux64.h: Fix comment typos.
238
239 2004-11-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
240
241         PR pch/14940
242         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
243
244 2004-11-27  Kazu Hirata  <kazu@cs.umass.edu>
245
246         * config/i386/linux.h: Fix a comment typo.
247         * doc/extend.texi: Fix a typo.
248
249 2004-11-27  Jeff Law  <law@redhat.com>
250
251         * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
252         are merged.
253
254 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
255
256         * config/i386/linux64.h (REG_NAME): Define.
257
258 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
259
260         * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
261         unsigned and type signed, build ABS_EXPR with signed_type (ctype)
262         and only afterwards convert to ctype.
263
264 2004-11-27  Richard Sandiford  <rsandifo@redhat.com>
265
266         * config/mips/mips-protos.h (function_arg_boundary): Declare.
267         * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
268         (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
269         (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
270         * config/mips/mips.c (function_arg_boundary): New function.
271         Impose a maximum alignment of STACK_BOUNDARY.
272
273 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
274
275         PR rtl-optimization/17825
276         * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
277         or not.
278
279 2004-11-27  Alan Modra  <amodra@bigpond.net.au>
280
281         PR target/12769
282         * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
283         from rs6000_default_long_calls for libcalls.
284
285 2004-11-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
286
287         * expmed.c (extract_bit_field): When extracting from non-integer mode,
288         force a SUBREG into a register because we may be taking a further
289         SUBREG of it.
290
291 2004-11-27  Di-an Jan  <dianj@freeshell.org>
292
293         * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
294
295 2004-11-26  Robert Millan  <robertmh@gnu.org>
296
297         Changes for k*bsd-gnu support.
298         * config/i386/linux.h: Define REG_NAME to allow overriding of
299         register names in sc structure.
300         * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
301         of sc->reg.
302         * config.gcc: Detect x86_64-k*bsd-gnu systems.
303
304 2004-11-26  Jeff Law  <law@redhat.com>
305
306         * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
307         retrieve annotations or pointer info before it's necessary.
308         Reorder tests for early continue of the loop.  Manually CSE
309         SSA_NAME_VAR.
310
311 2004-11-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
312
313         * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
314         * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
315         (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
316         * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
317         to a fixed reg if the source is the Return Address register.
318         Implement new Rule 15.
319         * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
320         * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
321         sparc_dwarf_handle_frame_unspec.
322         (gen_save_register_window): New function.
323         (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
324         (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
325         (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
326         Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
327         (sparc_asm_function_prologue): Do not emit call frame debugging info.
328         (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
329         (sparc_expand_epilogue): Likewise.
330         (sparc_dwarf_handle_frame_unspec): New function.
331         * config/sparc/sparc.md (save_register_window): Remove.
332         (save_register_windowdi): Rewrite modelled on the callframe debug info.
333         (save_register_windowsi): Likewise.
334
335 2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
336
337         * config/frv/frv-protos.h: Guard ifcvt functions declarations with
338         BB_HEAD, not BLOCK_HEAD.
339
340 2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
341
342         * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
343         scratch insns that set a register live at the join point.
344
345 2004-11-26  Kazu Hirata  <kazu@cs.umass.edu>
346
347         * cse.c, tree-ssa-operands.c: Fix comment typos.
348
349         * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
350
351 2004-11-26  James A. Morrison  <phython@gcc.gnu.org>
352
353         PR target/18510
354         * doc/extend.texi (SPARC VIS Built-in Functions): New section.
355
356 2004-11-26  Kazu Hirata  <kazu@cs.umass.edu>
357
358         * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
359         check that tests if all edges go to the same destination.
360
361         * bitmap.c (bitmap_find_bit): Speed up by traversing from
362         head->first if that seems profitable.
363
364 2004-11-25  Jeff Law  <law@redhat.com>
365
366         * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
367         * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
368         (pass_loop_done): Use TV_TREE_LOOP_FINI.
369
370 2004-11-26  Alan Modra  <amodra@bigpond.net.au>
371
372         PR rtl-optimization/16356
373         * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
374         separate output register and one less jump.  Enable for powerpc64.
375         (floatdisf2): Adjust for above.
376
377 2004-11-25  Bob Wilson  <bob.wilson@acm.org>
378
379         * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
380         (GCC_DRIVER_HOST_INITIALIZATION): Define.
381
382 2004-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
383
384         PR middle-end/17957
385         * tree-complex.c (vector_inner_type): New variable moved from
386         build_word_mode_vector_type.
387         (vector_last_type): Likewise.
388         (vector_last_nunits): Likewise.
389         (build_word_mode_vector_type): Use the new variables.
390         * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
391         (GTFILES): Add tree-complex.c.
392         (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
393
394 2004-11-25  Bob Wilson  <bob.wilson@acm.org>
395
396         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
397         __XTENSA_WINDOWED_ABI__.
398
399 2004-11-25  Richard Henderson  <rth@redhat.com>
400
401         * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument.  Save
402         args_size adjustments for calls even with cfa as stack pointer.
403         Search calls for stack adjustments after the insn is issued.
404         (dwarf2out_frame_debug): Add after_p argument; pass it on.
405         * dwarf2out.h (dwarf2out_frame_debug): Update to match.
406         * final.c (final_start_function, final_scan_insn): Likewise.
407
408 2004-11-25  Richard Henderson  <rth@redhat.com>
409
410         PR c++/6764
411         * reload1.c (set_initial_eh_label_offset): New.
412         (set_initial_label_offsets): Use it.
413
414 2004-11-25  Kaz Kojima  <kkojima@gcc.gnu.org>
415
416         * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
417         before calling life_analysis and release them after.
418
419 2004-11-25  Kazu Hirata  <kazu@cs.umass.edu>
420
421         * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
422         duplicate code.
423
424 2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
425
426         * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
427         BITMAP_OBSTACK_ALLOC.
428         (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
429
430 2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
431
432         parts of PR rtl-opt/18463, rtl-opt/17647
433         * cse.c (canon_for_address): New function.
434         (find_best_addr): Call canon_for_address before getting the
435         address's cost when checking if we should take that address.
436
437 2004-11-25  Kazu Hirata  <kazu@cs.umass.edu>
438
439         * tree-phinodes.c (add_phi_arg): Take "tree" instead of
440         "tree *" as the first argument.
441         * tree-flow.h: Update the prototype of add_phi_arg.
442         * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
443         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
444         tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
445         tree-vectorizer.c: Update all call sites of add_phi_arg.
446
447 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
448
449         * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
450         * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
451         (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
452         (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
453
454 2004-11-25  Andrew MacLeod  <amacleod@redhat.com>
455
456         PR tree-optimization/18587
457         * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
458         call clobbered caches as invalid.
459         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New.  Flag
460         indicating whether the call clobbered operand cache is valid.
461         (ssa_ro_call_cache_valid): New.  Flag indicating whether the
462         pure/const call operand cache is valid.
463         (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New.  Cached
464         list of operands for cached call virtual operands.
465         (clobbered_aliased_loads, clobbered_aliased_stores,
466         ro_call_aliased_load): New.  flags caching whether alias bits are
467         to be set in call stmt's.
468         (fini_ssa_operands): Remove call operand caches if present.
469         (get_expr_operands, get_asm_expr_operands,
470         get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
471         (get_call_expr_operands): Add call clobbered variables first.
472         (add_stmt_operand): Take stmt annotation rather than stmt as a param.
473         (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
474         if it is valid, otherise fill the cache.
475         * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
476         * tree-flow.h (struct var_ann_d): Add in_vuse_list and
477         in_v_may_def_list bits.
478         * tree-ssa-operands.c (cleanup_v_may_defs): New.  Clear the
479         in_list bits for the v_may_def elements and empty the operand
480         build array
481         (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
482         VUSES by checking the in_v_may_def_list bit.
483         (append_v_may_def, append_vuse): Use the in_list bit rather than
484         scanning the array for duplicates.
485
486 2004-11-25  Ulrich Weigand  <uweigand@de.ibm.com>
487
488         * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
489         displacements are not short.
490
491 2004-11-25  Ulrich Weigand  <uweigand@de.ibm.com>
492
493         * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
494         to load addresses.
495
496 2004-11-25  Mark Mitchell  <mark@codesourcery.com>
497
498         PR c++/18001
499         * c-common.h (lvalue_use): Move here from c-ctypeck.c.
500         (lvalue_or_else): Declare.
501         * c-common.c (lvalue_or_else): Move here from c-typeck.c.
502         * c-typeck.c (lvalue_use): Remove.
503         (lvalue_or_else): Remove.
504
505         PR c++/18556
506         * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
507         unemitted variables with static storage duration.
508
509 2004-11-25  Gerald Pfeifer  <gerald@pfeifer.com>
510
511         * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
512         message with \n.
513
514 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
515
516         * config/rs6000/altivec.md (VIshort): New mode macro.
517         (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
518         with ...
519         (altivec_vaddu<VI_char>s): ... this.
520         (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
521         with ...
522         (altivec_vadds<VI_char>s): ... this.
523         (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
524         with ...
525         (altivec_vsubu<VI_char>s): ... this.
526         (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
527         with ...
528         (altivec_vsubs<VI_char>s): ... this.
529         (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
530         with ...
531         (altivec_vavgu<VI_char>): ... this.
532         (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
533         with ...
534         (altivec_vavgs<VI_char>): ... this.
535         (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
536         (altivec_vmsumu<VI_char>m): ... this.
537         (altivec_vmsummbm, altivec_vmsummhm): Replace
538         with ...
539         (altivec_vmsumm<VI_char>m): ... this.
540         (altivec_vandc): Remove.
541         (*andc<mode>3): Renamed to ...
542         (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
543         (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
544         with ...
545         (altivec_vrl<VI_char>): ... this.
546         (altivec_vslb, altivec_vslh, altivec_vslw): Replace
547         with ...
548         (altivec_vsl<VI_char>): ... this.
549         (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
550         with ...
551         (altivec_vsr<VI_char>): ... this.
552         (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
553         with ...
554         (altivec_vsra<VI_char>): ... this.
555         (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
556         (altivec_vsum4s<VI_char>s): ... this.
557         (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
558         with ...
559         (altivec_vperm_<mode>): ... this.
560         (altivec_vsel_4sf): Rename to ...
561         (altivec_vsel_v4sf): ... here.
562         (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
563         with ...
564         (altivec_vsel_<mode>): ... this.
565         (altivec_vsldoi_4si, altivec_vsldoi_8hi,
566         altivec_vsldoi_16qi): Rename to ...
567         (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
568         altivec_vsldoi_v16qi): ... here.
569         (altivec_vsldoi_4sf): Rename to ...
570         (altivec_vsldoi_v4sf): ... here.
571         (altivec_predicate_v4si, altivec_predicate_v8hi,
572         altivec_predicate_v16qi): Replace with ...
573         (altivec_predicate_<mode>): ... this.
574         (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
575         with ...
576         (altivec_lve<VI_char>x): ... this.
577         (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
578         with ...
579         (altivec_stve<VI_char>x): ... this.
580         (absv16qi2, absv8hi2, absv4si2): Replace
581         with ...
582         (abs<mode>2): ... this.
583         (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
584         with ...
585         (altivec_abss_<mode>): ... this.
586         (vec_realign_load_v16qi, vec_realign_load_v8hi,
587         vec_realign_load_v4si): Replace with ...
588         (vec_realign_load_<mode>): ... this.
589         * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
590         insn names.
591         (rs6000_expand_ternop_builtin): Likewise.
592
593 2004-11-25  Andrew Haley  <aph@redhat.com>
594
595         * gcc.c (process_command): Don't supply -v to linker.
596
597 2004-11-25  Joseph S. Myers  <joseph@codesourcery.com>
598
599         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
600         instead of `%s' in diagnostic.
601
602 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
603
604         * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
605         (FREE_REG_SET): Adjust.
606         * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
607         * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
608         (BITMAP_ALLOC): ... here.
609         (BITMAP_OBSTACK_FREE): Rename to ...
610         (BITMAP_FREE): Don't check for NULL bitmap here.
611         * tree-ssa-pre.c (value_insert_into_set_bitmap,
612         bitmap_set_new): Use new names.
613
614         * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
615         * df.c (df_free): Likewise.
616         * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
617         * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
618
619         * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
620         (ALLOC_REG_SET): ... here.
621         (FREE_REG_SET): Adjust.
622         (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
623         * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
624         * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
625         * cfgrtl.c (rtl_split_block, rtl_split_edge,
626         safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
627         * flow.c (update_life_info, calculate_global_regs_live,
628         allocate_bb_life_data, init_propagate_block_info): Adjust.
629         * global.c (build_insn_chain): Adjust.
630         * ifcvt.c (dead_or_predicable): Adjust.
631         * loop-iv.c (simplify_using_initial_values): Adjust.
632         * recog.c (peephole2_optimize): Adjust.
633         * sched-deps.c (init_deps_global): Adjust.
634
635 2004-11-25  Ralf Corsepius <ralf.corsepius@rtems.org>
636
637         * config.gcc (avr-*-rtems*): Fix typo.
638
639 2004-11-25  J"orn Rennecke <joern.rennecke@st.com>
640
641         * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
642
643 2004-11-24  Jeff Law  <law@redhat.com>
644
645         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
646         the number of queries to random elements in the ai->written_vars
647         bitmap.
648
649 2004-11-24  Roger Sayle  <roger@eyesopen.com>
650
651         * config/i386/i386.c (override_options): Disable x87 fancy math
652         intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
653
654 2004-11-24  Roger Sayle  <roger@eyesopen.com>
655
656         * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
657         system header conflict on AIX 5.2.
658         * configure: Regenerate.
659
660 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
661
662         * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
663         instead of calling phi_arg_from_edge.
664
665         * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
666         with e->dest_idx.
667
668 2004-11-24  Ben Elliston  <bje@au.ibm.com>
669
670         * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
671         * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
672         * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
673         Likewise.
674
675 2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
676
677         * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
678
679         * tree-inline.c (copy_body_r): Explicitly copy a constant if the
680         type will be remapped.
681
682 2004-11-24  Steven Bosscher  <stevenb@suse.de>
683
684         * c-opts.c (c_common_post_options): Don't clear
685         flag_inline_functions.
686         * dojump.c (clear_pending_stack_adjust): Remove check on
687         flag_inline_functions, it's always true.
688         * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
689         that can never trigger.
690         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
691         flag_inline_trees, now that flag_inline_functions is never
692         cleared.
693         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
694         flag_inline_functions at optimization levels greater than
695         or equal to 3.  This is already done by default.
696
697 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
698
699         * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
700         instead to find the PHI argument.  Do not take I as an
701         argument.
702         (eliminate_phi): Adjust the call to eliminate_build.  Do not
703         take I as an argument.
704         (rewrite_trees): Adjust the call to eliminate_phi.
705
706 2004-11-24  Richard Sandiford  <rsandifo@redhat.com>
707
708         * optabs.h (force_expand_binop): Declare.
709         * optabs.c (force_expand_binop): Export.
710         * stmt.c (shift_return_value): Delete.
711         (expand_return): Don't call it.
712         * expr.h (shift_return_value): Declare.
713         * calls.c (shift_returned_value): Delete in favor of...
714         (shift_return_value): ...this new function.  Leave the caller to check
715         for non-BLKmode values passed in the msb of a register.  Take said mode
716         and a shift direction as argument.  Operate on the hard function value,
717         not a pseudo.
718         (expand_call): Adjust accordingly.
719         * function.c (expand_function_start): If a non-BLKmode return value
720         is padded at the last significant end of the return register, use the
721         return value's natural mode for the DECL_RESULT, not the mode of the
722         padded register.
723         (expand_function_end): Shift the same sort of return values left by
724         the appropriate amount.
725
726 2004-11-24  Matt Austern  <austern@apple.com>
727
728         * recog.c (recog_memoized_1): Remove.
729         * recog.h (recog_memoized_1): Remove declaration.
730         (recog_memoized): Change from macro to inline function.
731
732 2004-11-24  Devang Patel  <dpatel@apple.com>
733
734         PR/18555
735         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
736         * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
737
738 2004-11-24  Devang Patel  <dpatel@apple.com>
739
740         * gcc.c (process_command): Supply -v to linker.
741
742 2004-11-24  David Edelsohn  <edelsohn@gnu.org>
743             Paolo Bonzini  <bonzini@gnu.org>
744
745         * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
746         vector modes without ALTIVEC_ABI.  Use GCC vector instead of
747         synthetic vector.
748         (rs6000_pass_by_reference): Split conditional into pieces.  Use
749         GCC vector instead of synthetic vector.
750
751 2004-11-24  Aldy Hernandez  <aldyh@redhat.com>
752
753         * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
754         thread-local variable is invariant.
755
756 2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
757
758         * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
759         Handle TYPE_REF_CAN_ALIAS_ALL.
760         (print_declaration): Print array dimensions like dump_generic_node.
761
762         * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
763         ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
764
765 2004-11-24  Nathan Sidwell  <nathan@codesourcery.com>
766
767         * bitmap.c (INLINE): Do not define.
768         (bitmap_elem_to_freelist, bitmap_element_free,
769         bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
770         bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
771
772 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
773
774         * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
775         find the index of a PHI argument.  Use e->dest_idx instead.
776         Replace hint with index.
777
778         * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
779         with indx.
780
781 2004-11-24  Diego Novillo  <dnovillo@redhat.com>
782
783         * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
784         regarding PT_MALLOC.
785
786 2004-11-24  Joseph Myers  <joseph@codesourcery.com>
787
788         * config/i386/i386.c (optimization_options): Use
789         SUBTARGET_OPTIMIZATION_OPTIONS.
790         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
791         (TARGET_SUBTARGET_DEFAULT): Don't include
792         MASK_OMIT_LEAF_FRAME_POINTER.
793
794 2004-11-24  Mark Mitchell  <mark@codesourcery.com>
795
796         * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
797         Define to false.
798
799 2004-11-24  Joseph Myers  <joseph@codesourcery.com>
800
801         * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
802         Use amd64 instead of 64.
803
804 2004-11-24  Mark Mitchell  <mark@codesourcery.com>
805             Joseph Myers  <joseph@codesourcery.com>
806
807         * crtstuff.c (IN_LIBGCC2): Define it.
808         (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
809         instead of HAVE_LD_RO_RW_SECTION_MIXING.
810         * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
811         * dwarf2out.c (named_section_eh_frame_section): Check
812         EH_TABLES_CAN_BE_READ_ONLY.
813         * except.c (default_exception_section): Likewise.
814         * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
815         * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
816
817 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
818
819         * tree-ssa-pre.c (phi_translate): Use find_edge to find the
820         index of a PHI argument.
821
822         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
823         find_edge to find the index of a PHI argument.
824
825 2004-11-24  Steven Bosscher  <stevenb@suse.de>
826
827         * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
828         and LABELED_BLOCK_EXPR.
829         * gimplify.c (gimplify_labeled_block_expr): Remove.
830         (gimplify_exit_block_expr): Remove.
831         (gimplify_expr): Don't call them.
832         * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
833         and LABELED_BLOCK_EXPR.
834         (estimate_num_insns_1): Likewise.
835         (walk_tree): Likewise.
836         * tree-pretty-print.c (dump_generic_node): Don't handle
837         EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
838         * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
839         (LABELED_BLOCK_EXPR): Likewise.
840         * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
841         (LABELED_BLOCK_BODY): Likewise.
842         (EXIT_BLOCK_LABELED_BLOCK): Likewise.
843         (EXIT_BLOCK_RETURN): Removed.
844
845 2004-11-24  Steven Bosscher  <stevenb@suse.de>
846
847         * cfgrtl.c (rtl_delete_block): Fix comment.
848         * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
849         or BLOCK_END insn notes.
850         * jump.c (squeeze_notes): Likewise.
851         * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
852         EH_REGION_END notes, we never have them to begin with.
853         * sched-deps.c (sched_analyze_insn): When updating loop notes,
854         verify that we have indeed only recorded loop notes.
855         (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
856         Only record loop notes.
857
858         * cfgexpand.c (tree_expand_cfg): Fix comment.
859
860         * passes.c (rest_of_compilation): Don't do a second call to
861         convert_from_eh_region_ranges from here, it's already called
862         from cfgexpand.c.
863         * except.c (resolve_fixup_regions): Remove.
864         (remove_fixup_regions): Remove.
865         (convert_from_eh_region_ranges_1): Remove.
866         (convert_from_eh_region_ranges): Remove the case where EH is
867         not already lowered at the tree level.  We always lower there.
868
869 2004-11-24  Paolo Bonzini  <bonzini@gnu.org>
870
871         PR c++/16882
872         * tree.c (make_vector_type): Move qualifiers to the vector type,
873         use the inner type's main variant and build a main variant for
874         the vector type if necessary.
875         (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
876
877 2004-11-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
878
879         * target.h (late_rtl_prologue_epilogue): Remove.
880         * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
881         * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
882         * passes.c (rest_of_handle_prologue_epilogue): Remove and move
883         remaining bits to...
884         (rest_of_handle_flow2): ...here.
885         (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
886         * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
887
888 2004-11-23  Mark Mitchell  <mark@codesourcery.com>
889
890         * hwint.h (HOST_LONG_LONG_FORMAT): New macro.  Use it throughout.
891         * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
892         * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
893
894 2004-11-24  Daniel Jacobowitz  <dan@codesourcery.com>
895
896         * config/i386/i386.c (override_options): Move
897         SUBTARGET_OVERRIDE_OPTIONS before defaulting
898         flag_omit_frame_pointer.
899
900 2004-11-23  Richard Henderson  <rth@redhat.com>
901
902         * rtl.h (validate_subreg): Declare.
903         * emit-rtl.c (validate_subreg): New.
904         (gen_rtx_SUBREG): Use it.
905         * simplify-rtx.c (simplify_subreg): Likewise.
906         (simplify_gen_subreg): Likewise.  Remove duplicate asserts.
907         * expr.c (emit_move_insn_1): Tidy complex move code.  Use memory
908         fallback whenever gen_realpart/gen_imagpart would not be able to
909         create SUBREGs.
910
911 2004-11-23  Richard Henderson  <rth@redhat.com>
912
913         * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
914         hard-coding avoiding calls to gen_rtx_SUBREG.  Split complex return
915         modes to CONCAT.
916
917 2004-11-23  Diego Novillo  <dnovillo@redhat.com>
918
919         PR tree-optimization/18618
920         * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
921         (insert_phi_nodes_for): Change third argument to VEC(basic_block).
922         * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
923         Update all users.
924         (stmts_to_rescan): Likewise.
925         (const_and_copies_stack): Likewise.
926         (nonzero_vars_stack): Likewise.
927         (vrp_variables_stack): Likewise.
928
929 2004-11-23  Richard Henderson  <rth@redhat.com>
930
931         * cse.c (record_jump_cond_subreg): New.
932         (record_jump_cond): Use it instead of gen_lowpart.
933
934 2004-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
935             Joseph Myers  <joseph@codesourcery.com>
936
937         * config/sol2-c.c (solaris_register_pragmas): Use
938         c_register_pragma_with_expansion.
939         * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
940         * c-pragma.c (c_register_pragma): Update call to
941         cpp_register_pragma.
942         (c_register_pragma_with_expansion): New function.
943         (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
944         * c-pragma.h (c_register_pragma_with_expansion): New prototype.
945         * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
946         #pragma align.
947         * doc/tm.texi (c_register_pragma_with_expansion,
948         HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
949
950 2004-11-23  Richard Henderson  <rth@redhat.com>
951
952         * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
953         as mode sizes into local temporaries.  Unify failure path.
954
955 2004-11-23  Richard Henderson  <rth@redhat.com>
956
957         * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
958         * caller-save.c (mark_set_regs): Use subreg_regno instead.
959         * final.c (alter_subreg): Likewise.
960         * local-alloc.c (reg_is_born): Likewise.
961
962 2004-11-23  Richard Henderson  <rth@redhat.com>
963
964         * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
965         instead of using a SUBREG temporary.
966
967 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
968
969         * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
970         two checks.
971
972 2004-11-23  Zack Weinberg  <zack@codesourcery.com>
973
974         * function.h (struct function): Remove calls_longjmp.
975         (current_function_calls_longjmp): Delete.
976         * tree.h (ECF_LONGJMP): Delete.
977         (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
978         (ECF_LIBCALL_BLOCK): Everybody slide down one.
979         (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
980         * builtins.c (expand_builtin_longjmp): Don't set
981         current_function_calls_longjmp.
982         * calls.c (special_function_p): Mark longjmp and siglongjmp
983         with ECF_NORETURN, not ECF_LONGJMP.
984         (emit_call_1, expand_call, emit_library_call_value_1):
985         Don't check for ECF_LONGJMP.
986         * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
987         (need_fake_edge_p): Likewise.
988
989         * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
990         * system.h: Poison NON_SAVING_SETJMP.
991         * function.c (use_register_for_decl)
992         * gcse.c (compute_hash_table_work, compute_store_table)
993         * postreload-gcse.c (record_opr_changes)
994         * reload.c (find_equiv_reg)
995         * reload1.c (reload)
996         * config/i386/i386.c (ix86_can_use_return_insn_p):
997         Remove code conditional on NON_SAVING_SETJMP.
998         * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
999
1000         * config/i386/sysv3.h: Delete file.
1001         * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
1002
1003 2004-11-23  Dorit Naishlos  <dorit@il.ibm.com>
1004
1005         * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
1006         the vectorization factor is greater than the iteration count.
1007         (vect_gen_niters_for_prolog_loop): No need to calculate min if the
1008         iteration count is known.
1009
1010         (vect_build_symbol_bound): Removed. Its functionality moved to
1011         vect_generate_tmps_on_preheader.
1012         (vect_generate_tmps_on_preheader): Moved content of
1013         vect_build_symbol_bound here instead of calling it.  Changed some
1014         variables names.
1015
1016         (vect_build_loop_niters): We don't expect a new_bb to be generated -
1017         use gcc_assert.
1018         (vect_gen_niters_for_prolog_loop): Likewise.
1019         (vect_gen_niters_for_prolog_loo): Likewise.
1020
1021         (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
1022         (slpeel_add_loop_guard): Likewise.
1023         (slpeel_tree_peel_loop_to_edge): Likewise.
1024         (vect_do_peeling_for_alignment): Likewise.
1025
1026         (vect_get_first_index): Missing space.
1027
1028 2004-11-23  Ulrich Weigand  <uweigand@de.ibm.com>
1029
1030         * config/s390/s390.md ("*iordi3"): Mark commutative.
1031         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
1032
1033 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
1034
1035         * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
1036         greater than PHI_ARG_CAPACITY.
1037         (reserve_phi_args_for_new_edge): Initialize the new PHI
1038         argument to NULL_TREE.  Increment PHI_NUM_ARGS.
1039         (add_phi_arg): Add a PHI argument to the slot given by
1040         E->dest_idx.
1041         (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
1042         * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
1043         * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
1044         argument by looking at PHI_ARG_DEF.
1045         (verify_phi_args): Check for a missing PHI argument.  Remove
1046         the check for duplicate PHI arguments.
1047         * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
1048         (phi_arg_d): Remove e.
1049
1050         * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
1051         by restricting to the case with two outgoing edges.
1052
1053 2004-11-23  Andreas Krebbel  <krebbel1@de.ibm.com>
1054
1055         * config/s390/s390.c (s390_backchain_string): Removed.
1056         (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
1057         (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
1058         Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
1059         TARGET_KERNEL_BACKCHAIN to reflect the new options.
1060         * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
1061         (TARGET_KERNEL_BACKCHAIN): Removed.
1062         (TARGET_BACKCHAIN): Former triple state option change to a target flag.
1063         (TARGET_PACKED_STACK): New macro.
1064         (TARGET_SWITCHES): New switches added.
1065         (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
1066         removed.
1067         (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
1068         * config/s390/s390.md ("allocate_stack", "restore_stack_block")
1069         ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
1070         the change in target switch semantics.
1071         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
1072         (TARGET_DEFAULT): MASK_BACKCHAIN added.
1073         * doc/invoke.texi: Added documentation for the new/changed options.
1074
1075 2004-11-23  Uros Bizjak  <uros@kss-loka.si>
1076
1077         PR rtl-optimization/18614
1078         * simplify-rtx.c (simplify_binary_operation): Do not
1079         simplify inner elements of constant arguments of
1080         VEC_CONCAT insn.
1081
1082 2004-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
1083
1084         * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
1085         0 instead of NULL.
1086
1087 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
1088
1089         * tree-phinode.c (make_phi_node): Use a new variable,
1090         capacity, to receive the return value of ideal_phi_node_len.
1091
1092 2004-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
1093
1094         * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
1095         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
1096         __gthread_recursive_mutex_init_function.
1097         (__gthread_key_create): Properly cast -1.
1098         (__gthread_recursive_mutex_init_function): New function.
1099         (__gthread_recursive_mutex_lock): Rewrite.
1100         (__gthread_recursive_mutex_trylock): Likewise.
1101         (__gthread_recursive_mutex_unlock): Likewise.
1102
1103 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
1104
1105         * config/c4x/t-rtems: New.
1106         * config.gcc: Reflect having added c4x/t-rtems.
1107
1108 2004-11-23  Dorit Naishlos <dorit@il.ibm.com>
1109
1110         PR tree-opt/18403
1111         PR tree-opt/18505
1112         * tree-vectorizer.c (vect_create_data_ref_ptr): Use
1113         lang_hooks.types.type_for_size instead of integer_type_node for the
1114         type of ptr_update.
1115
1116 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
1117
1118         * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
1119
1120 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
1121
1122         * config/arm/t-rtems: New.
1123         * config.gcc: Reflect having added arm/t-rtems.
1124
1125 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
1126
1127         * tree-cfg.c (tree_execute_on_growing_pred): New.
1128         (tree_cfg_hooks): Add tree_execute_on_growing_pred.
1129         * tree-flow.h: Add a prototype for
1130         reserve_phi_args_for_new_edge.
1131         * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
1132         (add_phi_arg): Don't resize a PHI array.
1133
1134 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
1135
1136         * config.gcc: Add avr-*-rtems*.
1137         * config/avr/t-rtems: New.
1138         * config/avr/rtems.h: New.
1139
1140 2004-11-22  Daniel Berlin  <dberlin@dberlin.org>
1141
1142         * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
1143         always the same as op1.  Use bitmap_ior_into and bitmap_and_into.
1144         Add comment to function.
1145
1146 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1147
1148         PR pch/14940
1149         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
1150
1151         PR rtl-optimization/14838
1152         * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
1153         note.
1154         (get_last_nonnote_insn): Don't assume last insn is a note.
1155
1156 2004-11-22  Roger Sayle  <roger@eyesopen.com>
1157
1158         * fold-const.c (nondestructive_fold_binary_to_constant): Rename
1159         to fold_binary_to_constant.
1160         (nondestructive_fold_unary_to_constant): Likewise, rename to
1161         fold_unary_to_constant.
1162         (fold_relational_hi_lo): Update call to fold_binary_to_constant.
1163         * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
1164         (nondestructive_fold_unary_to_constant): Likewise.
1165         * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
1166         and fold_binary_to_constant.
1167         * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1168         (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
1169         and EXEC_UNARY with calls to fold_*nary_to_constant.
1170         * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1171         (idx_find_step): Replace uses of EXEC_BINARY with calls to
1172         fold_binary_to_constant.
1173
1174 2004-11-22  Nick Clifton  <nickc@redhat.com>
1175
1176         * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1177         initialisation of 'e'.
1178
1179 2004-11-22  Roger Sayle  <roger@eyesopen.com>
1180
1181         * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
1182         * config/i386/i386.c (override_options):  Set MASK_NO_FANCY_MATH_387
1183         automatically for targets without TARGET_80387.
1184         * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
1185         sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
1186         *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
1187         fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
1188         *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
1189         *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
1190         *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
1191         atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
1192         atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
1193         acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
1194         log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
1195         fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
1196         logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
1197         expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
1198         exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
1199         rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
1200         floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
1201         frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
1202         frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
1203         Simplify conditionals using TARGET_USE_FANCY_MATH_387.
1204
1205 2004-11-22  Dale Johannesen  <dalej@apple.com>
1206
1207         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Conditionalize
1208         properly and comment.
1209
1210 2004-11-22  James A. Morrison  <phython@gcc.gnu.org
1211
1212         * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
1213         (sparc_init_builtins): New function.
1214         (sparc_init_vis_builtins): Create builtin functions for VIS
1215         instructions.
1216         (sparc_expand_builtin): Expand builtin functions for VIS instructions.
1217         (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
1218         (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
1219         (def_builtin): New macro for creating builtin functions.
1220         (P): New mode macro for pointer types.
1221         (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
1222         UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
1223         UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
1224         (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
1225         fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1226         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
1227         faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
1228
1229 2004-11-22  Devang Patel  <dpatel@apple.com>
1230
1231         * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
1232
1233 2004-11-22  Devang Patel  <dpatel@apple.com>
1234
1235         * tree-if-conv.c (if_convertable_phi_p): Rename to ...
1236         (if_convertible_phi_p): ... new name.
1237         (if_convertable_modify_expr_p): Rename to ...
1238         (if_convertible_modify_expr_p): ... new name.
1239         (if_convertable_stmt_p): Rename to ...
1240         (if_convertible_stmt_p): ... new name.
1241         (if_convertable_bb_p): Rename to ...
1242         (if_convertible_bb_p): ... new name.
1243         (if_convertable_loop_p): Rename to ...
1244         (if_convertible_loop_p): ... new name.
1245
1246 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1247
1248         PR target/18444
1249         * configure.ac (threading): Accept 'posix95'.
1250         * configure: Regenerate.
1251         * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
1252         include sol26.h and default to posix95 threads if have_pthread_h.
1253         (sparc-*-solaris2*): Likewise.
1254         * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
1255         * gthr-posix95.h: New file.
1256         * config/sol26.h: New file.
1257         * doc/install.texi (--enable-threads): Document 'posix95'.
1258
1259 2004-11-23  Ben Elliston  <bje@au.ibm.com>
1260
1261         * pointer-set.h (pointer_set_contains): Remove.
1262         * pointer-set.c (pointer_set_contains): Likewise.
1263
1264 2004-11-22  Dale Johannesen  <dalej@apple.com>
1265
1266         * calls.c (expand_call): Do not call preserve_temp_slots.
1267
1268 2004-11-22  Kazu Hirata  <kazu@cs.umass.edu>
1269
1270         * tree-flow.h: Remove the prototype for remove_phi_arg.
1271         Add a prototype for remove_phi_args.
1272         * tree-phinodes.c (remove_phi_arg): Remove.
1273         (remove_phi_args): New.
1274         * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
1275         of remove_phi_arg.
1276
1277         * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
1278         after making an edge.
1279         (remove_edge): Call execute_on_shrinking_pred before removing
1280         an edge.
1281         (redirect_edge_succ): Call execute_on_growing_pred and
1282         execute_on_shrinking_pred.
1283         * cfghooks.c (execute_on_growing_pred): New.
1284         (execute_on_shrinking_pred): Likewise.
1285         * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
1286         execute_on_shrinking_pred.
1287         Add prototypes for execute_on_growing_pred and
1288         execute_on_shrinking_pred.
1289         * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
1290         execute_on_growing_pred and execute_on_shrinking_pred.
1291         (cfg_layout_rtl_cfg_hook): Likewise.
1292         * tree-cfg.c (tree_cfg_hooks): Likewise.
1293
1294         * tree-cfg.c (tree_execute_on_shrinking_pred): New.
1295         (tree_cfg_hooks): Use it.
1296         * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
1297         (ssa_redirect_edge): Don't call remove_phi_arg_num.
1298
1299         * tree-phinodes.c (remove_phi_arg_num): Make it static.
1300         * tree-flow.h: Remove the corresponding prototype.
1301
1302         * tree-ssa.c (ssa_remove_edge): Remove.
1303         * tree-flow.h: Remove the corresponding prototype.
1304         * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
1305         * basic-block.h: Likewise.
1306         * tree-if-conv.c: Likewise.
1307         * tree-ssa-threadupdate.c: Likewise.
1308
1309 2004-11-23  Ben Elliston  <bje@au.ibm.com>
1310
1311         * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
1312         @table to list the BSI methods.  Use individual @findex directives
1313         instead of one with a comma-separated list of index entries.
1314
1315 2004-11-22  Zdenek Dvorak  <dvorakz@suse.cz>
1316
1317         PR tree-optimization/18529
1318         * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
1319         (simple_operand_p): Use STRIP_NOPS.  Consider SSA names simple.
1320         (fold): Call fold_to_nonsharp_ineq_using_bound.
1321         * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
1322         (number_of_iterations_cond): Fold the expressions before futher
1323         processing.
1324         (tree_simplify_using_condition): Handle case when cond or expr is
1325         an EQ_EXPR specially.
1326
1327 2004-11-22 Daniel Berlin  <dberlin@dberlin.org>
1328
1329         * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
1330         SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
1331
1332 2004-11-22  David Edelsohn  <edelsohn@gnu.org>
1333             Fariborz Jahanian  <fjahanian@apple.com>
1334
1335         * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
1336         TARGET_ALTIVEC_ABI.
1337         (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
1338         Align 16 byte and larger vectors like Altivec.
1339         (function_arg_advance): Pass any 16 byte vector like Altivec vector.
1340         (function_arg): Same.
1341         (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
1342
1343 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
1344
1345         PR tree-opt/18572
1346         * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
1347         it.
1348
1349 2004-11-22  Richard Henderson  <rth@redhat.com>
1350
1351         * function.c (assign_parm_setup_block): Revert 11-13 change to
1352         forcably re-mode a (possibly BLKmode) hard register.
1353
1354 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
1355
1356         * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
1357
1358 2004-11-22  David Edelsohn  <edelsohn@gnu.org>
1359
1360         * config/rs6000/power4.md: Remove delay between dispatch and issue
1361         associated with dispatch group slots 3 and 4.
1362         * config/rs6000/power5.md: Same.
1363
1364 2004-11-21  Jeff Law  <law@redhat.com>
1365
1366         * cfg.c (cached_make_edge): Use find_edge rather than an inlined
1367         variant.
1368         * cfgbuild.c (make_edges): Likewise.
1369         * cfghooks.c (can_duplicate_block_p): Likewise.
1370         * cfgloop.c (loop_latch_edge): Likewise.
1371         * cfgloopmanip.c (force_single_succ_latches): Likewise.
1372         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1373         * predict.c (predict_loops, propagate_freq): Likewise.
1374         * tracer.c (tail_duplicate): Likewise.
1375         * tree-cfg.c (disband_implicit_edges): Likewise.
1376         (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
1377
1378 2004-11-22  Nick Clifton  <nickc@redhat.com>
1379
1380         * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1381         initialisation of 'e'.
1382
1383 2004-11-22  Kazu Hirata  <kazu@cs.umass.edu>
1384
1385         PR rtl-optimization/18599
1386         * regrename.c (copyprop_hardreg_forward): Speed up by putting
1387         BB_VISITED flags on basic blocks as we process them.
1388
1389 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
1390
1391         PR target/18531
1392         * config/rs6000/altivec.md (VI_char): New mode attribute.
1393         (addv16qi3, addv8hi3, addv4ai3): Replace with ...
1394         (add<mode>3): ... this.
1395         (subv16qi3, subv8hi3, subv4ai3): Replace with ...
1396         (sub<mode>3): ... this.
1397         (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
1398         (smax<mode>3): ... this.
1399         (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
1400         (smin<mode>3): ... this.
1401         (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
1402         (umax<mode>3): ... this.
1403         (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
1404         (umin<mode>3): ... this.
1405         (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1406         (and<mode>3): ... this.
1407         (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1408         (ior<mode>3): ... this.
1409         (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
1410         (xor<mode>3): ... this.
1411         (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1412         (and<mode>3): ... this.
1413         (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1414         (ior<mode>3): ... this.
1415         (altivec_vnor): Replace with ...
1416         (altivec_nor<mode>): ... this.
1417         (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
1418         (one_cmpl<mode>2): ... this.
1419         (altivec_vandc): New expander.
1420         (*andc<mode>3): New insn.
1421         * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
1422
1423 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
1424
1425         PR tree-opt/18536
1426         * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
1427         creating iv instead of integer_type.
1428         (vect_build_loop_niters): Remove redundant code.
1429         (vect_transform_loop_bound): Removed (duplicates functionality of
1430         make_loop_iterate_ntimes.
1431         (vect_gen_niters_for_prolog_loop): Add documentation. Call
1432         lang_hooks.types.type_for_size to create a type of the required size.
1433         Use that type instead of integer_type. Remove redundant code.
1434         (vect_update_niters_after_peeling): Use type of niters instead of
1435         integer_type.
1436         (vect_transform_loop): Unify handling of known and unknown loop bound
1437         cases. Call make_loop_iterate_ntimes instead of
1438         vect_transform_loop_bound.
1439
1440 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
1441
1442         PR target/18217
1443         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
1444         (LIB2ADDEH): Here.
1445
1446 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
1447
1448         PR tree-opt/18544
1449         * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
1450
1451 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1452
1453         * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
1454         m32r*linux.
1455         * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
1456         m32r/libgcc-glibc.ver.
1457         * config/m32r/libgcc-glibc.ver: Add New file.
1458
1459 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
1460
1461         * bitmap.h (struct bitmap_obstack): New obstack type.
1462         (struct bitmap_head_def): Replace using_obstack with obstack
1463         pointer.
1464         (bitmap_default_obstack): New.
1465         (bitmap_initialize): Make inline, does not do allocation.
1466         (bitmap_release_memory): Remove.
1467         (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
1468         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1469         bitmap_obstack_free, bitmap_malloc_free): Declare.
1470         (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
1471         (BITMAP_FREE): Replace with ...
1472         (BITMAP_OBSTACK_FREE): ... this.
1473         (BITMAP_XFREE): Adjust.
1474         (BITMAP_INIT_ONCE): Remove.
1475         * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
1476         (bitmap_default_obstack): New.
1477         (bitmap_elem_to_freelist): Adjust.
1478         (bitmap_element_allocate): Adjust. Break initialization into ...
1479         (bitmap_obstack_initialize): ... here.
1480         (bitmap_release_memory): Replace with ...
1481         (bitmap_obstack_release): ... this.
1482         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1483         bitmap_obstack_free, bitmap_malloc_free): New.
1484         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
1485         bitmap_initialize.
1486         (bitmap_initialize): Move to bitmap.h.
1487         * gengtype.c (open_base_files): Add obstack.h to ifiles.
1488         * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
1489         * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
1490         (INITIALIZE_REG_SET): Remove.
1491         (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
1492         (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
1493         (flow_obstack): Do not declare.
1494         (reg_obstack): Declare.
1495         * regs.h: Include obstack.h.
1496         * tree-optimize.c (tree_rest_of_compilation): Initialize and
1497         release bitmap obstack here.
1498         * bb-reorder.c: #include regs, not basic-block.
1499         (fix_crossing_conditional_branches): Allocate regsets from
1500         reg_obstack.
1501         * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
1502         obstack.h.
1503         * caller-save.c: Include regs.h earlier.
1504         * cfg.c: Do not include basic-block.h or obstack.h.
1505         (reg_obstack): Define.
1506         * cfganal.c: Include obstack.h
1507         * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
1508         earlier.
1509         * cfglayout.c: Do not include obstack.h.
1510         (flow_obstack): Remove declaration.
1511         (cfg_layout_duplicate_bb): Use reg_obstack.
1512         * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
1513         * cfgrtl.c (rtl_split_block): Use reg_obstack.
1514         (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
1515         (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
1516         (cfg_layout_split_edge): Use reg_obstack.
1517         * cse.c: Include regs.h earlier.
1518         * ddg.c: Do not include basic-block.h.
1519         * dominance.c: Inlude obstack.h.
1520         * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
1521         (calculate_global_regs_live): Likewise.
1522         (allocate_bb_life_data): Use reg_obstack.
1523         (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
1524         * global.c: Do not include basic-block.h.
1525         (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
1526         * graph.c: Include obstack.h.
1527         * haifa-sched.c: Do not include basic-block.h.
1528         * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
1529         * local-alloc.c: Do not include basic-block.h.
1530         * loop-init.c, loop-invariant.c: Include obstack.h.
1531         * loop-iv.c: Likewise.
1532         (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
1533         adjust.
1534         * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
1535         * modulo-sched.c: Do not include basic-block.h.
1536         * passes.c (rest_of_handle_final): Do not call
1537         regset_release_memory.
1538         * ra-debug.c: Include regs.h earlier. Do not include
1539         basic-block.h.
1540         * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
1541         * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
1542         (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
1543         (regset_release_memory): Remove.
1544         * resource.c: Do not include basic-block.h.
1545         * rtlanal.c: Do not include basic-block.h.
1546         * sbitmap.c: Include obstack.h.
1547         * sched-deps.c: Do not include basic-block.h.
1548         (reg_pending_sets_head, reg_pending_clobbers_head,
1549         reg_pending_uses_head): Remove.
1550         (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
1551         * sched-ebb.c: Do not include basic-block.h.
1552         * sched-rgn.c: Likewise.
1553         * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
1554         BITMAP_XFREE.
1555         * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
1556         * tree-sra.c (decide_instantiations): Adjust bitmap
1557         initialization.
1558         * tree-ssa-dce.c: Include obstack.h.
1559         * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
1560         (value_insert_into_set_bitmap): Remove useless bitmap_clear.
1561         (bitmap_set_new): Likewise.
1562         (init_pre): Initialize bitmap obstack.
1563         (fini_pre): Release bitmap obstack.
1564         * tree-ssanames.c (ssa_names_to_rewrite): Make static.
1565         (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
1566         (mark_for_rewrite, unmark_for_rewrite): Likewise.
1567         (marked_ssa_names): Likewise.
1568         (init_ssanames): Use BITMAP_XMALLOC.
1569         (fini_ssanames): Use BITMAP_XFREE.
1570         * web.c: Include obstack.h
1571
1572 2004-11-22  Nick Clifton  <nickc@redhat.com>
1573
1574         * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
1575         predecessor in the first for-loop.
1576
1577 2004-11-21  Stan Shebs  <shebs@apple.com>
1578
1579         * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
1580         UNION_TYPE case.
1581         (function_arg): Move darwin test up, sniff mode first for
1582         efficiency, test for union type.
1583
1584 2004-11-21  Dale Johannesen  <dalej@apple.com>
1585
1586         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Define.
1587
1588 2004-11-21  Jeff Law  <law@redhat.com>
1589
1590         * tree-ssa.c (verify_use): Fix comment.
1591         (verify_phi_args): Check that the number of incoming edges matches
1592         the number of PHI arguments.  Check that each PHI argument is
1593         either an SSA_NAME or an invariant.  Coalesce tests for PHIs for
1594         dead or duplicated edges.  Clear e->aux earlier and avoid separate
1595         loop to clear e->aux and test for missed edges.
1596         (verify_ssa): Remove first walk over statements.  Move checking
1597         of PHI args into verify_phi_args.  Move checking of statements
1598         with aliased stores and V_MAY_DEFS into the remaining loop over
1599         the statements.  Register defs by walking through the formal
1600         SSA_NAME table.
1601
1602 2004-11-21  Roger Sayle  <roger@eyesopen.com>
1603
1604         PR middle-end/18520
1605         * dojump.c (compare_from_rtx): Clarify mode argument in function
1606         description.  Correct order of mode/cmp_mode arguments in call to
1607         simplify_relational_operation.  Check "tem" for COMPARISON_P.
1608
1609 2004-11-21  Paolo Bonzini  <bonzini@gnu.org>
1610             David Edelsohn  <edelsohn@gnu.org>
1611
1612         PR target/17836
1613         * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
1614         synthetic vectors in memory.
1615         (function_arg_boundary): Align large synthetic vectors.
1616         (rs6000_pass_by_reference): Pass synthetic vectors in memory.
1617
1618 2004-11-21  Jeff Law  <law@redhat.com>
1619
1620         * cfg.c (update_bb_profile_for_threading): Do not rescale the
1621         successor probabilities if they are not going to change.  Pull
1622         division out of loop if we do need to rescale successor probabilities.
1623
1624         * tree-ssa-threadupdate.c (redirection_data_hash): Use the
1625         index of the destination block for the hash value rather than
1626         hashing a pointer.
1627
1628 2004-11-20  Joseph S. Myers  <joseph@codesourcery.com>
1629
1630         * c-typeck.c (build_array_ref): Don't check for index == 0.  Make
1631         checks for neither argument being an array or pointer (swapping
1632         the arguments if necessary), the array argument being a pointer to
1633         or array of functions and for -Wchar-subscripts warnings upfront.
1634
1635 2004-11-20  Jeff Law  <law@redhat.com>
1636
1637         * regrename.c (copyprop_hardreg_forward): Only search for a
1638         previously processed block if the current block only has one
1639         predecessor.
1640
1641 2004-11-20  Kazu Hirata  <kazu@cs.umass.edu>
1642
1643         * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
1644         typos.
1645         * config/arm/arm.c: Follow spelling conventions.
1646
1647 2004-11-20  Richard Earnshaw  <rearnsha@arm.com>
1648
1649         * arm.c (arm_override_options): Use arm_ld_sched rather than testing
1650         a bit in tune_flags.
1651         (const_double_needs_minipool): Likewise.  Split most of the code out
1652         into ...
1653         (arm_const_double_inline_cost): ... new function here.
1654         * arm-protos.h (arm_const_double_inline_cost): Add prototype.
1655         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
1656         word constants of length 2, 3 and 4 insns respectively.
1657         (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
1658         * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
1659         constraints.  Set insn lenghts accordingly.
1660
1661 2004-11-19  Jeff Law  <law@redhat.com>
1662
1663         * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
1664         a hash table.  Extensive modifications throughout to support
1665         that change.
1666         (struct el): New.
1667         (struct local_info): New.
1668         (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
1669         fields.
1670         (redirection_data): Now a hashtable.
1671         (redirection_data_hash, redirection_data_eq): New.
1672         (lookup_redirection_data, create_duplicates): New.
1673         (create_edge_and_update_destionation_phis): New.
1674         (fixup_template_block, redirect_edges): New.
1675         (thread_block): Use hash table traversals instead of loops over
1676         varray entries or incoming edge vectors.
1677
1678 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
1679
1680         * basic-block.h (edge_def): Add dest_idx.
1681         * cfg.c (unchecked_make_edge): Initialize dest_idx.
1682         (remove_edge): Simplify the disconnection of an edge from its
1683         destination.
1684         (redirect_edge_succ): Likewise.
1685         * cfghooks.c (verify_flow_info): Check the consistency of
1686         dest_idx for each edge.
1687
1688 2004-11-19  Aldy Hernandez  <aldyh@redhat.com>
1689
1690         * simplify-rtx.c (simplify_ternary_operation): Use
1691         gen_int_mode.
1692
1693 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
1694
1695         * tree-cfg.c (reinstall_phi_args): New.
1696         (tree_split_edge): Use it after redirecting an edge.  Don't
1697         modify PHI_ARG_EDGE.
1698
1699 2004-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
1700
1701         * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
1702         if checking is enabled.
1703
1704 2004-11-19  Joseph S. Myers  <joseph@codesourcery.com>
1705
1706         * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
1707         too many nested scopes.
1708
1709 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
1710
1711         PR tree-opt/18181
1712         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
1713         changed to suppoer uses-after-loop and to void creating flow paths
1714         that shouldn't exist.
1715         (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
1716         Modified to fit the new peeling scheme. Avoid quadratic behavior.
1717         (slpeel_add_loop_guard): Takes additional argument.
1718         (slpeel_verify_cfg_after_peeling): New function.
1719         (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
1720         documentation. Use 'exit-bb' instead of creating 'new-bb'.
1721         (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
1722         the new peeling scheme.
1723         (copy_phi_nodes): Function removed. Its functionality moved to
1724         update_phis_for_duplicate_loop.
1725         (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
1726         moved here. Added documentation. Modified to fit the new peeling scheme.
1727         (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
1728         needed - done in slpeel_tree_peel_loop_to_edge.
1729         (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
1730         (vect_do_peeling_for_loop_bound): Add documentation. Call
1731         slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
1732         with additional argument.
1733         (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
1734
1735         (vect_finish_stmt_generation): Avoid 80 column oveflow.
1736
1737 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
1738
1739         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
1740         arguments removed.
1741         (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
1742         without last two arguments. Update single_exit of loops.
1743         (vect_update_niters_after_peeling): Removed. Its functionality was
1744         moved to vect_do_peeling_for_alignment.
1745         (vect_do_peeling_for_loop_bound): New name for function previously
1746         called vect_transform_for_unknown_loop_bound.
1747         (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
1748         instead of code that duplicates the same functionality.
1749         (vect_do_peeling_for_alignment): Functionality of
1750         vect_update_niters_after_peeling moved here.
1751         (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
1752         previously named vect_transform_for_unknown_loop_bound - for both known
1753         and unknown loop bound cases.
1754
1755 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
1756
1757         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
1758         previously called verify_loop_for_duplication. All conditions compacted
1759         into one compound condition. Removed debug dumps.
1760         (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
1761         functionality moved to vect_can_advance_ivs_p, and some to
1762         vect_analyze_loop_form.
1763         (vect_can_advance_ivs_p): New function. Contains functionality that was
1764         taken out of vect_analyze_loop_with_symbolic_num_of_iters.
1765         (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
1766         (vect_analyze_operations): Call vect_can_advance_ivs_p and
1767         slpeel_can_duplicate_loop_p.
1768         (vect_get_loop_niters): Added documentation.
1769         (vect_analyze_loop_form): Check the loop entry always - not only in case
1770         of unknown loop bound. Create preheader and exit bb if necessary. Apply
1771         a check that used to take place in
1772         vect_analyze_loop_with_symbolic_num_of_iters.
1773         (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
1774         Remove redundant call to rewrite_into_loop_closed_ssa.
1775         (vect_compute_data_refs_alignment): Removed obsolete comment.
1776
1777 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
1778
1779         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
1780         function previously called tree_duplicate_loop_to_edge.
1781         (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
1782         previously called tree_duplicate_loop_to_edge_cfg.
1783         (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
1784         function name.
1785         (slpeel_update_phi_nodes_for_guard): Likewise.
1786         (slpeel_make_loop_iterate_ntimes): Likewise.
1787         (slpeel_add_loop_guard): Likewise.
1788         (allocate_new_names, free_new_names): Function declaration moved to top
1789         of file.
1790         (rename_use_op, rename_def_op): Likewise.
1791         (rename_variables_in_bb, rename_variables_in_loop): Likewise.
1792         (vect_generate_tmps_on_preheader): Function declaration moved.
1793         (vect_transform_for_unknown_loop_bound): Added missing function
1794         declaration.
1795
1796 2004-11-19  Andrew Pinski  <pinskia@physics.uc.edu>
1797
1798         PR tree-opt/18507
1799         * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
1800         Define a VEC(tree_on_heap) for head.
1801         (register_new_def): Change second argument to be a VEC(tree_on_heap).
1802         * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1803         (tree_ssa_dominator_optimize): Initialize block_defs_stack with
1804         the VEC(tree_on_heap) function.  Also free it before returning.
1805         (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1806         for block_defs_stack.
1807         (restore_currdefs_to_original_value): Use VEC_length instead of
1808         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1809         (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1810         for block_defs_stack.
1811         * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
1812         (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
1813         for block_defs_stack.
1814         (ssa_register_new_def): Likewise.
1815         (ssa_rewrite_initialize_block): Likewise.
1816         (rewrite_finalize_block): Use VEC_length instead of
1817         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
1818         (ssa_rewrite_finalize_block): Likewise.
1819         (register_new_def): Change second argument to be a VEC(tree_on_heap).
1820         Use VEC_safe_push instead of VARRAY_PUSH_TREE.
1821         (rewrite_blocks): Initialize block_defs_stack with
1822         the VEC(tree_on_heap) function.  Also free it before returning.
1823         (rewrite_ssa_into_ssa): Likewise.
1824
1825 2004-11-19  Fariborz Jahanian <fjahanian@apple.com>
1826
1827         * config/darwin.c (machopic_data_defined_p): return 1 for
1828         MACHOPIC_DEFINED_FUNCTION.
1829
1830 2004-11-19  Jeff Law  <law@redhat.com>
1831
1832         * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
1833         arguments.
1834
1835 2004-11-19  Paul Brook  <paul@codesourcery.com>
1836
1837         PR target/17735
1838         * varasm.c (default_assemble_integer): Allow pointer-sized values.
1839         Expand comment.
1840
1841 2004-11-19  Nick Clifton  <nickc@redhat.com>
1842
1843         * config/stormy16/stormy16.c (combine_bnp): Add code to handle
1844         zero_extension and lshiftrt insns.
1845         Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
1846         where appropriate.
1847         * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
1848         to handle bp and bn insn patterns with a zero_extend rtx
1849         inside them.
1850
1851 2004-11-19  Ian Lance Taylor  <ian@wasabisystems.com>
1852
1853         * config/arm/arm.md (generic_sched): Make const.
1854
1855 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
1856
1857         * emit-rtl.c (classify_insn): Make it static.
1858         * rtl.h: Remove the corresponding prototype.
1859
1860         * integrate.c (has_func_hard_reg_initial_val,
1861         get_func_hard_reg_initial_val): Make them static.
1862         * integrate.h: Remove the corresponding prototypes.
1863
1864 2004-11-19  Ben Elliston  <bje@au.ibm.com>
1865
1866         * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
1867         (dw2_asm_output_delta_sleb128): Likewise.
1868         * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
1869         (dw2_asm_output_delta_sleb128): Likewise.
1870
1871 2004-11-19  Adam Nemet  <anemet@lnxw.com>
1872
1873         * tree-ssa-alias.c: Fix comment.
1874
1875 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
1876
1877         * tree-outof-ssa.c: Fix a comment typo.
1878
1879 2004-11-19  Ben Elliston  <bje@au.ibm.com>
1880
1881         * predict.h (predict_insn): Remove extern declaration.
1882         * predict.c (predict_insn): Make static.
1883
1884 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
1885
1886         * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
1887
1888 2004-11-18  Nicolas Pitre <nico@cam.org>
1889
1890         * config/arm/arm.c (const_double_needs_minipool): New function to
1891         determine if a CONST_DOUBLE should be pushed to the minipool.
1892         (note_invalid_constants): Use it.
1893
1894 2004-11-18  Paul Brook  <paul@codesourcery.com>
1895
1896         * config/arm/arm.c (target_float_switch): New variable..
1897         (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
1898         target_float_switch.
1899         * config/arm/arm.h (target_float_switch): Declare.
1900         (ARM_FLAG_SOFT_FLOAT): Remove.
1901         (TARGET_SWITCHES): Remove hard-float and soft-float.
1902         (TARGET_OPTIONS): Add hard-float and soft-float.
1903         (TARGET_DEFAULT_FLOAT_ABI): Define.
1904         * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
1905         (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
1906         * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
1907         * config/arm/netbsd-elf.h: Ditto.
1908         * config/arm/netbsd.h: Ditto.
1909         * config/arm/pe.h: Ditto.
1910         * config/arm/unknown-elf.h: Ditto.
1911         * config/arm/wince-pe.h: Ditto.
1912         * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1913         * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1914         * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
1915
1916 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1917
1918         * config/rs6000/altivec.md (VI, VF, V): New mode macros.
1919         (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
1920         altivec_lvx_4sf): Rename and replace with ...
1921         (altivec_lvx_<mode>): ... mode macro version.
1922         (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
1923         altivec_stvx_4sf): Rename and replace with ...
1924         (altivec_stvx_<mode>): ... mode macro version.
1925         (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
1926         (mov<mode>): ... mode macro version.
1927         (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
1928         *movv4sf_internal1): Replace with ...
1929         (*mov<mode>_internal): ... mode macro version.
1930         (get_vrsave_internal, *set_vrsave_internal, *save_world,
1931         *restore_world): Unquote output statements.
1932         * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
1933         altivec_expand_st_builtin): Adjust insn names.
1934
1935 2004-11-18  Aldy Hernandez  <aldyh@redhat.com>
1936
1937         * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
1938         previous change.
1939         (rs6000_override_options): Likewise.
1940         (spe_build_register_parallel): Handle complex doubles on e500v2.
1941         (rs6000_spe_function_arg): Likewise.
1942         (function_arg): Likewise.
1943         (rs6000_function_value): Likewise.
1944         (rs6000_libcall_value): Likewise.
1945
1946 2004-11-18  Andrew Pinski  <pinskia@physics.uc.edu>
1947
1948         * ifcvt.c (find_if_block): Move the check for the number of edges
1949         above the loops checking for complex edges.
1950         Remove the counting of edges as we use EDGE_COUNT now.
1951
1952 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1953
1954         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1955         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
1956
1957 2004-11-18  Andreas Schwab  <schwab@suse.de>
1958
1959         * config/i386/i386.md (define_peephole2): Revert last change.
1960
1961 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
1962
1963         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
1964         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
1965
1966 2004-11-18  Diego Novillo  <dnovillo@redhat.com>
1967
1968         * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
1969         of FOR_EACH_BB.
1970
1971 2004-11-18  Jon Grimm <jgrimm2@us.ibm.com>
1972
1973         * Makefile.in (macro_list): Depend on s-macro_list.
1974         (s-macro_list): New target.
1975
1976 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
1977
1978         PR target/17107
1979         * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1980         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1981         (fold_range_test): Adjust.
1982         (fold_truthop): Use it.
1983         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
1984         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
1985
1986 2004-11-18  Uros Bizjak  <uros@kss-loka.si>
1987
1988         * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
1989         insn split constraint.
1990         (define_peephole2): Remove unneeded "&& 1" from peephole2
1991         constraints.
1992
1993 2004-11-18  Ben Elliston  <bje@au.ibm.com>
1994
1995         * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
1996         element for bsi_prev; use @findex instead.
1997
1998 2004-11-18  Ben Elliston  <bje@au.ibm.com>
1999
2000         * opts.h (add_input_filename): Remove extern declaration.
2001         * opts.c (add_input_filename): Make static.
2002
2003 2004-11-17  Mark Mitchell  <mark@codesourcery.com>
2004
2005         * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
2006         ATTRIBUTE_UNUSED.
2007
2008 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
2009
2010         * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
2011         * system.h: Poison it.
2012         * doc/tm.texi: Delete its documentation.
2013
2014 2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
2015             Mark Mitchell  <mark@codesourcery.com>
2016
2017         * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
2018         * config/i386/i386.c (i386_solaris_elf_named_section): New
2019         function.
2020         * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
2021         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
2022         64-bit.
2023         (ASM_QUAD): Don't undefine for biarch targets.
2024         * config/i386/t-sol2: Introduce multilib support.
2025
2026 2004-11-18  Ben Elliston  <bje@au.ibm.com>
2027
2028         * cgraphunit.c: Replace "it's" with "its" and fix a typo.
2029
2030 2004-11-18  Ben Elliston  <bje@au.ibm.com>
2031
2032         * cgraph.h: Replace "it's" with "its" throughout.
2033
2034 2004-11-18  Ben Elliston  <bje@au.ibm.com>
2035
2036         * doc/rtl.texi (Flags): Grammar fix.
2037
2038 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
2039
2040         * expmed.c (alg_code): Add alg_unknown.
2041         (alg_hash_entry): New.
2042         (NUM_ALG_HASH_ENTRIES): Likewise.
2043         (alg_hash): Likewise.
2044         (synth_mult): Cache the result into alg_hash.
2045
2046 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
2047
2048         * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
2049         config/rs6000/libgcc-ppc64.ver.
2050
2051 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
2052
2053         * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
2054         checking if an unconditional return is followed by a barrier.
2055
2056         * jump.c (condjump_p): Remove unreachable code.
2057
2058         * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
2059         tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
2060         tree-ssa-live.h, tree.h: Remove unused prototypes.
2061
2062 2004-11-17  Jeff Law  <law@redhat.com>
2063
2064         * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
2065         (edge_to_cases_elt): Renamed from edge_to_case_leader.
2066         (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
2067         (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
2068         (edge_to_cases_cleanup, recording_case_labels_p): New functions.
2069         (get_cases_for_edge): New function.
2070         (start_recording_case_labels, end_recording_case_labels): Similarly.
2071         (record_switch_edge): Don't muck with the CASE_LABEL.  Instead
2072         chain equivalent CASE_LABEL_EXPRs together.
2073         (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
2074         (make_switch_expr_edges): Do not record edge/cases here.
2075         (cleanup_tree_cfg): Record cases around the call to thread_jumps.
2076         (split_critical_edges): Record cases around the edge splitting code.
2077         (cleanup_dead_labels): Use CASE_LABEL again.
2078         (tree_redirect_edge_and_branch): If we have a mapping from edge
2079         to cases, use it to handle redirections.  Else do it the slow way.
2080         * tree.h (CASE_LEADER_OR_LABEL): Kill.
2081         (CASE_LABEL): Revert to just looking at the tree's second operand.
2082         * tree.c (get_case_label): Kill.
2083
2084 2004-11-17  Diego Novillo  <dnovillo@redhat.com>
2085
2086         PR tree-optimization/18307
2087         * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
2088         'orig' are the same node.
2089         (collect_points_to_info_r): Do not call merge_pointed_to_info
2090         when the PHI argument is identical to the LHS.
2091
2092 2004-11-17  Steven Bosscher  <stevenb@suse.de>
2093
2094         * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
2095         to insert the exit or entry block.
2096         (ssa_prop_init): Use add_control_edge to seed the algorithm.
2097
2098 2004-11-16  Zack Weinberg  <zack@codesourcery.com>
2099
2100         * mkmap-flat.awk, mkmap-symver.awk: If the last version
2101         assigned to a symbol was '%exclude', do not emit it anywhere.
2102         If leading_underscore is true, prefix all symbols from the
2103         version scripts with a leading underscore before comparing
2104         them with nm output or emitting them.  Remove support for dot
2105         symbols.
2106         * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
2107         (SHLIB_MAPFILES): Use libgcc-std.ver.
2108         (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
2109         (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
2110         * config/sh/t-linux: Use the normal libgcc-std.ver, plus
2111         libgcc-excl.ver and libgcc-glibc.ver.
2112
2113         * config/sh/libgcc-excl.ver: New file.
2114         * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
2115
2116 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
2117
2118         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
2119         the test when the edge has the opposite meaning, not when
2120         the first argument is invariant.
2121
2122 2004-11-16  Aldy Hernandez  <aldyh@redhat.com>
2123
2124         * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
2125         doubles.
2126         (rs6000_complex_function_value): Handle e500 v2 variant.
2127
2128 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
2129
2130         Fix PR tree-optimization/18519
2131
2132         * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
2133         * tree-pass.h: Add TODO_cleanup_cfg.
2134         * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
2135         (ccp_finalize): Remove call to cleanup_cfg.
2136         * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
2137         (pass_cd_dce): Ditto.
2138         (perform_tree_ssa_dce): Remove call to cleanup_cfg,
2139         dump_function_to_file.
2140         * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
2141         to cleanup_cfg.
2142         (pass_ch): Add TODO_cleanup_cfg.
2143         * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
2144         cleanup_cfg.
2145         (pass_loop_done): Add TODO_cleanup_cfg.
2146         * tree-ssa-phiopt.c (pass_phiopt): Ditto.
2147         (tree_ssa_phiopt): Remove call to cleanup_cfg.
2148
2149 2004-11-16  Devang Patel  <dpatel@apple.com>
2150
2151         * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
2152
2153 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
2154
2155         * expmed.c, ra-colorize.c: Fix comment typos.
2156
2157         * doc/tm.texi: Fix typos.
2158
2159 2004-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2160             Mark Mitchell  <mark@codesourcery.com>
2161
2162         PR target/6123
2163         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
2164         __pic__ if PIC.
2165
2166 2004-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
2167
2168         * regmove.c (regmove_optimize): Use lowpart_subreg instead of
2169         gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
2170
2171 2004-11-16  Devang Patel  <dpatel@apple.com>
2172
2173         * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
2174
2175 2004-11-16  Eric Christopher  <echristo@redhat.com>
2176
2177         * config/mips/mips.c: Use rtl _P predicates.
2178         * config/mips/mips.h: Ditto.
2179         * config/mips/mips.md: Ditto.
2180
2181 2004-11-16  Fariborz Jahanian <fjahanian@apple.com>
2182
2183         * config/rs6000/altivec.md (altivec_vandc): Canonicalize
2184         the pattern.
2185
2186 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
2187
2188         * config/s390/s390.c (s390_cc_modes_compatible): New function.
2189         (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
2190
2191 2004-11-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2192
2193         PR target/18447
2194         * config/sh/sh.c (prepare_move_operands): Emit blockage insns
2195         before and after the insns for getting GOT address in non-PIC
2196         TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
2197         is enabled.
2198
2199 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
2200
2201         * gcc/cse.c (struct change_cc_mode_args): New structure.
2202         (cse_change_cc_mode_insn): New function.
2203         (cse_change_cc_mode): Use validate_change to perfom changes.
2204         (cse_change_cc_mode_insns, cse_condition_code_reg):
2205         Call cse_change_cc_mode_insn.
2206
2207 2004-11-16  Steven Bosscher  <stevenb@suse.de>
2208
2209         * stack.h: Remove.
2210
2211 2004-11-16  Steven Bosscher  <stevenb@suse.de>
2212
2213         * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
2214
2215 2004-11-15  Dale Johannesen  <dalej@apple.com>
2216
2217         * tree-flow.h (add_referenced_temp_var):  Remove name from prototype.
2218
2219 2004-11-15  Dale Johannesen  <dalej@apple.com>
2220
2221         * profile.c (compute_branch_probabilities):  Prevent
2222         crash with EH in RTL-based profiling.
2223
2224 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
2225
2226         * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
2227         COND_EXPR_COND.
2228         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
2229         * tree-ssa-dom.c (thread_across_edge): Likewise.
2230         * tree-vectorizer.c (vect_transform_loop_bound): Replace
2231         TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
2232         COND_EXPR_ELSE.
2233
2234         * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
2235         (tree_flow_call_edges_add): Update the call to
2236         bsi_commit_edge_inserts.
2237         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2238         * profile.c (branch_prob): Likewise.
2239         * tree-mudflap.c (mf_decl_cache_locals): Likewise.
2240         * tree-sra.c (scalarize_function): Likewise.
2241         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2242         * tree-ssa-pre.c (fini_pre): Likewise.
2243         * tree-flow.h: Update the prototype for
2244         bsi_commit_edge_inserts.
2245
2246 2004-11-15  Eric Christopher  <echristo@redhat.com>
2247
2248         * sched-deps.c (set_sched_group_p): Delete.
2249         (delete_all_dependencies): New function.
2250         (fixup_sched_groups): Use. New function.
2251         (sched_analyze_insn): Use.
2252
2253 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
2254
2255         * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
2256         RROTATE_EXPR or unknown code.
2257         * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
2258         LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
2259         UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
2260         or unknown code.
2261
2262 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
2263
2264         PR c/18498
2265         * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
2266         after processing the declarator.
2267
2268 2004-11-15  Aldy Hernandez  <aldyh@redhat.com>
2269
2270         * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
2271         vec_duplicate.
2272         (altivec_vspltb): Same.
2273         (altivec_vspltw): Same.
2274         (altivec_vspltisb): Same.
2275         (altivec_vspltish): Same.
2276         (altivec_vspltisw): Same.
2277         (altivec_vspltisw_v4sf): Same.
2278         (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
2279         UNSPEC_VSPLTISH.
2280         Move "End of vector xor's" comment to the right place.
2281
2282 2004-11-15  Steve Ellcey  <sje@cup.hp.com>
2283
2284         * config/ia64/ia64.md (*movtf_internal):  Use destination_operand
2285         instead of nonimmediate_operand.
2286
2287 2004-11-15  Mark Mitchell <mark@codesourcery.com>
2288
2289         * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2290         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
2291         * config/sol2.c (solaris_output_init_fini): Update calls to
2292         ASM_OUTPUT_CALL.  Include "rtl.h".
2293
2294 2004-11-15  Mark Mitchell <mark@codesourcery.com>
2295
2296         * config/sol2-c.c (cmn_err_char_table): Add "p".
2297
2298 2004-11-15  Mark Mitchell <mark@codesourcery.com>
2299
2300         * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
2301         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
2302
2303 2004-11-15  Mark Mitchell <mark@codesourcery.com>
2304
2305         * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
2306         within the multilib directory.
2307
2308 2004-11-15  Nick Clifton  <nickc@redhat.com>
2309
2310         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
2311         builtin assert of cpu=xstormy16.
2312
2313 2004-11-15  Nathan Sidwell  <nathan@codesourcery.com>
2314
2315         * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
2316         variable.
2317
2318 2004-11-14  Richard Henderson  <rth@redhat.com>
2319
2320         PR 18480
2321         * calls.c (struct arg_data): Add parallel_value.
2322         (precompute_register_parameters): Set it.
2323         (load_register_parameters): Use it.
2324         (store_one_arg): Also set it here.
2325
2326 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
2327
2328         PR tree-optimization/18431
2329         * fold-const.c (associate_trees): Do not produce x + 0.
2330         (fold_widened_comparison, fold_sign_changed_comparison): New functions.
2331         (fold): Use them.
2332         * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
2333         Moved ...
2334         * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
2335         * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
2336
2337 2004-11-14  Eric Botcazou <ebotcazou@libertysurf.fr>
2338
2339         * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
2340
2341 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
2342
2343         * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
2344         value-prof.c: Fix comment typos.
2345
2346 2004-11-14  Stan Shebs  <shebs@apple.com>
2347
2348         Basic ABI changes for passing structs by value in 64-bit Darwin.
2349         * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
2350         (rs6000_override_options): Set it for 64-bit Darwin.
2351         (rs6000_parse_abi_options): Add testing options to change it.
2352         (rs6000_return_in_memory): Test whether the type is one
2353         that can be passed in registers.
2354         (darwin64_function_arg_advance): New.
2355         (function_arg_advance): Call it, plus add recursion depth
2356         argument and test when counting off arguments.
2357         (rs6000_darwin64_function_arg): New.
2358         (function_arg): Call it.
2359         (setup_incoming_varargs): Add argument to function_arg_advance.
2360         (rs6000_darwin64_function_value): New.
2361         (rs6000_function_value): Call it.
2362         * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
2363         * config/rs6000/rs6000-protos.h: Update decl of
2364         function_arg_advance.
2365
2366 2004-11-14  Andrew Pinski  <pinskia@physics.uc.edu>
2367
2368         PR c/17279
2369         * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
2370         support TImode before adding __int128_t and __uint128_t types.
2371
2372 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
2373
2374         PR tree-opt/18400
2375         * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
2376         (vect_transform_loop_bound): Set loop->nb_iterations.
2377
2378 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
2379             Andrew Pinski  <pinskia@physics.uc.edu>
2380
2381         PR tree-opt/18425
2382         * tree-vectorize.c (vect_build_loop_niters): Do not insert
2383         NULL into the instruction stream. Initialize new_bb to NULL.
2384         (vect_update_ivs_after_vectorizer): Likewise.
2385         (vect_gen_niters_for_prolog_loop): Likewise.
2386
2387 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
2388
2389         PR tree-optimization/18431
2390         * tree-flow.h (stmt_references_memory_p): Declare.
2391         * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
2392         * tree-ssa.c (stmt_references_memory_p): New function.
2393
2394 2004-11-14  Andreas Schwab  <schwab@suse.de>
2395
2396         * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
2397         $(EXPR_H).
2398
2399 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
2400
2401         * c-common.c (walk_stmt_tree): Remove.
2402         * c-common.h: Remove the corresponding prototype.
2403
2404         * emit-rtl.c (push_to_full_sequence): Remove.
2405         * rtl.h: Remove the corresponding prototype.
2406
2407         * cselib.c, expr.c: Fix comment typos.
2408
2409 2004-11-13  Richard Henderson  <rth@redhat.com>
2410
2411         * calls.c (precompute_register_parameters): Force all PARALLELs
2412         into pseudo registers.
2413         (load_register_parameters): Copy PARALLELs into hard registers.
2414         * function.c (assign_parm_setup_block): Copy PARALLELS into
2415         pseudo registers.  Do emit_group_store in conversion_insns.
2416         * expr.c (emit_group_load_1): Rename from emit_group_load, take
2417         tmps as an argument.  Move final copy loop ...
2418         (emit_group_load): ... here.  New function.
2419         (emit_group_load_into_temps, emit_group_move_into_temps): New.
2420         * expr.h: Declare them.
2421
2422 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
2423
2424         * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
2425         tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
2426         with PHI_CHAIN where appropriate.
2427
2428 2004-11-13  Dale Johannesen  <dalej@apple.com>
2429
2430         * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
2431         (tree_block_label): Ditto.
2432         (flush_pending_stmts): Ditto.
2433         (insert_edge_copies): Ditto.
2434         (expr_invariant_in_loop_p): Ditto.
2435         (TDF_USE_OPS): Parenthesize definition.
2436         (TDF_USE_VOPS): Ditto.
2437
2438 2004-11-13  David Edelsohn  <edelsohn@gnu.org>
2439
2440         * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
2441         * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
2442         (atoll): Declare.
2443         * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
2444
2445 2004-11-14  Joseph Myers  <joseph@codesourcery.com>
2446
2447         * config/i386/i386.c (override_options): Move loop to set default
2448         tuning to correct place.
2449
2450 2004-11-13  Zak Kipling  <zak@transversal.com>
2451
2452         PR target/18300
2453         * config/i386/i386.c (classify_argument): Fix infinite loop when
2454         passing object with 3 or more base classes by value.
2455
2456 2004-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2457
2458         * doc/md.texi (constraints) <% modifier>: Mention that it is
2459         useless when the two alternatives are strictly identical.
2460
2461 2004-11-13  Richard Henderson  <rth@redhat.com>
2462
2463         * expmed.c (extract_split_bit_field): Temporarily disable call to
2464         extract_force_align_mem_bit_field.
2465
2466 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
2467
2468         * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
2469         formatting.
2470
2471         * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
2472         lambda-code.c, postreload.c, predict.c, tree-sra.c,
2473         tree-ssa-loop-manip.c, tree.c: Fix comment typos.
2474
2475 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
2476
2477         * doc/install.texi (automake): Correctly document that everything now
2478         will use automake 1.9.3.
2479
2480 2004-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
2481
2482         PR target/18347
2483         * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
2484         TImode.  Sorry for other non-complex larger-than-64-bit modes.
2485         * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
2486
2487 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
2488
2489         * doc/install.texi (automake): Document that everything now uses 1.9.
2490
2491 2004-11-13  Bernd Schmidt  <bernd.schmidt@analog.com>
2492
2493         * cse.c (cse_insn): Stores in a libcall sequence can invalidate
2494         previous loads.
2495
2496 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
2497
2498         * tree.h: Fix comment typos.
2499
2500 2004-11-13  Steven Bosscher  <stevenb@suse.de>
2501
2502         * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
2503         HARD_REGISTER_NUM_P.
2504
2505         * cselib.c (new_cselib_val): Make comment correct and more detailed.
2506         * flow.c (mark_set_1): Likewise.
2507
2508         * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
2509         duplicate_eh_regions): Remove.
2510         * except.h (duplicate_eh_regions): Remove prototype.
2511         * integrate.c (get_label_from_map, copy_rtx_and_substitute,
2512         global_const_equiv_varray): Remove.
2513         * integrate.h (get_label_from_map, copy_rtx_and_substitute,
2514         global_const_equiv_varray, set_label_in_map): Remove prototypes,
2515         extern declaration, and #define.
2516         (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
2517         (struct inline_remap): Remove.
2518         * varray.c (struct element): Remove entry for const_equiv_data.
2519         * varray.h (struct const_equiv_data): Remove.
2520         (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
2521         (union varray_data_tag) <const_equiv>: Remove.
2522         (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
2523         VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
2524
2525         * regstack.c (record_label_references): Remove unused function.
2526
2527         * rtl.def (VALUE): Update comment.
2528         (LABEL_REF): Remove unused operand 2.
2529         * rtl.h (struct rtx_def): Update for removed accessor macros.
2530         (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
2531         REG_LOOP_TEST_P): Remove.
2532         (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
2533         * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
2534         * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
2535
2536 2004-11-13  James A. Morrison  <phython@gcc.gnu.org>
2537             Eric Botcazou  <ebotcazou@libertysurf.fr>
2538
2539         PR target/18230
2540         * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
2541         patterns.
2542         * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
2543         (V32I): New macro for 32-bit modes.
2544         (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
2545         iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
2546         xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
2547         xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
2548         one_cmpldi_sp64): Use V64I instead of DI.
2549         (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
2550         xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
2551         (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
2552         (nandv64i_vis, nandv32i_vis): New patterns.
2553
2554 2004-11-12  Mike Stump  <mrs@apple.com>
2555
2556         * Makefile.in: Add html support.
2557         * java/Make-lang.in: Likewise.
2558         * fortran/Make-lang.in: Likewise.
2559         * treelang/Make-lang.in: Likewise.
2560         * doc/install.texi: Likewise.
2561         * doc/makefile.texi: Likewise.
2562         * doc/sourcebuild.texi: Likewise.
2563
2564 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
2565
2566         * tree-ssa-loop-manip.c: Fix a comment typo.
2567
2568 2004-11-12  Mike Stump  <mrs@apple.com>
2569
2570         * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
2571         renaming this node to Concept Index.
2572         * doc/gccint.texi (Index): Likewise.  Also minor formatting tweaks
2573         to more closely match gcc.texi.
2574
2575 2004-11-12  Jeff Law  <law@redhat.com>
2576
2577         * tree-cfg.c (hashtab.h): Include.
2578         (struct edge_to_case_leader_elt): New structure.
2579         (edge_to_case_leader): New.
2580         (edge_to_case_leader_hash): New hashtable hasing function.
2581         (edge_to_case_leader_eq): New hashtable equality function.
2582         (record_switch_edge): New function.
2583         (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
2584         (make_switch_expr_edges): Build the edge-to-case-leader
2585         hash table.  Tear down the hash table when we're done.
2586         (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
2587         CASE_LABEL.
2588         (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
2589         (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
2590         to use new concept of case leaders to reduce overhead of
2591         redirecting outgoing edges from switch statements.
2592         * tree.c (get_case_label): New function.
2593         * tree.h (CASE_LABEL): Define in terms of get_case_label.
2594         (CASE_LEADER_OR_LABEL): Define.
2595
2596 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
2597
2598         * varasm.c (output_addressed_constants): For CONST_DECLs,
2599         output the initializer if present.
2600
2601 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
2602
2603         * config/rs6000/darwin.h: Fix confusing typo in comment.
2604
2605 2004-11-12  Devang Patel  <dpatel@apple.com>
2606
2607         * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
2608
2609 2004-11-12  Devang Patel  <dpatel@apple.com>
2610
2611         * tree-if-conv.c (clean_predicate_lists): Use loop header
2612         and latch directly.
2613
2614 2004-11-12  Richard Henderson  <rth@redhat.com>
2615
2616         PR 17778
2617         * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2618         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2619         (TARGET_96_ROUND_53_LONG_DOUBLE): New.
2620         * config/i386/i386-modes.def (XF): Use it.
2621
2622 2004-11-11  Geoffrey Keating  <geoffk@apple.com>
2623
2624         * Makefile.in (macro_list): Use move-if-change to avoid spurious
2625         rebuilds.
2626
2627 2004-11-12  Mark Mitchell  <mark@codesourcery.com>
2628
2629         PR c++/18416
2630         * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
2631         when deciding whether to pass a variable to
2632         cgraph_varpool_finalize_decl or assemble_variable.
2633         * toplev.c (check_global_declarations): Do not clear DECL_RTL.
2634
2635 2004-11-12  Kazu Hirata  <kazu@cs.umass.edu>
2636
2637         * tree-vectorizer.c: Fix a comment typo.
2638
2639 2004-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
2640
2641         * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
2642
2643 2004-11-12  Diego Novillo  <dnovillo@redhat.com>
2644
2645         * tree-scalar-evolution.c (analyzable_condition): Remove
2646         superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
2647
2648 2004-11-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
2649
2650         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
2651         Remove m505/roe multilib variant.
2652
2653 2004-11-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
2654
2655         * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
2656         to load from the stack.
2657
2658 2004-11-12  Richard Henderson  <rth@redhat.com>
2659
2660         * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
2661         (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
2662         * toplev.h (FL2T__): Remove.
2663         (CLZ_HWI): Rename from FL2T_CLZ__.
2664         (CTZ_HWI): New.
2665         (floor_log2): Simplify.
2666         (exact_log2): New.
2667
2668 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
2669
2670         * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
2671         compute the first overlapping iterations.
2672
2673 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
2674
2675         PR middle-end/18005
2676         * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
2677         that arguments of EXACT_DIV_EXPR are INTEGER_CST.
2678
2679 2004-11-12  Steven Bosscher  <stevenb@suse.de>
2680
2681         PR tree-optimization/18419
2682         * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
2683         pointer set instead of a bitmap.
2684         (walk_use_def_chains): Create, pass and clean up that pointer_set.
2685
2686         * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
2687         field an sbitmap.
2688         (init_alias_info): Allocate and zero it here.
2689         (delete_alias_info): Delete it here.
2690         (collect_points_to_info_for): Use it.
2691
2692 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
2693
2694         * alias.c (record_alias_subset, addr_side_effect_eval):
2695         Make them static.
2696         * alias.h: Remove the prototype for record_alias_subset.
2697         * expr.h: Remove the commented-out prototype for
2698         record_alias_subset.
2699         * rtl.h: Remove the prototype for addr_side_effect_eval.
2700
2701         * cfglayout.c (choose_inner_scope): Make it static.
2702         * rtl.h: Remove the corresponding prototype.
2703
2704         * cfgloopmanip.c (update_single_exits_after_duplication,
2705         unloop): Make them static.
2706         * cfgloop.h: Remove the corresponding prototypes.
2707
2708         * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
2709         Make them static.
2710         * c-tree.h: Remove the corresponding prototypes.
2711
2712         * explow.c (round_push): Make it static.
2713         * expr.h: Remove the corresponding prototype.
2714
2715         * varasm.c (get_named_section_flags, decl_tls_model): Make
2716         them static.
2717         * output.h: Remove the prototype for get_named_section_flags.
2718         * tree.h: Remove the prototype for decl_tls_model.
2719
2720 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
2721
2722         * function.c (expand_function_end): Remove an "if" statement
2723         that always triggers.
2724         * stmt.c (expand_null_return_1): Likewise.
2725
2726 2004-11-11  James E. Wilson  <wilson@specifixinc.com>
2727
2728         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
2729         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
2730         CLASS_MAX_NREGS): Likewise.
2731
2732 2004-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
2733
2734         PR tree-optimization/17742
2735         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
2736         MINUS_EXPR correctly.
2737
2738 2004-11-11  Sebastian Pop  <pop@cri.ensmp.fr>
2739
2740         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
2741         Give up as soon as the evolution is known not computable.
2742
2743 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
2744
2745         PR target/16457
2746         * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
2747         mask64_1or2_operand.
2748         (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
2749         to spot rlwinm opportunities.
2750         (and64_2_operand): Use mask_1or2_operand.
2751         * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
2752
2753 2004-11-11  Dorit Naishlos  <dorit@il.ibm.com>
2754
2755         * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
2756         (vect_update_ivs_after_vectorizer): Update function documentation.
2757         Avoid quadratic behavior and direct write to PHI_ARG_DEF.
2758
2759 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
2760
2761         * config/arm/arm.c: Fix a comment typo.
2762
2763 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
2764
2765         * bitmap.h (nBITMAP_WORD_BITS): Remove.
2766         (BITMAP_WORD_BITS): Force unsigned by use of 1u.
2767         (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
2768         unnecessary casts.
2769         (bitmap_first_set_bit): Return unsigned, use ctzl.
2770         (bitmap_last_set_bit): Remove.
2771         * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
2772         unsigned.
2773         (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
2774         remove special case code for two word elements.
2775         (bitmap_last_set_bit): Remove.
2776         * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
2777         bitmap_first_set_bit with bitmap_empty_p.
2778         * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
2779         * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
2780         bitmap_last_bit_set.
2781
2782 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
2783
2784         PR target/16796
2785         * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
2786
2787         PR target/16458
2788         * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
2789         unsigned equality compare when we know the operands are unsigned.
2790
2791 2004-11-10  Peter S. Mazinger  <ps.m@gmx.net>
2792
2793         * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
2794         __PIC__ and __pic__ only if TARGET_ABICALLS.
2795         (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
2796         (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
2797         -KPIC only if not -mno-abicalls.
2798
2799         * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
2800         * config/sparc/linux.h, config/sparc/linux64.h
2801         (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
2802
2803         * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
2804         * config/pa/pa/linux.h (CPP_SPEC): Likewise.
2805         * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
2806         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
2807
2808 2004-11-11  Paul Brook  <paul@codesourcery.com>
2809
2810         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
2811         register if current_function_uses_pic_offset_table is set.
2812
2813 2004-11-10  David Edelsohn  <edelsohn@gnu.org>
2814
2815         * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
2816         Change multi-instruction sequences to new attribute.
2817         * config/rs6000/{40x.md,440.md,603.md,6xx.md,
2818         7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
2819         rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
2820
2821 2004-11-10  Daniel Berlin  <dberlin@dberlin.org>
2822
2823         * tree-data-ref.c (build_classic_dist_vector): If either loop
2824         is outside of the nest we asked about, the dependence can't
2825         matter.
2826         (build_classic_dir_vector): Ditto.
2827
2828 2004-11-10  Zdenek Dvorak  <dvorakz@suse.cz>
2829
2830         * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
2831         right order.
2832         (force_var_cost): Determine cost of addition and multiplication more
2833         precisely.
2834         (get_computation_cost_at): Add cost for computing address elements to
2835         the final cost.
2836
2837         * fold-const.c (fold): Attempt to use ptr_difference_const whenever
2838         one of the arguments of MINUS_EXPR is an address.
2839         (split_address_to_core_and_offset): New function.
2840         (ptr_difference_const): Handle case when one of the operands is a
2841         pointer.
2842         * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
2843         (ptr_difference_cost): Pass addresses instead of objects to
2844         ptr_difference_const.
2845
2846 2004-11-10  Nathan Sidwell  <nathan@codesourcery.com>
2847
2848         * tree.c (tree_check_failed): Emit general error if the list of
2849         node types is empty.
2850
2851 2004-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2852
2853         * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
2854         argument.  When the union is passed in the 6th slot, build a
2855         PARALLEL with only one element.
2856         (function_arg): Adjust call to function_arg_union_value.
2857         (function_value): Likewise.
2858
2859 2004-11-10  Fariborz Jahanian <fjahanian@apple.com>
2860
2861         PR tree-optimization/17892
2862         * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
2863         MINUS_EXPR operator.
2864
2865 2004-11-10  James A. Morrison  <phython@gcc.gnu.org>
2866
2867         PR target/18230
2868         config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
2869         (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
2870
2871 2004-11-10  Steven Bosscher  <stevenb@suse.de>
2872
2873         * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
2874         (struct basic_block_def): Remove local_set and cond_local_set
2875         fields.  Update comment for global_live_at_start.
2876         * flow.c (calculate_global_regs_live): Allocate local_sets and
2877         cond_local_sets here as arrays of bitmaps previously stored in
2878         bb->local_set and bb->cond_local_set.  Use xmalloc instead of
2879         obstack allocated bitmaps.
2880
2881 2004-11-09  H.J. Lu  <hongjiu.lu@intel.com>
2882
2883         PR target/18380
2884         * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
2885         hidden.
2886
2887         * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
2888
2889 2004-11-09  Jeff Law  <law@redhat.com>
2890
2891         * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
2892         argument holding last unvisited block.  Start search for
2893         unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
2894         (connect_infinite_loops_to_exit): Supply last unvisited block
2895         to flow_dfs_compute_reverse_execute.
2896
2897 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
2898
2899         * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
2900         doubles.
2901         (floatunssidf2): Same.
2902         (floatsidf2): Same.
2903         ("extendsfdf2"): New expander.
2904         (*extendsfdf2_fpr): Rename.
2905         (*truncdfsf2_fpr): Same.
2906         (*negdf2_fpr): Same.
2907         (*absdf2_fpr): Same.
2908         (*nabsdf2_fpr): Same.
2909         (*adddf3_fpr): Same.
2910         (*subdf3_fpr): Same.
2911         (*muldf3_fpr): Same.
2912         (*divdf3_fpr): Same.
2913
2914         * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
2915         ("spe_fix_truncdfsi2"): Same.
2916         (spe_floatunssidf2): Same.
2917         (spe_floatsidf2): Same.
2918
2919 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
2920
2921         PR c/18322
2922         * c-common.c (fname_decl): Don't use line number of decl in
2923         diagnostic.
2924
2925 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
2926
2927         * config/s390/s390-protos.h (s390_pool_operand): Remove.
2928         * config/s390/s390.c (s390_pool_operand): Likewise.
2929         (s390_extra_constraint_str): Handle 'B' constraints.
2930         * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
2931         * config/s390/s390.md: Document 'B' constraints.
2932         ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
2933         s390_pool_operand to prevent insns with two literal pool
2934         references.  Make pattern commutative.
2935         ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
2936         'B' constraint instead of s390_pool_operand.
2937
2938 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2939
2940         * tree-cfg.c (create_bb): Remove unnecessary memset.
2941
2942 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2943
2944         * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
2945         (thread_block): Call flush_pending_stmt instead of
2946         copy_phis_to_block.
2947
2948 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2949
2950         * loop-iv.c (iv_number_of_iterations): Make it static.
2951         * cfgloop.h: Remove the corresponding prototype.
2952
2953 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2954
2955         * function.c (combine_temp_slots, assign_parms,
2956         expand_pending_sizes): Make them static.
2957         * tree.h: Remove the corresponding prototypes.
2958
2959 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2960
2961         * emit-rtl.c (copy_most_rtx): Remove.
2962         * rtl.h: Remove the corresponding prototype.
2963
2964 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2965
2966         * cfgloop.c (flow_loops_update): Remove.
2967         * cfgloop.h: Remove the corresponding prototype.
2968
2969 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2970
2971         * conflict.c (mark_reg, conflict_graph_compute): Remove.
2972         * basic-block.h: Remove the prototype for
2973         conflict_graph_compute.
2974
2975 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2976
2977         * tree-if-conv.c (add_to_dst_predicate_list): Change the
2978         second argument to basic_block.
2979         (tree_if_convert_cond_expr): Update call sites.
2980
2981 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2982
2983         * fold-const.c (pedantic_non_lvalue): Make it static.
2984         * tree.h: Remove the corresponding prototype.
2985
2986 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2987
2988         * optabs.c (prepare_operand): Make it static.
2989         * optabs.h: Remove the corresponding prototype.
2990
2991 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2992
2993         * reload1.c (reloads_conflict, gen_reload): Make them static.
2994         * reload.h: Remove the corresponding prototypes.
2995
2996 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
2997
2998         * reload.c (refers_to_mem_for_reload_p,
2999         refers_to_regno_for_reload_p): Make them static.
3000         * reload.h: Remove the corresponding prototypes.
3001
3002 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
3003             Eric Botcazou  <ebotcazou@libertysurf.fr>
3004
3005         PR target/18230
3006         * doc/md.texi (SPARC constraints): Document 'Y' constraint.
3007         * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
3008         * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
3009         (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
3010         (fp_zero_operand): Accept MODE_VECTOR_INT modes.
3011         (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
3012         (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
3013         (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
3014         MODE_VECTOR_INT modes.
3015         (sparc_extra_constraint_check): Add new constraint 'Y'.
3016         * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
3017         * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
3018         (V64): New mode macro for 64-bit modes.
3019         (movsf): Use V32 for mode instead of SF.
3020         (movsf_insn_vis): Use V32 for mode instead of SF.  Add 'Y' constraint
3021         alongside 'G' constraint.
3022         (movdf): Use V64 for mode instead of DF.
3023         (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
3024         of DF.  Add 'Y' constraint alongside 'G' constraint.
3025         (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
3026         instead of DF.
3027
3028 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
3029
3030         * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
3031         integer NEG and ABS.
3032         * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
3033         ("*negdi2_31"): Reimplement using a splitter.
3034         ("*negdi2_cc", "*negdi2_cconly"): New insns.
3035         ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
3036         ("*negsi2_cc", "*negsi2_cconly"): Likewise.
3037         ("*negdf2_cc", "*negdf2_cconly"): Likewise.
3038         ("*negsf2_cc", "*negsf2_cconly"): Likewise.
3039         ("*absdi2_cc", "*absdi2_cconly"): New insns.
3040         ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
3041         ("*abssi2_cc", "*abssi2_cconly"): Likewise.
3042         ("*absdf2_cc", "*absdf2_cconly"): Likewise.
3043         ("*abssf2_cc", "*abssf2_cconly"): Likewise.
3044         ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
3045         ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
3046         ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
3047         ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
3048         ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
3049
3050 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
3051
3052         * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
3053         when eliminating an UNSPEC_CMPINT.
3054         (s390_secondary_input_reload_class): Fix test for CC register reload.
3055         (s390_secondary_output_reload_class): Likewise.
3056         (s390_expand_cmpmem): Swap operands.  Use gen_cmpint.
3057         * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
3058         ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
3059         insn patterns with splitters.
3060
3061 2004-11-09  David Edelsohn  <edelsohn@gnu.org>
3062
3063         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
3064         * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
3065
3066 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3067
3068         * tree-phinodes.c (phi_reverse): New.
3069         * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
3070         Use it.
3071         * tree-flow.h: Add a prototype for phi_reverse.
3072
3073 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
3074
3075         * tree-ssa-loop-ivopts.c: Fix a comment typo.
3076
3077 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
3078
3079         PR pch/14940
3080         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
3081         definitions.
3082
3083 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
3084
3085         * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
3086         instead of "arg" in diagnostics.
3087
3088 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
3089
3090         * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
3091         c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
3092         gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
3093         tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
3094         config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
3095         config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
3096         config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
3097         config/iq2000/iq2000.c, config/m32r/m32r.c,
3098         config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
3099         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
3100         config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
3101         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
3102         config/sh/symbian.c, config/stormy16/stormy16.c,
3103         config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
3104         and %> as appropriate.  Use %' as apostrophe in diagnostics where
3105         applicable.  Use %< and %> in place of '' quotes where applicable.
3106         Use %qs in place of %<%s%>.  Consistently quote __builtin function
3107         names.
3108
3109 2004-11-09  Hans-Peter Nilsson  <hp@bitrange.com>
3110
3111         * gdbinit.in (pbb, pbm): New macros.
3112
3113 2004-11-08 Jeff Law  <law@redhat.com>
3114
3115         * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
3116         implementing it inline.
3117
3118         * cfganal.c (find_edge): Search pred->succs or succ->preds,
3119         whichever is shorter.
3120
3121 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3122
3123         * passes.c (rest_of_handle_jump): Remove dead code.
3124
3125 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3126
3127         * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
3128         the last used element in the worklist.
3129
3130 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3131
3132         * tree-inline.c (remap_save_expr): Make it static.
3133         * tree-inline.h: Remove the corresponding prototype.
3134
3135 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3136
3137         * tree-ssa-loop-niter.c (upper_bound_in_type,
3138         lower_bound_in_type): Make them static.
3139         * tree.h: Remove the corresponding prototypes.
3140
3141 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3142
3143         * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
3144         static.
3145         * tree-ssa-live.h: Remove the corresponding prototypes.
3146
3147 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3148
3149         * tree-if-conv.c (tree_if_conversion): Make it static.
3150         * tree-flow.h: Remove the corresponding prototype.
3151
3152 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3153
3154         * tree-ssa-operands.c (build_ssa_operands): Make it static.
3155         * tree-flow.h: Remove the corresponding prototype.
3156
3157 2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
3158
3159         PR tree-opt/18299
3160         * tree-inline.c (copy_body_r): Change "t = t" to empty
3161         statement instead of "t".
3162
3163 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3164
3165         * modulo-sched.c (create_partial_schedule,
3166         free_partial_schedule, reset_partial_schedule,
3167         ps_add_node_check_conflicts, rotate_partial_schedule): Make
3168         them static.
3169
3170 2004-11-08  Richard Henderson  <rth@redhat.com>
3171
3172         * expmed.c (extract_force_align_mem_bit_field): Correct handling at
3173         the end of a page.
3174
3175 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3176
3177         * sched-deps.c (add_insn_mem_dependence): Make it static.
3178         * sched-int.h: Remove the corresponding prototypes.
3179
3180 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3181
3182         * flow.c (allocate_bb_life_data): Make it static.
3183         * basic-block.h: Remove the corresponding prototype.
3184
3185 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3186
3187         * calls.c (split_complex_values, split_complex_types): Make
3188         them static.
3189         * expr.h: Remove the corresponding prototypes.
3190
3191 2004-11-08  Richard Earnshaw  <rearnsha@arm.com>
3192
3193         * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
3194         with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
3195
3196 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3197
3198         * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
3199         statements that always trigger.
3200
3201 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
3202
3203         * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
3204         tree-scalar-evolution.c, tree-ssa-loop-im.c,
3205         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
3206         tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
3207         appropriate.
3208
3209 2004-11-08  Ben Elliston  <bje@au.ibm.com>
3210
3211         * cgraph.h (cgraph_calls_p): Remove.
3212         * cgraph.c (cgraph_calls_p): Likewise.
3213
3214         * varray.h (varray_copy): Remove.
3215         * varray.c (varray_copy): Likewise.
3216
3217 2004-11-07  Andrew Pinski  <pinskia@physics.uc.edu>
3218
3219         PR target/18269
3220         * config/darwin.c (machopic_indirect_data_reference):
3221         Call gen_macho_high and gen_macho_low instead of
3222         checking the mode and calling gen_macho_high_di directly.
3223         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3224         * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
3225         to darwin.md.
3226         (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
3227         load_macho_picbase, macho_low, macho_high): Removed.
3228         (builtin_setjmp_receiver): Call gen_macho_high and
3229         gen_macho_low instead of checking the mode and calling
3230         gen_macho_high_di directly.
3231         * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
3232         (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
3233         Moved from rs6000.md.
3234         (macho_high): New expander.
3235         (macho_high_si): Renamed version of macho_high from rs6000.md.
3236         (macho_low): New expander.
3237         (macho_low_si): Renamed version of macho_low from rs6000.md.
3238         (load_macho_picbase): New expander.
3239         (load_macho_picbase_si): Renamed version of load_macho_picbase
3240         from rs6000.md.
3241         (macho_correct_pic): New expander.
3242         (macho_correct_pic_si): Renamed version of macho_correct_pic
3243         from rs6000.md.
3244
3245 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
3246
3247         * c-decl.c (finish_struct): Use complete sentences for diagnostic
3248         for structures or unions with no members or named members.
3249
3250 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
3251
3252         * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
3253         taking address of bit-field by assertion.
3254
3255 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
3256
3257         * config/s390/s390.md (attribute "op_type"): Default to "NN".
3258         (attribute "atype"): Default to "agen".
3259         (attribute "length"): Default to 6.
3260         (define_asm_attibutes): Remove.
3261         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
3262         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
3263         "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
3264         Do not set type attribute to "cs" where already default.
3265         ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
3266         "*negdi2_31"):
3267         Do not set type attribute to "other" where already default.
3268         ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
3269         "*strlendi", "*strlensi",
3270         "*movmem_long_64", "*movmem_long_31",
3271         "*clrmem_long_64", "*clrmem_long_31",
3272         "*cmpmem_long_64", "*cmpmem_long_31",
3273         "*cmpint_si", "*cmpint_di",
3274         "addti3", "*adddi3_31z", "*adddi3_31",
3275         "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
3276         "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
3277         "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
3278         "*pool_entry", "pool_align", "pool_section_start",
3279         "pool_section_end", "main_pool", "reload_base_31", "pool"):
3280         Do not set op_type attribute to "NN" where already default.
3281         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
3282         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
3283         "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
3284         Do not set atype attribute to "agen" where already default.
3285         ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
3286
3287 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
3288
3289         * config/mips/t-iris6 (tp-bit.c): Fix target filename.
3290
3291 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
3292
3293         PR target/16830
3294         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
3295         R3000 and R4000 macros on IRIX.
3296
3297 2004-11-06  Andreas Schwab  <schwab@suse.de>
3298
3299         PR target/16286
3300         * config/rs6000/altivec.h: Replace bool by __bool and pixel by
3301         __pixel.
3302
3303 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
3304
3305         * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
3306
3307 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
3308
3309         * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
3310         matches no insns already matched by other reservations.
3311         * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
3312         matches no insns already matched by other reservations.
3313         ("x_ss"): Remove, replace by ...
3314         ("x_cs"): ... this new reservation.  Check type instead of op_type.
3315         Update bypasses to use x_cs instead of x_ss.
3316         ("x_nn"): Remove, replace by ...
3317         ("x_other"): ... this new reservation.  Check type instead of op_type.
3318         Add x_other and x_branch to bypasses.
3319         ("x_vs"): New reservation.
3320         * config/s390/s390.md (attribute "type"): Default according to op_type.
3321         ("*execute"): Set type to "cs".
3322
3323 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
3324
3325         * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
3326         if we are in GIMPLE.
3327
3328 2004-11-06  Hans-Peter Nilsson  <hp@bitrange.com>
3329
3330         PR rtl-optimization/17933
3331         * rtlanal.c (dead_or_set_regno_p): Break out common code to...
3332         (covers_regno_p): New function.  Handle SETs of PARALLEL,
3333         and defer the rest to...
3334         (covers_regno_no_parallel_p): New function.
3335
3336 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3337
3338         * config/sparc/sparc.c (function_arg_record_value_1): Skip
3339         fields with zero length.
3340         (function_arg_record_value_2): Likewise.
3341         (function_arg_record_value_3): Use smallest_mode_for_size
3342         instead of mode_for_size.
3343         (function_arg_union_value): Return naked register for unions
3344         with zero length.
3345
3346 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
3347
3348         * config/sparc/sparc.c (scan_record_type): Handle vector types.
3349         (function_arg_slotno): Handle vector types specially.
3350         (function_arg_record_value_1): Split fields with vector type and
3351         BLKmode into their subparts.
3352         (function_arg_record_value_2): Likewise.  Be prepared to handle
3353         more than 2 registers per field.
3354         (function_arg_union_value): Increment regno inside the loop.
3355         (function_arg_vector_value): New function.
3356         (function_arg): Use it to split fields with vector type and
3357         BLKmode into their subparts and build a PARALLEL.  Treat
3358         other vector types like floats.
3359         (function_value): Likewise.
3360         (sparc_pass_by_reference): Handle vector types.
3361         (sparc_return_in_memory): Likewise.
3362
3363 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
3364
3365         * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
3366         statement that never triggers.
3367
3368 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
3369
3370         * config/s390/2064.md ("z_o2", "z_o3"): Remove.
3371         * config/s390/2084.md ("x_o2", "x_o3"): Remove.
3372         ("x_fdivd"): Use also for fsqrtd type.
3373         ("x_fdivs"): Use also for fsqrts type.
3374         * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
3375         ("fix_truncdfsi2_ieee"): Set type to "ftoi".
3376         ("fix_truncdfsi2_ibm"): Set type to "other".
3377         ("floatdidf2", "floatdisf2"): Do not clobber CC.
3378         ("floatsidf2", "floatsidf2_ieee"): Likewise.
3379         ("floatsisf2", "floatsisf2_ieee"): Likewise.
3380         ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
3381         ("truncdfsf2_ibm"): Only allow "nonimmediate_operand".  Use LER
3382         instead of LRER.
3383         ("extendsfdf2_ibm"): Do not set atype.  Set type to "floads".
3384         ("sqrtdf2"): Set type to "fsqrtd".
3385         ("sqrtsf2"): Set type to "fsqrts".
3386
3387 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
3388
3389         * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
3390         pointer to the last PHI node in the new PHI chain.
3391
3392 2004-11-06  Kaz Kojima  <kkojima@gcc.gnu.org>
3393
3394         * config/sh/sh.c (prepare_move_operands): Emit a use of r12
3395         for non-PIC TLS_MODEL_INITIAL_EXEC case.
3396
3397 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
3398
3399         * expmed.c: Fix a comment typo.
3400
3401 2004-11-06  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3402
3403         PR target/18106
3404         * config/i386/cygming.h
3405         [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
3406
3407 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
3408
3409         * config/sh/sh4a.md: Fix copyright.
3410
3411 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
3412
3413         * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
3414         with GCC.
3415
3416 2004-11-05  David Edelsohn  <edelsohn@gnu.org>
3417
3418         * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
3419         when carry not used.  Suggested by Torbjorn Granlund.
3420
3421         * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
3422         operand[1] unnecessarily.  Suggested by Eric Christopher.
3423         (rs6000_adjust_cost): Increase latency of store to wider load.
3424         (rs6000_rtx_costs): mulli only allows 16-bit constants.
3425
3426 2004-11-05  Stan Shebs  <shebs@apple.com>
3427
3428         * config/rs6000/rs6000.c (machopic_output_stub): Output
3429         ldu instead of lwzu for 64-bit stubs.
3430
3431 2004-11-05  Richard Henderson  <rth@redhat.com>
3432
3433         * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
3434         size 2 with BWX.
3435         (alpha_expand_unaligned_store): Likewise.
3436
3437 2004-11-05  Richard Henderson  <rth@redhat.com>
3438
3439         * expmed.c (extract_force_align_mem_bit_field): New.
3440         (extract_split_bit_field): Call it.
3441
3442 2004-11-05  Richard Henderson  <rth@redhat.com>
3443
3444         * ia64.md (UNSPEC_SHRP): New.
3445         (dshift_count_operand): New.
3446         (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
3447         * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
3448
3449 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
3450
3451         * c-typeck.c (output_init_element): Return early if value is
3452         error_mark_node.
3453
3454 2004-11-05  James E Wilson  <wilson@specifixinc.com>
3455
3456         * invoke.texi (-fno-guess-branch-probability): Rewrite.
3457
3458         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
3459         1 to UNSPEC_GR_SPILL.
3460
3461 2004-11-05  Andreas Krebbel  <krebbel1@de.ibm.com>
3462
3463         * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
3464         (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
3465
3466 2004-11-05  Nathan Sidwell  <nathan@codesourcery.com>
3467
3468         * bitmap.h (enum bitmap_bits): Remove.
3469         (bitmap_operation): Remove.
3470         (bitmap_and, bitmap_and_into, bitmap_and_compl,
3471         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3472         bitmap_xor_into): Prototype.
3473         * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
3474         (bitmap_operation): Remove.
3475         (bitmap_and, bitmap_and_into, bitmap_and_compl,
3476         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
3477         bitmap_xor_into): New.
3478         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
3479
3480         PR tree-optimization/18307
3481         * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
3482         and ORIG being the same node.
3483
3484 2004-11-04  Geoffrey Keating  <geoffk@apple.com>
3485
3486         * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
3487         (install-mkheaders): Install the version built for the
3488         host, not for the build machine.
3489         * configure.ac: Always run fixincludes.
3490         (all_outputs): Remove mkheaders.
3491         * configure: Regenerate.
3492         * fixinc.in: Move to fixincludes/.
3493         * mkfixinc.sh: Likewise.
3494         * mkheaders.in: Likewise.
3495         * README-fixinc: Likewise.
3496
3497 2004-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
3498
3499         PR target/18263
3500         * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
3501         equivalent on the A4.
3502
3503 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
3504
3505         * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
3506         doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
3507         doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
3508         doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
3509         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
3510         doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
3511         doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
3512         doc/trouble.texi: Correct end-of-sentence markup and markup of
3513         "etc.", "e.g." and "i.e.".  Use @code in various places where
3514         appropriate.
3515
3516 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
3517
3518         * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
3519         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
3520         doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
3521         whitespace.
3522
3523 2004-11-04  Mark Mitchell  <mark@codesourcery.com>
3524
3525         * config/arm/arm.c (arm_handle_notshared_attribute): New function.
3526         * doc/extend.texi: Document "notshared" attribute.
3527
3528 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3529
3530         * tree-phinodes.c (make_phi_node): Make it static.
3531         * tree.h: Remove the prototypes for make_phi_node.
3532
3533 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3534
3535         * stmt.c (expand_asm, expand_asm_operands): Make them static.
3536         * tree.h: Remove the prototypes for expand_asm and
3537         expand_asm_operands.
3538
3539 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3540
3541         * passes.c (rest_of_compilation): Make it static.
3542         * toplev.h: Remove the prototype for rest_of_compilation.
3543
3544 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3545
3546         * jump.c (cleanup_barriers): Use delete_insn instead of
3547         delete_barrier.
3548         (delete_barrier): Remove.
3549         * rtl.h: Remove the corresponding prototype.
3550
3551 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3552
3553         * expr.c (mostly_zero_p): Make it static.
3554         * tree.h: Remove the prototype for mostly_zeros_p.
3555
3556 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3557
3558         * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
3559
3560 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3561
3562         * builtins.c (expand_builtin_return_addr,
3563         expand_builtin_longjmp, expand_builtin_trap): Make them static.
3564         * expr.h: Remove the prototypes for expand_builtin_longjmp and
3565         expand_builtin_trap.
3566         * tree.h: Remove the prototype for expand_builtin_return_addr.
3567
3568 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3569
3570         * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
3571         * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
3572         with VAL being NULL.
3573
3574 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3575
3576         * cfghooks.c (delete_basic_block): Remove code to truncate
3577         edge vectors.
3578
3579 2004-11-04  Andrew Pinski  <pinskia@physics.uc.edu>
3580
3581         * flow.c (init_propagate_block_info): Change the type of i to
3582         unsigned.
3583
3584 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
3585
3586         PR tree-optimization/18184
3587         * c-typeck.c (comptypes): Do not treat pointers of different
3588         modes or alias-all flags as equivalent.
3589         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
3590
3591 2004-11-04  Joseph S. Myers  <joseph@codesourcery.com>
3592
3593         * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
3594         reference specific C parser files in examples.
3595
3596 2004-11-04  Richard Sandiford  <rsandifo@redhat.com>
3597
3598         PR target/15342
3599         * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
3600         as OP_INOUT if the instruction is predicated.
3601
3602 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3603
3604         * bitmap.h: Fix a comment typo.  Follow spelling conventions.
3605         * tree-vectorizer.c: Fix a comment typo.
3606
3607 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
3608
3609         * sdbout.c (SDB_GENERATE_FAKE): Remove.
3610         (gen_fake_label): Don't use SDB_GENERATE_FAKE.
3611         * system.h: Poison SDB_GENERATE_FAKE.
3612         * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
3613
3614 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
3615
3616         * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
3617
3618 2004-11-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
3619
3620         PR other/18277
3621         * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
3622         2004-10-29 patch
3623
3624 2004-11-04  Nathan Sidwell  <nathan@codesourcery.com>
3625
3626         * predict.c (propagate_freq): Make bitno unsigned. Move
3627         npredecessors update out of loop.
3628
3629         * bitmap.h (bitmap_iterator): Remove word_bit and bit
3630         fields. Rename others.
3631         (bmp_iter_common_next_1, bmp_iter_single_next_1,
3632         bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
3633         bmp_iter_and_not_next_1, bmp_iter_and_not_init,
3634         bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
3635         bmp_iter_and_next): Remove.
3636         (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
3637         bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
3638         New.
3639         (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
3640         EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
3641
3642         * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
3643         * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
3644         bitmap_and_into, bitmap_ior_into as appropriate.
3645         * except.c (remove_eh_handler): Likewise.
3646         * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
3647         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3648         * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
3649         * tree-ssa-live.h (live_merge_and_clear): Likewise.
3650         * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
3651         Likewise.
3652
3653         * bitmap.c (bitmap_print): Make bitno unsigned.
3654         * bt-load.c (clear_btr_from_live_range,
3655         btr_def_live_range): Likewise.
3656         * caller-save.c (save_call_clobbered_regs): Likewise.
3657         * cfganal.c (compute_dominance_frontiers_1): Likewise.
3658         * cfgcleanup.c (thread_jump): Likewise.
3659         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
3660         * conflict.c (conflict_graph_compute): Likewise.
3661         * ddg.c (add_deps_for_use): Likewise.
3662         * df.c (df_refs_update): Likewise.
3663         * except.c (remove_eh_handler): Likewise.
3664         * flow.c (verify_local_live_at_start, update_life_info,
3665         initialize_uninitialized_subregs, propagate_one_insn,
3666         free_propagate_block_info, propagate_block, find_use_as_address,
3667         reg_set_to_hard_reg_set): Likewise.
3668         * gcse.c (clear_modify_mem_tables): Likewise.
3669         * global.c (global_conflicts, build_insn_chain): Likewise.
3670         * ifcvt.c (dead_or_predicable): Likewise.
3671         * local-alloc.c (update_equiv_regs): Likewise.
3672         * loop.c (load_mems): Likewise.
3673         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
3674         Likewise.
3675         * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
3676         Likewise.
3677         * reload1.c (order_regs_for_reload, finish_spills): Likewise.
3678         * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
3679         * sched-rgn.c (propagate_deps
3680         * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
3681         * tree-dfa.c (dump_dfa_stats
3682         tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
3683         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
3684         Likewise.
3685         * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
3686         free_temp_expr_table, find_replaceable_exprs): Likewise.
3687         * tree-sra.c (scan_function, scalarize_parms): Likewise.
3688         * tree-ssa-alias.c (init_alias_info,
3689         compute_points_to_and_addr_escape,
3690         compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
3691         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
3692         * tree-ssa-live.c (new_tree_live_info, live_worklist,
3693         calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
3694         sort_coalesce_list, build_tree_conflict_graph, dump_live_info
3695         tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
3696         tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
3697         add_call_read_ops): Likewise.
3698         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
3699         * tree-ssa-live.h (num_var_partitions): Return unsigned.
3700
3701 2004-11-03  Dorit Naishlos  <dorit@il.ibm.com>
3702
3703         PR tree-optimization/18009
3704         * tree-vectorizer.h (enum dr_alignment_support): New type.
3705         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
3706         (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
3707         single data_reference (instead of a varray of references).
3708         * tree-vectorizer.c (new_loop_vec_info): Likewise.
3709         (vect_gen_niters_for_prolog_loop): Likewise.
3710         (vect_update_inits_of_drs): Likewise.
3711
3712         (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
3713         vect_enhance_data_refs_alignment.
3714         (vect_do_peeling_for_alignment): Likewise.
3715         (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
3716         this functionality used to be in vect_analyze_data_refs_alignment.
3717         Also update DR_MISALIGNMENT due to peeling; this functionality used to
3718         be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
3719         (vect_analyze_data_refs_alignment): Decision on whether and by how much
3720         to peel moved to vect_enhance_data_refs_alignment. Call
3721         vect_supportable_dr_alignment.
3722
3723         (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
3724         (vect_compute_data_refs_alignment): Return bool. Consider return value
3725         of vect_compute_data_ref_alignment and return true/false accordingly.
3726         (vect_enhance_data_refs_alignment): Consider return value of
3727         vect_compute_data_refs_alignment and return true/false accordingly.
3728
3729         (vect_supportable_dr_alignment): New function.
3730         (vectorizable_store): Call vect_supportable_dr_alignment.
3731         (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
3732         support checks moved from here to vect_supportable_dr_alignment.
3733
3734         (vect_transform_loop): Avoid 80 columns overflow.
3735
3736 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3737
3738         * timevar.c (timevar_enable): Change from
3739         static.
3740         (timevar_push): Rename to ...
3741         (timevar_push_1): this and remove the
3742         enabled check.
3743         (timevar_pop): Rename to ...
3744         (timevar_pop_1): this and remove the
3745         enabled check.
3746         * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
3747         (timevar_pop): New macro.
3748         (timevar_push): New macro.
3749         (timevar_enable): Declare.
3750
3751 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3752
3753         * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
3754         libgcc for shared libraries.
3755
3756 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
3757
3758         * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
3759         * config/s390/s390.c (s390_split_access_reg): New function.
3760         (regclass_map): Add access registers.
3761         (get_thread_pointer): Use access register instead of UNSPEC_TP.
3762         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
3763         (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
3764         (TP_REGNUM): New define.
3765         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3766         REG_ALLOC_ORDER): Add access registers.
3767         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
3768         CANNOT_CHANGE_MODE_CLASS): Support access registers.
3769         (enum reg_class): Add ACCESS_REGS.
3770         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
3771         (REG_CLASS_FROM_LETTER): Add 't' constraint.
3772         (REGISTER_NAMES): Add access registers.
3773         * config/s390/s390.md (UNSPEC_TP): Remove.
3774         ("*movdi_64"): Add access register alternatives.  Provide splitters
3775         to split DImode access register <-> GPR moves into SImode moves.
3776         ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
3777         ("movstrictsi"): Likewise.
3778         ("get_tp_64", "get_tp_31"): Reimplement using access registers.
3779         ("set_tp_64", "set_tp_31"): Likewise.
3780         ("*set_tp"): New insn.
3781
3782 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
3783
3784         * tree-phinodes.c (resize_phi_node): Copy only a portion of
3785         the PHI node currently in use.
3786
3787 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3788
3789         PR tree-opt/18231
3790         * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
3791         also.
3792
3793 2004-11-03  Andrew MacLeod  <amacleod@redhat.com>
3794
3795         PR tree-optimization/18270
3796         * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
3797         abnormal edges, commit all pending stmts on incoming edges.
3798
3799 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
3800
3801         * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
3802         cause extra costs.  Generate canonical RTL.
3803
3804 2004-11-02  Daniel Berlin  <dberlin@dberlin.org>
3805
3806         * lambda-code.c (lambda_compute_auxillary_space): Update comments.
3807         (lambda_compute_target_space). Ditto.
3808         * lambda.h (lambda_trans_matrix): Ditto.
3809         (lambda_linear_expression): Ditto.
3810         (lambda_body_vector): Ditto.
3811         (lambda_loopnest): Ditto.
3812         * tree-loop-linear.c (gather_interchange_stats): Combine tests,
3813         update comments, and remove pointless addition of 0.
3814         (linear_transform_loops): Update comments.
3815
3816 2004-11-03  Sebastian Pop  <pop@cri.ensmp.fr>
3817
3818         * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
3819         CEIL_MOD_EXPR.
3820
3821 2004-11-03 Jeff Law  <law@redhat.com>
3822
3823         * predict.c (struct block_info_def): Kill "tovisit" field.
3824         (propagate_freq): Accept new "tovisit" parameter.  Change
3825         read/write access methods for "tovisit" to check the "tovisit"
3826         bitmap instead of a bit in block_info_def.
3827         (estimate_loops_at_level): Allocate "tovisit" bitmap.  Pass
3828         it to propagate_freq.
3829
3830         * stmt.c (expand_case): Speed up code to detect duplicate case
3831         label targets and count unique case label targets.
3832
3833 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
3834
3835         * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
3836
3837 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
3838
3839         * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
3840
3841 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
3842
3843         * tree-cfg.c (find_taken_edge): Abort if we are given a
3844         statement that is neither COND_EXPR nor SWITCH_EXPR.
3845
3846 2004-11-02  Zdenek Dvorak  <dvorakz@suse.cz>
3847
3848         * fold-const.c (fold): Reassociate also (x - mult) + mult and
3849         (mult - x) + mult.  Cast operands of expression after applying
3850         distributive law to the correct types.  Apply distributive law
3851         to a * c - b * c for all non-float types.
3852
3853 2004-11-02  Geoffrey Keating  <geoffk@apple.com>
3854
3855         * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
3856         because we don't want to run them now; instead, set them to
3857         stmp-install-fixproto or stmp-install-fixinc.
3858         * Makefile.in (stmp-install-fixproto): New.
3859         (stmp-install-fixinc): New.
3860         * configure: Regenerate.
3861
3862 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
3863
3864         * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
3865         of bitmap_xor.
3866
3867 2004-11-02  Ziemowit Laski  <zlaski@apple.com>
3868
3869         * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
3870         (c_types_compatible_p): Move function definition...
3871         * c-objc-common.c (c_types_compatible_p): ...here.
3872         * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
3873         c-lang.c.
3874
3875 2004-11-02  Steven Bosscher  <stevenb@suse.de>
3876
3877         * cfgloop.h (struct loop): Update comment.
3878         * cse.c (cse_main): Remove obsolete comment.
3879
3880         * expr.h (gen_cond_trap): Move prototype under functions provided
3881         by optabs.c.
3882         (canonicalize_condition, get_condition): Move to...
3883         * rtl.h (canonicalize_condition, get_condition): ...here.
3884         (branch_target_load_optimize): Add comment that this function is
3885         in bt-load.c.
3886         * loop.c (canonicalize_condition, get_condition): Move to...
3887         * rtlanal.c (canonicalize_condition, get_condition): ...here.
3888         * sched-deps.c (get_condition): Rename to sched_get_condition.
3889         (add_dependence): Update this caller.
3890
3891 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
3892
3893         PR tree-opt/16808
3894         * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
3895         that the vops get marked for renaming.
3896
3897 2004-11-02  Andreas Krebbel  <krebbel1@de.ibm.com>
3898
3899         * config/s390/s390.md ("movcc"): Set type attribute.
3900
3901 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
3902
3903         * tree-phinodes.c (add_phi_arg): Add an assertion that the
3904         edge already exists.
3905
3906 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
3907
3908         * tree-phinodes.c (remove_phi_arg_num): Do not zero the
3909         element that's being removed.
3910
3911 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
3912
3913         * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
3914         arguments using PENDING_STMT.
3915         (thread_block): Call copy_phis_to_block after redirecting an
3916         edge.
3917
3918 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
3919
3920         * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
3921         bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
3922         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
3923         (bitmap_ior_and_compl_into): Produce bool.
3924         (bitmap_union_of_diff): Rename to ...
3925         (bitmap_ior_and_compl): ... here. Produce bool.
3926         * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
3927         bitmap_operation directly.
3928         (bitmap_union_of_diff): Rename to ...
3929         (bitmap_ior_and_compl): ... here. Return bool, use
3930         bitmap_operation directly.
3931         * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
3932         (df_ru_transfer_function, df_lr_transfer_function): Likewise.
3933         * global.c (modify_bb_reg_pav): Likewise.
3934
3935         * bitmap.h (bitmap_equal_p): Return bool.
3936         (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
3937         * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
3938         (bitmap_intersect_p, bitmap_intersect_compl_p): New.
3939         * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
3940         bitmap_intersect_compl_p.
3941         * ifcvt (dead_or_predicable): Likewise.
3942
3943 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
3944
3945         PR rtl-optimization/17104
3946         * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
3947         loads in zero_extend.
3948
3949 2004-11-02  Danny Smith  <dannysmith@users.sourceforge.net>
3950
3951         PR debug/18242
3952         * toplev.c (debug_type_names): Remove "dwarf-1".
3953
3954 2004-11-02  Ben Elliston  <bje@au.ibm.com>
3955
3956         * timevar.h (timevar_get): Remove.
3957         * timevar.c (timevar_get): Remove unused function.
3958
3959 2004-11-02  Joseph S. Myers  <joseph@codesourcery.com>
3960
3961         * doc/include/texinfo.tex: Update from Texinfo CVS.
3962
3963 2004-11-02  Ben Elliston  <bje@au.ibm.com>
3964
3965         * cppdefault.h (cpp_SYSROOT): Remove.
3966         * cppdefault.c (cpp_SYSROOT): Likewise.
3967
3968 2004-11-01  Andrew MacLeod  <amacleod@redhat.com>
3969
3970         PR tree-optimization/16447
3971         * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
3972         bsi_commit_edge_inserts_1, and make funtion external.  Return new block.
3973         (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
3974         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
3975         * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
3976         * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
3977         (same_stmt_list_p): New.  Return TRUE if edge is to be forwarded.
3978         (identical_copies_p): New.  Return true is two copies are the same.
3979         (identical_stmt_lists_p): New.  Return true if stmt lists are the same.
3980         (analyze_edges_for_bb): New.  Determine how best to insert edge stmts
3981         for a basic block.
3982         (perform_edge_inserts): New.  Determine what to do with all stmts that
3983         have been inserted on edges.
3984         (remove_ssa_form):  Analyze and commit edges from here.
3985
3986 2004-11-01  Andrew Pinski  <pinskia@physics.uc.edu>
3987
3988         PR bootstrap/18232
3989         * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
3990         (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
3991         (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
3992         (EXECUTE_IF_AND_IN_BITMAP): Likewise.
3993
3994 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
3995
3996         PR c/18239
3997         * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
3998         parameter declarations.
3999
4000 2004-11-01  Andreas Krebbel  <krebbel1@de.ibm.com>
4001
4002         * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
4003         (s390_secondary_input_reload_class)
4004         (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
4005         register.
4006         (s390_expand_cmpmem): Enable cmpmem implementation.
4007         * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
4008         Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
4009         (REG_CLASS_FROM_LETTER): New constraint 'c' added.
4010         * config/s390/s390.md ("movcc"): New insn pattern.
4011         * doc/md.texi: Document 'c' constraint for s390.
4012
4013 2004-11-01  Nathan Sidwell  <nathan@codesourcery.com>
4014
4015         PR c++/18064
4016         * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
4017         extension.
4018
4019 2004-10-16  Daniel Berlin  <dberlin@dberlin.org>
4020
4021         Fix PR tree-optimization/17672
4022         Fix PR tree-optimization/18168
4023
4024         * lambda-code.c (lambda_lattice_compute_base): Fix reversed
4025         assert test.
4026         (gcc_tree_to_linear_expression): Add extra to existing constant.
4027         (depth_of_nest): Factor out function used in various places.
4028         (gcc_loop_to_lambda_loop): Clean up code a little bit. No
4029         functional changes.
4030         (find_induction_var_from_exit_cond): Stop guessing, and just
4031         get the right answer :).
4032         (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
4033         Print out message about result of attempt to create perfect nest.
4034         (lbv_to_gcc_expression): Add type argument, use it to do math
4035         and induction variable creation.
4036         (lle_to_gcc_expression): Ditto.
4037         (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
4038         oldiv. Pass type argument to lle_to_gcc_expression and
4039         lbv_to_gcc_expression.
4040         Reset number of iterations after transformation.
4041         (perfect_nestify): Remove useless pre-allocation, and cleanup
4042         a small amount.
4043
4044         * tree-data-ref.c (build_classic_dist_vector): Return false for
4045         dependences completely outside of the loop nest we asked about.
4046         (build_classic_dir_vector): Ditto.
4047         (compute_data_dependences_for_loop): Only add dependence relations
4048         inside the loop we asked about.
4049
4050         * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
4051         Compute immediate uses.
4052
4053         * tree-optimize.c: Move linear_transform_loops to before ivcanon.
4054
4055 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
4056
4057         * tree-cfg.c (thread_jumps): Fix a comment typo.
4058
4059 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
4060
4061         * tree-cfg.c (thread_jumps): Fix a comment typo.
4062
4063 2004-10-31  Nicolas Pitre <nico@cam.org>
4064