OSDN Git Service

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