1 2004-12-05 Daniel Berlin <dberlin@dberlin.org>
3 * tree-ssa-alias.c (create_global_var): Use void_type_node,
6 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
8 * expr.c (expand_expr_real_1): Abort on COND_EXPR of
11 2004-12-05 Richard Henderson <rth@redhat.com>
14 * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
15 (builtin_setjmp_receiver_er_sl_1): Use it.
16 (builtin_setjmp_receiver_er_1): Likewise.
17 (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
18 (builtin_setjmp_receiver): Don't split for explicit relocs until
20 (exception_receiver): Likewise.
22 2004-12-05 Andrew Pinski <pinskia@physics.uc.edu>
24 * mklibgcc.in (vis_hide): Add the prototype for the test.
26 2004-12-05 Roger Sayle <roger@eyesopen.com>
28 * c-typeck.c (c_finish_loop): Improve initial implementations
29 for loops whose conditions are known at compile-time.
31 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
33 * builtins.c: Fix comment typos.
35 2004-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
39 the first/last insn is a sequence, return the first/last insn of the
43 * mklibgcc.in (vis_hide): Use implementation instead of declaration
46 2004-12-04 Richard Henderson <rth@redhat.com>
48 * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
49 use ofs in BWX two byte special case.
50 (alpha_expand_unaligned_store): Likewise.
52 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
54 * gcse.c (gcse_main): Add a comment.
56 2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
59 * builtins.c (fold_builtin_next_arg): Export and return true
60 when there is a warning or an error.
61 (expand_builtin_va_start): When fold_builtin_next_arg returns true,
63 (expand_builtin): Likewise.
64 * gimplify.c (gimplify_call_expr): Error out if there is not
65 enough arguments to va_start. Call fold_builtin_next_arg also
66 on the second argument.
67 * tree.h (fold_builtin_next_arg): Prototype.
69 2004-12-04 Alan Modra <amodra@bigpond.net.au>
71 * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
72 Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
73 SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
74 * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
75 shlib_dir and shlib_so_name.
76 * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
77 * config/t-libunwind-elf (SHLIB_NAME): Likewise.
78 * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
79 * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
80 * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
81 (SHLIB_LINK): Don't use shlib_dir when creating symlink.
83 2004-12-03 Roger Sayle <roger@eyesopen.com>
85 * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
87 2004-12-03 Richard Henderson <rth@redhat.com>
89 * alias.c (component_uses_parent_alias_set): Rename from
90 can_address_p. Return bool. Reverse the sense of the result.
91 Reinstate the check for alias set zero.
92 (get_alias_set): Update to match.
93 * alias.h (component_uses_parent_alias_set): Likewise.
94 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
95 * expr.c (expand_assignment): Likewise.
96 * expr.h: Remove commented out prototypes that were moved to alias.h.
98 2004-12-03 Richard Henderson <rth@redhat.com>
100 * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
101 (TARGET_CANNOT_FORCE_CONST_MEM): New.
103 2004-12-04 Alan Modra <amodra@bigpond.net.au>
106 * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
108 * sched-ebb.c (schedule_ebb): Likewise.
110 2004-12-03 Andreas Schwab <schwab@suse.de>
112 * Makefile.in (HOSTHOOKS_DEF_H): Define.
113 (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
114 (host-default.o): Likewise.
116 2004-12-03 Eric Christopher <echristo@redhat.com>
118 * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
119 pophi): Add number of arguments to name so that the
120 pattern is recognized as a named pattern.
122 2004-12-03 Janis Johnson <janis187@us.ibm.com>
124 * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
126 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch>
128 * config/rs6000/rs6000.c (rs6000_override_options): Protect
129 darwin_one_byte_bool with #if.
131 2004-12-03 Paolo Bonzini <bonzini@gnu.org>
133 * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
135 2004-12-03 H.J. Lu <hongjiu.lu@intel.com>
137 * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
139 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
141 * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
142 Set libstdcxx_incdir directly.
143 * configure: Regenerate.
145 2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
147 * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
148 "if" whose condition is always true.
150 * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
153 2004-12-02 Stan Shebs <shebs@apple.com>
155 * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
156 Darwin default to one-byte bools.
158 2004-12-02 Richard Henderson <rth@redhat.com>
161 * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
163 2004-12-03 Ben Elliston <bje@au.ibm.com>
165 * doc/cfg.texi (Edges): Update. Document the edge_iterator data
166 type and its methods.
168 2004-12-02 Richard Henderson <rth@redhat.com>
170 * expr.c (write_complex_part): Use simplify_gen_subreg when the
171 submode is at least as large as a word.
172 (read_complex_part): Likewise.
174 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
177 * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
178 multilib at a time. Don't build the default set. Don't add
179 EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
180 filter for shared libunwind and libgcc.
182 2004-12-02 Roger Sayle <roger@eyesopen.com>
185 * config/i386/i386.c (override_options): If -fomit-frame-pointer has
186 already been specified, ignore the -momit-leaf-frame-pointer option.
188 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
190 * varasm.c (make_decl_rtl): Add the missing `;'.
192 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
194 * tree.c (is_attribute_p): Split out to ..
195 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
196 of strlen and compare the string lengths before calling strcmp.
197 (lookup_attribute): Call is_attribute_with_length_p instead of
200 2004-12-02 Devang Patel <dpatel@apple.com>
202 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
203 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
204 * config/i386/darwin.h (CC1_SPEC): Same.
206 2004-12-02 Richard Henderson <rth@redhat.com>
208 * optabs.c (lowpart_subreg_maybe_copy): New.
209 (expand_unop, expand_abs_nojump): Use it.
211 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
213 * sh.md (extv, extzv): Add pattern predicate.
215 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
217 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
220 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
223 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
225 2004-12-02 Jeff Law <law@redhat.com>
227 * tree-eh.c: Revert yesterday's change.
229 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
231 * varasm.c (decode_reg_name): Revert change to check for zero
233 (make_decl_rtl): Make sure that we call decode_reg_name only
236 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
239 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
240 then and else labels.
242 2004-12-02 Andreas Schwab <schwab@suse.de>
244 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
245 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
246 (STAGE2_FLAGS_TO_PASS): Likewise.
248 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
250 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
252 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
253 now-redundant AC_SUBSTs.
254 * aclocal.m4: Include ../config/gcc-version.m4.
255 * configure: Regenerate.
257 2004-12-02 Alan Modra <amodra@bigpond.net.au>
259 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
260 #ifdef RELOCATABLE_NEEDS_FIXUP.
262 2004-12-01 Roger Sayle <roger@eyesopen.com>
265 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
266 Intel assembler syntax by using %A1 instead of %*%1.
268 2004-12-01 Richard Henderson <rth@redhat.com>
270 * expr.c (expand_assignment): Handle CONCAT both as a final
271 destination and as a middle point.
273 2004-12-01 Jeff Law <law@redhat.com>
275 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
276 (honor_protect_cleanup_actions): Only create save_eptr and
277 save_filt if they do not already exist.
278 (lower_eh_constructs): Wipe all knowledge of save_eptr and
279 save_filt before returning.
281 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
283 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
285 2004-12-02 Alan Modra <amodra@bigpond.net.au>
288 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
289 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
290 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
291 of target_flags_explicit.
292 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
293 case. Define as 0 for non-biarch.
295 2004-12-01 Zack Weinberg <zack@codesourcery.com>
297 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
298 Change temporary file tag from a prefix to an infix.
300 2004-12-02 Andreas Schwab <schwab@suse.de>
302 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
304 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
308 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
309 the statements if aliases_computed_p is true.
311 2004-12-01 Mark Mitchell <mark@codesourcery.com>
313 * Makefile.in (WERROR): New variable.
314 (STRICT2_WARN): Use it.
315 (STAGE2_FLAGS_TO_PASS): Likewise.
316 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
318 2004-12-01 Richard Henderson <rth@redhat.com>
320 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
323 2004-12-01 Diego Novillo <dnovillo@redhat.com>
325 PR tree-optimization/18291
326 * tree-ssa-copy.c (merge_alias_info): Fix merging of
327 flow-sensitive alias information. If the new pointer has no
328 name tag, copy it from the original pointer. Otherwise, make
329 sure that the pointed-to sets have a common intersection.
331 2004-12-01 Richard Henderson <rth@redhat.com>
334 * emit-rtl.c (gen_complex_constant_part): Remove.
335 (gen_realpart, gen_imagpart): Remove.
336 * rtl.h (gen_realpart, gen_imagpart): Remove.
337 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
338 gen_realpart/gen_imagpart.
339 * expr.c (write_complex_part, read_complex_part): New.
340 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
341 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
342 emit_move_multi_word): Split out from ...
343 (emit_move_insn_1): ... here.
344 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
345 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
346 * function.c (assign_parm_setup_reg): Hard-code transformations
347 instead of using gen_realpart/gen_imagpart.
349 * expr.c (optimize_bitfield_assignment_op): Split out from ...
350 (expand_assignment): ... here. Use handled_component_p to gate
351 get_inner_reference code. Simplify MEM handling. Special case
354 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
355 of gen_rtx_SUBREG directly.
357 2004-12-01 David Edelsohn <edelsohn@gnu.org>
358 Nathan Sidwell <nathan@codesourcery.com>
361 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
366 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
369 * params.c (set_param_value): Add range check.
370 * params.def: Add min and max values. Reformat long strings.
371 * params.h (struct param_info): Add min and max fields.
372 (enum compiler_param): Adjust DEFPARAM.
373 * toplev.c (lang_independent_params): Likewise.
375 2004-12-01 Alan Modra <amodra@bigpond.net.au>
378 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
380 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
382 * doc/standards.texi: Update for C99 TC2.
384 2004-11-30 Jeff Law <law@redhat.com>
386 * sbitmap.c (sbitmap_any_common_bits): New function.
387 * sbitmap.h (sbitmap_any_common_bits): Prototype.
388 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
389 No longer allocate/free "psp", "pss" sbitmaps.
390 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
392 (group_aliases): Similarly.
394 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
396 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
397 uninitialized variable.
399 2004-11-30 Eric Christopher <echristo@redhat.com>
401 * fold-const.c (fold_widened_comparison): Make sure that we're
402 passing an INTEGER_TYPE to int_fits_type_p.
403 (fold): Clean up comment.
405 2004-11-30 Zack Weinberg <zack@codesourcery.com>
407 * mklibgcc.in: Correct calculation of libgcc_s_soname and
408 libunwind_soname. Use $out, not $outS, in commands for
409 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
410 library build rules, make $libunwind_so and $libgcc_s_so
411 depend on them in the normal fashion, and filter those objects
414 2004-11-30 Janis Johnson <janis187@us.ibm.com>
416 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
418 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
421 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
422 pass right after fold builtins.
424 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
426 * config/s390/s390-modes.def: Added cc modes documentation.
427 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
428 s390_expand_addcc): Added cc mode comments.
429 * config/s390/s390.md: Removed old cc mode documentation.
431 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
433 * config/s390/s390.c (struct processor_costs): New data type.
434 (s390_cost, z900_cost, z990_cost): New global variables.
435 (override_options): Initialize s390_cost.
436 (s390_rtx_costs): Reimplement.
438 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
440 Fix PR tree-optimization/18673
442 * tree-ssa-pre.c: Remove splay-tree.h include.
443 (bitmap_value_replace_in_set): Fix to add if it does not exist.
444 (find_or_generate_expression): Remove now-wrong condition.
445 (create_expression_by_pieces): Fix condition and comment reason
447 (insert_aux): Fix condition and comment reasons for it.
448 Factor insertion code from here.
449 (insert_into_preds_of_block): To here. Fix conditions in factored
450 function and comment reasons for them.
452 2004-11-30 Ira Rosen <irar@il.ibm.com>
455 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
456 variable for data_reference when looking for memtag.
458 2004-11-30 Jakub Jelinek <jakub@redhat.com>
460 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
463 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
465 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
466 tree_low_cst instead of TREE_INT_CST_LOW.
468 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
471 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
472 decls that are assembled before vectorization takes place.
473 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
475 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
477 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
478 if local_alloc modified jumps.
480 2004-11-30 Alan Modra <amodra@bigpond.net.au>
482 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
484 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
487 2004-11-30 Zack Weinberg <zack@codesourcery.com>
489 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
490 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
492 * mklibgcc.in: Drastic restructure for comprehensibility.
493 Remove the old hidden-directive hack.
494 Eliminate support for .txt files in LIB2ADD etc (never used).
495 Eliminate support for assembly source files in LIB2ADDEH* and
496 LIBUNWIND (also never used).
497 Build up dependency lists for libraries incrementally.
498 If we have SHLIB_LINK, compile each file twice, once for the
499 static and once for the shared library; also probe for
500 -fvisibility=hidden in the generated libgcc.mk. If found,
501 pass that and -DHIDE_EXPORTS to the compilation of every C
502 source file going into the static library. If found, generate
503 hidden-directive lists for every assembly source file going
504 into the static library, but incorporate them with -include
506 Write comments into generated libgcc.mk to facilitate debugging.
507 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
508 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
510 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
513 2004-11-29 Richard Henderson <rth@redhat.com>
515 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
516 (handled_component_p): Likewise.
517 * alias.c (can_address_p): Reformat and simplify. Handle
518 REAL/IMAGPART_EXPR. Do not disable addressability based on
520 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
521 check for REAL/IMAGPART_EXPR.
522 * gimplify.c (gimplify_compound_lval): Likewise.
523 * tree-cfg.c (verify_expr): Likewise.
524 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
525 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
526 (convert_local_reference): Likewise.
527 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
529 2004-11-30 Alan Modra <amodra@bigpond.net.au>
531 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
533 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
536 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
537 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
538 and host_xmake_file using new host configuration files.
540 2004-11-29 Roger Sayle <roger@eyesopen.com>
542 * reg-stack.c (change_stack): Improve algorithm used to pop regs
543 off the stack to maximize ffreep usage and reduce fxch count.
545 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
548 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
551 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
553 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
554 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
556 2004-11-30 Ben Elliston <bje@au.ibm.com>
558 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
560 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
563 * c-common.c (handle_visibility_attribute): When the type decl
564 is really a identifier node, warn about being ignored and return.
566 2004-11-29 Richard Henderson <rth@redhat.com>
568 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
570 2004-11-29 Steven Bosscher <stevenb@suse.de>
572 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
573 Remove CASE_DROPS_THROUGH checks, it is never defined.
574 * cfglyout.c (fixup_reorder_chain): Likewise.
575 * cfgrtl.c (rtl_verify_flow_info): Likewise.
576 * stmt.c (expand_case): Likewise.
577 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
579 * system.h (CASE_DROPS_THROUGH): Poison.
580 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
581 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
583 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
585 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
588 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
591 2004-11-29 Diego Novillo <dnovillo@redhat.com>
593 PR tree-optimization/18712
594 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
595 WORK_STACK by reference.
596 Call VEC_safe_push instead of VEC_quick_push.
599 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
602 * Makefile.in (c-lang.o): Update dependencies.
603 * c-lang.c: Include "c-pragma.h".
604 (finish_file): Call maybe_apply_pending_pragma_weaks.
605 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
606 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
608 2004-11-29 Richard Henderson <rth@redhat.com>
611 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
612 outside the referenced object.
614 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
616 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
617 EDGE_PRED instead of PHI_ARG_EDGE.
618 * tree-ssa-live.c: Likewise.
619 * tree-ssa-loop-manip.c: Likewise.
620 * tree-ssa.c: Likewise.
622 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
623 simplifying edge manipulation.
625 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
628 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
631 * cfg.c (flow_obstack): Remove.
632 (flow_firstobj): Likewise.
633 (init_flow): Remove all uses of flow_obstack.
635 2004-11-29 Alan Modra <amodra@bigpond.net.au>
637 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
640 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
642 * opts.c (decode_options): Do not set max-inline-insns-rtl.
643 (common_handle_option): Likewise.
644 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
645 * params.h (MAX_INLINE_INSNS_RTL): Remove.
646 * doc/invoke.texi (max-inline-insns-rtl): Remove.
648 2004-11-29 Alan Modra <amodra@bigpond.net.au>
651 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
653 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
656 * gimplify.c (gimplify_asm_expr): If the length of an output operand
657 is zero, do not process it, just let it go through.
659 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
660 Diego Novillo <dnovillo@redhat.com>
662 PR/18662, also backported from tree-cleanup-branch.
663 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
664 always call maybe_clean_eh_stmt and modify_stmt.
666 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
669 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
670 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
671 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
672 add an inverse VIEW_CONVERT_EXPR to const_val.
675 * tree-nested.c (check_for_nested_with_variably_modified): New.
676 (create_nesting_tree): Call it.
678 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
679 special code for assigning to non-pointer.
680 (is_escape_site): If RHS is a conversion between pointer and integer
681 types, this is an escape site.
683 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
684 (store_motion): Don't move store if any edge we'd want to move it
687 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
688 non-zero lower bound.
690 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
692 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
695 * opts.c (find_opt): Require that the input match a switch exactly
696 or that the switch take a joined option to be interpreted as a
697 match for another language.
699 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
701 * timevar.def (TV_TREE_REDPHI): New timevar.
702 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
704 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
706 PR preprocessor/17651
707 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
708 flag_no_line_commands.
709 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
712 2004-11-28 Theodore A. Roth <troth@openavr.org>
714 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
715 warning if the function name does not begin with "__vector" and the
716 function has either the 'signal' or 'interrupt' attribute.
718 2004-11-28 Theodore A. Roth <troth@openavr.org>
720 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
721 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
722 atmega325, atmega3250, atmega645 and atmega6450.
723 * config/avr/avr.h (LINK_SPEC): Ditto.
725 (LIBGCC_SPEC): Ditto.
726 (CRT_BINUTILS_SPECS): Ditto.
727 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
729 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
731 PR preprocessor/17610
732 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
734 2004-11-28 Jeff Law <law@redhat.com>
736 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
737 (pass_maybe_create_global_var): New.
738 * tree-pass.h (pass_maybe_create_global_var): Declare.
739 * tree-optimize.c (init_tree_optimization_passes): Link in
740 pass_maybe_create_global_var.
742 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
744 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
746 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
748 PR rtl-optimization/18420
749 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
751 2004-11-28 Steven Bosscher <stevenb@suse.de>
752 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
754 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
755 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
756 that the case is in range, to make sure the casesi insn is always
757 in range and never falls through.
758 (casesi1): Add comment to explain why casesi never falls through.
759 Remove the unnamed special case casesi pattern.
761 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
764 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
765 "*movdicc_real". Only match reversible comparisons.
766 ("*movdicc_real_nonreversible"): New pattern, split from
767 "*movdicc_real". Match only nonreversible comparisons. Exclude
768 reversed alternatives.
769 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
772 2004-11-27 Richard Henderson <rth@redhat.com>
774 * config/ia64/ia64.md: Move all define_predicate's ...
775 * config/ia64/predicates.md: ... here. New file.
777 2004-11-27 Per Bothner <per@bothner.com>
780 Re-applied following, with two modifications: add a URL for the
781 fixed cctools; only exit if $build = $target.
783 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
784 * configure.ac (powerpc-*-darwin*): Require assembler to support
786 * configure: Regenerate.
788 2004-11-28 David Edelsohn <edelsohn@gnu.org>
791 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
792 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
793 Distinguish between SImode and DImode CONST_INT.
795 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
796 Alan Modra <amodra@bigpond.net.au>
799 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
800 functions, strings and thread-local vars.
802 2004-11-28 Alan Modra <amodra@bigpond.net.au>
804 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
805 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
806 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
807 to allow non-darwin ABIs to optimize away code.
808 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
810 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
812 * tree.c (operand_equal_for_phi_arg_p): New.
813 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
814 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
815 Replace operand_equal_p with operand_for_phi_arg_p
818 * bb-reorder.c (find_traces_1_round): Speed up by using
819 EDGE_COUNT instead of FOR_EACH_EDGE.
821 * fold-const.c, config/i386/linux64.h: Fix comment typos.
823 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
826 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
828 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
830 * config/i386/linux.h: Fix a comment typo.
831 * doc/extend.texi: Fix a typo.
833 2004-11-27 Jeff Law <law@redhat.com>
835 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
838 2004-11-27 Jakub Jelinek <jakub@redhat.com>
840 * config/i386/linux64.h (REG_NAME): Define.
842 2004-11-27 Jakub Jelinek <jakub@redhat.com>
844 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
845 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
846 and only afterwards convert to ctype.
848 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
850 * config/mips/mips-protos.h (function_arg_boundary): Declare.
851 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
852 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
853 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
854 * config/mips/mips.c (function_arg_boundary): New function.
855 Impose a maximum alignment of STACK_BOUNDARY.
857 2004-11-27 Jakub Jelinek <jakub@redhat.com>
859 PR rtl-optimization/17825
860 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
863 2004-11-27 Alan Modra <amodra@bigpond.net.au>
866 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
867 from rs6000_default_long_calls for libcalls.
869 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
871 * expmed.c (extract_bit_field): When extracting from non-integer mode,
872 force a SUBREG into a register because we may be taking a further
875 2004-11-27 Di-an Jan <dianj@freeshell.org>
877 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
879 2004-11-26 Robert Millan <robertmh@gnu.org>
881 Changes for k*bsd-gnu support.
882 * config/i386/linux.h: Define REG_NAME to allow overriding of
883 register names in sc structure.
884 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
886 * config.gcc: Detect x86_64-k*bsd-gnu systems.
888 2004-11-26 Jeff Law <law@redhat.com>
890 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
891 retrieve annotations or pointer info before it's necessary.
892 Reorder tests for early continue of the loop. Manually CSE
895 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
897 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
898 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
899 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
900 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
901 to a fixed reg if the source is the Return Address register.
902 Implement new Rule 15.
903 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
904 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
905 sparc_dwarf_handle_frame_unspec.
906 (gen_save_register_window): New function.
907 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
908 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
909 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
910 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
911 (sparc_asm_function_prologue): Do not emit call frame debugging info.
912 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
913 (sparc_expand_epilogue): Likewise.
914 (sparc_dwarf_handle_frame_unspec): New function.
915 * config/sparc/sparc.md (save_register_window): Remove.
916 (save_register_windowdi): Rewrite modelled on the callframe debug info.
917 (save_register_windowsi): Likewise.
919 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
921 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
922 BB_HEAD, not BLOCK_HEAD.
924 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
926 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
927 scratch insns that set a register live at the join point.
929 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
931 * cse.c, tree-ssa-operands.c: Fix comment typos.
933 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
935 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
938 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
940 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
942 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
943 check that tests if all edges go to the same destination.
945 * bitmap.c (bitmap_find_bit): Speed up by traversing from
946 head->first if that seems profitable.
948 2004-11-25 Jeff Law <law@redhat.com>
950 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
951 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
952 (pass_loop_done): Use TV_TREE_LOOP_FINI.
954 2004-11-26 Alan Modra <amodra@bigpond.net.au>
956 PR rtl-optimization/16356
957 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
958 separate output register and one less jump. Enable for powerpc64.
959 (floatdisf2): Adjust for above.
961 2004-11-25 Bob Wilson <bob.wilson@acm.org>
963 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
964 (GCC_DRIVER_HOST_INITIALIZATION): Define.
966 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
969 * tree-complex.c (vector_inner_type): New variable moved from
970 build_word_mode_vector_type.
971 (vector_last_type): Likewise.
972 (vector_last_nunits): Likewise.
973 (build_word_mode_vector_type): Use the new variables.
974 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
975 (GTFILES): Add tree-complex.c.
976 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
978 2004-11-25 Bob Wilson <bob.wilson@acm.org>
980 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
981 __XTENSA_WINDOWED_ABI__.
983 2004-11-25 Richard Henderson <rth@redhat.com>
985 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
986 args_size adjustments for calls even with cfa as stack pointer.
987 Search calls for stack adjustments after the insn is issued.
988 (dwarf2out_frame_debug): Add after_p argument; pass it on.
989 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
990 * final.c (final_start_function, final_scan_insn): Likewise.
992 2004-11-25 Richard Henderson <rth@redhat.com>
995 * reload1.c (set_initial_eh_label_offset): New.
996 (set_initial_label_offsets): Use it.
998 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
1000 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
1001 before calling life_analysis and release them after.
1003 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1005 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
1008 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1010 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
1011 BITMAP_OBSTACK_ALLOC.
1012 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
1014 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1016 parts of PR rtl-opt/18463, rtl-opt/17647
1017 * cse.c (canon_for_address): New function.
1018 (find_best_addr): Call canon_for_address before getting the
1019 address's cost when checking if we should take that address.
1021 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1023 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
1024 "tree *" as the first argument.
1025 * tree-flow.h: Update the prototype of add_phi_arg.
1026 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
1027 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1028 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
1029 tree-vectorizer.c: Update all call sites of add_phi_arg.
1031 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1033 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1034 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1035 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
1036 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
1038 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
1040 PR tree-optimization/18587
1041 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
1042 call clobbered caches as invalid.
1043 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
1044 indicating whether the call clobbered operand cache is valid.
1045 (ssa_ro_call_cache_valid): New. Flag indicating whether the
1046 pure/const call operand cache is valid.
1047 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
1048 list of operands for cached call virtual operands.
1049 (clobbered_aliased_loads, clobbered_aliased_stores,
1050 ro_call_aliased_load): New. flags caching whether alias bits are
1051 to be set in call stmt's.
1052 (fini_ssa_operands): Remove call operand caches if present.
1053 (get_expr_operands, get_asm_expr_operands,
1054 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
1055 (get_call_expr_operands): Add call clobbered variables first.
1056 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
1057 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
1058 if it is valid, otherise fill the cache.
1059 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
1060 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
1061 in_v_may_def_list bits.
1062 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
1063 in_list bits for the v_may_def elements and empty the operand
1065 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
1066 VUSES by checking the in_v_may_def_list bit.
1067 (append_v_may_def, append_vuse): Use the in_list bit rather than
1068 scanning the array for duplicates.
1070 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
1072 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
1073 displacements are not short.
1075 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
1077 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
1080 2004-11-25 Mark Mitchell <mark@codesourcery.com>
1083 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
1084 (lvalue_or_else): Declare.
1085 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
1086 * c-typeck.c (lvalue_use): Remove.
1087 (lvalue_or_else): Remove.
1090 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
1091 unemitted variables with static storage duration.
1093 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
1095 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
1098 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1100 * config/rs6000/altivec.md (VIshort): New mode macro.
1101 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
1103 (altivec_vaddu<VI_char>s): ... this.
1104 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
1106 (altivec_vadds<VI_char>s): ... this.
1107 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
1109 (altivec_vsubu<VI_char>s): ... this.
1110 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
1112 (altivec_vsubs<VI_char>s): ... this.
1113 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
1115 (altivec_vavgu<VI_char>): ... this.
1116 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
1118 (altivec_vavgs<VI_char>): ... this.
1119 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
1120 (altivec_vmsumu<VI_char>m): ... this.
1121 (altivec_vmsummbm, altivec_vmsummhm): Replace
1123 (altivec_vmsumm<VI_char>m): ... this.
1124 (altivec_vandc): Remove.
1125 (*andc<mode>3): Renamed to ...
1126 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
1127 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
1129 (altivec_vrl<VI_char>): ... this.
1130 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
1132 (altivec_vsl<VI_char>): ... this.
1133 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
1135 (altivec_vsr<VI_char>): ... this.
1136 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
1138 (altivec_vsra<VI_char>): ... this.
1139 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
1140 (altivec_vsum4s<VI_char>s): ... this.
1141 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
1143 (altivec_vperm_<mode>): ... this.
1144 (altivec_vsel_4sf): Rename to ...
1145 (altivec_vsel_v4sf): ... here.
1146 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
1148 (altivec_vsel_<mode>): ... this.
1149 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
1150 altivec_vsldoi_16qi): Rename to ...
1151 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
1152 altivec_vsldoi_v16qi): ... here.
1153 (altivec_vsldoi_4sf): Rename to ...
1154 (altivec_vsldoi_v4sf): ... here.
1155 (altivec_predicate_v4si, altivec_predicate_v8hi,
1156 altivec_predicate_v16qi): Replace with ...
1157 (altivec_predicate_<mode>): ... this.
1158 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
1160 (altivec_lve<VI_char>x): ... this.
1161 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
1163 (altivec_stve<VI_char>x): ... this.
1164 (absv16qi2, absv8hi2, absv4si2): Replace
1166 (abs<mode>2): ... this.
1167 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
1169 (altivec_abss_<mode>): ... this.
1170 (vec_realign_load_v16qi, vec_realign_load_v8hi,
1171 vec_realign_load_v4si): Replace with ...
1172 (vec_realign_load_<mode>): ... this.
1173 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
1175 (rs6000_expand_ternop_builtin): Likewise.
1177 2004-11-25 Andrew Haley <aph@redhat.com>
1179 * gcc.c (process_command): Don't supply -v to linker.
1181 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
1183 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
1184 instead of `%s' in diagnostic.
1186 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1188 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
1189 (FREE_REG_SET): Adjust.
1190 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
1191 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
1192 (BITMAP_ALLOC): ... here.
1193 (BITMAP_OBSTACK_FREE): Rename to ...
1194 (BITMAP_FREE): Don't check for NULL bitmap here.
1195 * tree-ssa-pre.c (value_insert_into_set_bitmap,
1196 bitmap_set_new): Use new names.
1198 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
1199 * df.c (df_free): Likewise.
1200 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
1201 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
1203 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
1204 (ALLOC_REG_SET): ... here.
1205 (FREE_REG_SET): Adjust.
1206 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
1207 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
1208 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
1209 * cfgrtl.c (rtl_split_block, rtl_split_edge,
1210 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
1211 * flow.c (update_life_info, calculate_global_regs_live,
1212 allocate_bb_life_data, init_propagate_block_info): Adjust.
1213 * global.c (build_insn_chain): Adjust.
1214 * ifcvt.c (dead_or_predicable): Adjust.
1215 * loop-iv.c (simplify_using_initial_values): Adjust.
1216 * recog.c (peephole2_optimize): Adjust.
1217 * sched-deps.c (init_deps_global): Adjust.
1219 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
1221 * config.gcc (avr-*-rtems*): Fix typo.
1223 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
1225 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
1227 2004-11-24 Jeff Law <law@redhat.com>
1229 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
1230 the number of queries to random elements in the ai->written_vars
1233 2004-11-24 Roger Sayle <roger@eyesopen.com>
1235 * config/i386/i386.c (override_options): Disable x87 fancy math
1236 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
1238 2004-11-24 Roger Sayle <roger@eyesopen.com>
1240 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
1241 system header conflict on AIX 5.2.
1242 * configure: Regenerate.
1244 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1246 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
1247 instead of calling phi_arg_from_edge.
1249 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
1252 2004-11-24 Ben Elliston <bje@au.ibm.com>
1254 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
1255 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
1256 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
1259 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1261 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
1263 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
1264 type will be remapped.
1266 2004-11-24 Steven Bosscher <stevenb@suse.de>
1268 * c-opts.c (c_common_post_options): Don't clear
1269 flag_inline_functions.
1270 * dojump.c (clear_pending_stack_adjust): Remove check on
1271 flag_inline_functions, it's always true.
1272 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
1273 that can never trigger.
1274 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
1275 flag_inline_trees, now that flag_inline_functions is never
1277 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
1278 flag_inline_functions at optimization levels greater than
1279 or equal to 3. This is already done by default.
1281 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1283 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
1284 instead to find the PHI argument. Do not take I as an
1286 (eliminate_phi): Adjust the call to eliminate_build. Do not
1287 take I as an argument.
1288 (rewrite_trees): Adjust the call to eliminate_phi.
1290 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
1292 * optabs.h (force_expand_binop): Declare.
1293 * optabs.c (force_expand_binop): Export.
1294 * stmt.c (shift_return_value): Delete.
1295 (expand_return): Don't call it.
1296 * expr.h (shift_return_value): Declare.
1297 * calls.c (shift_returned_value): Delete in favor of...
1298 (shift_return_value): ...this new function. Leave the caller to check
1299 for non-BLKmode values passed in the msb of a register. Take said mode
1300 and a shift direction as argument. Operate on the hard function value,
1302 (expand_call): Adjust accordingly.
1303 * function.c (expand_function_start): If a non-BLKmode return value
1304 is padded at the last significant end of the return register, use the
1305 return value's natural mode for the DECL_RESULT, not the mode of the
1307 (expand_function_end): Shift the same sort of return values left by
1308 the appropriate amount.
1310 2004-11-24 Matt Austern <austern@apple.com>
1312 * recog.c (recog_memoized_1): Remove.
1313 * recog.h (recog_memoized_1): Remove declaration.
1314 (recog_memoized): Change from macro to inline function.
1316 2004-11-24 Devang Patel <dpatel@apple.com>
1319 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
1320 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
1322 2004-11-24 Devang Patel <dpatel@apple.com>
1324 * gcc.c (process_command): Supply -v to linker.
1326 2004-11-24 David Edelsohn <edelsohn@gnu.org>
1327 Paolo Bonzini <bonzini@gnu.org>
1329 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
1330 vector modes without ALTIVEC_ABI. Use GCC vector instead of
1332 (rs6000_pass_by_reference): Split conditional into pieces. Use
1333 GCC vector instead of synthetic vector.
1335 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
1337 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
1338 thread-local variable is invariant.
1340 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1342 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
1343 Handle TYPE_REF_CAN_ALIAS_ALL.
1344 (print_declaration): Print array dimensions like dump_generic_node.
1346 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
1347 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
1349 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
1351 * bitmap.c (INLINE): Do not define.
1352 (bitmap_elem_to_freelist, bitmap_element_free,
1353 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
1354 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
1356 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1358 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
1359 find the index of a PHI argument. Use e->dest_idx instead.
1360 Replace hint with index.
1362 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
1365 2004-11-24 Diego Novillo <dnovillo@redhat.com>
1367 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
1368 regarding PT_MALLOC.
1370 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1372 * config/i386/i386.c (optimization_options): Use
1373 SUBTARGET_OPTIMIZATION_OPTIONS.
1374 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
1375 (TARGET_SUBTARGET_DEFAULT): Don't include
1376 MASK_OMIT_LEAF_FRAME_POINTER.
1378 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1380 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
1383 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1385 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
1386 Use amd64 instead of 64.
1388 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1389 Joseph Myers <joseph@codesourcery.com>
1391 * crtstuff.c (IN_LIBGCC2): Define it.
1392 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
1393 instead of HAVE_LD_RO_RW_SECTION_MIXING.
1394 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
1395 * dwarf2out.c (named_section_eh_frame_section): Check
1396 EH_TABLES_CAN_BE_READ_ONLY.
1397 * except.c (default_exception_section): Likewise.
1398 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
1399 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
1401 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1403 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
1404 index of a PHI argument.
1406 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
1407 find_edge to find the index of a PHI argument.
1409 2004-11-24 Steven Bosscher <stevenb@suse.de>
1411 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
1412 and LABELED_BLOCK_EXPR.
1413 * gimplify.c (gimplify_labeled_block_expr): Remove.
1414 (gimplify_exit_block_expr): Remove.
1415 (gimplify_expr): Don't call them.
1416 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
1417 and LABELED_BLOCK_EXPR.
1418 (estimate_num_insns_1): Likewise.
1419 (walk_tree): Likewise.
1420 * tree-pretty-print.c (dump_generic_node): Don't handle
1421 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
1422 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
1423 (LABELED_BLOCK_EXPR): Likewise.
1424 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
1425 (LABELED_BLOCK_BODY): Likewise.
1426 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
1427 (EXIT_BLOCK_RETURN): Removed.
1429 2004-11-24 Steven Bosscher <stevenb@suse.de>
1431 * cfgrtl.c (rtl_delete_block): Fix comment.
1432 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
1433 or BLOCK_END insn notes.
1434 * jump.c (squeeze_notes): Likewise.
1435 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
1436 EH_REGION_END notes, we never have them to begin with.
1437 * sched-deps.c (sched_analyze_insn): When updating loop notes,
1438 verify that we have indeed only recorded loop notes.
1439 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
1440 Only record loop notes.
1442 * cfgexpand.c (tree_expand_cfg): Fix comment.
1444 * passes.c (rest_of_compilation): Don't do a second call to
1445 convert_from_eh_region_ranges from here, it's already called
1447 * except.c (resolve_fixup_regions): Remove.
1448 (remove_fixup_regions): Remove.
1449 (convert_from_eh_region_ranges_1): Remove.
1450 (convert_from_eh_region_ranges): Remove the case where EH is
1451 not already lowered at the tree level. We always lower there.
1453 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
1456 * tree.c (make_vector_type): Move qualifiers to the vector type,
1457 use the inner type's main variant and build a main variant for
1458 the vector type if necessary.
1459 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
1461 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1463 * target.h (late_rtl_prologue_epilogue): Remove.
1464 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1465 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
1466 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
1467 remaining bits to...
1468 (rest_of_handle_flow2): ...here.
1469 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
1470 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1472 2004-11-23 Mark Mitchell <mark@codesourcery.com>
1474 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
1475 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
1476 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
1478 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
1480 * config/i386/i386.c (override_options): Move
1481 SUBTARGET_OVERRIDE_OPTIONS before defaulting
1482 flag_omit_frame_pointer.
1484 2004-11-23 Richard Henderson <rth@redhat.com>
1486 * rtl.h (validate_subreg): Declare.
1487 * emit-rtl.c (validate_subreg): New.
1488 (gen_rtx_SUBREG): Use it.
1489 * simplify-rtx.c (simplify_subreg): Likewise.
1490 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
1491 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
1492 fallback whenever gen_realpart/gen_imagpart would not be able to
1495 2004-11-23 Richard Henderson <rth@redhat.com>
1497 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
1498 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
1501 2004-11-23 Diego Novillo <dnovillo@redhat.com>
1503 PR tree-optimization/18618
1504 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
1505 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
1506 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
1508 (stmts_to_rescan): Likewise.
1509 (const_and_copies_stack): Likewise.
1510 (nonzero_vars_stack): Likewise.
1511 (vrp_variables_stack): Likewise.
1513 2004-11-23 Richard Henderson <rth@redhat.com>
1515 * cse.c (record_jump_cond_subreg): New.
1516 (record_jump_cond): Use it instead of gen_lowpart.
1518 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
1519 Joseph Myers <joseph@codesourcery.com>
1521 * config/sol2-c.c (solaris_register_pragmas): Use
1522 c_register_pragma_with_expansion.
1523 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
1524 * c-pragma.c (c_register_pragma): Update call to
1525 cpp_register_pragma.
1526 (c_register_pragma_with_expansion): New function.
1527 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
1528 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
1529 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
1531 * doc/tm.texi (c_register_pragma_with_expansion,
1532 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
1534 2004-11-23 Richard Henderson <rth@redhat.com>
1536 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
1537 as mode sizes into local temporaries. Unify failure path.
1539 2004-11-23 Richard Henderson <rth@redhat.com>
1541 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
1542 * caller-save.c (mark_set_regs): Use subreg_regno instead.
1543 * final.c (alter_subreg): Likewise.
1544 * local-alloc.c (reg_is_born): Likewise.
1546 2004-11-23 Richard Henderson <rth@redhat.com>
1548 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
1549 instead of using a SUBREG temporary.
1551 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1553 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
1556 2004-11-23 Zack Weinberg <zack@codesourcery.com>
1558 * function.h (struct function): Remove calls_longjmp.
1559 (current_function_calls_longjmp): Delete.
1560 * tree.h (ECF_LONGJMP): Delete.
1561 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
1562 (ECF_LIBCALL_BLOCK): Everybody slide down one.
1563 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
1564 * builtins.c (expand_builtin_longjmp): Don't set
1565 current_function_calls_longjmp.
1566 * calls.c (special_function_p): Mark longjmp and siglongjmp
1567 with ECF_NORETURN, not ECF_LONGJMP.
1568 (emit_call_1, expand_call, emit_library_call_value_1):
1569 Don't check for ECF_LONGJMP.
1570 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
1571 (need_fake_edge_p): Likewise.
1573 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
1574 * system.h: Poison NON_SAVING_SETJMP.
1575 * function.c (use_register_for_decl)
1576 * gcse.c (compute_hash_table_work, compute_store_table)
1577 * postreload-gcse.c (record_opr_changes)
1578 * reload.c (find_equiv_reg)
1579 * reload1.c (reload)
1580 * config/i386/i386.c (ix86_can_use_return_insn_p):
1581 Remove code conditional on NON_SAVING_SETJMP.
1582 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
1584 * config/i386/sysv3.h: Delete file.
1585 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
1587 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1589 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
1590 the vectorization factor is greater than the iteration count.
1591 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
1592 iteration count is known.
1594 (vect_build_symbol_bound): Removed. Its functionality moved to
1595 vect_generate_tmps_on_preheader.
1596 (vect_generate_tmps_on_preheader): Moved content of
1597 vect_build_symbol_bound here instead of calling it. Changed some
1600 (vect_build_loop_niters): We don't expect a new_bb to be generated -
1602 (vect_gen_niters_for_prolog_loop): Likewise.
1603 (vect_gen_niters_for_prolog_loo): Likewise.
1605 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
1606 (slpeel_add_loop_guard): Likewise.
1607 (slpeel_tree_peel_loop_to_edge): Likewise.
1608 (vect_do_peeling_for_alignment): Likewise.
1610 (vect_get_first_index): Missing space.
1612 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
1614 * config/s390/s390.md ("*iordi3"): Mark commutative.
1615 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
1617 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1619 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
1620 greater than PHI_ARG_CAPACITY.
1621 (reserve_phi_args_for_new_edge): Initialize the new PHI
1622 argument to NULL_TREE. Increment PHI_NUM_ARGS.
1623 (add_phi_arg): Add a PHI argument to the slot given by
1625 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
1626 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
1627 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
1628 argument by looking at PHI_ARG_DEF.
1629 (verify_phi_args): Check for a missing PHI argument. Remove
1630 the check for duplicate PHI arguments.
1631 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
1632 (phi_arg_d): Remove e.
1634 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
1635 by restricting to the case with two outgoing edges.
1637 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
1639 * config/s390/s390.c (s390_backchain_string): Removed.
1640 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
1641 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
1642 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
1643 TARGET_KERNEL_BACKCHAIN to reflect the new options.
1644 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
1645 (TARGET_KERNEL_BACKCHAIN): Removed.
1646 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
1647 (TARGET_PACKED_STACK): New macro.
1648 (TARGET_SWITCHES): New switches added.
1649 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
1651 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
1652 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
1653 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
1654 the change in target switch semantics.
1655 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
1656 (TARGET_DEFAULT): MASK_BACKCHAIN added.
1657 * doc/invoke.texi: Added documentation for the new/changed options.
1659 2004-11-23 Uros Bizjak <uros@kss-loka.si>
1661 PR rtl-optimization/18614
1662 * simplify-rtx.c (simplify_binary_operation): Do not
1663 simplify inner elements of constant arguments of
1666 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1668 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
1671 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1673 * tree-phinode.c (make_phi_node): Use a new variable,
1674 capacity, to receive the return value of ideal_phi_node_len.
1676 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1678 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
1679 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
1680 __gthread_recursive_mutex_init_function.
1681 (__gthread_key_create): Properly cast -1.
1682 (__gthread_recursive_mutex_init_function): New function.
1683 (__gthread_recursive_mutex_lock): Rewrite.
1684 (__gthread_recursive_mutex_trylock): Likewise.
1685 (__gthread_recursive_mutex_unlock): Likewise.
1687 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1689 * config/c4x/t-rtems: New.
1690 * config.gcc: Reflect having added c4x/t-rtems.
1692 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1696 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
1697 lang_hooks.types.type_for_size instead of integer_type_node for the
1700 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1702 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
1704 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1706 * config/arm/t-rtems: New.
1707 * config.gcc: Reflect having added arm/t-rtems.
1709 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1711 * tree-cfg.c (tree_execute_on_growing_pred): New.
1712 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
1713 * tree-flow.h: Add a prototype for
1714 reserve_phi_args_for_new_edge.
1715 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
1716 (add_phi_arg): Don't resize a PHI array.
1718 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1720 * config.gcc: Add avr-*-rtems*.
1721 * config/avr/t-rtems: New.
1722 * config/avr/rtems.h: New.
1724 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1726 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
1727 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
1728 Add comment to function.
1730 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1733 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
1735 PR rtl-optimization/14838
1736 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
1738 (get_last_nonnote_insn): Don't assume last insn is a note.
1740 2004-11-22 Roger Sayle <roger@eyesopen.com>
1742 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
1743 to fold_binary_to_constant.
1744 (nondestructive_fold_unary_to_constant): Likewise, rename to
1745 fold_unary_to_constant.
1746 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
1747 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
1748 (nondestructive_fold_unary_to_constant): Likewise.
1749 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
1750 and fold_binary_to_constant.
1751 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1752 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
1753 and EXEC_UNARY with calls to fold_*nary_to_constant.
1754 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1755 (idx_find_step): Replace uses of EXEC_BINARY with calls to
1756 fold_binary_to_constant.
1758 2004-11-22 Nick Clifton <nickc@redhat.com>
1760 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1761 initialisation of 'e'.
1763 2004-11-22 Roger Sayle <roger@eyesopen.com>
1765 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
1766 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
1767 automatically for targets without TARGET_80387.
1768 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
1769 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
1770 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
1771 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
1772 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
1773 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
1774 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
1775 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
1776 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
1777 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
1778 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
1779 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
1780 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
1781 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
1782 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
1783 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
1784 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
1785 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
1786 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
1787 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
1789 2004-11-22 Dale Johannesen <dalej@apple.com>
1791 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
1792 properly and comment.
1794 2004-11-22 James A. Morrison <phython@gcc.gnu.org
1796 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
1797 (sparc_init_builtins): New function.
1798 (sparc_init_vis_builtins): Create builtin functions for VIS
1800 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
1801 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
1802 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
1803 (def_builtin): New macro for creating builtin functions.
1804 (P): New mode macro for pointer types.
1805 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
1806 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
1807 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
1808 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
1809 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1810 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
1811 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
1813 2004-11-22 Devang Patel <dpatel@apple.com>
1815 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
1817 2004-11-22 Devang Patel <dpatel@apple.com>
1819 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
1820 (if_convertible_phi_p): ... new name.
1821 (if_convertable_modify_expr_p): Rename to ...
1822 (if_convertible_modify_expr_p): ... new name.
1823 (if_convertable_stmt_p): Rename to ...
1824 (if_convertible_stmt_p): ... new name.
1825 (if_convertable_bb_p): Rename to ...
1826 (if_convertible_bb_p): ... new name.
1827 (if_convertable_loop_p): Rename to ...
1828 (if_convertible_loop_p): ... new name.
1830 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1833 * configure.ac (threading): Accept 'posix95'.
1834 * configure: Regenerate.
1835 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
1836 include sol26.h and default to posix95 threads if have_pthread_h.
1837 (sparc-*-solaris2*): Likewise.
1838 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
1839 * gthr-posix95.h: New file.
1840 * config/sol26.h: New file.
1841 * doc/install.texi (--enable-threads): Document 'posix95'.
1843 2004-11-23 Ben Elliston <bje@au.ibm.com>
1845 * pointer-set.h (pointer_set_contains): Remove.
1846 * pointer-set.c (pointer_set_contains): Likewise.
1848 2004-11-22 Dale Johannesen <dalej@apple.com>
1850 * calls.c (expand_call): Do not call preserve_temp_slots.
1852 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1854 * tree-flow.h: Remove the prototype for remove_phi_arg.
1855 Add a prototype for remove_phi_args.
1856 * tree-phinodes.c (remove_phi_arg): Remove.
1857 (remove_phi_args): New.
1858 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
1861 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
1862 after making an edge.
1863 (remove_edge): Call execute_on_shrinking_pred before removing
1865 (redirect_edge_succ): Call execute_on_growing_pred and
1866 execute_on_shrinking_pred.
1867 * cfghooks.c (execute_on_growing_pred): New.
1868 (execute_on_shrinking_pred): Likewise.
1869 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
1870 execute_on_shrinking_pred.
1871 Add prototypes for execute_on_growing_pred and
1872 execute_on_shrinking_pred.
1873 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
1874 execute_on_growing_pred and execute_on_shrinking_pred.
1875 (cfg_layout_rtl_cfg_hook): Likewise.
1876 * tree-cfg.c (tree_cfg_hooks): Likewise.
1878 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
1879 (tree_cfg_hooks): Use it.
1880 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
1881 (ssa_redirect_edge): Don't call remove_phi_arg_num.
1883 * tree-phinodes.c (remove_phi_arg_num): Make it static.
1884 * tree-flow.h: Remove the corresponding prototype.
1886 * tree-ssa.c (ssa_remove_edge): Remove.
1887 * tree-flow.h: Remove the corresponding prototype.
1888 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
1889 * basic-block.h: Likewise.
1890 * tree-if-conv.c: Likewise.
1891 * tree-ssa-threadupdate.c: Likewise.
1893 2004-11-23 Ben Elliston <bje@au.ibm.com>
1895 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
1896 @table to list the BSI methods. Use individual @findex directives
1897 instead of one with a comma-separated list of index entries.
1899 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
1901 PR tree-optimization/18529
1902 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
1903 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
1904 (fold): Call fold_to_nonsharp_ineq_using_bound.
1905 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
1906 (number_of_iterations_cond): Fold the expressions before futher
1908 (tree_simplify_using_condition): Handle case when cond or expr is
1909 an EQ_EXPR specially.
1911 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1913 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
1914 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
1916 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1917 Fariborz Jahanian <fjahanian@apple.com>
1919 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
1921 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
1922 Align 16 byte and larger vectors like Altivec.
1923 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
1924 (function_arg): Same.
1925 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
1927 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1930 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
1933 2004-11-22 Richard Henderson <rth@redhat.com>
1935 * function.c (assign_parm_setup_block): Revert 11-13 change to
1936 forcably re-mode a (possibly BLKmode) hard register.
1938 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1940 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
1942 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1944 * config/rs6000/power4.md: Remove delay between dispatch and issue
1945 associated with dispatch group slots 3 and 4.
1946 * config/rs6000/power5.md: Same.
1948 2004-11-21 Jeff Law <law@redhat.com>
1950 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
1952 * cfgbuild.c (make_edges): Likewise.
1953 * cfghooks.c (can_duplicate_block_p): Likewise.
1954 * cfgloop.c (loop_latch_edge): Likewise.
1955 * cfgloopmanip.c (force_single_succ_latches): Likewise.
1956 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1957 * predict.c (predict_loops, propagate_freq): Likewise.
1958 * tracer.c (tail_duplicate): Likewise.
1959 * tree-cfg.c (disband_implicit_edges): Likewise.
1960 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
1962 2004-11-22 Nick Clifton <nickc@redhat.com>
1964 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1965 initialisation of 'e'.
1967 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1969 PR rtl-optimization/18599
1970 * regrename.c (copyprop_hardreg_forward): Speed up by putting
1971 BB_VISITED flags on basic blocks as we process them.
1973 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1976 * config/rs6000/altivec.md (VI_char): New mode attribute.
1977 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
1978 (add<mode>3): ... this.
1979 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
1980 (sub<mode>3): ... this.
1981 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
1982 (smax<mode>3): ... this.
1983 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
1984 (smin<mode>3): ... this.
1985 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
1986 (umax<mode>3): ... this.
1987 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
1988 (umin<mode>3): ... this.
1989 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1990 (and<mode>3): ... this.
1991 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1992 (ior<mode>3): ... this.
1993 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
1994 (xor<mode>3): ... this.
1995 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1996 (and<mode>3): ... this.
1997 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1998 (ior<mode>3): ... this.
1999 (altivec_vnor): Replace with ...
2000 (altivec_nor<mode>): ... this.
2001 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
2002 (one_cmpl<mode>2): ... this.
2003 (altivec_vandc): New expander.
2004 (*andc<mode>3): New insn.
2005 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
2007 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
2010 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
2011 creating iv instead of integer_type.
2012 (vect_build_loop_niters): Remove redundant code.
2013 (vect_transform_loop_bound): Removed (duplicates functionality of
2014 make_loop_iterate_ntimes.
2015 (vect_gen_niters_for_prolog_loop): Add documentation. Call
2016 lang_hooks.types.type_for_size to create a type of the required size.
2017 Use that type instead of integer_type. Remove redundant code.
2018 (vect_update_niters_after_peeling): Use type of niters instead of
2020 (vect_transform_loop): Unify handling of known and unknown loop bound
2021 cases. Call make_loop_iterate_ntimes instead of
2022 vect_transform_loop_bound.
2024 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2027 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
2030 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
2033 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
2035 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2037 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
2039 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
2040 m32r/libgcc-glibc.ver.
2041 * config/m32r/libgcc-glibc.ver: Add New file.
2043 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
2045 * bitmap.h (struct bitmap_obstack): New obstack type.
2046 (struct bitmap_head_def): Replace using_obstack with obstack
2048 (bitmap_default_obstack): New.
2049 (bitmap_initialize): Make inline, does not do allocation.
2050 (bitmap_release_memory): Remove.
2051 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
2052 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2053 bitmap_obstack_free, bitmap_malloc_free): Declare.
2054 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
2055 (BITMAP_FREE): Replace with ...
2056 (BITMAP_OBSTACK_FREE): ... this.
2057 (BITMAP_XFREE): Adjust.
2058 (BITMAP_INIT_ONCE): Remove.
2059 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
2060 (bitmap_default_obstack): New.
2061 (bitmap_elem_to_freelist): Adjust.
2062 (bitmap_element_allocate): Adjust. Break initialization into ...
2063 (bitmap_obstack_initialize): ... here.
2064 (bitmap_release_memory): Replace with ...
2065 (bitmap_obstack_release): ... this.
2066 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2067 bitmap_obstack_free, bitmap_malloc_free): New.
2068 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
2070 (bitmap_initialize): Move to bitmap.h.
2071 * gengtype.c (open_base_files): Add obstack.h to ifiles.
2072 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
2073 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
2074 (INITIALIZE_REG_SET): Remove.
2075 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
2076 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
2077 (flow_obstack): Do not declare.
2078 (reg_obstack): Declare.
2079 * regs.h: Include obstack.h.
2080 * tree-optimize.c (tree_rest_of_compilation): Initialize and
2081 release bitmap obstack here.
2082 * bb-reorder.c: #include regs, not basic-block.
2083 (fix_crossing_conditional_branches): Allocate regsets from
2085 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
2087 * caller-save.c: Include regs.h earlier.
2088 * cfg.c: Do not include basic-block.h or obstack.h.
2089 (reg_obstack): Define.
2090 * cfganal.c: Include obstack.h
2091 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
2093 * cfglayout.c: Do not include obstack.h.
2094 (flow_obstack): Remove declaration.
2095 (cfg_layout_duplicate_bb): Use reg_obstack.
2096 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
2097 * cfgrtl.c (rtl_split_block): Use reg_obstack.
2098 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
2099 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
2100 (cfg_layout_split_edge): Use reg_obstack.
2101 * cse.c: Include regs.h earlier.
2102 * ddg.c: Do not include basic-block.h.
2103 * dominance.c: Inlude obstack.h.
2104 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
2105 (calculate_global_regs_live): Likewise.
2106 (allocate_bb_life_data): Use reg_obstack.
2107 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
2108 * global.c: Do not include basic-block.h.
2109 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
2110 * graph.c: Include obstack.h.
2111 * haifa-sched.c: Do not include basic-block.h.
2112 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
2113 * local-alloc.c: Do not include basic-block.h.
2114 * loop-init.c, loop-invariant.c: Include obstack.h.
2115 * loop-iv.c: Likewise.
2116 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
2118 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
2119 * modulo-sched.c: Do not include basic-block.h.
2120 * passes.c (rest_of_handle_final): Do not call
2121 regset_release_memory.
2122 * ra-debug.c: Include regs.h earlier. Do not include
2124 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
2125 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
2126 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
2127 (regset_release_memory): Remove.
2128 * resource.c: Do not include basic-block.h.
2129 * rtlanal.c: Do not include basic-block.h.
2130 * sbitmap.c: Include obstack.h.
2131 * sched-deps.c: Do not include basic-block.h.
2132 (reg_pending_sets_head, reg_pending_clobbers_head,
2133 reg_pending_uses_head): Remove.
2134 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
2135 * sched-ebb.c: Do not include basic-block.h.
2136 * sched-rgn.c: Likewise.
2137 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
2139 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
2140 * tree-sra.c (decide_instantiations): Adjust bitmap
2142 * tree-ssa-dce.c: Include obstack.h.
2143 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
2144 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
2145 (bitmap_set_new): Likewise.
2146 (init_pre): Initialize bitmap obstack.
2147 (fini_pre): Release bitmap obstack.
2148 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
2149 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
2150 (mark_for_rewrite, unmark_for_rewrite): Likewise.
2151 (marked_ssa_names): Likewise.
2152 (init_ssanames): Use BITMAP_XMALLOC.
2153 (fini_ssanames): Use BITMAP_XFREE.
2154 * web.c: Include obstack.h
2156 2004-11-22 Nick Clifton <nickc@redhat.com>
2158 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
2159 predecessor in the first for-loop.
2161 2004-11-21 Stan Shebs <shebs@apple.com>
2163 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
2165 (function_arg): Move darwin test up, sniff mode first for
2166 efficiency, test for union type.
2168 2004-11-21 Dale Johannesen <dalej@apple.com>
2170 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
2172 2004-11-21 Jeff Law <law@redhat.com>
2174 * tree-ssa.c (verify_use): Fix comment.
2175 (verify_phi_args): Check that the number of incoming edges matches
2176 the number of PHI arguments. Check that each PHI argument is
2177 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
2178 dead or duplicated edges. Clear e->aux earlier and avoid separate
2179 loop to clear e->aux and test for missed edges.
2180 (verify_ssa): Remove first walk over statements. Move checking
2181 of PHI args into verify_phi_args. Move checking of statements
2182 with aliased stores and V_MAY_DEFS into the remaining loop over
2183 the statements. Register defs by walking through the formal
2186 2004-11-21 Roger Sayle <roger@eyesopen.com>
2189 * dojump.c (compare_from_rtx): Clarify mode argument in function
2190 description. Correct order of mode/cmp_mode arguments in call to
2191 simplify_relational_operation. Check "tem" for COMPARISON_P.
2193 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
2194 David Edelsohn <edelsohn@gnu.org>
2197 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
2198 synthetic vectors in memory.
2199 (function_arg_boundary): Align large synthetic vectors.
2200 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
2202 2004-11-21 Jeff Law <law@redhat.com>
2204 * cfg.c (update_bb_profile_for_threading): Do not rescale the
2205 successor probabilities if they are not going to change. Pull
2206 division out of loop if we do need to rescale successor probabilities.
2208 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
2209 index of the destination block for the hash value rather than
2212 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
2214 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
2215 checks for neither argument being an array or pointer (swapping
2216 the arguments if necessary), the array argument being a pointer to
2217 or array of functions and for -Wchar-subscripts warnings upfront.
2219 2004-11-20 Jeff Law <law@redhat.com>
2221 * regrename.c (copyprop_hardreg_forward): Only search for a
2222 previously processed block if the current block only has one
2225 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
2227 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
2229 * config/arm/arm.c: Follow spelling conventions.
2231 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
2233 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
2234 a bit in tune_flags.
2235 (const_double_needs_minipool): Likewise. Split most of the code out
2237 (arm_const_double_inline_cost): ... new function here.
2238 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
2239 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
2240 word constants of length 2, 3 and 4 insns respectively.
2241 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
2242 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
2243 constraints. Set insn lenghts accordingly.
2245 2004-11-19 Jeff Law <law@redhat.com>
2247 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
2248 a hash table. Extensive modifications throughout to support
2251 (struct local_info): New.
2252 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
2254 (redirection_data): Now a hashtable.
2255 (redirection_data_hash, redirection_data_eq): New.
2256 (lookup_redirection_data, create_duplicates): New.
2257 (create_edge_and_update_destionation_phis): New.
2258 (fixup_template_block, redirect_edges): New.
2259 (thread_block): Use hash table traversals instead of loops over
2260 varray entries or incoming edge vectors.
2262 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2264 * basic-block.h (edge_def): Add dest_idx.
2265 * cfg.c (unchecked_make_edge): Initialize dest_idx.
2266 (remove_edge): Simplify the disconnection of an edge from its
2268 (redirect_edge_succ): Likewise.
2269 * cfghooks.c (verify_flow_info): Check the consistency of
2270 dest_idx for each edge.
2272 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
2274 * simplify-rtx.c (simplify_ternary_operation): Use
2277 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2279 * tree-cfg.c (reinstall_phi_args): New.
2280 (tree_split_edge): Use it after redirecting an edge. Don't
2281 modify PHI_ARG_EDGE.
2283 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2285 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
2286 if checking is enabled.
2288 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
2290 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
2291 too many nested scopes.
2293 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2296 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
2297 changed to suppoer uses-after-loop and to void creating flow paths
2298 that shouldn't exist.
2299 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
2300 Modified to fit the new peeling scheme. Avoid quadratic behavior.
2301 (slpeel_add_loop_guard): Takes additional argument.
2302 (slpeel_verify_cfg_after_peeling): New function.
2303 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
2304 documentation. Use 'exit-bb' instead of creating 'new-bb'.
2305 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
2306 the new peeling scheme.
2307 (copy_phi_nodes): Function removed. Its functionality moved to
2308 update_phis_for_duplicate_loop.
2309 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
2310 moved here. Added documentation. Modified to fit the new peeling scheme.
2311 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
2312 needed - done in slpeel_tree_peel_loop_to_edge.
2313 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
2314 (vect_do_peeling_for_loop_bound): Add documentation. Call
2315 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
2316 with additional argument.
2317 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
2319 (vect_finish_stmt_generation): Avoid 80 column oveflow.
2321 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2323 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
2325 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
2326 without last two arguments. Update single_exit of loops.
2327 (vect_update_niters_after_peeling): Removed. Its functionality was
2328 moved to vect_do_peeling_for_alignment.
2329 (vect_do_peeling_for_loop_bound): New name for function previously
2330 called vect_transform_for_unknown_loop_bound.
2331 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
2332 instead of code that duplicates the same functionality.
2333 (vect_do_peeling_for_alignment): Functionality of
2334 vect_update_niters_after_peeling moved here.
2335 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
2336 previously named vect_transform_for_unknown_loop_bound - for both known
2337 and unknown loop bound cases.
2339 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2341 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
2342 previously called verify_loop_for_duplication. All conditions compacted
2343 into one compound condition. Removed debug dumps.
2344 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
2345 functionality moved to vect_can_advance_ivs_p, and some to
2346 vect_analyze_loop_form.
2347 (vect_can_advance_ivs_p): New function. Contains functionality that was
2348 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
2349 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
2350 (vect_analyze_operations): Call vect_can_advance_ivs_p and
2351 slpeel_can_duplicate_loop_p.
2352 (vect_get_loop_niters): Added documentation.
2353 (vect_analyze_loop_form): Check the loop entry always - not only in case
2354 of unknown loop bound. Create preheader and exit bb if necessary. Apply
2355 a check that used to take place in
2356 vect_analyze_loop_with_symbolic_num_of_iters.
2357 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
2358 Remove redundant call to rewrite_into_loop_closed_ssa.
2359 (vect_compute_data_refs_alignment): Removed obsolete comment.
2361 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2363 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
2364 function previously called tree_duplicate_loop_to_edge.
2365 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
2366 previously called tree_duplicate_loop_to_edge_cfg.
2367 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
2369 (slpeel_update_phi_nodes_for_guard): Likewise.
2370 (slpeel_make_loop_iterate_ntimes): Likewise.
2371 (slpeel_add_loop_guard): Likewise.
2372 (allocate_new_names, free_new_names): Function declaration moved to top
2374 (rename_use_op, rename_def_op): Likewise.
2375 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
2376 (vect_generate_tmps_on_preheader): Function declaration moved.
2377 (vect_transform_for_unknown_loop_bound): Added missing function
2380 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
2383 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
2384 Define a VEC(tree_on_heap) for head.
2385 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2386 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2387 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
2388 the VEC(tree_on_heap) function. Also free it before returning.
2389 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2390 for block_defs_stack.
2391 (restore_currdefs_to_original_value): Use VEC_length instead of
2392 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2393 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2394 for block_defs_stack.
2395 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2396 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2397 for block_defs_stack.
2398 (ssa_register_new_def): Likewise.
2399 (ssa_rewrite_initialize_block): Likewise.
2400 (rewrite_finalize_block): Use VEC_length instead of
2401 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2402 (ssa_rewrite_finalize_block): Likewise.
2403 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2404 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
2405 (rewrite_blocks): Initialize block_defs_stack with
2406 the VEC(tree_on_heap) function. Also free it before returning.
2407 (rewrite_ssa_into_ssa): Likewise.
2409 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
2411 * config/darwin.c (machopic_data_defined_p): return 1 for
2412 MACHOPIC_DEFINED_FUNCTION.
2414 2004-11-19 Jeff Law <law@redhat.com>
2416 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
2419 2004-11-19 Paul Brook <paul@codesourcery.com>
2422 * varasm.c (default_assemble_integer): Allow pointer-sized values.
2425 2004-11-19 Nick Clifton <nickc@redhat.com>
2427 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
2428 zero_extension and lshiftrt insns.
2429 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
2431 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
2432 to handle bp and bn insn patterns with a zero_extend rtx
2435 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
2437 * config/arm/arm.md (generic_sched): Make const.
2439 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2441 * emit-rtl.c (classify_insn): Make it static.
2442 * rtl.h: Remove the corresponding prototype.
2444 * integrate.c (has_func_hard_reg_initial_val,
2445 get_func_hard_reg_initial_val): Make them static.
2446 * integrate.h: Remove the corresponding prototypes.
2448 2004-11-19 Ben Elliston <bje@au.ibm.com>
2450 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
2451 (dw2_asm_output_delta_sleb128): Likewise.
2452 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
2453 (dw2_asm_output_delta_sleb128): Likewise.
2455 2004-11-19 Adam Nemet <anemet@lnxw.com>
2457 * tree-ssa-alias.c: Fix comment.
2459 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2461 * tree-outof-ssa.c: Fix a comment typo.
2463 2004-11-19 Ben Elliston <bje@au.ibm.com>
2465 * predict.h (predict_insn): Remove extern declaration.
2466 * predict.c (predict_insn): Make static.
2468 2004-11-19 Alan Modra <amodra@bigpond.net.au>
2470 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
2472 2004-11-18 Nicolas Pitre <nico@cam.org>
2474 * config/arm/arm.c (const_double_needs_minipool): New function to
2475 determine if a CONST_DOUBLE should be pushed to the minipool.
2476 (note_invalid_constants): Use it.
2478 2004-11-18 Paul Brook <paul@codesourcery.com>
2480 * config/arm/arm.c (target_float_switch): New variable..
2481 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
2482 target_float_switch.
2483 * config/arm/arm.h (target_float_switch): Declare.
2484 (ARM_FLAG_SOFT_FLOAT): Remove.
2485 (TARGET_SWITCHES): Remove hard-float and soft-float.
2486 (TARGET_OPTIONS): Add hard-float and soft-float.
2487 (TARGET_DEFAULT_FLOAT_ABI): Define.
2488 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
2489 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
2490 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
2491 * config/arm/netbsd-elf.h: Ditto.
2492 * config/arm/netbsd.h: Ditto.
2493 * config/arm/pe.h: Ditto.
2494 * config/arm/unknown-elf.h: Ditto.
2495 * config/arm/wince-pe.h: Ditto.
2496 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2497 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2498 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2500 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2502 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
2503 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
2504 altivec_lvx_4sf): Rename and replace with ...
2505 (altivec_lvx_<mode>): ... mode macro version.
2506 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
2507 altivec_stvx_4sf): Rename and replace with ...
2508 (altivec_stvx_<mode>): ... mode macro version.
2509 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
2510 (mov<mode>): ... mode macro version.
2511 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
2512 *movv4sf_internal1): Replace with ...
2513 (*mov<mode>_internal): ... mode macro version.
2514 (get_vrsave_internal, *set_vrsave_internal, *save_world,
2515 *restore_world): Unquote output statements.
2516 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
2517 altivec_expand_st_builtin): Adjust insn names.
2519 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
2521 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
2523 (rs6000_override_options): Likewise.
2524 (spe_build_register_parallel): Handle complex doubles on e500v2.
2525 (rs6000_spe_function_arg): Likewise.
2526 (function_arg): Likewise.
2527 (rs6000_function_value): Likewise.
2528 (rs6000_libcall_value): Likewise.
2530 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
2532 * ifcvt.c (find_if_block): Move the check for the number of edges
2533 above the loops checking for complex edges.
2534 Remove the counting of edges as we use EDGE_COUNT now.
2536 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2538 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2539 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
2541 2004-11-18 Andreas Schwab <schwab@suse.de>
2543 * config/i386/i386.md (define_peephole2): Revert last change.
2545 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2547 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2548 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
2550 2004-11-18 Diego Novillo <dnovillo@redhat.com>
2552 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
2555 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
2557 * Makefile.in (macro_list): Depend on s-macro_list.
2558 (s-macro_list): New target.
2560 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2563 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2564 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2565 (fold_range_test): Adjust.
2566 (fold_truthop): Use it.
2567 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2568 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2570 2004-11-18 Uros Bizjak <uros@kss-loka.si>
2572 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
2573 insn split constraint.
2574 (define_peephole2): Remove unneeded "&& 1" from peephole2
2577 2004-11-18 Ben Elliston <bje@au.ibm.com>
2579 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
2580 element for bsi_prev; use @findex instead.
2582 2004-11-18 Ben Elliston <bje@au.ibm.com>
2584 * opts.h (add_input_filename): Remove extern declaration.
2585 * opts.c (add_input_filename): Make static.
2587 2004-11-17 Mark Mitchell <mark@codesourcery.com>
2589 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
2592 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2594 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
2595 * system.h: Poison it.
2596 * doc/tm.texi: Delete its documentation.
2598 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2599 Mark Mitchell <mark@codesourcery.com>
2601 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
2602 * config/i386/i386.c (i386_solaris_elf_named_section): New
2604 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
2605 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
2607 (ASM_QUAD): Don't undefine for biarch targets.
2608 * config/i386/t-sol2: Introduce multilib support.
2610 2004-11-18 Ben Elliston <bje@au.ibm.com>
2612 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
2614 2004-11-18 Ben Elliston <bje@au.ibm.com>
2616 * cgraph.h: Replace "it's" with "its" throughout.
2618 2004-11-18 Ben Elliston <bje@au.ibm.com>
2620 * doc/rtl.texi (Flags): Grammar fix.
2622 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2624 * expmed.c (alg_code): Add alg_unknown.
2625 (alg_hash_entry): New.
2626 (NUM_ALG_HASH_ENTRIES): Likewise.
2627 (alg_hash): Likewise.
2628 (synth_mult): Cache the result into alg_hash.
2630 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2632 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
2633 config/rs6000/libgcc-ppc64.ver.
2635 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2637 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
2638 checking if an unconditional return is followed by a barrier.
2640 * jump.c (condjump_p): Remove unreachable code.
2642 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
2643 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
2644 tree-ssa-live.h, tree.h: Remove unused prototypes.
2646 2004-11-17 Jeff Law <law@redhat.com>
2648 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
2649 (edge_to_cases_elt): Renamed from edge_to_case_leader.
2650 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
2651 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
2652 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
2653 (get_cases_for_edge): New function.
2654 (start_recording_case_labels, end_recording_case_labels): Similarly.
2655 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
2656 chain equivalent CASE_LABEL_EXPRs together.
2657 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
2658 (make_switch_expr_edges): Do not record edge/cases here.
2659 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
2660 (split_critical_edges): Record cases around the edge splitting code.
2661 (cleanup_dead_labels): Use CASE_LABEL again.
2662 (tree_redirect_edge_and_branch): If we have a mapping from edge
2663 to cases, use it to handle redirections. Else do it the slow way.
2664 * tree.h (CASE_LEADER_OR_LABEL): Kill.
2665 (CASE_LABEL): Revert to just looking at the tree's second operand.
2666 * tree.c (get_case_label): Kill.
2668 2004-11-17 Diego Novillo <dnovillo@redhat.com>
2670 PR tree-optimization/18307
2671 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
2672 'orig' are the same node.
2673 (collect_points_to_info_r): Do not call merge_pointed_to_info
2674 when the PHI argument is identical to the LHS.
2676 2004-11-17 Steven Bosscher <stevenb@suse.de>
2678 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
2679 to insert the exit or entry block.
2680 (ssa_prop_init): Use add_control_edge to seed the algorithm.
2682 2004-11-16 Zack Weinberg <zack@codesourcery.com>
2684 * mkmap-flat.awk, mkmap-symver.awk: If the last version
2685 assigned to a symbol was '%exclude', do not emit it anywhere.
2686 If leading_underscore is true, prefix all symbols from the
2687 version scripts with a leading underscore before comparing
2688 them with nm output or emitting them. Remove support for dot
2690 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
2691 (SHLIB_MAPFILES): Use libgcc-std.ver.
2692 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
2693 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
2694 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
2695 libgcc-excl.ver and libgcc-glibc.ver.
2697 * config/sh/libgcc-excl.ver: New file.
2698 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
2700 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2702 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
2703 the test when the edge has the opposite meaning, not when
2704 the first argument is invariant.
2706 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
2708 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
2710 (rs6000_complex_function_value): Handle e500 v2 variant.
2712 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2714 Fix PR tree-optimization/18519
2716 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
2717 * tree-pass.h: Add TODO_cleanup_cfg.
2718 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
2719 (ccp_finalize): Remove call to cleanup_cfg.
2720 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
2721 (pass_cd_dce): Ditto.
2722 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
2723 dump_function_to_file.
2724 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
2726 (pass_ch): Add TODO_cleanup_cfg.
2727 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
2729 (pass_loop_done): Add TODO_cleanup_cfg.
2730 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
2731 (tree_ssa_phiopt): Remove call to cleanup_cfg.
2733 2004-11-16 Devang Patel <dpatel@apple.com>
2735 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
2737 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2739 * expmed.c, ra-colorize.c: Fix comment typos.
2741 * doc/tm.texi: Fix typos.
2743 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
2744 Mark Mitchell <mark@codesourcery.com>
2747 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
2750 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2752 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
2753 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
2755 2004-11-16 Devang Patel <dpatel@apple.com>
2757 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
2759 2004-11-16 Eric Christopher <echristo@redhat.com>
2761 * config/mips/mips.c: Use rtl _P predicates.
2762 * config/mips/mips.h: Ditto.
2763 * config/mips/mips.md: Ditto.
2765 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
2767 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
2770 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2772 * config/s390/s390.c (s390_cc_modes_compatible): New function.
2773 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
2775 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
2778 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
2779 before and after the insns for getting GOT address in non-PIC
2780 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
2783 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2785 * gcc/cse.c (struct change_cc_mode_args): New structure.
2786 (cse_change_cc_mode_insn): New function.
2787 (cse_change_cc_mode): Use validate_change to perfom changes.
2788 (cse_change_cc_mode_insns, cse_condition_code_reg):
2789 Call cse_change_cc_mode_insn.
2791 2004-11-16 Steven Bosscher <stevenb@suse.de>
2795 2004-11-16 Steven Bosscher <stevenb@suse.de>
2797 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
2799 2004-11-15 Dale Johannesen <dalej@apple.com>
2801 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
2803 2004-11-15 Dale Johannesen <dalej@apple.com>
2805 * profile.c (compute_branch_probabilities): Prevent
2806 crash with EH in RTL-based profiling.
2808 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2810 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
2812 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
2813 * tree-ssa-dom.c (thread_across_edge): Likewise.
2814 * tree-vectorizer.c (vect_transform_loop_bound): Replace
2815 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
2818 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
2819 (tree_flow_call_edges_add): Update the call to
2820 bsi_commit_edge_inserts.
2821 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2822 * profile.c (branch_prob): Likewise.
2823 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
2824 * tree-sra.c (scalarize_function): Likewise.
2825 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2826 * tree-ssa-pre.c (fini_pre): Likewise.
2827 * tree-flow.h: Update the prototype for
2828 bsi_commit_edge_inserts.
2830 2004-11-15 Eric Christopher <echristo@redhat.com>
2832 * sched-deps.c (set_sched_group_p): Delete.
2833 (delete_all_dependencies): New function.
2834 (fixup_sched_groups): Use. New function.
2835 (sched_analyze_insn): Use.
2837 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2839 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
2840 RROTATE_EXPR or unknown code.
2841 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
2842 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
2843 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
2846 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2849 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
2850 after processing the declarator.
2852 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
2854 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
2856 (altivec_vspltb): Same.
2857 (altivec_vspltw): Same.
2858 (altivec_vspltisb): Same.
2859 (altivec_vspltish): Same.
2860 (altivec_vspltisw): Same.
2861 (altivec_vspltisw_v4sf): Same.
2862 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
2864 Move "End of vector xor's" comment to the right place.
2866 2004-11-15 Steve Ellcey <sje@cup.hp.com>
2868 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
2869 instead of nonimmediate_operand.
2871 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2873 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2874 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
2875 * config/sol2.c (solaris_output_init_fini): Update calls to
2876 ASM_OUTPUT_CALL. Include "rtl.h".
2878 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2880 * config/sol2-c.c (cmn_err_char_table): Add "p".
2882 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2884 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
2885 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
2887 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2889 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
2890 within the multilib directory.
2892 2004-11-15 Nick Clifton <nickc@redhat.com>
2894 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
2895 builtin assert of cpu=xstormy16.
2897 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
2899 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
2902 2004-11-14 Richard Henderson <rth@redhat.com>
2905 * calls.c (struct arg_data): Add parallel_value.
2906 (precompute_register_parameters): Set it.
2907 (load_register_parameters): Use it.
2908 (store_one_arg): Also set it here.
2910 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2912 PR tree-optimization/18431
2913 * fold-const.c (associate_trees): Do not produce x + 0.
2914 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
2916 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
2918 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
2919 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
2921 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
2923 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
2925 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2927 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
2928 value-prof.c: Fix comment typos.
2930 2004-11-14 Stan Shebs <shebs@apple.com>
2932 Basic ABI changes for passing structs by value in 64-bit Darwin.
2933 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
2934 (rs6000_override_options): Set it for 64-bit Darwin.
2935 (rs6000_parse_abi_options): Add testing options to change it.
2936 (rs6000_return_in_memory): Test whether the type is one
2937 that can be passed in registers.
2938 (darwin64_function_arg_advance): New.
2939 (function_arg_advance): Call it, plus add recursion depth
2940 argument and test when counting off arguments.
2941 (rs6000_darwin64_function_arg): New.
2942 (function_arg): Call it.
2943 (setup_incoming_varargs): Add argument to function_arg_advance.
2944 (rs6000_darwin64_function_value): New.
2945 (rs6000_function_value): Call it.
2946 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
2947 * config/rs6000/rs6000-protos.h: Update decl of
2948 function_arg_advance.
2950 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
2953 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
2954 support TImode before adding __int128_t and __uint128_t types.
2956 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2959 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
2960 (vect_transform_loop_bound): Set loop->nb_iterations.
2962 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2963 Andrew Pinski <pinskia@physics.uc.edu>
2966 * tree-vectorize.c (vect_build_loop_niters): Do not insert
2967 NULL into the instruction stream. Initialize new_bb to NULL.
2968 (vect_update_ivs_after_vectorizer): Likewise.
2969 (vect_gen_niters_for_prolog_loop): Likewise.
2971 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2973 PR tree-optimization/18431
2974 * tree-flow.h (stmt_references_memory_p): Declare.
2975 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
2976 * tree-ssa.c (stmt_references_memory_p): New function.
2978 2004-11-14 Andreas Schwab <schwab@suse.de>
2980 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
2983 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2985 * c-common.c (walk_stmt_tree): Remove.
2986 * c-common.h: Remove the corresponding prototype.
2988 * emit-rtl.c (push_to_full_sequence): Remove.
2989 * rtl.h: Remove the corresponding prototype.
2991 * cselib.c, expr.c: Fix comment typos.
2993 2004-11-13 Richard Henderson <rth@redhat.com>
2995 * calls.c (precompute_register_parameters): Force all PARALLELs
2996 into pseudo registers.
2997 (load_register_parameters): Copy PARALLELs into hard registers.
2998 * function.c (assign_parm_setup_block): Copy PARALLELS into
2999 pseudo registers. Do emit_group_store in conversion_insns.
3000 * expr.c (emit_group_load_1): Rename from emit_group_load, take
3001 tmps as an argument. Move final copy loop ...
3002 (emit_group_load): ... here. New function.
3003 (emit_group_load_into_temps, emit_group_move_into_temps): New.
3004 * expr.h: Declare them.
3006 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3008 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
3009 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
3010 with PHI_CHAIN where appropriate.
3012 2004-11-13 Dale Johannesen <dalej@apple.com>
3014 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
3015 (tree_block_label): Ditto.
3016 (flush_pending_stmts): Ditto.
3017 (insert_edge_copies): Ditto.
3018 (expr_invariant_in_loop_p): Ditto.
3019 (TDF_USE_OPS): Parenthesize definition.
3020 (TDF_USE_VOPS): Ditto.
3022 2004-11-13 David Edelsohn <edelsohn@gnu.org>
3024 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
3025 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
3027 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
3029 2004-11-14 Joseph Myers <joseph@codesourcery.com>
3031 * config/i386/i386.c (override_options): Move loop to set default
3032 tuning to correct place.
3034 2004-11-13 Zak Kipling <zak@transversal.com>
3037 * config/i386/i386.c (classify_argument): Fix infinite loop when
3038 passing object with 3 or more base classes by value.
3040 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3042 * doc/md.texi (constraints) <% modifier>: Mention that it is
3043 useless when the two alternatives are strictly identical.
3045 2004-11-13 Richard Henderson <rth@redhat.com>
3047 * expmed.c (extract_split_bit_field): Temporarily disable call to
3048 extract_force_align_mem_bit_field.
3050 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
3052 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
3055 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
3056 lambda-code.c, postreload.c, predict.c, tree-sra.c,
3057 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
3059 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
3061 * doc/install.texi (automake): Correctly document that everything now
3062 will use automake 1.9.3.
3064 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
3067 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
3068 TImode. Sorry for other non-complex larger-than-64-bit modes.
3069 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
3071 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
3073 * doc/install.texi (automake): Document that everything now uses 1.9.
3075 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
3077 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
3080 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
3082 * tree.h: Fix comment typos.
3084 2004-11-13 Steven Bosscher <stevenb@suse.de>
3086 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
3087 HARD_REGISTER_NUM_P.
3089 * cselib.c (new_cselib_val): Make comment correct and more detailed.
3090 * flow.c (mark_set_1): Likewise.
3092 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
3093 duplicate_eh_regions): Remove.
3094 * except.h (duplicate_eh_regions): Remove prototype.
3095 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
3096 global_const_equiv_varray): Remove.
3097 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
3098 global_const_equiv_varray, set_label_in_map): Remove prototypes,
3099 extern declaration, and #define.
3100 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
3101 (struct inline_remap): Remove.
3102 * varray.c (struct element): Remove entry for const_equiv_data.
3103 * varray.h (struct const_equiv_data): Remove.
3104 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
3105 (union varray_data_tag) <const_equiv>: Remove.
3106 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
3107 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
3109 * regstack.c (record_label_references): Remove unused function.
3111 * rtl.def (VALUE): Update comment.
3112 (LABEL_REF): Remove unused operand 2.
3113 * rtl.h (struct rtx_def): Update for removed accessor macros.
3114 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
3115 REG_LOOP_TEST_P): Remove.
3116 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
3117 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
3118 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
3120 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
3121 Eric Botcazou <ebotcazou@libertysurf.fr>
3124 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
3126 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
3127 (V32I): New macro for 32-bit modes.
3128 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
3129 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
3130 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
3131 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
3132 one_cmpldi_sp64): Use V64I instead of DI.
3133 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
3134 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
3135 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
3136 (nandv64i_vis, nandv32i_vis): New patterns.
3138 2004-11-12 Mike Stump <mrs@apple.com>
3140 * Makefile.in: Add html support.
3141 * java/Make-lang.in: Likewise.
3142 * fortran/Make-lang.in: Likewise.
3143 * treelang/Make-lang.in: Likewise.
3144 * doc/install.texi: Likewise.
3145 * doc/makefile.texi: Likewise.
3146 * doc/sourcebuild.texi: Likewise.
3148 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
3150 * tree-ssa-loop-manip.c: Fix a comment typo.
3152 2004-11-12 Mike Stump <mrs@apple.com>
3154 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
3155 renaming this node to Concept Index.
3156 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
3157 to more closely match gcc.texi.
3159 2004-11-12 Jeff Law <law@redhat.com>
3161 * tree-cfg.c (hashtab.h): Include.
3162 (struct edge_to_case_leader_elt): New structure.
3163 (edge_to_case_leader): New.
3164 (edge_to_case_leader_hash): New hashtable hasing function.
3165 (edge_to_case_leader_eq): New hashtable equality function.
3166 (record_switch_edge): New function.
3167 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
3168 (make_switch_expr_edges): Build the edge-to-case-leader
3169 hash table. Tear down the hash table when we're done.
3170 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
3172 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
3173 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
3174 to use new concept of case leaders to reduce overhead of
3175 redirecting outgoing edges from switch statements.
3176 * tree.c (get_case_label): New function.
3177 * tree.h (CASE_LABEL): Define in terms of get_case_label.
3178 (CASE_LEADER_OR_LABEL): Define.
3180 2004-11-12 Ziemowit Laski <zlaski@apple.com>
3182 * varasm.c (output_addressed_constants): For CONST_DECLs,
3183 output the initializer if present.
3185 2004-11-12 Ziemowit Laski <zlaski@apple.com>
3187 * config/rs6000/darwin.h: Fix confusing typo in comment.
3189 2004-11-12 Devang Patel <dpatel@apple.com>
3191 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
3193 2004-11-12 Devang Patel <dpatel@apple.com>
3195 * tree-if-conv.c (clean_predicate_lists): Use loop header
3198 2004-11-12 Richard Henderson <rth@redhat.com>
3201 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3202 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3203 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3204 * config/i386/i386-modes.def (XF): Use it.
3206 2004-11-11 Geoffrey Keating <geoffk@apple.com>
3208 * Makefile.in (macro_list): Use move-if-change to avoid spurious
3211 2004-11-12 Mark Mitchell <mark@codesourcery.com>
3214 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
3215 when deciding whether to pass a variable to
3216 cgraph_varpool_finalize_decl or assemble_variable.
3217 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
3219 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
3221 * tree-vectorizer.c: Fix a comment typo.
3223 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
3225 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
3227 2004-11-12 Diego Novillo <dnovillo@redhat.com>
3229 * tree-scalar-evolution.c (analyzable_condition): Remove
3230 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
3232 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
3234 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
3235 Remove m505/roe multilib variant.
3237 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3239 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
3240 to load from the stack.
3242 2004-11-12 Richard Henderson <rth@redhat.com>
3244 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
3245 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
3246 * toplev.h (FL2T__): Remove.
3247 (CLZ_HWI): Rename from FL2T_CLZ__.
3249 (floor_log2): Simplify.
3252 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
3254 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
3255 compute the first overlapping iterations.
3257 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
3260 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
3261 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
3263 2004-11-12 Steven Bosscher <stevenb@suse.de>
3265 PR tree-optimization/18419
3266 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
3267 pointer set instead of a bitmap.
3268 (walk_use_def_chains): Create, pass and clean up that pointer_set.
3270 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
3272 (init_alias_info): Allocate and zero it here.
3273 (delete_alias_info): Delete it here.
3274 (collect_points_to_info_for): Use it.
3276 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3278 * alias.c (record_alias_subset, addr_side_effect_eval):
3280 * alias.h: Remove the prototype for record_alias_subset.
3281 * expr.h: Remove the commented-out prototype for
3282 record_alias_subset.
3283 * rtl.h: Remove the prototype for addr_side_effect_eval.
3285 * cfglayout.c (choose_inner_scope): Make it static.
3286 * rtl.h: Remove the corresponding prototype.
3288 * cfgloopmanip.c (update_single_exits_after_duplication,
3289 unloop): Make them static.
3290 * cfgloop.h: Remove the corresponding prototypes.
3292 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
3294 * c-tree.h: Remove the corresponding prototypes.
3296 * explow.c (round_push): Make it static.
3297 * expr.h: Remove the corresponding prototype.
3299 * varasm.c (get_named_section_flags, decl_tls_model): Make
3301 * output.h: Remove the prototype for get_named_section_flags.
3302 * tree.h: Remove the prototype for decl_tls_model.
3304 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3306 * function.c (expand_function_end): Remove an "if" statement
3307 that always triggers.
3308 * stmt.c (expand_null_return_1): Likewise.
3310 2004-11-11 James E. Wilson <wilson@specifixinc.com>
3312 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
3313 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
3314 CLASS_MAX_NREGS): Likewise.
3316 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
3318 PR tree-optimization/17742
3319 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
3320 MINUS_EXPR correctly.
3322 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
3324 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
3325 Give up as soon as the evolution is known not computable.
3327 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3330 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
3331 mask64_1or2_operand.
3332 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
3333 to spot rlwinm opportunities.
3334 (and64_2_operand): Use mask_1or2_operand.
3335 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
3337 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
3339 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
3340 (vect_update_ivs_after_vectorizer): Update function documentation.
3341 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
3343 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3345 * config/arm/arm.c: Fix a comment typo.
3347 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3349 * bitmap.h (nBITMAP_WORD_BITS): Remove.
3350 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
3351 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
3353 (bitmap_first_set_bit): Return unsigned, use ctzl.
3354 (bitmap_last_set_bit): Remove.
3355 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
3357 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
3358 remove special case code for two word elements.
3359 (bitmap_last_set_bit): Remove.
3360 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
3361 bitmap_first_set_bit with bitmap_empty_p.
3362 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
3363 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
3364 bitmap_last_bit_set.
3366 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3369 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
3372 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
3373 unsigned equality compare when we know the operands are unsigned.
3375 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
3377 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
3378 __PIC__ and __pic__ only if TARGET_ABICALLS.
3379 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
3380 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
3381 -KPIC only if not -mno-abicalls.
3383 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
3384 * config/sparc/linux.h, config/sparc/linux64.h
3385 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
3387 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
3388 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
3389 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
3390 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
3392 2004-11-11 Paul Brook <paul@codesourcery.com>
3394 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
3395 register if current_function_uses_pic_offset_table is set.
3397 2004-11-10 David Edelsohn <edelsohn@gnu.org>
3399 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
3400 Change multi-instruction sequences to new attribute.
3401 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
3402 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
3403 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
3405 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
3407 * tree-data-ref.c (build_classic_dist_vector): If either loop
3408 is outside of the nest we asked about, the dependence can't
3410 (build_classic_dir_vector): Ditto.
3412 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
3414 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
3416 (force_var_cost): Determine cost of addition and multiplication more
3418 (get_computation_cost_at): Add cost for computing address elements to
3421 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
3422 one of the arguments of MINUS_EXPR is an address.
3423 (split_address_to_core_and_offset): New function.
3424 (ptr_difference_const): Handle case when one of the operands is a
3426 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
3427 (ptr_difference_cost): Pass addresses instead of objects to
3428 ptr_difference_const.
3430 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
3432 * tree.c (tree_check_failed): Emit general error if the list of
3433 node types is empty.
3435 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3437 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
3438 argument. When the union is passed in the 6th slot, build a
3439 PARALLEL with only one element.
3440 (function_arg): Adjust call to function_arg_union_value.
3441 (function_value): Likewise.
3443 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
3445 PR tree-optimization/17892
3446 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
3447 MINUS_EXPR operator.
3449 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
3452 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
3453 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
3455 2004-11-10 Steven Bosscher <stevenb@suse.de>
3457 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
3458 (struct basic_block_def): Remove local_set and cond_local_set
3459 fields. Update comment for global_live_at_start.
3460 * flow.c (calculate_global_regs_live): Allocate local_sets and
3461 cond_local_sets here as arrays of bitmaps previously stored in
3462 bb->local_set and bb->cond_local_set. Use xmalloc instead of
3463 obstack allocated bitmaps.
3465 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
3468 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
3471 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
3473 2004-11-09 Jeff Law <law@redhat.com>
3475 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
3476 argument holding last unvisited block. Start search for
3477 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
3478 (connect_infinite_loops_to_exit): Supply last unvisited block
3479 to flow_dfs_compute_reverse_execute.
3481 2004-10-22 Aldy Hernandez <aldyh@redhat.com>