1 2004-12-07 Steven Bosscher <stevenb@suse.de>
3 PR tree-optimization/17340
4 * tree-ssa-pre.c (compute_antic): Fix comment.
5 (compute_avail): Do not recurse, instead do a DFS using a stack
9 2004-12-07 Ziemowit Laski <zlaski@apple.com>
11 * c-tree.h (struct lang_type): Rename 'objc_protocols' field
14 2004-12-07 Eric Christopher <echristo@redhat.com>
17 * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
19 2004-12-07 Eric Christopher <echristo@redhat.com>
21 * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
23 * config/mips/mips.c: ... here. Make static.
25 2004-12-07 Eric Christopher <echristo@redhat.com>
28 * config/mips/mips.c (mips_vector_mode_supported_p): New function.
29 (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
31 2004-12-07 Kazu Hirata <kazu@cs.umass.edu>
33 * c-common.c, expr.c, fold-const.c, print-tree.c,
34 tree-gimple.c, tree-inline.c, tree-pretty-print.c,
35 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
36 first_rtl_op with TREE_CODE_LENGTH.
37 * tree.c (first_rtl_op): Remove.
38 Replace uses of first_rtl_op with TREE_CODE_LENGTH.
39 * tree.h: Remove the prototype for first_rtl_op.
41 2004-12-07 David Edelsohn <edelsohn@gnu.org>
43 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
44 Revert 2004-12-01 change.
46 2004-12-06 Ziemowit Laski <zlaski@apple.com>
48 * c-tree.h (struct lang_type): Add 'objc_protocols' field.
50 2004-12-06 DJ Delorie <dj@redhat.com>
52 * reload.c (find_valid_class): Fix logic to test inner mode as well.
53 (push_reload): Pass inner mode.
55 2004-12-06 Eric Christopher <echristo@redhat.com>
57 * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
59 2004-12-06 Aldy Hernandez <aldyh@redhat.com>
61 * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
63 2004-12-06 Zdenek Dvorak <dvorakz@suse.cz>
64 Kazu Hirata <kazu@cs.umass.edu>
66 PR tree-optimization/18601
67 * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
68 (tree_forwarder_block_p): Do not consider blocks that are its own
69 successors forwarders.
70 (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
71 (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
73 * tree-flow.h (bb_ann_d): Remove forwardable.
75 2004-12-06 Kazu Hirata <kazu@cs.umass.edu>
77 * expr.c (expand_expr_real_1): Remove an "if" whose condition
80 2004-12-06 Roger Sayle <roger@eyesopen.com>
82 * c-gimplify.c (gimplify_c_loop): Improve initial implementations
83 for loops whose conditions are known at compile-time.
84 * gimplify.c (append_to_statement_list_1): Remove side_effects
85 parameter, this function should never be called if its false.
86 (append_to_statement_list): Only call append_to_statement_list_1
87 if t is non-NULL tree with side-effects.
88 (append_to_statement_list_force): Likewise, if t is not NULL.
90 2004-12-06 J"orn Rennecke <joern.rennecke@st.com>
92 * bt-load.c (btr_def_s): New member own_end;
93 (add_btr_to_live_range): Add second parameter. Changed caller.
94 (clear_btr_from_live_range): Clear btrs_live_at_end bit
95 for the register its definition basic block if own_end is set.
96 (augment_live_range): Also take btrs_live_at_end into account.
97 (combine_btr_defs): Don't bother with
98 other_def->other_btr_uses_after_use if it pertains to a different
100 (move_btr_def): Set def->other_btr_uses_before_def after
101 calling combine_btr_defs."
103 * bt-load.c (augment_live_range): New argument full_range.
106 * bt-load.c (move_tr_def): Set other_tr_uses_before_def
107 taking new btr assignment into account.
109 2004-12-05 Daniel Berlin <dberlin@dberlin.org>
111 * tree-ssa-alias.c (create_global_var): Use void_type_node,
114 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
116 * expr.c (expand_expr_real_1): Abort on COND_EXPR of
119 2004-12-05 Richard Henderson <rth@redhat.com>
122 * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
123 (builtin_setjmp_receiver_er_sl_1): Use it.
124 (builtin_setjmp_receiver_er_1): Likewise.
125 (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
126 (builtin_setjmp_receiver): Don't split for explicit relocs until
128 (exception_receiver): Likewise.
130 2004-12-05 Andrew Pinski <pinskia@physics.uc.edu>
132 * mklibgcc.in (vis_hide): Add the prototype for the test.
134 2004-12-05 Roger Sayle <roger@eyesopen.com>
136 * c-typeck.c (c_finish_loop): Improve initial implementations
137 for loops whose conditions are known at compile-time.
139 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
141 * builtins.c: Fix comment typos.
143 2004-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
146 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
147 the first/last insn is a sequence, return the first/last insn of the
151 * mklibgcc.in (vis_hide): Use implementation instead of declaration
154 2004-12-04 Richard Henderson <rth@redhat.com>
156 * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
157 use ofs in BWX two byte special case.
158 (alpha_expand_unaligned_store): Likewise.
160 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
162 * gcse.c (gcse_main): Add a comment.
164 2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
167 * builtins.c (fold_builtin_next_arg): Export and return true
168 when there is a warning or an error.
169 (expand_builtin_va_start): When fold_builtin_next_arg returns true,
171 (expand_builtin): Likewise.
172 * gimplify.c (gimplify_call_expr): Error out if there is not
173 enough arguments to va_start. Call fold_builtin_next_arg also
174 on the second argument.
175 * tree.h (fold_builtin_next_arg): Prototype.
177 2004-12-04 Alan Modra <amodra@bigpond.net.au>
179 * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
180 Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
181 SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
182 * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
183 shlib_dir and shlib_so_name.
184 * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
185 * config/t-libunwind-elf (SHLIB_NAME): Likewise.
186 * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
187 * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
188 * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
189 (SHLIB_LINK): Don't use shlib_dir when creating symlink.
191 2004-12-03 Roger Sayle <roger@eyesopen.com>
193 * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
195 2004-12-03 Richard Henderson <rth@redhat.com>
197 * alias.c (component_uses_parent_alias_set): Rename from
198 can_address_p. Return bool. Reverse the sense of the result.
199 Reinstate the check for alias set zero.
200 (get_alias_set): Update to match.
201 * alias.h (component_uses_parent_alias_set): Likewise.
202 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
203 * expr.c (expand_assignment): Likewise.
204 * expr.h: Remove commented out prototypes that were moved to alias.h.
206 2004-12-03 Richard Henderson <rth@redhat.com>
208 * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
209 (TARGET_CANNOT_FORCE_CONST_MEM): New.
211 2004-12-04 Alan Modra <amodra@bigpond.net.au>
214 * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
216 * sched-ebb.c (schedule_ebb): Likewise.
218 2004-12-03 Andreas Schwab <schwab@suse.de>
220 * Makefile.in (HOSTHOOKS_DEF_H): Define.
221 (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
222 (host-default.o): Likewise.
224 2004-12-03 Eric Christopher <echristo@redhat.com>
226 * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
227 pophi): Add number of arguments to name so that the
228 pattern is recognized as a named pattern.
230 2004-12-03 Janis Johnson <janis187@us.ibm.com>
232 * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
234 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch>
236 * config/rs6000/rs6000.c (rs6000_override_options): Protect
237 darwin_one_byte_bool with #if.
239 2004-12-03 Paolo Bonzini <bonzini@gnu.org>
241 * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
243 2004-12-03 H.J. Lu <hongjiu.lu@intel.com>
245 * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
247 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
249 * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
250 Set libstdcxx_incdir directly.
251 * configure: Regenerate.
253 2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
255 * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
256 "if" whose condition is always true.
258 * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
261 2004-12-02 Stan Shebs <shebs@apple.com>
263 * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
264 Darwin default to one-byte bools.
266 2004-12-02 Richard Henderson <rth@redhat.com>
269 * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
271 2004-12-03 Ben Elliston <bje@au.ibm.com>
273 * doc/cfg.texi (Edges): Update. Document the edge_iterator data
274 type and its methods.
276 2004-12-02 Richard Henderson <rth@redhat.com>
278 * expr.c (write_complex_part): Use simplify_gen_subreg when the
279 submode is at least as large as a word.
280 (read_complex_part): Likewise.
282 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
285 * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
286 multilib at a time. Don't build the default set. Don't add
287 EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
288 filter for shared libunwind and libgcc.
290 2004-12-02 Roger Sayle <roger@eyesopen.com>
293 * config/i386/i386.c (override_options): If -fomit-frame-pointer has
294 already been specified, ignore the -momit-leaf-frame-pointer option.
296 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
298 * varasm.c (make_decl_rtl): Add the missing `;'.
300 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
302 * tree.c (is_attribute_p): Split out to ..
303 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
304 of strlen and compare the string lengths before calling strcmp.
305 (lookup_attribute): Call is_attribute_with_length_p instead of
308 2004-12-02 Devang Patel <dpatel@apple.com>
310 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
311 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
312 * config/i386/darwin.h (CC1_SPEC): Same.
314 2004-12-02 Richard Henderson <rth@redhat.com>
316 * optabs.c (lowpart_subreg_maybe_copy): New.
317 (expand_unop, expand_abs_nojump): Use it.
319 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
321 * sh.md (extv, extzv): Add pattern predicate.
323 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
325 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
328 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
331 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
333 2004-12-02 Jeff Law <law@redhat.com>
335 * tree-eh.c: Revert yesterday's change.
337 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
339 * varasm.c (decode_reg_name): Revert change to check for zero
341 (make_decl_rtl): Make sure that we call decode_reg_name only
344 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
347 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
348 then and else labels.
350 2004-12-02 Andreas Schwab <schwab@suse.de>
352 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
353 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
354 (STAGE2_FLAGS_TO_PASS): Likewise.
356 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
358 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
360 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
361 now-redundant AC_SUBSTs.
362 * aclocal.m4: Include ../config/gcc-version.m4.
363 * configure: Regenerate.
365 2004-12-02 Alan Modra <amodra@bigpond.net.au>
367 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
368 #ifdef RELOCATABLE_NEEDS_FIXUP.
370 2004-12-01 Roger Sayle <roger@eyesopen.com>
373 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
374 Intel assembler syntax by using %A1 instead of %*%1.
376 2004-12-01 Richard Henderson <rth@redhat.com>
378 * expr.c (expand_assignment): Handle CONCAT both as a final
379 destination and as a middle point.
381 2004-12-01 Jeff Law <law@redhat.com>
383 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
384 (honor_protect_cleanup_actions): Only create save_eptr and
385 save_filt if they do not already exist.
386 (lower_eh_constructs): Wipe all knowledge of save_eptr and
387 save_filt before returning.
389 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
391 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
393 2004-12-02 Alan Modra <amodra@bigpond.net.au>
396 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
397 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
398 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
399 of target_flags_explicit.
400 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
401 case. Define as 0 for non-biarch.
403 2004-12-01 Zack Weinberg <zack@codesourcery.com>
405 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
406 Change temporary file tag from a prefix to an infix.
408 2004-12-02 Andreas Schwab <schwab@suse.de>
410 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
412 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
416 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
417 the statements if aliases_computed_p is true.
419 2004-12-01 Mark Mitchell <mark@codesourcery.com>
421 * Makefile.in (WERROR): New variable.
422 (STRICT2_WARN): Use it.
423 (STAGE2_FLAGS_TO_PASS): Likewise.
424 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
426 2004-12-01 Richard Henderson <rth@redhat.com>
428 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
431 2004-12-01 Diego Novillo <dnovillo@redhat.com>
433 PR tree-optimization/18291
434 * tree-ssa-copy.c (merge_alias_info): Fix merging of
435 flow-sensitive alias information. If the new pointer has no
436 name tag, copy it from the original pointer. Otherwise, make
437 sure that the pointed-to sets have a common intersection.
439 2004-12-01 Richard Henderson <rth@redhat.com>
442 * emit-rtl.c (gen_complex_constant_part): Remove.
443 (gen_realpart, gen_imagpart): Remove.
444 * rtl.h (gen_realpart, gen_imagpart): Remove.
445 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
446 gen_realpart/gen_imagpart.
447 * expr.c (write_complex_part, read_complex_part): New.
448 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
449 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
450 emit_move_multi_word): Split out from ...
451 (emit_move_insn_1): ... here.
452 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
453 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
454 * function.c (assign_parm_setup_reg): Hard-code transformations
455 instead of using gen_realpart/gen_imagpart.
457 * expr.c (optimize_bitfield_assignment_op): Split out from ...
458 (expand_assignment): ... here. Use handled_component_p to gate
459 get_inner_reference code. Simplify MEM handling. Special case
462 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
463 of gen_rtx_SUBREG directly.
465 2004-12-01 David Edelsohn <edelsohn@gnu.org>
466 Nathan Sidwell <nathan@codesourcery.com>
469 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
474 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
477 * params.c (set_param_value): Add range check.
478 * params.def: Add min and max values. Reformat long strings.
479 * params.h (struct param_info): Add min and max fields.
480 (enum compiler_param): Adjust DEFPARAM.
481 * toplev.c (lang_independent_params): Likewise.
483 2004-12-01 Alan Modra <amodra@bigpond.net.au>
486 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
488 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
490 * doc/standards.texi: Update for C99 TC2.
492 2004-11-30 Jeff Law <law@redhat.com>
494 * sbitmap.c (sbitmap_any_common_bits): New function.
495 * sbitmap.h (sbitmap_any_common_bits): Prototype.
496 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
497 No longer allocate/free "psp", "pss" sbitmaps.
498 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
500 (group_aliases): Similarly.
502 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
504 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
505 uninitialized variable.
507 2004-11-30 Eric Christopher <echristo@redhat.com>
509 * fold-const.c (fold_widened_comparison): Make sure that we're
510 passing an INTEGER_TYPE to int_fits_type_p.
511 (fold): Clean up comment.
513 2004-11-30 Zack Weinberg <zack@codesourcery.com>
515 * mklibgcc.in: Correct calculation of libgcc_s_soname and
516 libunwind_soname. Use $out, not $outS, in commands for
517 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
518 library build rules, make $libunwind_so and $libgcc_s_so
519 depend on them in the normal fashion, and filter those objects
522 2004-11-30 Janis Johnson <janis187@us.ibm.com>
524 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
526 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
529 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
530 pass right after fold builtins.
532 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
534 * config/s390/s390-modes.def: Added cc modes documentation.
535 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
536 s390_expand_addcc): Added cc mode comments.
537 * config/s390/s390.md: Removed old cc mode documentation.
539 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
541 * config/s390/s390.c (struct processor_costs): New data type.
542 (s390_cost, z900_cost, z990_cost): New global variables.
543 (override_options): Initialize s390_cost.
544 (s390_rtx_costs): Reimplement.
546 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
548 Fix PR tree-optimization/18673
550 * tree-ssa-pre.c: Remove splay-tree.h include.
551 (bitmap_value_replace_in_set): Fix to add if it does not exist.
552 (find_or_generate_expression): Remove now-wrong condition.
553 (create_expression_by_pieces): Fix condition and comment reason
555 (insert_aux): Fix condition and comment reasons for it.
556 Factor insertion code from here.
557 (insert_into_preds_of_block): To here. Fix conditions in factored
558 function and comment reasons for them.
560 2004-11-30 Ira Rosen <irar@il.ibm.com>
563 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
564 variable for data_reference when looking for memtag.
566 2004-11-30 Jakub Jelinek <jakub@redhat.com>
568 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
571 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
573 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
574 tree_low_cst instead of TREE_INT_CST_LOW.
576 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
579 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
580 decls that are assembled before vectorization takes place.
581 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
583 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
585 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
586 if local_alloc modified jumps.
588 2004-11-30 Alan Modra <amodra@bigpond.net.au>
590 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
592 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
595 2004-11-30 Zack Weinberg <zack@codesourcery.com>
597 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
598 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
600 * mklibgcc.in: Drastic restructure for comprehensibility.
601 Remove the old hidden-directive hack.
602 Eliminate support for .txt files in LIB2ADD etc (never used).
603 Eliminate support for assembly source files in LIB2ADDEH* and
604 LIBUNWIND (also never used).
605 Build up dependency lists for libraries incrementally.
606 If we have SHLIB_LINK, compile each file twice, once for the
607 static and once for the shared library; also probe for
608 -fvisibility=hidden in the generated libgcc.mk. If found,
609 pass that and -DHIDE_EXPORTS to the compilation of every C
610 source file going into the static library. If found, generate
611 hidden-directive lists for every assembly source file going
612 into the static library, but incorporate them with -include
614 Write comments into generated libgcc.mk to facilitate debugging.
615 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
616 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
618 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
621 2004-11-29 Richard Henderson <rth@redhat.com>
623 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
624 (handled_component_p): Likewise.
625 * alias.c (can_address_p): Reformat and simplify. Handle
626 REAL/IMAGPART_EXPR. Do not disable addressability based on
628 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
629 check for REAL/IMAGPART_EXPR.
630 * gimplify.c (gimplify_compound_lval): Likewise.
631 * tree-cfg.c (verify_expr): Likewise.
632 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
633 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
634 (convert_local_reference): Likewise.
635 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
637 2004-11-30 Alan Modra <amodra@bigpond.net.au>
639 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
641 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
644 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
645 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
646 and host_xmake_file using new host configuration files.
648 2004-11-29 Roger Sayle <roger@eyesopen.com>
650 * reg-stack.c (change_stack): Improve algorithm used to pop regs
651 off the stack to maximize ffreep usage and reduce fxch count.
653 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
656 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
659 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
661 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
662 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
664 2004-11-30 Ben Elliston <bje@au.ibm.com>
666 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
668 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
671 * c-common.c (handle_visibility_attribute): When the type decl
672 is really a identifier node, warn about being ignored and return.
674 2004-11-29 Richard Henderson <rth@redhat.com>
676 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
678 2004-11-29 Steven Bosscher <stevenb@suse.de>
680 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
681 Remove CASE_DROPS_THROUGH checks, it is never defined.
682 * cfglyout.c (fixup_reorder_chain): Likewise.
683 * cfgrtl.c (rtl_verify_flow_info): Likewise.
684 * stmt.c (expand_case): Likewise.
685 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
687 * system.h (CASE_DROPS_THROUGH): Poison.
688 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
689 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
691 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
693 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
696 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
699 2004-11-29 Diego Novillo <dnovillo@redhat.com>
701 PR tree-optimization/18712
702 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
703 WORK_STACK by reference.
704 Call VEC_safe_push instead of VEC_quick_push.
707 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
710 * Makefile.in (c-lang.o): Update dependencies.
711 * c-lang.c: Include "c-pragma.h".
712 (finish_file): Call maybe_apply_pending_pragma_weaks.
713 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
714 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
716 2004-11-29 Richard Henderson <rth@redhat.com>
719 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
720 outside the referenced object.
722 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
724 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
725 EDGE_PRED instead of PHI_ARG_EDGE.
726 * tree-ssa-live.c: Likewise.
727 * tree-ssa-loop-manip.c: Likewise.
728 * tree-ssa.c: Likewise.
730 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
731 simplifying edge manipulation.
733 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
736 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
739 * cfg.c (flow_obstack): Remove.
740 (flow_firstobj): Likewise.
741 (init_flow): Remove all uses of flow_obstack.
743 2004-11-29 Alan Modra <amodra@bigpond.net.au>
745 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
748 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
750 * opts.c (decode_options): Do not set max-inline-insns-rtl.
751 (common_handle_option): Likewise.
752 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
753 * params.h (MAX_INLINE_INSNS_RTL): Remove.
754 * doc/invoke.texi (max-inline-insns-rtl): Remove.
756 2004-11-29 Alan Modra <amodra@bigpond.net.au>
759 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
761 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
764 * gimplify.c (gimplify_asm_expr): If the length of an output operand
765 is zero, do not process it, just let it go through.
767 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
768 Diego Novillo <dnovillo@redhat.com>
770 PR/18662, also backported from tree-cleanup-branch.
771 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
772 always call maybe_clean_eh_stmt and modify_stmt.
774 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
777 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
778 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
779 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
780 add an inverse VIEW_CONVERT_EXPR to const_val.
783 * tree-nested.c (check_for_nested_with_variably_modified): New.
784 (create_nesting_tree): Call it.
786 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
787 special code for assigning to non-pointer.
788 (is_escape_site): If RHS is a conversion between pointer and integer
789 types, this is an escape site.
791 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
792 (store_motion): Don't move store if any edge we'd want to move it
795 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
796 non-zero lower bound.
798 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
800 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
803 * opts.c (find_opt): Require that the input match a switch exactly
804 or that the switch take a joined option to be interpreted as a
805 match for another language.
807 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
809 * timevar.def (TV_TREE_REDPHI): New timevar.
810 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
812 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
814 PR preprocessor/17651
815 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
816 flag_no_line_commands.
817 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
820 2004-11-28 Theodore A. Roth <troth@openavr.org>
822 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
823 warning if the function name does not begin with "__vector" and the
824 function has either the 'signal' or 'interrupt' attribute.
826 2004-11-28 Theodore A. Roth <troth@openavr.org>
828 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
829 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
830 atmega325, atmega3250, atmega645 and atmega6450.
831 * config/avr/avr.h (LINK_SPEC): Ditto.
833 (LIBGCC_SPEC): Ditto.
834 (CRT_BINUTILS_SPECS): Ditto.
835 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
837 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
839 PR preprocessor/17610
840 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
842 2004-11-28 Jeff Law <law@redhat.com>
844 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
845 (pass_maybe_create_global_var): New.
846 * tree-pass.h (pass_maybe_create_global_var): Declare.
847 * tree-optimize.c (init_tree_optimization_passes): Link in
848 pass_maybe_create_global_var.
850 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
852 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
854 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
856 PR rtl-optimization/18420
857 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
859 2004-11-28 Steven Bosscher <stevenb@suse.de>
860 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
862 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
863 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
864 that the case is in range, to make sure the casesi insn is always
865 in range and never falls through.
866 (casesi1): Add comment to explain why casesi never falls through.
867 Remove the unnamed special case casesi pattern.
869 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
872 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
873 "*movdicc_real". Only match reversible comparisons.
874 ("*movdicc_real_nonreversible"): New pattern, split from
875 "*movdicc_real". Match only nonreversible comparisons. Exclude
876 reversed alternatives.
877 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
880 2004-11-27 Richard Henderson <rth@redhat.com>
882 * config/ia64/ia64.md: Move all define_predicate's ...
883 * config/ia64/predicates.md: ... here. New file.
885 2004-11-27 Per Bothner <per@bothner.com>
888 Re-applied following, with two modifications: add a URL for the
889 fixed cctools; only exit if $build = $target.
891 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
892 * configure.ac (powerpc-*-darwin*): Require assembler to support
894 * configure: Regenerate.
896 2004-11-28 David Edelsohn <edelsohn@gnu.org>
899 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
900 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
901 Distinguish between SImode and DImode CONST_INT.
903 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
904 Alan Modra <amodra@bigpond.net.au>
907 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
908 functions, strings and thread-local vars.
910 2004-11-28 Alan Modra <amodra@bigpond.net.au>
912 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
913 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
914 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
915 to allow non-darwin ABIs to optimize away code.
916 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
918 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
920 * tree.c (operand_equal_for_phi_arg_p): New.
921 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
922 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
923 Replace operand_equal_p with operand_for_phi_arg_p
926 * bb-reorder.c (find_traces_1_round): Speed up by using
927 EDGE_COUNT instead of FOR_EACH_EDGE.
929 * fold-const.c, config/i386/linux64.h: Fix comment typos.
931 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
934 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
936 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
938 * config/i386/linux.h: Fix a comment typo.
939 * doc/extend.texi: Fix a typo.
941 2004-11-27 Jeff Law <law@redhat.com>
943 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
946 2004-11-27 Jakub Jelinek <jakub@redhat.com>
948 * config/i386/linux64.h (REG_NAME): Define.
950 2004-11-27 Jakub Jelinek <jakub@redhat.com>
952 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
953 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
954 and only afterwards convert to ctype.
956 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
958 * config/mips/mips-protos.h (function_arg_boundary): Declare.
959 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
960 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
961 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
962 * config/mips/mips.c (function_arg_boundary): New function.
963 Impose a maximum alignment of STACK_BOUNDARY.
965 2004-11-27 Jakub Jelinek <jakub@redhat.com>
967 PR rtl-optimization/17825
968 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
971 2004-11-27 Alan Modra <amodra@bigpond.net.au>
974 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
975 from rs6000_default_long_calls for libcalls.
977 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
979 * expmed.c (extract_bit_field): When extracting from non-integer mode,
980 force a SUBREG into a register because we may be taking a further
983 2004-11-27 Di-an Jan <dianj@freeshell.org>
985 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
987 2004-11-26 Robert Millan <robertmh@gnu.org>
989 Changes for k*bsd-gnu support.
990 * config/i386/linux.h: Define REG_NAME to allow overriding of
991 register names in sc structure.
992 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
994 * config.gcc: Detect x86_64-k*bsd-gnu systems.
996 2004-11-26 Jeff Law <law@redhat.com>
998 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
999 retrieve annotations or pointer info before it's necessary.
1000 Reorder tests for early continue of the loop. Manually CSE
1003 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1005 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
1006 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
1007 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1008 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
1009 to a fixed reg if the source is the Return Address register.
1010 Implement new Rule 15.
1011 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1012 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
1013 sparc_dwarf_handle_frame_unspec.
1014 (gen_save_register_window): New function.
1015 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
1016 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
1017 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
1018 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
1019 (sparc_asm_function_prologue): Do not emit call frame debugging info.
1020 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
1021 (sparc_expand_epilogue): Likewise.
1022 (sparc_dwarf_handle_frame_unspec): New function.
1023 * config/sparc/sparc.md (save_register_window): Remove.
1024 (save_register_windowdi): Rewrite modelled on the callframe debug info.
1025 (save_register_windowsi): Likewise.
1027 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1029 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
1030 BB_HEAD, not BLOCK_HEAD.
1032 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1034 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
1035 scratch insns that set a register live at the join point.
1037 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1039 * cse.c, tree-ssa-operands.c: Fix comment typos.
1041 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
1043 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
1046 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
1048 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1050 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
1051 check that tests if all edges go to the same destination.
1053 * bitmap.c (bitmap_find_bit): Speed up by traversing from
1054 head->first if that seems profitable.
1056 2004-11-25 Jeff Law <law@redhat.com>
1058 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
1059 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
1060 (pass_loop_done): Use TV_TREE_LOOP_FINI.
1062 2004-11-26 Alan Modra <amodra@bigpond.net.au>
1064 PR rtl-optimization/16356
1065 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
1066 separate output register and one less jump. Enable for powerpc64.
1067 (floatdisf2): Adjust for above.
1069 2004-11-25 Bob Wilson <bob.wilson@acm.org>
1071 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
1072 (GCC_DRIVER_HOST_INITIALIZATION): Define.
1074 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1077 * tree-complex.c (vector_inner_type): New variable moved from
1078 build_word_mode_vector_type.
1079 (vector_last_type): Likewise.
1080 (vector_last_nunits): Likewise.
1081 (build_word_mode_vector_type): Use the new variables.
1082 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
1083 (GTFILES): Add tree-complex.c.
1084 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
1086 2004-11-25 Bob Wilson <bob.wilson@acm.org>
1088 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
1089 __XTENSA_WINDOWED_ABI__.
1091 2004-11-25 Richard Henderson <rth@redhat.com>
1093 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
1094 args_size adjustments for calls even with cfa as stack pointer.
1095 Search calls for stack adjustments after the insn is issued.
1096 (dwarf2out_frame_debug): Add after_p argument; pass it on.
1097 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
1098 * final.c (final_start_function, final_scan_insn): Likewise.
1100 2004-11-25 Richard Henderson <rth@redhat.com>
1103 * reload1.c (set_initial_eh_label_offset): New.
1104 (set_initial_label_offsets): Use it.
1106 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
1108 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
1109 before calling life_analysis and release them after.
1111 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1113 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
1116 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1118 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
1119 BITMAP_OBSTACK_ALLOC.
1120 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
1122 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1124 parts of PR rtl-opt/18463, rtl-opt/17647
1125 * cse.c (canon_for_address): New function.
1126 (find_best_addr): Call canon_for_address before getting the
1127 address's cost when checking if we should take that address.
1129 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1131 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
1132 "tree *" as the first argument.
1133 * tree-flow.h: Update the prototype of add_phi_arg.
1134 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
1135 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1136 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
1137 tree-vectorizer.c: Update all call sites of add_phi_arg.
1139 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1141 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1142 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1143 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
1144 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
1146 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
1148 PR tree-optimization/18587
1149 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
1150 call clobbered caches as invalid.
1151 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
1152 indicating whether the call clobbered operand cache is valid.
1153 (ssa_ro_call_cache_valid): New. Flag indicating whether the
1154 pure/const call operand cache is valid.
1155 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
1156 list of operands for cached call virtual operands.
1157 (clobbered_aliased_loads, clobbered_aliased_stores,
1158 ro_call_aliased_load): New. flags caching whether alias bits are
1159 to be set in call stmt's.
1160 (fini_ssa_operands): Remove call operand caches if present.
1161 (get_expr_operands, get_asm_expr_operands,
1162 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
1163 (get_call_expr_operands): Add call clobbered variables first.
1164 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
1165 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
1166 if it is valid, otherise fill the cache.
1167 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
1168 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
1169 in_v_may_def_list bits.
1170 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
1171 in_list bits for the v_may_def elements and empty the operand
1173 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
1174 VUSES by checking the in_v_may_def_list bit.
1175 (append_v_may_def, append_vuse): Use the in_list bit rather than
1176 scanning the array for duplicates.
1178 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
1180 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
1181 displacements are not short.
1183 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
1185 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
1188 2004-11-25 Mark Mitchell <mark@codesourcery.com>
1191 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
1192 (lvalue_or_else): Declare.
1193 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
1194 * c-typeck.c (lvalue_use): Remove.
1195 (lvalue_or_else): Remove.
1198 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
1199 unemitted variables with static storage duration.
1201 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
1203 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
1206 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1208 * config/rs6000/altivec.md (VIshort): New mode macro.
1209 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
1211 (altivec_vaddu<VI_char>s): ... this.
1212 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
1214 (altivec_vadds<VI_char>s): ... this.
1215 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
1217 (altivec_vsubu<VI_char>s): ... this.
1218 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
1220 (altivec_vsubs<VI_char>s): ... this.
1221 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
1223 (altivec_vavgu<VI_char>): ... this.
1224 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
1226 (altivec_vavgs<VI_char>): ... this.
1227 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
1228 (altivec_vmsumu<VI_char>m): ... this.
1229 (altivec_vmsummbm, altivec_vmsummhm): Replace
1231 (altivec_vmsumm<VI_char>m): ... this.
1232 (altivec_vandc): Remove.
1233 (*andc<mode>3): Renamed to ...
1234 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
1235 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
1237 (altivec_vrl<VI_char>): ... this.
1238 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
1240 (altivec_vsl<VI_char>): ... this.
1241 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
1243 (altivec_vsr<VI_char>): ... this.
1244 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
1246 (altivec_vsra<VI_char>): ... this.
1247 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
1248 (altivec_vsum4s<VI_char>s): ... this.
1249 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
1251 (altivec_vperm_<mode>): ... this.
1252 (altivec_vsel_4sf): Rename to ...
1253 (altivec_vsel_v4sf): ... here.
1254 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
1256 (altivec_vsel_<mode>): ... this.
1257 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
1258 altivec_vsldoi_16qi): Rename to ...
1259 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
1260 altivec_vsldoi_v16qi): ... here.
1261 (altivec_vsldoi_4sf): Rename to ...
1262 (altivec_vsldoi_v4sf): ... here.
1263 (altivec_predicate_v4si, altivec_predicate_v8hi,
1264 altivec_predicate_v16qi): Replace with ...
1265 (altivec_predicate_<mode>): ... this.
1266 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
1268 (altivec_lve<VI_char>x): ... this.
1269 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
1271 (altivec_stve<VI_char>x): ... this.
1272 (absv16qi2, absv8hi2, absv4si2): Replace
1274 (abs<mode>2): ... this.
1275 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
1277 (altivec_abss_<mode>): ... this.
1278 (vec_realign_load_v16qi, vec_realign_load_v8hi,
1279 vec_realign_load_v4si): Replace with ...
1280 (vec_realign_load_<mode>): ... this.
1281 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
1283 (rs6000_expand_ternop_builtin): Likewise.
1285 2004-11-25 Andrew Haley <aph@redhat.com>
1287 * gcc.c (process_command): Don't supply -v to linker.
1289 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
1291 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
1292 instead of `%s' in diagnostic.
1294 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1296 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
1297 (FREE_REG_SET): Adjust.
1298 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
1299 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
1300 (BITMAP_ALLOC): ... here.
1301 (BITMAP_OBSTACK_FREE): Rename to ...
1302 (BITMAP_FREE): Don't check for NULL bitmap here.
1303 * tree-ssa-pre.c (value_insert_into_set_bitmap,
1304 bitmap_set_new): Use new names.
1306 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
1307 * df.c (df_free): Likewise.
1308 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
1309 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
1311 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
1312 (ALLOC_REG_SET): ... here.
1313 (FREE_REG_SET): Adjust.
1314 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
1315 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
1316 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
1317 * cfgrtl.c (rtl_split_block, rtl_split_edge,
1318 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
1319 * flow.c (update_life_info, calculate_global_regs_live,
1320 allocate_bb_life_data, init_propagate_block_info): Adjust.
1321 * global.c (build_insn_chain): Adjust.
1322 * ifcvt.c (dead_or_predicable): Adjust.
1323 * loop-iv.c (simplify_using_initial_values): Adjust.
1324 * recog.c (peephole2_optimize): Adjust.
1325 * sched-deps.c (init_deps_global): Adjust.
1327 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
1329 * config.gcc (avr-*-rtems*): Fix typo.
1331 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
1333 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
1335 2004-11-24 Jeff Law <law@redhat.com>
1337 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
1338 the number of queries to random elements in the ai->written_vars
1341 2004-11-24 Roger Sayle <roger@eyesopen.com>
1343 * config/i386/i386.c (override_options): Disable x87 fancy math
1344 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
1346 2004-11-24 Roger Sayle <roger@eyesopen.com>
1348 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
1349 system header conflict on AIX 5.2.
1350 * configure: Regenerate.
1352 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1354 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
1355 instead of calling phi_arg_from_edge.
1357 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
1360 2004-11-24 Ben Elliston <bje@au.ibm.com>
1362 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
1363 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
1364 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
1367 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1369 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
1371 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
1372 type will be remapped.
1374 2004-11-24 Steven Bosscher <stevenb@suse.de>
1376 * c-opts.c (c_common_post_options): Don't clear
1377 flag_inline_functions.
1378 * dojump.c (clear_pending_stack_adjust): Remove check on
1379 flag_inline_functions, it's always true.
1380 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
1381 that can never trigger.
1382 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
1383 flag_inline_trees, now that flag_inline_functions is never
1385 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
1386 flag_inline_functions at optimization levels greater than
1387 or equal to 3. This is already done by default.
1389 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1391 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
1392 instead to find the PHI argument. Do not take I as an
1394 (eliminate_phi): Adjust the call to eliminate_build. Do not
1395 take I as an argument.
1396 (rewrite_trees): Adjust the call to eliminate_phi.
1398 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
1400 * optabs.h (force_expand_binop): Declare.
1401 * optabs.c (force_expand_binop): Export.
1402 * stmt.c (shift_return_value): Delete.
1403 (expand_return): Don't call it.
1404 * expr.h (shift_return_value): Declare.
1405 * calls.c (shift_returned_value): Delete in favor of...
1406 (shift_return_value): ...this new function. Leave the caller to check
1407 for non-BLKmode values passed in the msb of a register. Take said mode
1408 and a shift direction as argument. Operate on the hard function value,
1410 (expand_call): Adjust accordingly.
1411 * function.c (expand_function_start): If a non-BLKmode return value
1412 is padded at the last significant end of the return register, use the
1413 return value's natural mode for the DECL_RESULT, not the mode of the
1415 (expand_function_end): Shift the same sort of return values left by
1416 the appropriate amount.
1418 2004-11-24 Matt Austern <austern@apple.com>
1420 * recog.c (recog_memoized_1): Remove.
1421 * recog.h (recog_memoized_1): Remove declaration.
1422 (recog_memoized): Change from macro to inline function.
1424 2004-11-24 Devang Patel <dpatel@apple.com>
1427 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
1428 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
1430 2004-11-24 Devang Patel <dpatel@apple.com>
1432 * gcc.c (process_command): Supply -v to linker.
1434 2004-11-24 David Edelsohn <edelsohn@gnu.org>
1435 Paolo Bonzini <bonzini@gnu.org>
1437 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
1438 vector modes without ALTIVEC_ABI. Use GCC vector instead of
1440 (rs6000_pass_by_reference): Split conditional into pieces. Use
1441 GCC vector instead of synthetic vector.
1443 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
1445 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
1446 thread-local variable is invariant.
1448 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1450 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
1451 Handle TYPE_REF_CAN_ALIAS_ALL.
1452 (print_declaration): Print array dimensions like dump_generic_node.
1454 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
1455 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
1457 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
1459 * bitmap.c (INLINE): Do not define.
1460 (bitmap_elem_to_freelist, bitmap_element_free,
1461 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
1462 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
1464 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1466 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
1467 find the index of a PHI argument. Use e->dest_idx instead.
1468 Replace hint with index.
1470 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
1473 2004-11-24 Diego Novillo <dnovillo@redhat.com>
1475 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
1476 regarding PT_MALLOC.
1478 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1480 * config/i386/i386.c (optimization_options): Use
1481 SUBTARGET_OPTIMIZATION_OPTIONS.
1482 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
1483 (TARGET_SUBTARGET_DEFAULT): Don't include
1484 MASK_OMIT_LEAF_FRAME_POINTER.
1486 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1488 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
1491 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1493 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
1494 Use amd64 instead of 64.
1496 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1497 Joseph Myers <joseph@codesourcery.com>
1499 * crtstuff.c (IN_LIBGCC2): Define it.
1500 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
1501 instead of HAVE_LD_RO_RW_SECTION_MIXING.
1502 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
1503 * dwarf2out.c (named_section_eh_frame_section): Check
1504 EH_TABLES_CAN_BE_READ_ONLY.
1505 * except.c (default_exception_section): Likewise.
1506 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
1507 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
1509 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1511 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
1512 index of a PHI argument.
1514 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
1515 find_edge to find the index of a PHI argument.
1517 2004-11-24 Steven Bosscher <stevenb@suse.de>
1519 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
1520 and LABELED_BLOCK_EXPR.
1521 * gimplify.c (gimplify_labeled_block_expr): Remove.
1522 (gimplify_exit_block_expr): Remove.
1523 (gimplify_expr): Don't call them.
1524 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
1525 and LABELED_BLOCK_EXPR.
1526 (estimate_num_insns_1): Likewise.
1527 (walk_tree): Likewise.
1528 * tree-pretty-print.c (dump_generic_node): Don't handle
1529 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
1530 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
1531 (LABELED_BLOCK_EXPR): Likewise.
1532 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
1533 (LABELED_BLOCK_BODY): Likewise.
1534 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
1535 (EXIT_BLOCK_RETURN): Removed.
1537 2004-11-24 Steven Bosscher <stevenb@suse.de>
1539 * cfgrtl.c (rtl_delete_block): Fix comment.
1540 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
1541 or BLOCK_END insn notes.
1542 * jump.c (squeeze_notes): Likewise.
1543 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
1544 EH_REGION_END notes, we never have them to begin with.
1545 * sched-deps.c (sched_analyze_insn): When updating loop notes,
1546 verify that we have indeed only recorded loop notes.
1547 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
1548 Only record loop notes.
1550 * cfgexpand.c (tree_expand_cfg): Fix comment.
1552 * passes.c (rest_of_compilation): Don't do a second call to
1553 convert_from_eh_region_ranges from here, it's already called
1555 * except.c (resolve_fixup_regions): Remove.
1556 (remove_fixup_regions): Remove.
1557 (convert_from_eh_region_ranges_1): Remove.
1558 (convert_from_eh_region_ranges): Remove the case where EH is
1559 not already lowered at the tree level. We always lower there.
1561 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
1564 * tree.c (make_vector_type): Move qualifiers to the vector type,
1565 use the inner type's main variant and build a main variant for
1566 the vector type if necessary.
1567 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
1569 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1571 * target.h (late_rtl_prologue_epilogue): Remove.
1572 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1573 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
1574 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
1575 remaining bits to...
1576 (rest_of_handle_flow2): ...here.
1577 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
1578 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1580 2004-11-23 Mark Mitchell <mark@codesourcery.com>
1582 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
1583 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
1584 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
1586 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
1588 * config/i386/i386.c (override_options): Move
1589 SUBTARGET_OVERRIDE_OPTIONS before defaulting
1590 flag_omit_frame_pointer.
1592 2004-11-23 Richard Henderson <rth@redhat.com>
1594 * rtl.h (validate_subreg): Declare.
1595 * emit-rtl.c (validate_subreg): New.
1596 (gen_rtx_SUBREG): Use it.
1597 * simplify-rtx.c (simplify_subreg): Likewise.
1598 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
1599 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
1600 fallback whenever gen_realpart/gen_imagpart would not be able to
1603 2004-11-23 Richard Henderson <rth@redhat.com>
1605 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
1606 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
1609 2004-11-23 Diego Novillo <dnovillo@redhat.com>
1611 PR tree-optimization/18618
1612 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
1613 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
1614 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
1616 (stmts_to_rescan): Likewise.
1617 (const_and_copies_stack): Likewise.
1618 (nonzero_vars_stack): Likewise.
1619 (vrp_variables_stack): Likewise.
1621 2004-11-23 Richard Henderson <rth@redhat.com>
1623 * cse.c (record_jump_cond_subreg): New.
1624 (record_jump_cond): Use it instead of gen_lowpart.
1626 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
1627 Joseph Myers <joseph@codesourcery.com>
1629 * config/sol2-c.c (solaris_register_pragmas): Use
1630 c_register_pragma_with_expansion.
1631 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
1632 * c-pragma.c (c_register_pragma): Update call to
1633 cpp_register_pragma.
1634 (c_register_pragma_with_expansion): New function.
1635 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
1636 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
1637 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
1639 * doc/tm.texi (c_register_pragma_with_expansion,
1640 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
1642 2004-11-23 Richard Henderson <rth@redhat.com>
1644 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
1645 as mode sizes into local temporaries. Unify failure path.
1647 2004-11-23 Richard Henderson <rth@redhat.com>
1649 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
1650 * caller-save.c (mark_set_regs): Use subreg_regno instead.
1651 * final.c (alter_subreg): Likewise.
1652 * local-alloc.c (reg_is_born): Likewise.
1654 2004-11-23 Richard Henderson <rth@redhat.com>
1656 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
1657 instead of using a SUBREG temporary.
1659 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1661 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
1664 2004-11-23 Zack Weinberg <zack@codesourcery.com>
1666 * function.h (struct function): Remove calls_longjmp.
1667 (current_function_calls_longjmp): Delete.
1668 * tree.h (ECF_LONGJMP): Delete.
1669 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
1670 (ECF_LIBCALL_BLOCK): Everybody slide down one.
1671 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
1672 * builtins.c (expand_builtin_longjmp): Don't set
1673 current_function_calls_longjmp.
1674 * calls.c (special_function_p): Mark longjmp and siglongjmp
1675 with ECF_NORETURN, not ECF_LONGJMP.
1676 (emit_call_1, expand_call, emit_library_call_value_1):
1677 Don't check for ECF_LONGJMP.
1678 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
1679 (need_fake_edge_p): Likewise.
1681 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
1682 * system.h: Poison NON_SAVING_SETJMP.
1683 * function.c (use_register_for_decl)
1684 * gcse.c (compute_hash_table_work, compute_store_table)
1685 * postreload-gcse.c (record_opr_changes)
1686 * reload.c (find_equiv_reg)
1687 * reload1.c (reload)
1688 * config/i386/i386.c (ix86_can_use_return_insn_p):
1689 Remove code conditional on NON_SAVING_SETJMP.
1690 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
1692 * config/i386/sysv3.h: Delete file.
1693 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
1695 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1697 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
1698 the vectorization factor is greater than the iteration count.
1699 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
1700 iteration count is known.
1702 (vect_build_symbol_bound): Removed. Its functionality moved to
1703 vect_generate_tmps_on_preheader.
1704 (vect_generate_tmps_on_preheader): Moved content of
1705 vect_build_symbol_bound here instead of calling it. Changed some
1708 (vect_build_loop_niters): We don't expect a new_bb to be generated -
1710 (vect_gen_niters_for_prolog_loop): Likewise.
1711 (vect_gen_niters_for_prolog_loo): Likewise.
1713 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
1714 (slpeel_add_loop_guard): Likewise.
1715 (slpeel_tree_peel_loop_to_edge): Likewise.
1716 (vect_do_peeling_for_alignment): Likewise.
1718 (vect_get_first_index): Missing space.
1720 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
1722 * config/s390/s390.md ("*iordi3"): Mark commutative.
1723 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
1725 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1727 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
1728 greater than PHI_ARG_CAPACITY.
1729 (reserve_phi_args_for_new_edge): Initialize the new PHI
1730 argument to NULL_TREE. Increment PHI_NUM_ARGS.
1731 (add_phi_arg): Add a PHI argument to the slot given by
1733 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
1734 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
1735 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
1736 argument by looking at PHI_ARG_DEF.
1737 (verify_phi_args): Check for a missing PHI argument. Remove
1738 the check for duplicate PHI arguments.
1739 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
1740 (phi_arg_d): Remove e.
1742 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
1743 by restricting to the case with two outgoing edges.
1745 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
1747 * config/s390/s390.c (s390_backchain_string): Removed.
1748 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
1749 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
1750 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
1751 TARGET_KERNEL_BACKCHAIN to reflect the new options.
1752 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
1753 (TARGET_KERNEL_BACKCHAIN): Removed.
1754 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
1755 (TARGET_PACKED_STACK): New macro.
1756 (TARGET_SWITCHES): New switches added.
1757 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
1759 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
1760 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
1761 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
1762 the change in target switch semantics.
1763 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
1764 (TARGET_DEFAULT): MASK_BACKCHAIN added.
1765 * doc/invoke.texi: Added documentation for the new/changed options.
1767 2004-11-23 Uros Bizjak <uros@kss-loka.si>
1769 PR rtl-optimization/18614
1770 * simplify-rtx.c (simplify_binary_operation): Do not
1771 simplify inner elements of constant arguments of
1774 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1776 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
1779 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1781 * tree-phinode.c (make_phi_node): Use a new variable,
1782 capacity, to receive the return value of ideal_phi_node_len.
1784 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1786 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
1787 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
1788 __gthread_recursive_mutex_init_function.
1789 (__gthread_key_create): Properly cast -1.
1790 (__gthread_recursive_mutex_init_function): New function.
1791 (__gthread_recursive_mutex_lock): Rewrite.
1792 (__gthread_recursive_mutex_trylock): Likewise.
1793 (__gthread_recursive_mutex_unlock): Likewise.
1795 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1797 * config/c4x/t-rtems: New.
1798 * config.gcc: Reflect having added c4x/t-rtems.
1800 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1804 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
1805 lang_hooks.types.type_for_size instead of integer_type_node for the
1808 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1810 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
1812 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1814 * config/arm/t-rtems: New.
1815 * config.gcc: Reflect having added arm/t-rtems.
1817 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1819 * tree-cfg.c (tree_execute_on_growing_pred): New.
1820 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
1821 * tree-flow.h: Add a prototype for
1822 reserve_phi_args_for_new_edge.
1823 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
1824 (add_phi_arg): Don't resize a PHI array.
1826 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1828 * config.gcc: Add avr-*-rtems*.
1829 * config/avr/t-rtems: New.
1830 * config/avr/rtems.h: New.
1832 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1834 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
1835 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
1836 Add comment to function.
1838 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1841 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
1843 PR rtl-optimization/14838
1844 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
1846 (get_last_nonnote_insn): Don't assume last insn is a note.
1848 2004-11-22 Roger Sayle <roger@eyesopen.com>
1850 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
1851 to fold_binary_to_constant.
1852 (nondestructive_fold_unary_to_constant): Likewise, rename to
1853 fold_unary_to_constant.
1854 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
1855 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
1856 (nondestructive_fold_unary_to_constant): Likewise.
1857 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
1858 and fold_binary_to_constant.
1859 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1860 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
1861 and EXEC_UNARY with calls to fold_*nary_to_constant.
1862 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1863 (idx_find_step): Replace uses of EXEC_BINARY with calls to
1864 fold_binary_to_constant.
1866 2004-11-22 Nick Clifton <nickc@redhat.com>
1868 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1869 initialisation of 'e'.
1871 2004-11-22 Roger Sayle <roger@eyesopen.com>
1873 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
1874 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
1875 automatically for targets without TARGET_80387.
1876 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
1877 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
1878 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
1879 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
1880 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
1881 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
1882 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
1883 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
1884 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
1885 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
1886 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
1887 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
1888 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
1889 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
1890 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
1891 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
1892 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
1893 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
1894 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
1895 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
1897 2004-11-22 Dale Johannesen <dalej@apple.com>
1899 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
1900 properly and comment.
1902 2004-11-22 James A. Morrison <phython@gcc.gnu.org
1904 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
1905 (sparc_init_builtins): New function.
1906 (sparc_init_vis_builtins): Create builtin functions for VIS
1908 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
1909 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
1910 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
1911 (def_builtin): New macro for creating builtin functions.
1912 (P): New mode macro for pointer types.
1913 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
1914 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
1915 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
1916 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
1917 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1918 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
1919 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
1921 2004-11-22 Devang Patel <dpatel@apple.com>
1923 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
1925 2004-11-22 Devang Patel <dpatel@apple.com>
1927 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
1928 (if_convertible_phi_p): ... new name.
1929 (if_convertable_modify_expr_p): Rename to ...
1930 (if_convertible_modify_expr_p): ... new name.
1931 (if_convertable_stmt_p): Rename to ...
1932 (if_convertible_stmt_p): ... new name.
1933 (if_convertable_bb_p): Rename to ...
1934 (if_convertible_bb_p): ... new name.
1935 (if_convertable_loop_p): Rename to ...
1936 (if_convertible_loop_p): ... new name.
1938 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1941 * configure.ac (threading): Accept 'posix95'.
1942 * configure: Regenerate.
1943 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
1944 include sol26.h and default to posix95 threads if have_pthread_h.
1945 (sparc-*-solaris2*): Likewise.
1946 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
1947 * gthr-posix95.h: New file.
1948 * config/sol26.h: New file.
1949 * doc/install.texi (--enable-threads): Document 'posix95'.
1951 2004-11-23 Ben Elliston <bje@au.ibm.com>
1953 * pointer-set.h (pointer_set_contains): Remove.
1954 * pointer-set.c (pointer_set_contains): Likewise.
1956 2004-11-22 Dale Johannesen <dalej@apple.com>
1958 * calls.c (expand_call): Do not call preserve_temp_slots.
1960 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1962 * tree-flow.h: Remove the prototype for remove_phi_arg.
1963 Add a prototype for remove_phi_args.
1964 * tree-phinodes.c (remove_phi_arg): Remove.
1965 (remove_phi_args): New.
1966 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
1969 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
1970 after making an edge.
1971 (remove_edge): Call execute_on_shrinking_pred before removing
1973 (redirect_edge_succ): Call execute_on_growing_pred and
1974 execute_on_shrinking_pred.
1975 * cfghooks.c (execute_on_growing_pred): New.
1976 (execute_on_shrinking_pred): Likewise.
1977 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
1978 execute_on_shrinking_pred.
1979 Add prototypes for execute_on_growing_pred and
1980 execute_on_shrinking_pred.
1981 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
1982 execute_on_growing_pred and execute_on_shrinking_pred.
1983 (cfg_layout_rtl_cfg_hook): Likewise.
1984 * tree-cfg.c (tree_cfg_hooks): Likewise.
1986 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
1987 (tree_cfg_hooks): Use it.
1988 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
1989 (ssa_redirect_edge): Don't call remove_phi_arg_num.
1991 * tree-phinodes.c (remove_phi_arg_num): Make it static.
1992 * tree-flow.h: Remove the corresponding prototype.
1994 * tree-ssa.c (ssa_remove_edge): Remove.
1995 * tree-flow.h: Remove the corresponding prototype.
1996 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
1997 * basic-block.h: Likewise.
1998 * tree-if-conv.c: Likewise.
1999 * tree-ssa-threadupdate.c: Likewise.
2001 2004-11-23 Ben Elliston <bje@au.ibm.com>
2003 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
2004 @table to list the BSI methods. Use individual @findex directives
2005 instead of one with a comma-separated list of index entries.
2007 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
2009 PR tree-optimization/18529
2010 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
2011 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
2012 (fold): Call fold_to_nonsharp_ineq_using_bound.
2013 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
2014 (number_of_iterations_cond): Fold the expressions before futher
2016 (tree_simplify_using_condition): Handle case when cond or expr is
2017 an EQ_EXPR specially.
2019 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
2021 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
2022 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
2024 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2025 Fariborz Jahanian <fjahanian@apple.com>
2027 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
2029 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
2030 Align 16 byte and larger vectors like Altivec.
2031 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
2032 (function_arg): Same.
2033 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
2035 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2038 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
2041 2004-11-22 Richard Henderson <rth@redhat.com>
2043 * function.c (assign_parm_setup_block): Revert 11-13 change to
2044 forcably re-mode a (possibly BLKmode) hard register.
2046 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2048 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
2050 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2052 * config/rs6000/power4.md: Remove delay between dispatch and issue
2053 associated with dispatch group slots 3 and 4.
2054 * config/rs6000/power5.md: Same.
2056 2004-11-21 Jeff Law <law@redhat.com>
2058 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
2060 * cfgbuild.c (make_edges): Likewise.
2061 * cfghooks.c (can_duplicate_block_p): Likewise.
2062 * cfgloop.c (loop_latch_edge): Likewise.
2063 * cfgloopmanip.c (force_single_succ_latches): Likewise.
2064 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2065 * predict.c (predict_loops, propagate_freq): Likewise.
2066 * tracer.c (tail_duplicate): Likewise.
2067 * tree-cfg.c (disband_implicit_edges): Likewise.
2068 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
2070 2004-11-22 Nick Clifton <nickc@redhat.com>
2072 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2073 initialisation of 'e'.
2075 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
2077 PR rtl-optimization/18599
2078 * regrename.c (copyprop_hardreg_forward): Speed up by putting
2079 BB_VISITED flags on basic blocks as we process them.
2081 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
2084 * config/rs6000/altivec.md (VI_char): New mode attribute.
2085 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
2086 (add<mode>3): ... this.
2087 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
2088 (sub<mode>3): ... this.
2089 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
2090 (smax<mode>3): ... this.
2091 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
2092 (smin<mode>3): ... this.
2093 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
2094 (umax<mode>3): ... this.
2095 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
2096 (umin<mode>3): ... this.
2097 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2098 (and<mode>3): ... this.
2099 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2100 (ior<mode>3): ... this.
2101 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
2102 (xor<mode>3): ... this.
2103 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2104 (and<mode>3): ... this.
2105 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2106 (ior<mode>3): ... this.
2107 (altivec_vnor): Replace with ...
2108 (altivec_nor<mode>): ... this.
2109 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
2110 (one_cmpl<mode>2): ... this.
2111 (altivec_vandc): New expander.
2112 (*andc<mode>3): New insn.
2113 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
2115 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
2118 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
2119 creating iv instead of integer_type.
2120 (vect_build_loop_niters): Remove redundant code.
2121 (vect_transform_loop_bound): Removed (duplicates functionality of
2122 make_loop_iterate_ntimes.
2123 (vect_gen_niters_for_prolog_loop): Add documentation. Call
2124 lang_hooks.types.type_for_size to create a type of the required size.
2125 Use that type instead of integer_type. Remove redundant code.
2126 (vect_update_niters_after_peeling): Use type of niters instead of
2128 (vect_transform_loop): Unify handling of known and unknown loop bound
2129 cases. Call make_loop_iterate_ntimes instead of
2130 vect_transform_loop_bound.
2132 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2135 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
2138 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
2141 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
2143 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2145 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
2147 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
2148 m32r/libgcc-glibc.ver.
2149 * config/m32r/libgcc-glibc.ver: Add New file.
2151 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
2153 * bitmap.h (struct bitmap_obstack): New obstack type.
2154 (struct bitmap_head_def): Replace using_obstack with obstack
2156 (bitmap_default_obstack): New.
2157 (bitmap_initialize): Make inline, does not do allocation.
2158 (bitmap_release_memory): Remove.
2159 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
2160 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2161 bitmap_obstack_free, bitmap_malloc_free): Declare.
2162 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
2163 (BITMAP_FREE): Replace with ...
2164 (BITMAP_OBSTACK_FREE): ... this.
2165 (BITMAP_XFREE): Adjust.
2166 (BITMAP_INIT_ONCE): Remove.
2167 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
2168 (bitmap_default_obstack): New.
2169 (bitmap_elem_to_freelist): Adjust.
2170 (bitmap_element_allocate): Adjust. Break initialization into ...
2171 (bitmap_obstack_initialize): ... here.
2172 (bitmap_release_memory): Replace with ...
2173 (bitmap_obstack_release): ... this.
2174 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2175 bitmap_obstack_free, bitmap_malloc_free): New.
2176 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
2178 (bitmap_initialize): Move to bitmap.h.
2179 * gengtype.c (open_base_files): Add obstack.h to ifiles.
2180 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
2181 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
2182 (INITIALIZE_REG_SET): Remove.
2183 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
2184 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
2185 (flow_obstack): Do not declare.
2186 (reg_obstack): Declare.
2187 * regs.h: Include obstack.h.
2188 * tree-optimize.c (tree_rest_of_compilation): Initialize and
2189 release bitmap obstack here.
2190 * bb-reorder.c: #include regs, not basic-block.
2191 (fix_crossing_conditional_branches): Allocate regsets from
2193 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
2195 * caller-save.c: Include regs.h earlier.
2196 * cfg.c: Do not include basic-block.h or obstack.h.
2197 (reg_obstack): Define.
2198 * cfganal.c: Include obstack.h
2199 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
2201 * cfglayout.c: Do not include obstack.h.
2202 (flow_obstack): Remove declaration.
2203 (cfg_layout_duplicate_bb): Use reg_obstack.
2204 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
2205 * cfgrtl.c (rtl_split_block): Use reg_obstack.
2206 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
2207 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
2208 (cfg_layout_split_edge): Use reg_obstack.
2209 * cse.c: Include regs.h earlier.
2210 * ddg.c: Do not include basic-block.h.
2211 * dominance.c: Inlude obstack.h.
2212 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
2213 (calculate_global_regs_live): Likewise.
2214 (allocate_bb_life_data): Use reg_obstack.
2215 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
2216 * global.c: Do not include basic-block.h.
2217 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
2218 * graph.c: Include obstack.h.
2219 * haifa-sched.c: Do not include basic-block.h.
2220 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
2221 * local-alloc.c: Do not include basic-block.h.
2222 * loop-init.c, loop-invariant.c: Include obstack.h.
2223 * loop-iv.c: Likewise.
2224 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
2226 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
2227 * modulo-sched.c: Do not include basic-block.h.
2228 * passes.c (rest_of_handle_final): Do not call
2229 regset_release_memory.
2230 * ra-debug.c: Include regs.h earlier. Do not include
2232 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
2233 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
2234 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
2235 (regset_release_memory): Remove.
2236 * resource.c: Do not include basic-block.h.
2237 * rtlanal.c: Do not include basic-block.h.
2238 * sbitmap.c: Include obstack.h.
2239 * sched-deps.c: Do not include basic-block.h.
2240 (reg_pending_sets_head, reg_pending_clobbers_head,
2241 reg_pending_uses_head): Remove.
2242 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
2243 * sched-ebb.c: Do not include basic-block.h.
2244 * sched-rgn.c: Likewise.
2245 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
2247 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
2248 * tree-sra.c (decide_instantiations): Adjust bitmap
2250 * tree-ssa-dce.c: Include obstack.h.
2251 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
2252 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
2253 (bitmap_set_new): Likewise.
2254 (init_pre): Initialize bitmap obstack.
2255 (fini_pre): Release bitmap obstack.
2256 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
2257 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
2258 (mark_for_rewrite, unmark_for_rewrite): Likewise.
2259 (marked_ssa_names): Likewise.
2260 (init_ssanames): Use BITMAP_XMALLOC.
2261 (fini_ssanames): Use BITMAP_XFREE.
2262 * web.c: Include obstack.h
2264 2004-11-22 Nick Clifton <nickc@redhat.com>
2266 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
2267 predecessor in the first for-loop.
2269 2004-11-21 Stan Shebs <shebs@apple.com>
2271 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
2273 (function_arg): Move darwin test up, sniff mode first for
2274 efficiency, test for union type.
2276 2004-11-21 Dale Johannesen <dalej@apple.com>
2278 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
2280 2004-11-21 Jeff Law <law@redhat.com>
2282 * tree-ssa.c (verify_use): Fix comment.
2283 (verify_phi_args): Check that the number of incoming edges matches
2284 the number of PHI arguments. Check that each PHI argument is
2285 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
2286 dead or duplicated edges. Clear e->aux earlier and avoid separate
2287 loop to clear e->aux and test for missed edges.
2288 (verify_ssa): Remove first walk over statements. Move checking
2289 of PHI args into verify_phi_args. Move checking of statements
2290 with aliased stores and V_MAY_DEFS into the remaining loop over
2291 the statements. Register defs by walking through the formal
2294 2004-11-21 Roger Sayle <roger@eyesopen.com>
2297 * dojump.c (compare_from_rtx): Clarify mode argument in function
2298 description. Correct order of mode/cmp_mode arguments in call to
2299 simplify_relational_operation. Check "tem" for COMPARISON_P.
2301 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
2302 David Edelsohn <edelsohn@gnu.org>
2305 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
2306 synthetic vectors in memory.
2307 (function_arg_boundary): Align large synthetic vectors.
2308 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
2310 2004-11-21 Jeff Law <law@redhat.com>
2312 * cfg.c (update_bb_profile_for_threading): Do not rescale the
2313 successor probabilities if they are not going to change. Pull
2314 division out of loop if we do need to rescale successor probabilities.
2316 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
2317 index of the destination block for the hash value rather than
2320 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
2322 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
2323 checks for neither argument being an array or pointer (swapping
2324 the arguments if necessary), the array argument being a pointer to
2325 or array of functions and for -Wchar-subscripts warnings upfront.
2327 2004-11-20 Jeff Law <law@redhat.com>
2329 * regrename.c (copyprop_hardreg_forward): Only search for a
2330 previously processed block if the current block only has one
2333 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
2335 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
2337 * config/arm/arm.c: Follow spelling conventions.
2339 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
2341 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
2342 a bit in tune_flags.
2343 (const_double_needs_minipool): Likewise. Split most of the code out
2345 (arm_const_double_inline_cost): ... new function here.
2346 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
2347 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
2348 word constants of length 2, 3 and 4 insns respectively.
2349 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
2350 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
2351 constraints. Set insn lenghts accordingly.
2353 2004-11-19 Jeff Law <law@redhat.com>
2355 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
2356 a hash table. Extensive modifications throughout to support
2359 (struct local_info): New.
2360 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
2362 (redirection_data): Now a hashtable.
2363 (redirection_data_hash, redirection_data_eq): New.
2364 (lookup_redirection_data, create_duplicates): New.
2365 (create_edge_and_update_destionation_phis): New.
2366 (fixup_template_block, redirect_edges): New.
2367 (thread_block): Use hash table traversals instead of loops over
2368 varray entries or incoming edge vectors.
2370 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2372 * basic-block.h (edge_def): Add dest_idx.
2373 * cfg.c (unchecked_make_edge): Initialize dest_idx.
2374 (remove_edge): Simplify the disconnection of an edge from its
2376 (redirect_edge_succ): Likewise.
2377 * cfghooks.c (verify_flow_info): Check the consistency of
2378 dest_idx for each edge.
2380 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
2382 * simplify-rtx.c (simplify_ternary_operation): Use
2385 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2387 * tree-cfg.c (reinstall_phi_args): New.
2388 (tree_split_edge): Use it after redirecting an edge. Don't
2389 modify PHI_ARG_EDGE.
2391 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2393 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
2394 if checking is enabled.
2396 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
2398 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
2399 too many nested scopes.
2401 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2404 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
2405 changed to suppoer uses-after-loop and to void creating flow paths
2406 that shouldn't exist.
2407 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
2408 Modified to fit the new peeling scheme. Avoid quadratic behavior.
2409 (slpeel_add_loop_guard): Takes additional argument.
2410 (slpeel_verify_cfg_after_peeling): New function.
2411 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
2412 documentation. Use 'exit-bb' instead of creating 'new-bb'.
2413 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
2414 the new peeling scheme.
2415 (copy_phi_nodes): Function removed. Its functionality moved to
2416 update_phis_for_duplicate_loop.
2417 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
2418 moved here. Added documentation. Modified to fit the new peeling scheme.
2419 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
2420 needed - done in slpeel_tree_peel_loop_to_edge.
2421 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
2422 (vect_do_peeling_for_loop_bound): Add documentation. Call
2423 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
2424 with additional argument.
2425 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
2427 (vect_finish_stmt_generation): Avoid 80 column oveflow.
2429 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2431 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
2433 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
2434 without last two arguments. Update single_exit of loops.
2435 (vect_update_niters_after_peeling): Removed. Its functionality was
2436 moved to vect_do_peeling_for_alignment.
2437 (vect_do_peeling_for_loop_bound): New name for function previously
2438 called vect_transform_for_unknown_loop_bound.
2439 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
2440 instead of code that duplicates the same functionality.
2441 (vect_do_peeling_for_alignment): Functionality of
2442 vect_update_niters_after_peeling moved here.
2443 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
2444 previously named vect_transform_for_unknown_loop_bound - for both known
2445 and unknown loop bound cases.
2447 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2449 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
2450 previously called verify_loop_for_duplication. All conditions compacted
2451 into one compound condition. Removed debug dumps.
2452 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
2453 functionality moved to vect_can_advance_ivs_p, and some to
2454 vect_analyze_loop_form.
2455 (vect_can_advance_ivs_p): New function. Contains functionality that was
2456 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
2457 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
2458 (vect_analyze_operations): Call vect_can_advance_ivs_p and
2459 slpeel_can_duplicate_loop_p.
2460 (vect_get_loop_niters): Added documentation.
2461 (vect_analyze_loop_form): Check the loop entry always - not only in case
2462 of unknown loop bound. Create preheader and exit bb if necessary. Apply
2463 a check that used to take place in
2464 vect_analyze_loop_with_symbolic_num_of_iters.
2465 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
2466 Remove redundant call to rewrite_into_loop_closed_ssa.
2467 (vect_compute_data_refs_alignment): Removed obsolete comment.
2469 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2471 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
2472 function previously called tree_duplicate_loop_to_edge.
2473 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
2474 previously called tree_duplicate_loop_to_edge_cfg.
2475 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
2477 (slpeel_update_phi_nodes_for_guard): Likewise.
2478 (slpeel_make_loop_iterate_ntimes): Likewise.
2479 (slpeel_add_loop_guard): Likewise.
2480 (allocate_new_names, free_new_names): Function declaration moved to top
2482 (rename_use_op, rename_def_op): Likewise.
2483 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
2484 (vect_generate_tmps_on_preheader): Function declaration moved.
2485 (vect_transform_for_unknown_loop_bound): Added missing function
2488 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
2491 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
2492 Define a VEC(tree_on_heap) for head.
2493 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2494 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2495 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
2496 the VEC(tree_on_heap) function. Also free it before returning.
2497 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2498 for block_defs_stack.
2499 (restore_currdefs_to_original_value): Use VEC_length instead of
2500 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2501 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2502 for block_defs_stack.
2503 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2504 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2505 for block_defs_stack.
2506 (ssa_register_new_def): Likewise.
2507 (ssa_rewrite_initialize_block): Likewise.
2508 (rewrite_finalize_block): Use VEC_length instead of
2509 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2510 (ssa_rewrite_finalize_block): Likewise.
2511 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2512 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
2513 (rewrite_blocks): Initialize block_defs_stack with
2514 the VEC(tree_on_heap) function. Also free it before returning.
2515 (rewrite_ssa_into_ssa): Likewise.
2517 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
2519 * config/darwin.c (machopic_data_defined_p): return 1 for
2520 MACHOPIC_DEFINED_FUNCTION.
2522 2004-11-19 Jeff Law <law@redhat.com>
2524 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
2527 2004-11-19 Paul Brook <paul@codesourcery.com>
2530 * varasm.c (default_assemble_integer): Allow pointer-sized values.
2533 2004-11-19 Nick Clifton <nickc@redhat.com>
2535 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
2536 zero_extension and lshiftrt insns.
2537 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
2539 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
2540 to handle bp and bn insn patterns with a zero_extend rtx
2543 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
2545 * config/arm/arm.md (generic_sched): Make const.
2547 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2549 * emit-rtl.c (classify_insn): Make it static.
2550 * rtl.h: Remove the corresponding prototype.
2552 * integrate.c (has_func_hard_reg_initial_val,
2553 get_func_hard_reg_initial_val): Make them static.
2554 * integrate.h: Remove the corresponding prototypes.
2556 2004-11-19 Ben Elliston <bje@au.ibm.com>
2558 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
2559 (dw2_asm_output_delta_sleb128): Likewise.
2560 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
2561 (dw2_asm_output_delta_sleb128): Likewise.
2563 2004-11-19 Adam Nemet <anemet@lnxw.com>
2565 * tree-ssa-alias.c: Fix comment.
2567 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2569 * tree-outof-ssa.c: Fix a comment typo.
2571 2004-11-19 Ben Elliston <bje@au.ibm.com>
2573 * predict.h (predict_insn): Remove extern declaration.
2574 * predict.c (predict_insn): Make static.
2576 2004-11-19 Alan Modra <amodra@bigpond.net.au>
2578 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
2580 2004-11-18 Nicolas Pitre <nico@cam.org>
2582 * config/arm/arm.c (const_double_needs_minipool): New function to
2583 determine if a CONST_DOUBLE should be pushed to the minipool.
2584 (note_invalid_constants): Use it.
2586 2004-11-18 Paul Brook <paul@codesourcery.com>
2588 * config/arm/arm.c (target_float_switch): New variable..
2589 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
2590 target_float_switch.
2591 * config/arm/arm.h (target_float_switch): Declare.
2592 (ARM_FLAG_SOFT_FLOAT): Remove.
2593 (TARGET_SWITCHES): Remove hard-float and soft-float.
2594 (TARGET_OPTIONS): Add hard-float and soft-float.
2595 (TARGET_DEFAULT_FLOAT_ABI): Define.
2596 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
2597 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
2598 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
2599 * config/arm/netbsd-elf.h: Ditto.
2600 * config/arm/netbsd.h: Ditto.
2601 * config/arm/pe.h: Ditto.
2602 * config/arm/unknown-elf.h: Ditto.
2603 * config/arm/wince-pe.h: Ditto.
2604 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2605 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2606 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2608 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2610 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
2611 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
2612 altivec_lvx_4sf): Rename and replace with ...
2613 (altivec_lvx_<mode>): ... mode macro version.
2614 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
2615 altivec_stvx_4sf): Rename and replace with ...
2616 (altivec_stvx_<mode>): ... mode macro version.
2617 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
2618 (mov<mode>): ... mode macro version.
2619 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
2620 *movv4sf_internal1): Replace with ...
2621 (*mov<mode>_internal): ... mode macro version.
2622 (get_vrsave_internal, *set_vrsave_internal, *save_world,
2623 *restore_world): Unquote output statements.
2624 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
2625 altivec_expand_st_builtin): Adjust insn names.
2627 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
2629 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
2631 (rs6000_override_options): Likewise.
2632 (spe_build_register_parallel): Handle complex doubles on e500v2.
2633 (rs6000_spe_function_arg): Likewise.
2634 (function_arg): Likewise.
2635 (rs6000_function_value): Likewise.
2636 (rs6000_libcall_value): Likewise.
2638 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
2640 * ifcvt.c (find_if_block): Move the check for the number of edges
2641 above the loops checking for complex edges.
2642 Remove the counting of edges as we use EDGE_COUNT now.
2644 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2646 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2647 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
2649 2004-11-18 Andreas Schwab <schwab@suse.de>
2651 * config/i386/i386.md (define_peephole2): Revert last change.
2653 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2655 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2656 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
2658 2004-11-18 Diego Novillo <dnovillo@redhat.com>
2660 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
2663 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
2665 * Makefile.in (macro_list): Depend on s-macro_list.
2666 (s-macro_list): New target.
2668 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2671 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2672 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2673 (fold_range_test): Adjust.
2674 (fold_truthop): Use it.
2675 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2676 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2678 2004-11-18 Uros Bizjak <uros@kss-loka.si>
2680 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
2681 insn split constraint.
2682 (define_peephole2): Remove unneeded "&& 1" from peephole2
2685 2004-11-18 Ben Elliston <bje@au.ibm.com>
2687 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
2688 element for bsi_prev; use @findex instead.
2690 2004-11-18 Ben Elliston <bje@au.ibm.com>
2692 * opts.h (add_input_filename): Remove extern declaration.
2693 * opts.c (add_input_filename): Make static.
2695 2004-11-17 Mark Mitchell <mark@codesourcery.com>
2697 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
2700 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2702 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
2703 * system.h: Poison it.
2704 * doc/tm.texi: Delete its documentation.
2706 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2707 Mark Mitchell <mark@codesourcery.com>
2709 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
2710 * config/i386/i386.c (i386_solaris_elf_named_section): New
2712 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
2713 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
2715 (ASM_QUAD): Don't undefine for biarch targets.
2716 * config/i386/t-sol2: Introduce multilib support.
2718 2004-11-18 Ben Elliston <bje@au.ibm.com>
2720 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
2722 2004-11-18 Ben Elliston <bje@au.ibm.com>
2724 * cgraph.h: Replace "it's" with "its" throughout.
2726 2004-11-18 Ben Elliston <bje@au.ibm.com>
2728 * doc/rtl.texi (Flags): Grammar fix.
2730 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2732 * expmed.c (alg_code): Add alg_unknown.
2733 (alg_hash_entry): New.
2734 (NUM_ALG_HASH_ENTRIES): Likewise.
2735 (alg_hash): Likewise.
2736 (synth_mult): Cache the result into alg_hash.
2738 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2740 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
2741 config/rs6000/libgcc-ppc64.ver.
2743 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2745 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
2746 checking if an unconditional return is followed by a barrier.
2748 * jump.c (condjump_p): Remove unreachable code.
2750 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
2751 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
2752 tree-ssa-live.h, tree.h: Remove unused prototypes.
2754 2004-11-17 Jeff Law <law@redhat.com>
2756 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
2757 (edge_to_cases_elt): Renamed from edge_to_case_leader.
2758 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
2759 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
2760 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
2761 (get_cases_for_edge): New function.
2762 (start_recording_case_labels, end_recording_case_labels): Similarly.
2763 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
2764 chain equivalent CASE_LABEL_EXPRs together.
2765 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
2766 (make_switch_expr_edges): Do not record edge/cases here.
2767 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
2768 (split_critical_edges): Record cases around the edge splitting code.
2769 (cleanup_dead_labels): Use CASE_LABEL again.
2770 (tree_redirect_edge_and_branch): If we have a mapping from edge
2771 to cases, use it to handle redirections. Else do it the slow way.
2772 * tree.h (CASE_LEADER_OR_LABEL): Kill.
2773 (CASE_LABEL): Revert to just looking at the tree's second operand.
2774 * tree.c (get_case_label): Kill.
2776 2004-11-17 Diego Novillo <dnovillo@redhat.com>
2778 PR tree-optimization/18307
2779 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
2780 'orig' are the same node.
2781 (collect_points_to_info_r): Do not call merge_pointed_to_info
2782 when the PHI argument is identical to the LHS.
2784 2004-11-17 Steven Bosscher <stevenb@suse.de>
2786 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
2787 to insert the exit or entry block.
2788 (ssa_prop_init): Use add_control_edge to seed the algorithm.
2790 2004-11-16 Zack Weinberg <zack@codesourcery.com>
2792 * mkmap-flat.awk, mkmap-symver.awk: If the last version
2793 assigned to a symbol was '%exclude', do not emit it anywhere.
2794 If leading_underscore is true, prefix all symbols from the
2795 version scripts with a leading underscore before comparing
2796 them with nm output or emitting them. Remove support for dot
2798 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
2799 (SHLIB_MAPFILES): Use libgcc-std.ver.
2800 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
2801 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
2802 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
2803 libgcc-excl.ver and libgcc-glibc.ver.
2805 * config/sh/libgcc-excl.ver: New file.
2806 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
2808 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2810 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
2811 the test when the edge has the opposite meaning, not when
2812 the first argument is invariant.
2814 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
2816 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
2818 (rs6000_complex_function_value): Handle e500 v2 variant.
2820 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2822 Fix PR tree-optimization/18519
2824 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
2825 * tree-pass.h: Add TODO_cleanup_cfg.
2826 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
2827 (ccp_finalize): Remove call to cleanup_cfg.
2828 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
2829 (pass_cd_dce): Ditto.
2830 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
2831 dump_function_to_file.
2832 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
2834 (pass_ch): Add TODO_cleanup_cfg.
2835 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
2837 (pass_loop_done): Add TODO_cleanup_cfg.
2838 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
2839 (tree_ssa_phiopt): Remove call to cleanup_cfg.
2841 2004-11-16 Devang Patel <dpatel@apple.com>
2843 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
2845 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2847 * expmed.c, ra-colorize.c: Fix comment typos.
2849 * doc/tm.texi: Fix typos.
2851 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
2852 Mark Mitchell <mark@codesourcery.com>
2855 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
2858 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2860 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
2861 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
2863 2004-11-16 Devang Patel <dpatel@apple.com>
2865 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
2867 2004-11-16 Eric Christopher <echristo@redhat.com>
2869 * config/mips/mips.c: Use rtl _P predicates.
2870 * config/mips/mips.h: Ditto.
2871 * config/mips/mips.md: Ditto.
2873 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
2875 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
2878 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2880 * config/s390/s390.c (s390_cc_modes_compatible): New function.
2881 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
2883 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
2886 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
2887 before and after the insns for getting GOT address in non-PIC
2888 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
2891 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2893 * gcc/cse.c (struct change_cc_mode_args): New structure.
2894 (cse_change_cc_mode_insn): New function.
2895 (cse_change_cc_mode): Use validate_change to perfom changes.
2896 (cse_change_cc_mode_insns, cse_condition_code_reg):
2897 Call cse_change_cc_mode_insn.
2899 2004-11-16 Steven Bosscher <stevenb@suse.de>
2903 2004-11-16 Steven Bosscher <stevenb@suse.de>
2905 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
2907 2004-11-15 Dale Johannesen <dalej@apple.com>
2909 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
2911 2004-11-15 Dale Johannesen <dalej@apple.com>
2913 * profile.c (compute_branch_probabilities): Prevent
2914 crash with EH in RTL-based profiling.
2916 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2918 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
2920 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
2921 * tree-ssa-dom.c (thread_across_edge): Likewise.
2922 * tree-vectorizer.c (vect_transform_loop_bound): Replace
2923 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
2926 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
2927 (tree_flow_call_edges_add): Update the call to
2928 bsi_commit_edge_inserts.
2929 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2930 * profile.c (branch_prob): Likewise.
2931 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
2932 * tree-sra.c (scalarize_function): Likewise.
2933 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2934 * tree-ssa-pre.c (fini_pre): Likewise.
2935 * tree-flow.h: Update the prototype for
2936 bsi_commit_edge_inserts.
2938 2004-11-15 Eric Christopher <echristo@redhat.com>
2940 * sched-deps.c (set_sched_group_p): Delete.
2941 (delete_all_dependencies): New function.
2942 (fixup_sched_groups): Use. New function.
2943 (sched_analyze_insn): Use.
2945 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2947 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
2948 RROTATE_EXPR or unknown code.
2949 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
2950 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
2951 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
2954 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2957 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
2958 after processing the declarator.
2960 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
2962 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
2964 (altivec_vspltb): Same.
2965 (altivec_vspltw): Same.
2966 (altivec_vspltisb): Same.
2967 (altivec_vspltish): Same.
2968 (altivec_vspltisw): Same.
2969 (altivec_vspltisw_v4sf): Same.
2970 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
2972 Move "End of vector xor's" comment to the right place.
2974 2004-11-15 Steve Ellcey <sje@cup.hp.com>
2976 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
2977 instead of nonimmediate_operand.
2979 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2981 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2982 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
2983 * config/sol2.c (solaris_output_init_fini): Update calls to
2984 ASM_OUTPUT_CALL. Include "rtl.h".
2986 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2988 * config/sol2-c.c (cmn_err_char_table): Add "p".
2990 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2992 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
2993 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
2995 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2997 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
2998 within the multilib directory.
3000 2004-11-15 Nick Clifton <nickc@redhat.com>
3002 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
3003 builtin assert of cpu=xstormy16.
3005 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
3007 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
3010 2004-11-14 Richard Henderson <rth@redhat.com>
3013 * calls.c (struct arg_data): Add parallel_value.
3014 (precompute_register_parameters): Set it.
3015 (load_register_parameters): Use it.
3016 (store_one_arg): Also set it here.
3018 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
3020 PR tree-optimization/18431
3021 * fold-const.c (associate_trees): Do not produce x + 0.
3022 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
3024 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
3026 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
3027 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
3029 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
3031 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
3033 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3035 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
3036 value-prof.c: Fix comment typos.
3038 2004-11-14 Stan Shebs <shebs@apple.com>
3040 Basic ABI changes for passing structs by value in 64-bit Darwin.
3041 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
3042 (rs6000_override_options): Set it for 64-bit Darwin.
3043 (rs6000_parse_abi_options): Add testing options to change it.
3044 (rs6000_return_in_memory): Test whether the type is one
3045 that can be passed in registers.
3046 (darwin64_function_arg_advance): New.
3047 (function_arg_advance): Call it, plus add recursion depth
3048 argument and test when counting off arguments.
3049 (rs6000_darwin64_function_arg): New.
3050 (function_arg): Call it.
3051 (setup_incoming_varargs): Add argument to function_arg_advance.
3052 (rs6000_darwin64_function_value): New.
3053 (rs6000_function_value): Call it.
3054 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
3055 * config/rs6000/rs6000-protos.h: Update decl of
3056 function_arg_advance.
3058 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
3061 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
3062 support TImode before adding __int128_t and __uint128_t types.
3064 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
3067 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
3068 (vect_transform_loop_bound): Set loop->nb_iterations.
3070 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
3071 Andrew Pinski <pinskia@physics.uc.edu>
3074 * tree-vectorize.c (vect_build_loop_niters): Do not insert
3075 NULL into the instruction stream. Initialize new_bb to NULL.
3076 (vect_update_ivs_after_vectorizer): Likewise.
3077 (vect_gen_niters_for_prolog_loop): Likewise.
3079 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
3081 PR tree-optimization/18431
3082 * tree-flow.h (stmt_references_memory_p): Declare.
3083 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
3084 * tree-ssa.c (stmt_references_memory_p): New function.
3086 2004-11-14 Andreas Schwab <schwab@suse.de>
3088 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
3091 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3093 * c-common.c (walk_stmt_tree): Remove.
3094 * c-common.h: Remove the corresponding prototype.
3096 * emit-rtl.c (push_to_full_sequence): Remove.
3097 * rtl.h: Remove the corresponding prototype.
3099 * cselib.c, expr.c: Fix comment typos.
3101 2004-11-13 Richard Henderson <rth@redhat.com>
3103 * calls.c (precompute_register_parameters): Force all PARALLELs
3104 into pseudo registers.
3105 (load_register_parameters): Copy PARALLELs into hard registers.
3106 * function.c (assign_parm_setup_block): Copy PARALLELS into
3107 pseudo registers. Do emit_group_store in conversion_insns.
3108 * expr.c (emit_group_load_1): Rename from emit_group_load, take
3109 tmps as an argument. Move final copy loop ...
3110 (emit_group_load): ... here. New function.
3111 (emit_group_load_into_temps, emit_group_move_into_temps): New.
3112 * expr.h: Declare them.
3114 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3116 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
3117 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
3118 with PHI_CHAIN where appropriate.
3120 2004-11-13 Dale Johannesen <dalej@apple.com>
3122 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
3123 (tree_block_label): Ditto.
3124 (flush_pending_stmts): Ditto.
3125 (insert_edge_copies): Ditto.
3126 (expr_invariant_in_loop_p): Ditto.
3127 (TDF_USE_OPS): Parenthesize definition.
3128 (TDF_USE_VOPS): Ditto.
3130 2004-11-13 David Edelsohn <edelsohn@gnu.org>
3132 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
3133 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
3135 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
3137 2004-11-14 Joseph Myers <joseph@codesourcery.com>
3139 * config/i386/i386.c (override_options): Move loop to set default
3140 tuning to correct place.
3142 2004-11-13 Zak Kipling <zak@transversal.com>
3145 * config/i386/i386.c (classify_argument): Fix infinite loop when
3146 passing object with 3 or more base classes by value.
3148 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3150 * doc/md.texi (constraints) <% modifier>: Mention that it is
3151 useless when the two alternatives are strictly identical.
3153 2004-11-13 Richard Henderson <rth@redhat.com>
3155 * expmed.c (extract_split_bit_field): Temporarily disable call to
3156 extract_force_align_mem_bit_field.
3158 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
3160 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
3163 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
3164 lambda-code.c, postreload.c, predict.c, tree-sra.c,
3165 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
3167 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
3169 * doc/install.texi (automake): Correctly document that everything now
3170 will use automake 1.9.3.
3172 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
3175 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
3176 TImode. Sorry for other non-complex larger-than-64-bit modes.
3177 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
3179 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
3181 * doc/install.texi (automake): Document that everything now uses 1.9.
3183 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
3185 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
3188 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
3190 * tree.h: Fix comment typos.
3192 2004-11-13 Steven Bosscher <stevenb@suse.de>
3194 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
3195 HARD_REGISTER_NUM_P.
3197 * cselib.c (new_cselib_val): Make comment correct and more detailed.
3198 * flow.c (mark_set_1): Likewise.
3200 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
3201 duplicate_eh_regions): Remove.
3202 * except.h (duplicate_eh_regions): Remove prototype.
3203 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
3204 global_const_equiv_varray): Remove.
3205 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
3206 global_const_equiv_varray, set_label_in_map): Remove prototypes,
3207 extern declaration, and #define.
3208 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
3209 (struct inline_remap): Remove.
3210 * varray.c (struct element): Remove entry for const_equiv_data.
3211 * varray.h (struct const_equiv_data): Remove.
3212 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
3213 (union varray_data_tag) <const_equiv>: Remove.
3214 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
3215 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
3217 * regstack.c (record_label_references): Remove unused function.
3219 * rtl.def (VALUE): Update comment.
3220 (LABEL_REF): Remove unused operand 2.
3221 * rtl.h (struct rtx_def): Update for removed accessor macros.
3222 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
3223 REG_LOOP_TEST_P): Remove.
3224 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
3225 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
3226 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
3228 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
3229 Eric Botcazou <ebotcazou@libertysurf.fr>
3232 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
3234 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
3235 (V32I): New macro for 32-bit modes.
3236 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
3237 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
3238 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
3239 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
3240 one_cmpldi_sp64): Use V64I instead of DI.
3241 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
3242 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
3243 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
3244 (nandv64i_vis, nandv32i_vis): New patterns.
3246 2004-11-12 Mike Stump <mrs@apple.com>
3248 * Makefile.in: Add html support.
3249 * java/Make-lang.in: Likewise.
3250 * fortran/Make-lang.in: Likewise.
3251 * treelang/Make-lang.in: Likewise.
3252 * doc/install.texi: Likewise.
3253 * doc/makefile.texi: Likewise.
3254 * doc/sourcebuild.texi: Likewise.
3256 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
3258 * tree-ssa-loop-manip.c: Fix a comment typo.
3260 2004-11-12 Mike Stump <mrs@apple.com>
3262 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
3263 renaming this node to Concept Index.
3264 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
3265 to more closely match gcc.texi.
3267 2004-11-12 Jeff Law <law@redhat.com>
3269 * tree-cfg.c (hashtab.h): Include.
3270 (struct edge_to_case_leader_elt): New structure.
3271 (edge_to_case_leader): New.
3272 (edge_to_case_leader_hash): New hashtable hasing function.
3273 (edge_to_case_leader_eq): New hashtable equality function.
3274 (record_switch_edge): New function.
3275 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
3276 (make_switch_expr_edges): Build the edge-to-case-leader
3277 hash table. Tear down the hash table when we're done.
3278 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
3280 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
3281 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
3282 to use new concept of case leaders to reduce overhead of
3283 redirecting outgoing edges from switch statements.
3284 * tree.c (get_case_label): New function.
3285 * tree.h (CASE_LABEL): Define in terms of get_case_label.
3286 (CASE_LEADER_OR_LABEL): Define.
3288 2004-11-12 Ziemowit Laski <zlaski@apple.com>
3290 * varasm.c (output_addressed_constants): For CONST_DECLs,
3291 output the initializer if present.
3293 2004-11-12 Ziemowit Laski <zlaski@apple.com>
3295 * config/rs6000/darwin.h: Fix confusing typo in comment.
3297 2004-11-12 Devang Patel <dpatel@apple.com>
3299 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
3301 2004-11-12 Devang Patel <dpatel@apple.com>
3303 * tree-if-conv.c (clean_predicate_lists): Use loop header
3306 2004-11-12 Richard Henderson <rth@redhat.com>
3309 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3310 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3311 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3312 * config/i386/i386-modes.def (XF): Use it.
3314 2004-11-11 Geoffrey Keating <geoffk@apple.com>
3316 * Makefile.in (macro_list): Use move-if-change to avoid spurious
3319 2004-11-12 Mark Mitchell <mark@codesourcery.com>
3322 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
3323 when deciding whether to pass a variable to
3324 cgraph_varpool_finalize_decl or assemble_variable.
3325 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
3327 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
3329 * tree-vectorizer.c: Fix a comment typo.
3331 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
3333 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
3335 2004-11-12 Diego Novillo <dnovillo@redhat.com>
3337 * tree-scalar-evolution.c (analyzable_condition): Remove
3338 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
3340 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
3342 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
3343 Remove m505/roe multilib variant.
3345 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3347 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
3348 to load from the stack.
3350 2004-11-12 Richard Henderson <rth@redhat.com>
3352 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
3353 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
3354 * toplev.h (FL2T__): Remove.
3355 (CLZ_HWI): Rename from FL2T_CLZ__.
3357 (floor_log2): Simplify.
3360 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
3362 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
3363 compute the first overlapping iterations.
3365 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
3368 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
3369 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
3371 2004-11-12 Steven Bosscher <stevenb@suse.de>
3373 PR tree-optimization/18419
3374 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
3375 pointer set instead of a bitmap.
3376 (walk_use_def_chains): Create, pass and clean up that pointer_set.
3378 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
3380 (init_alias_info): Allocate and zero it here.
3381 (delete_alias_info): Delete it here.
3382 (collect_points_to_info_for): Use it.
3384 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3386 * alias.c (record_alias_subset, addr_side_effect_eval):
3388 * alias.h: Remove the prototype for record_alias_subset.
3389 * expr.h: Remove the commented-out prototype for
3390 record_alias_subset.
3391 * rtl.h: Remove the prototype for addr_side_effect_eval.
3393 * cfglayout.c (choose_inner_scope): Make it static.
3394 * rtl.h: Remove the corresponding prototype.
3396 * cfgloopmanip.c (update_single_exits_after_duplication,
3397 unloop): Make them static.
3398 * cfgloop.h: Remove the corresponding prototypes.
3400 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
3402 * c-tree.h: Remove the corresponding prototypes.
3404 * explow.c (round_push): Make it static.
3405 * expr.h: Remove the corresponding prototype.
3407 * varasm.c (get_named_section_flags, decl_tls_model): Make
3409 * output.h: Remove the prototype for get_named_section_flags.
3410 * tree.h: Remove the prototype for decl_tls_model.
3412 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3414 * function.c (expand_function_end): Remove an "if" statement
3415 that always triggers.
3416 * stmt.c (expand_null_return_1): Likewise.
3418 2004-11-11 James E. Wilson <wilson@specifixinc.com>
3420 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
3421 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
3422 CLASS_MAX_NREGS): Likewise.
3424 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
3426 PR tree-optimization/17742
3427 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
3428 MINUS_EXPR correctly.
3430 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
3432 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
3433 Give up as soon as the evolution is known not computable.
3435 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3438 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
3439 mask64_1or2_operand.
3440 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
3441 to spot rlwinm opportunities.
3442 (and64_2_operand): Use mask_1or2_operand.
3443 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
3445 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
3447 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
3448 (vect_update_ivs_after_vectorizer): Update function documentation.
3449 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
3451 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3453 * config/arm/arm.c: Fix a comment typo.
3455 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3457 * bitmap.h (nBITMAP_WORD_BITS): Remove.
3458 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
3459 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
3461 (bitmap_first_set_bit): Return unsigned, use ctzl.
3462 (bitmap_last_set_bit): Remove.
3463 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
3465 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
3466 remove special case code for two word elements.
3467 (bitmap_last_set_bit): Remove.
3468 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
3469 bitmap_first_set_bit with bitmap_empty_p.
3470 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
3471 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
3472 bitmap_last_bit_set.
3474 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3477 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
3480 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
3481 unsigned equality compare when we know the operands are unsigned.
3483 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
3485 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
3486 __PIC__ and __pic__ only if TARGET_ABICALLS.
3487 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
3488 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
3489 -KPIC only if not -mno-abicalls.
3491 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
3492 * config/sparc/linux.h, config/sparc/linux64.h
3493 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
3495 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
3496 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
3497 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
3498 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
3500 2004-11-11 Paul Brook <paul@codesourcery.com>
3502 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
3503 register if current_function_uses_pic_offset_table is set.
3505 2004-11-10 David Edelsohn <edelsohn@gnu.org>
3507 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
3508 Change multi-instruction sequences to new attribute.
3509 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
3510 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
3511 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
3513 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
3515 * tree-data-ref.c (build_classic_dist_vector): If either loop
3516 is outside of the nest we asked about, the dependence can't
3518 (build_classic_dir_vector): Ditto.
3520 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
3522 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
3524 (force_var_cost): Determine cost of addition and multiplication more
3526 (get_computation_cost_at): Add cost for computing address elements to
3529 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
3530 one of the arguments of MINUS_EXPR is an address.
3531 (split_address_to_core_and_offset): New function.
3532 (ptr_difference_const): Handle case when one of the operands is a
3534 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
3535 (ptr_difference_cost): Pass addresses instead of objects to
3536 ptr_difference_const.
3538 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
3540 * tree.c (tree_check_failed): Emit general error if the list of
3541 node types is empty.
3543 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3545 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
3546 argument. When the union is passed in the 6th slot, build a
3547 PARALLEL with only one element.
3548 (function_arg): Adjust call to function_arg_union_value.
3549 (function_value): Likewise.
3551 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
3553 PR tree-optimization/17892
3554 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
3555 MINUS_EXPR operator.
3557 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
3560 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
3561 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
3563 2004-11-10 Steven Bosscher <stevenb@suse.de>
3565 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
3566 (struct basic_block_def): Remove local_set and cond_local_set
3567 fields. Update comment for global_live_at_start.
3568 * flow.c (calculate_global_regs_live): Allocate local_sets and
3569 cond_local_sets here as arrays of bitmaps previously stored in
3570 bb->local_set and bb->cond_local_set. Use xmalloc instead of
3571 obstack allocated bitmaps.
3573 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
3576 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
3579 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
3581 2004-11-09 Jeff Law <law@redhat.com>
3583 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
3584 argument holding last unvisited block. Start search for
3585 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
3586 (connect_infinite_loops_to_exit): Supply last unvisited block
3587 to flow_dfs_compute_reverse_execute.
3589 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
3591 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
3593 (floatunssidf2): Same.
3595 ("extendsfdf2"): New expander.
3596 (*extendsfdf2_fpr): Rename.
3597 (*truncdfsf2_fpr): Same.
3598 (*negdf2_fpr): Same.
3599 (*absdf2_fpr): Same.
3600 (*nabsdf2_fpr): Same.
3601 (*adddf3_fpr): Same.
3602 (*subdf3_fpr): Same.
3603 (*muldf3_fpr): Same.
3604 (*divdf3_fpr): Same.
3606 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
3607 ("spe_fix_truncdfsi2"): Same.
3608 (spe_floatunssidf2): Same.
3609 (spe_floatsidf2): Same.
3611 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3614 * c-common.c (fname_decl): Don't use line number of decl in
3617 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3619 * config/s390/s390-protos.h (s390_pool_operand): Remove.
3620 * config/s390/s390.c (s390_pool_operand): Likewise.
3621 (s390_extra_constraint_str): Handle 'B' constraints.
3622 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
3623 * config/s390/s390.md: Document 'B' constraints.
3624 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
3625 s390_pool_operand to prevent insns with two literal pool
3626 references. Make pattern commutative.
3627 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
3628 'B' constraint instead of s390_pool_operand.
3630 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3632 * tree-cfg.c (create_bb): Remove unnecessary memset.
3634 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3636 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
3637 (thread_block): Call flush_pending_stmt instead of
3640 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3642 * loop-iv.c (iv_number_of_iterations): Make it static.
3643 * cfgloop.h: Remove the corresponding prototype.
3645 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3647 * function.c (combine_temp_slots, assign_parms,
3648 expand_pending_sizes): Make them static.
3649 * tree.h: Remove the corresponding prototypes.
3651 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3653 * emit-rtl.c (copy_most_rtx): Remove.
3654 * rtl.h: Remove the corresponding prototype.
3656 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3658 * cfgloop.c (flow_loops_update): Remove.
3659 * cfgloop.h: Remove the corresponding prototype.
3661 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3663 * conflict.c (mark_reg, conflict_graph_compute): Remove.
3664 * basic-block.h: Remove the prototype for
3665 conflict_graph_compute.
3667 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3669 * tree-if-conv.c (add_to_dst_predicate_list): Change the
3670 second argument to basic_block.
3671 (tree_if_convert_cond_expr): Update call sites.
3673 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3675 * fold-const.c (pedantic_non_lvalue): Make it static.
3676 * tree.h: Remove the corresponding prototype.
3678 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3680 * optabs.c (prepare_operand): Make it static.
3681 * optabs.h: Remove the corresponding prototype.
3683 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3685 * reload1.c (reloads_conflict, gen_reload): Make them static.
3686 * reload.h: Remove the corresponding prototypes.
3688 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3690 * reload.c (refers_to_mem_for_reload_p,
3691 refers_to_regno_for_reload_p): Make them static.
3692 * reload.h: Remove the corresponding prototypes.
3694 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
3695 Eric Botcazou <ebotcazou@libertysurf.fr>
3698 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
3699 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
3700 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
3701 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
3702 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
3703 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
3704 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
3705 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
3706 MODE_VECTOR_INT modes.
3707 (sparc_extra_constraint_check): Add new constraint 'Y'.
3708 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
3709 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
3710 (V64): New mode macro for 64-bit modes.
3711 (movsf): Use V32 for mode instead of SF.
3712 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
3713 alongside 'G' constraint.
3714 (movdf): Use V64 for mode instead of DF.
3715 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
3716 of DF. Add 'Y' constraint alongside 'G' constraint.
3717 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
3720 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3722 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
3723 integer NEG and ABS.
3724 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
3725 ("*negdi2_31"): Reimplement using a splitter.
3726 ("*negdi2_cc", "*negdi2_cconly"): New insns.
3727 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
3728 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
3729 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
3730 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
3731 ("*absdi2_cc", "*absdi2_cconly"): New insns.
3732 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
3733 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
3734 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
3735 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
3736 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
3737 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
3738 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
3739 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
3740 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
3742 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3744 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
3745 when eliminating an UNSPEC_CMPINT.
3746 (s390_secondary_input_reload_class): Fix test for CC register reload.
3747 (s390_secondary_output_reload_class): Likewise.
3748 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
3749 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
3750 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
3751 insn patterns with splitters.
3753 2004-11-09 David Edelsohn <edelsohn@gnu.org>
3755 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
3756 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
3758 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3760 * tree-phinodes.c (phi_reverse): New.
3761 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
3763 * tree-flow.h: Add a prototype for phi_reverse.
3765 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3767 * tree-ssa-loop-ivopts.c: Fix a comment typo.
3769 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
3772 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
3775 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3777 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
3778 instead of "arg" in diagnostics.
3780 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3782 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
3783 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
3784 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
3785 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
3786 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
3787 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
3788 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
3789 config/iq2000/iq2000.c, config/m32r/m32r.c,
3790 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
3791 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
3792 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
3793 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
3794 config/sh/symbian.c, config/stormy16/stormy16.c,
3795 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
3796 and %> as appropriate. Use %' as apostrophe in diagnostics where
3797 applicable. Use %< and %> in place of '' quotes where applicable.
3798 Use %qs in place of %<%s%>. Consistently quote __builtin function
3801 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
3803 * gdbinit.in (pbb, pbm): New macros.
3805 2004-11-08 Jeff Law <law@redhat.com>
3807 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
3808 implementing it inline.
3810 * cfganal.c (find_edge): Search pred->succs or succ->preds,
3811 whichever is shorter.
3813 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3815 * passes.c (rest_of_handle_jump): Remove dead code.
3817 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3819 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
3820 the last used element in the worklist.
3822 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3824 * tree-inline.c (remap_save_expr): Make it static.
3825 * tree-inline.h: Remove the corresponding prototype.
3827 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3829 * tree-ssa-loop-niter.c (upper_bound_in_type,
3830 lower_bound_in_type): Make them static.
3831 * tree.h: Remove the corresponding prototypes.
3833 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3835 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
3837 * tree-ssa-live.h: Remove the corresponding prototypes.
3839 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3841 * tree-if-conv.c (tree_if_conversion): Make it static.
3842 * tree-flow.h: Remove the corresponding prototype.
3844 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3846 * tree-ssa-operands.c (build_ssa_operands): Make it static.
3847 * tree-flow.h: Remove the corresponding prototype.
3849 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
3852 * tree-inline.c (copy_body_r): Change "t = t" to empty
3853 statement instead of "t".
3855 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3857 * modulo-sched.c (create_partial_schedule,
3858 free_partial_schedule, reset_partial_schedule,
3859 ps_add_node_check_conflicts, rotate_partial_schedule): Make
3862 2004-11-08 Richard Henderson <rth@redhat.com>
3864 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
3867 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3869 * sched-deps.c (add_insn_mem_dependence): Make it static.
3870 * sched-int.h: Remove the corresponding prototypes.
3872 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3874 * flow.c (allocate_bb_life_data): Make it static.
3875 * basic-block.h: Remove the corresponding prototype.
3877 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3879 * calls.c (split_complex_values, split_complex_types): Make
3881 * expr.h: Remove the corresponding prototypes.
3883 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
3885 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
3886 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
3888 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3890 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
3891 statements that always trigger.
3893 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3895 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
3896 tree-scalar-evolution.c, tree-ssa-loop-im.c,
3897 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
3898 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
3901 2004-11-08 Ben Elliston <bje@au.ibm.com>
3903 * cgraph.h (cgraph_calls_p): Remove.
3904 * cgraph.c (cgraph_calls_p): Likewise.
3906 * varray.h (varray_copy): Remove.
3907 * varray.c (varray_copy): Likewise.
3909 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
3912 * config/darwin.c (machopic_indirect_data_reference):
3913 Call gen_macho_high and gen_macho_low instead of
3914 checking the mode and calling gen_macho_high_di directly.
3915 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3916 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
3918 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
3919 load_macho_picbase, macho_low, macho_high): Removed.
3920 (builtin_setjmp_receiver): Call gen_macho_high and
3921 gen_macho_low instead of checking the mode and calling
3922 gen_macho_high_di directly.
3923 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
3924 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
3925 Moved from rs6000.md.
3926 (macho_high): New expander.
3927 (macho_high_si): Renamed version of macho_high from rs6000.md.
3928 (macho_low): New expander.
3929 (macho_low_si): Renamed version of macho_low from rs6000.md.
3930 (load_macho_picbase): New expander.
3931 (load_macho_picbase_si): Renamed version of load_macho_picbase
3933 (macho_correct_pic): New expander.
3934 (macho_correct_pic_si): Renamed version of macho_correct_pic
3937 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3939 * c-decl.c (finish_struct): Use complete sentences for diagnostic
3940 for structures or unions with no members or named members.
3942 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3944 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
3945 taking address of bit-field by assertion.
3947 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3949 * config/s390/s390.md (attribute "op_type"): Default to "NN".
3950 (attribute "atype"): Default to "agen".
3951 (attribute "length"): Default to 6.
3952 (define_asm_attibutes): Remove.
3953 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
3954 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
3955 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
3956 Do not set type attribute to "cs" where already default.
3957 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
3959 Do not set type attribute to "other" where already default.
3960 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
3961 "*strlendi", "*strlensi",
3962 "*movmem_long_64", "*movmem_long_31",
3963 "*clrmem_long_64", "*clrmem_long_31",
3964 "*cmpmem_long_64", "*cmpmem_long_31",
3965 "*cmpint_si", "*cmpint_di",
3966 "addti3", "*adddi3_31z", "*adddi3_31",
3967 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
3968 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
3969 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
3970 "*pool_entry", "pool_align", "pool_section_start",
3971 "pool_section_end", "main_pool", "reload_base_31", "pool"):
3972 Do not set op_type attribute to "NN" where already default.
3973 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
3974 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
3975 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
3976 Do not set atype attribute to "agen" where already default.
3977 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
3979 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3981 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
3983 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3986 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
3987 R3000 and R4000 macros on IRIX.
3989 2004-11-06 Andreas Schwab <schwab@suse.de>
3992 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
3995 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3997 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
3999 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
4001 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
4002 matches no insns already matched by other reservations.
4003 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
4004 matches no insns already matched by other reservations.
4005 ("x_ss"): Remove, replace by ...
4006 ("x_cs"): ... this new reservation. Check type instead of op_type.
4007 Update bypasses to use x_cs instead of x_ss.
4008 ("x_nn"): Remove, replace by ...
4009 ("x_other"): ... this new reservation. Check type instead of op_type.
4010 Add x_other and x_branch to bypasses.
4011 ("x_vs"): New reservation.
4012 * config/s390/s390.md (attribute "type"): Default according to op_type.
4013 ("*execute"): Set type to "cs".
4015 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4017 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
4018 if we are in GIMPLE.
4020 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
4022 PR rtl-optimization/17933
4023 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
4024 (covers_regno_p): New function. Handle SETs of PARALLEL,
4025 and defer the rest to...
4026 (covers_regno_no_parallel_p): New function.
4028 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4030 * config/sparc/sparc.c (function_arg_record_value_1): Skip
4031 fields with zero length.
4032 (function_arg_record_value_2): Likewise.
4033 (function_arg_record_value_3): Use smallest_mode_for_size
4034 instead of mode_for_size.
4035 (function_arg_union_value): Return naked register for unions
4038 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4040 * config/sparc/sparc.c (scan_record_type): Handle vector types.
4041 (function_arg_slotno): Handle vector types specially.
4042 (function_arg_record_value_1): Split fields with vector type and
4043 BLKmode into their subparts.
4044 (function_arg_record_value_2): Likewise. Be prepared to handle
4045 more than 2 registers per field.
4046 (function_arg_union_value): Increment regno inside the loop.
4047 (function_arg_vector_value): New function.
4048 (function_arg): Use it to split fields with vector type and
4049 BLKmode into their subparts and build a PARALLEL. Treat
4050 other vector types like floats.
4051 (function_value): Likewise.
4052 (sparc_pass_by_reference): Handle vector types.
4053 (sparc_return_in_memory): Likewise.
4055 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4057 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
4058 statement that never triggers.
4060 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
4062 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
4063 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
4064 ("x_fdivd"): Use also for fsqrtd type.
4065 ("x_fdivs"): Use also for fsqrts type.
4066 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
4067 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
4068 ("fix_truncdfsi2_ibm"): Set type to "other".
4069 ("floatdidf2", "floatdisf2"): Do not clobber CC.
4070 ("floatsidf2", "floatsidf2_ieee"): Likewise.
4071 ("floatsisf2", "floatsisf2_ieee"): Likewise.
4072 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
4073 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
4075 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
4076 ("sqrtdf2"): Set type to "fsqrtd".
4077 ("sqrtsf2"): Set type to "fsqrts".
4079 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>