1 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
3 * varasm.c (make_decl_rtl): Add the missing `;'.
5 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
7 * tree.c (is_attribute_p): Split out to ..
8 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
9 of strlen and compare the string lengths before calling strcmp.
10 (lookup_attribute): Call is_attribute_with_length_p instead of
13 2004-12-02 Devang Patel <dpatel@apple.com>
15 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
16 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
17 * config/i386/darwin.h (CC1_SPEC): Same.
19 2004-12-02 Richard Henderson <rth@redhat.com>
21 * optabs.c (lowpart_subreg_maybe_copy): New.
22 (expand_unop, expand_abs_nojump): Use it.
24 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
26 * sh.md (extv, extzv): Add pattern predicate.
28 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
30 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
33 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
36 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
38 2004-12-02 Jeff Law <law@redhat.com>
40 * tree-eh.c: Revert yesterday's change.
42 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
44 * varasm.c (decode_reg_name): Revert change to check for zero
46 (make_decl_rtl): Make sure that we call decode_reg_name only
49 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
52 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
55 2004-12-02 Andreas Schwab <schwab@suse.de>
57 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
58 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
59 (STAGE2_FLAGS_TO_PASS): Likewise.
61 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
63 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
65 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
66 now-redundant AC_SUBSTs.
67 * aclocal.m4: Include ../config/gcc-version.m4.
68 * configure: Regenerate.
70 2004-12-02 Alan Modra <amodra@bigpond.net.au>
72 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
73 #ifdef RELOCATABLE_NEEDS_FIXUP.
75 2004-12-01 Roger Sayle <roger@eyesopen.com>
78 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
79 Intel assembler syntax by using %A1 instead of %*%1.
81 2004-12-01 Richard Henderson <rth@redhat.com>
83 * expr.c (expand_assignment): Handle CONCAT both as a final
84 destination and as a middle point.
86 2004-12-01 Jeff Law <law@redhat.com>
88 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
89 (honor_protect_cleanup_actions): Only create save_eptr and
90 save_filt if they do not already exist.
91 (lower_eh_constructs): Wipe all knowledge of save_eptr and
92 save_filt before returning.
94 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
96 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
98 2004-12-02 Alan Modra <amodra@bigpond.net.au>
101 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
102 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
103 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
104 of target_flags_explicit.
105 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
106 case. Define as 0 for non-biarch.
108 2004-12-01 Zack Weinberg <zack@codesourcery.com>
110 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
111 Change temporary file tag from a prefix to an infix.
113 2004-12-02 Andreas Schwab <schwab@suse.de>
115 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
117 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
121 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
122 the statements if aliases_computed_p is true.
124 2004-12-01 Mark Mitchell <mark@codesourcery.com>
126 * Makefile.in (WERROR): New variable.
127 (STRICT2_WARN): Use it.
128 (STAGE2_FLAGS_TO_PASS): Likewise.
129 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
131 2004-12-01 Richard Henderson <rth@redhat.com>
133 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
136 2004-12-01 Diego Novillo <dnovillo@redhat.com>
138 PR tree-optimization/18291
139 * tree-ssa-copy.c (merge_alias_info): Fix merging of
140 flow-sensitive alias information. If the new pointer has no
141 name tag, copy it from the original pointer. Otherwise, make
142 sure that the pointed-to sets have a common intersection.
144 2004-12-01 Richard Henderson <rth@redhat.com>
147 * emit-rtl.c (gen_complex_constant_part): Remove.
148 (gen_realpart, gen_imagpart): Remove.
149 * rtl.h (gen_realpart, gen_imagpart): Remove.
150 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
151 gen_realpart/gen_imagpart.
152 * expr.c (write_complex_part, read_complex_part): New.
153 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
154 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
155 emit_move_multi_word): Split out from ...
156 (emit_move_insn_1): ... here.
157 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
158 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
159 * function.c (assign_parm_setup_reg): Hard-code transformations
160 instead of using gen_realpart/gen_imagpart.
162 * expr.c (optimize_bitfield_assignment_op): Split out from ...
163 (expand_assignment): ... here. Use handled_component_p to gate
164 get_inner_reference code. Simplify MEM handling. Special case
167 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
168 of gen_rtx_SUBREG directly.
170 2004-12-01 David Edelsohn <edelsohn@gnu.org>
171 Nathan Sidwell <nathan@codesourcery.com>
174 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
179 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
182 * params.c (set_param_value): Add range check.
183 * params.def: Add min and max values. Reformat long strings.
184 * params.h (struct param_info): Add min and max fields.
185 (enum compiler_param): Adjust DEFPARAM.
186 * toplev.c (lang_independent_params): Likewise.
188 2004-12-01 Alan Modra <amodra@bigpond.net.au>
191 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
193 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
195 * doc/standards.texi: Update for C99 TC2.
197 2004-11-30 Jeff Law <law@redhat.com>
199 * sbitmap.c (sbitmap_any_common_bits): New function.
200 * sbitmap.h (sbitmap_any_common_bits): Prototype.
201 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
202 No longer allocate/free "psp", "pss" sbitmaps.
203 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
205 (group_aliases): Similarly.
207 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
209 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
210 uninitialized variable.
212 2004-11-30 Eric Christopher <echristo@redhat.com>
214 * fold-const.c (fold_widened_comparison): Make sure that we're
215 passing an INTEGER_TYPE to int_fits_type_p.
216 (fold): Clean up comment.
218 2004-11-30 Zack Weinberg <zack@codesourcery.com>
220 * mklibgcc.in: Correct calculation of libgcc_s_soname and
221 libunwind_soname. Use $out, not $outS, in commands for
222 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
223 library build rules, make $libunwind_so and $libgcc_s_so
224 depend on them in the normal fashion, and filter those objects
227 2004-11-30 Janis Johnson <janis187@us.ibm.com>
229 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
231 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
234 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
235 pass right after fold builtins.
237 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
239 * config/s390/s390-modes.def: Added cc modes documentation.
240 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
241 s390_expand_addcc): Added cc mode comments.
242 * config/s390/s390.md: Removed old cc mode documentation.
244 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
246 * config/s390/s390.c (struct processor_costs): New data type.
247 (s390_cost, z900_cost, z990_cost): New global variables.
248 (override_options): Initialize s390_cost.
249 (s390_rtx_costs): Reimplement.
251 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
253 Fix PR tree-optimization/18673
255 * tree-ssa-pre.c: Remove splay-tree.h include.
256 (bitmap_value_replace_in_set): Fix to add if it does not exist.
257 (find_or_generate_expression): Remove now-wrong condition.
258 (create_expression_by_pieces): Fix condition and comment reason
260 (insert_aux): Fix condition and comment reasons for it.
261 Factor insertion code from here.
262 (insert_into_preds_of_block): To here. Fix conditions in factored
263 function and comment reasons for them.
265 2004-11-30 Ira Rosen <irar@il.ibm.com>
268 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
269 variable for data_reference when looking for memtag.
271 2004-11-30 Jakub Jelinek <jakub@redhat.com>
273 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
276 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
278 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
279 tree_low_cst instead of TREE_INT_CST_LOW.
281 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
284 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
285 decls that are assembled before vectorization takes place.
286 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
288 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
290 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
291 if local_alloc modified jumps.
293 2004-11-30 Alan Modra <amodra@bigpond.net.au>
295 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
297 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
300 2004-11-30 Zack Weinberg <zack@codesourcery.com>
302 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
303 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
305 * mklibgcc.in: Drastic restructure for comprehensibility.
306 Remove the old hidden-directive hack.
307 Eliminate support for .txt files in LIB2ADD etc (never used).
308 Eliminate support for assembly source files in LIB2ADDEH* and
309 LIBUNWIND (also never used).
310 Build up dependency lists for libraries incrementally.
311 If we have SHLIB_LINK, compile each file twice, once for the
312 static and once for the shared library; also probe for
313 -fvisibility=hidden in the generated libgcc.mk. If found,
314 pass that and -DHIDE_EXPORTS to the compilation of every C
315 source file going into the static library. If found, generate
316 hidden-directive lists for every assembly source file going
317 into the static library, but incorporate them with -include
319 Write comments into generated libgcc.mk to facilitate debugging.
320 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
321 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
323 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
326 2004-11-29 Richard Henderson <rth@redhat.com>
328 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
329 (handled_component_p): Likewise.
330 * alias.c (can_address_p): Reformat and simplify. Handle
331 REAL/IMAGPART_EXPR. Do not disable addressability based on
333 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
334 check for REAL/IMAGPART_EXPR.
335 * gimplify.c (gimplify_compound_lval): Likewise.
336 * tree-cfg.c (verify_expr): Likewise.
337 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
338 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
339 (convert_local_reference): Likewise.
340 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
342 2004-11-30 Alan Modra <amodra@bigpond.net.au>
344 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
346 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
349 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
350 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
351 and host_xmake_file using new host configuration files.
353 2004-11-29 Roger Sayle <roger@eyesopen.com>
355 * reg-stack.c (change_stack): Improve algorithm used to pop regs
356 off the stack to maximize ffreep usage and reduce fxch count.
358 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
361 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
364 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
366 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
367 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
369 2004-11-30 Ben Elliston <bje@au.ibm.com>
371 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
373 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
376 * c-common.c (handle_visibility_attribute): When the type decl
377 is really a identifier node, warn about being ignored and return.
379 2004-11-29 Richard Henderson <rth@redhat.com>
381 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
383 2004-11-29 Steven Bosscher <stevenb@suse.de>
385 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
386 Remove CASE_DROPS_THROUGH checks, it is never defined.
387 * cfglyout.c (fixup_reorder_chain): Likewise.
388 * cfgrtl.c (rtl_verify_flow_info): Likewise.
389 * stmt.c (expand_case): Likewise.
390 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
392 * system.h (CASE_DROPS_THROUGH): Poison.
393 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
394 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
396 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
398 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
401 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
404 2004-11-29 Diego Novillo <dnovillo@redhat.com>
406 PR tree-optimization/18712
407 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
408 WORK_STACK by reference.
409 Call VEC_safe_push instead of VEC_quick_push.
412 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
415 * Makefile.in (c-lang.o): Update dependencies.
416 * c-lang.c: Include "c-pragma.h".
417 (finish_file): Call maybe_apply_pending_pragma_weaks.
418 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
419 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
421 2004-11-29 Richard Henderson <rth@redhat.com>
424 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
425 outside the referenced object.
427 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
429 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
430 EDGE_PRED instead of PHI_ARG_EDGE.
431 * tree-ssa-live.c: Likewise.
432 * tree-ssa-loop-manip.c: Likewise.
433 * tree-ssa.c: Likewise.
435 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
436 simplifying edge manipulation.
438 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
441 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
444 * cfg.c (flow_obstack): Remove.
445 (flow_firstobj): Likewise.
446 (init_flow): Remove all uses of flow_obstack.
448 2004-11-29 Alan Modra <amodra@bigpond.net.au>
450 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
453 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
455 * opts.c (decode_options): Do not set max-inline-insns-rtl.
456 (common_handle_option): Likewise.
457 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
458 * params.h (MAX_INLINE_INSNS_RTL): Remove.
459 * doc/invoke.texi (max-inline-insns-rtl): Remove.
461 2004-11-29 Alan Modra <amodra@bigpond.net.au>
464 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
466 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
469 * gimplify.c (gimplify_asm_expr): If the length of an output operand
470 is zero, do not process it, just let it go through.
472 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
473 Diego Novillo <dnovillo@redhat.com>
475 PR/18662, also backported from tree-cleanup-branch.
476 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
477 always call maybe_clean_eh_stmt and modify_stmt.
479 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
482 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
483 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
484 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
485 add an inverse VIEW_CONVERT_EXPR to const_val.
488 * tree-nested.c (check_for_nested_with_variably_modified): New.
489 (create_nesting_tree): Call it.
491 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
492 special code for assigning to non-pointer.
493 (is_escape_site): If RHS is a conversion between pointer and integer
494 types, this is an escape site.
496 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
497 (store_motion): Don't move store if any edge we'd want to move it
500 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
501 non-zero lower bound.
503 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
505 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
508 * opts.c (find_opt): Require that the input match a switch exactly
509 or that the switch take a joined option to be interpreted as a
510 match for another language.
512 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
514 * timevar.def (TV_TREE_REDPHI): New timevar.
515 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
517 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
519 PR preprocessor/17651
520 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
521 flag_no_line_commands.
522 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
525 2004-11-28 Theodore A. Roth <troth@openavr.org>
527 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
528 warning if the function name does not begin with "__vector" and the
529 function has either the 'signal' or 'interrupt' attribute.
531 2004-11-28 Theodore A. Roth <troth@openavr.org>
533 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
534 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
535 atmega325, atmega3250, atmega645 and atmega6450.
536 * config/avr/avr.h (LINK_SPEC): Ditto.
538 (LIBGCC_SPEC): Ditto.
539 (CRT_BINUTILS_SPECS): Ditto.
540 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
542 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
544 PR preprocessor/17610
545 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
547 2004-11-28 Jeff Law <law@redhat.com>
549 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
550 (pass_maybe_create_global_var): New.
551 * tree-pass.h (pass_maybe_create_global_var): Declare.
552 * tree-optimize.c (init_tree_optimization_passes): Link in
553 pass_maybe_create_global_var.
555 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
557 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
559 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
561 PR rtl-optimization/18420
562 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
564 2004-11-28 Steven Bosscher <stevenb@suse.de>
565 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
567 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
568 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
569 that the case is in range, to make sure the casesi insn is always
570 in range and never falls through.
571 (casesi1): Add comment to explain why casesi never falls through.
572 Remove the unnamed special case casesi pattern.
574 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
577 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
578 "*movdicc_real". Only match reversible comparisons.
579 ("*movdicc_real_nonreversible"): New pattern, split from
580 "*movdicc_real". Match only nonreversible comparisons. Exclude
581 reversed alternatives.
582 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
585 2004-11-27 Richard Henderson <rth@redhat.com>
587 * config/ia64/ia64.md: Move all define_predicate's ...
588 * config/ia64/predicates.md: ... here. New file.
590 2004-11-27 Per Bothner <per@bothner.com>
593 Re-applied following, with two modifications: add a URL for the
594 fixed cctools; only exit if $build = $target.
596 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
597 * configure.ac (powerpc-*-darwin*): Require assembler to support
599 * configure: Regenerate.
601 2004-11-28 David Edelsohn <edelsohn@gnu.org>
604 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
605 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
606 Distinguish between SImode and DImode CONST_INT.
608 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
609 Alan Modra <amodra@bigpond.net.au>
612 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
613 functions, strings and thread-local vars.
615 2004-11-28 Alan Modra <amodra@bigpond.net.au>
617 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
618 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
619 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
620 to allow non-darwin ABIs to optimize away code.
621 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
623 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
625 * tree.c (operand_equal_for_phi_arg_p): New.
626 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
627 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
628 Replace operand_equal_p with operand_for_phi_arg_p
631 * bb-reorder.c (find_traces_1_round): Speed up by using
632 EDGE_COUNT instead of FOR_EACH_EDGE.
634 * fold-const.c, config/i386/linux64.h: Fix comment typos.
636 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
639 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
641 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
643 * config/i386/linux.h: Fix a comment typo.
644 * doc/extend.texi: Fix a typo.
646 2004-11-27 Jeff Law <law@redhat.com>
648 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
651 2004-11-27 Jakub Jelinek <jakub@redhat.com>
653 * config/i386/linux64.h (REG_NAME): Define.
655 2004-11-27 Jakub Jelinek <jakub@redhat.com>
657 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
658 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
659 and only afterwards convert to ctype.
661 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
663 * config/mips/mips-protos.h (function_arg_boundary): Declare.
664 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
665 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
666 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
667 * config/mips/mips.c (function_arg_boundary): New function.
668 Impose a maximum alignment of STACK_BOUNDARY.
670 2004-11-27 Jakub Jelinek <jakub@redhat.com>
672 PR rtl-optimization/17825
673 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
676 2004-11-27 Alan Modra <amodra@bigpond.net.au>
679 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
680 from rs6000_default_long_calls for libcalls.
682 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
684 * expmed.c (extract_bit_field): When extracting from non-integer mode,
685 force a SUBREG into a register because we may be taking a further
688 2004-11-27 Di-an Jan <dianj@freeshell.org>
690 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
692 2004-11-26 Robert Millan <robertmh@gnu.org>
694 Changes for k*bsd-gnu support.
695 * config/i386/linux.h: Define REG_NAME to allow overriding of
696 register names in sc structure.
697 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
699 * config.gcc: Detect x86_64-k*bsd-gnu systems.
701 2004-11-26 Jeff Law <law@redhat.com>
703 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
704 retrieve annotations or pointer info before it's necessary.
705 Reorder tests for early continue of the loop. Manually CSE
708 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
710 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
711 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
712 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
713 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
714 to a fixed reg if the source is the Return Address register.
715 Implement new Rule 15.
716 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
717 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
718 sparc_dwarf_handle_frame_unspec.
719 (gen_save_register_window): New function.
720 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
721 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
722 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
723 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
724 (sparc_asm_function_prologue): Do not emit call frame debugging info.
725 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
726 (sparc_expand_epilogue): Likewise.
727 (sparc_dwarf_handle_frame_unspec): New function.
728 * config/sparc/sparc.md (save_register_window): Remove.
729 (save_register_windowdi): Rewrite modelled on the callframe debug info.
730 (save_register_windowsi): Likewise.
732 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
734 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
735 BB_HEAD, not BLOCK_HEAD.
737 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
739 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
740 scratch insns that set a register live at the join point.
742 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
744 * cse.c, tree-ssa-operands.c: Fix comment typos.
746 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
748 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
751 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
753 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
755 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
756 check that tests if all edges go to the same destination.
758 * bitmap.c (bitmap_find_bit): Speed up by traversing from
759 head->first if that seems profitable.
761 2004-11-25 Jeff Law <law@redhat.com>
763 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
764 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
765 (pass_loop_done): Use TV_TREE_LOOP_FINI.
767 2004-11-26 Alan Modra <amodra@bigpond.net.au>
769 PR rtl-optimization/16356
770 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
771 separate output register and one less jump. Enable for powerpc64.
772 (floatdisf2): Adjust for above.
774 2004-11-25 Bob Wilson <bob.wilson@acm.org>
776 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
777 (GCC_DRIVER_HOST_INITIALIZATION): Define.
779 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
782 * tree-complex.c (vector_inner_type): New variable moved from
783 build_word_mode_vector_type.
784 (vector_last_type): Likewise.
785 (vector_last_nunits): Likewise.
786 (build_word_mode_vector_type): Use the new variables.
787 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
788 (GTFILES): Add tree-complex.c.
789 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
791 2004-11-25 Bob Wilson <bob.wilson@acm.org>
793 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
794 __XTENSA_WINDOWED_ABI__.
796 2004-11-25 Richard Henderson <rth@redhat.com>
798 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
799 args_size adjustments for calls even with cfa as stack pointer.
800 Search calls for stack adjustments after the insn is issued.
801 (dwarf2out_frame_debug): Add after_p argument; pass it on.
802 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
803 * final.c (final_start_function, final_scan_insn): Likewise.
805 2004-11-25 Richard Henderson <rth@redhat.com>
808 * reload1.c (set_initial_eh_label_offset): New.
809 (set_initial_label_offsets): Use it.
811 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
813 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
814 before calling life_analysis and release them after.
816 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
818 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
821 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
823 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
824 BITMAP_OBSTACK_ALLOC.
825 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
827 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
829 parts of PR rtl-opt/18463, rtl-opt/17647
830 * cse.c (canon_for_address): New function.
831 (find_best_addr): Call canon_for_address before getting the
832 address's cost when checking if we should take that address.
834 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
836 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
837 "tree *" as the first argument.
838 * tree-flow.h: Update the prototype of add_phi_arg.
839 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
840 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
841 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
842 tree-vectorizer.c: Update all call sites of add_phi_arg.
844 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
846 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
847 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
848 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
849 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
851 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
853 PR tree-optimization/18587
854 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
855 call clobbered caches as invalid.
856 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
857 indicating whether the call clobbered operand cache is valid.
858 (ssa_ro_call_cache_valid): New. Flag indicating whether the
859 pure/const call operand cache is valid.
860 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
861 list of operands for cached call virtual operands.
862 (clobbered_aliased_loads, clobbered_aliased_stores,
863 ro_call_aliased_load): New. flags caching whether alias bits are
864 to be set in call stmt's.
865 (fini_ssa_operands): Remove call operand caches if present.
866 (get_expr_operands, get_asm_expr_operands,
867 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
868 (get_call_expr_operands): Add call clobbered variables first.
869 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
870 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
871 if it is valid, otherise fill the cache.
872 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
873 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
874 in_v_may_def_list bits.
875 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
876 in_list bits for the v_may_def elements and empty the operand
878 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
879 VUSES by checking the in_v_may_def_list bit.
880 (append_v_may_def, append_vuse): Use the in_list bit rather than
881 scanning the array for duplicates.
883 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
885 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
886 displacements are not short.
888 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
890 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
893 2004-11-25 Mark Mitchell <mark@codesourcery.com>
896 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
897 (lvalue_or_else): Declare.
898 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
899 * c-typeck.c (lvalue_use): Remove.
900 (lvalue_or_else): Remove.
903 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
904 unemitted variables with static storage duration.
906 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
908 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
911 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
913 * config/rs6000/altivec.md (VIshort): New mode macro.
914 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
916 (altivec_vaddu<VI_char>s): ... this.
917 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
919 (altivec_vadds<VI_char>s): ... this.
920 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
922 (altivec_vsubu<VI_char>s): ... this.
923 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
925 (altivec_vsubs<VI_char>s): ... this.
926 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
928 (altivec_vavgu<VI_char>): ... this.
929 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
931 (altivec_vavgs<VI_char>): ... this.
932 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
933 (altivec_vmsumu<VI_char>m): ... this.
934 (altivec_vmsummbm, altivec_vmsummhm): Replace
936 (altivec_vmsumm<VI_char>m): ... this.
937 (altivec_vandc): Remove.
938 (*andc<mode>3): Renamed to ...
939 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
940 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
942 (altivec_vrl<VI_char>): ... this.
943 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
945 (altivec_vsl<VI_char>): ... this.
946 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
948 (altivec_vsr<VI_char>): ... this.
949 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
951 (altivec_vsra<VI_char>): ... this.
952 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
953 (altivec_vsum4s<VI_char>s): ... this.
954 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
956 (altivec_vperm_<mode>): ... this.
957 (altivec_vsel_4sf): Rename to ...
958 (altivec_vsel_v4sf): ... here.
959 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
961 (altivec_vsel_<mode>): ... this.
962 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
963 altivec_vsldoi_16qi): Rename to ...
964 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
965 altivec_vsldoi_v16qi): ... here.
966 (altivec_vsldoi_4sf): Rename to ...
967 (altivec_vsldoi_v4sf): ... here.
968 (altivec_predicate_v4si, altivec_predicate_v8hi,
969 altivec_predicate_v16qi): Replace with ...
970 (altivec_predicate_<mode>): ... this.
971 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
973 (altivec_lve<VI_char>x): ... this.
974 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
976 (altivec_stve<VI_char>x): ... this.
977 (absv16qi2, absv8hi2, absv4si2): Replace
979 (abs<mode>2): ... this.
980 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
982 (altivec_abss_<mode>): ... this.
983 (vec_realign_load_v16qi, vec_realign_load_v8hi,
984 vec_realign_load_v4si): Replace with ...
985 (vec_realign_load_<mode>): ... this.
986 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
988 (rs6000_expand_ternop_builtin): Likewise.
990 2004-11-25 Andrew Haley <aph@redhat.com>
992 * gcc.c (process_command): Don't supply -v to linker.
994 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
996 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
997 instead of `%s' in diagnostic.
999 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1001 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
1002 (FREE_REG_SET): Adjust.
1003 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
1004 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
1005 (BITMAP_ALLOC): ... here.
1006 (BITMAP_OBSTACK_FREE): Rename to ...
1007 (BITMAP_FREE): Don't check for NULL bitmap here.
1008 * tree-ssa-pre.c (value_insert_into_set_bitmap,
1009 bitmap_set_new): Use new names.
1011 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
1012 * df.c (df_free): Likewise.
1013 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
1014 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
1016 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
1017 (ALLOC_REG_SET): ... here.
1018 (FREE_REG_SET): Adjust.
1019 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
1020 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
1021 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
1022 * cfgrtl.c (rtl_split_block, rtl_split_edge,
1023 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
1024 * flow.c (update_life_info, calculate_global_regs_live,
1025 allocate_bb_life_data, init_propagate_block_info): Adjust.
1026 * global.c (build_insn_chain): Adjust.
1027 * ifcvt.c (dead_or_predicable): Adjust.
1028 * loop-iv.c (simplify_using_initial_values): Adjust.
1029 * recog.c (peephole2_optimize): Adjust.
1030 * sched-deps.c (init_deps_global): Adjust.
1032 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
1034 * config.gcc (avr-*-rtems*): Fix typo.
1036 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
1038 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
1040 2004-11-24 Jeff Law <law@redhat.com>
1042 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
1043 the number of queries to random elements in the ai->written_vars
1046 2004-11-24 Roger Sayle <roger@eyesopen.com>
1048 * config/i386/i386.c (override_options): Disable x87 fancy math
1049 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
1051 2004-11-24 Roger Sayle <roger@eyesopen.com>
1053 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
1054 system header conflict on AIX 5.2.
1055 * configure: Regenerate.
1057 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1059 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
1060 instead of calling phi_arg_from_edge.
1062 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
1065 2004-11-24 Ben Elliston <bje@au.ibm.com>
1067 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
1068 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
1069 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
1072 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1074 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
1076 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
1077 type will be remapped.
1079 2004-11-24 Steven Bosscher <stevenb@suse.de>
1081 * c-opts.c (c_common_post_options): Don't clear
1082 flag_inline_functions.
1083 * dojump.c (clear_pending_stack_adjust): Remove check on
1084 flag_inline_functions, it's always true.
1085 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
1086 that can never trigger.
1087 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
1088 flag_inline_trees, now that flag_inline_functions is never
1090 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
1091 flag_inline_functions at optimization levels greater than
1092 or equal to 3. This is already done by default.
1094 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1096 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
1097 instead to find the PHI argument. Do not take I as an
1099 (eliminate_phi): Adjust the call to eliminate_build. Do not
1100 take I as an argument.
1101 (rewrite_trees): Adjust the call to eliminate_phi.
1103 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
1105 * optabs.h (force_expand_binop): Declare.
1106 * optabs.c (force_expand_binop): Export.
1107 * stmt.c (shift_return_value): Delete.
1108 (expand_return): Don't call it.
1109 * expr.h (shift_return_value): Declare.
1110 * calls.c (shift_returned_value): Delete in favor of...
1111 (shift_return_value): ...this new function. Leave the caller to check
1112 for non-BLKmode values passed in the msb of a register. Take said mode
1113 and a shift direction as argument. Operate on the hard function value,
1115 (expand_call): Adjust accordingly.
1116 * function.c (expand_function_start): If a non-BLKmode return value
1117 is padded at the last significant end of the return register, use the
1118 return value's natural mode for the DECL_RESULT, not the mode of the
1120 (expand_function_end): Shift the same sort of return values left by
1121 the appropriate amount.
1123 2004-11-24 Matt Austern <austern@apple.com>
1125 * recog.c (recog_memoized_1): Remove.
1126 * recog.h (recog_memoized_1): Remove declaration.
1127 (recog_memoized): Change from macro to inline function.
1129 2004-11-24 Devang Patel <dpatel@apple.com>
1132 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
1133 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
1135 2004-11-24 Devang Patel <dpatel@apple.com>
1137 * gcc.c (process_command): Supply -v to linker.
1139 2004-11-24 David Edelsohn <edelsohn@gnu.org>
1140 Paolo Bonzini <bonzini@gnu.org>
1142 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
1143 vector modes without ALTIVEC_ABI. Use GCC vector instead of
1145 (rs6000_pass_by_reference): Split conditional into pieces. Use
1146 GCC vector instead of synthetic vector.
1148 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
1150 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
1151 thread-local variable is invariant.
1153 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1155 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
1156 Handle TYPE_REF_CAN_ALIAS_ALL.
1157 (print_declaration): Print array dimensions like dump_generic_node.
1159 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
1160 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
1162 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
1164 * bitmap.c (INLINE): Do not define.
1165 (bitmap_elem_to_freelist, bitmap_element_free,
1166 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
1167 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
1169 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1171 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
1172 find the index of a PHI argument. Use e->dest_idx instead.
1173 Replace hint with index.
1175 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
1178 2004-11-24 Diego Novillo <dnovillo@redhat.com>
1180 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
1181 regarding PT_MALLOC.
1183 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1185 * config/i386/i386.c (optimization_options): Use
1186 SUBTARGET_OPTIMIZATION_OPTIONS.
1187 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
1188 (TARGET_SUBTARGET_DEFAULT): Don't include
1189 MASK_OMIT_LEAF_FRAME_POINTER.
1191 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1193 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
1196 2004-11-24 Joseph Myers <joseph@codesourcery.com>
1198 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
1199 Use amd64 instead of 64.
1201 2004-11-24 Mark Mitchell <mark@codesourcery.com>
1202 Joseph Myers <joseph@codesourcery.com>
1204 * crtstuff.c (IN_LIBGCC2): Define it.
1205 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
1206 instead of HAVE_LD_RO_RW_SECTION_MIXING.
1207 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
1208 * dwarf2out.c (named_section_eh_frame_section): Check
1209 EH_TABLES_CAN_BE_READ_ONLY.
1210 * except.c (default_exception_section): Likewise.
1211 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
1212 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
1214 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
1216 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
1217 index of a PHI argument.
1219 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
1220 find_edge to find the index of a PHI argument.
1222 2004-11-24 Steven Bosscher <stevenb@suse.de>
1224 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
1225 and LABELED_BLOCK_EXPR.
1226 * gimplify.c (gimplify_labeled_block_expr): Remove.
1227 (gimplify_exit_block_expr): Remove.
1228 (gimplify_expr): Don't call them.
1229 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
1230 and LABELED_BLOCK_EXPR.
1231 (estimate_num_insns_1): Likewise.
1232 (walk_tree): Likewise.
1233 * tree-pretty-print.c (dump_generic_node): Don't handle
1234 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
1235 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
1236 (LABELED_BLOCK_EXPR): Likewise.
1237 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
1238 (LABELED_BLOCK_BODY): Likewise.
1239 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
1240 (EXIT_BLOCK_RETURN): Removed.
1242 2004-11-24 Steven Bosscher <stevenb@suse.de>
1244 * cfgrtl.c (rtl_delete_block): Fix comment.
1245 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
1246 or BLOCK_END insn notes.
1247 * jump.c (squeeze_notes): Likewise.
1248 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
1249 EH_REGION_END notes, we never have them to begin with.
1250 * sched-deps.c (sched_analyze_insn): When updating loop notes,
1251 verify that we have indeed only recorded loop notes.
1252 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
1253 Only record loop notes.
1255 * cfgexpand.c (tree_expand_cfg): Fix comment.
1257 * passes.c (rest_of_compilation): Don't do a second call to
1258 convert_from_eh_region_ranges from here, it's already called
1260 * except.c (resolve_fixup_regions): Remove.
1261 (remove_fixup_regions): Remove.
1262 (convert_from_eh_region_ranges_1): Remove.
1263 (convert_from_eh_region_ranges): Remove the case where EH is
1264 not already lowered at the tree level. We always lower there.
1266 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
1269 * tree.c (make_vector_type): Move qualifiers to the vector type,
1270 use the inner type's main variant and build a main variant for
1271 the vector type if necessary.
1272 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
1274 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
1276 * target.h (late_rtl_prologue_epilogue): Remove.
1277 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1278 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
1279 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
1280 remaining bits to...
1281 (rest_of_handle_flow2): ...here.
1282 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
1283 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
1285 2004-11-23 Mark Mitchell <mark@codesourcery.com>
1287 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
1288 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
1289 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
1291 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
1293 * config/i386/i386.c (override_options): Move
1294 SUBTARGET_OVERRIDE_OPTIONS before defaulting
1295 flag_omit_frame_pointer.
1297 2004-11-23 Richard Henderson <rth@redhat.com>
1299 * rtl.h (validate_subreg): Declare.
1300 * emit-rtl.c (validate_subreg): New.
1301 (gen_rtx_SUBREG): Use it.
1302 * simplify-rtx.c (simplify_subreg): Likewise.
1303 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
1304 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
1305 fallback whenever gen_realpart/gen_imagpart would not be able to
1308 2004-11-23 Richard Henderson <rth@redhat.com>
1310 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
1311 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
1314 2004-11-23 Diego Novillo <dnovillo@redhat.com>
1316 PR tree-optimization/18618
1317 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
1318 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
1319 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
1321 (stmts_to_rescan): Likewise.
1322 (const_and_copies_stack): Likewise.
1323 (nonzero_vars_stack): Likewise.
1324 (vrp_variables_stack): Likewise.
1326 2004-11-23 Richard Henderson <rth@redhat.com>
1328 * cse.c (record_jump_cond_subreg): New.
1329 (record_jump_cond): Use it instead of gen_lowpart.
1331 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
1332 Joseph Myers <joseph@codesourcery.com>
1334 * config/sol2-c.c (solaris_register_pragmas): Use
1335 c_register_pragma_with_expansion.
1336 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
1337 * c-pragma.c (c_register_pragma): Update call to
1338 cpp_register_pragma.
1339 (c_register_pragma_with_expansion): New function.
1340 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
1341 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
1342 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
1344 * doc/tm.texi (c_register_pragma_with_expansion,
1345 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
1347 2004-11-23 Richard Henderson <rth@redhat.com>
1349 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
1350 as mode sizes into local temporaries. Unify failure path.
1352 2004-11-23 Richard Henderson <rth@redhat.com>
1354 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
1355 * caller-save.c (mark_set_regs): Use subreg_regno instead.
1356 * final.c (alter_subreg): Likewise.
1357 * local-alloc.c (reg_is_born): Likewise.
1359 2004-11-23 Richard Henderson <rth@redhat.com>
1361 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
1362 instead of using a SUBREG temporary.
1364 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1366 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
1369 2004-11-23 Zack Weinberg <zack@codesourcery.com>
1371 * function.h (struct function): Remove calls_longjmp.
1372 (current_function_calls_longjmp): Delete.
1373 * tree.h (ECF_LONGJMP): Delete.
1374 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
1375 (ECF_LIBCALL_BLOCK): Everybody slide down one.
1376 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
1377 * builtins.c (expand_builtin_longjmp): Don't set
1378 current_function_calls_longjmp.
1379 * calls.c (special_function_p): Mark longjmp and siglongjmp
1380 with ECF_NORETURN, not ECF_LONGJMP.
1381 (emit_call_1, expand_call, emit_library_call_value_1):
1382 Don't check for ECF_LONGJMP.
1383 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
1384 (need_fake_edge_p): Likewise.
1386 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
1387 * system.h: Poison NON_SAVING_SETJMP.
1388 * function.c (use_register_for_decl)
1389 * gcse.c (compute_hash_table_work, compute_store_table)
1390 * postreload-gcse.c (record_opr_changes)
1391 * reload.c (find_equiv_reg)
1392 * reload1.c (reload)
1393 * config/i386/i386.c (ix86_can_use_return_insn_p):
1394 Remove code conditional on NON_SAVING_SETJMP.
1395 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
1397 * config/i386/sysv3.h: Delete file.
1398 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
1400 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1402 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
1403 the vectorization factor is greater than the iteration count.
1404 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
1405 iteration count is known.
1407 (vect_build_symbol_bound): Removed. Its functionality moved to
1408 vect_generate_tmps_on_preheader.
1409 (vect_generate_tmps_on_preheader): Moved content of
1410 vect_build_symbol_bound here instead of calling it. Changed some
1413 (vect_build_loop_niters): We don't expect a new_bb to be generated -
1415 (vect_gen_niters_for_prolog_loop): Likewise.
1416 (vect_gen_niters_for_prolog_loo): Likewise.
1418 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
1419 (slpeel_add_loop_guard): Likewise.
1420 (slpeel_tree_peel_loop_to_edge): Likewise.
1421 (vect_do_peeling_for_alignment): Likewise.
1423 (vect_get_first_index): Missing space.
1425 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
1427 * config/s390/s390.md ("*iordi3"): Mark commutative.
1428 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
1430 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1432 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
1433 greater than PHI_ARG_CAPACITY.
1434 (reserve_phi_args_for_new_edge): Initialize the new PHI
1435 argument to NULL_TREE. Increment PHI_NUM_ARGS.
1436 (add_phi_arg): Add a PHI argument to the slot given by
1438 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
1439 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
1440 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
1441 argument by looking at PHI_ARG_DEF.
1442 (verify_phi_args): Check for a missing PHI argument. Remove
1443 the check for duplicate PHI arguments.
1444 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
1445 (phi_arg_d): Remove e.
1447 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
1448 by restricting to the case with two outgoing edges.
1450 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
1452 * config/s390/s390.c (s390_backchain_string): Removed.
1453 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
1454 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
1455 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
1456 TARGET_KERNEL_BACKCHAIN to reflect the new options.
1457 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
1458 (TARGET_KERNEL_BACKCHAIN): Removed.
1459 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
1460 (TARGET_PACKED_STACK): New macro.
1461 (TARGET_SWITCHES): New switches added.
1462 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
1464 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
1465 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
1466 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
1467 the change in target switch semantics.
1468 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
1469 (TARGET_DEFAULT): MASK_BACKCHAIN added.
1470 * doc/invoke.texi: Added documentation for the new/changed options.
1472 2004-11-23 Uros Bizjak <uros@kss-loka.si>
1474 PR rtl-optimization/18614
1475 * simplify-rtx.c (simplify_binary_operation): Do not
1476 simplify inner elements of constant arguments of
1479 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1481 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
1484 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1486 * tree-phinode.c (make_phi_node): Use a new variable,
1487 capacity, to receive the return value of ideal_phi_node_len.
1489 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
1491 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
1492 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
1493 __gthread_recursive_mutex_init_function.
1494 (__gthread_key_create): Properly cast -1.
1495 (__gthread_recursive_mutex_init_function): New function.
1496 (__gthread_recursive_mutex_lock): Rewrite.
1497 (__gthread_recursive_mutex_trylock): Likewise.
1498 (__gthread_recursive_mutex_unlock): Likewise.
1500 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1502 * config/c4x/t-rtems: New.
1503 * config.gcc: Reflect having added c4x/t-rtems.
1505 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
1509 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
1510 lang_hooks.types.type_for_size instead of integer_type_node for the
1513 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1515 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
1517 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1519 * config/arm/t-rtems: New.
1520 * config.gcc: Reflect having added arm/t-rtems.
1522 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
1524 * tree-cfg.c (tree_execute_on_growing_pred): New.
1525 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
1526 * tree-flow.h: Add a prototype for
1527 reserve_phi_args_for_new_edge.
1528 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
1529 (add_phi_arg): Don't resize a PHI array.
1531 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
1533 * config.gcc: Add avr-*-rtems*.
1534 * config/avr/t-rtems: New.
1535 * config/avr/rtems.h: New.
1537 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1539 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
1540 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
1541 Add comment to function.
1543 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1546 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
1548 PR rtl-optimization/14838
1549 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
1551 (get_last_nonnote_insn): Don't assume last insn is a note.
1553 2004-11-22 Roger Sayle <roger@eyesopen.com>
1555 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
1556 to fold_binary_to_constant.
1557 (nondestructive_fold_unary_to_constant): Likewise, rename to
1558 fold_unary_to_constant.
1559 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
1560 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
1561 (nondestructive_fold_unary_to_constant): Likewise.
1562 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
1563 and fold_binary_to_constant.
1564 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1565 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
1566 and EXEC_UNARY with calls to fold_*nary_to_constant.
1567 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
1568 (idx_find_step): Replace uses of EXEC_BINARY with calls to
1569 fold_binary_to_constant.
1571 2004-11-22 Nick Clifton <nickc@redhat.com>
1573 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1574 initialisation of 'e'.
1576 2004-11-22 Roger Sayle <roger@eyesopen.com>
1578 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
1579 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
1580 automatically for targets without TARGET_80387.
1581 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
1582 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
1583 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
1584 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
1585 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
1586 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
1587 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
1588 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
1589 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
1590 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
1591 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
1592 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
1593 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
1594 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
1595 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
1596 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
1597 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
1598 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
1599 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
1600 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
1602 2004-11-22 Dale Johannesen <dalej@apple.com>
1604 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
1605 properly and comment.
1607 2004-11-22 James A. Morrison <phython@gcc.gnu.org
1609 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
1610 (sparc_init_builtins): New function.
1611 (sparc_init_vis_builtins): Create builtin functions for VIS
1613 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
1614 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
1615 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
1616 (def_builtin): New macro for creating builtin functions.
1617 (P): New mode macro for pointer types.
1618 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
1619 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
1620 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
1621 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
1622 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
1623 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
1624 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
1626 2004-11-22 Devang Patel <dpatel@apple.com>
1628 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
1630 2004-11-22 Devang Patel <dpatel@apple.com>
1632 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
1633 (if_convertible_phi_p): ... new name.
1634 (if_convertable_modify_expr_p): Rename to ...
1635 (if_convertible_modify_expr_p): ... new name.
1636 (if_convertable_stmt_p): Rename to ...
1637 (if_convertible_stmt_p): ... new name.
1638 (if_convertable_bb_p): Rename to ...
1639 (if_convertible_bb_p): ... new name.
1640 (if_convertable_loop_p): Rename to ...
1641 (if_convertible_loop_p): ... new name.
1643 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1646 * configure.ac (threading): Accept 'posix95'.
1647 * configure: Regenerate.
1648 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
1649 include sol26.h and default to posix95 threads if have_pthread_h.
1650 (sparc-*-solaris2*): Likewise.
1651 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
1652 * gthr-posix95.h: New file.
1653 * config/sol26.h: New file.
1654 * doc/install.texi (--enable-threads): Document 'posix95'.
1656 2004-11-23 Ben Elliston <bje@au.ibm.com>
1658 * pointer-set.h (pointer_set_contains): Remove.
1659 * pointer-set.c (pointer_set_contains): Likewise.
1661 2004-11-22 Dale Johannesen <dalej@apple.com>
1663 * calls.c (expand_call): Do not call preserve_temp_slots.
1665 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1667 * tree-flow.h: Remove the prototype for remove_phi_arg.
1668 Add a prototype for remove_phi_args.
1669 * tree-phinodes.c (remove_phi_arg): Remove.
1670 (remove_phi_args): New.
1671 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
1674 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
1675 after making an edge.
1676 (remove_edge): Call execute_on_shrinking_pred before removing
1678 (redirect_edge_succ): Call execute_on_growing_pred and
1679 execute_on_shrinking_pred.
1680 * cfghooks.c (execute_on_growing_pred): New.
1681 (execute_on_shrinking_pred): Likewise.
1682 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
1683 execute_on_shrinking_pred.
1684 Add prototypes for execute_on_growing_pred and
1685 execute_on_shrinking_pred.
1686 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
1687 execute_on_growing_pred and execute_on_shrinking_pred.
1688 (cfg_layout_rtl_cfg_hook): Likewise.
1689 * tree-cfg.c (tree_cfg_hooks): Likewise.
1691 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
1692 (tree_cfg_hooks): Use it.
1693 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
1694 (ssa_redirect_edge): Don't call remove_phi_arg_num.
1696 * tree-phinodes.c (remove_phi_arg_num): Make it static.
1697 * tree-flow.h: Remove the corresponding prototype.
1699 * tree-ssa.c (ssa_remove_edge): Remove.
1700 * tree-flow.h: Remove the corresponding prototype.
1701 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
1702 * basic-block.h: Likewise.
1703 * tree-if-conv.c: Likewise.
1704 * tree-ssa-threadupdate.c: Likewise.
1706 2004-11-23 Ben Elliston <bje@au.ibm.com>
1708 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
1709 @table to list the BSI methods. Use individual @findex directives
1710 instead of one with a comma-separated list of index entries.
1712 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
1714 PR tree-optimization/18529
1715 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
1716 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
1717 (fold): Call fold_to_nonsharp_ineq_using_bound.
1718 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
1719 (number_of_iterations_cond): Fold the expressions before futher
1721 (tree_simplify_using_condition): Handle case when cond or expr is
1722 an EQ_EXPR specially.
1724 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
1726 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
1727 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
1729 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1730 Fariborz Jahanian <fjahanian@apple.com>
1732 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
1734 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
1735 Align 16 byte and larger vectors like Altivec.
1736 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
1737 (function_arg): Same.
1738 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
1740 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1743 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
1746 2004-11-22 Richard Henderson <rth@redhat.com>
1748 * function.c (assign_parm_setup_block): Revert 11-13 change to
1749 forcably re-mode a (possibly BLKmode) hard register.
1751 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1753 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
1755 2004-11-22 David Edelsohn <edelsohn@gnu.org>
1757 * config/rs6000/power4.md: Remove delay between dispatch and issue
1758 associated with dispatch group slots 3 and 4.
1759 * config/rs6000/power5.md: Same.
1761 2004-11-21 Jeff Law <law@redhat.com>
1763 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
1765 * cfgbuild.c (make_edges): Likewise.
1766 * cfghooks.c (can_duplicate_block_p): Likewise.
1767 * cfgloop.c (loop_latch_edge): Likewise.
1768 * cfgloopmanip.c (force_single_succ_latches): Likewise.
1769 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1770 * predict.c (predict_loops, propagate_freq): Likewise.
1771 * tracer.c (tail_duplicate): Likewise.
1772 * tree-cfg.c (disband_implicit_edges): Likewise.
1773 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
1775 2004-11-22 Nick Clifton <nickc@redhat.com>
1777 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
1778 initialisation of 'e'.
1780 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
1782 PR rtl-optimization/18599
1783 * regrename.c (copyprop_hardreg_forward): Speed up by putting
1784 BB_VISITED flags on basic blocks as we process them.
1786 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1789 * config/rs6000/altivec.md (VI_char): New mode attribute.
1790 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
1791 (add<mode>3): ... this.
1792 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
1793 (sub<mode>3): ... this.
1794 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
1795 (smax<mode>3): ... this.
1796 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
1797 (smin<mode>3): ... this.
1798 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
1799 (umax<mode>3): ... this.
1800 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
1801 (umin<mode>3): ... this.
1802 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1803 (and<mode>3): ... this.
1804 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1805 (ior<mode>3): ... this.
1806 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
1807 (xor<mode>3): ... this.
1808 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
1809 (and<mode>3): ... this.
1810 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
1811 (ior<mode>3): ... this.
1812 (altivec_vnor): Replace with ...
1813 (altivec_nor<mode>): ... this.
1814 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
1815 (one_cmpl<mode>2): ... this.
1816 (altivec_vandc): New expander.
1817 (*andc<mode>3): New insn.
1818 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
1820 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1823 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
1824 creating iv instead of integer_type.
1825 (vect_build_loop_niters): Remove redundant code.
1826 (vect_transform_loop_bound): Removed (duplicates functionality of
1827 make_loop_iterate_ntimes.
1828 (vect_gen_niters_for_prolog_loop): Add documentation. Call
1829 lang_hooks.types.type_for_size to create a type of the required size.
1830 Use that type instead of integer_type. Remove redundant code.
1831 (vect_update_niters_after_peeling): Use type of niters instead of
1833 (vect_transform_loop): Unify handling of known and unknown loop bound
1834 cases. Call make_loop_iterate_ntimes instead of
1835 vect_transform_loop_bound.
1837 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
1840 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
1843 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
1846 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
1848 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1850 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
1852 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
1853 m32r/libgcc-glibc.ver.
1854 * config/m32r/libgcc-glibc.ver: Add New file.
1856 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
1858 * bitmap.h (struct bitmap_obstack): New obstack type.
1859 (struct bitmap_head_def): Replace using_obstack with obstack
1861 (bitmap_default_obstack): New.
1862 (bitmap_initialize): Make inline, does not do allocation.
1863 (bitmap_release_memory): Remove.
1864 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
1865 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1866 bitmap_obstack_free, bitmap_malloc_free): Declare.
1867 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
1868 (BITMAP_FREE): Replace with ...
1869 (BITMAP_OBSTACK_FREE): ... this.
1870 (BITMAP_XFREE): Adjust.
1871 (BITMAP_INIT_ONCE): Remove.
1872 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
1873 (bitmap_default_obstack): New.
1874 (bitmap_elem_to_freelist): Adjust.
1875 (bitmap_element_allocate): Adjust. Break initialization into ...
1876 (bitmap_obstack_initialize): ... here.
1877 (bitmap_release_memory): Replace with ...
1878 (bitmap_obstack_release): ... this.
1879 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
1880 bitmap_obstack_free, bitmap_malloc_free): New.
1881 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
1883 (bitmap_initialize): Move to bitmap.h.
1884 * gengtype.c (open_base_files): Add obstack.h to ifiles.
1885 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
1886 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
1887 (INITIALIZE_REG_SET): Remove.
1888 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
1889 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
1890 (flow_obstack): Do not declare.
1891 (reg_obstack): Declare.
1892 * regs.h: Include obstack.h.
1893 * tree-optimize.c (tree_rest_of_compilation): Initialize and
1894 release bitmap obstack here.
1895 * bb-reorder.c: #include regs, not basic-block.
1896 (fix_crossing_conditional_branches): Allocate regsets from
1898 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
1900 * caller-save.c: Include regs.h earlier.
1901 * cfg.c: Do not include basic-block.h or obstack.h.
1902 (reg_obstack): Define.
1903 * cfganal.c: Include obstack.h
1904 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
1906 * cfglayout.c: Do not include obstack.h.
1907 (flow_obstack): Remove declaration.
1908 (cfg_layout_duplicate_bb): Use reg_obstack.
1909 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
1910 * cfgrtl.c (rtl_split_block): Use reg_obstack.
1911 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
1912 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
1913 (cfg_layout_split_edge): Use reg_obstack.
1914 * cse.c: Include regs.h earlier.
1915 * ddg.c: Do not include basic-block.h.
1916 * dominance.c: Inlude obstack.h.
1917 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
1918 (calculate_global_regs_live): Likewise.
1919 (allocate_bb_life_data): Use reg_obstack.
1920 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
1921 * global.c: Do not include basic-block.h.
1922 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
1923 * graph.c: Include obstack.h.
1924 * haifa-sched.c: Do not include basic-block.h.
1925 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
1926 * local-alloc.c: Do not include basic-block.h.
1927 * loop-init.c, loop-invariant.c: Include obstack.h.
1928 * loop-iv.c: Likewise.
1929 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
1931 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
1932 * modulo-sched.c: Do not include basic-block.h.
1933 * passes.c (rest_of_handle_final): Do not call
1934 regset_release_memory.
1935 * ra-debug.c: Include regs.h earlier. Do not include
1937 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
1938 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
1939 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
1940 (regset_release_memory): Remove.
1941 * resource.c: Do not include basic-block.h.
1942 * rtlanal.c: Do not include basic-block.h.
1943 * sbitmap.c: Include obstack.h.
1944 * sched-deps.c: Do not include basic-block.h.
1945 (reg_pending_sets_head, reg_pending_clobbers_head,
1946 reg_pending_uses_head): Remove.
1947 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
1948 * sched-ebb.c: Do not include basic-block.h.
1949 * sched-rgn.c: Likewise.
1950 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
1952 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
1953 * tree-sra.c (decide_instantiations): Adjust bitmap
1955 * tree-ssa-dce.c: Include obstack.h.
1956 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
1957 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
1958 (bitmap_set_new): Likewise.
1959 (init_pre): Initialize bitmap obstack.
1960 (fini_pre): Release bitmap obstack.
1961 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
1962 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
1963 (mark_for_rewrite, unmark_for_rewrite): Likewise.
1964 (marked_ssa_names): Likewise.
1965 (init_ssanames): Use BITMAP_XMALLOC.
1966 (fini_ssanames): Use BITMAP_XFREE.
1967 * web.c: Include obstack.h
1969 2004-11-22 Nick Clifton <nickc@redhat.com>
1971 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
1972 predecessor in the first for-loop.
1974 2004-11-21 Stan Shebs <shebs@apple.com>
1976 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
1978 (function_arg): Move darwin test up, sniff mode first for
1979 efficiency, test for union type.
1981 2004-11-21 Dale Johannesen <dalej@apple.com>
1983 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
1985 2004-11-21 Jeff Law <law@redhat.com>
1987 * tree-ssa.c (verify_use): Fix comment.
1988 (verify_phi_args): Check that the number of incoming edges matches
1989 the number of PHI arguments. Check that each PHI argument is
1990 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
1991 dead or duplicated edges. Clear e->aux earlier and avoid separate
1992 loop to clear e->aux and test for missed edges.
1993 (verify_ssa): Remove first walk over statements. Move checking
1994 of PHI args into verify_phi_args. Move checking of statements
1995 with aliased stores and V_MAY_DEFS into the remaining loop over
1996 the statements. Register defs by walking through the formal
1999 2004-11-21 Roger Sayle <roger@eyesopen.com>
2002 * dojump.c (compare_from_rtx): Clarify mode argument in function
2003 description. Correct order of mode/cmp_mode arguments in call to
2004 simplify_relational_operation. Check "tem" for COMPARISON_P.
2006 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
2007 David Edelsohn <edelsohn@gnu.org>
2010 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
2011 synthetic vectors in memory.
2012 (function_arg_boundary): Align large synthetic vectors.
2013 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
2015 2004-11-21 Jeff Law <law@redhat.com>
2017 * cfg.c (update_bb_profile_for_threading): Do not rescale the
2018 successor probabilities if they are not going to change. Pull
2019 division out of loop if we do need to rescale successor probabilities.
2021 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
2022 index of the destination block for the hash value rather than
2025 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
2027 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
2028 checks for neither argument being an array or pointer (swapping
2029 the arguments if necessary), the array argument being a pointer to
2030 or array of functions and for -Wchar-subscripts warnings upfront.
2032 2004-11-20 Jeff Law <law@redhat.com>
2034 * regrename.c (copyprop_hardreg_forward): Only search for a
2035 previously processed block if the current block only has one
2038 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
2040 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
2042 * config/arm/arm.c: Follow spelling conventions.
2044 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
2046 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
2047 a bit in tune_flags.
2048 (const_double_needs_minipool): Likewise. Split most of the code out
2050 (arm_const_double_inline_cost): ... new function here.
2051 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
2052 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
2053 word constants of length 2, 3 and 4 insns respectively.
2054 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
2055 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
2056 constraints. Set insn lenghts accordingly.
2058 2004-11-19 Jeff Law <law@redhat.com>
2060 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
2061 a hash table. Extensive modifications throughout to support
2064 (struct local_info): New.
2065 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
2067 (redirection_data): Now a hashtable.
2068 (redirection_data_hash, redirection_data_eq): New.
2069 (lookup_redirection_data, create_duplicates): New.
2070 (create_edge_and_update_destionation_phis): New.
2071 (fixup_template_block, redirect_edges): New.
2072 (thread_block): Use hash table traversals instead of loops over
2073 varray entries or incoming edge vectors.
2075 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2077 * basic-block.h (edge_def): Add dest_idx.
2078 * cfg.c (unchecked_make_edge): Initialize dest_idx.
2079 (remove_edge): Simplify the disconnection of an edge from its
2081 (redirect_edge_succ): Likewise.
2082 * cfghooks.c (verify_flow_info): Check the consistency of
2083 dest_idx for each edge.
2085 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
2087 * simplify-rtx.c (simplify_ternary_operation): Use
2090 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2092 * tree-cfg.c (reinstall_phi_args): New.
2093 (tree_split_edge): Use it after redirecting an edge. Don't
2094 modify PHI_ARG_EDGE.
2096 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
2098 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
2099 if checking is enabled.
2101 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
2103 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
2104 too many nested scopes.
2106 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2109 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
2110 changed to suppoer uses-after-loop and to void creating flow paths
2111 that shouldn't exist.
2112 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
2113 Modified to fit the new peeling scheme. Avoid quadratic behavior.
2114 (slpeel_add_loop_guard): Takes additional argument.
2115 (slpeel_verify_cfg_after_peeling): New function.
2116 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
2117 documentation. Use 'exit-bb' instead of creating 'new-bb'.
2118 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
2119 the new peeling scheme.
2120 (copy_phi_nodes): Function removed. Its functionality moved to
2121 update_phis_for_duplicate_loop.
2122 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
2123 moved here. Added documentation. Modified to fit the new peeling scheme.
2124 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
2125 needed - done in slpeel_tree_peel_loop_to_edge.
2126 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
2127 (vect_do_peeling_for_loop_bound): Add documentation. Call
2128 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
2129 with additional argument.
2130 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
2132 (vect_finish_stmt_generation): Avoid 80 column oveflow.
2134 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2136 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
2138 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
2139 without last two arguments. Update single_exit of loops.
2140 (vect_update_niters_after_peeling): Removed. Its functionality was
2141 moved to vect_do_peeling_for_alignment.
2142 (vect_do_peeling_for_loop_bound): New name for function previously
2143 called vect_transform_for_unknown_loop_bound.
2144 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
2145 instead of code that duplicates the same functionality.
2146 (vect_do_peeling_for_alignment): Functionality of
2147 vect_update_niters_after_peeling moved here.
2148 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
2149 previously named vect_transform_for_unknown_loop_bound - for both known
2150 and unknown loop bound cases.
2152 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2154 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
2155 previously called verify_loop_for_duplication. All conditions compacted
2156 into one compound condition. Removed debug dumps.
2157 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
2158 functionality moved to vect_can_advance_ivs_p, and some to
2159 vect_analyze_loop_form.
2160 (vect_can_advance_ivs_p): New function. Contains functionality that was
2161 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
2162 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
2163 (vect_analyze_operations): Call vect_can_advance_ivs_p and
2164 slpeel_can_duplicate_loop_p.
2165 (vect_get_loop_niters): Added documentation.
2166 (vect_analyze_loop_form): Check the loop entry always - not only in case
2167 of unknown loop bound. Create preheader and exit bb if necessary. Apply
2168 a check that used to take place in
2169 vect_analyze_loop_with_symbolic_num_of_iters.
2170 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
2171 Remove redundant call to rewrite_into_loop_closed_ssa.
2172 (vect_compute_data_refs_alignment): Removed obsolete comment.
2174 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
2176 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
2177 function previously called tree_duplicate_loop_to_edge.
2178 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
2179 previously called tree_duplicate_loop_to_edge_cfg.
2180 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
2182 (slpeel_update_phi_nodes_for_guard): Likewise.
2183 (slpeel_make_loop_iterate_ntimes): Likewise.
2184 (slpeel_add_loop_guard): Likewise.
2185 (allocate_new_names, free_new_names): Function declaration moved to top
2187 (rename_use_op, rename_def_op): Likewise.
2188 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
2189 (vect_generate_tmps_on_preheader): Function declaration moved.
2190 (vect_transform_for_unknown_loop_bound): Added missing function
2193 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
2196 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
2197 Define a VEC(tree_on_heap) for head.
2198 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2199 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2200 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
2201 the VEC(tree_on_heap) function. Also free it before returning.
2202 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2203 for block_defs_stack.
2204 (restore_currdefs_to_original_value): Use VEC_length instead of
2205 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2206 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2207 for block_defs_stack.
2208 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
2209 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
2210 for block_defs_stack.
2211 (ssa_register_new_def): Likewise.
2212 (ssa_rewrite_initialize_block): Likewise.
2213 (rewrite_finalize_block): Use VEC_length instead of
2214 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
2215 (ssa_rewrite_finalize_block): Likewise.
2216 (register_new_def): Change second argument to be a VEC(tree_on_heap).
2217 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
2218 (rewrite_blocks): Initialize block_defs_stack with
2219 the VEC(tree_on_heap) function. Also free it before returning.
2220 (rewrite_ssa_into_ssa): Likewise.
2222 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
2224 * config/darwin.c (machopic_data_defined_p): return 1 for
2225 MACHOPIC_DEFINED_FUNCTION.
2227 2004-11-19 Jeff Law <law@redhat.com>
2229 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
2232 2004-11-19 Paul Brook <paul@codesourcery.com>
2235 * varasm.c (default_assemble_integer): Allow pointer-sized values.
2238 2004-11-19 Nick Clifton <nickc@redhat.com>
2240 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
2241 zero_extension and lshiftrt insns.
2242 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
2244 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
2245 to handle bp and bn insn patterns with a zero_extend rtx
2248 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
2250 * config/arm/arm.md (generic_sched): Make const.
2252 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2254 * emit-rtl.c (classify_insn): Make it static.
2255 * rtl.h: Remove the corresponding prototype.
2257 * integrate.c (has_func_hard_reg_initial_val,
2258 get_func_hard_reg_initial_val): Make them static.
2259 * integrate.h: Remove the corresponding prototypes.
2261 2004-11-19 Ben Elliston <bje@au.ibm.com>
2263 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
2264 (dw2_asm_output_delta_sleb128): Likewise.
2265 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
2266 (dw2_asm_output_delta_sleb128): Likewise.
2268 2004-11-19 Adam Nemet <anemet@lnxw.com>
2270 * tree-ssa-alias.c: Fix comment.
2272 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
2274 * tree-outof-ssa.c: Fix a comment typo.
2276 2004-11-19 Ben Elliston <bje@au.ibm.com>
2278 * predict.h (predict_insn): Remove extern declaration.
2279 * predict.c (predict_insn): Make static.
2281 2004-11-19 Alan Modra <amodra@bigpond.net.au>
2283 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
2285 2004-11-18 Nicolas Pitre <nico@cam.org>
2287 * config/arm/arm.c (const_double_needs_minipool): New function to
2288 determine if a CONST_DOUBLE should be pushed to the minipool.
2289 (note_invalid_constants): Use it.
2291 2004-11-18 Paul Brook <paul@codesourcery.com>
2293 * config/arm/arm.c (target_float_switch): New variable..
2294 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
2295 target_float_switch.
2296 * config/arm/arm.h (target_float_switch): Declare.
2297 (ARM_FLAG_SOFT_FLOAT): Remove.
2298 (TARGET_SWITCHES): Remove hard-float and soft-float.
2299 (TARGET_OPTIONS): Add hard-float and soft-float.
2300 (TARGET_DEFAULT_FLOAT_ABI): Define.
2301 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
2302 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
2303 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
2304 * config/arm/netbsd-elf.h: Ditto.
2305 * config/arm/netbsd.h: Ditto.
2306 * config/arm/pe.h: Ditto.
2307 * config/arm/unknown-elf.h: Ditto.
2308 * config/arm/wince-pe.h: Ditto.
2309 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2310 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2311 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
2313 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2315 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
2316 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
2317 altivec_lvx_4sf): Rename and replace with ...
2318 (altivec_lvx_<mode>): ... mode macro version.
2319 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
2320 altivec_stvx_4sf): Rename and replace with ...
2321 (altivec_stvx_<mode>): ... mode macro version.
2322 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
2323 (mov<mode>): ... mode macro version.
2324 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
2325 *movv4sf_internal1): Replace with ...
2326 (*mov<mode>_internal): ... mode macro version.
2327 (get_vrsave_internal, *set_vrsave_internal, *save_world,
2328 *restore_world): Unquote output statements.
2329 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
2330 altivec_expand_st_builtin): Adjust insn names.
2332 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
2334 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
2336 (rs6000_override_options): Likewise.
2337 (spe_build_register_parallel): Handle complex doubles on e500v2.
2338 (rs6000_spe_function_arg): Likewise.
2339 (function_arg): Likewise.
2340 (rs6000_function_value): Likewise.
2341 (rs6000_libcall_value): Likewise.
2343 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
2345 * ifcvt.c (find_if_block): Move the check for the number of edges
2346 above the loops checking for complex edges.
2347 Remove the counting of edges as we use EDGE_COUNT now.
2349 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2351 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2352 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
2354 2004-11-18 Andreas Schwab <schwab@suse.de>
2356 * config/i386/i386.md (define_peephole2): Revert last change.
2358 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
2360 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
2361 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
2363 2004-11-18 Diego Novillo <dnovillo@redhat.com>
2365 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
2368 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
2370 * Makefile.in (macro_list): Depend on s-macro_list.
2371 (s-macro_list): New target.
2373 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
2376 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2377 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2378 (fold_range_test): Adjust.
2379 (fold_truthop): Use it.
2380 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
2381 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
2383 2004-11-18 Uros Bizjak <uros@kss-loka.si>
2385 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
2386 insn split constraint.
2387 (define_peephole2): Remove unneeded "&& 1" from peephole2
2390 2004-11-18 Ben Elliston <bje@au.ibm.com>
2392 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
2393 element for bsi_prev; use @findex instead.
2395 2004-11-18 Ben Elliston <bje@au.ibm.com>
2397 * opts.h (add_input_filename): Remove extern declaration.
2398 * opts.c (add_input_filename): Make static.
2400 2004-11-17 Mark Mitchell <mark@codesourcery.com>
2402 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
2405 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2407 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
2408 * system.h: Poison it.
2409 * doc/tm.texi: Delete its documentation.
2411 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
2412 Mark Mitchell <mark@codesourcery.com>
2414 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
2415 * config/i386/i386.c (i386_solaris_elf_named_section): New
2417 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
2418 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
2420 (ASM_QUAD): Don't undefine for biarch targets.
2421 * config/i386/t-sol2: Introduce multilib support.
2423 2004-11-18 Ben Elliston <bje@au.ibm.com>
2425 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
2427 2004-11-18 Ben Elliston <bje@au.ibm.com>
2429 * cgraph.h: Replace "it's" with "its" throughout.
2431 2004-11-18 Ben Elliston <bje@au.ibm.com>
2433 * doc/rtl.texi (Flags): Grammar fix.
2435 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2437 * expmed.c (alg_code): Add alg_unknown.
2438 (alg_hash_entry): New.
2439 (NUM_ALG_HASH_ENTRIES): Likewise.
2440 (alg_hash): Likewise.
2441 (synth_mult): Cache the result into alg_hash.
2443 2004-11-17 Zack Weinberg <zack@codesourcery.com>
2445 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
2446 config/rs6000/libgcc-ppc64.ver.
2448 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
2450 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
2451 checking if an unconditional return is followed by a barrier.
2453 * jump.c (condjump_p): Remove unreachable code.
2455 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
2456 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
2457 tree-ssa-live.h, tree.h: Remove unused prototypes.
2459 2004-11-17 Jeff Law <law@redhat.com>
2461 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
2462 (edge_to_cases_elt): Renamed from edge_to_case_leader.
2463 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
2464 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
2465 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
2466 (get_cases_for_edge): New function.
2467 (start_recording_case_labels, end_recording_case_labels): Similarly.
2468 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
2469 chain equivalent CASE_LABEL_EXPRs together.
2470 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
2471 (make_switch_expr_edges): Do not record edge/cases here.
2472 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
2473 (split_critical_edges): Record cases around the edge splitting code.
2474 (cleanup_dead_labels): Use CASE_LABEL again.
2475 (tree_redirect_edge_and_branch): If we have a mapping from edge
2476 to cases, use it to handle redirections. Else do it the slow way.
2477 * tree.h (CASE_LEADER_OR_LABEL): Kill.
2478 (CASE_LABEL): Revert to just looking at the tree's second operand.
2479 * tree.c (get_case_label): Kill.
2481 2004-11-17 Diego Novillo <dnovillo@redhat.com>
2483 PR tree-optimization/18307
2484 * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
2485 'orig' are the same node.
2486 (collect_points_to_info_r): Do not call merge_pointed_to_info
2487 when the PHI argument is identical to the LHS.
2489 2004-11-17 Steven Bosscher <stevenb@suse.de>
2491 * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
2492 to insert the exit or entry block.
2493 (ssa_prop_init): Use add_control_edge to seed the algorithm.
2495 2004-11-16 Zack Weinberg <zack@codesourcery.com>
2497 * mkmap-flat.awk, mkmap-symver.awk: If the last version
2498 assigned to a symbol was '%exclude', do not emit it anywhere.
2499 If leading_underscore is true, prefix all symbols from the
2500 version scripts with a leading underscore before comparing
2501 them with nm output or emitting them. Remove support for dot
2503 * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
2504 (SHLIB_MAPFILES): Use libgcc-std.ver.
2505 (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
2506 (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
2507 * config/sh/t-linux: Use the normal libgcc-std.ver, plus
2508 libgcc-excl.ver and libgcc-glibc.ver.
2510 * config/sh/libgcc-excl.ver: New file.
2511 * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
2513 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2515 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
2516 the test when the edge has the opposite meaning, not when
2517 the first argument is invariant.
2519 2004-11-16 Aldy Hernandez <aldyh@redhat.com>
2521 * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
2523 (rs6000_complex_function_value): Handle e500 v2 variant.
2525 2004-11-16 Daniel Berlin <dberlin@dberlin.org>
2527 Fix PR tree-optimization/18519
2529 * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
2530 * tree-pass.h: Add TODO_cleanup_cfg.
2531 * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
2532 (ccp_finalize): Remove call to cleanup_cfg.
2533 * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
2534 (pass_cd_dce): Ditto.
2535 (perform_tree_ssa_dce): Remove call to cleanup_cfg,
2536 dump_function_to_file.
2537 * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
2539 (pass_ch): Add TODO_cleanup_cfg.
2540 * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
2542 (pass_loop_done): Add TODO_cleanup_cfg.
2543 * tree-ssa-phiopt.c (pass_phiopt): Ditto.
2544 (tree_ssa_phiopt): Remove call to cleanup_cfg.
2546 2004-11-16 Devang Patel <dpatel@apple.com>
2548 * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
2550 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2552 * expmed.c, ra-colorize.c: Fix comment typos.
2554 * doc/tm.texi: Fix typos.
2556 2004-11-16 Daniel Jacobowitz <dan@codesourcery.com>
2557 Mark Mitchell <mark@codesourcery.com>
2560 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
2563 2004-11-16 Ulrich Weigand <uweigand@de.ibm.com>
2565 * regmove.c (regmove_optimize): Use lowpart_subreg instead of
2566 gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
2568 2004-11-16 Devang Patel <dpatel@apple.com>
2570 * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
2572 2004-11-16 Eric Christopher <echristo@redhat.com>
2574 * config/mips/mips.c: Use rtl _P predicates.
2575 * config/mips/mips.h: Ditto.
2576 * config/mips/mips.md: Ditto.
2578 2004-11-16 Fariborz Jahanian <fjahanian@apple.com>
2580 * config/rs6000/altivec.md (altivec_vandc): Canonicalize
2583 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2585 * config/s390/s390.c (s390_cc_modes_compatible): New function.
2586 (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
2588 2004-11-16 Kaz Kojima <kkojima@gcc.gnu.org>
2591 * config/sh/sh.c (prepare_move_operands): Emit blockage insns
2592 before and after the insns for getting GOT address in non-PIC
2593 TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
2596 2004-11-16 Andreas Krebbel <krebbel1@de.ibm.com>
2598 * gcc/cse.c (struct change_cc_mode_args): New structure.
2599 (cse_change_cc_mode_insn): New function.
2600 (cse_change_cc_mode): Use validate_change to perfom changes.
2601 (cse_change_cc_mode_insns, cse_condition_code_reg):
2602 Call cse_change_cc_mode_insn.
2604 2004-11-16 Steven Bosscher <stevenb@suse.de>
2608 2004-11-16 Steven Bosscher <stevenb@suse.de>
2610 * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
2612 2004-11-15 Dale Johannesen <dalej@apple.com>
2614 * tree-flow.h (add_referenced_temp_var): Remove name from prototype.
2616 2004-11-15 Dale Johannesen <dalej@apple.com>
2618 * profile.c (compute_branch_probabilities): Prevent
2619 crash with EH in RTL-based profiling.
2621 2004-11-16 Kazu Hirata <kazu@cs.umass.edu>
2623 * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
2625 * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
2626 * tree-ssa-dom.c (thread_across_edge): Likewise.
2627 * tree-vectorizer.c (vect_transform_loop_bound): Replace
2628 TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
2631 * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
2632 (tree_flow_call_edges_add): Update the call to
2633 bsi_commit_edge_inserts.
2634 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
2635 * profile.c (branch_prob): Likewise.
2636 * tree-mudflap.c (mf_decl_cache_locals): Likewise.
2637 * tree-sra.c (scalarize_function): Likewise.
2638 * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
2639 * tree-ssa-pre.c (fini_pre): Likewise.
2640 * tree-flow.h: Update the prototype for
2641 bsi_commit_edge_inserts.
2643 2004-11-15 Eric Christopher <echristo@redhat.com>
2645 * sched-deps.c (set_sched_group_p): Delete.
2646 (delete_all_dependencies): New function.
2647 (fixup_sched_groups): Use. New function.
2648 (sched_analyze_insn): Use.
2650 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2652 * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
2653 RROTATE_EXPR or unknown code.
2654 * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
2655 LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
2656 UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
2659 2004-11-15 Joseph S. Myers <joseph@codesourcery.com>
2662 * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
2663 after processing the declarator.
2665 2004-11-15 Aldy Hernandez <aldyh@redhat.com>
2667 * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
2669 (altivec_vspltb): Same.
2670 (altivec_vspltw): Same.
2671 (altivec_vspltisb): Same.
2672 (altivec_vspltish): Same.
2673 (altivec_vspltisw): Same.
2674 (altivec_vspltisw_v4sf): Same.
2675 (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
2677 Move "End of vector xor's" comment to the right place.
2679 2004-11-15 Steve Ellcey <sje@cup.hp.com>
2681 * config/ia64/ia64.md (*movtf_internal): Use destination_operand
2682 instead of nonimmediate_operand.
2684 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2686 * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
2687 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
2688 * config/sol2.c (solaris_output_init_fini): Update calls to
2689 ASM_OUTPUT_CALL. Include "rtl.h".
2691 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2693 * config/sol2-c.c (cmn_err_char_table): Add "p".
2695 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2697 * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
2698 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
2700 2004-11-15 Mark Mitchell <mark@codesourcery.com>
2702 * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
2703 within the multilib directory.
2705 2004-11-15 Nick Clifton <nickc@redhat.com>
2707 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
2708 builtin assert of cpu=xstormy16.
2710 2004-11-15 Nathan Sidwell <nathan@codesourcery.com>
2712 * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
2715 2004-11-14 Richard Henderson <rth@redhat.com>
2718 * calls.c (struct arg_data): Add parallel_value.
2719 (precompute_register_parameters): Set it.
2720 (load_register_parameters): Use it.
2721 (store_one_arg): Also set it here.
2723 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2725 PR tree-optimization/18431
2726 * fold-const.c (associate_trees): Do not produce x + 0.
2727 (fold_widened_comparison, fold_sign_changed_comparison): New functions.
2729 * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
2731 * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
2732 * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
2734 2004-11-14 Eric Botcazou <ebotcazou@libertysurf.fr>
2736 * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
2738 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2740 * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
2741 value-prof.c: Fix comment typos.
2743 2004-11-14 Stan Shebs <shebs@apple.com>
2745 Basic ABI changes for passing structs by value in 64-bit Darwin.
2746 * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
2747 (rs6000_override_options): Set it for 64-bit Darwin.
2748 (rs6000_parse_abi_options): Add testing options to change it.
2749 (rs6000_return_in_memory): Test whether the type is one
2750 that can be passed in registers.
2751 (darwin64_function_arg_advance): New.
2752 (function_arg_advance): Call it, plus add recursion depth
2753 argument and test when counting off arguments.
2754 (rs6000_darwin64_function_arg): New.
2755 (function_arg): Call it.
2756 (setup_incoming_varargs): Add argument to function_arg_advance.
2757 (rs6000_darwin64_function_value): New.
2758 (rs6000_function_value): Call it.
2759 * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
2760 * config/rs6000/rs6000-protos.h: Update decl of
2761 function_arg_advance.
2763 2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
2766 * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
2767 support TImode before adding __int128_t and __uint128_t types.
2769 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2772 * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
2773 (vect_transform_loop_bound): Set loop->nb_iterations.
2775 2004-11-14 Dorit Naishlos <dorit@il.ibm.com>
2776 Andrew Pinski <pinskia@physics.uc.edu>
2779 * tree-vectorize.c (vect_build_loop_niters): Do not insert
2780 NULL into the instruction stream. Initialize new_bb to NULL.
2781 (vect_update_ivs_after_vectorizer): Likewise.
2782 (vect_gen_niters_for_prolog_loop): Likewise.
2784 2004-11-14 Zdenek Dvorak <dvorakz@suse.cz>
2786 PR tree-optimization/18431
2787 * tree-flow.h (stmt_references_memory_p): Declare.
2788 * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
2789 * tree-ssa.c (stmt_references_memory_p): New function.
2791 2004-11-14 Andreas Schwab <schwab@suse.de>
2793 * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
2796 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2798 * c-common.c (walk_stmt_tree): Remove.
2799 * c-common.h: Remove the corresponding prototype.
2801 * emit-rtl.c (push_to_full_sequence): Remove.
2802 * rtl.h: Remove the corresponding prototype.
2804 * cselib.c, expr.c: Fix comment typos.
2806 2004-11-13 Richard Henderson <rth@redhat.com>
2808 * calls.c (precompute_register_parameters): Force all PARALLELs
2809 into pseudo registers.
2810 (load_register_parameters): Copy PARALLELs into hard registers.
2811 * function.c (assign_parm_setup_block): Copy PARALLELS into
2812 pseudo registers. Do emit_group_store in conversion_insns.
2813 * expr.c (emit_group_load_1): Rename from emit_group_load, take
2814 tmps as an argument. Move final copy loop ...
2815 (emit_group_load): ... here. New function.
2816 (emit_group_load_into_temps, emit_group_move_into_temps): New.
2817 * expr.h: Declare them.
2819 2004-11-14 Kazu Hirata <kazu@cs.umass.edu>
2821 * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
2822 tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
2823 with PHI_CHAIN where appropriate.
2825 2004-11-13 Dale Johannesen <dalej@apple.com>
2827 * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
2828 (tree_block_label): Ditto.
2829 (flush_pending_stmts): Ditto.
2830 (insert_edge_copies): Ditto.
2831 (expr_invariant_in_loop_p): Ditto.
2832 (TDF_USE_OPS): Parenthesize definition.
2833 (TDF_USE_VOPS): Ditto.
2835 2004-11-13 David Edelsohn <edelsohn@gnu.org>
2837 * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
2838 * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
2840 * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
2842 2004-11-14 Joseph Myers <joseph@codesourcery.com>
2844 * config/i386/i386.c (override_options): Move loop to set default
2845 tuning to correct place.
2847 2004-11-13 Zak Kipling <zak@transversal.com>
2850 * config/i386/i386.c (classify_argument): Fix infinite loop when
2851 passing object with 3 or more base classes by value.
2853 2004-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2855 * doc/md.texi (constraints) <% modifier>: Mention that it is
2856 useless when the two alternatives are strictly identical.
2858 2004-11-13 Richard Henderson <rth@redhat.com>
2860 * expmed.c (extract_split_bit_field): Temporarily disable call to
2861 extract_force_align_mem_bit_field.
2863 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2865 * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
2868 * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
2869 lambda-code.c, postreload.c, predict.c, tree-sra.c,
2870 tree-ssa-loop-manip.c, tree.c: Fix comment typos.
2872 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2874 * doc/install.texi (automake): Correctly document that everything now
2875 will use automake 1.9.3.
2877 2004-11-13 Hans-Peter Nilsson <hp@bitrange.com>
2880 * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
2881 TImode. Sorry for other non-complex larger-than-64-bit modes.
2882 * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
2884 2004-11-13 Kelley Cook <kcook@gcc.gnu.org>
2886 * doc/install.texi (automake): Document that everything now uses 1.9.
2888 2004-11-13 Bernd Schmidt <bernd.schmidt@analog.com>
2890 * cse.c (cse_insn): Stores in a libcall sequence can invalidate
2893 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2895 * tree.h: Fix comment typos.
2897 2004-11-13 Steven Bosscher <stevenb@suse.de>
2899 * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
2900 HARD_REGISTER_NUM_P.
2902 * cselib.c (new_cselib_val): Make comment correct and more detailed.
2903 * flow.c (mark_set_1): Likewise.
2905 * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
2906 duplicate_eh_regions): Remove.
2907 * except.h (duplicate_eh_regions): Remove prototype.
2908 * integrate.c (get_label_from_map, copy_rtx_and_substitute,
2909 global_const_equiv_varray): Remove.
2910 * integrate.h (get_label_from_map, copy_rtx_and_substitute,
2911 global_const_equiv_varray, set_label_in_map): Remove prototypes,
2912 extern declaration, and #define.
2913 (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
2914 (struct inline_remap): Remove.
2915 * varray.c (struct element): Remove entry for const_equiv_data.
2916 * varray.h (struct const_equiv_data): Remove.
2917 (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
2918 (union varray_data_tag) <const_equiv>: Remove.
2919 (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
2920 VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
2922 * regstack.c (record_label_references): Remove unused function.
2924 * rtl.def (VALUE): Update comment.
2925 (LABEL_REF): Remove unused operand 2.
2926 * rtl.h (struct rtx_def): Update for removed accessor macros.
2927 (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
2928 REG_LOOP_TEST_P): Remove.
2929 (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
2930 * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
2931 * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
2933 2004-11-13 James A. Morrison <phython@gcc.gnu.org>
2934 Eric Botcazou <ebotcazou@libertysurf.fr>
2937 * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
2939 * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
2940 (V32I): New macro for 32-bit modes.
2941 (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
2942 iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
2943 xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
2944 xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
2945 one_cmpldi_sp64): Use V64I instead of DI.
2946 (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
2947 xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
2948 (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
2949 (nandv64i_vis, nandv32i_vis): New patterns.
2951 2004-11-12 Mike Stump <mrs@apple.com>
2953 * Makefile.in: Add html support.
2954 * java/Make-lang.in: Likewise.
2955 * fortran/Make-lang.in: Likewise.
2956 * treelang/Make-lang.in: Likewise.
2957 * doc/install.texi: Likewise.
2958 * doc/makefile.texi: Likewise.
2959 * doc/sourcebuild.texi: Likewise.
2961 2004-11-13 Kazu Hirata <kazu@cs.umass.edu>
2963 * tree-ssa-loop-manip.c: Fix a comment typo.
2965 2004-11-12 Mike Stump <mrs@apple.com>
2967 * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
2968 renaming this node to Concept Index.
2969 * doc/gccint.texi (Index): Likewise. Also minor formatting tweaks
2970 to more closely match gcc.texi.
2972 2004-11-12 Jeff Law <law@redhat.com>
2974 * tree-cfg.c (hashtab.h): Include.
2975 (struct edge_to_case_leader_elt): New structure.
2976 (edge_to_case_leader): New.
2977 (edge_to_case_leader_hash): New hashtable hasing function.
2978 (edge_to_case_leader_eq): New hashtable equality function.
2979 (record_switch_edge): New function.
2980 (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
2981 (make_switch_expr_edges): Build the edge-to-case-leader
2982 hash table. Tear down the hash table when we're done.
2983 (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
2985 (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
2986 (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
2987 to use new concept of case leaders to reduce overhead of
2988 redirecting outgoing edges from switch statements.
2989 * tree.c (get_case_label): New function.
2990 * tree.h (CASE_LABEL): Define in terms of get_case_label.
2991 (CASE_LEADER_OR_LABEL): Define.
2993 2004-11-12 Ziemowit Laski <zlaski@apple.com>
2995 * varasm.c (output_addressed_constants): For CONST_DECLs,
2996 output the initializer if present.
2998 2004-11-12 Ziemowit Laski <zlaski@apple.com>
3000 * config/rs6000/darwin.h: Fix confusing typo in comment.
3002 2004-11-12 Devang Patel <dpatel@apple.com>
3004 * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
3006 2004-11-12 Devang Patel <dpatel@apple.com>
3008 * tree-if-conv.c (clean_predicate_lists): Use loop header
3011 2004-11-12 Richard Henderson <rth@redhat.com>
3014 * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3015 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3016 (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3017 * config/i386/i386-modes.def (XF): Use it.
3019 2004-11-11 Geoffrey Keating <geoffk@apple.com>
3021 * Makefile.in (macro_list): Use move-if-change to avoid spurious
3024 2004-11-12 Mark Mitchell <mark@codesourcery.com>
3027 * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
3028 when deciding whether to pass a variable to
3029 cgraph_varpool_finalize_decl or assemble_variable.
3030 * toplev.c (check_global_declarations): Do not clear DECL_RTL.
3032 2004-11-12 Kazu Hirata <kazu@cs.umass.edu>
3034 * tree-vectorizer.c: Fix a comment typo.
3036 2004-11-12 Bernd Schmidt <bernd.schmidt@analog.com>
3038 * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
3040 2004-11-12 Diego Novillo <dnovillo@redhat.com>
3042 * tree-scalar-evolution.c (analyzable_condition): Remove
3043 superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
3045 2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
3047 * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
3048 Remove m505/roe multilib variant.
3050 2004-11-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3052 * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
3053 to load from the stack.
3055 2004-11-12 Richard Henderson <rth@redhat.com>
3057 * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
3058 (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
3059 * toplev.h (FL2T__): Remove.
3060 (CLZ_HWI): Rename from FL2T_CLZ__.
3062 (floor_log2): Simplify.
3065 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
3067 * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
3068 compute the first overlapping iterations.
3070 2004-11-12 Sebastian Pop <pop@cri.ensmp.fr>
3073 * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
3074 that arguments of EXACT_DIV_EXPR are INTEGER_CST.
3076 2004-11-12 Steven Bosscher <stevenb@suse.de>
3078 PR tree-optimization/18419
3079 * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
3080 pointer set instead of a bitmap.
3081 (walk_use_def_chains): Create, pass and clean up that pointer_set.
3083 * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
3085 (init_alias_info): Allocate and zero it here.
3086 (delete_alias_info): Delete it here.
3087 (collect_points_to_info_for): Use it.
3089 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3091 * alias.c (record_alias_subset, addr_side_effect_eval):
3093 * alias.h: Remove the prototype for record_alias_subset.
3094 * expr.h: Remove the commented-out prototype for
3095 record_alias_subset.
3096 * rtl.h: Remove the prototype for addr_side_effect_eval.
3098 * cfglayout.c (choose_inner_scope): Make it static.
3099 * rtl.h: Remove the corresponding prototype.
3101 * cfgloopmanip.c (update_single_exits_after_duplication,
3102 unloop): Make them static.
3103 * cfgloop.h: Remove the corresponding prototypes.
3105 * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
3107 * c-tree.h: Remove the corresponding prototypes.
3109 * explow.c (round_push): Make it static.
3110 * expr.h: Remove the corresponding prototype.
3112 * varasm.c (get_named_section_flags, decl_tls_model): Make
3114 * output.h: Remove the prototype for get_named_section_flags.
3115 * tree.h: Remove the prototype for decl_tls_model.
3117 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3119 * function.c (expand_function_end): Remove an "if" statement
3120 that always triggers.
3121 * stmt.c (expand_null_return_1): Likewise.
3123 2004-11-11 James E. Wilson <wilson@specifixinc.com>
3125 * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
3126 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
3127 CLASS_MAX_NREGS): Likewise.
3129 2004-11-11 Zdenek Dvorak <dvorakz@suse.cz>
3131 PR tree-optimization/17742
3132 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
3133 MINUS_EXPR correctly.
3135 2004-11-11 Sebastian Pop <pop@cri.ensmp.fr>
3137 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
3138 Give up as soon as the evolution is known not computable.
3140 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3143 * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
3144 mask64_1or2_operand.
3145 (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
3146 to spot rlwinm opportunities.
3147 (and64_2_operand): Use mask_1or2_operand.
3148 * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
3150 2004-11-11 Dorit Naishlos <dorit@il.ibm.com>
3152 * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
3153 (vect_update_ivs_after_vectorizer): Update function documentation.
3154 Avoid quadratic behavior and direct write to PHI_ARG_DEF.
3156 2004-11-11 Kazu Hirata <kazu@cs.umass.edu>
3158 * config/arm/arm.c: Fix a comment typo.
3160 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3162 * bitmap.h (nBITMAP_WORD_BITS): Remove.
3163 (BITMAP_WORD_BITS): Force unsigned by use of 1u.
3164 (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
3166 (bitmap_first_set_bit): Return unsigned, use ctzl.
3167 (bitmap_last_set_bit): Remove.
3168 * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
3170 (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
3171 remove special case code for two word elements.
3172 (bitmap_last_set_bit): Remove.
3173 * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
3174 bitmap_first_set_bit with bitmap_empty_p.
3175 * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
3176 * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
3177 bitmap_last_bit_set.
3179 2004-11-11 Nathan Sidwell <nathan@codesourcery.com>
3182 * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
3185 * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
3186 unsigned equality compare when we know the operands are unsigned.
3188 2004-11-10 Peter S. Mazinger <ps.m@gmx.net>
3190 * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
3191 __PIC__ and __pic__ only if TARGET_ABICALLS.
3192 (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
3193 (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
3194 -KPIC only if not -mno-abicalls.
3196 * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
3197 * config/sparc/linux.h, config/sparc/linux64.h
3198 (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
3200 * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
3201 * config/pa/pa/linux.h (CPP_SPEC): Likewise.
3202 * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
3203 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
3205 2004-11-11 Paul Brook <paul@codesourcery.com>
3207 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
3208 register if current_function_uses_pic_offset_table is set.
3210 2004-11-10 David Edelsohn <edelsohn@gnu.org>
3212 * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
3213 Change multi-instruction sequences to new attribute.
3214 * config/rs6000/{40x.md,440.md,603.md,6xx.md,
3215 7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
3216 rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
3218 2004-11-10 Daniel Berlin <dberlin@dberlin.org>
3220 * tree-data-ref.c (build_classic_dist_vector): If either loop
3221 is outside of the nest we asked about, the dependence can't
3223 (build_classic_dir_vector): Ditto.
3225 2004-11-10 Zdenek Dvorak <dvorakz@suse.cz>
3227 * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
3229 (force_var_cost): Determine cost of addition and multiplication more
3231 (get_computation_cost_at): Add cost for computing address elements to
3234 * fold-const.c (fold): Attempt to use ptr_difference_const whenever
3235 one of the arguments of MINUS_EXPR is an address.
3236 (split_address_to_core_and_offset): New function.
3237 (ptr_difference_const): Handle case when one of the operands is a
3239 * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
3240 (ptr_difference_cost): Pass addresses instead of objects to
3241 ptr_difference_const.
3243 2004-11-10 Nathan Sidwell <nathan@codesourcery.com>
3245 * tree.c (tree_check_failed): Emit general error if the list of
3246 node types is empty.
3248 2004-11-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3250 * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
3251 argument. When the union is passed in the 6th slot, build a
3252 PARALLEL with only one element.
3253 (function_arg): Adjust call to function_arg_union_value.
3254 (function_value): Likewise.
3256 2004-11-10 Fariborz Jahanian <fjahanian@apple.com>
3258 PR tree-optimization/17892
3259 * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
3260 MINUS_EXPR operator.
3262 2004-11-10 James A. Morrison <phython@gcc.gnu.org>
3265 config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
3266 (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
3268 2004-11-10 Steven Bosscher <stevenb@suse.de>
3270 * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
3271 (struct basic_block_def): Remove local_set and cond_local_set
3272 fields. Update comment for global_live_at_start.
3273 * flow.c (calculate_global_regs_live): Allocate local_sets and
3274 cond_local_sets here as arrays of bitmaps previously stored in
3275 bb->local_set and bb->cond_local_set. Use xmalloc instead of
3276 obstack allocated bitmaps.
3278 2004-11-09 H.J. Lu <hongjiu.lu@intel.com>
3281 * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
3284 * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
3286 2004-11-09 Jeff Law <law@redhat.com>
3288 * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
3289 argument holding last unvisited block. Start search for
3290 unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
3291 (connect_infinite_loops_to_exit): Supply last unvisited block
3292 to flow_dfs_compute_reverse_execute.
3294 2004-10-22 Aldy Hernandez <aldyh@redhat.com>
3296 * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
3298 (floatunssidf2): Same.
3300 ("extendsfdf2"): New expander.
3301 (*extendsfdf2_fpr): Rename.
3302 (*truncdfsf2_fpr): Same.
3303 (*negdf2_fpr): Same.
3304 (*absdf2_fpr): Same.
3305 (*nabsdf2_fpr): Same.
3306 (*adddf3_fpr): Same.
3307 (*subdf3_fpr): Same.
3308 (*muldf3_fpr): Same.
3309 (*divdf3_fpr): Same.
3311 * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
3312 ("spe_fix_truncdfsi2"): Same.
3313 (spe_floatunssidf2): Same.
3314 (spe_floatsidf2): Same.
3316 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
3319 * c-common.c (fname_decl): Don't use line number of decl in
3322 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3324 * config/s390/s390-protos.h (s390_pool_operand): Remove.
3325 * config/s390/s390.c (s390_pool_operand): Likewise.
3326 (s390_extra_constraint_str): Handle 'B' constraints.
3327 * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
3328 * config/s390/s390.md: Document 'B' constraints.
3329 ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
3330 s390_pool_operand to prevent insns with two literal pool
3331 references. Make pattern commutative.
3332 ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
3333 'B' constraint instead of s390_pool_operand.
3335 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3337 * tree-cfg.c (create_bb): Remove unnecessary memset.
3339 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3341 * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
3342 (thread_block): Call flush_pending_stmt instead of
3345 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3347 * loop-iv.c (iv_number_of_iterations): Make it static.
3348 * cfgloop.h: Remove the corresponding prototype.
3350 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3352 * function.c (combine_temp_slots, assign_parms,
3353 expand_pending_sizes): Make them static.
3354 * tree.h: Remove the corresponding prototypes.
3356 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3358 * emit-rtl.c (copy_most_rtx): Remove.
3359 * rtl.h: Remove the corresponding prototype.
3361 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3363 * cfgloop.c (flow_loops_update): Remove.
3364 * cfgloop.h: Remove the corresponding prototype.
3366 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3368 * conflict.c (mark_reg, conflict_graph_compute): Remove.
3369 * basic-block.h: Remove the prototype for
3370 conflict_graph_compute.
3372 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3374 * tree-if-conv.c (add_to_dst_predicate_list): Change the
3375 second argument to basic_block.
3376 (tree_if_convert_cond_expr): Update call sites.
3378 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3380 * fold-const.c (pedantic_non_lvalue): Make it static.
3381 * tree.h: Remove the corresponding prototype.
3383 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3385 * optabs.c (prepare_operand): Make it static.
3386 * optabs.h: Remove the corresponding prototype.
3388 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3390 * reload1.c (reloads_conflict, gen_reload): Make them static.
3391 * reload.h: Remove the corresponding prototypes.
3393 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3395 * reload.c (refers_to_mem_for_reload_p,
3396 refers_to_regno_for_reload_p): Make them static.
3397 * reload.h: Remove the corresponding prototypes.
3399 2004-11-09 James A. Morrison <phython@gcc.gnu.org>
3400 Eric Botcazou <ebotcazou@libertysurf.fr>
3403 * doc/md.texi (SPARC constraints): Document 'Y' constraint.
3404 * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
3405 * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
3406 (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
3407 (fp_zero_operand): Accept MODE_VECTOR_INT modes.
3408 (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
3409 (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
3410 (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
3411 MODE_VECTOR_INT modes.
3412 (sparc_extra_constraint_check): Add new constraint 'Y'.
3413 * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
3414 * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
3415 (V64): New mode macro for 64-bit modes.
3416 (movsf): Use V32 for mode instead of SF.
3417 (movsf_insn_vis): Use V32 for mode instead of SF. Add 'Y' constraint
3418 alongside 'G' constraint.
3419 (movdf): Use V64 for mode instead of DF.
3420 (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
3421 of DF. Add 'Y' constraint alongside 'G' constraint.
3422 (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
3425 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3427 * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
3428 integer NEG and ABS.
3429 * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
3430 ("*negdi2_31"): Reimplement using a splitter.
3431 ("*negdi2_cc", "*negdi2_cconly"): New insns.
3432 ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
3433 ("*negsi2_cc", "*negsi2_cconly"): Likewise.
3434 ("*negdf2_cc", "*negdf2_cconly"): Likewise.
3435 ("*negsf2_cc", "*negsf2_cconly"): Likewise.
3436 ("*absdi2_cc", "*absdi2_cconly"): New insns.
3437 ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
3438 ("*abssi2_cc", "*abssi2_cconly"): Likewise.
3439 ("*absdf2_cc", "*absdf2_cconly"): Likewise.
3440 ("*abssf2_cc", "*abssf2_cconly"): Likewise.
3441 ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
3442 ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
3443 ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
3444 ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
3445 ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
3447 2004-11-09 Ulrich Weigand <uweigand@de.ibm.com>
3449 * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
3450 when eliminating an UNSPEC_CMPINT.
3451 (s390_secondary_input_reload_class): Fix test for CC register reload.
3452 (s390_secondary_output_reload_class): Likewise.
3453 (s390_expand_cmpmem): Swap operands. Use gen_cmpint.
3454 * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
3455 ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
3456 insn patterns with splitters.
3458 2004-11-09 David Edelsohn <edelsohn@gnu.org>
3460 * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
3461 * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
3463 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3465 * tree-phinodes.c (phi_reverse): New.
3466 * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
3468 * tree-flow.h: Add a prototype for phi_reverse.
3470 2004-11-09 Kazu Hirata <kazu@cs.umass.edu>
3472 * tree-ssa-loop-ivopts.c: Fix a comment typo.
3474 2004-11-09 James A. Morrison <phython@gcc.gnu.org>