OSDN Git Service

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