1 2004-12-07 Ziemowit Laski <zlaski@apple.com>
3 * c-tree.h (struct lang_type): Rename 'objc_protocols' field
6 2004-12-07 Eric Christopher <echristo@redhat.com>
9 * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
11 2004-12-07 Eric Christopher <echristo@redhat.com>
13 * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
15 * config/mips/mips.c: ... here. Make static.
17 2004-12-07 Eric Christopher <echristo@redhat.com>
20 * config/mips/mips.c (mips_vector_mode_supported_p): New function.
21 (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
23 2004-12-07 Kazu Hirata <kazu@cs.umass.edu>
25 * c-common.c, expr.c, fold-const.c, print-tree.c,
26 tree-gimple.c, tree-inline.c, tree-pretty-print.c,
27 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
28 first_rtl_op with TREE_CODE_LENGTH.
29 * tree.c (first_rtl_op): Remove.
30 Replace uses of first_rtl_op with TREE_CODE_LENGTH.
31 * tree.h: Remove the prototype for first_rtl_op.
33 2004-12-07 David Edelsohn <edelsohn@gnu.org>
35 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
36 Revert 2004-12-01 change.
38 2004-12-06 Ziemowit Laski <zlaski@apple.com>
40 * c-tree.h (struct lang_type): Add 'objc_protocols' field.
42 2004-12-06 DJ Delorie <dj@redhat.com>
44 * reload.c (find_valid_class): Fix logic to test inner mode as well.
45 (push_reload): Pass inner mode.
47 2004-12-06 Eric Christopher <echristo@redhat.com>
49 * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
51 2004-12-06 Aldy Hernandez <aldyh@redhat.com>
53 * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
55 2004-12-06 Zdenek Dvorak <dvorakz@suse.cz>
56 Kazu Hirata <kazu@cs.umass.edu>
58 PR tree-optimization/18601
59 * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
60 (tree_forwarder_block_p): Do not consider blocks that are its own
61 successors forwarders.
62 (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
63 (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
65 * tree-flow.h (bb_ann_d): Remove forwardable.
67 2004-12-06 Kazu Hirata <kazu@cs.umass.edu>
69 * expr.c (expand_expr_real_1): Remove an "if" whose condition
72 2004-12-06 Roger Sayle <roger@eyesopen.com>
74 * c-gimplify.c (gimplify_c_loop): Improve initial implementations
75 for loops whose conditions are known at compile-time.
76 * gimplify.c (append_to_statement_list_1): Remove side_effects
77 parameter, this function should never be called if its false.
78 (append_to_statement_list): Only call append_to_statement_list_1
79 if t is non-NULL tree with side-effects.
80 (append_to_statement_list_force): Likewise, if t is not NULL.
82 2004-12-06 J"orn Rennecke <joern.rennecke@st.com>
84 * bt-load.c (btr_def_s): New member own_end;
85 (add_btr_to_live_range): Add second parameter. Changed caller.
86 (clear_btr_from_live_range): Clear btrs_live_at_end bit
87 for the register its definition basic block if own_end is set.
88 (augment_live_range): Also take btrs_live_at_end into account.
89 (combine_btr_defs): Don't bother with
90 other_def->other_btr_uses_after_use if it pertains to a different
92 (move_btr_def): Set def->other_btr_uses_before_def after
93 calling combine_btr_defs."
95 * bt-load.c (augment_live_range): New argument full_range.
98 * bt-load.c (move_tr_def): Set other_tr_uses_before_def
99 taking new btr assignment into account.
101 2004-12-05 Daniel Berlin <dberlin@dberlin.org>
103 * tree-ssa-alias.c (create_global_var): Use void_type_node,
106 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
108 * expr.c (expand_expr_real_1): Abort on COND_EXPR of
111 2004-12-05 Richard Henderson <rth@redhat.com>
114 * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
115 (builtin_setjmp_receiver_er_sl_1): Use it.
116 (builtin_setjmp_receiver_er_1): Likewise.
117 (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
118 (builtin_setjmp_receiver): Don't split for explicit relocs until
120 (exception_receiver): Likewise.
122 2004-12-05 Andrew Pinski <pinskia@physics.uc.edu>
124 * mklibgcc.in (vis_hide): Add the prototype for the test.
126 2004-12-05 Roger Sayle <roger@eyesopen.com>
128 * c-typeck.c (c_finish_loop): Improve initial implementations
129 for loops whose conditions are known at compile-time.
131 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
133 * builtins.c: Fix comment typos.
135 2004-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
138 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
139 the first/last insn is a sequence, return the first/last insn of the
143 * mklibgcc.in (vis_hide): Use implementation instead of declaration
146 2004-12-04 Richard Henderson <rth@redhat.com>
148 * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
149 use ofs in BWX two byte special case.
150 (alpha_expand_unaligned_store): Likewise.
152 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
154 * gcse.c (gcse_main): Add a comment.
156 2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
159 * builtins.c (fold_builtin_next_arg): Export and return true
160 when there is a warning or an error.
161 (expand_builtin_va_start): When fold_builtin_next_arg returns true,
163 (expand_builtin): Likewise.
164 * gimplify.c (gimplify_call_expr): Error out if there is not
165 enough arguments to va_start. Call fold_builtin_next_arg also
166 on the second argument.
167 * tree.h (fold_builtin_next_arg): Prototype.
169 2004-12-04 Alan Modra <amodra@bigpond.net.au>
171 * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
172 Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
173 SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
174 * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
175 shlib_dir and shlib_so_name.
176 * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
177 * config/t-libunwind-elf (SHLIB_NAME): Likewise.
178 * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
179 * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
180 * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
181 (SHLIB_LINK): Don't use shlib_dir when creating symlink.
183 2004-12-03 Roger Sayle <roger@eyesopen.com>
185 * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
187 2004-12-03 Richard Henderson <rth@redhat.com>
189 * alias.c (component_uses_parent_alias_set): Rename from
190 can_address_p. Return bool. Reverse the sense of the result.
191 Reinstate the check for alias set zero.
192 (get_alias_set): Update to match.
193 * alias.h (component_uses_parent_alias_set): Likewise.
194 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
195 * expr.c (expand_assignment): Likewise.
196 * expr.h: Remove commented out prototypes that were moved to alias.h.
198 2004-12-03 Richard Henderson <rth@redhat.com>
200 * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
201 (TARGET_CANNOT_FORCE_CONST_MEM): New.
203 2004-12-04 Alan Modra <amodra@bigpond.net.au>
206 * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
208 * sched-ebb.c (schedule_ebb): Likewise.
210 2004-12-03 Andreas Schwab <schwab@suse.de>
212 * Makefile.in (HOSTHOOKS_DEF_H): Define.
213 (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
214 (host-default.o): Likewise.
216 2004-12-03 Eric Christopher <echristo@redhat.com>
218 * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
219 pophi): Add number of arguments to name so that the
220 pattern is recognized as a named pattern.
222 2004-12-03 Janis Johnson <janis187@us.ibm.com>
224 * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
226 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch>
228 * config/rs6000/rs6000.c (rs6000_override_options): Protect
229 darwin_one_byte_bool with #if.
231 2004-12-03 Paolo Bonzini <bonzini@gnu.org>
233 * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
235 2004-12-03 H.J. Lu <hongjiu.lu@intel.com>
237 * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
239 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
241 * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
242 Set libstdcxx_incdir directly.
243 * configure: Regenerate.
245 2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
247 * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
248 "if" whose condition is always true.
250 * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
253 2004-12-02 Stan Shebs <shebs@apple.com>
255 * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
256 Darwin default to one-byte bools.
258 2004-12-02 Richard Henderson <rth@redhat.com>
261 * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
263 2004-12-03 Ben Elliston <bje@au.ibm.com>
265 * doc/cfg.texi (Edges): Update. Document the edge_iterator data
266 type and its methods.
268 2004-12-02 Richard Henderson <rth@redhat.com>
270 * expr.c (write_complex_part): Use simplify_gen_subreg when the
271 submode is at least as large as a word.
272 (read_complex_part): Likewise.
274 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
277 * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
278 multilib at a time. Don't build the default set. Don't add
279 EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
280 filter for shared libunwind and libgcc.
282 2004-12-02 Roger Sayle <roger@eyesopen.com>
285 * config/i386/i386.c (override_options): If -fomit-frame-pointer has
286 already been specified, ignore the -momit-leaf-frame-pointer option.
288 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
290 * varasm.c (make_decl_rtl): Add the missing `;'.
292 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
294 * tree.c (is_attribute_p): Split out to ..
295 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
296 of strlen and compare the string lengths before calling strcmp.
297 (lookup_attribute): Call is_attribute_with_length_p instead of
300 2004-12-02 Devang Patel <dpatel@apple.com>
302 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
303 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
304 * config/i386/darwin.h (CC1_SPEC): Same.
306 2004-12-02 Richard Henderson <rth@redhat.com>
308 * optabs.c (lowpart_subreg_maybe_copy): New.
309 (expand_unop, expand_abs_nojump): Use it.
311 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
313 * sh.md (extv, extzv): Add pattern predicate.
315 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
317 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
320 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
323 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
325 2004-12-02 Jeff Law <law@redhat.com>
327 * tree-eh.c: Revert yesterday's change.
329 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
331 * varasm.c (decode_reg_name): Revert change to check for zero
333 (make_decl_rtl): Make sure that we call decode_reg_name only
336 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
339 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
340 then and else labels.
342 2004-12-02 Andreas Schwab <schwab@suse.de>
344 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
345 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
346 (STAGE2_FLAGS_TO_PASS): Likewise.
348 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
350 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
352 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
353 now-redundant AC_SUBSTs.
354 * aclocal.m4: Include ../config/gcc-version.m4.
355 * configure: Regenerate.
357 2004-12-02 Alan Modra <amodra@bigpond.net.au>
359 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
360 #ifdef RELOCATABLE_NEEDS_FIXUP.
362 2004-12-01 Roger Sayle <roger@eyesopen.com>
365 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
366 Intel assembler syntax by using %A1 instead of %*%1.
368 2004-12-01 Richard Henderson <rth@redhat.com>
370 * expr.c (expand_assignment): Handle CONCAT both as a final
371 destination and as a middle point.
373 2004-12-01 Jeff Law <law@redhat.com>
375 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
376 (honor_protect_cleanup_actions): Only create save_eptr and
377 save_filt if they do not already exist.
378 (lower_eh_constructs): Wipe all knowledge of save_eptr and
379 save_filt before returning.
381 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
383 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
385 2004-12-02 Alan Modra <amodra@bigpond.net.au>
388 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
389 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
390 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
391 of target_flags_explicit.
392 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
393 case. Define as 0 for non-biarch.
395 2004-12-01 Zack Weinberg <zack@codesourcery.com>
397 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
398 Change temporary file tag from a prefix to an infix.
400 2004-12-02 Andreas Schwab <schwab@suse.de>
402 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
404 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
408 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
409 the statements if aliases_computed_p is true.
411 2004-12-01 Mark Mitchell <mark@codesourcery.com>
413 * Makefile.in (WERROR): New variable.
414 (STRICT2_WARN): Use it.
415 (STAGE2_FLAGS_TO_PASS): Likewise.
416 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
418 2004-12-01 Richard Henderson <rth@redhat.com>
420 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
423 2004-12-01 Diego Novillo <dnovillo@redhat.com>
425 PR tree-optimization/18291
426 * tree-ssa-copy.c (merge_alias_info): Fix merging of
427 flow-sensitive alias information. If the new pointer has no
428 name tag, copy it from the original pointer. Otherwise, make
429 sure that the pointed-to sets have a common intersection.
431 2004-12-01 Richard Henderson <rth@redhat.com>
434 * emit-rtl.c (gen_complex_constant_part): Remove.
435 (gen_realpart, gen_imagpart): Remove.
436 * rtl.h (gen_realpart, gen_imagpart): Remove.
437 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
438 gen_realpart/gen_imagpart.
439 * expr.c (write_complex_part, read_complex_part): New.
440 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
441 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
442 emit_move_multi_word): Split out from ...
443 (emit_move_insn_1): ... here.
444 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
445 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
446 * function.c (assign_parm_setup_reg): Hard-code transformations
447 instead of using gen_realpart/gen_imagpart.
449 * expr.c (optimize_bitfield_assignment_op): Split out from ...
450 (expand_assignment): ... here. Use handled_component_p to gate
451 get_inner_reference code. Simplify MEM handling. Special case
454 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
455 of gen_rtx_SUBREG directly.
457 2004-12-01 David Edelsohn <edelsohn@gnu.org>
458 Nathan Sidwell <nathan@codesourcery.com>
461 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
466 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
469 * params.c (set_param_value): Add range check.
470 * params.def: Add min and max values. Reformat long strings.
471 * params.h (struct param_info): Add min and max fields.
472 (enum compiler_param): Adjust DEFPARAM.
473 * toplev.c (lang_independent_params): Likewise.
475 2004-12-01 Alan Modra <amodra@bigpond.net.au>
478 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
480 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
482 * doc/standards.texi: Update for C99 TC2.
484 2004-11-30 Jeff Law <law@redhat.com>
486 * sbitmap.c (sbitmap_any_common_bits): New function.
487 * sbitmap.h (sbitmap_any_common_bits): Prototype.
488 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
489 No longer allocate/free "psp", "pss" sbitmaps.
490 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
492 (group_aliases): Similarly.
494 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
496 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
497 uninitialized variable.
499 2004-11-30 Eric Christopher <echristo@redhat.com>
501 * fold-const.c (fold_widened_comparison): Make sure that we're
502 passing an INTEGER_TYPE to int_fits_type_p.
503 (fold): Clean up comment.
505 2004-11-30 Zack Weinberg <zack@codesourcery.com>
507 * mklibgcc.in: Correct calculation of libgcc_s_soname and
508 libunwind_soname. Use $out, not $outS, in commands for
509 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
510 library build rules, make $libunwind_so and $libgcc_s_so
511 depend on them in the normal fashion, and filter those objects
514 2004-11-30 Janis Johnson <janis187@us.ibm.com>
516 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
518 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
521 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
522 pass right after fold builtins.
524 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
526 * config/s390/s390-modes.def: Added cc modes documentation.
527 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
528 s390_expand_addcc): Added cc mode comments.
529 * config/s390/s390.md: Removed old cc mode documentation.
531 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
533 * config/s390/s390.c (struct processor_costs): New data type.
534 (s390_cost, z900_cost, z990_cost): New global variables.
535 (override_options): Initialize s390_cost.
536 (s390_rtx_costs): Reimplement.
538 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
540 Fix PR tree-optimization/18673
542 * tree-ssa-pre.c: Remove splay-tree.h include.
543 (bitmap_value_replace_in_set): Fix to add if it does not exist.
544 (find_or_generate_expression): Remove now-wrong condition.
545 (create_expression_by_pieces): Fix condition and comment reason
547 (insert_aux): Fix condition and comment reasons for it.
548 Factor insertion code from here.
549 (insert_into_preds_of_block): To here. Fix conditions in factored
550 function and comment reasons for them.
552 2004-11-30 Ira Rosen <irar@il.ibm.com>
555 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
556 variable for data_reference when looking for memtag.
558 2004-11-30 Jakub Jelinek <jakub@redhat.com>
560 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
563 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
565 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
566 tree_low_cst instead of TREE_INT_CST_LOW.
568 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
571 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
572 decls that are assembled before vectorization takes place.
573 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
575 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
577 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
578 if local_alloc modified jumps.
580 2004-11-30 Alan Modra <amodra@bigpond.net.au>
582 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
584 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
587 2004-11-30 Zack Weinberg <zack@codesourcery.com>
589 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
590 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
592 * mklibgcc.in: Drastic restructure for comprehensibility.
593 Remove the old hidden-directive hack.
594 Eliminate support for .txt files in LIB2ADD etc (never used).
595 Eliminate support for assembly source files in LIB2ADDEH* and
596 LIBUNWIND (also never used).
597 Build up dependency lists for libraries incrementally.
598 If we have SHLIB_LINK, compile each file twice, once for the
599 static and once for the shared library; also probe for
600 -fvisibility=hidden in the generated libgcc.mk. If found,
601 pass that and -DHIDE_EXPORTS to the compilation of every C
602 source file going into the static library. If found, generate
603 hidden-directive lists for every assembly source file going
604 into the static library, but incorporate them with -include
606 Write comments into generated libgcc.mk to facilitate debugging.
607 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
608 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
610 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
613 2004-11-29 Richard Henderson <rth@redhat.com>
615 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
616 (handled_component_p): Likewise.
617 * alias.c (can_address_p): Reformat and simplify. Handle
618 REAL/IMAGPART_EXPR. Do not disable addressability based on
620 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
621 check for REAL/IMAGPART_EXPR.
622 * gimplify.c (gimplify_compound_lval): Likewise.
623 * tree-cfg.c (verify_expr): Likewise.
624 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
625 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
626 (convert_local_reference): Likewise.
627 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
629 2004-11-30 Alan Modra <amodra@bigpond.net.au>
631 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
633 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
636 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
637 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
638 and host_xmake_file using new host configuration files.
640 2004-11-29 Roger Sayle <roger@eyesopen.com>
642 * reg-stack.c (change_stack): Improve algorithm used to pop regs
643 off the stack to maximize ffreep usage and reduce fxch count.
645 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
648 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
651 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
653 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
654 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
656 2004-11-30 Ben Elliston <bje@au.ibm.com>
658 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
660 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
663 * c-common.c (handle_visibility_attribute): When the type decl
664 is really a identifier node, warn about being ignored and return.
666 2004-11-29 Richard Henderson <rth@redhat.com>
668 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
670 2004-11-29 Steven Bosscher <stevenb@suse.de>
672 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
673 Remove CASE_DROPS_THROUGH checks, it is never defined.
674 * cfglyout.c (fixup_reorder_chain): Likewise.
675 * cfgrtl.c (rtl_verify_flow_info): Likewise.
676 * stmt.c (expand_case): Likewise.
677 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
679 * system.h (CASE_DROPS_THROUGH): Poison.
680 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
681 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
683 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
685 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
688 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
691 2004-11-29 Diego Novillo <dnovillo@redhat.com>
693 PR tree-optimization/18712
694 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
695 WORK_STACK by reference.
696 Call VEC_safe_push instead of VEC_quick_push.
699 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
702 * Makefile.in (c-lang.o): Update dependencies.
703 * c-lang.c: Include "c-pragma.h".
704 (finish_file): Call maybe_apply_pending_pragma_weaks.
705 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
706 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
708 2004-11-29 Richard Henderson <rth@redhat.com>
711 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
712 outside the referenced object.
714 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
716 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
717 EDGE_PRED instead of PHI_ARG_EDGE.
718 * tree-ssa-live.c: Likewise.
719 * tree-ssa-loop-manip.c: Likewise.
720 * tree-ssa.c: Likewise.
722 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
723 simplifying edge manipulation.
725 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
728 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
731 * cfg.c (flow_obstack): Remove.
732 (flow_firstobj): Likewise.
733 (init_flow): Remove all uses of flow_obstack.
735 2004-11-29 Alan Modra <amodra@bigpond.net.au>
737 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
740 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
742 * opts.c (decode_options): Do not set max-inline-insns-rtl.
743 (common_handle_option): Likewise.
744 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
745 * params.h (MAX_INLINE_INSNS_RTL): Remove.
746 * doc/invoke.texi (max-inline-insns-rtl): Remove.
748 2004-11-29 Alan Modra <amodra@bigpond.net.au>
751 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
753 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
756 * gimplify.c (gimplify_asm_expr): If the length of an output operand
757 is zero, do not process it, just let it go through.
759 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
760 Diego Novillo <dnovillo@redhat.com>
762 PR/18662, also backported from tree-cleanup-branch.
763 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
764 always call maybe_clean_eh_stmt and modify_stmt.
766 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
769 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
770 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
771 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
772 add an inverse VIEW_CONVERT_EXPR to const_val.
775 * tree-nested.c (check_for_nested_with_variably_modified): New.
776 (create_nesting_tree): Call it.
778 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
779 special code for assigning to non-pointer.
780 (is_escape_site): If RHS is a conversion between pointer and integer
781 types, this is an escape site.
783 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
784 (store_motion): Don't move store if any edge we'd want to move it
787 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
788 non-zero lower bound.
790 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
792 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
795 * opts.c (find_opt): Require that the input match a switch exactly
796 or that the switch take a joined option to be interpreted as a
797 match for another language.
799 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
801 * timevar.def (TV_TREE_REDPHI): New timevar.
802 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
804 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
806 PR preprocessor/17651
807 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
808 flag_no_line_commands.
809 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
812 2004-11-28 Theodore A. Roth <troth@openavr.org>
814 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
815 warning if the function name does not begin with "__vector" and the
816 function has either the 'signal' or 'interrupt' attribute.
818 2004-11-28 Theodore A. Roth <troth@openavr.org>
820 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
821 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
822 atmega325, atmega3250, atmega645 and atmega6450.
823 * config/avr/avr.h (LINK_SPEC): Ditto.
825 (LIBGCC_SPEC): Ditto.
826 (CRT_BINUTILS_SPECS): Ditto.
827 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
829 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
831 PR preprocessor/17610
832 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
834 2004-11-28 Jeff Law <law@redhat.com>
836 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
837 (pass_maybe_create_global_var): New.
838 * tree-pass.h (pass_maybe_create_global_var): Declare.
839 * tree-optimize.c (init_tree_optimization_passes): Link in
840 pass_maybe_create_global_var.
842 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
844 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
846 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
848 PR rtl-optimization/18420
849 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
851 2004-11-28 Steven Bosscher <stevenb@suse.de>
852 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
854 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
855 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
856 that the case is in range, to make sure the casesi insn is always
857 in range and never falls through.
858 (casesi1): Add comment to explain why casesi never falls through.
859 Remove the unnamed special case casesi pattern.
861 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
864 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
865 "*movdicc_real". Only match reversible comparisons.
866 ("*movdicc_real_nonreversible"): New pattern, split from
867 "*movdicc_real". Match only nonreversible comparisons. Exclude
868 reversed alternatives.
869 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
872 2004-11-27 Richard Henderson <rth@redhat.com>
874 * config/ia64/ia64.md: Move all define_predicate's ...
875 * config/ia64/predicates.md: ... here. New file.
877 2004-11-27 Per Bothner <per@bothner.com>
880 Re-applied following, with two modifications: add a URL for the
881 fixed cctools; only exit if $build = $target.
883 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
884 * configure.ac (powerpc-*-darwin*): Require assembler to support
886 * configure: Regenerate.
888 2004-11-28 David Edelsohn <edelsohn@gnu.org>
891 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
892 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
893 Distinguish between SImode and DImode CONST_INT.
895 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
896 Alan Modra <amodra@bigpond.net.au>
899 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
900 functions, strings and thread-local vars.
902 2004-11-28 Alan Modra <amodra@bigpond.net.au>
904 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
905 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
906 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
907 to allow non-darwin ABIs to optimize away code.
908 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
910 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
912 * tree.c (operand_equal_for_phi_arg_p): New.
913 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
914 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
915 Replace operand_equal_p with operand_for_phi_arg_p
918 * bb-reorder.c (find_traces_1_round): Speed up by using
919 EDGE_COUNT instead of FOR_EACH_EDGE.
921 * fold-const.c, config/i386/linux64.h: Fix comment typos.
923 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
926 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
928 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
930 * config/i386/linux.h: Fix a comment typo.
931 * doc/extend.texi: Fix a typo.
933 2004-11-27 Jeff Law <law@redhat.com>
935 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
938 2004-11-27 Jakub Jelinek <jakub@redhat.com>
940 * config/i386/linux64.h (REG_NAME): Define.
942 2004-11-27 Jakub Jelinek <jakub@redhat.com>
944 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
945 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
946 and only afterwards convert to ctype.
948 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
950 * config/mips/mips-protos.h (function_arg_boundary): Declare.
951 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
952 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
953 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
954 * config/mips/mips.c (function_arg_boundary): New function.
955 Impose a maximum alignment of STACK_BOUNDARY.
957 2004-11-27 Jakub Jelinek <jakub@redhat.com>
959 PR rtl-optimization/17825
960 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
963 2004-11-27 Alan Modra <amodra@bigpond.net.au>
966 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
967 from rs6000_default_long_calls for libcalls.
969 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
971 * expmed.c (extract_bit_field): When extracting from non-integer mode,
972 force a SUBREG into a register because we may be taking a further
975 2004-11-27 Di-an Jan <dianj@freeshell.org>
977 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
979 2004-11-26 Robert Millan <robertmh@gnu.org>
981 Changes for k*bsd-gnu support.
982 * config/i386/linux.h: Define REG_NAME to allow overriding of
983 register names in sc structure.
984 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
986 * config.gcc: Detect x86_64-k*bsd-gnu systems.
988 2004-11-26 Jeff Law <law@redhat.com>
990 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
991 retrieve annotations or pointer info before it's necessary.
992 Reorder tests for early continue of the loop. Manually CSE
995 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
997 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
998 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
999 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1000 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
1001 to a fixed reg if the source is the Return Address register.
1002 Implement new Rule 15.
1003 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1004 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
1005 sparc_dwarf_handle_frame_unspec.
1006 (gen_save_register_window): New function.
1007 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
1008 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
1009 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
1010 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
1011 (sparc_asm_function_prologue): Do not emit call frame debugging info.
1012 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
1013 (sparc_expand_epilogue): Likewise.
1014 (sparc_dwarf_handle_frame_unspec): New function.
1015 * config/sparc/sparc.md (save_register_window): Remove.
1016 (save_register_windowdi): Rewrite modelled on the callframe debug info.
1017 (save_register_windowsi): Likewise.
1019 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1021 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
1022 BB_HEAD, not BLOCK_HEAD.
1024 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1026 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
1027 scratch insns that set a register live at the join point.
1029 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1031 * cse.c, tree-ssa-operands.c: Fix comment typos.
1033 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
1035 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
1038 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
1040 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1042 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
1043 check that tests if all edges go to the same destination.
1045 * bitmap.c (bitmap_find_bit): Speed up by traversing from
1046 head->first if that seems profitable.
1048 2004-11-25 Jeff Law <law@redhat.com>
1050 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
1051 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
1052 (pass_loop_done): Use TV_TREE_LOOP_FINI.
1054 2004-11-26 Alan Modra <amodra@bigpond.net.au>
1056 PR rtl-optimization/16356
1057 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
1058 separate output register and one less jump. Enable for powerpc64.
1059 (floatdisf2): Adjust for above.
1061 2004-11-25 Bob Wilson <bob.wilson@acm.org>
1063 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
1064 (GCC_DRIVER_HOST_INITIALIZATION): Define.
1066 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1069 * tree-complex.c (vector_inner_type): New variable moved from
1070 build_word_mode_vector_type.
1071 (vector_last_type): Likewise.
1072 (vector_last_nunits): Likewise.
1073 (build_word_mode_vector_type): Use the new variables.
1074 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
1075 (GTFILES): Add tree-complex.c.
1076 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
1078 2004-11-25 Bob Wilson <bob.wilson@acm.org>
1080 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
1081 __XTENSA_WINDOWED_ABI__.
1083 2004-11-25 Richard Henderson <rth@redhat.com>
1085 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
1086 args_size adjustments for calls even with cfa as stack pointer.
1087 Search calls for stack adjustments after the insn is issued.
1088 (dwarf2out_frame_debug): Add after_p argument; pass it on.
1089 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
1090 * final.c (final_start_function, final_scan_insn): Likewise.
1092 2004-11-25 Richard Henderson <rth@redhat.com>
1095 * reload1.c (set_initial_eh_label_offset): New.
1096 (set_initial_label_offsets): Use it.
1098 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
1100 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
1101 before calling life_analysis and release them after.
1103 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1105 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
1108 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1110 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
1111 BITMAP_OBSTACK_ALLOC.
1112 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
1114 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1116 parts of PR rtl-opt/18463, rtl-opt/17647
1117 * cse.c (canon_for_address): New function.
1118 (find_best_addr): Call canon_for_address before getting the
1119 address's cost when checking if we should take that address.
1121 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1123 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
1124 "tree *" as the first argument.
1125 * tree-flow.h: Update the prototype of add_phi_arg.
1126 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
1127 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1128 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
1129 tree-vectorizer.c: Update all call sites of add_phi_arg.
1131 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1133 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1134 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1135 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
1136 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
1138 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
1140 PR tree-optimization/18587
1141 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
1142 call clobbered caches as invalid.
1143 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
1144 indicating whether the call clobbered operand cache is valid.
1145 (ssa_ro_call_cache_valid): New. Flag indicating whether the
1146 pure/const call operand cache is valid.
1147 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
1148 list of operands for cached call virtual operands.
1149 (clobbered_aliased_loads, clobbered_aliased_stores,
1150 ro_call_aliased_load): New. flags caching whether alias bits are
1151 to be set in call stmt's.
1152 (fini_ssa_operands): Remove call operand caches if present.
1153 (get_expr_operands, get_asm_expr_operands,
1154 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
1155 (get_call_expr_operands): Add call clobbered variables first.
1156 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
1157 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
1158 if it is valid, otherise fill the cache.
1159 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
1160 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
1161 in_v_may_def_list bits.
1162 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
1163 in_list bits for the v_may_def elements and empty the operand
1165 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
1166 VUSES by checking the in_v_may_def_list bit.
1167 (append_v_may_def, append_vuse): Use the in_list bit rather than
1168 scanning the array for duplicates.
1170 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
1172 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
1173 displacements are not short.
1175 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
1177 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
1180 2004-11-25 Mark Mitchell <mark@codesourcery.com>
1183 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
1184 (lvalue_or_else): Declare.
1185 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
1186 * c-typeck.c (lvalue_use): Remove.
1187 (lvalue_or_else): Remove.
1190 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
1191 unemitted variables with static storage duration.
1193 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
1195 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
1198 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1200 * config/rs6000/altivec.md (VIshort): New mode macro.
1201 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
1203 (altivec_vaddu<VI_char>s): ... this.
1204 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
1206 (altivec_vadds<VI_char>s): ... this.
1207 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
1209 (altivec_vsubu<VI_char>s): ... this.
1210 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
1212 (altivec_vsubs<VI_char>s): ... this.
1213 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
1215 (altivec_vavgu<VI_char>): ... this.
1216 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
1218 (altivec_vavgs<VI_char>): ... this.
1219 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
1220 (altivec_vmsumu<VI_char>m): ... this.
1221 (altivec_vmsummbm, altivec_vmsummhm): Replace
1223 (altivec_vmsumm<VI_char>m): ... this.
1224 (altivec_vandc): Remove.
1225 (*andc<mode>3): Renamed to ...
1226 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
1227 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
1229 (altivec_vrl<VI_char>): ... this.
1230 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
1232 (altivec_vsl<VI_char>): ... this.
1233 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
1235 (altivec_vsr<VI_char>): ... this.
1236 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
1238 (altivec_vsra<VI_char>): ... this.
1239 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
1240 (altivec_vsum4s<VI_char>s): ... this.
1241 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
1243 (altivec_vperm_<mode>): ... this.
1244 (altivec_vsel_4sf): Rename to ...
1245 (altivec_vsel_v4sf): ... here.
1246 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
1248 (altivec_vsel_<mode>): ... this.
1249 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
1250 altivec_vsldoi_16qi): Rename to ...
1251 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
1252 altivec_vsldoi_v16qi): ... here.
1253 (altivec_vsldoi_4sf): Rename to ...
1254 (altivec_vsldoi_v4sf): ... here.
1255 (altivec_predicate_v4si, altivec_predicate_v8hi,
1256 altivec_predicate_v16qi): Replace with ...
1257 (altivec_predicate_<mode>): ... this.
1258 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
1260 (altivec_lve<VI_char>x): ... this.
1261 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
1263 (altivec_stve<VI_char>x): ... this.
1264 (absv16qi2, absv8hi2, absv4si2): Replace
1266 (abs<mode>2): ... this.
1267 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
1269 (altivec_abss_<mode>): ... this.
1270 (vec_realign_load_v16qi, vec_realign_load_v8hi,
1271 vec_realign_load_v4si): Replace with ...
1272 (vec_realign_load_<mode>): ... this.
1273 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
1275 (rs6000_expand_ternop_builtin): Likewise.
1277 2004-11-25 Andrew Haley <aph@redhat.com>
1279 * gcc.c (process_command): Don't supply -v to linker.
1281 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
1283 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
1284 instead of `%s' in diagnostic.
1286 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1288 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
1289 (FREE_REG_SET): Adjust.
1290 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
1291 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
1292 (BITMAP_ALLOC): ... here.
1293 (BITMAP_OBSTACK_FREE): Rename to ...
1294 (BITMAP_FREE): Don't check for NULL bitmap here.
1295 * tree-ssa-pre.c (value_insert_into_set_bitmap,
1296 bitmap_set_new): Use new names.
1298 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
1299 * df.c (df_free): Likewise.
1300 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
1301 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
1303 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
1304 (ALLOC_REG_SET): ... here.
1305 (FREE_REG_SET): Adjust.
1306 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
1307 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
1308 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
1309 * cfgrtl.c (rtl_split_block, rtl_split_edge,
1310 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
1311 * flow.c (update_life_info, calculate_global_regs_live,
1312 allocate_bb_life_data, init_propagate_block_info): Adjust.
1313 * global.c (build_insn_chain): Adjust.
1314 * ifcvt.c (dead_or_predicable): Adjust.
1315 * loop-iv.c (simplify_using_initial_values): Adjust.
1316 * recog.c (peephole2_optimize): Adjust.
1317 * sched-deps.c (init_deps_global): Adjust.
1319 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
1321 * config.gcc (avr-*-rtems*): Fix typo.
1323 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
1325 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
1327 2004-11-24 Jeff Law <law@redhat.com>
1329 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
1330 the number of queries to random elements in the ai->written_vars
1333 2004-11-24 Roger Sayle <roger@eyesopen.com>
1335 * config/i386/i386.c (override_options): Disable x87 fancy math
1336 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
1338 2004-11-24 Roger Sayle <roger@eyesopen.com>
1340 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
1341 system header conflict on AIX 5.2.
1342 * configure: Regenerate.
1344 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1346 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
1347 instead of calling phi_arg_from_edge.
1349 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
1352 2004-11-24 Ben Elliston <bje@au.ibm.com>
1354 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
1355 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
1356 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
1359 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1361 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
1363 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
1364 type will be remapped.
1366 2004-11-24 Steven Bosscher <stevenb@suse.de>
1368 * c-opts.c (c_common_post_options): Don't clear
1369 flag_inline_functions.
1370 * dojump.c (clear_pending_stack_adjust): Remove check on
1371 flag_inline_functions, it's always true.
1372 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
1373 that can never trigger.
1374 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
1375 flag_inline_trees, now that flag_inline_functions is never
1377 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
1378 flag_inline_functions at optimization levels greater than
1379 or equal to 3. This is already done by default.
1381 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1383 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
1384 instead to find the PHI argument. Do not take I as an
1386 (eliminate_phi): Adjust the call to eliminate_build. Do not
1387 take I as an argument.
1388 (rewrite_trees): Adjust the call to eliminate_phi.
1390 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
1392 * optabs.h (force_expand_binop): Declare.
1393 * optabs.c (force_expand_binop): Export.
1394 * stmt.c (shift_return_value): Delete.
1395 (expand_return): Don't call it.
1396 * expr.h (shift_return_value): Declare.
1397 * calls.c (shift_returned_value): Delete in favor of...
1398 (shift_return_value): ...this new function. Leave the caller to check
1399 for non-BLKmode values passed in the msb of a register. Take said mode
1400 and a shift direction as argument. Operate on the hard function value,
1402 (expand_call): Adjust accordingly.
1403 * function.c (expand_function_start): If a non-BLKmode return value
1404 is padded at the last significant end of the return register, use the
1405 return value's natural mode for the DECL_RESULT, not the mode of the
1407 (expand_function_end): Shift the same sort of return values left by
1408 the appropriate amount.
1410 2004-11-24 Matt Austern <austern@apple.com>
1412 * recog.c (recog_memoized_1): Remove.
1413 * recog.h (recog_memoized_1): Remove declaration.
1414 (recog_memoized): Change from macro to inline function.
1416 2004-11-24 Devang Patel <dpatel@apple.com>
1419 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
1420 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
1422 2004-11-24 Devang Patel <dpatel@apple.com>
1424 * gcc.c (process_command): Supply -v to linker.
1426 2004-11-24 David Edelsohn <edelsohn@gnu.org>
1427 Paolo Bonzini <bonzini@gnu.org>
1429 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
1430 vector modes without ALTIVEC_ABI. Use GCC vector instead of
1432 (rs6000_pass_by_reference): Split conditional into pieces. Use
1433 GCC vector instead of synthetic vector.
1435 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
1437 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
1438 thread-local variable is invariant.
1440 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1442 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
1443 Handle TYPE_REF_CAN_ALIAS_ALL.
1444 (print_declaration): Print array dimensions like dump_generic_node.
1446 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
1447 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
1449 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
1451 * bitmap.c (INLINE): Do not define.
1452 (bitmap_elem_to_freelist, bitmap_element_free,
1453 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
1454 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
1456 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1458 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
1459 find the index of a PHI argument. Use e->dest_idx instead.
1460 Replace hint with index.
1462 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
1465 2004-11-24 Diego Novillo <dnovillo@redhat.com>
1467 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
1468 regarding PT_MALLOC.
1470 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1472 * config/i386/i386.c (optimization_options): Use
1473 SUBTARGET_OPTIMIZATION_OPTIONS.
1474 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
1475 (TARGET_SUBTARGET_DEFAULT): Don't include
1476 MASK_OMIT_LEAF_FRAME_POINTER.
1478 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1480 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
1483 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1485 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
1486 Use amd64 instead of 64.
1488 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1489 Joseph Myers <joseph@codesourcery.com>
1491 * crtstuff.c (IN_LIBGCC2): Define it.
1492 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
1493 instead of HAVE_LD_RO_RW_SECTION_MIXING.
1494 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
1495 * dwarf2out.c (named_section_eh_frame_section): Check
1496 EH_TABLES_CAN_BE_READ_ONLY.
1497 * except.c (default_exception_section): Likewise.
1498 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
1499 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
1501 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1503 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
1504 index of a PHI argument.
1506 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
1507 find_edge to find the index of a PHI argument.
1509 2004-11-24 Steven Bosscher <stevenb@suse.de>
1511 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
1512 and LABELED_BLOCK_EXPR.
1513 * gimplify.c (gimplify_labeled_block_expr): Remove.
1514 (gimplify_exit_block_expr): Remove.
1515 (gimplify_expr): Don't call them.
1516 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
1517 and LABELED_BLOCK_EXPR.
1518 (estimate_num_insns_1): Likewise.
1519 (walk_tree): Likewise.
1520 * tree-pretty-print.c (dump_generic_node): Don't handle
1521 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
1522 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
1523 (LABELED_BLOCK_EXPR): Likewise.
1524 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
1525 (LABELED_BLOCK_BODY): Likewise.
1526 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
1527 (EXIT_BLOCK_RETURN): Removed.
1529 2004-11-24 Steven Bosscher <stevenb@suse.de>
1531 * cfgrtl.c (rtl_delete_block): Fix comment.
1532 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
1533 or BLOCK_END insn notes.
1534 * jump.c (squeeze_notes): Likewise.
1535 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
1536 EH_REGION_END notes, we never have them to begin with.
1537 * sched-deps.c (sched_analyze_insn): When updating loop notes,
1538 verify that we have indeed only recorded loop notes.
1539 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
1540 Only record loop notes.
1542 * cfgexpand.c (tree_expand_cfg): Fix comment.
1544 * passes.c (rest_of_compilation): Don't do a second call to
1545 convert_from_eh_region_ranges from here, it's already called
1547 * except.c (resolve_fixup_regions): Remove.
1548 (remove_fixup_regions): Remove.
1549 (convert_from_eh_region_ranges_1): Remove.
1550 (convert_from_eh_region_ranges): Remove the case where EH is
1551 not already lowered at the tree level. We always lower there.
1553 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
1556 * tree.c (make_vector_type): Move qualifiers to the vector type,
1557 use the inner type's main variant and build a main variant for
1558 the vector type if necessary.
1559 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
1561 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1563 * target.h (late_rtl_prologue_epilogue): Remove.
1564 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1565 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
1566 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
1567 remaining bits to...
1568 (rest_of_handle_flow2): ...here.
1569 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
1570 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1572 2004-11-23 Mark Mitchell <mark@codesourcery.com>
1574 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
1575 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
1576 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
1578 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
1580 * config/i386/i386.c (override_options): Move
1581 SUBTARGET_OVERRIDE_OPTIONS before defaulting
1582 flag_omit_frame_pointer.
1584 2004-11-23 Richard Henderson <rth@redhat.com>
1586 * rtl.h (validate_subreg): Declare.
1587 * emit-rtl.c (validate_subreg): New.
1588 (gen_rtx_SUBREG): Use it.
1589 * simplify-rtx.c (simplify_subreg): Likewise.
1590 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
1591 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
1592 fallback whenever gen_realpart/gen_imagpart would not be able to
1595 2004-11-23 Richard Henderson <rth@redhat.com>
1597 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
1598 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
1601 2004-11-23 Diego Novillo <dnovillo@redhat.com>
1603 PR tree-optimization/18618
1604 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
1605 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
1606 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
1608 (stmts_to_rescan): Likewise.
1609 (const_and_copies_stack): Likewise.
1610 (nonzero_vars_stack): Likewise.
1611 (vrp_variables_stack): Likewise.
1613 2004-11-23 Richard Henderson <rth@redhat.com>
1615 * cse.c (record_jump_cond_subreg): New.
1616 (record_jump_cond): Use it instead of gen_lowpart.
1618 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
1619 Joseph Myers <joseph@codesourcery.com>
1621 * config/sol2-c.c (solaris_register_pragmas): Use
1622 c_register_pragma_with_expansion.
1623 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
1624 * c-pragma.c (c_register_pragma): Update call to
1625 cpp_register_pragma.
1626 (c_register_pragma_with_expansion): New function.
1627 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
1628 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
1629 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
1631 * doc/tm.texi (c_register_pragma_with_expansion,
1632 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
1634 2004-11-23 Richard Henderson <rth@redhat.com>
1636 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
1637 as mode sizes into local temporaries. Unify failure path.
1639 2004-11-23 Richard Henderson <rth@redhat.com>
1641 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
1642 * caller-save.c (mark_set_regs): Use subreg_regno instead.
1643 * final.c (alter_subreg): Likewise.
1644 * local-alloc.c (reg_is_born): Likewise.
1646 2004-11-23 Richard Henderson <rth@redhat.com>
1648 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
1649 instead of using a SUBREG temporary.
1651 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1653 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
1656 2004-11-23 Zack Weinberg <zack@codesourcery.com>
1658 * function.h (struct function): Remove calls_longjmp.
1659 (current_function_calls_longjmp): Delete.
1660 * tree.h (ECF_LONGJMP): Delete.
1661 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
1662 (ECF_LIBCALL_BLOCK): Everybody slide down one.
1663 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
1664 * builtins.c (expand_builtin_longjmp): Don't set
1665 current_function_calls_longjmp.
1666 * calls.c (special_function_p): Mark longjmp and siglongjmp
1667 with ECF_NORETURN, not ECF_LONGJMP.
1668 (emit_call_1, expand_call, emit_library_call_value_1):
1669 Don't check for ECF_LONGJMP.
1670 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
1671 (need_fake_edge_p): Likewise.
1673 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
1674 * system.h: Poison NON_SAVING_SETJMP.
1675 * function.c (use_register_for_decl)
1676 * gcse.c (compute_hash_table_work, compute_store_table)
1677 * postreload-gcse.c (record_opr_changes)
1678 * reload.c (find_equiv_reg)
1679 * reload1.c (reload)
1680 * config/i386/i386.c (ix86_can_use_return_insn_p):
1681 Remove code conditional on NON_SAVING_SETJMP.
1682 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
1684 * config/i386/sysv3.h: Delete file.
1685 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
1687 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1689 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
1690 the vectorization factor is greater than the iteration count.
1691 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
1692 iteration count is known.
1694 (vect_build_symbol_bound): Removed. Its functionality moved to
1695 vect_generate_tmps_on_preheader.
1696 (vect_generate_tmps_on_preheader): Moved content of
1697 vect_build_symbol_bound here instead of calling it. Changed some
1700 (vect_build_loop_niters): We don't expect a new_bb to be generated -
1702 (vect_gen_niters_for_prolog_loop): Likewise.
1703 (vect_gen_niters_for_prolog_loo): Likewise.
1705 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
1706 (slpeel_add_loop_guard): Likewise.
1707 (slpeel_tree_peel_loop_to_edge): Likewise.
1708 (vect_do_peeling_for_alignment): Likewise.
1710 (vect_get_first_index): Missing space.
1712 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
1714 * config/s390/s390.md ("*iordi3"): Mark commutative.
1715 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
1717 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1719 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
1720 greater than PHI_ARG_CAPACITY.
1721 (reserve_phi_args_for_new_edge): Initialize the new PHI
1722 argument to NULL_TREE. Increment PHI_NUM_ARGS.
1723 (add_phi_arg): Add a PHI argument to the slot given by
1725 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
1726 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
1727 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
1728 argument by looking at PHI_ARG_DEF.
1729 (verify_phi_args): Check for a missing PHI argument. Remove
1730 the check for duplicate PHI arguments.
1731 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
1732 (phi_arg_d): Remove e.
1734 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
1735 by restricting to the case with two outgoing edges.
1737 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
1739 * config/s390/s390.c (s390_backchain_string): Removed.
1740 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
1741 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
1742 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
1743 TARGET_KERNEL_BACKCHAIN to reflect the new options.
1744 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
1745 (TARGET_KERNEL_BACKCHAIN): Removed.
1746 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
1747 (TARGET_PACKED_STACK): New macro.
1748 (TARGET_SWITCHES): New switches added.
1749 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
1751 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
1752 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
1753 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
1754 the change in target switch semantics.
1755 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
1756 (TARGET_DEFAULT): MASK_BACKCHAIN added.
1757 * doc/invoke.texi: Added documentation for the new/changed options.
1759 2004-11-23 Uros Bizjak <uros@kss-loka.si>
1761 PR rtl-optimization/18614
1762 * simplify-rtx.c (simplify_binary_operation): Do not
1763 simplify inner elements of constant arguments of
1766 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1768 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
1771 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1773 * tree-phinode.c (make_phi_node): Use a new variable,
1774 capacity, to receive the return value of ideal_phi_node_len.
1776 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1778 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
1779 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
1780 __gthread_recursive_mutex_init_function.
1781 (__gthread_key_create): Properly cast -1.
1782 (__gthread_recursive_mutex_init_function): New function.
1783 (__gthread_recursive_mutex_lock): Rewrite.
1784 (__gthread_recursive_mutex_trylock): Likewise.
1785 (__gthread_recursive_mutex_unlock): Likewise.
1787 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1789 * config/c4x/t-rtems: New.
1790 * config.gcc: Reflect having added c4x/t-rtems.
1792 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1796 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
1797 lang_hooks.types.type_for_size instead of integer_type_node for the
1800 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1802 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
1804 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1806 * config/arm/t-rtems: New.
1807 * config.gcc: Reflect having added arm/t-rtems.
1809 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1811 * tree-cfg.c (tree_execute_on_growing_pred): New.
1812 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
1813 * tree-flow.h: Add a prototype for
1814 reserve_phi_args_for_new_edge.
1815 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
1816 (add_phi_arg): Don't resize a PHI array.
1818 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1820 * config.gcc: Add avr-*-rtems*.
1821 * config/avr/t-rtems: New.
1822 * config/avr/rtems.h: New.
1824 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1826 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
1827 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
1828 Add comment to function.
1830 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1833 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
1835 PR rtl-optimization/14838
1836 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
1838 (get_last_nonnote_insn): Don't assume last insn is a note.
1840 2004-11-22 Roger Sayle <roger@eyesopen.com>
1842 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
1843 to fold_binary_to_constant.
1844 (nondestructive_fold_unary_to_constant): Likewise, rename to
1845 fold_unary_to_constant.
1846 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
1847 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
1848 (nondestructive_fold_unary_to_constant): Likewise.
1849 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
1850 and fold_binary_to_constant.
1851 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1852 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
1853 and EXEC_UNARY with calls to fold_*nary_to_constant.
1854 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1855 (idx_find_step): Replace uses of EXEC_BINARY with calls to
1856 fold_binary_to_constant.
1858 2004-11-22 Nick Clifton <nickc@redhat.com>
1860 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1861 initialisation of 'e'.
1863 2004-11-22 Roger Sayle <roger@eyesopen.com>
1865 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
1866 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
1867 automatically for targets without TARGET_80387.
1868 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
1869 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
1870 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
1871 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
1872 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
1873 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
1874 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
1875 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
1876 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
1877 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
1878 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
1879 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
1880 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
1881 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
1882 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
1883 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
1884 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
1885 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
1886 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
1887 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
1889 2004-11-22 Dale Johannesen <dalej@apple.com>
1891 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
1892 properly and comment.
1894 2004-11-22 James A. Morrison <phython@gcc.gnu.org
1896 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
1897 (sparc_init_builtins): New function.
1898 (sparc_init_vis_builtins): Create builtin functions for VIS
1900 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
1901 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
1902 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
1903 (def_builtin): New macro for creating builtin functions.
1904 (P): New mode macro for pointer types.
1905 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
1906 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
1907 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
1908 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
1909 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1910 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
1911 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
1913 2004-11-22 Devang Patel <dpatel@apple.com>
1915 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
1917 2004-11-22 Devang Patel <dpatel@apple.com>
1919 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
1920 (if_convertible_phi_p): ... new name.
1921 (if_convertable_modify_expr_p): Rename to ...
1922 (if_convertible_modify_expr_p): ... new name.
1923 (if_convertable_stmt_p): Rename to ...
1924 (if_convertible_stmt_p): ... new name.
1925 (if_convertable_bb_p): Rename to ...
1926 (if_convertible_bb_p): ... new name.
1927 (if_convertable_loop_p): Rename to ...
1928 (if_convertible_loop_p): ... new name.
1930 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1933 * configure.ac (threading): Accept 'posix95'.
1934 * configure: Regenerate.
1935 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
1936 include sol26.h and default to posix95 threads if have_pthread_h.
1937 (sparc-*-solaris2*): Likewise.
1938 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
1939 * gthr-posix95.h: New file.
1940 * config/sol26.h: New file.
1941 * doc/install.texi (--enable-threads): Document 'posix95'.
1943 2004-11-23 Ben Elliston <bje@au.ibm.com>
1945 * pointer-set.h (pointer_set_contains): Remove.
1946 * pointer-set.c (pointer_set_contains): Likewise.
1948 2004-11-22 Dale Johannesen <dalej@apple.com>
1950 * calls.c (expand_call): Do not call preserve_temp_slots.
1952 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1954 * tree-flow.h: Remove the prototype for remove_phi_arg.
1955 Add a prototype for remove_phi_args.
1956 * tree-phinodes.c (remove_phi_arg): Remove.
1957 (remove_phi_args): New.
1958 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
1961 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
1962 after making an edge.
1963 (remove_edge): Call execute_on_shrinking_pred before removing
1965 (redirect_edge_succ): Call execute_on_growing_pred and
1966 execute_on_shrinking_pred.
1967 * cfghooks.c (execute_on_growing_pred): New.
1968 (execute_on_shrinking_pred): Likewise.
1969 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
1970 execute_on_shrinking_pred.
1971 Add prototypes for execute_on_growing_pred and
1972 execute_on_shrinking_pred.
1973 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
1974 execute_on_growing_pred and execute_on_shrinking_pred.
1975 (cfg_layout_rtl_cfg_hook): Likewise.
1976 * tree-cfg.c (tree_cfg_hooks): Likewise.
1978 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
1979 (tree_cfg_hooks): Use it.
1980 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
1981 (ssa_redirect_edge): Don't call remove_phi_arg_num.
1983 * tree-phinodes.c (remove_phi_arg_num): Make it static.
1984 * tree-flow.h: Remove the corresponding prototype.
1986 * tree-ssa.c (ssa_remove_edge): Remove.
1987 * tree-flow.h: Remove the corresponding prototype.
1988 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
1989 * basic-block.h: Likewise.
1990 * tree-if-conv.c: Likewise.
1991 * tree-ssa-threadupdate.c: Likewise.
1993 2004-11-23 Ben Elliston <bje@au.ibm.com>
1995 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
1996 @table to list the BSI methods. Use individual @findex directives
1997 instead of one with a comma-separated list of index entries.
1999 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
2001 PR tree-optimization/18529
2002 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
2003 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
2004 (fold): Call fold_to_nonsharp_ineq_using_bound.
2005 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
2006 (number_of_iterations_cond): Fold the expressions before futher
2008 (tree_simplify_using_condition): Handle case when cond or expr is
2009 an EQ_EXPR specially.
2011 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
2013 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
2014 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
2016 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2017 Fariborz Jahanian <fjahanian@apple.com>
2019 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
2021 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
2022 Align 16 byte and larger vectors like Altivec.
2023 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
2024 (function_arg): Same.
2025 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
2027 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2030 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
2033 2004-11-22 Richard Henderson <rth@redhat.com>
2035 * function.c (assign_parm_setup_block): Revert 11-13 change to
2036 forcably re-mode a (possibly BLKmode) hard register.
2038 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2040 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
2042 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2044 * config/rs6000/power4.md: Remove delay between dispatch and issue
2045 associated with dispatch group slots 3 and 4.
2046 * config/rs6000/power5.md: Same.
2048 2004-11-21 Jeff Law <law@redhat.com>
2050 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
2052 * cfgbuild.c (make_edges): Likewise.
2053 * cfghooks.c (can_duplicate_block_p): Likewise.
2054 * cfgloop.c (loop_latch_edge): Likewise.
2055 * cfgloopmanip.c (force_single_succ_latches): Likewise.
2056 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2057 * predict.c (predict_loops, propagate_freq): Likewise.
2058 * tracer.c (tail_duplicate): Likewise.
2059 * tree-cfg.c (disband_implicit_edges): Likewise.
2060 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
2062 2004-11-22 Nick Clifton <nickc@redhat.com>
2064 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2065 initialisation of 'e'.
2067 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
2069 PR rtl-optimization/18599
2070 * regrename.c (copyprop_hardreg_forward): Speed up by putting
2071 BB_VISITED flags on basic blocks as we process them.
2073 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
2076 * config/rs6000/altivec.md (VI_char): New mode attribute.
2077 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
2078 (add<mode>3): ... this.
2079 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
2080 (sub<mode>3): ... this.
2081 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
2082 (smax<mode>3): ... this.
2083 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
2084 (smin<mode>3): ... this.
2085 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
2086 (umax<mode>3): ... this.
2087 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
2088 (umin<mode>3): ... this.
2089 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2090 (and<mode>3): ... this.
2091 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2092 (ior<mode>3): ... this.
2093 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
2094 (xor<mode>3): ... this.
2095 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2096 (and<mode>3): ... this.
2097 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2098 (ior<mode>3): ... this.
2099 (altivec_vnor): Replace with ...
2100 (altivec_nor<mode>): ... this.
2101 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
2102 (one_cmpl<mode>2): ... this.
2103 (altivec_vandc): New expander.
2104 (*andc<mode>3): New insn.
2105 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
2107 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
2110 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
2111 creating iv instead of integer_type.
2112 (vect_build_loop_niters): Remove redundant code.
2113 (vect_transform_loop_bound): Removed (duplicates functionality of
2114 make_loop_iterate_ntimes.
2115 (vect_gen_niters_for_prolog_loop): Add documentation. Call
2116 lang_hooks.types.type_for_size to create a type of the required size.
2117 Use that type instead of integer_type. Remove redundant code.
2118 (vect_update_niters_after_peeling): Use type of niters instead of
2120 (vect_transform_loop): Unify handling of known and unknown loop bound
2121 cases. Call make_loop_iterate_ntimes instead of
2122 vect_transform_loop_bound.
2124 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2127 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
2130 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
2133 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
2135 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2137 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
2139 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
2140 m32r/libgcc-glibc.ver.
2141 * config/m32r/libgcc-glibc.ver: Add New file.
2143 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
2145 * bitmap.h (struct bitmap_obstack): New obstack type.
2146 (struct bitmap_head_def): Replace using_obstack with obstack
2148 (bitmap_default_obstack): New.
2149 (bitmap_initialize): Make inline, does not do allocation.
2150 (bitmap_release_memory): Remove.
2151 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
2152 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2153 bitmap_obstack_free, bitmap_malloc_free): Declare.
2154 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
2155 (BITMAP_FREE): Replace with ...
2156 (BITMAP_OBSTACK_FREE): ... this.
2157 (BITMAP_XFREE): Adjust.
2158 (BITMAP_INIT_ONCE): Remove.
2159 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
2160 (bitmap_default_obstack): New.
2161 (bitmap_elem_to_freelist): Adjust.
2162 (bitmap_element_allocate): Adjust. Break initialization into ...
2163 (bitmap_obstack_initialize): ... here.
2164 (bitmap_release_memory): Replace with ...
2165 (bitmap_obstack_release): ... this.
2166 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2167 bitmap_obstack_free, bitmap_malloc_free): New.
2168 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
2170 (bitmap_initialize): Move to bitmap.h.
2171 * gengtype.c (open_base_files): Add obstack.h to ifiles.
2172 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
2173 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
2174 (INITIALIZE_REG_SET): Remove.
2175 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
2176 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
2177 (flow_obstack): Do not declare.
2178 (reg_obstack): Declare.
2179 * regs.h: Include obstack.h.
2180 * tree-optimize.c (tree_rest_of_compilation): Initialize and
2181 release bitmap obstack here.
2182 * bb-reorder.c: #include regs, not basic-block.
2183 (fix_crossing_conditional_branches): Allocate regsets from
2185 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
2187 * caller-save.c: Include regs.h earlier.
2188 * cfg.c: Do not include basic-block.h or obstack.h.
2189 (reg_obstack): Define.
2190 * cfganal.c: Include obstack.h
2191 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
2193 * cfglayout.c: Do not include obstack.h.
2194 (flow_obstack): Remove declaration.
2195 (cfg_layout_duplicate_bb): Use reg_obstack.
2196 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
2197 * cfgrtl.c (rtl_split_block): Use reg_obstack.
2198 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
2199 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
2200 (cfg_layout_split_edge): Use reg_obstack.
2201 * cse.c: Include regs.h earlier.
2202 * ddg.c: Do not include basic-block.h.
2203 * dominance.c: Inlude obstack.h.
2204 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
2205 (calculate_global_regs_live): Likewise.
2206 (allocate_bb_life_data): Use reg_obstack.
2207 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
2208 * global.c: Do not include basic-block.h.
2209 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
2210 * graph.c: Include obstack.h.
2211 * haifa-sched.c: Do not include basic-block.h.
2212 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
2213 * local-alloc.c: Do not include basic-block.h.
2214 * loop-init.c, loop-invariant.c: Include obstack.h.
2215 * loop-iv.c: Likewise.
2216 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
2218 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
2219 * modulo-sched.c: Do not include basic-block.h.
2220 * passes.c (rest_of_handle_final): Do not call
2221 regset_release_memory.
2222 * ra-debug.c: Include regs.h earlier. Do not include
2224 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
2225 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
2226 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
2227 (regset_release_memory): Remove.
2228 * resource.c: Do not include basic-block.h.
2229 * rtlanal.c: Do not include basic-block.h.
2230 * sbitmap.c: Include obstack.h.
2231 * sched-deps.c: Do not include basic-block.h.
2232 (reg_pending_sets_head, reg_pending_clobbers_head,
2233 reg_pending_uses_head): Remove.
2234 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
2235 * sched-ebb.c: Do not include basic-block.h.
2236 * sched-rgn.c: Likewise.
2237 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
2239 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
2240 * tree-sra.c (decide_instantiations): Adjust bitmap
2242 * tree-ssa-dce.c: Include obstack.h.
2243 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
2244 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
2245 (bitmap_set_new): Likewise.
2246 (init_pre): Initialize bitmap obstack.
2247 (fini_pre): Release bitmap obstack.
2248 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
2249 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
2250 (mark_for_rewrite, unmark_for_rewrite): Likewise.
2251 (marked_ssa_names): Likewise.
2252 (init_ssanames): Use BITMAP_XMALLOC.
2253 (fini_ssanames): Use BITMAP_XFREE.
2254 * web.c: Include obstack.h
2256 2004-11-22 Nick Clifton <nickc@redhat.com>
2258 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
2259 predecessor in the first for-loop.
2261 2004-11-21 Stan Shebs <shebs@apple.com>
2263 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
2265 (function_arg): Move darwin test up, sniff mode first for
2266 efficiency, test for union type.
2268 2004-11-21 Dale Johannesen <dalej@apple.com>
2270 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
2272 2004-11-21 Jeff Law <law@redhat.com>
2274 * tree-ssa.c (verify_use): Fix comment.
2275 (verify_phi_args): Check that the number of incoming edges matches
2276 the number of PHI arguments. Check that each PHI argument is
2277 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
2278 dead or duplicated edges. Clear e->aux earlier and avoid separate
2279 loop to clear e->aux and test for missed edges.
2280 (verify_ssa): Remove first walk over statements. Move checking
2281 of PHI args into verify_phi_args. Move checking of statements
2282 with aliased stores and V_MAY_DEFS into the remaining loop over
2283 the statements. Register defs by walking through the formal
2286 2004-11-21 Roger Sayle <roger@eyesopen.com>
2289 * dojump.c (compare_from_rtx): Clarify mode argument in function
2290 description. Correct order of mode/cmp_mode arguments in call to
2291 simplify_relational_operation. Check "tem" for COMPARISON_P.
2293 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
2294 David Edelsohn <edelsohn@gnu.org>
2297 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
2298 synthetic vectors in memory.
2299 (function_arg_boundary): Align large synthetic vectors.
2300 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
2302 2004-11-21 Jeff Law <law@redhat.com>
2304 * cfg.c (update_bb_profile_for_threading): Do not rescale the
2305 successor probabilities if they are not going to change. Pull
2306 division out of loop if we do need to rescale successor probabilities.
2308 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
2309 index of the destination block for the hash value rather than
2312 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
2314 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
2315 checks for neither argument being an array or pointer (swapping
2316 the arguments if necessary), the array argument being a pointer to
2317 or array of functions and for -Wchar-subscripts warnings upfront.
2319 2004-11-20 Jeff Law <law@redhat.com>
2321 * regrename.c (copyprop_hardreg_forward): Only search for a
2322 previously processed block if the current block only has one
2325 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
2327 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
2329 * config/arm/arm.c: Follow spelling conventions.
2331 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
2333 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
2334 a bit in tune_flags.
2335 (const_double_needs_minipool): Likewise. Split most of the code out
2337 (arm_const_double_inline_cost): ... new function here.
2338 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
2339 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
2340 word constants of length 2, 3 and 4 insns respectively.
2341 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
2342 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
2343 constraints. Set insn lenghts accordingly.
2345 2004-11-19 Jeff Law <law@redhat.com>
2347 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
2348 a hash table. Extensive modifications throughout to support
2351 (struct local_info): New.
2352 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
2354 (redirection_data): Now a hashtable.
2355 (redirection_data_hash, redirection_data_eq): New.
2356 (lookup_redirection_data, create_duplicates): New.
2357 (create_edge_and_update_destionation_phis): New.
2358 (fixup_template_block, redirect_edges): New.
2359 (thread_block): Use hash table traversals instead of loops over
2360 varray entries or incoming edge vectors.
2362 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2364 * basic-block.h (edge_def): Add dest_idx.
2365 * cfg.c (unchecked_make_edge): Initialize dest_idx.
2366 (remove_edge): Simplify the disconnection of an edge from its
2368 (redirect_edge_succ): Likewise.
2369 * cfghooks.c (verify_flow_info): Check the consistency of
2370 dest_idx for each edge.
2372 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
2374 * simplify-rtx.c (simplify_ternary_operation): Use
2377 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2379 * tree-cfg.c (reinstall_phi_args): New.
2380 (tree_split_edge): Use it after redirecting an edge. Don't
2381 modify PHI_ARG_EDGE.
2383 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2385 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
2386 if checking is enabled.
2388 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
2390 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
2391 too many nested scopes.
2393 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2396 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
2397 changed to suppoer uses-after-loop and to void creating flow paths
2398 that shouldn't exist.
2399 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
2400 Modified to fit the new peeling scheme. Avoid quadratic behavior.
2401 (slpeel_add_loop_guard): Takes additional argument.
2402 (slpeel_verify_cfg_after_peeling): New function.
2403 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
2404 documentation. Use 'exit-bb' instead of creating 'new-bb'.
2405 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
2406 the new peeling scheme.
2407 (copy_phi_nodes): Function removed. Its functionality moved to
2408 update_phis_for_duplicate_loop.
2409 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
2410 moved here. Added documentation. Modified to fit the new peeling scheme.
2411 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
2412 needed - done in slpeel_tree_peel_loop_to_edge.
2413 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
2414 (vect_do_peeling_for_loop_bound): Add documentation. Call
2415 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
2416 with additional argument.
2417 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
2419 (vect_finish_stmt_generation): Avoid 80 column oveflow.
2421 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2423 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
2425 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
2426 without last two arguments. Update single_exit of loops.
2427 (vect_update_niters_after_peeling): Removed. Its functionality was
2428 moved to vect_do_peeling_for_alignment.
2429 (vect_do_peeling_for_loop_bound): New name for function previously
2430 called vect_transform_for_unknown_loop_bound.
2431 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
2432 instead of code that duplicates the same functionality.
2433 (vect_do_peeling_for_alignment): Functionality of
2434 vect_update_niters_after_peeling moved here.
2435 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
2436 previously named vect_transform_for_unknown_loop_bound - for both known
2437 and unknown loop bound cases.
2439 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2441 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
2442 previously called verify_loop_for_duplication. All conditions compacted
2443 into one compound condition. Removed debug dumps.
2444 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
2445 functionality moved to vect_can_advance_ivs_p, and some to
2446 vect_analyze_loop_form.
2447 (vect_can_advance_ivs_p): New function. Contains functionality that was
2448 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
2449 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
2450 (vect_analyze_operations): Call vect_can_advance_ivs_p and
2451 slpeel_can_duplicate_loop_p.
2452 (vect_get_loop_niters): Added documentation.
2453 (vect_analyze_loop_form): Check the loop entry always - not only in case
2454 of unknown loop bound. Create preheader and exit bb if necessary. Apply
2455 a check that used to take place in
2456 vect_analyze_loop_with_symbolic_num_of_iters.
2457 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
2458 Remove redundant call to rewrite_into_loop_closed_ssa.
2459 (vect_compute_data_refs_alignment): Removed obsolete comment.
2461 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2463 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
2464 function previously called tree_duplicate_loop_to_edge.
2465 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
2466 previously called tree_duplicate_loop_to_edge_cfg.
2467 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
2469 (slpeel_update_phi_nodes_for_guard): Likewise.
2470 (slpeel_make_loop_iterate_ntimes): Likewise.
2471 (slpeel_add_loop_guard): Likewise.
2472 (allocate_new_names, free_new_names): Function declaration moved to top
2474 (rename_use_op, rename_def_op): Likewise.
2475 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
2476 (vect_generate_tmps_on_preheader): Function declaration moved.
2477 (vect_transform_for_unknown_loop_bound): Added missing function
2480 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
2483 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
2484 Define a VEC(tree_on_heap) for head.
2485 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2486 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2487 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
2488 the VEC(tree_on_heap) function. Also free it before returning.
2489 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2490 for block_defs_stack.
2491 (restore_currdefs_to_original_value): Use VEC_length instead of
2492 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2493 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2494 for block_defs_stack.
2495 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2496 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2497 for block_defs_stack.
2498 (ssa_register_new_def): Likewise.
2499 (ssa_rewrite_initialize_block): Likewise.
2500 (rewrite_finalize_block): Use VEC_length instead of
2501 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2502 (ssa_rewrite_finalize_block): Likewise.
2503 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2504 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
2505 (rewrite_blocks): Initialize block_defs_stack with
2506 the VEC(tree_on_heap) function. Also free it before returning.
2507 (rewrite_ssa_into_ssa): Likewise.
2509 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
2511 * config/darwin.c (machopic_data_defined_p): return 1 for
2512 MACHOPIC_DEFINED_FUNCTION.
2514 2004-11-19 Jeff Law <law@redhat.com>
2516 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
2519 2004-11-19 Paul Brook <paul@codesourcery.com>
2522 * varasm.c (default_assemble_integer): Allow pointer-sized values.
2525 2004-11-19 Nick Clifton <nickc@redhat.com>
2527 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
2528 zero_extension and lshiftrt insns.
2529 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
2531 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
2532 to handle bp and bn insn patterns with a zero_extend rtx
2535 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
2537 * config/arm/arm.md (generic_sched): Make const.
2539 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2541 * emit-rtl.c (classify_insn): Make it static.
2542 * rtl.h: Remove the corresponding prototype.
2544 * integrate.c (has_func_hard_reg_initial_val,
2545 get_func_hard_reg_initial_val): Make them static.
2546 * integrate.h: Remove the corresponding prototypes.
2548 2004-11-19 Ben Elliston <bje@au.ibm.com>
2550 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
2551 (dw2_asm_output_delta_sleb128): Likewise.
2552 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
2553 (dw2_asm_output_delta_sleb128): Likewise.
2555 2004-11-19 Adam Nemet <anemet@lnxw.com>
2557 * tree-ssa-alias.c: Fix comment.
2559 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2561 * tree-outof-ssa.c: Fix a comment typo.
2563 2004-11-19 Ben Elliston <bje@au.ibm.com>
2565 * predict.h (predict_insn): Remove extern declaration.
2566 * predict.c (predict_insn): Make static.
2568 2004-11-19 Alan Modra <amodra@bigpond.net.au>
2570 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
2572 2004-11-18 Nicolas Pitre <nico@cam.org>
2574 * config/arm/arm.c (const_double_needs_minipool): New function to
2575 determine if a CONST_DOUBLE should be pushed to the minipool.
2576 (note_invalid_constants): Use it.
2578 2004-11-18 Paul Brook <paul@codesourcery.com>
2580 * config/arm/arm.c (target_float_switch): New variable..
2581 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
2582 target_float_switch.
2583 * config/arm/arm.h (target_float_switch): Declare.
2584 (ARM_FLAG_SOFT_FLOAT): Remove.
2585 (TARGET_SWITCHES): Remove hard-float and soft-float.
2586 (TARGET_OPTIONS): Add hard-float and soft-float.
2587 (TARGET_DEFAULT_FLOAT_ABI): Define.
2588 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
2589 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
2590 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
2591 * config/arm/netbsd-elf.h: Ditto.
2592 * config/arm/netbsd.h: Ditto.
2593 * config/arm/pe.h: Ditto.
2594 * config/arm/unknown-elf.h: Ditto.
2595 * config/arm/wince-pe.h: Ditto.
2596 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2597 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2598 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2600 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2602 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
2603 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
2604 altivec_lvx_4sf): Rename and replace with ...
2605 (altivec_lvx_<mode>): ... mode macro version.
2606 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
2607 altivec_stvx_4sf): Rename and replace with ...
2608 (altivec_stvx_<mode>): ... mode macro version.
2609 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
2610 (mov<mode>): ... mode macro version.
2611 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
2612 *movv4sf_internal1): Replace with ...
2613 (*mov<mode>_internal): ... mode macro version.
2614 (get_vrsave_internal, *set_vrsave_internal, *save_world,
2615 *restore_world): Unquote output statements.
2616 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
2617 altivec_expand_st_builtin): Adjust insn names.
2619 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
2621 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
2623 (rs6000_override_options): Likewise.
2624 (spe_build_register_parallel): Handle complex doubles on e500v2.
2625 (rs6000_spe_function_arg): Likewise.
2626 (function_arg): Likewise.
2627 (rs6000_function_value): Likewise.
2628 (rs6000_libcall_value): Likewise.
2630 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
2632 * ifcvt.c (find_if_block): Move the check for the number of edges
2633 above the loops checking for complex edges.
2634 Remove the counting of edges as we use EDGE_COUNT now.
2636 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2638 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2639 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
2641 2004-11-18 Andreas Schwab <schwab@suse.de>
2643 * config/i386/i386.md (define_peephole2): Revert last change.
2645 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2647 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2648 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
2650 2004-11-18 Diego Novillo <dnovillo@redhat.com>
2652 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
2655 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
2657 * Makefile.in (macro_list): Depend on s-macro_list.
2658 (s-macro_list): New target.
2660 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2663 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2664 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2665 (fold_range_test): Adjust.
2666 (fold_truthop): Use it.
2667 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2668 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2670 2004-11-18 Uros Bizjak <uros@kss-loka.si>
2672 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
2673 insn split constraint.
2674 (define_peephole2): Remove unneeded "&& 1" from peephole2
2677 2004-11-18 Ben Elliston <bje@au.ibm.com>
2679 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
2680 element for bsi_prev; use @findex instead.
2682 2004-11-18 Ben Elliston <bje@au.ibm.com>
2684 * opts.h (add_input_filename): Remove extern declaration.
2685 * opts.c (add_input_filename): Make static.
2687 2004-11-17 Mark Mitchell <mark@codesourcery.com>
2689 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
2692 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2694 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
2695 * system.h: Poison it.
2696 * doc/tm.texi: Delete its documentation.
2698 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2699 Mark Mitchell <mark@codesourcery.com>
2701 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
2702 * config/i386/i386.c (i386_solaris_elf_named_section): New
2704 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
2705 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
2707 (ASM_QUAD): Don't undefine for biarch targets.
2708 * config/i386/t-sol2: Introduce multilib support.
2710 2004-11-18 Ben Elliston <bje@au.ibm.com>
2712 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
2714 2004-11-18 Ben Elliston <bje@au.ibm.com>
2716 * cgraph.h: Replace "it's" with "its" throughout.
2718 2004-11-18 Ben Elliston <bje@au.ibm.com>
2720 * doc/rtl.texi (Flags): Grammar fix.
2722 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2724 * expmed.c (alg_code): Add alg_unknown.
2725 (alg_hash_entry): New.
2726 (NUM_ALG_HASH_ENTRIES): Likewise.
2727 (alg_hash): Likewise.
2728 (synth_mult): Cache the result into alg_hash.
2730 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2732 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
2733 config/rs6000/libgcc-ppc64.ver.
2735 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2737 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
2738 checking if an unconditional return is followed by a barrier.
2740 * jump.c (condjump_p): Remove unreachable code.
2742 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
2743 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
2744 tree-ssa-live.h, tree.h: Remove unused prototypes.
2746 2004-11-17 Jeff Law <law@redhat.com>
2748 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
2749 (edge_to_cases_elt): Renamed from edge_to_case_leader.
2750 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
2751 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
2752 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
2753 (get_cases_for_edge): New function.
2754 (start_recording_case_labels, end_recording_case_labels): Similarly.
2755 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
2756 chain equivalent CASE_LABEL_EXPRs together.
2757 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
2758 (make_switch_expr_edges): Do not record edge/cases here.
2759 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
2760 (split_critical_edges): Record cases around the edge splitting code.
2761 (cleanup_dead_labels): Use CASE_LABEL again.
2762 (tree_redirect_edge_and_branch): If we have a mapping from edge
2763 to cases, use it to handle redirections. Else do it the slow way.
2764 * tree.h (CASE_LEADER_OR_LABEL): Kill.
2765 (CASE_LABEL): Revert to just looking at the tree's second operand.
2766 * tree.c (get_case_label): Kill.
2768 2004-11-17 Diego Novillo <dnovillo@redhat.com>
2770 PR tree-optimization/18307
2771 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
2772 'orig' are the same node.
2773 (collect_points_to_info_r): Do not call merge_pointed_to_info
2774 when the PHI argument is identical to the LHS.
2776 2004-11-17 Steven Bosscher <stevenb@suse.de>
2778 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
2779 to insert the exit or entry block.
2780 (ssa_prop_init): Use add_control_edge to seed the algorithm.
2782 2004-11-16 Zack Weinberg <zack@codesourcery.com>
2784 * mkmap-flat.awk, mkmap-symver.awk: If the last version
2785 assigned to a symbol was '%exclude', do not emit it anywhere.
2786 If leading_underscore is true, prefix all symbols from the
2787 version scripts with a leading underscore before comparing
2788 them with nm output or emitting them. Remove support for dot
2790 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
2791 (SHLIB_MAPFILES): Use libgcc-std.ver.
2792 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
2793 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
2794 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
2795 libgcc-excl.ver and libgcc-glibc.ver.
2797 * config/sh/libgcc-excl.ver: New file.
2798 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
2800 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2802 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
2803 the test when the edge has the opposite meaning, not when
2804 the first argument is invariant.
2806 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
2808 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
2810 (rs6000_complex_function_value): Handle e500 v2 variant.
2812 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2814 Fix PR tree-optimization/18519
2816 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
2817 * tree-pass.h: Add TODO_cleanup_cfg.
2818 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
2819 (ccp_finalize): Remove call to cleanup_cfg.
2820 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
2821 (pass_cd_dce): Ditto.
2822 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
2823 dump_function_to_file.
2824 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
2826 (pass_ch): Add TODO_cleanup_cfg.
2827 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
2829 (pass_loop_done): Add TODO_cleanup_cfg.
2830 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
2831 (tree_ssa_phiopt): Remove call to cleanup_cfg.
2833 2004-11-16 Devang Patel <dpatel@apple.com>
2835 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
2837 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2839 * expmed.c, ra-colorize.c: Fix comment typos.
2841 * doc/tm.texi: Fix typos.
2843 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
2844 Mark Mitchell <mark@codesourcery.com>
2847 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
2850 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2852 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
2853 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
2855 2004-11-16 Devang Patel <dpatel@apple.com>
2857 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
2859 2004-11-16 Eric Christopher <echristo@redhat.com>
2861 * config/mips/mips.c: Use rtl _P predicates.
2862 * config/mips/mips.h: Ditto.
2863 * config/mips/mips.md: Ditto.
2865 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
2867 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
2870 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2872 * config/s390/s390.c (s390_cc_modes_compatible): New function.
2873 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
2875 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
2878 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
2879 before and after the insns for getting GOT address in non-PIC
2880 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
2883 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2885 * gcc/cse.c (struct change_cc_mode_args): New structure.
2886 (cse_change_cc_mode_insn): New function.
2887 (cse_change_cc_mode): Use validate_change to perfom changes.
2888 (cse_change_cc_mode_insns, cse_condition_code_reg):
2889 Call cse_change_cc_mode_insn.
2891 2004-11-16 Steven Bosscher <stevenb@suse.de>
2895 2004-11-16 Steven Bosscher <stevenb@suse.de>
2897 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
2899 2004-11-15 Dale Johannesen <dalej@apple.com>
2901 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
2903 2004-11-15 Dale Johannesen <dalej@apple.com>
2905 * profile.c (compute_branch_probabilities): Prevent
2906 crash with EH in RTL-based profiling.
2908 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2910 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
2912 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
2913 * tree-ssa-dom.c (thread_across_edge): Likewise.
2914 * tree-vectorizer.c (vect_transform_loop_bound): Replace
2915 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
2918 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
2919 (tree_flow_call_edges_add): Update the call to
2920 bsi_commit_edge_inserts.
2921 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2922 * profile.c (branch_prob): Likewise.
2923 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
2924 * tree-sra.c (scalarize_function): Likewise.
2925 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2926 * tree-ssa-pre.c (fini_pre): Likewise.
2927 * tree-flow.h: Update the prototype for
2928 bsi_commit_edge_inserts.
2930 2004-11-15 Eric Christopher <echristo@redhat.com>
2932 * sched-deps.c (set_sched_group_p): Delete.
2933 (delete_all_dependencies): New function.
2934 (fixup_sched_groups): Use. New function.
2935 (sched_analyze_insn): Use.
2937 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2939 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
2940 RROTATE_EXPR or unknown code.
2941 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
2942 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
2943 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
2946 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2949 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
2950 after processing the declarator.
2952 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
2954 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
2956 (altivec_vspltb): Same.
2957 (altivec_vspltw): Same.
2958 (altivec_vspltisb): Same.
2959 (altivec_vspltish): Same.
2960 (altivec_vspltisw): Same.
2961 (altivec_vspltisw_v4sf): Same.
2962 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
2964 Move "End of vector xor's" comment to the right place.
2966 2004-11-15 Steve Ellcey <sje@cup.hp.com>
2968 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
2969 instead of nonimmediate_operand.
2971 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2973 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2974 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
2975 * config/sol2.c (solaris_output_init_fini): Update calls to
2976 ASM_OUTPUT_CALL. Include "rtl.h".
2978 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2980 * config/sol2-c.c (cmn_err_char_table): Add "p".
2982 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2984 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
2985 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
2987 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2989 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
2990 within the multilib directory.
2992 2004-11-15 Nick Clifton <nickc@redhat.com>
2994 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
2995 builtin assert of cpu=xstormy16.
2997 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
2999 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
3002 2004-11-14 Richard Henderson <rth@redhat.com>
3005 * calls.c (struct arg_data): Add parallel_value.
3006 (precompute_register_parameters): Set it.
3007 (load_register_parameters): Use it.
3008 (store_one_arg): Also set it here.
3010 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
3012 PR tree-optimization/18431
3013 * fold-const.c (associate_trees): Do not produce x + 0.
3014 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
3016 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
3018 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
3019 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
3021 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
3023 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
3025 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3027 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
3028 value-prof.c: Fix comment typos.
3030 2004-11-14 Stan Shebs <shebs@apple.com>
3032 Basic ABI changes for passing structs by value in 64-bit Darwin.
3033 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
3034 (rs6000_override_options): Set it for 64-bit Darwin.
3035 (rs6000_parse_abi_options): Add testing options to change it.
3036 (rs6000_return_in_memory): Test whether the type is one
3037 that can be passed in registers.
3038 (darwin64_function_arg_advance): New.
3039 (function_arg_advance): Call it, plus add recursion depth
3040 argument and test when counting off arguments.
3041 (rs6000_darwin64_function_arg): New.
3042 (function_arg): Call it.
3043 (setup_incoming_varargs): Add argument to function_arg_advance.
3044 (rs6000_darwin64_function_value): New.
3045 (rs6000_function_value): Call it.
3046 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
3047 * config/rs6000/rs6000-protos.h: Update decl of
3048 function_arg_advance.
3050 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
3053 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
3054 support TImode before adding __int128_t and __uint128_t types.
3056 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
3059 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
3060 (vect_transform_loop_bound): Set loop->nb_iterations.
3062 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
3063 Andrew Pinski <pinskia@physics.uc.edu>
3066 * tree-vectorize.c (vect_build_loop_niters): Do not insert
3067 NULL into the instruction stream. Initialize new_bb to NULL.
3068 (vect_update_ivs_after_vectorizer): Likewise.
3069 (vect_gen_niters_for_prolog_loop): Likewise.
3071 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
3073 PR tree-optimization/18431
3074 * tree-flow.h (stmt_references_memory_p): Declare.
3075 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
3076 * tree-ssa.c (stmt_references_memory_p): New function.
3078 2004-11-14 Andreas Schwab <schwab@suse.de>
3080 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
3083 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3085 * c-common.c (walk_stmt_tree): Remove.
3086 * c-common.h: Remove the corresponding prototype.
3088 * emit-rtl.c (push_to_full_sequence): Remove.
3089 * rtl.h: Remove the corresponding prototype.
3091 * cselib.c, expr.c: Fix comment typos.
3093 2004-11-13 Richard Henderson <rth@redhat.com>
3095 * calls.c (precompute_register_parameters): Force all PARALLELs
3096 into pseudo registers.
3097 (load_register_parameters): Copy PARALLELs into hard registers.
3098 * function.c (assign_parm_setup_block): Copy PARALLELS into
3099 pseudo registers. Do emit_group_store in conversion_insns.
3100 * expr.c (emit_group_load_1): Rename from emit_group_load, take
3101 tmps as an argument. Move final copy loop ...
3102 (emit_group_load): ... here. New function.
3103 (emit_group_load_into_temps, emit_group_move_into_temps): New.
3104 * expr.h: Declare them.
3106 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
3108 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
3109 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
3110 with PHI_CHAIN where appropriate.
3112 2004-11-13 Dale Johannesen <dalej@apple.com>
3114 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
3115 (tree_block_label): Ditto.
3116 (flush_pending_stmts): Ditto.
3117 (insert_edge_copies): Ditto.
3118 (expr_invariant_in_loop_p): Ditto.
3119 (TDF_USE_OPS): Parenthesize definition.
3120 (TDF_USE_VOPS): Ditto.
3122 2004-11-13 David Edelsohn <edelsohn@gnu.org>
3124 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
3125 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
3127 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
3129 2004-11-14 Joseph Myers <joseph@codesourcery.com>
3131 * config/i386/i386.c (override_options): Move loop to set default
3132 tuning to correct place.
3134 2004-11-13 Zak Kipling <zak@transversal.com>
3137 * config/i386/i386.c (classify_argument): Fix infinite loop when
3138 passing object with 3 or more base classes by value.
3140 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3142 * doc/md.texi (constraints) <% modifier>: Mention that it is
3143 useless when the two alternatives are strictly identical.
3145 2004-11-13 Richard Henderson <rth@redhat.com>
3147 * expmed.c (extract_split_bit_field): Temporarily disable call to
3148 extract_force_align_mem_bit_field.
3150 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
3152 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
3155 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
3156 lambda-code.c, postreload.c, predict.c, tree-sra.c,
3157 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
3159 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
3161 * doc/install.texi (automake): Correctly document that everything now
3162 will use automake 1.9.3.
3164 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
3167 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
3168 TImode. Sorry for other non-complex larger-than-64-bit modes.
3169 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
3171 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
3173 * doc/install.texi (automake): Document that everything now uses 1.9.
3175 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
3177 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
3180 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
3182 * tree.h: Fix comment typos.
3184 2004-11-13 Steven Bosscher <stevenb@suse.de>
3186 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
3187 HARD_REGISTER_NUM_P.
3189 * cselib.c (new_cselib_val): Make comment correct and more detailed.
3190 * flow.c (mark_set_1): Likewise.
3192 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
3193 duplicate_eh_regions): Remove.
3194 * except.h (duplicate_eh_regions): Remove prototype.
3195 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
3196 global_const_equiv_varray): Remove.
3197 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
3198 global_const_equiv_varray, set_label_in_map): Remove prototypes,
3199 extern declaration, and #define.
3200 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
3201 (struct inline_remap): Remove.
3202 * varray.c (struct element): Remove entry for const_equiv_data.
3203 * varray.h (struct const_equiv_data): Remove.
3204 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
3205 (union varray_data_tag) <const_equiv>: Remove.
3206 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
3207 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
3209 * regstack.c (record_label_references): Remove unused function.
3211 * rtl.def (VALUE): Update comment.
3212 (LABEL_REF): Remove unused operand 2.
3213 * rtl.h (struct rtx_def): Update for removed accessor macros.
3214 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
3215 REG_LOOP_TEST_P): Remove.
3216 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
3217 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
3218 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
3220 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
3221 Eric Botcazou <ebotcazou@libertysurf.fr>
3224 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
3226 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
3227 (V32I): New macro for 32-bit modes.
3228 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
3229 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
3230 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
3231 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
3232 one_cmpldi_sp64): Use V64I instead of DI.
3233 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
3234 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
3235 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
3236 (nandv64i_vis, nandv32i_vis): New patterns.
3238 2004-11-12 Mike Stump <mrs@apple.com>
3240 * Makefile.in: Add html support.
3241 * java/Make-lang.in: Likewise.
3242 * fortran/Make-lang.in: Likewise.
3243 * treelang/Make-lang.in: Likewise.
3244 * doc/install.texi: Likewise.
3245 * doc/makefile.texi: Likewise.
3246 * doc/sourcebuild.texi: Likewise.
3248 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
3250 * tree-ssa-loop-manip.c: Fix a comment typo.
3252 2004-11-12 Mike Stump <mrs@apple.com>
3254 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
3255 renaming this node to Concept Index.
3256 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
3257 to more closely match gcc.texi.
3259 2004-11-12 Jeff Law <law@redhat.com>
3261 * tree-cfg.c (hashtab.h): Include.
3262 (struct edge_to_case_leader_elt): New structure.
3263 (edge_to_case_leader): New.
3264 (edge_to_case_leader_hash): New hashtable hasing function.
3265 (edge_to_case_leader_eq): New hashtable equality function.
3266 (record_switch_edge): New function.
3267 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
3268 (make_switch_expr_edges): Build the edge-to-case-leader
3269 hash table. Tear down the hash table when we're done.
3270 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
3272 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
3273 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
3274 to use new concept of case leaders to reduce overhead of
3275 redirecting outgoing edges from switch statements.
3276 * tree.c (get_case_label): New function.
3277 * tree.h (CASE_LABEL): Define in terms of get_case_label.
3278 (CASE_LEADER_OR_LABEL): Define.
3280 2004-11-12 Ziemowit Laski <zlaski@apple.com>
3282 * varasm.c (output_addressed_constants): For CONST_DECLs,
3283 output the initializer if present.
3285 2004-11-12 Ziemowit Laski <zlaski@apple.com>
3287 * config/rs6000/darwin.h: Fix confusing typo in comment.
3289 2004-11-12 Devang Patel <dpatel@apple.com>
3291 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
3293 2004-11-12 Devang Patel <dpatel@apple.com>
3295 * tree-if-conv.c (clean_predicate_lists): Use loop header
3298 2004-11-12 Richard Henderson <rth@redhat.com>
3301 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3302 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3303 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3304 * config/i386/i386-modes.def (XF): Use it.
3306 2004-11-11 Geoffrey Keating <geoffk@apple.com>
3308 * Makefile.in (macro_list): Use move-if-change to avoid spurious
3311 2004-11-12 Mark Mitchell <mark@codesourcery.com>
3314 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
3315 when deciding whether to pass a variable to
3316 cgraph_varpool_finalize_decl or assemble_variable.
3317 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
3319 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
3321 * tree-vectorizer.c: Fix a comment typo.
3323 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
3325 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
3327 2004-11-12 Diego Novillo <dnovillo@redhat.com>
3329 * tree-scalar-evolution.c (analyzable_condition): Remove
3330 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
3332 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
3334 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
3335 Remove m505/roe multilib variant.
3337 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3339 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
3340 to load from the stack.
3342 2004-11-12 Richard Henderson <rth@redhat.com>
3344 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
3345 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
3346 * toplev.h (FL2T__): Remove.
3347 (CLZ_HWI): Rename from FL2T_CLZ__.
3349 (floor_log2): Simplify.
3352 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
3354 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
3355 compute the first overlapping iterations.
3357 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
3360 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
3361 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
3363 2004-11-12 Steven Bosscher <stevenb@suse.de>
3365 PR tree-optimization/18419
3366 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
3367 pointer set instead of a bitmap.
3368 (walk_use_def_chains): Create, pass and clean up that pointer_set.
3370 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
3372 (init_alias_info): Allocate and zero it here.
3373 (delete_alias_info): Delete it here.
3374 (collect_points_to_info_for): Use it.
3376 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3378 * alias.c (record_alias_subset, addr_side_effect_eval):
3380 * alias.h: Remove the prototype for record_alias_subset.
3381 * expr.h: Remove the commented-out prototype for
3382 record_alias_subset.
3383 * rtl.h: Remove the prototype for addr_side_effect_eval.
3385 * cfglayout.c (choose_inner_scope): Make it static.
3386 * rtl.h: Remove the corresponding prototype.
3388 * cfgloopmanip.c (update_single_exits_after_duplication,
3389 unloop): Make them static.
3390 * cfgloop.h: Remove the corresponding prototypes.
3392 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
3394 * c-tree.h: Remove the corresponding prototypes.
3396 * explow.c (round_push): Make it static.
3397 * expr.h: Remove the corresponding prototype.
3399 * varasm.c (get_named_section_flags, decl_tls_model): Make
3401 * output.h: Remove the prototype for get_named_section_flags.
3402 * tree.h: Remove the prototype for decl_tls_model.
3404 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3406 * function.c (expand_function_end): Remove an "if" statement
3407 that always triggers.
3408 * stmt.c (expand_null_return_1): Likewise.
3410 2004-11-11 James E. Wilson <wilson@specifixinc.com>
3412 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
3413 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
3414 CLASS_MAX_NREGS): Likewise.
3416 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
3418 PR tree-optimization/17742
3419 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
3420 MINUS_EXPR correctly.
3422 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
3424 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
3425 Give up as soon as the evolution is known not computable.
3427 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3430 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
3431 mask64_1or2_operand.
3432 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
3433 to spot rlwinm opportunities.
3434 (and64_2_operand): Use mask_1or2_operand.
3435 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
3437 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
3439 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
3440 (vect_update_ivs_after_vectorizer): Update function documentation.
3441 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
3443 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3445 * config/arm/arm.c: Fix a comment typo.
3447 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3449 * bitmap.h (nBITMAP_WORD_BITS): Remove.
3450 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
3451 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
3453 (bitmap_first_set_bit): Return unsigned, use ctzl.
3454 (bitmap_last_set_bit): Remove.
3455 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
3457 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
3458 remove special case code for two word elements.
3459 (bitmap_last_set_bit): Remove.
3460 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
3461 bitmap_first_set_bit with bitmap_empty_p.
3462 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
3463 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
3464 bitmap_last_bit_set.
3466 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3469 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
3472 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
3473 unsigned equality compare when we know the operands are unsigned.
3475 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
3477 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
3478 __PIC__ and __pic__ only if TARGET_ABICALLS.
3479 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
3480 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
3481 -KPIC only if not -mno-abicalls.
3483 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
3484 * config/sparc/linux.h, config/sparc/linux64.h
3485 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
3487 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
3488 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
3489 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
3490 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
3492 2004-11-11 Paul Brook <paul@codesourcery.com>
3494 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
3495 register if current_function_uses_pic_offset_table is set.
3497 2004-11-10 David Edelsohn <edelsohn@gnu.org>
3499 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
3500 Change multi-instruction sequences to new attribute.
3501 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
3502 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
3503 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
3505 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
3507 * tree-data-ref.c (build_classic_dist_vector): If either loop
3508 is outside of the nest we asked about, the dependence can't
3510 (build_classic_dir_vector): Ditto.
3512 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
3514 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
3516 (force_var_cost): Determine cost of addition and multiplication more
3518 (get_computation_cost_at): Add cost for computing address elements to
3521 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
3522 one of the arguments of MINUS_EXPR is an address.
3523 (split_address_to_core_and_offset): New function.
3524 (ptr_difference_const): Handle case when one of the operands is a
3526 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
3527 (ptr_difference_cost): Pass addresses instead of objects to
3528 ptr_difference_const.
3530 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
3532 * tree.c (tree_check_failed): Emit general error if the list of
3533 node types is empty.
3535 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3537 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
3538 argument. When the union is passed in the 6th slot, build a
3539 PARALLEL with only one element.
3540 (function_arg): Adjust call to function_arg_union_value.
3541 (function_value): Likewise.
3543 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
3545 PR tree-optimization/17892
3546 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
3547 MINUS_EXPR operator.
3549 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
3552 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
3553 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
3555 2004-11-10 Steven Bosscher <stevenb@suse.de>
3557 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
3558 (struct basic_block_def): Remove local_set and cond_local_set
3559 fields. Update comment for global_live_at_start.
3560 * flow.c (calculate_global_regs_live): Allocate local_sets and
3561 cond_local_sets here as arrays of bitmaps previously stored in
3562 bb->local_set and bb->cond_local_set. Use xmalloc instead of
3563 obstack allocated bitmaps.
3565 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
3568 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
3571 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
3573 2004-11-09 Jeff Law <law@redhat.com>
3575 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
3576 argument holding last unvisited block. Start search for
3577 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
3578 (connect_infinite_loops_to_exit): Supply last unvisited block
3579 to flow_dfs_compute_reverse_execute.
3581 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
3583 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
3585 (floatunssidf2): Same.
3587 ("extendsfdf2"): New expander.
3588 (*extendsfdf2_fpr): Rename.
3589 (*truncdfsf2_fpr): Same.
3590 (*negdf2_fpr): Same.
3591 (*absdf2_fpr): Same.
3592 (*nabsdf2_fpr): Same.
3593 (*adddf3_fpr): Same.
3594 (*subdf3_fpr): Same.
3595 (*muldf3_fpr): Same.
3596 (*divdf3_fpr): Same.
3598 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
3599 ("spe_fix_truncdfsi2"): Same.
3600 (spe_floatunssidf2): Same.
3601 (spe_floatsidf2): Same.
3603 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3606 * c-common.c (fname_decl): Don't use line number of decl in
3609 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3611 * config/s390/s390-protos.h (s390_pool_operand): Remove.
3612 * config/s390/s390.c (s390_pool_operand): Likewise.
3613 (s390_extra_constraint_str): Handle 'B' constraints.
3614 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
3615 * config/s390/s390.md: Document 'B' constraints.
3616 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
3617 s390_pool_operand to prevent insns with two literal pool
3618 references. Make pattern commutative.
3619 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
3620 'B' constraint instead of s390_pool_operand.
3622 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3624 * tree-cfg.c (create_bb): Remove unnecessary memset.
3626 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3628 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
3629 (thread_block): Call flush_pending_stmt instead of
3632 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3634 * loop-iv.c (iv_number_of_iterations): Make it static.
3635 * cfgloop.h: Remove the corresponding prototype.
3637 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3639 * function.c (combine_temp_slots, assign_parms,
3640 expand_pending_sizes): Make them static.
3641 * tree.h: Remove the corresponding prototypes.
3643 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3645 * emit-rtl.c (copy_most_rtx): Remove.
3646 * rtl.h: Remove the corresponding prototype.
3648 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3650 * cfgloop.c (flow_loops_update): Remove.
3651 * cfgloop.h: Remove the corresponding prototype.
3653 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3655 * conflict.c (mark_reg, conflict_graph_compute): Remove.
3656 * basic-block.h: Remove the prototype for
3657 conflict_graph_compute.
3659 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3661 * tree-if-conv.c (add_to_dst_predicate_list): Change the
3662 second argument to basic_block.
3663 (tree_if_convert_cond_expr): Update call sites.
3665 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3667 * fold-const.c (pedantic_non_lvalue): Make it static.
3668 * tree.h: Remove the corresponding prototype.
3670 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3672 * optabs.c (prepare_operand): Make it static.
3673 * optabs.h: Remove the corresponding prototype.
3675 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3677 * reload1.c (reloads_conflict, gen_reload): Make them static.
3678 * reload.h: Remove the corresponding prototypes.
3680 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3682 * reload.c (refers_to_mem_for_reload_p,
3683 refers_to_regno_for_reload_p): Make them static.
3684 * reload.h: Remove the corresponding prototypes.
3686 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
3687 Eric Botcazou <ebotcazou@libertysurf.fr>
3690 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
3691 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
3692 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
3693 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
3694 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
3695 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
3696 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
3697 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
3698 MODE_VECTOR_INT modes.
3699 (sparc_extra_constraint_check): Add new constraint 'Y'.
3700 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
3701 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
3702 (V64): New mode macro for 64-bit modes.
3703 (movsf): Use V32 for mode instead of SF.
3704 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
3705 alongside 'G' constraint.
3706 (movdf): Use V64 for mode instead of DF.
3707 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
3708 of DF. Add 'Y' constraint alongside 'G' constraint.
3709 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
3712 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3714 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
3715 integer NEG and ABS.
3716 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
3717 ("*negdi2_31"): Reimplement using a splitter.
3718 ("*negdi2_cc", "*negdi2_cconly"): New insns.
3719 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
3720 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
3721 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
3722 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
3723 ("*absdi2_cc", "*absdi2_cconly"): New insns.
3724 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
3725 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
3726 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
3727 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
3728 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
3729 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
3730 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
3731 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
3732 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
3734 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3736 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
3737 when eliminating an UNSPEC_CMPINT.
3738 (s390_secondary_input_reload_class): Fix test for CC register reload.
3739 (s390_secondary_output_reload_class): Likewise.
3740 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
3741 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
3742 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
3743 insn patterns with splitters.
3745 2004-11-09 David Edelsohn <edelsohn@gnu.org>
3747 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
3748 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
3750 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3752 * tree-phinodes.c (phi_reverse): New.
3753 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
3755 * tree-flow.h: Add a prototype for phi_reverse.
3757 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3759 * tree-ssa-loop-ivopts.c: Fix a comment typo.
3761 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
3764 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
3767 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3769 * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
3770 instead of "arg" in diagnostics.
3772 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3774 * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
3775 c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
3776 gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
3777 tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
3778 config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
3779 config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
3780 config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
3781 config/iq2000/iq2000.c, config/m32r/m32r.c,
3782 config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
3783 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
3784 config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
3785 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
3786 config/sh/symbian.c, config/stormy16/stormy16.c,
3787 config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
3788 and %> as appropriate. Use %' as apostrophe in diagnostics where
3789 applicable. Use %< and %> in place of '' quotes where applicable.
3790 Use %qs in place of %<%s%>. Consistently quote __builtin function
3793 2004-11-09 Hans-Peter Nilsson <hp@bitrange.com>
3795 * gdbinit.in (pbb, pbm): New macros.
3797 2004-11-08 Jeff Law <law@redhat.com>
3799 * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
3800 implementing it inline.
3802 * cfganal.c (find_edge): Search pred->succs or succ->preds,
3803 whichever is shorter.
3805 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3807 * passes.c (rest_of_handle_jump): Remove dead code.
3809 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3811 * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
3812 the last used element in the worklist.
3814 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3816 * tree-inline.c (remap_save_expr): Make it static.
3817 * tree-inline.h: Remove the corresponding prototype.
3819 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3821 * tree-ssa-loop-niter.c (upper_bound_in_type,
3822 lower_bound_in_type): Make them static.
3823 * tree.h: Remove the corresponding prototypes.
3825 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3827 * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
3829 * tree-ssa-live.h: Remove the corresponding prototypes.
3831 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3833 * tree-if-conv.c (tree_if_conversion): Make it static.
3834 * tree-flow.h: Remove the corresponding prototype.
3836 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3838 * tree-ssa-operands.c (build_ssa_operands): Make it static.
3839 * tree-flow.h: Remove the corresponding prototype.
3841 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu>
3844 * tree-inline.c (copy_body_r): Change "t = t" to empty
3845 statement instead of "t".
3847 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3849 * modulo-sched.c (create_partial_schedule,
3850 free_partial_schedule, reset_partial_schedule,
3851 ps_add_node_check_conflicts, rotate_partial_schedule): Make
3854 2004-11-08 Richard Henderson <rth@redhat.com>
3856 * expmed.c (extract_force_align_mem_bit_field): Correct handling at
3859 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3861 * sched-deps.c (add_insn_mem_dependence): Make it static.
3862 * sched-int.h: Remove the corresponding prototypes.
3864 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3866 * flow.c (allocate_bb_life_data): Make it static.
3867 * basic-block.h: Remove the corresponding prototype.
3869 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3871 * calls.c (split_complex_values, split_complex_types): Make
3873 * expr.h: Remove the corresponding prototypes.
3875 2004-11-08 Richard Earnshaw <rearnsha@arm.com>
3877 * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
3878 with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
3880 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3882 * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
3883 statements that always trigger.
3885 2004-11-08 Kazu Hirata <kazu@cs.umass.edu>
3887 * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
3888 tree-scalar-evolution.c, tree-ssa-loop-im.c,
3889 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
3890 tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
3893 2004-11-08 Ben Elliston <bje@au.ibm.com>
3895 * cgraph.h (cgraph_calls_p): Remove.
3896 * cgraph.c (cgraph_calls_p): Likewise.
3898 * varray.h (varray_copy): Remove.
3899 * varray.c (varray_copy): Likewise.
3901 2004-11-07 Andrew Pinski <pinskia@physics.uc.edu>
3904 * config/darwin.c (machopic_indirect_data_reference):
3905 Call gen_macho_high and gen_macho_low instead of
3906 checking the mode and calling gen_macho_high_di directly.
3907 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3908 * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
3910 (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
3911 load_macho_picbase, macho_low, macho_high): Removed.
3912 (builtin_setjmp_receiver): Call gen_macho_high and
3913 gen_macho_low instead of checking the mode and calling
3914 gen_macho_high_di directly.
3915 * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
3916 (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
3917 Moved from rs6000.md.
3918 (macho_high): New expander.
3919 (macho_high_si): Renamed version of macho_high from rs6000.md.
3920 (macho_low): New expander.
3921 (macho_low_si): Renamed version of macho_low from rs6000.md.
3922 (load_macho_picbase): New expander.
3923 (load_macho_picbase_si): Renamed version of load_macho_picbase
3925 (macho_correct_pic): New expander.
3926 (macho_correct_pic_si): Renamed version of macho_correct_pic
3929 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3931 * c-decl.c (finish_struct): Use complete sentences for diagnostic
3932 for structures or unions with no members or named members.
3934 2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
3936 * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
3937 taking address of bit-field by assertion.
3939 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3941 * config/s390/s390.md (attribute "op_type"): Default to "NN".
3942 (attribute "atype"): Default to "agen".
3943 (attribute "length"): Default to 6.
3944 (define_asm_attibutes): Remove.
3945 ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
3946 "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
3947 "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
3948 Do not set type attribute to "cs" where already default.
3949 ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
3951 Do not set type attribute to "other" where already default.
3952 ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
3953 "*strlendi", "*strlensi",
3954 "*movmem_long_64", "*movmem_long_31",
3955 "*clrmem_long_64", "*clrmem_long_31",
3956 "*cmpmem_long_64", "*cmpmem_long_31",
3957 "*cmpint_si", "*cmpint_di",
3958 "addti3", "*adddi3_31z", "*adddi3_31",
3959 "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
3960 "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
3961 "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
3962 "*pool_entry", "pool_align", "pool_section_start",
3963 "pool_section_end", "main_pool", "reload_base_31", "pool"):
3964 Do not set op_type attribute to "NN" where already default.
3965 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
3966 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
3967 "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
3968 Do not set atype attribute to "agen" where already default.
3969 ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
3971 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3973 * config/mips/t-iris6 (tp-bit.c): Fix target filename.
3975 2004-11-06 Richard Sandiford <rsandifo@redhat.com>
3978 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
3979 R3000 and R4000 macros on IRIX.
3981 2004-11-06 Andreas Schwab <schwab@suse.de>
3984 * config/rs6000/altivec.h: Replace bool by __bool and pixel by
3987 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
3989 * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
3991 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
3993 * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
3994 matches no insns already matched by other reservations.
3995 * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
3996 matches no insns already matched by other reservations.
3997 ("x_ss"): Remove, replace by ...
3998 ("x_cs"): ... this new reservation. Check type instead of op_type.
3999 Update bypasses to use x_cs instead of x_ss.
4000 ("x_nn"): Remove, replace by ...
4001 ("x_other"): ... this new reservation. Check type instead of op_type.
4002 Add x_other and x_branch to bypasses.
4003 ("x_vs"): New reservation.
4004 * config/s390/s390.md (attribute "type"): Default according to op_type.
4005 ("*execute"): Set type to "cs".
4007 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4009 * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
4010 if we are in GIMPLE.
4012 2004-11-06 Hans-Peter Nilsson <hp@bitrange.com>
4014 PR rtl-optimization/17933
4015 * rtlanal.c (dead_or_set_regno_p): Break out common code to...
4016 (covers_regno_p): New function. Handle SETs of PARALLEL,
4017 and defer the rest to...
4018 (covers_regno_no_parallel_p): New function.
4020 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4022 * config/sparc/sparc.c (function_arg_record_value_1): Skip
4023 fields with zero length.
4024 (function_arg_record_value_2): Likewise.
4025 (function_arg_record_value_3): Use smallest_mode_for_size
4026 instead of mode_for_size.
4027 (function_arg_union_value): Return naked register for unions
4030 2004-11-06 Eric Botcazou <ebotcazou@libertysurf.fr>
4032 * config/sparc/sparc.c (scan_record_type): Handle vector types.
4033 (function_arg_slotno): Handle vector types specially.
4034 (function_arg_record_value_1): Split fields with vector type and
4035 BLKmode into their subparts.
4036 (function_arg_record_value_2): Likewise. Be prepared to handle
4037 more than 2 registers per field.
4038 (function_arg_union_value): Increment regno inside the loop.
4039 (function_arg_vector_value): New function.
4040 (function_arg): Use it to split fields with vector type and
4041 BLKmode into their subparts and build a PARALLEL. Treat
4042 other vector types like floats.
4043 (function_value): Likewise.
4044 (sparc_pass_by_reference): Handle vector types.
4045 (sparc_return_in_memory): Likewise.
4047 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4049 * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
4050 statement that never triggers.
4052 2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
4054 * config/s390/2064.md ("z_o2", "z_o3"): Remove.
4055 * config/s390/2084.md ("x_o2", "x_o3"): Remove.
4056 ("x_fdivd"): Use also for fsqrtd type.
4057 ("x_fdivs"): Use also for fsqrts type.
4058 * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
4059 ("fix_truncdfsi2_ieee"): Set type to "ftoi".
4060 ("fix_truncdfsi2_ibm"): Set type to "other".
4061 ("floatdidf2", "floatdisf2"): Do not clobber CC.
4062 ("floatsidf2", "floatsidf2_ieee"): Likewise.
4063 ("floatsisf2", "floatsisf2_ieee"): Likewise.
4064 ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
4065 ("truncdfsf2_ibm"): Only allow "nonimmediate_operand". Use LER
4067 ("extendsfdf2_ibm"): Do not set atype. Set type to "floads".
4068 ("sqrtdf2"): Set type to "fsqrtd".
4069 ("sqrtsf2"): Set type to "fsqrts".
4071 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
4073 * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
4074 pointer to the last PHI node in the new PHI chain.
4076 2004-11-06 Kaz Kojima <kkojima@gcc.gnu.org>
4078 * config/sh/sh.c (prepare_move_operands): Emit a use of r12
4079 for non-PIC TLS_MODEL_INITIAL_EXEC case.