1 2004-12-15 Kazuhiro Inaoka <inaoka.kazuhiro@reneasas.com>
3 * config/m32r/m32r.h (PREFERRED_DEBUGGING_TYPE):
6 2004-12-15 Richard Sandiford <rsandifo@redhat.com>
8 * config/mips/mips.c (mips_arg_info): Use FUNCTION_ARG_BOUNDARY to
9 decide whether an argument is double-word aligned.
11 2004-12-15 Richard Henderson <rth@redhat.com>
13 * config/i386/i386.md: Fix missing modes on cmove splitters.
15 2004-12-15 Jan Beulich <jbeulich@novell.com>
17 * mklibgcc.in (libgcc2_c_dep): Add dependency on libgcc2.h.
19 2004-12-15 Uros Bizjak <uros@kss-loka.si>
21 * config/i386/i386.md (floathisf2, *floathisf2_1, floatsisf2,
22 *floatsisf2_i387, *floatsisf2_sse, floatdisf2,
23 *floatdisf2_i387_only, *floatdisf2_i387, *floatdisf2_sse,
24 floathidf2, *floathidf2_1, *floatsidf2_i387, *floatsidf2_sse,
25 floatdidf2, *floatdidf2_i387_only, *floatdidf2_i387,
26 *floatdidf2_sse, floatunssisf2, floatunsdisf2, floatunsdidf2):
27 Unify enable constraint with respect to TARGET_80387, TARGET_SSE,
28 TARGET_SSE2, TARGET_64BIT, TARGET_SSE_MATH and TARGET_MIX_SSE_I387.
29 (*float?i?f_i387): Rename to *float?i?f2_mixed.
30 (*float?i?f2_1): Rename to *float?i?f2_i387.
31 (*float?i?f2_i387_only): Rename to *float?i?f2_i387.
32 (float?ixf2): Penalize integer register operand.
34 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37 * configure.ac: Add GAS check for HP-UX .nsubspa comdat.
38 * configure, config.in: Rebuilt.
39 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Delete
41 * config/pa/pa.c (pa_select_section): Allow uninitialized variables in
42 one-only (comdat) subspaces.
43 * config/pa/som.h (SUPPORTS_SOM_COMDAT): New define.
44 (SUPPORTS_ONE_ONLY): True if SUPPORTS_WEAK or SUPPORTS_SOM_COMDAT are
46 (MAKE_DECL_ONE_ONLY): Place uninitialized variables in common.
48 2004-12-14 Ian Lance Taylor <ian@wasabisystems.com>
50 * combine.c (combine_validate_cost): Consider cost of
51 undobuf.other_insn rather than always allowing the recombination
54 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
56 * pa-host.c (MAP_FAILED): Define if not defined.
57 (pa_gt_pch_use_address): Handle short reads.
59 2004-12-14 Richard Henderson <rth@redhat.com>
62 * config/i386/i386.c (x86_use_bt): New.
63 (ix86_expand_unary_operator): Use MEM_P.
64 (ix86_expand_fp_absneg_operator): New.
65 * config/i386/i386.h (x86_use_bt): Declare.
67 * config/i386/i386-protos.h: Update.
68 * config/i386/i386.md (negsf2): Use ix86_expand_fp_absneg_operator.
69 (negdf2, negxf2, abssf2, absdf2, absxf2): Likewise.
70 (negsf2_memory, negsf2_ifs, negsf2_if, negdf2_memory, negdf2_ifs,
71 negdf2_ifs_rex64, negdf2_if, negdf2_if_rex64, negxf2_if,
72 abssf2_memory, abssf2_ifs, abssf2_if, absdf2_memory, absdf2_ifs,
73 absdf2_ifs_rex64, absdf2_if, absxf2_if): Remove.
74 (absnegsf2_mixed, absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed,
75 absnegdf2_sse, absnegdf2_i387, absnegxf2_i387): New. Merge all
76 neg and abs splitters. Handle DFmode in general regs in 64-bit mode.
77 (negextendsfdf2, absextendsfdf2): Disable for non-mixed sse math.
78 (btsq, btrq, btcq): New. Add peepholes as well.
79 (movv4sf_internal splitter): Postpone til after reload.
80 (movv2di_internal splitter): Likewise.
81 * config/i386/predicates.md (const_0_to_63_operand): New.
82 (absneg_operator): New.
84 2004-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86 * pa.h (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_FP_P):
87 Check register number and that reg_renumber is nonzero before using it.
89 2004-12-14 Steve Ellcey <sje@cup.hp.com>
91 * doc/invoke.texi (IA-64 options): Add existing options that
92 weren't already listed.
94 2004-12-14 Jeff Law <law@redhat.com>
96 * tree-outof-ssa.c (coalesce_abnormal_edges): Pass the correct target
97 partition to conflict_graph_merge_regs.
99 2004-12-14 Uttam Pawar <uttamp@us.ibm.com>
100 Janis Johnson <janis187@us.ibm.com>
102 * rs6000.c (rs6000_handle_altivec_attribute_tree): Report errors
103 for vector types with invalid component types.
105 2004-12-14 Jakub Jelinek <jakub@redhat.com>
108 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2,
109 expand_builtin_mathfn_3): Avoid using arguments passed to
110 save_expr after that call.
112 * fold-const.c (fold_single_bit_test): If flag_syntax_only, pretend
113 LOAD_EXTEND_OP is not defined.
114 (fold): Likewise. If flag_syntax_only, don't depend on BITS_PER_WORD.
116 2004-12-14 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
118 * tree.def, doc/c-tree.texi: Correctly document restrictions on the
121 2004-12-14 Kazu Hirata <kazu@cs.umass.edu>
123 * expr.h (expand_modifier): Define EXPAND_STACK_PARM as 1.
125 2004-12-14 Richard Earnshaw <rearnsha@arm.com>
128 arm-cores.def (arm926ej-s, arm1026ej-s, arm1136j-s, arm1136-jfs)
129 (arm1176jz-s, arm1176jzf-s, mpcorenovfp, mpcore): Add load-scheduling
132 2004-12-14 Diego Novillo <dnovillo@redhat.com>
134 * tree-gimple.c (get_base_address): Update documentation.
136 2004-12-13 Richard Henderson <rth@redhat.com>
139 * passes.c (rest_of_clean_state): Fix computation of
140 preferred_incoming_stack_boundary.
142 2004-12-13 Wolfgang Bangerth <bangerth@dealii.org>
144 * reload.h: Remove struct needs and its only use.
146 2004-12-13 Roger Sayle <roger@eyesopen.com>
148 PR rtl-optimization/18928
149 * simplify_rtx.c (plus_minus_operand_p): New function to encode
150 the test for suitable operands for calls to simplify_plus_minus.
151 Only allow (CONST (PLUS x y)) if both x and y are CONSTANT_P.
152 (simplify_binary_operation): Use plus_minus_operand_p.
154 2004-12-13 Alexandre Oliva <aoliva@redhat.com>
157 * tree-inline.c (setup_one_parameter): Don't directly map a
158 parameter to the address of another variable of the same
161 2004-13-12 Steven Bosscher <stevenb@suse.de>
163 * basic-block.h (PROP_POSTRELOAD): Do not include PROP_AUTOINC, we
164 can never create autoinc insns after reload.
166 2004-12-13 Jeff Law <law@redhat.com>
167 Kazu Hirata <kazu@cs.umass.edu>
169 * tree-ssa-dom.c (thread_across_edge): Do not thread jumps if a
170 PHI argument is set from a PHI_RESULT in the same block and the
171 PHI argument is not the same as the PHI result.
173 2004-12-13 David Edelsohn <edelsohn@gnu.org>
175 * xcoffout.c (xcoffout_declare_function): Always strip storage
178 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
181 * config/darwin.c (darwin_assemble_visibility): Fix minor diagnostic
182 problem, adding a space at the end of the string before concatenation.
184 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
186 * c-common.c (fname_as_string): Free namep if we are returning
189 * tree-ssa-dom.c (record_edge_info): Fix memory leak.
191 2004-12-13 Andrew Pinski <pinskia@physics.uc.edu>
193 * tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
195 2004-12-13 Kazu Hirata <kazu@cs.umass.edu>
197 * tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
198 doing a pointer comparison.
200 * tree-ssa-dom.c (record_equivalences_from_phis): Add a
203 * defaults.h, stmt.c, tree-cfg.c, tree-ssa-dce.c: Fix comment
206 2004-12-13 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
208 * config/m32r/t-linux (SHLIB_MAPFILES): Add libgcc-glibc.ver to
209 the list rather than replacing the existing value.
211 2004-12-13 Richard Henderson <rth@redhat.com>
213 * cfg.c (dump_flow_info): Don't dump pseudo info after reload.
215 2004-12-13 Richard Henderson <rth@redhat.com>
217 * Makefile.in (insn-preds.o): Depend on REGS_H.
218 * genpreds.c (write_insn_preds_c): Include regs.h.
219 * config/i386/predicates.md (index_register_operand): Use
220 REG_OK_FOR_INDEX_STRICT_P and REG_OK_FOR_INDEX_NONSTRICT_P.
222 * config/i386/i386.h (REG_CLASS_FROM_LETTER): Add 'l'.
223 * config/i386/i386.md (lea_general_1, lea_general_1_zext,
224 lea_general_2, lea_general_2_zext, lea_general_3, lea_general_3_zext,
225 adddi_1_rex64, addsi_1, addsi_1_zext, addhi_1_lea, addqi_1_lea,
226 ashldi3_1_rex64, ashlsi3_1, ashlsi3_1_zext, ashlhi3_1_lea,
227 ashlqi3_1_lea): Use 'l' for index register operand.
228 (ashldi3_1_rex64 splitter): Use index_register_operand.
229 (ashlsi3_1 splitter): Be more careful with modes.
231 2004-12-13 Danny Smith <dannysmith@users.sourceforge.net>
234 * defaults.h (TARGET_USE_JCR_SECTION): New macro.
235 * doc/tm.texi (TARGET_USE_JCR_SECTION): Document it.
236 * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Override
239 2004-12-13 Uros Bizjak <uros@kss-loka.si>
243 * config/i386/i386.md (sse_movss, sse2_movsd, sse2_movhpd):
244 Fix wrong vec_merge selector bitmask.
246 2004-12-12 Richard Henderson <rth@redhat.com>
249 * reg-stack.c (move_nan_for_stack_reg): New.
250 (subst_stack_regs_pat): Use it.
251 (move_for_stack_reg): Handle source register not live with a nan.
253 2004-12-12 Richard Henderson <rth@redhat.com>
255 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatch
256 errors across operations.
258 2004-12-12 Di-an Jan <dianj@freeshell.org>
260 * doc/passes.texi (Pass Manager): Correct list of source files.
262 2004-12-12 Richard Henderson <rth@redhat.com>
264 * expr.c (emit_move_change_mode): New.
265 (emit_move_via_alt_mode): Use it.
267 2004-12-12 Nathanael Nerode <neroden@gcc.gnu.org>
268 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
271 * dojump.c (do_compare_and_jump): Only canonicalize function pointers
272 in a comparison if both sides are function pointers.
274 2004-12-12 Richard Henderson <rth@redhat.com>
277 * config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
278 and compare_operator to propagate the input CC mode to the output.
279 * config/i386/predicates.md (compare_operator): New.
281 2004-12-12 Andrew Pinski <pinskia@physics.uc.edu>
284 * expr.c (get_inner_reference): Remove NON_LVALUE_EXPR, NOP_EXPR,
286 (handled_component_p): Likewise.
288 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
290 * reg-stack.c (convert_regs_2): Free stack.
292 * tree-ssa-dom.c (thread_across_edge, dom_opt_finalize_block): Fix
295 2004-12-12 Daniel Berlin <dberlin@dberlin.org>
297 * tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
298 * tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real
301 2004-12-12 Diego Novillo <dnovillo@redhat.com>
303 * tree-gimple.c (get_base_address): Update documentation.
305 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
307 * lcm.c (optimize_mode_switching): Free ptr even when mode_set
310 2004-12-12 Roger Sayle <roger@eyesopen.com>
312 * reg-stack.c (change_stack): Avoid placing the new top-of-stack in
313 its correct location during popping if we need to permute the stack
314 afterwards. Attempt to preserve the original stack ordering.
316 2004-12-12 Kazu Hirata <kazu@cs.umass.edu>
318 * lcm.c (optimize_mode_switching): Free insert and delete in
321 2004-12-11 David Edelsohn <edelsohn@gnu.org>
322 Ulrich Weigand <uweigand@de.ibm.com>
325 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Reload all
326 constants into all register classes intersecting with FLOAT_REGS
328 * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Same.
329 * config/rs6000/rs6000.md (movdi_internal32): Ignore FPRs when
330 choosing register preferences.
331 (movdi_internal64): Same.
333 2004-12-11 Kazu Hirata <kazu@cs.umass.edu>
335 * tree-into-ssa.c (rewrite_ssa_into_ssa): Free SSA_NAME_AUX
336 before we release an SSA_NAME.
338 2004-12-11 Roger Sayle <roger@eyesopen.com>
341 * fold-const.c (fold_unwidened_comparison): Use omit_one_operand
342 instead of constant_boolean_node as arg0 may have side-effects.
344 2004-12-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
346 * pa-host.c (pa_gt_pch_use_address): Use lseek and read to copy PCH
347 file to anonymous private map.
349 2004-12-10 Roger Sayle <roger@eyesopen.com>
353 * dojump.c (do_jump): When attempting to reverse the effects of
354 fold_single_bit_test, we need to STRIP_NOPS and narrowing type
355 conversions, and handle BIT_XOR_EXPR that's used to invert the
356 sense of the single bit test.
358 2004-12-10 Devang Patel <dpatel@apple.com>
361 * gcc.c (main): Do not break out of loop when error is reported while
362 processing one source file.
364 2004-12-10 Diego Novillo <dnovillo@redhat.com>
366 * tree-into-ssa.c (REWRITE_THIS_STMT): Define.
367 (mark_def_sites): Clear REWRITE_THIS_STMT for statements that
368 don't need any operands rewritten.
369 (rewrite_stmt): Ignore statements that don't need to be
371 (rewrite_operand): Validate that an existing SSA_NAME is
372 identical to the current reaching definition of the operand.
374 2004-12-10 Diego Novillo <dnovillo@redhat.com>
376 * tree-dfa.c (mark_call_clobbered_vars_to_rename): New function.
377 * tree-vectorizer.c (vectorizable_load): Call it.
378 * tree-flow.h (mark_call_clobbered_vars_to_rename): Declare.
379 * tree-sra.c (mark_all_v_defs): Also mark VUSEs for renaming.
381 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
383 * regmove.c (combine_stack_adjustments_for_block): Free
384 memlist if it hasn't been freed.
386 2004-12-10 Ziemowit Laski <zlaski@apple.com>
388 * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
389 pointer field is set before dereferencing it.
391 2004-12-10 Andrew Pinski <pinskia@physics.uc.edu>
394 * tree-cfg.c (remove_bb): Put the moved label at the beginning
397 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
399 * tree-data-ref.c (free_data_refs): Free each data_reference
402 * tree-ssa-dom.c (thread_across_edge): Speed up by avoiding a
403 call to is_gimple_min_invariant if we know the result.
405 2004-12-10 Jeff Law <law@redhat.com>
407 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
408 redundant test of v_ann->mem_tag_kind.
410 * tree-ssa-operands.c (get_indirect_ref_operands): Remove
411 redundant conditional clearing opf_kill_def.
413 2004-12-10 Richard Sandiford <rsandifo@redhat.com>
415 * config/frv/frv-modes.def: Fix comment typos.
416 (CC_NZ): Define new mode.
417 * config/frv/frv-protos.h (frv_select_cc_mode): Declare.
418 (condexec_intop_cmp_operator): Delete.
419 * config/frv/frv.c (comparison_string): New function.
420 (frv_print_operand): Use it to handle 'c' and 'C'.
421 (relational_operator): Redefine in terms of integer_relational_operator
422 and float_relational_operator.
423 (signed_relational_operator, unsigned_relational_operator): Delete.
424 (integer_relational_operator): New predicate, combining the above.
425 Check the mode of the first operand but leave frv.md to check the rest.
426 (float_relational_operator): Just check the mode of the first operand
427 and leave frv.md to check the rest.
428 (intop_compare_operator): Assume the result is compared with zero
429 in mode CC_NZmode. Allow PLUS and MINUS. Leave frv.md to check
430 the operand predicates.
431 (condexec_intop_cmp_operator): Delete.
432 (frv_ifcvt_modify_tests, frv_ifcvt_modify_multiple_tests)
433 (frv_hard_regno_mode_ok): Handle CC_NZmode.
434 (frv_select_cc_mode): New function.
435 * config/frv/frv.h (SELECT_CC_MODE): Use frv_select_cc_mode.
436 (REVERSIBLE_CC_MODE): Include CC_NZmode.
437 (PREDICATE_CODES): Replace entries for signed_relational_operand and
438 unsigned_relational_operator with one for integer_relational_operator.
439 Delete entry for condexec_intop_cmp_operator.
440 * config/frv/frv.md (movcc_nz, *internal_movcc_nz, reload_incc_nz)
441 (reload_outcc_nz, *cmpsi_cc_nz, *cond_exec_cmpsi_cc_nz): New patterns.
442 (*combo_intop_compare2, *combo_intop_compare4): Delete.
443 (*combo_intop_compare1): Change mode to CC_NZ.
444 (*combo_intop_compare2): Likewise. Renamed from *combo_intop_compare3.
445 (branch_{un,}signed_true, branch_{un,}signed_false)
446 (*scc_{un,}signed, *scc_neg1_{un,}signed, *ck_{un,}signed)
447 (*movqicc_internal1_{un,}signed, *movqicc_internal2_{un,}signed)
448 (*movhicc_internal1_{un,}signed, *movhicc_internal2_{un,}signed)
449 (*movsicc_internal1_{un,}signed, *movsicc_internal2_{un,}signed)
450 (*movsfcc_has_fprs_{un,}signed, *movsfcc_no_fprs_{un,}signed)
451 (*return_{unsigned_,}true, *return_{unsigned_,}false): Merge these
452 pattern pairs. Use integer_relational_operator. Remove mode from
455 2004-12-10 Mark Dettinger <dettinge@de.ibm.com>
457 * config/s390/s390.c (struct processor_costs): New fields ml,
459 (s390_rtx_costs): Added the missing handling of multiply & add,
460 square root, and umulsidi.
462 2004-12-10 Kazu Hirata <kazu@cs.umass.edu>
464 * expmed.c (synth_mult): Initialize new_limit.latency before
465 making a recursive call.
467 2004-12-10 Nick Clifton <nickc@redhat.com>
469 * config/mn10300/mn10300.c (legitimate_address_p): Reject address
470 whose index is itself the sum of two other parts.
472 2004-12-10 Alan Modra <amodra@bigpond.net.au>
474 * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
476 2004-12-10 Uros Bizjak <uros@kss-loka.si>
478 * config/i386/i386.md (*cmpfp_sf): Change type attribute to "multi".
480 2004-12-09 Richard Henderson <rth@redhat.com>
483 * attribs.c (decl_attributes): Use relayout_decl.
484 * c-common.c (handle_mode_attribute): Copy all relevant type
485 parameters from the new underlying integral type.
487 2004-12-09 Richard Henderson <rth@redhat.com>
489 * c-common.c (shorten_compare): Don't special-case min/maxval
492 2004-12-09 Richard Sandiford <rsandifo@redhat.com>
494 * simplify-rtx.c (simplify_subreg): In the CONCAT case, check whether
495 the request subreg is entirely contained in the requested component.
496 (simplify_gen_subreg): Return null for CONCATs that are rejected
498 * expmed.c (store_bit_field): Create a temporary when changing the
499 value to an integer mode.
501 2004-12-09 David Edelsohn <edelsohn@gnu.org>
503 * real.c (ibm_extended): Correct comment.
505 2004-12-09 Stan Shebs <shebs@apple.com>
507 * config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
508 formerly in darwin-tramp.asm.
509 * config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
510 * config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
511 * config/rs6000/t-darwin: Add dependencies.
513 2004-12-09 Richard Henderson <rth@redhat.com>
516 * config/i386/i386.md (testqi_1_maybe_si, andqi_2_maybe_si): New.
517 (test_qi_1, andqi_2): Do not promote to simode.
519 2004-12-09 Andrew Pinski <pinskia@physics.uc.edu>
522 * tree-chrec.c (chrec_convert): Use fold_convert
525 2004-12-09 Matt Rice <ratmice@yahoo.com>
527 PR preprocessor/18102
528 * c-incpath.c (remove_duplicates): Check for construct
531 2004-12-09 Dorit Naishlos <dorit@il.ibm.com>
533 * genopinit.c (vec_realign_store_optab): Initialization removed.
534 * optabs.c (optab_for_tree_code): REALIGN_STORE_EXPR case removed.
535 * optabs.h (optab_index): OTI_vec_realign_store Removed.
536 (vec_realign_store_optab): Removed.
537 * target-def.h (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Removed.
538 * target.h (builtin_mask_for_store): Removed.
539 * tree.def (REALIGN_STORE_EXPR): Removed.
540 * config/rs6000/rs6000.c (rs6000_builtin_mask_for_store): Removed.
541 (altivec_builtin_mask_for_store): Removed.
542 (altivec_init_builtins): Removed initialization of
543 altivec_builtin_mask_for_store.
545 * doc/tm.texi (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
546 (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): New.
548 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
550 * tree.def (SET_TYPE): Remove.
551 (CONSTRUCTOR): Update description.
552 * builtins.c (type_to_class) Remove SET_TYPE case.
553 * dbxout.c (dbxout_type): Likewise.
554 * dwarf2out.c (is_base_type): Likewise.
555 (gen_set_type_die): Remove.
556 (gen_type_die): Remove SET_TYPE case.
557 * expr.c (count_type_elements): Likewise.
558 (mostly_zeroes_p): Likewise.
559 (store_constructor): Likewise.
560 * print_tree.c (print_node): Likewise.
561 * stor-layout.c (layout_type): Likewise.
562 * tree-browser.c (browse_tree): Likewise.
563 * tree-inline.c (remap_type): Likewise.
564 * tree-pretty-print.c (dump_generic_node): Likewise.
565 * tree.c (type_contains_plaeholder_1, type_hash_eq,
566 variably_modified_type_p, initializer_zerop): Likewise.
567 * tree.h (SET_OR_ARRAY_CHECK): Remove.
568 (AGGREGATE_TYPE_P): Remove SET_TYPE check.
569 (TYPE_DOMAIN): Use ARRAY_TYPE_CHECK.
570 * typeclass.h (enum type_class): Remove set_type_class.
571 * varasm.c (const_hash_1): Remove SET_TYPE case.
572 (compare_constant, copy_constant, output_constant): Likewise.
573 * config/i386/i386.c (classify_argument): Likewise.
574 * config/ia64/ia64.c (hfa_element_mode): Likewise.
575 * config/sparc/sparc.c (sparc_type_code): Likewise.
578 * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case.
580 2004-12-08 Richard Henderson <rth@redhat.com>
582 * config/i386/i386.md: Use FLAGS_REG everywhere.
584 2004-12-08 Eric Christopher <echristo@redhat.com>
586 * config/mips/mips.c (mips_scalar_mode_supported_p): Rewrite
587 to avoid call to default function.
589 2004-12-08 Zack Weinberg <zack@codesourcery.com>
592 * varasm.c (pending_assemble_externals): New static.
593 (assemble_external_real): Meat of assemble_external split out
594 to this new function.
595 (process_pending_assemble_externals): New function.
596 (assemble_external): Use gcc_assert. If flag_unit_at_a_time
597 is true and the basic test passes, merely cons the decl onto
598 the pending list to be handled later.
599 * tree.h: Declare process_pending_assemble_externals.
600 * cgraphunit.c (cgraph_optimize): Call it.
602 * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL.
604 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
606 * cfgloopmanip.c (create_preheader): Speed up by "unrolling"
607 and simplifying FOR_EACH_EDGE.
609 2004-12-08 Richard Sandiford <rsandifo@redhat.com>
611 * config/frv/frv.c (frv_sort_insn_group): Always initialize
614 2004-12-08 Nathan Sidwell <nathan@codesourcery.com>
617 * gimplify.c (canonicalize_addr_expr): Cope with array of
619 (gimplify_conversion): Remove redundant checks.
621 * doc/trouble.texi (Non-bugs): Clarify empty loop removal.
623 2004-12-08 Uros Bizjak <uros@kss-loka.si>
625 * config/i386/i386.c (output_387_binary_op,
626 ix86_prepare_fp_compare_args): Fix is_sse condition.
628 2004-12-07 Uros Bizjak <uros@kss-loka.si>
630 * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
633 * config/i386/i386.c (output_fp_compare): Fix is_sse condition.
634 Use EFLAGS_P only when fcomi insn should be used. Fix handling
635 of eflags_p variable. Change alt table accordingly. For non-fcomi
636 compare insn always use trailing fnstsw insn. Fix intmode
637 calculation for ficom insn.
638 (ix86_split_fp_branch): Add "rtx pushed" as new parameter. Call
639 ix86_free_from_memory when "pushed" is specified.
640 (ix86_expand_branch): Change call to ix86_split_fp_branch.
642 * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, *cmpfp_0_xf):
643 Change eflags_p parameter in call to output_fp_compare.
644 (*cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf): Remove.
645 (*cmpfp_2_sf_1, *cmpfp_2_df_1, *cmpfp_2_xf_1): Rename to
646 *cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf. Change eflags_p
647 parameter in call to output_fp_compare.
648 (*cmpfp_2_u): Remove.
649 (*cmpfp_2_u_1): Rename to *cmpfp_2_u. Change eflags_p parameter
650 in call to output_fp_compare.
651 (*ficom_1): Remove insn definition and corresponding define_split.
652 (*cmpfp_si): New insn definition.
653 (*fp_jcc_8): New insn definition. Add new splitters for
654 "memory_operand" and "register_operand".
655 (define_split): Add new parameter in call to ix86_split_fp_branch.
657 config/i386/predicates.md (float_operator): New predicate.
659 2004-12-08 Kazu Hirata <kazu@cs.umass.edu>
661 * c-common.c (verify_tree): Don't check code length if we know
662 we are handling tcc_unary.
663 * print_tree.c (print_node): Remove code to handle RTL
664 appearing as a part of a tree node.
665 * tree-gimple.c (recalculate_side_effects): Rename fro as len.
666 * tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
667 (PROCESS_ARG): Don't refer to fro.
668 (build2_stat, build3_stat, build4_stat): Don't compute fro.
670 2004-12-07 Roger Sayle <roger@eyesopen.com>
673 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
674 (expand_mult): Special case powers of two to avoid synth_mult.
675 * loop.c (product_cheap_p): Handle case where expand_mult does
676 require/generate any instructions (i.e. multiplication by zero).
678 2004-12-07 Richard Henderson <rth@redhat.com>
680 * tree-pretty-print.c (dump_array_domain): Split out from
681 dump_generic_node; fix off-by-one error on zero-based array bounds.
682 (dump_generic_node): Use it.
683 (print_declaration): Likewise.
685 2004-12-08 Richard Guenther <richard.guenther@uni-tuebingen.de>
687 * doc/invoke.texi: Adjust default values for
688 large-function-growth and inline-unit-growth to match
689 params.def. Clarify used algorithm.
691 2004-12-07 David Mosberger <davidm@hpl.hp.com>
694 * config/ia64/ia64.c (ia64_assemble_integer): Add support for
695 emitting unaligned pointer-sized integers.
697 2004-12-07 Steven Bosscher <stevenb@suse.de>
700 * c-typeck.c (c_start_case): Set orig_type to error_mark_node
701 when the type of the controlling expression is not a valid type.
703 2004-12-07 Steven Bosscher <stevenb@suse.de>
705 PR tree-optimization/17340
706 * tree-ssa-pre.c (compute_antic): Fix comment.
707 (compute_avail): Do not recurse, instead do a DFS using a stack
709 (execute_pre): Adjust.
711 2004-12-07 Ziemowit Laski <zlaski@apple.com>
713 * c-tree.h (struct lang_type): Rename 'objc_protocols' field
716 2004-12-07 Eric Christopher <echristo@redhat.com>
719 * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
721 2004-12-07 Eric Christopher <echristo@redhat.com>
723 * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
725 * config/mips/mips.c: ... here. Make static.
727 2004-12-07 Eric Christopher <echristo@redhat.com>
730 * config/mips/mips.c (mips_vector_mode_supported_p): New function.
731 (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
733 2004-12-07 Kazu Hirata <kazu@cs.umass.edu>
735 * c-common.c, expr.c, fold-const.c, print-tree.c,
736 tree-gimple.c, tree-inline.c, tree-pretty-print.c,
737 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
738 first_rtl_op with TREE_CODE_LENGTH.
739 * tree.c (first_rtl_op): Remove.
740 Replace uses of first_rtl_op with TREE_CODE_LENGTH.
741 * tree.h: Remove the prototype for first_rtl_op.
743 2004-12-07 David Edelsohn <edelsohn@gnu.org>
745 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
746 Revert 2004-12-01 change.
748 2004-12-06 Ziemowit Laski <zlaski@apple.com>
750 * c-tree.h (struct lang_type): Add 'objc_protocols' field.
752 2004-12-06 DJ Delorie <dj@redhat.com>
754 * reload.c (find_valid_class): Fix logic to test inner mode as well.
755 (push_reload): Pass inner mode.
757 2004-12-06 Eric Christopher <echristo@redhat.com>
759 * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
761 2004-12-06 Aldy Hernandez <aldyh@redhat.com>
763 * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
765 2004-12-06 Zdenek Dvorak <dvorakz@suse.cz>
766 Kazu Hirata <kazu@cs.umass.edu>
768 PR tree-optimization/18601
769 * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
770 (tree_forwarder_block_p): Do not consider blocks that are its own
771 successors forwarders.
772 (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
773 (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
775 * tree-flow.h (bb_ann_d): Remove forwardable.
777 2004-12-06 Kazu Hirata <kazu@cs.umass.edu>
779 * expr.c (expand_expr_real_1): Remove an "if" whose condition
782 2004-12-06 Roger Sayle <roger@eyesopen.com>
784 * c-gimplify.c (gimplify_c_loop): Improve initial implementations
785 for loops whose conditions are known at compile-time.
786 * gimplify.c (append_to_statement_list_1): Remove side_effects
787 parameter, this function should never be called if its false.
788 (append_to_statement_list): Only call append_to_statement_list_1
789 if t is non-NULL tree with side-effects.
790 (append_to_statement_list_force): Likewise, if t is not NULL.
792 2004-12-06 J"orn Rennecke <joern.rennecke@st.com>
794 * bt-load.c (btr_def_s): New member own_end;
795 (add_btr_to_live_range): Add second parameter. Changed caller.
796 (clear_btr_from_live_range): Clear btrs_live_at_end bit
797 for the register its definition basic block if own_end is set.
798 (augment_live_range): Also take btrs_live_at_end into account.
799 (combine_btr_defs): Don't bother with
800 other_def->other_btr_uses_after_use if it pertains to a different
802 (move_btr_def): Set def->other_btr_uses_before_def after
803 calling combine_btr_defs."
805 * bt-load.c (augment_live_range): New argument full_range.
808 * bt-load.c (move_tr_def): Set other_tr_uses_before_def
809 taking new btr assignment into account.
811 2004-12-05 Daniel Berlin <dberlin@dberlin.org>
813 * tree-ssa-alias.c (create_global_var): Use void_type_node,
816 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
818 * expr.c (expand_expr_real_1): Abort on COND_EXPR of
821 2004-12-05 Richard Henderson <rth@redhat.com>
824 * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
825 (builtin_setjmp_receiver_er_sl_1): Use it.
826 (builtin_setjmp_receiver_er_1): Likewise.
827 (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
828 (builtin_setjmp_receiver): Don't split for explicit relocs until
830 (exception_receiver): Likewise.
832 2004-12-05 Andrew Pinski <pinskia@physics.uc.edu>
834 * mklibgcc.in (vis_hide): Add the prototype for the test.
836 2004-12-05 Roger Sayle <roger@eyesopen.com>
838 * c-typeck.c (c_finish_loop): Improve initial implementations
839 for loops whose conditions are known at compile-time.
841 2004-12-05 Kazu Hirata <kazu@cs.umass.edu>
843 * builtins.c: Fix comment typos.
845 2004-12-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
848 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
849 the first/last insn is a sequence, return the first/last insn of the
853 * mklibgcc.in (vis_hide): Use implementation instead of declaration
856 2004-12-04 Richard Henderson <rth@redhat.com>
858 * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
859 use ofs in BWX two byte special case.
860 (alpha_expand_unaligned_store): Likewise.
862 2004-12-04 Kazu Hirata <kazu@cs.umass.edu>
864 * gcse.c (gcse_main): Add a comment.
866 2004-12-04 Andrew Pinski <pinskia@physics.uc.edu>
869 * builtins.c (fold_builtin_next_arg): Export and return true
870 when there is a warning or an error.
871 (expand_builtin_va_start): When fold_builtin_next_arg returns true,
873 (expand_builtin): Likewise.
874 * gimplify.c (gimplify_call_expr): Error out if there is not
875 enough arguments to va_start. Call fold_builtin_next_arg also
876 on the second argument.
877 * tree.h (fold_builtin_next_arg): Prototype.
879 2004-12-04 Alan Modra <amodra@bigpond.net.au>
881 * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
882 Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
883 SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
884 * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
885 shlib_dir and shlib_so_name.
886 * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
887 * config/t-libunwind-elf (SHLIB_NAME): Likewise.
888 * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
889 * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
890 * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
891 (SHLIB_LINK): Don't use shlib_dir when creating symlink.
893 2004-12-03 Roger Sayle <roger@eyesopen.com>
895 * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
897 2004-12-03 Richard Henderson <rth@redhat.com>
899 * alias.c (component_uses_parent_alias_set): Rename from
900 can_address_p. Return bool. Reverse the sense of the result.
901 Reinstate the check for alias set zero.
902 (get_alias_set): Update to match.
903 * alias.h (component_uses_parent_alias_set): Likewise.
904 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
905 * expr.c (expand_assignment): Likewise.
906 * expr.h: Remove commented out prototypes that were moved to alias.h.
908 2004-12-03 Richard Henderson <rth@redhat.com>
910 * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
911 (TARGET_CANNOT_FORCE_CONST_MEM): New.
913 2004-12-04 Alan Modra <amodra@bigpond.net.au>
916 * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
918 * sched-ebb.c (schedule_ebb): Likewise.
920 2004-12-03 Andreas Schwab <schwab@suse.de>
922 * Makefile.in (HOSTHOOKS_DEF_H): Define.
923 (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
924 (host-default.o): Likewise.
926 2004-12-03 Eric Christopher <echristo@redhat.com>
928 * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
929 pophi): Add number of arguments to name so that the
930 pattern is recognized as a named pattern.
932 2004-12-03 Janis Johnson <janis187@us.ibm.com>
934 * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
936 2004-12-03 Andreas Tobler <a.tobler@schweiz.ch>
938 * config/rs6000/rs6000.c (rs6000_override_options): Protect
939 darwin_one_byte_bool with #if.
941 2004-12-03 Paolo Bonzini <bonzini@gnu.org>
943 * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
945 2004-12-03 H.J. Lu <hongjiu.lu@intel.com>
947 * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
949 2004-12-03 Richard Sandiford <rsandifo@redhat.com>
951 * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
952 Set libstdcxx_incdir directly.
953 * configure: Regenerate.
955 2004-12-03 Kazu Hirata <kazu@cs.umass.edu>
957 * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
958 "if" whose condition is always true.
960 * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
963 2004-12-02 Stan Shebs <shebs@apple.com>
965 * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
966 Darwin default to one-byte bools.
968 2004-12-02 Richard Henderson <rth@redhat.com>
971 * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
973 2004-12-03 Ben Elliston <bje@au.ibm.com>
975 * doc/cfg.texi (Edges): Update. Document the edge_iterator data
976 type and its methods.
978 2004-12-02 Richard Henderson <rth@redhat.com>
980 * expr.c (write_complex_part): Use simplify_gen_subreg when the
981 submode is at least as large as a word.
982 (read_complex_part): Likewise.
984 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
987 * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
988 multilib at a time. Don't build the default set. Don't add
989 EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
990 filter for shared libunwind and libgcc.
992 2004-12-02 Roger Sayle <roger@eyesopen.com>
995 * config/i386/i386.c (override_options): If -fomit-frame-pointer has
996 already been specified, ignore the -momit-leaf-frame-pointer option.
998 2004-12-02 H.J. Lu <hongjiu.lu@intel.com>
1000 * varasm.c (make_decl_rtl): Add the missing `;'.
1002 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1004 * tree.c (is_attribute_p): Split out to ..
1005 (is_attribute_with_length_p): Here. Use IDENTIFIER_LENGTH instead
1006 of strlen and compare the string lengths before calling strcmp.
1007 (lookup_attribute): Call is_attribute_with_length_p instead of
1010 2004-12-02 Devang Patel <dpatel@apple.com>
1012 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
1013 * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
1014 * config/i386/darwin.h (CC1_SPEC): Same.
1016 2004-12-02 Richard Henderson <rth@redhat.com>
1018 * optabs.c (lowpart_subreg_maybe_copy): New.
1019 (expand_unop, expand_abs_nojump): Use it.
1021 2004-12-02 J"orn Rennecke <joern.rennecke@st.com>
1023 * sh.md (extv, extzv): Add pattern predicate.
1025 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1027 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1030 * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
1033 * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
1035 2004-12-02 Jeff Law <law@redhat.com>
1037 * tree-eh.c: Revert yesterday's change.
1039 2004-12-02 Andrew Pinski <pinskia@physics.uc.edu>
1041 * varasm.c (decode_reg_name): Revert change to check for zero
1043 (make_decl_rtl): Make sure that we call decode_reg_name only
1046 2004-12-02 Dorit Naishlos <dorit@il.ibm.com>
1049 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
1050 then and else labels.
1052 2004-12-02 Andreas Schwab <schwab@suse.de>
1054 * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
1055 (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
1056 (STAGE2_FLAGS_TO_PASS): Likewise.
1058 * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
1060 2004-12-02 Richard Sandiford <rsandifo@redhat.com>
1062 * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version. Remove
1063 now-redundant AC_SUBSTs.
1064 * aclocal.m4: Include ../config/gcc-version.m4.
1065 * configure: Regenerate.
1067 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1069 * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
1070 #ifdef RELOCATABLE_NEEDS_FIXUP.
1072 2004-12-01 Roger Sayle <roger@eyesopen.com>
1075 * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
1076 Intel assembler syntax by using %A1 instead of %*%1.
1078 2004-12-01 Richard Henderson <rth@redhat.com>
1080 * expr.c (expand_assignment): Handle CONCAT both as a final
1081 destination and as a middle point.
1083 2004-12-01 Jeff Law <law@redhat.com>
1085 * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
1086 (honor_protect_cleanup_actions): Only create save_eptr and
1087 save_filt if they do not already exist.
1088 (lower_eh_constructs): Wipe all knowledge of save_eptr and
1089 save_filt before returning.
1091 2004-12-02 Kazu Hirata <kazu@cs.umass.edu>
1093 * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
1095 2004-12-02 Alan Modra <amodra@bigpond.net.au>
1098 * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
1099 #ifdef RELOCATABLE_NEEDS_FIXUP with if.
1100 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
1101 of target_flags_explicit.
1102 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
1103 case. Define as 0 for non-biarch.
1105 2004-12-01 Zack Weinberg <zack@codesourcery.com>
1107 * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
1108 Change temporary file tag from a prefix to an infix.
1110 2004-12-02 Andreas Schwab <schwab@suse.de>
1112 * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
1114 2004-12-01 Andrew Pinski <pinskia@physics.uc.edu>
1118 * tree-ssa-alias.c (init_alias_info): Get statement operands for all
1119 the statements if aliases_computed_p is true.
1121 2004-12-01 Mark Mitchell <mark@codesourcery.com>
1123 * Makefile.in (WERROR): New variable.
1124 (STRICT2_WARN): Use it.
1125 (STAGE2_FLAGS_TO_PASS): Likewise.
1126 * config/i386/x-mingw32 (WERROR): Add -Wno-format.
1128 2004-12-01 Richard Henderson <rth@redhat.com>
1130 * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
1133 2004-12-01 Diego Novillo <dnovillo@redhat.com>
1135 PR tree-optimization/18291
1136 * tree-ssa-copy.c (merge_alias_info): Fix merging of
1137 flow-sensitive alias information. If the new pointer has no
1138 name tag, copy it from the original pointer. Otherwise, make
1139 sure that the pointed-to sets have a common intersection.
1141 2004-12-01 Richard Henderson <rth@redhat.com>
1144 * emit-rtl.c (gen_complex_constant_part): Remove.
1145 (gen_realpart, gen_imagpart): Remove.
1146 * rtl.h (gen_realpart, gen_imagpart): Remove.
1147 * expmed.c (extract_bit_field): Remove CONCAT hack catering to
1148 gen_realpart/gen_imagpart.
1149 * expr.c (write_complex_part, read_complex_part): New.
1150 (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
1151 emit_move_complex_push, emit_move_complex, emit_move_ccmode,
1152 emit_move_multi_word): Split out from ...
1153 (emit_move_insn_1): ... here.
1154 (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
1155 <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
1156 * function.c (assign_parm_setup_reg): Hard-code transformations
1157 instead of using gen_realpart/gen_imagpart.
1159 * expr.c (optimize_bitfield_assignment_op): Split out from ...
1160 (expand_assignment): ... here. Use handled_component_p to gate
1161 get_inner_reference code. Simplify MEM handling. Special case
1162 CONCAT destinations.
1164 * expmed.c (store_bit_field): Use simplify_gen_subreg instead
1165 of gen_rtx_SUBREG directly.
1167 2004-12-01 David Edelsohn <edelsohn@gnu.org>
1168 Nathan Sidwell <nathan@codesourcery.com>
1171 * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
1176 2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
1179 * params.c (set_param_value): Add range check.
1180 * params.def: Add min and max values. Reformat long strings.
1181 * params.h (struct param_info): Add min and max fields.
1182 (enum compiler_param): Adjust DEFPARAM.
1183 * toplev.c (lang_independent_params): Likewise.
1185 2004-12-01 Alan Modra <amodra@bigpond.net.au>
1188 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
1190 2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
1192 * doc/standards.texi: Update for C99 TC2.
1194 2004-11-30 Jeff Law <law@redhat.com>
1196 * sbitmap.c (sbitmap_any_common_bits): New function.
1197 * sbitmap.h (sbitmap_any_common_bits): Prototype.
1198 * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
1199 No longer allocate/free "psp", "pss" sbitmaps.
1200 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
1202 (group_aliases): Similarly.
1204 2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
1206 * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
1207 uninitialized variable.
1209 2004-11-30 Eric Christopher <echristo@redhat.com>
1211 * fold-const.c (fold_widened_comparison): Make sure that we're
1212 passing an INTEGER_TYPE to int_fits_type_p.
1213 (fold): Clean up comment.
1215 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1217 * mklibgcc.in: Correct calculation of libgcc_s_soname and
1218 libunwind_soname. Use $out, not $outS, in commands for
1219 no-shared-library case. Move EXTRA_MULTILIB_PARTS rules above
1220 library build rules, make $libunwind_so and $libgcc_s_so
1221 depend on them in the normal fashion, and filter those objects
1222 out of @shlib_objs@.
1224 2004-11-30 Janis Johnson <janis187@us.ibm.com>
1226 * config/rs6000/altivec.h (vec_step_help): Support const vector types.
1228 2004-11-30 Andrew Pinski <pinskia@physics.uc.edu>
1231 * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
1232 pass right after fold builtins.
1234 2004-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1236 * config/s390/s390-modes.def: Added cc modes documentation.
1237 * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
1238 s390_expand_addcc): Added cc mode comments.
1239 * config/s390/s390.md: Removed old cc mode documentation.
1241 2004-11-30 Mark Dettinger <dettinge@de.ibm.com>
1243 * config/s390/s390.c (struct processor_costs): New data type.
1244 (s390_cost, z900_cost, z990_cost): New global variables.
1245 (override_options): Initialize s390_cost.
1246 (s390_rtx_costs): Reimplement.
1248 2004-11-29 Daniel Berlin <dberlin@dberlin.org>
1250 Fix PR tree-optimization/18673
1252 * tree-ssa-pre.c: Remove splay-tree.h include.
1253 (bitmap_value_replace_in_set): Fix to add if it does not exist.
1254 (find_or_generate_expression): Remove now-wrong condition.
1255 (create_expression_by_pieces): Fix condition and comment reason
1257 (insert_aux): Fix condition and comment reasons for it.
1258 Factor insertion code from here.
1259 (insert_into_preds_of_block): To here. Fix conditions in factored
1260 function and comment reasons for them.
1262 2004-11-30 Ira Rosen <irar@il.ibm.com>
1265 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
1266 variable for data_reference when looking for memtag.
1268 2004-11-30 Jakub Jelinek <jakub@redhat.com>
1270 * c-opts.c (check_deps_environment_vars): If spec != NULL, set
1273 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1275 * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
1276 tree_low_cst instead of TREE_INT_CST_LOW.
1278 2004-11-30 Dorit Naishlos <dorit@il.ibm.com>
1281 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
1282 decls that are assembled before vectorization takes place.
1283 (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
1285 2004-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1287 * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
1288 if local_alloc modified jumps.
1290 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1292 * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
1294 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
1297 2004-11-30 Zack Weinberg <zack@codesourcery.com>
1299 * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
1300 * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
1302 * mklibgcc.in: Drastic restructure for comprehensibility.
1303 Remove the old hidden-directive hack.
1304 Eliminate support for .txt files in LIB2ADD etc (never used).
1305 Eliminate support for assembly source files in LIB2ADDEH* and
1306 LIBUNWIND (also never used).
1307 Build up dependency lists for libraries incrementally.
1308 If we have SHLIB_LINK, compile each file twice, once for the
1309 static and once for the shared library; also probe for
1310 -fvisibility=hidden in the generated libgcc.mk. If found,
1311 pass that and -DHIDE_EXPORTS to the compilation of every C
1312 source file going into the static library. If found, generate
1313 hidden-directive lists for every assembly source file going
1314 into the static library, but incorporate them with -include
1316 Write comments into generated libgcc.mk to facilitate debugging.
1317 * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
1318 * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
1320 * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
1323 2004-11-29 Richard Henderson <rth@redhat.com>
1325 * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
1326 (handled_component_p): Likewise.
1327 * alias.c (can_address_p): Reformat and simplify. Handle
1328 REAL/IMAGPART_EXPR. Do not disable addressability based on
1330 * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
1331 check for REAL/IMAGPART_EXPR.
1332 * gimplify.c (gimplify_compound_lval): Likewise.
1333 * tree-cfg.c (verify_expr): Likewise.
1334 * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
1335 * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
1336 (convert_local_reference): Likewise.
1337 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
1339 2004-11-30 Alan Modra <amodra@bigpond.net.au>
1341 * expr.c (emit_group_load_1): Don't die on const_int orig_src.
1343 2004-11-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1346 * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
1347 * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
1348 and host_xmake_file using new host configuration files.
1350 2004-11-29 Roger Sayle <roger@eyesopen.com>
1352 * reg-stack.c (change_stack): Improve algorithm used to pop regs
1353 off the stack to maximize ffreep usage and reduce fxch count.
1355 2004-11-30 James A. Morrison <phython@gcc.gnu.org>
1358 * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
1361 2004-11-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1363 * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
1364 REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
1366 2004-11-30 Ben Elliston <bje@au.ibm.com>
1368 * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
1370 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
1373 * c-common.c (handle_visibility_attribute): When the type decl
1374 is really a identifier node, warn about being ignored and return.
1376 2004-11-29 Richard Henderson <rth@redhat.com>
1378 * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
1380 2004-11-29 Steven Bosscher <stevenb@suse.de>
1382 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
1383 Remove CASE_DROPS_THROUGH checks, it is never defined.
1384 * cfglyout.c (fixup_reorder_chain): Likewise.
1385 * cfgrtl.c (rtl_verify_flow_info): Likewise.
1386 * stmt.c (expand_case): Likewise.
1387 * cfgbuild.c (make_edges): Likewise. Also remove force_fallthru,
1389 * system.h (CASE_DROPS_THROUGH): Poison.
1390 * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1391 * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1393 * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
1395 2004-11-29 Andrew Pinski <pinskia@physics.uc.edu>
1398 * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
1401 2004-11-29 Diego Novillo <dnovillo@redhat.com>
1403 PR tree-optimization/18712
1404 * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
1405 WORK_STACK by reference.
1406 Call VEC_safe_push instead of VEC_quick_push.
1409 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
1412 * Makefile.in (c-lang.o): Update dependencies.
1413 * c-lang.c: Include "c-pragma.h".
1414 (finish_file): Call maybe_apply_pending_pragma_weaks.
1415 * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
1416 * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
1418 2004-11-29 Richard Henderson <rth@redhat.com>
1421 * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
1422 outside the referenced object.
1424 2004-11-29 Kazu Hirata <kazu@cs.umass.edu>
1426 * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
1427 EDGE_PRED instead of PHI_ARG_EDGE.
1428 * tree-ssa-live.c: Likewise.
1429 * tree-ssa-loop-manip.c: Likewise.
1430 * tree-ssa.c: Likewise.
1432 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
1433 simplifying edge manipulation.
1435 * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
1438 * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
1441 * cfg.c (flow_obstack): Remove.
1442 (flow_firstobj): Likewise.
1443 (init_flow): Remove all uses of flow_obstack.
1445 2004-11-29 Alan Modra <amodra@bigpond.net.au>
1447 * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
1450 2004-11-29 Nathan Sidwell <nathan@codesourcery.com>
1452 * opts.c (decode_options): Do not set max-inline-insns-rtl.
1453 (common_handle_option): Likewise.
1454 * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
1455 * params.h (MAX_INLINE_INSNS_RTL): Remove.
1456 * doc/invoke.texi (max-inline-insns-rtl): Remove.
1458 2004-11-29 Alan Modra <amodra@bigpond.net.au>
1461 * varasm.c (default_elf_select_section_1): Pass decl to named_section.
1463 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
1466 * gimplify.c (gimplify_asm_expr): If the length of an output operand
1467 is zero, do not process it, just let it go through.
1469 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1470 Diego Novillo <dnovillo@redhat.com>
1472 PR/18662, also backported from tree-cleanup-branch.
1473 * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
1474 always call maybe_clean_eh_stmt and modify_stmt.
1476 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1479 * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
1480 Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
1481 * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
1482 add an inverse VIEW_CONVERT_EXPR to const_val.
1485 * tree-nested.c (check_for_nested_with_variably_modified): New.
1486 (create_nesting_tree): Call it.
1488 * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
1489 special code for assigning to non-pointer.
1490 (is_escape_site): If RHS is a conversion between pointer and integer
1491 types, this is an escape site.
1493 * gcse.c (insert_store): Error if try to insert store on abnormal edge.
1494 (store_motion): Don't move store if any edge we'd want to move it
1497 * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
1498 non-zero lower bound.
1500 * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
1502 2004-11-28 Matt Kraai <kraai@alumni.cmu.edu>
1505 * opts.c (find_opt): Require that the input match a switch exactly
1506 or that the switch take a joined option to be interpreted as a
1507 match for another language.
1509 2004-11-28 Andrew Pinski <pinskia@physics.uc.edu>
1511 * timevar.def (TV_TREE_REDPHI): New timevar.
1512 * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
1514 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
1516 PR preprocessor/17651
1517 * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
1518 flag_no_line_commands.
1519 * c-ppoutput.c (pp_file_change): Remove now-redundant check of
1522 2004-11-28 Theodore A. Roth <troth@openavr.org>
1524 * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
1525 warning if the function name does not begin with "__vector" and the
1526 function has either the 'signal' or 'interrupt' attribute.
1528 2004-11-28 Theodore A. Roth <troth@openavr.org>
1530 * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
1531 atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
1532 atmega325, atmega3250, atmega645 and atmega6450.
1533 * config/avr/avr.h (LINK_SPEC): Ditto.
1535 (LIBGCC_SPEC): Ditto.
1536 (CRT_BINUTILS_SPECS): Ditto.
1537 * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
1539 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
1541 PR preprocessor/17610
1542 * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
1544 2004-11-28 Jeff Law <law@redhat.com>
1546 * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
1547 (pass_maybe_create_global_var): New.
1548 * tree-pass.h (pass_maybe_create_global_var): Declare.
1549 * tree-optimize.c (init_tree_optimization_passes): Link in
1550 pass_maybe_create_global_var.
1552 2004-11-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1554 * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
1556 2004-11-28 Ulrich Weigand <uweigand@de.ibm.com>
1558 PR rtl-optimization/18420
1559 * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
1561 2004-11-28 Steven Bosscher <stevenb@suse.de>
1562 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1564 * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
1565 * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
1566 that the case is in range, to make sure the casesi insn is always
1567 in range and never falls through.
1568 (casesi1): Add comment to explain why casesi never falls through.
1569 Remove the unnamed special case casesi pattern.
1571 2004-11-28 Hans-Peter Nilsson <hp@bitrange.com>
1574 * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
1575 "*movdicc_real". Only match reversible comparisons.
1576 ("*movdicc_real_nonreversible"): New pattern, split from
1577 "*movdicc_real". Match only nonreversible comparisons. Exclude
1578 reversed alternatives.
1579 ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
1582 2004-11-27 Richard Henderson <rth@redhat.com>
1584 * config/ia64/ia64.md: Move all define_predicate's ...
1585 * config/ia64/predicates.md: ... here. New file.
1587 2004-11-27 Per Bothner <per@bothner.com>
1590 Re-applied following, with two modifications: add a URL for the
1591 fixed cctools; only exit if $build = $target.
1593 2004-10-18 Kelley Cook <kcook@gcc.gnu.org>
1594 * configure.ac (powerpc-*-darwin*): Require assembler to support
1596 * configure: Regenerate.
1598 2004-11-28 David Edelsohn <edelsohn@gnu.org>
1601 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
1602 EQ, GTU, and LTU costs. Add costs for GT, LT, and UNORDERED.
1603 Distinguish between SImode and DImode CONST_INT.
1605 2004-11-28 Andreas Fischer <a_fisch@gmx.de>
1606 Alan Modra <amodra@bigpond.net.au>
1609 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
1610 functions, strings and thread-local vars.
1612 2004-11-28 Alan Modra <amodra@bigpond.net.au>
1614 * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
1615 * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
1616 * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
1617 to allow non-darwin ABIs to optimize away code.
1618 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
1620 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
1622 * tree.c (operand_equal_for_phi_arg_p): New.
1623 * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
1624 * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
1625 Replace operand_equal_p with operand_for_phi_arg_p
1628 * bb-reorder.c (find_traces_1_round): Speed up by using
1629 EDGE_COUNT instead of FOR_EACH_EDGE.
1631 * fold-const.c, config/i386/linux64.h: Fix comment typos.
1633 2004-11-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1636 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
1638 2004-11-27 Kazu Hirata <kazu@cs.umass.edu>
1640 * config/i386/linux.h: Fix a comment typo.
1641 * doc/extend.texi: Fix a typo.
1643 2004-11-27 Jeff Law <law@redhat.com>
1645 * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
1648 2004-11-27 Jakub Jelinek <jakub@redhat.com>
1650 * config/i386/linux64.h (REG_NAME): Define.
1652 2004-11-27 Jakub Jelinek <jakub@redhat.com>
1654 * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
1655 unsigned and type signed, build ABS_EXPR with signed_type (ctype)
1656 and only afterwards convert to ctype.
1658 2004-11-27 Richard Sandiford <rsandifo@redhat.com>
1660 * config/mips/mips-protos.h (function_arg_boundary): Declare.
1661 * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
1662 (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
1663 (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
1664 * config/mips/mips.c (function_arg_boundary): New function.
1665 Impose a maximum alignment of STACK_BOUNDARY.
1667 2004-11-27 Jakub Jelinek <jakub@redhat.com>
1669 PR rtl-optimization/17825
1670 * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
1673 2004-11-27 Alan Modra <amodra@bigpond.net.au>
1676 * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
1677 from rs6000_default_long_calls for libcalls.
1679 2004-11-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1681 * expmed.c (extract_bit_field): When extracting from non-integer mode,
1682 force a SUBREG into a register because we may be taking a further
1685 2004-11-27 Di-an Jan <dianj@freeshell.org>
1687 * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
1689 2004-11-26 Robert Millan <robertmh@gnu.org>
1691 Changes for k*bsd-gnu support.
1692 * config/i386/linux.h: Define REG_NAME to allow overriding of
1693 register names in sc structure.
1694 * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
1696 * config.gcc: Detect x86_64-k*bsd-gnu systems.
1698 2004-11-26 Jeff Law <law@redhat.com>
1700 * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
1701 retrieve annotations or pointer info before it's necessary.
1702 Reorder tests for early continue of the loop. Manually CSE
1705 2004-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1707 * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
1708 * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
1709 (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1710 * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
1711 to a fixed reg if the source is the Return Address register.
1712 Implement new Rule 15.
1713 * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1714 * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
1715 sparc_dwarf_handle_frame_unspec.
1716 (gen_save_register_window): New function.
1717 (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
1718 (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
1719 (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
1720 Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
1721 (sparc_asm_function_prologue): Do not emit call frame debugging info.
1722 (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
1723 (sparc_expand_epilogue): Likewise.
1724 (sparc_dwarf_handle_frame_unspec): New function.
1725 * config/sparc/sparc.md (save_register_window): Remove.
1726 (save_register_windowdi): Rewrite modelled on the callframe debug info.
1727 (save_register_windowsi): Likewise.
1729 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1731 * config/frv/frv-protos.h: Guard ifcvt functions declarations with
1732 BB_HEAD, not BLOCK_HEAD.
1734 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
1736 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
1737 scratch insns that set a register live at the join point.
1739 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1741 * cse.c, tree-ssa-operands.c: Fix comment typos.
1743 * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
1745 2004-11-26 James A. Morrison <phython@gcc.gnu.org>
1748 * doc/extend.texi (SPARC VIS Built-in Functions): New section.
1750 2004-11-26 Kazu Hirata <kazu@cs.umass.edu>
1752 * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
1753 check that tests if all edges go to the same destination.
1755 * bitmap.c (bitmap_find_bit): Speed up by traversing from
1756 head->first if that seems profitable.
1758 2004-11-25 Jeff Law <law@redhat.com>
1760 * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
1761 * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
1762 (pass_loop_done): Use TV_TREE_LOOP_FINI.
1764 2004-11-26 Alan Modra <amodra@bigpond.net.au>
1766 PR rtl-optimization/16356
1767 * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
1768 separate output register and one less jump. Enable for powerpc64.
1769 (floatdisf2): Adjust for above.
1771 2004-11-25 Bob Wilson <bob.wilson@acm.org>
1773 * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
1774 (GCC_DRIVER_HOST_INITIALIZATION): Define.
1776 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1779 * tree-complex.c (vector_inner_type): New variable moved from
1780 build_word_mode_vector_type.
1781 (vector_last_type): Likewise.
1782 (vector_last_nunits): Likewise.
1783 (build_word_mode_vector_type): Use the new variables.
1784 * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
1785 (GTFILES): Add tree-complex.c.
1786 (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
1788 2004-11-25 Bob Wilson <bob.wilson@acm.org>
1790 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
1791 __XTENSA_WINDOWED_ABI__.
1793 2004-11-25 Richard Henderson <rth@redhat.com>
1795 * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument. Save
1796 args_size adjustments for calls even with cfa as stack pointer.
1797 Search calls for stack adjustments after the insn is issued.
1798 (dwarf2out_frame_debug): Add after_p argument; pass it on.
1799 * dwarf2out.h (dwarf2out_frame_debug): Update to match.
1800 * final.c (final_start_function, final_scan_insn): Likewise.
1802 2004-11-25 Richard Henderson <rth@redhat.com>
1805 * reload1.c (set_initial_eh_label_offset): New.
1806 (set_initial_label_offsets): Use it.
1808 2004-11-25 Kaz Kojima <kkojima@gcc.gnu.org>
1810 * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
1811 before calling life_analysis and release them after.
1813 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1815 * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
1818 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1820 * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
1821 BITMAP_OBSTACK_ALLOC.
1822 (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
1824 2004-11-25 Andrew Pinski <pinskia@physics.uc.edu>
1826 parts of PR rtl-opt/18463, rtl-opt/17647
1827 * cse.c (canon_for_address): New function.
1828 (find_best_addr): Call canon_for_address before getting the
1829 address's cost when checking if we should take that address.
1831 2004-11-25 Kazu Hirata <kazu@cs.umass.edu>
1833 * tree-phinodes.c (add_phi_arg): Take "tree" instead of
1834 "tree *" as the first argument.
1835 * tree-flow.h: Update the prototype of add_phi_arg.
1836 * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
1837 tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1838 tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
1839 tree-vectorizer.c: Update all call sites of add_phi_arg.
1841 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1843 * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1844 * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1845 (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
1846 (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
1848 2004-11-25 Andrew MacLeod <amacleod@redhat.com>
1850 PR tree-optimization/18587
1851 * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
1852 call clobbered caches as invalid.
1853 * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New. Flag
1854 indicating whether the call clobbered operand cache is valid.
1855 (ssa_ro_call_cache_valid): New. Flag indicating whether the
1856 pure/const call operand cache is valid.
1857 (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New. Cached
1858 list of operands for cached call virtual operands.
1859 (clobbered_aliased_loads, clobbered_aliased_stores,
1860 ro_call_aliased_load): New. flags caching whether alias bits are
1861 to be set in call stmt's.
1862 (fini_ssa_operands): Remove call operand caches if present.
1863 (get_expr_operands, get_asm_expr_operands,
1864 get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
1865 (get_call_expr_operands): Add call clobbered variables first.
1866 (add_stmt_operand): Take stmt annotation rather than stmt as a param.
1867 (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
1868 if it is valid, otherise fill the cache.
1869 * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
1870 * tree-flow.h (struct var_ann_d): Add in_vuse_list and
1871 in_v_may_def_list bits.
1872 * tree-ssa-operands.c (cleanup_v_may_defs): New. Clear the
1873 in_list bits for the v_may_def elements and empty the operand
1875 (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
1876 VUSES by checking the in_v_may_def_list bit.
1877 (append_v_may_def, append_vuse): Use the in_list bit rather than
1878 scanning the array for duplicates.
1880 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
1882 * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
1883 displacements are not short.
1885 2004-11-25 Ulrich Weigand <uweigand@de.ibm.com>
1887 * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
1890 2004-11-25 Mark Mitchell <mark@codesourcery.com>
1893 * c-common.h (lvalue_use): Move here from c-ctypeck.c.
1894 (lvalue_or_else): Declare.
1895 * c-common.c (lvalue_or_else): Move here from c-typeck.c.
1896 * c-typeck.c (lvalue_use): Remove.
1897 (lvalue_or_else): Remove.
1900 * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
1901 unemitted variables with static storage duration.
1903 2004-11-25 Gerald Pfeifer <gerald@pfeifer.com>
1905 * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
1908 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1910 * config/rs6000/altivec.md (VIshort): New mode macro.
1911 (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
1913 (altivec_vaddu<VI_char>s): ... this.
1914 (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
1916 (altivec_vadds<VI_char>s): ... this.
1917 (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
1919 (altivec_vsubu<VI_char>s): ... this.
1920 (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
1922 (altivec_vsubs<VI_char>s): ... this.
1923 (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
1925 (altivec_vavgu<VI_char>): ... this.
1926 (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
1928 (altivec_vavgs<VI_char>): ... this.
1929 (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
1930 (altivec_vmsumu<VI_char>m): ... this.
1931 (altivec_vmsummbm, altivec_vmsummhm): Replace
1933 (altivec_vmsumm<VI_char>m): ... this.
1934 (altivec_vandc): Remove.
1935 (*andc<mode>3): Renamed to ...
1936 (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
1937 (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
1939 (altivec_vrl<VI_char>): ... this.
1940 (altivec_vslb, altivec_vslh, altivec_vslw): Replace
1942 (altivec_vsl<VI_char>): ... this.
1943 (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
1945 (altivec_vsr<VI_char>): ... this.
1946 (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
1948 (altivec_vsra<VI_char>): ... this.
1949 (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
1950 (altivec_vsum4s<VI_char>s): ... this.
1951 (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
1953 (altivec_vperm_<mode>): ... this.
1954 (altivec_vsel_4sf): Rename to ...
1955 (altivec_vsel_v4sf): ... here.
1956 (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
1958 (altivec_vsel_<mode>): ... this.
1959 (altivec_vsldoi_4si, altivec_vsldoi_8hi,
1960 altivec_vsldoi_16qi): Rename to ...
1961 (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
1962 altivec_vsldoi_v16qi): ... here.
1963 (altivec_vsldoi_4sf): Rename to ...
1964 (altivec_vsldoi_v4sf): ... here.
1965 (altivec_predicate_v4si, altivec_predicate_v8hi,
1966 altivec_predicate_v16qi): Replace with ...
1967 (altivec_predicate_<mode>): ... this.
1968 (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
1970 (altivec_lve<VI_char>x): ... this.
1971 (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
1973 (altivec_stve<VI_char>x): ... this.
1974 (absv16qi2, absv8hi2, absv4si2): Replace
1976 (abs<mode>2): ... this.
1977 (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
1979 (altivec_abss_<mode>): ... this.
1980 (vec_realign_load_v16qi, vec_realign_load_v8hi,
1981 vec_realign_load_v4si): Replace with ...
1982 (vec_realign_load_<mode>): ... this.
1983 * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
1985 (rs6000_expand_ternop_builtin): Likewise.
1987 2004-11-25 Andrew Haley <aph@redhat.com>
1989 * gcc.c (process_command): Don't supply -v to linker.
1991 2004-11-25 Joseph S. Myers <joseph@codesourcery.com>
1993 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
1994 instead of `%s' in diagnostic.
1996 2004-11-25 Nathan Sidwell <nathan@codesourcery.com>
1998 * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
1999 (FREE_REG_SET): Adjust.
2000 * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
2001 * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
2002 (BITMAP_ALLOC): ... here.
2003 (BITMAP_OBSTACK_FREE): Rename to ...
2004 (BITMAP_FREE): Don't check for NULL bitmap here.
2005 * tree-ssa-pre.c (value_insert_into_set_bitmap,
2006 bitmap_set_new): Use new names.
2008 * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
2009 * df.c (df_free): Likewise.
2010 * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
2011 * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
2013 * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
2014 (ALLOC_REG_SET): ... here.
2015 (FREE_REG_SET): Adjust.
2016 (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
2017 * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
2018 * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
2019 * cfgrtl.c (rtl_split_block, rtl_split_edge,
2020 safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
2021 * flow.c (update_life_info, calculate_global_regs_live,
2022 allocate_bb_life_data, init_propagate_block_info): Adjust.
2023 * global.c (build_insn_chain): Adjust.
2024 * ifcvt.c (dead_or_predicable): Adjust.
2025 * loop-iv.c (simplify_using_initial_values): Adjust.
2026 * recog.c (peephole2_optimize): Adjust.
2027 * sched-deps.c (init_deps_global): Adjust.
2029 2004-11-25 Ralf Corsepius <ralf.corsepius@rtems.org>
2031 * config.gcc (avr-*-rtems*): Fix typo.
2033 2004-11-25 J"orn Rennecke <joern.rennecke@st.com>
2035 * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
2037 2004-11-24 Jeff Law <law@redhat.com>
2039 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
2040 the number of queries to random elements in the ai->written_vars
2043 2004-11-24 Roger Sayle <roger@eyesopen.com>
2045 * config/i386/i386.c (override_options): Disable x87 fancy math
2046 intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
2048 2004-11-24 Roger Sayle <roger@eyesopen.com>
2050 * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
2051 system header conflict on AIX 5.2.
2052 * configure: Regenerate.
2054 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2056 * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
2057 instead of calling phi_arg_from_edge.
2059 * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
2062 2004-11-24 Ben Elliston <bje@au.ibm.com>
2064 * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
2065 * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
2066 * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
2069 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2071 * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
2073 * tree-inline.c (copy_body_r): Explicitly copy a constant if the
2074 type will be remapped.
2076 2004-11-24 Steven Bosscher <stevenb@suse.de>
2078 * c-opts.c (c_common_post_options): Don't clear
2079 flag_inline_functions.
2080 * dojump.c (clear_pending_stack_adjust): Remove check on
2081 flag_inline_functions, it's always true.
2082 * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
2083 that can never trigger.
2084 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
2085 flag_inline_trees, now that flag_inline_functions is never
2087 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
2088 flag_inline_functions at optimization levels greater than
2089 or equal to 3. This is already done by default.
2091 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2093 * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
2094 instead to find the PHI argument. Do not take I as an
2096 (eliminate_phi): Adjust the call to eliminate_build. Do not
2097 take I as an argument.
2098 (rewrite_trees): Adjust the call to eliminate_phi.
2100 2004-11-24 Richard Sandiford <rsandifo@redhat.com>
2102 * optabs.h (force_expand_binop): Declare.
2103 * optabs.c (force_expand_binop): Export.
2104 * stmt.c (shift_return_value): Delete.
2105 (expand_return): Don't call it.
2106 * expr.h (shift_return_value): Declare.
2107 * calls.c (shift_returned_value): Delete in favor of...
2108 (shift_return_value): ...this new function. Leave the caller to check
2109 for non-BLKmode values passed in the msb of a register. Take said mode
2110 and a shift direction as argument. Operate on the hard function value,
2112 (expand_call): Adjust accordingly.
2113 * function.c (expand_function_start): If a non-BLKmode return value
2114 is padded at the last significant end of the return register, use the
2115 return value's natural mode for the DECL_RESULT, not the mode of the
2117 (expand_function_end): Shift the same sort of return values left by
2118 the appropriate amount.
2120 2004-11-24 Matt Austern <austern@apple.com>
2122 * recog.c (recog_memoized_1): Remove.
2123 * recog.h (recog_memoized_1): Remove declaration.
2124 (recog_memoized): Change from macro to inline function.
2126 2004-11-24 Devang Patel <dpatel@apple.com>
2129 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
2130 * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
2132 2004-11-24 Devang Patel <dpatel@apple.com>
2134 * gcc.c (process_command): Supply -v to linker.
2136 2004-11-24 David Edelsohn <edelsohn@gnu.org>
2137 Paolo Bonzini <bonzini@gnu.org>
2139 * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
2140 vector modes without ALTIVEC_ABI. Use GCC vector instead of
2142 (rs6000_pass_by_reference): Split conditional into pieces. Use
2143 GCC vector instead of synthetic vector.
2145 2004-11-24 Aldy Hernandez <aldyh@redhat.com>
2147 * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
2148 thread-local variable is invariant.
2150 2004-11-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2152 * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
2153 Handle TYPE_REF_CAN_ALIAS_ALL.
2154 (print_declaration): Print array dimensions like dump_generic_node.
2156 * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
2157 ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
2159 2004-11-24 Nathan Sidwell <nathan@codesourcery.com>
2161 * bitmap.c (INLINE): Do not define.
2162 (bitmap_elem_to_freelist, bitmap_element_free,
2163 bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
2164 bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
2166 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2168 * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
2169 find the index of a PHI argument. Use e->dest_idx instead.
2170 Replace hint with index.
2172 * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
2175 2004-11-24 Diego Novillo <dnovillo@redhat.com>
2177 * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
2178 regarding PT_MALLOC.
2180 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2182 * config/i386/i386.c (optimization_options): Use
2183 SUBTARGET_OPTIMIZATION_OPTIONS.
2184 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
2185 (TARGET_SUBTARGET_DEFAULT): Don't include
2186 MASK_OMIT_LEAF_FRAME_POINTER.
2188 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2190 * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
2193 2004-11-24 Joseph Myers <joseph@codesourcery.com>
2195 * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
2196 Use amd64 instead of 64.
2198 2004-11-24 Mark Mitchell <mark@codesourcery.com>
2199 Joseph Myers <joseph@codesourcery.com>
2201 * crtstuff.c (IN_LIBGCC2): Define it.
2202 (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
2203 instead of HAVE_LD_RO_RW_SECTION_MIXING.
2204 * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
2205 * dwarf2out.c (named_section_eh_frame_section): Check
2206 EH_TABLES_CAN_BE_READ_ONLY.
2207 * except.c (default_exception_section): Likewise.
2208 * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
2209 * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
2211 2004-11-24 Kazu Hirata <kazu@cs.umass.edu>
2213 * tree-ssa-pre.c (phi_translate): Use find_edge to find the
2214 index of a PHI argument.
2216 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
2217 find_edge to find the index of a PHI argument.
2219 2004-11-24 Steven Bosscher <stevenb@suse.de>
2221 * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
2222 and LABELED_BLOCK_EXPR.
2223 * gimplify.c (gimplify_labeled_block_expr): Remove.
2224 (gimplify_exit_block_expr): Remove.
2225 (gimplify_expr): Don't call them.
2226 * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
2227 and LABELED_BLOCK_EXPR.
2228 (estimate_num_insns_1): Likewise.
2229 (walk_tree): Likewise.
2230 * tree-pretty-print.c (dump_generic_node): Don't handle
2231 EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
2232 * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
2233 (LABELED_BLOCK_EXPR): Likewise.
2234 * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
2235 (LABELED_BLOCK_BODY): Likewise.
2236 (EXIT_BLOCK_LABELED_BLOCK): Likewise.
2237 (EXIT_BLOCK_RETURN): Removed.
2239 2004-11-24 Steven Bosscher <stevenb@suse.de>
2241 * cfgrtl.c (rtl_delete_block): Fix comment.
2242 * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
2243 or BLOCK_END insn notes.
2244 * jump.c (squeeze_notes): Likewise.
2245 * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
2246 EH_REGION_END notes, we never have them to begin with.
2247 * sched-deps.c (sched_analyze_insn): When updating loop notes,
2248 verify that we have indeed only recorded loop notes.
2249 (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
2250 Only record loop notes.
2252 * cfgexpand.c (tree_expand_cfg): Fix comment.
2254 * passes.c (rest_of_compilation): Don't do a second call to
2255 convert_from_eh_region_ranges from here, it's already called
2257 * except.c (resolve_fixup_regions): Remove.
2258 (remove_fixup_regions): Remove.
2259 (convert_from_eh_region_ranges_1): Remove.
2260 (convert_from_eh_region_ranges): Remove the case where EH is
2261 not already lowered at the tree level. We always lower there.
2263 2004-11-24 Paolo Bonzini <bonzini@gnu.org>
2266 * tree.c (make_vector_type): Move qualifiers to the vector type,
2267 use the inner type's main variant and build a main variant for
2268 the vector type if necessary.
2269 (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
2271 2004-11-24 Eric Botcazou <ebotcazou@libertysurf.fr>
2273 * target.h (late_rtl_prologue_epilogue): Remove.
2274 * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2275 * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
2276 * passes.c (rest_of_handle_prologue_epilogue): Remove and move
2277 remaining bits to...
2278 (rest_of_handle_flow2): ...here.
2279 (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
2280 * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2282 2004-11-23 Mark Mitchell <mark@codesourcery.com>
2284 * hwint.h (HOST_LONG_LONG_FORMAT): New macro. Use it throughout.
2285 * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
2286 * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
2288 2004-11-24 Daniel Jacobowitz <dan@codesourcery.com>
2290 * config/i386/i386.c (override_options): Move
2291 SUBTARGET_OVERRIDE_OPTIONS before defaulting
2292 flag_omit_frame_pointer.
2294 2004-11-23 Richard Henderson <rth@redhat.com>
2296 * rtl.h (validate_subreg): Declare.
2297 * emit-rtl.c (validate_subreg): New.
2298 (gen_rtx_SUBREG): Use it.
2299 * simplify-rtx.c (simplify_subreg): Likewise.
2300 (simplify_gen_subreg): Likewise. Remove duplicate asserts.
2301 * expr.c (emit_move_insn_1): Tidy complex move code. Use memory
2302 fallback whenever gen_realpart/gen_imagpart would not be able to
2305 2004-11-23 Richard Henderson <rth@redhat.com>
2307 * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
2308 hard-coding avoiding calls to gen_rtx_SUBREG. Split complex return
2311 2004-11-23 Diego Novillo <dnovillo@redhat.com>
2313 PR tree-optimization/18618
2314 * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
2315 (insert_phi_nodes_for): Change third argument to VEC(basic_block).
2316 * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
2318 (stmts_to_rescan): Likewise.
2319 (const_and_copies_stack): Likewise.
2320 (nonzero_vars_stack): Likewise.
2321 (vrp_variables_stack): Likewise.
2323 2004-11-23 Richard Henderson <rth@redhat.com>
2325 * cse.c (record_jump_cond_subreg): New.
2326 (record_jump_cond): Use it instead of gen_lowpart.
2328 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
2329 Joseph Myers <joseph@codesourcery.com>
2331 * config/sol2-c.c (solaris_register_pragmas): Use
2332 c_register_pragma_with_expansion.
2333 * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
2334 * c-pragma.c (c_register_pragma): Update call to
2335 cpp_register_pragma.
2336 (c_register_pragma_with_expansion): New function.
2337 (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
2338 * c-pragma.h (c_register_pragma_with_expansion): New prototype.
2339 * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
2341 * doc/tm.texi (c_register_pragma_with_expansion,
2342 HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
2344 2004-11-23 Richard Henderson <rth@redhat.com>
2346 * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
2347 as mode sizes into local temporaries. Unify failure path.
2349 2004-11-23 Richard Henderson <rth@redhat.com>
2351 * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
2352 * caller-save.c (mark_set_regs): Use subreg_regno instead.
2353 * final.c (alter_subreg): Likewise.
2354 * local-alloc.c (reg_is_born): Likewise.
2356 2004-11-23 Richard Henderson <rth@redhat.com>
2358 * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
2359 instead of using a SUBREG temporary.
2361 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2363 * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
2366 2004-11-23 Zack Weinberg <zack@codesourcery.com>
2368 * function.h (struct function): Remove calls_longjmp.
2369 (current_function_calls_longjmp): Delete.
2370 * tree.h (ECF_LONGJMP): Delete.
2371 (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
2372 (ECF_LIBCALL_BLOCK): Everybody slide down one.
2373 (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
2374 * builtins.c (expand_builtin_longjmp): Don't set
2375 current_function_calls_longjmp.
2376 * calls.c (special_function_p): Mark longjmp and siglongjmp
2377 with ECF_NORETURN, not ECF_LONGJMP.
2378 (emit_call_1, expand_call, emit_library_call_value_1):
2379 Don't check for ECF_LONGJMP.
2380 * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
2381 (need_fake_edge_p): Likewise.
2383 * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
2384 * system.h: Poison NON_SAVING_SETJMP.
2385 * function.c (use_register_for_decl)
2386 * gcse.c (compute_hash_table_work, compute_store_table)
2387 * postreload-gcse.c (record_opr_changes)
2388 * reload.c (find_equiv_reg)
2389 * reload1.c (reload)
2390 * config/i386/i386.c (ix86_can_use_return_insn_p):
2391 Remove code conditional on NON_SAVING_SETJMP.
2392 * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
2394 * config/i386/sysv3.h: Delete file.
2395 * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
2397 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
2399 * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
2400 the vectorization factor is greater than the iteration count.
2401 (vect_gen_niters_for_prolog_loop): No need to calculate min if the
2402 iteration count is known.
2404 (vect_build_symbol_bound): Removed. Its functionality moved to
2405 vect_generate_tmps_on_preheader.
2406 (vect_generate_tmps_on_preheader): Moved content of
2407 vect_build_symbol_bound here instead of calling it. Changed some
2410 (vect_build_loop_niters): We don't expect a new_bb to be generated -
2412 (vect_gen_niters_for_prolog_loop): Likewise.
2413 (vect_gen_niters_for_prolog_loo): Likewise.
2415 (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
2416 (slpeel_add_loop_guard): Likewise.
2417 (slpeel_tree_peel_loop_to_edge): Likewise.
2418 (vect_do_peeling_for_alignment): Likewise.
2420 (vect_get_first_index): Missing space.
2422 2004-11-23 Ulrich Weigand <uweigand@de.ibm.com>
2424 * config/s390/s390.md ("*iordi3"): Mark commutative.
2425 ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
2427 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2429 * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
2430 greater than PHI_ARG_CAPACITY.
2431 (reserve_phi_args_for_new_edge): Initialize the new PHI
2432 argument to NULL_TREE. Increment PHI_NUM_ARGS.
2433 (add_phi_arg): Add a PHI argument to the slot given by
2435 (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
2436 * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
2437 * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
2438 argument by looking at PHI_ARG_DEF.
2439 (verify_phi_args): Check for a missing PHI argument. Remove
2440 the check for duplicate PHI arguments.
2441 * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
2442 (phi_arg_d): Remove e.
2444 * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
2445 by restricting to the case with two outgoing edges.
2447 2004-11-23 Andreas Krebbel <krebbel1@de.ibm.com>
2449 * config/s390/s390.c (s390_backchain_string): Removed.
2450 (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
2451 (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
2452 Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
2453 TARGET_KERNEL_BACKCHAIN to reflect the new options.
2454 * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
2455 (TARGET_KERNEL_BACKCHAIN): Removed.
2456 (TARGET_BACKCHAIN): Former triple state option change to a target flag.
2457 (TARGET_PACKED_STACK): New macro.
2458 (TARGET_SWITCHES): New switches added.
2459 (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
2461 (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
2462 * config/s390/s390.md ("allocate_stack", "restore_stack_block")
2463 ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
2464 the change in target switch semantics.
2465 * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
2466 (TARGET_DEFAULT): MASK_BACKCHAIN added.
2467 * doc/invoke.texi: Added documentation for the new/changed options.
2469 2004-11-23 Uros Bizjak <uros@kss-loka.si>
2471 PR rtl-optimization/18614
2472 * simplify-rtx.c (simplify_binary_operation): Do not
2473 simplify inner elements of constant arguments of
2476 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2478 * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
2481 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2483 * tree-phinode.c (make_phi_node): Use a new variable,
2484 capacity, to receive the return value of ideal_phi_node_len.
2486 2004-11-23 Eric Botcazou <ebotcazou@libertysurf.fr>
2488 * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
2489 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
2490 __gthread_recursive_mutex_init_function.
2491 (__gthread_key_create): Properly cast -1.
2492 (__gthread_recursive_mutex_init_function): New function.
2493 (__gthread_recursive_mutex_lock): Rewrite.
2494 (__gthread_recursive_mutex_trylock): Likewise.
2495 (__gthread_recursive_mutex_unlock): Likewise.
2497 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2499 * config/c4x/t-rtems: New.
2500 * config.gcc: Reflect having added c4x/t-rtems.
2502 2004-11-23 Dorit Naishlos <dorit@il.ibm.com>
2506 * tree-vectorizer.c (vect_create_data_ref_ptr): Use
2507 lang_hooks.types.type_for_size instead of integer_type_node for the
2510 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2512 * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
2514 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2516 * config/arm/t-rtems: New.
2517 * config.gcc: Reflect having added arm/t-rtems.
2519 2004-11-23 Kazu Hirata <kazu@cs.umass.edu>
2521 * tree-cfg.c (tree_execute_on_growing_pred): New.
2522 (tree_cfg_hooks): Add tree_execute_on_growing_pred.
2523 * tree-flow.h: Add a prototype for
2524 reserve_phi_args_for_new_edge.
2525 * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
2526 (add_phi_arg): Don't resize a PHI array.
2528 2004-11-23 Ralf Corsepius <ralf.corsepius@rtems.org>
2530 * config.gcc: Add avr-*-rtems*.
2531 * config/avr/t-rtems: New.
2532 * config/avr/rtems.h: New.
2534 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
2536 * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
2537 always the same as op1. Use bitmap_ior_into and bitmap_and_into.
2538 Add comment to function.
2540 2004-11-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2543 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
2545 PR rtl-optimization/14838
2546 * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
2548 (get_last_nonnote_insn): Don't assume last insn is a note.
2550 2004-11-22 Roger Sayle <roger@eyesopen.com>
2552 * fold-const.c (nondestructive_fold_binary_to_constant): Rename
2553 to fold_binary_to_constant.
2554 (nondestructive_fold_unary_to_constant): Likewise, rename to
2555 fold_unary_to_constant.
2556 (fold_relational_hi_lo): Update call to fold_binary_to_constant.
2557 * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
2558 (nondestructive_fold_unary_to_constant): Likewise.
2559 * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
2560 and fold_binary_to_constant.
2561 * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2562 (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
2563 and EXEC_UNARY with calls to fold_*nary_to_constant.
2564 * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2565 (idx_find_step): Replace uses of EXEC_BINARY with calls to
2566 fold_binary_to_constant.
2568 2004-11-22 Nick Clifton <nickc@redhat.com>
2570 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2571 initialisation of 'e'.
2573 2004-11-22 Roger Sayle <roger@eyesopen.com>
2575 * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
2576 * config/i386/i386.c (override_options): Set MASK_NO_FANCY_MATH_387
2577 automatically for targets without TARGET_80387.
2578 * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
2579 sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
2580 *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
2581 fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
2582 *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
2583 *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
2584 *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
2585 atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
2586 atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
2587 acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
2588 log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
2589 fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
2590 logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
2591 expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
2592 exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
2593 rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
2594 floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
2595 frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
2596 frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
2597 Simplify conditionals using TARGET_USE_FANCY_MATH_387.
2599 2004-11-22 Dale Johannesen <dalej@apple.com>
2601 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Conditionalize
2602 properly and comment.
2604 2004-11-22 James A. Morrison <phython@gcc.gnu.org
2606 * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
2607 (sparc_init_builtins): New function.
2608 (sparc_init_vis_builtins): Create builtin functions for VIS
2610 (sparc_expand_builtin): Expand builtin functions for VIS instructions.
2611 (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
2612 (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
2613 (def_builtin): New macro for creating builtin functions.
2614 (P): New mode macro for pointer types.
2615 (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
2616 UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
2617 UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
2618 (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
2619 fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
2620 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
2621 faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
2623 2004-11-22 Devang Patel <dpatel@apple.com>
2625 * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
2627 2004-11-22 Devang Patel <dpatel@apple.com>
2629 * tree-if-conv.c (if_convertable_phi_p): Rename to ...
2630 (if_convertible_phi_p): ... new name.
2631 (if_convertable_modify_expr_p): Rename to ...
2632 (if_convertible_modify_expr_p): ... new name.
2633 (if_convertable_stmt_p): Rename to ...
2634 (if_convertible_stmt_p): ... new name.
2635 (if_convertable_bb_p): Rename to ...
2636 (if_convertible_bb_p): ... new name.
2637 (if_convertable_loop_p): Rename to ...
2638 (if_convertible_loop_p): ... new name.
2640 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2643 * configure.ac (threading): Accept 'posix95'.
2644 * configure: Regenerate.
2645 * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
2646 include sol26.h and default to posix95 threads if have_pthread_h.
2647 (sparc-*-solaris2*): Likewise.
2648 * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
2649 * gthr-posix95.h: New file.
2650 * config/sol26.h: New file.
2651 * doc/install.texi (--enable-threads): Document 'posix95'.
2653 2004-11-23 Ben Elliston <bje@au.ibm.com>
2655 * pointer-set.h (pointer_set_contains): Remove.
2656 * pointer-set.c (pointer_set_contains): Likewise.
2658 2004-11-22 Dale Johannesen <dalej@apple.com>
2660 * calls.c (expand_call): Do not call preserve_temp_slots.
2662 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
2664 * tree-flow.h: Remove the prototype for remove_phi_arg.
2665 Add a prototype for remove_phi_args.
2666 * tree-phinodes.c (remove_phi_arg): Remove.
2667 (remove_phi_args): New.
2668 * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
2671 * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
2672 after making an edge.
2673 (remove_edge): Call execute_on_shrinking_pred before removing
2675 (redirect_edge_succ): Call execute_on_growing_pred and
2676 execute_on_shrinking_pred.
2677 * cfghooks.c (execute_on_growing_pred): New.
2678 (execute_on_shrinking_pred): Likewise.
2679 * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
2680 execute_on_shrinking_pred.
2681 Add prototypes for execute_on_growing_pred and
2682 execute_on_shrinking_pred.
2683 * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
2684 execute_on_growing_pred and execute_on_shrinking_pred.
2685 (cfg_layout_rtl_cfg_hook): Likewise.
2686 * tree-cfg.c (tree_cfg_hooks): Likewise.
2688 * tree-cfg.c (tree_execute_on_shrinking_pred): New.
2689 (tree_cfg_hooks): Use it.
2690 * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
2691 (ssa_redirect_edge): Don't call remove_phi_arg_num.
2693 * tree-phinodes.c (remove_phi_arg_num): Make it static.
2694 * tree-flow.h: Remove the corresponding prototype.
2696 * tree-ssa.c (ssa_remove_edge): Remove.
2697 * tree-flow.h: Remove the corresponding prototype.
2698 * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
2699 * basic-block.h: Likewise.
2700 * tree-if-conv.c: Likewise.
2701 * tree-ssa-threadupdate.c: Likewise.
2703 2004-11-23 Ben Elliston <bje@au.ibm.com>
2705 * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
2706 @table to list the BSI methods. Use individual @findex directives
2707 instead of one with a comma-separated list of index entries.
2709 2004-11-22 Zdenek Dvorak <dvorakz@suse.cz>
2711 PR tree-optimization/18529
2712 * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
2713 (simple_operand_p): Use STRIP_NOPS. Consider SSA names simple.
2714 (fold): Call fold_to_nonsharp_ineq_using_bound.
2715 * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
2716 (number_of_iterations_cond): Fold the expressions before futher
2718 (tree_simplify_using_condition): Handle case when cond or expr is
2719 an EQ_EXPR specially.
2721 2004-11-22 Daniel Berlin <dberlin@dberlin.org>
2723 * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
2724 SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
2726 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2727 Fariborz Jahanian <fjahanian@apple.com>
2729 * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
2731 (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
2732 Align 16 byte and larger vectors like Altivec.
2733 (function_arg_advance): Pass any 16 byte vector like Altivec vector.
2734 (function_arg): Same.
2735 (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
2737 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2740 * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
2743 2004-11-22 Richard Henderson <rth@redhat.com>
2745 * function.c (assign_parm_setup_block): Revert 11-13 change to
2746 forcably re-mode a (possibly BLKmode) hard register.
2748 2004-11-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2750 * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
2752 2004-11-22 David Edelsohn <edelsohn@gnu.org>
2754 * config/rs6000/power4.md: Remove delay between dispatch and issue
2755 associated with dispatch group slots 3 and 4.
2756 * config/rs6000/power5.md: Same.
2758 2004-11-21 Jeff Law <law@redhat.com>
2760 * cfg.c (cached_make_edge): Use find_edge rather than an inlined
2762 * cfgbuild.c (make_edges): Likewise.
2763 * cfghooks.c (can_duplicate_block_p): Likewise.
2764 * cfgloop.c (loop_latch_edge): Likewise.
2765 * cfgloopmanip.c (force_single_succ_latches): Likewise.
2766 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2767 * predict.c (predict_loops, propagate_freq): Likewise.
2768 * tracer.c (tail_duplicate): Likewise.
2769 * tree-cfg.c (disband_implicit_edges): Likewise.
2770 (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
2772 2004-11-22 Nick Clifton <nickc@redhat.com>
2774 * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2775 initialisation of 'e'.
2777 2004-11-22 Kazu Hirata <kazu@cs.umass.edu>
2779 PR rtl-optimization/18599
2780 * regrename.c (copyprop_hardreg_forward): Speed up by putting
2781 BB_VISITED flags on basic blocks as we process them.
2783 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
2786 * config/rs6000/altivec.md (VI_char): New mode attribute.
2787 (addv16qi3, addv8hi3, addv4ai3): Replace with ...
2788 (add<mode>3): ... this.
2789 (subv16qi3, subv8hi3, subv4ai3): Replace with ...
2790 (sub<mode>3): ... this.
2791 (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
2792 (smax<mode>3): ... this.
2793 (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
2794 (smin<mode>3): ... this.
2795 (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
2796 (umax<mode>3): ... this.
2797 (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
2798 (umin<mode>3): ... this.
2799 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2800 (and<mode>3): ... this.
2801 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2802 (ior<mode>3): ... this.
2803 (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
2804 (xor<mode>3): ... this.
2805 (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2806 (and<mode>3): ... this.
2807 (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2808 (ior<mode>3): ... this.
2809 (altivec_vnor): Replace with ...
2810 (altivec_nor<mode>): ... this.
2811 (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
2812 (one_cmpl<mode>2): ... this.
2813 (altivec_vandc): New expander.
2814 (*andc<mode>3): New insn.
2815 * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
2817 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
2820 * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
2821 creating iv instead of integer_type.
2822 (vect_build_loop_niters): Remove redundant code.
2823 (vect_transform_loop_bound): Removed (duplicates functionality of
2824 make_loop_iterate_ntimes.
2825 (vect_gen_niters_for_prolog_loop): Add documentation. Call
2826 lang_hooks.types.type_for_size to create a type of the required size.
2827 Use that type instead of integer_type. Remove redundant code.
2828 (vect_update_niters_after_peeling): Use type of niters instead of
2830 (vect_transform_loop): Unify handling of known and unknown loop bound
2831 cases. Call make_loop_iterate_ntimes instead of
2832 vect_transform_loop_bound.
2834 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
2837 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
2840 2004-11-22 Dorit Naishlos <dorit@il.ibm.com>
2843 * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
2845 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2847 * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
2849 * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
2850 m32r/libgcc-glibc.ver.
2851 * config/m32r/libgcc-glibc.ver: Add New file.
2853 2004-11-22 Nathan Sidwell <nathan@codesourcery.com>
2855 * bitmap.h (struct bitmap_obstack): New obstack type.
2856 (struct bitmap_head_def): Replace using_obstack with obstack
2858 (bitmap_default_obstack): New.
2859 (bitmap_initialize): Make inline, does not do allocation.
2860 (bitmap_release_memory): Remove.
2861 (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
2862 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2863 bitmap_obstack_free, bitmap_malloc_free): Declare.
2864 (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
2865 (BITMAP_FREE): Replace with ...
2866 (BITMAP_OBSTACK_FREE): ... this.
2867 (BITMAP_XFREE): Adjust.
2868 (BITMAP_INIT_ONCE): Remove.
2869 * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
2870 (bitmap_default_obstack): New.
2871 (bitmap_elem_to_freelist): Adjust.
2872 (bitmap_element_allocate): Adjust. Break initialization into ...
2873 (bitmap_obstack_initialize): ... here.
2874 (bitmap_release_memory): Replace with ...
2875 (bitmap_obstack_release): ... this.
2876 (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2877 bitmap_obstack_free, bitmap_malloc_free): New.
2878 (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
2880 (bitmap_initialize): Move to bitmap.h.
2881 * gengtype.c (open_base_files): Add obstack.h to ifiles.
2882 * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
2883 * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
2884 (INITIALIZE_REG_SET): Remove.
2885 (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
2886 (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
2887 (flow_obstack): Do not declare.
2888 (reg_obstack): Declare.
2889 * regs.h: Include obstack.h.
2890 * tree-optimize.c (tree_rest_of_compilation): Initialize and
2891 release bitmap obstack here.
2892 * bb-reorder.c: #include regs, not basic-block.
2893 (fix_crossing_conditional_branches): Allocate regsets from
2895 * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
2897 * caller-save.c: Include regs.h earlier.
2898 * cfg.c: Do not include basic-block.h or obstack.h.
2899 (reg_obstack): Define.
2900 * cfganal.c: Include obstack.h
2901 * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
2903 * cfglayout.c: Do not include obstack.h.
2904 (flow_obstack): Remove declaration.
2905 (cfg_layout_duplicate_bb): Use reg_obstack.
2906 * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
2907 * cfgrtl.c (rtl_split_block): Use reg_obstack.
2908 (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
2909 (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
2910 (cfg_layout_split_edge): Use reg_obstack.
2911 * cse.c: Include regs.h earlier.
2912 * ddg.c: Do not include basic-block.h.
2913 * dominance.c: Inlude obstack.h.
2914 * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
2915 (calculate_global_regs_live): Likewise.
2916 (allocate_bb_life_data): Use reg_obstack.
2917 (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
2918 * global.c: Do not include basic-block.h.
2919 (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
2920 * graph.c: Include obstack.h.
2921 * haifa-sched.c: Do not include basic-block.h.
2922 * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
2923 * local-alloc.c: Do not include basic-block.h.
2924 * loop-init.c, loop-invariant.c: Include obstack.h.
2925 * loop-iv.c: Likewise.
2926 (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
2928 * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
2929 * modulo-sched.c: Do not include basic-block.h.
2930 * passes.c (rest_of_handle_final): Do not call
2931 regset_release_memory.
2932 * ra-debug.c: Include regs.h earlier. Do not include
2934 * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
2935 * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
2936 (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
2937 (regset_release_memory): Remove.
2938 * resource.c: Do not include basic-block.h.
2939 * rtlanal.c: Do not include basic-block.h.
2940 * sbitmap.c: Include obstack.h.
2941 * sched-deps.c: Do not include basic-block.h.
2942 (reg_pending_sets_head, reg_pending_clobbers_head,
2943 reg_pending_uses_head): Remove.
2944 (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
2945 * sched-ebb.c: Do not include basic-block.h.
2946 * sched-rgn.c: Likewise.
2947 * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
2949 * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
2950 * tree-sra.c (decide_instantiations): Adjust bitmap
2952 * tree-ssa-dce.c: Include obstack.h.
2953 * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
2954 (value_insert_into_set_bitmap): Remove useless bitmap_clear.
2955 (bitmap_set_new): Likewise.
2956 (init_pre): Initialize bitmap obstack.
2957 (fini_pre): Release bitmap obstack.
2958 * tree-ssanames.c (ssa_names_to_rewrite): Make static.
2959 (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
2960 (mark_for_rewrite, unmark_for_rewrite): Likewise.
2961 (marked_ssa_names): Likewise.
2962 (init_ssanames): Use BITMAP_XMALLOC.
2963 (fini_ssanames): Use BITMAP_XFREE.
2964 * web.c: Include obstack.h
2966 2004-11-22 Nick Clifton <nickc@redhat.com>
2968 * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
2969 predecessor in the first for-loop.
2971 2004-11-21 Stan Shebs <shebs@apple.com>
2973 * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
2975 (function_arg): Move darwin test up, sniff mode first for
2976 efficiency, test for union type.
2978 2004-11-21 Dale Johannesen <dalej@apple.com>
2980 * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Define.
2982 2004-11-21 Jeff Law <law@redhat.com>
2984 * tree-ssa.c (verify_use): Fix comment.
2985 (verify_phi_args): Check that the number of incoming edges matches
2986 the number of PHI arguments. Check that each PHI argument is
2987 either an SSA_NAME or an invariant. Coalesce tests for PHIs for
2988 dead or duplicated edges. Clear e->aux earlier and avoid separate
2989 loop to clear e->aux and test for missed edges.
2990 (verify_ssa): Remove first walk over statements. Move checking
2991 of PHI args into verify_phi_args. Move checking of statements
2992 with aliased stores and V_MAY_DEFS into the remaining loop over
2993 the statements. Register defs by walking through the formal
2996 2004-11-21 Roger Sayle <roger@eyesopen.com>
2999 * dojump.c (compare_from_rtx): Clarify mode argument in function
3000 description. Correct order of mode/cmp_mode arguments in call to
3001 simplify_relational_operation. Check "tem" for COMPARISON_P.
3003 2004-11-21 Paolo Bonzini <bonzini@gnu.org>
3004 David Edelsohn <edelsohn@gnu.org>
3007 * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
3008 synthetic vectors in memory.
3009 (function_arg_boundary): Align large synthetic vectors.
3010 (rs6000_pass_by_reference): Pass synthetic vectors in memory.
3012 2004-11-21 Jeff Law <law@redhat.com>
3014 * cfg.c (update_bb_profile_for_threading): Do not rescale the
3015 successor probabilities if they are not going to change. Pull
3016 division out of loop if we do need to rescale successor probabilities.
3018 * tree-ssa-threadupdate.c (redirection_data_hash): Use the
3019 index of the destination block for the hash value rather than
3022 2004-11-20 Joseph S. Myers <joseph@codesourcery.com>
3024 * c-typeck.c (build_array_ref): Don't check for index == 0. Make
3025 checks for neither argument being an array or pointer (swapping
3026 the arguments if necessary), the array argument being a pointer to
3027 or array of functions and for -Wchar-subscripts warnings upfront.
3029 2004-11-20 Jeff Law <law@redhat.com>
3031 * regrename.c (copyprop_hardreg_forward): Only search for a
3032 previously processed block if the current block only has one
3035 2004-11-20 Kazu Hirata <kazu@cs.umass.edu>
3037 * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
3039 * config/arm/arm.c: Follow spelling conventions.
3041 2004-11-20 Richard Earnshaw <rearnsha@arm.com>
3043 * arm.c (arm_override_options): Use arm_ld_sched rather than testing
3044 a bit in tune_flags.
3045 (const_double_needs_minipool): Likewise. Split most of the code out
3047 (arm_const_double_inline_cost): ... new function here.
3048 * arm-protos.h (arm_const_double_inline_cost): Add prototype.
3049 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
3050 word constants of length 2, 3 and 4 insns respectively.
3051 (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
3052 * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
3053 constraints. Set insn lenghts accordingly.
3055 2004-11-19 Jeff Law <law@redhat.com>
3057 * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
3058 a hash table. Extensive modifications throughout to support
3061 (struct local_info): New.
3062 (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
3064 (redirection_data): Now a hashtable.
3065 (redirection_data_hash, redirection_data_eq): New.
3066 (lookup_redirection_data, create_duplicates): New.
3067 (create_edge_and_update_destionation_phis): New.
3068 (fixup_template_block, redirect_edges): New.
3069 (thread_block): Use hash table traversals instead of loops over
3070 varray entries or incoming edge vectors.
3072 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3074 * basic-block.h (edge_def): Add dest_idx.
3075 * cfg.c (unchecked_make_edge): Initialize dest_idx.
3076 (remove_edge): Simplify the disconnection of an edge from its
3078 (redirect_edge_succ): Likewise.
3079 * cfghooks.c (verify_flow_info): Check the consistency of
3080 dest_idx for each edge.
3082 2004-11-19 Aldy Hernandez <aldyh@redhat.com>
3084 * simplify-rtx.c (simplify_ternary_operation): Use
3087 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3089 * tree-cfg.c (reinstall_phi_args): New.
3090 (tree_split_edge): Use it after redirecting an edge. Don't
3091 modify PHI_ARG_EDGE.
3093 2004-11-19 Andreas Tobler <a.tobler@schweiz.ch>
3095 * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
3096 if checking is enabled.
3098 2004-11-19 Joseph S. Myers <joseph@codesourcery.com>
3100 * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
3101 too many nested scopes.
3103 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3106 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
3107 changed to suppoer uses-after-loop and to void creating flow paths
3108 that shouldn't exist.
3109 (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
3110 Modified to fit the new peeling scheme. Avoid quadratic behavior.
3111 (slpeel_add_loop_guard): Takes additional argument.
3112 (slpeel_verify_cfg_after_peeling): New function.
3113 (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
3114 documentation. Use 'exit-bb' instead of creating 'new-bb'.
3115 (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
3116 the new peeling scheme.
3117 (copy_phi_nodes): Function removed. Its functionality moved to
3118 update_phis_for_duplicate_loop.
3119 (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
3120 moved here. Added documentation. Modified to fit the new peeling scheme.
3121 (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
3122 needed - done in slpeel_tree_peel_loop_to_edge.
3123 (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
3124 (vect_do_peeling_for_loop_bound): Add documentation. Call
3125 slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
3126 with additional argument.
3127 (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
3129 (vect_finish_stmt_generation): Avoid 80 column oveflow.
3131 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3133 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
3135 (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
3136 without last two arguments. Update single_exit of loops.
3137 (vect_update_niters_after_peeling): Removed. Its functionality was
3138 moved to vect_do_peeling_for_alignment.
3139 (vect_do_peeling_for_loop_bound): New name for function previously
3140 called vect_transform_for_unknown_loop_bound.
3141 (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
3142 instead of code that duplicates the same functionality.
3143 (vect_do_peeling_for_alignment): Functionality of
3144 vect_update_niters_after_peeling moved here.
3145 (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
3146 previously named vect_transform_for_unknown_loop_bound - for both known
3147 and unknown loop bound cases.
3149 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3151 * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
3152 previously called verify_loop_for_duplication. All conditions compacted
3153 into one compound condition. Removed debug dumps.
3154 (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
3155 functionality moved to vect_can_advance_ivs_p, and some to
3156 vect_analyze_loop_form.
3157 (vect_can_advance_ivs_p): New function. Contains functionality that was
3158 taken out of vect_analyze_loop_with_symbolic_num_of_iters.
3159 (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
3160 (vect_analyze_operations): Call vect_can_advance_ivs_p and
3161 slpeel_can_duplicate_loop_p.
3162 (vect_get_loop_niters): Added documentation.
3163 (vect_analyze_loop_form): Check the loop entry always - not only in case
3164 of unknown loop bound. Create preheader and exit bb if necessary. Apply
3165 a check that used to take place in
3166 vect_analyze_loop_with_symbolic_num_of_iters.
3167 (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
3168 Remove redundant call to rewrite_into_loop_closed_ssa.
3169 (vect_compute_data_refs_alignment): Removed obsolete comment.
3171 2004-11-19 Dorit Naishlos <dorit@il.ibm.com>
3173 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
3174 function previously called tree_duplicate_loop_to_edge.
3175 (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
3176 previously called tree_duplicate_loop_to_edge_cfg.
3177 (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
3179 (slpeel_update_phi_nodes_for_guard): Likewise.
3180 (slpeel_make_loop_iterate_ntimes): Likewise.
3181 (slpeel_add_loop_guard): Likewise.
3182 (allocate_new_names, free_new_names): Function declaration moved to top
3184 (rename_use_op, rename_def_op): Likewise.
3185 (rename_variables_in_bb, rename_variables_in_loop): Likewise.
3186 (vect_generate_tmps_on_preheader): Function declaration moved.
3187 (vect_transform_for_unknown_loop_bound): Added missing function
3190 2004-11-19 Andrew Pinski <pinskia@physics.uc.edu>
3193 * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
3194 Define a VEC(tree_on_heap) for head.
3195 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3196 * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3197 (tree_ssa_dominator_optimize): Initialize block_defs_stack with
3198 the VEC(tree_on_heap) function. Also free it before returning.
3199 (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3200 for block_defs_stack.
3201 (restore_currdefs_to_original_value): Use VEC_length instead of
3202 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3203 (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3204 for block_defs_stack.
3205 * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3206 (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3207 for block_defs_stack.
3208 (ssa_register_new_def): Likewise.
3209 (ssa_rewrite_initialize_block): Likewise.
3210 (rewrite_finalize_block): Use VEC_length instead of
3211 VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3212 (ssa_rewrite_finalize_block): Likewise.
3213 (register_new_def): Change second argument to be a VEC(tree_on_heap).
3214 Use VEC_safe_push instead of VARRAY_PUSH_TREE.
3215 (rewrite_blocks): Initialize block_defs_stack with
3216 the VEC(tree_on_heap) function. Also free it before returning.
3217 (rewrite_ssa_into_ssa): Likewise.
3219 2004-11-19 Fariborz Jahanian <fjahanian@apple.com>
3221 * config/darwin.c (machopic_data_defined_p): return 1 for
3222 MACHOPIC_DEFINED_FUNCTION.
3224 2004-11-19 Jeff Law <law@redhat.com>
3226 * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
3229 2004-11-19 Paul Brook <paul@codesourcery.com>
3232 * varasm.c (default_assemble_integer): Allow pointer-sized values.
3235 2004-11-19 Nick Clifton <nickc@redhat.com>
3237 * config/stormy16/stormy16.c (combine_bnp): Add code to handle
3238 zero_extension and lshiftrt insns.
3239 Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
3241 * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
3242 to handle bp and bn insn patterns with a zero_extend rtx
3245 2004-11-19 Ian Lance Taylor <ian@wasabisystems.com>
3247 * config/arm/arm.md (generic_sched): Make const.
3249 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3251 * emit-rtl.c (classify_insn): Make it static.
3252 * rtl.h: Remove the corresponding prototype.
3254 * integrate.c (has_func_hard_reg_initial_val,
3255 get_func_hard_reg_initial_val): Make them static.
3256 * integrate.h: Remove the corresponding prototypes.
3258 2004-11-19 Ben Elliston <bje@au.ibm.com>
3260 * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
3261 (dw2_asm_output_delta_sleb128): Likewise.
3262 * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
3263 (dw2_asm_output_delta_sleb128): Likewise.
3265 2004-11-19 Adam Nemet <anemet@lnxw.com>
3267 * tree-ssa-alias.c: Fix comment.
3269 2004-11-19 Kazu Hirata <kazu@cs.umass.edu>
3271 * tree-outof-ssa.c: Fix a comment typo.
3273 2004-11-19 Ben Elliston <bje@au.ibm.com>
3275 * predict.h (predict_insn): Remove extern declaration.
3276 * predict.c (predict_insn): Make static.
3278 2004-11-19 Alan Modra <amodra@bigpond.net.au>
3280 * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
3282 2004-11-18 Nicolas Pitre <nico@cam.org>
3284 * config/arm/arm.c (const_double_needs_minipool): New function to
3285 determine if a CONST_DOUBLE should be pushed to the minipool.
3286 (note_invalid_constants): Use it.
3288 2004-11-18 Paul Brook <paul@codesourcery.com>
3290 * config/arm/arm.c (target_float_switch): New variable..
3291 (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
3292 target_float_switch.
3293 * config/arm/arm.h (target_float_switch): Declare.
3294 (ARM_FLAG_SOFT_FLOAT): Remove.
3295 (TARGET_SWITCHES): Remove hard-float and soft-float.
3296 (TARGET_OPTIONS): Add hard-float and soft-float.
3297 (TARGET_DEFAULT_FLOAT_ABI): Define.
3298 * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
3299 (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
3300 * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
3301 * config/arm/netbsd-elf.h: Ditto.
3302 * config/arm/netbsd.h: Ditto.
3303 * config/arm/pe.h: Ditto.
3304 * config/arm/unknown-elf.h: Ditto.
3305 * config/arm/wince-pe.h: Ditto.
3306 * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3307 * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3308 * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3310 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
3312 * config/rs6000/altivec.md (VI, VF, V): New mode macros.
3313 (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
3314 altivec_lvx_4sf): Rename and replace with ...
3315 (altivec_lvx_<mode>): ... mode macro version.
3316 (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
3317 altivec_stvx_4sf): Rename and replace with ...
3318 (altivec_stvx_<mode>): ... mode macro version.
3319 (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
3320 (mov<mode>): ... mode macro version.
3321 (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
3322 *movv4sf_internal1): Replace with ...
3323 (*mov<mode>_internal): ... mode macro version.
3324 (get_vrsave_internal, *set_vrsave_internal, *save_world,
3325 *restore_world): Unquote output statements.
3326 * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
3327 altivec_expand_st_builtin): Adjust insn names.
3329 2004-11-18 Aldy Hernandez <aldyh@redhat.com>
3331 * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
3333 (rs6000_override_options): Likewise.
3334 (spe_build_register_parallel): Handle complex doubles on e500v2.
3335 (rs6000_spe_function_arg): Likewise.
3336 (function_arg): Likewise.
3337 (rs6000_function_value): Likewise.
3338 (rs6000_libcall_value): Likewise.
3340 2004-11-18 Andrew Pinski <pinskia@physics.uc.edu>
3342 * ifcvt.c (find_if_block): Move the check for the number of edges
3343 above the loops checking for complex edges.
3344 Remove the counting of edges as we use EDGE_COUNT now.
3346 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3348 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3349 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
3351 2004-11-18 Andreas Schwab <schwab@suse.de>
3353 * config/i386/i386.md (define_peephole2): Revert last change.
3355 2004-11-18 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3357 * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3358 TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
3360 2004-11-18 Diego Novillo <dnovillo@redhat.com>
3362 * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
3365 2004-11-18 Jon Grimm <jgrimm2@us.ibm.com>
3367 * Makefile.in (macro_list): Depend on s-macro_list.
3368 (s-macro_list): New target.
3370 2004-11-18 Nathan Sidwell <nathan@codesourcery.com>
3373 * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3374 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3375 (fold_range_test): Adjust.
3376 (fold_truthop): Use it.
3377 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3378 (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3380 2004-11-18 Uros Bizjak <uros@kss-loka.si>
3382 * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
3383 insn split constraint.
3384 (define_peephole2): Remove unneeded "&& 1" from peephole2
3387 2004-11-18 Ben Elliston <bje@au.ibm.com>
3389 * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
3390 element for bsi_prev; use @findex instead.
3392 2004-11-18 Ben Elliston <bje@au.ibm.com>
3394 * opts.h (add_input_filename): Remove extern declaration.
3395 * opts.c (add_input_filename): Make static.
3397 2004-11-17 Mark Mitchell <mark@codesourcery.com>
3399 * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
3402 2004-11-17 Zack Weinberg <zack@codesourcery.com>
3404 * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
3405 * system.h: Poison it.
3406 * doc/tm.texi: Delete its documentation.
3408 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
3409 Mark Mitchell <mark@codesourcery.com>
3411 * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
3412 * config/i386/i386.c (i386_solaris_elf_named_section): New
3414 * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
3415 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
3417 (ASM_QUAD): Don't undefine for biarch targets.
3418 * config/i386/t-sol2: Introduce multilib support.
3420 2004-11-18 Ben Elliston <bje@au.ibm.com>
3422 * cgraphunit.c: Replace "it's" with "its" and fix a typo.
3424 2004-11-18 Ben Elliston <bje@au.ibm.com>
3426 * cgraph.h: Replace "it's" with "its" throughout.
3428 2004-11-18 Ben Elliston <bje@au.ibm.com>
3430 * doc/rtl.texi (Flags): Grammar fix.
3432 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
3434 * expmed.c (alg_code): Add alg_unknown.
3435 (alg_hash_entry): New.
3436 (NUM_ALG_HASH_ENTRIES): Likewise.
3437 (alg_hash): Likewise.
3438 (synth_mult): Cache the result into alg_hash.
3440 2004-11-17 Zack Weinberg <zack@codesourcery.com>
3442 * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
3443 config/rs6000/libgcc-ppc64.ver.
3445 2004-11-17 Kazu Hirata <kazu@cs.umass.edu>
3447 * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
3448 checking if an unconditional return is followed by a barrier.
3450 * jump.c (condjump_p): Remove unreachable code.
3452 * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
3453 tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
3454 tree-ssa-live.h, tree.h: Remove unused prototypes.
3456 2004-11-17 Jeff Law <law@redhat.com>
3458 * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
3459 (edge_to_cases_elt): Renamed from edge_to_case_leader.
3460 (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
3461 (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
3462 (edge_to_cases_cleanup, recording_case_labels_p): New functions.
3463 (get_cases_for_edge): New function.
3464 (start_recording_case_labels, end_recording_case_labels): Similarly.
3465 (record_switch_edge): Don't muck with the CASE_LABEL. Instead
3466 chain equivalent CASE_LABEL_EXPRs together.
3467 (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
3468 (make_switch_expr_edges): Do not record edge/cases here.
3469 (cleanup_tree_cfg): Record cases around the call to thread_jumps.
3470 (split_critical_edges): Record cases around the edge splitting code.
3471 (cleanup_dead_labels): Use CASE_LABEL again.
3472 (tree_redirect_edge_and_branch): If we have a mapping from edge
3473 to cases, use it to handle redirections. Else do it the slow way.
3474 * tree.h (CASE_LEADER_OR_LABEL): Kill.
3475 (CASE_LABEL): Revert to just looking at the tree's second operand.
3476 * tree.c (get_case_label): Kill.
3478 2004-11-17 Diego Novillo <dnovillo@redhat.com>