OSDN Git Service

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